babylon.nodeEditor.max.js 3.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056
  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. !*** E:/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. function _typeof(obj) {
  118. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  119. _typeof = function (obj) {
  120. return typeof obj;
  121. };
  122. } else {
  123. _typeof = function (obj) {
  124. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  125. };
  126. }
  127. return _typeof(obj);
  128. }
  129. function _classCallCheck(instance, Constructor) {
  130. if (!(instance instanceof Constructor)) {
  131. throw new TypeError("Cannot call a class as a function");
  132. }
  133. }
  134. function _defineProperties(target, props) {
  135. for (var i = 0; i < props.length; i++) {
  136. var descriptor = props[i];
  137. descriptor.enumerable = descriptor.enumerable || false;
  138. descriptor.configurable = true;
  139. if ("value" in descriptor) descriptor.writable = true;
  140. Object.defineProperty(target, descriptor.key, descriptor);
  141. }
  142. }
  143. function _createClass(Constructor, protoProps, staticProps) {
  144. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  145. if (staticProps) _defineProperties(Constructor, staticProps);
  146. return Constructor;
  147. }
  148. function _defineProperty(obj, key, value) {
  149. if (key in obj) {
  150. Object.defineProperty(obj, key, {
  151. value: value,
  152. enumerable: true,
  153. configurable: true,
  154. writable: true
  155. });
  156. } else {
  157. obj[key] = value;
  158. }
  159. return obj;
  160. }
  161. function _objectSpread(target) {
  162. for (var i = 1; i < arguments.length; i++) {
  163. var source = arguments[i] != null ? arguments[i] : {};
  164. var ownKeys = Object.keys(source);
  165. if (typeof Object.getOwnPropertySymbols === 'function') {
  166. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  167. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  168. }));
  169. }
  170. ownKeys.forEach(function (key) {
  171. _defineProperty(target, key, source[key]);
  172. });
  173. }
  174. return target;
  175. }
  176. function _slicedToArray(arr, i) {
  177. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  178. }
  179. function _toConsumableArray(arr) {
  180. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  181. }
  182. function _arrayWithoutHoles(arr) {
  183. if (Array.isArray(arr)) {
  184. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  185. return arr2;
  186. }
  187. }
  188. function _arrayWithHoles(arr) {
  189. if (Array.isArray(arr)) return arr;
  190. }
  191. function _iterableToArray(iter) {
  192. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  193. }
  194. function _iterableToArrayLimit(arr, i) {
  195. var _arr = [];
  196. var _n = true;
  197. var _d = false;
  198. var _e = undefined;
  199. try {
  200. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  201. _arr.push(_s.value);
  202. if (i && _arr.length === i) break;
  203. }
  204. } catch (err) {
  205. _d = true;
  206. _e = err;
  207. } finally {
  208. try {
  209. if (!_n && _i["return"] != null) _i["return"]();
  210. } finally {
  211. if (_d) throw _e;
  212. }
  213. }
  214. return _arr;
  215. }
  216. function _nonIterableSpread() {
  217. throw new TypeError("Invalid attempt to spread non-iterable instance");
  218. }
  219. function _nonIterableRest() {
  220. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  221. }
  222. var noop = function noop() {};
  223. var _WINDOW = {};
  224. var _DOCUMENT = {};
  225. var _MUTATION_OBSERVER = null;
  226. var _PERFORMANCE = {
  227. mark: noop,
  228. measure: noop
  229. };
  230. try {
  231. if (typeof window !== 'undefined') _WINDOW = window;
  232. if (typeof document !== 'undefined') _DOCUMENT = document;
  233. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  234. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  235. } catch (e) {}
  236. var _ref = _WINDOW.navigator || {},
  237. _ref$userAgent = _ref.userAgent,
  238. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  239. var WINDOW = _WINDOW;
  240. var DOCUMENT = _DOCUMENT;
  241. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  242. var PERFORMANCE = _PERFORMANCE;
  243. var IS_BROWSER = !!WINDOW.document;
  244. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  245. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  246. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  247. var UNITS_IN_GRID = 16;
  248. var DEFAULT_FAMILY_PREFIX = 'fa';
  249. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  250. var DATA_FA_I2SVG = 'data-fa-i2svg';
  251. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  252. var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
  253. var DATA_PREFIX = 'data-prefix';
  254. var DATA_ICON = 'data-icon';
  255. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  256. var MUTATION_APPROACH_ASYNC = 'async';
  257. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  258. var PRODUCTION = function () {
  259. try {
  260. return "development" === 'production';
  261. } catch (e) {
  262. return false;
  263. }
  264. }();
  265. var PREFIX_TO_STYLE = {
  266. 'fas': 'solid',
  267. 'far': 'regular',
  268. 'fal': 'light',
  269. 'fad': 'duotone',
  270. 'fab': 'brands',
  271. 'fa': 'solid'
  272. };
  273. var STYLE_TO_PREFIX = {
  274. 'solid': 'fas',
  275. 'regular': 'far',
  276. 'light': 'fal',
  277. 'duotone': 'fad',
  278. 'brands': 'fab'
  279. };
  280. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  281. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Duotone|Brands|Free|Pro)/;
  282. var FONT_WEIGHT_TO_PREFIX = {
  283. '900': 'fas',
  284. '400': 'far',
  285. 'normal': 'far',
  286. '300': 'fal'
  287. };
  288. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  289. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  290. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  291. var DUOTONE_CLASSES = {
  292. GROUP: 'group',
  293. SWAP_OPACITY: 'swap-opacity',
  294. PRIMARY: 'primary',
  295. SECONDARY: 'secondary'
  296. };
  297. 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) {
  298. return "".concat(n, "x");
  299. })).concat(oneToTwenty.map(function (n) {
  300. return "w-".concat(n);
  301. }));
  302. var initial = WINDOW.FontAwesomeConfig || {};
  303. function getAttrConfig(attr) {
  304. var element = DOCUMENT.querySelector('script[' + attr + ']');
  305. if (element) {
  306. return element.getAttribute(attr);
  307. }
  308. }
  309. function coerce(val) {
  310. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  311. // We'll assume that this is an indication that it should be toggled to true
  312. // For example <script data-search-pseudo-elements src="..."></script>
  313. if (val === '') return true;
  314. if (val === 'false') return false;
  315. if (val === 'true') return true;
  316. return val;
  317. }
  318. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  319. 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']];
  320. attrs.forEach(function (_ref) {
  321. var _ref2 = _slicedToArray(_ref, 2),
  322. attr = _ref2[0],
  323. key = _ref2[1];
  324. var val = coerce(getAttrConfig(attr));
  325. if (val !== undefined && val !== null) {
  326. initial[key] = val;
  327. }
  328. });
  329. }
  330. var _default = {
  331. familyPrefix: DEFAULT_FAMILY_PREFIX,
  332. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  333. autoReplaceSvg: true,
  334. autoAddCss: true,
  335. autoA11y: true,
  336. searchPseudoElements: false,
  337. observeMutations: true,
  338. mutateApproach: 'async',
  339. keepOriginalSource: true,
  340. measurePerformance: false,
  341. showMissingIcons: true
  342. };
  343. var _config = _objectSpread({}, _default, initial);
  344. if (!_config.autoReplaceSvg) _config.observeMutations = false;
  345. var config = _objectSpread({}, _config);
  346. WINDOW.FontAwesomeConfig = config;
  347. var w = WINDOW || {};
  348. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  349. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  350. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  351. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  352. var namespace = w[NAMESPACE_IDENTIFIER];
  353. var functions = [];
  354. var listener = function listener() {
  355. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  356. loaded = 1;
  357. functions.map(function (fn) {
  358. return fn();
  359. });
  360. };
  361. var loaded = false;
  362. if (IS_DOM) {
  363. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  364. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  365. }
  366. function domready (fn) {
  367. if (!IS_DOM) return;
  368. loaded ? setTimeout(fn, 0) : functions.push(fn);
  369. }
  370. var PENDING = 'pending';
  371. var SETTLED = 'settled';
  372. var FULFILLED = 'fulfilled';
  373. var REJECTED = 'rejected';
  374. var NOOP = function NOOP() {};
  375. var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
  376. var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
  377. var asyncQueue = [];
  378. var asyncTimer;
  379. function asyncFlush() {
  380. // run promise callbacks
  381. for (var i = 0; i < asyncQueue.length; i++) {
  382. asyncQueue[i][0](asyncQueue[i][1]);
  383. } // reset async asyncQueue
  384. asyncQueue = [];
  385. asyncTimer = false;
  386. }
  387. function asyncCall(callback, arg) {
  388. asyncQueue.push([callback, arg]);
  389. if (!asyncTimer) {
  390. asyncTimer = true;
  391. asyncSetTimer(asyncFlush, 0);
  392. }
  393. }
  394. function invokeResolver(resolver, promise) {
  395. function resolvePromise(value) {
  396. resolve(promise, value);
  397. }
  398. function rejectPromise(reason) {
  399. reject(promise, reason);
  400. }
  401. try {
  402. resolver(resolvePromise, rejectPromise);
  403. } catch (e) {
  404. rejectPromise(e);
  405. }
  406. }
  407. function invokeCallback(subscriber) {
  408. var owner = subscriber.owner;
  409. var settled = owner._state;
  410. var value = owner._data;
  411. var callback = subscriber[settled];
  412. var promise = subscriber.then;
  413. if (typeof callback === 'function') {
  414. settled = FULFILLED;
  415. try {
  416. value = callback(value);
  417. } catch (e) {
  418. reject(promise, e);
  419. }
  420. }
  421. if (!handleThenable(promise, value)) {
  422. if (settled === FULFILLED) {
  423. resolve(promise, value);
  424. }
  425. if (settled === REJECTED) {
  426. reject(promise, value);
  427. }
  428. }
  429. }
  430. function handleThenable(promise, value) {
  431. var resolved;
  432. try {
  433. if (promise === value) {
  434. throw new TypeError('A promises callback cannot return that same promise.');
  435. }
  436. if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
  437. // then should be retrieved only once
  438. var then = value.then;
  439. if (typeof then === 'function') {
  440. then.call(value, function (val) {
  441. if (!resolved) {
  442. resolved = true;
  443. if (value === val) {
  444. fulfill(promise, val);
  445. } else {
  446. resolve(promise, val);
  447. }
  448. }
  449. }, function (reason) {
  450. if (!resolved) {
  451. resolved = true;
  452. reject(promise, reason);
  453. }
  454. });
  455. return true;
  456. }
  457. }
  458. } catch (e) {
  459. if (!resolved) {
  460. reject(promise, e);
  461. }
  462. return true;
  463. }
  464. return false;
  465. }
  466. function resolve(promise, value) {
  467. if (promise === value || !handleThenable(promise, value)) {
  468. fulfill(promise, value);
  469. }
  470. }
  471. function fulfill(promise, value) {
  472. if (promise._state === PENDING) {
  473. promise._state = SETTLED;
  474. promise._data = value;
  475. asyncCall(publishFulfillment, promise);
  476. }
  477. }
  478. function reject(promise, reason) {
  479. if (promise._state === PENDING) {
  480. promise._state = SETTLED;
  481. promise._data = reason;
  482. asyncCall(publishRejection, promise);
  483. }
  484. }
  485. function publish(promise) {
  486. promise._then = promise._then.forEach(invokeCallback);
  487. }
  488. function publishFulfillment(promise) {
  489. promise._state = FULFILLED;
  490. publish(promise);
  491. }
  492. function publishRejection(promise) {
  493. promise._state = REJECTED;
  494. publish(promise);
  495. if (!promise._handled && isNode) {
  496. global.process.emit('unhandledRejection', promise._data, promise);
  497. }
  498. }
  499. function notifyRejectionHandled(promise) {
  500. global.process.emit('rejectionHandled', promise);
  501. }
  502. /**
  503. * @class
  504. */
  505. function P(resolver) {
  506. if (typeof resolver !== 'function') {
  507. throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  508. }
  509. if (this instanceof P === false) {
  510. throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  511. }
  512. this._then = [];
  513. invokeResolver(resolver, this);
  514. }
  515. P.prototype = {
  516. constructor: P,
  517. _state: PENDING,
  518. _then: null,
  519. _data: undefined,
  520. _handled: false,
  521. then: function then(onFulfillment, onRejection) {
  522. var subscriber = {
  523. owner: this,
  524. then: new this.constructor(NOOP),
  525. fulfilled: onFulfillment,
  526. rejected: onRejection
  527. };
  528. if ((onRejection || onFulfillment) && !this._handled) {
  529. this._handled = true;
  530. if (this._state === REJECTED && isNode) {
  531. asyncCall(notifyRejectionHandled, this);
  532. }
  533. }
  534. if (this._state === FULFILLED || this._state === REJECTED) {
  535. // already resolved, call callback async
  536. asyncCall(invokeCallback, subscriber);
  537. } else {
  538. // subscribe
  539. this._then.push(subscriber);
  540. }
  541. return subscriber.then;
  542. },
  543. catch: function _catch(onRejection) {
  544. return this.then(null, onRejection);
  545. }
  546. };
  547. P.all = function (promises) {
  548. if (!Array.isArray(promises)) {
  549. throw new TypeError('You must pass an array to Promise.all().');
  550. }
  551. return new P(function (resolve, reject) {
  552. var results = [];
  553. var remaining = 0;
  554. function resolver(index) {
  555. remaining++;
  556. return function (value) {
  557. results[index] = value;
  558. if (! --remaining) {
  559. resolve(results);
  560. }
  561. };
  562. }
  563. for (var i = 0, promise; i < promises.length; i++) {
  564. promise = promises[i];
  565. if (promise && typeof promise.then === 'function') {
  566. promise.then(resolver(i), reject);
  567. } else {
  568. results[i] = promise;
  569. }
  570. }
  571. if (!remaining) {
  572. resolve(results);
  573. }
  574. });
  575. };
  576. P.race = function (promises) {
  577. if (!Array.isArray(promises)) {
  578. throw new TypeError('You must pass an array to Promise.race().');
  579. }
  580. return new P(function (resolve, reject) {
  581. for (var i = 0, promise; i < promises.length; i++) {
  582. promise = promises[i];
  583. if (promise && typeof promise.then === 'function') {
  584. promise.then(resolve, reject);
  585. } else {
  586. resolve(promise);
  587. }
  588. }
  589. });
  590. };
  591. P.resolve = function (value) {
  592. if (value && _typeof(value) === 'object' && value.constructor === P) {
  593. return value;
  594. }
  595. return new P(function (resolve) {
  596. resolve(value);
  597. });
  598. };
  599. P.reject = function (reason) {
  600. return new P(function (resolve, reject) {
  601. reject(reason);
  602. });
  603. };
  604. var picked = typeof Promise === 'function' ? Promise : P;
  605. var d = UNITS_IN_GRID;
  606. var meaninglessTransform = {
  607. size: 16,
  608. x: 0,
  609. y: 0,
  610. rotate: 0,
  611. flipX: false,
  612. flipY: false
  613. };
  614. function isReserved(name) {
  615. return ~RESERVED_CLASSES.indexOf(name);
  616. }
  617. function insertCss(css) {
  618. if (!css || !IS_DOM) {
  619. return;
  620. }
  621. var style = DOCUMENT.createElement('style');
  622. style.setAttribute('type', 'text/css');
  623. style.innerHTML = css;
  624. var headChildren = DOCUMENT.head.childNodes;
  625. var beforeChild = null;
  626. for (var i = headChildren.length - 1; i > -1; i--) {
  627. var child = headChildren[i];
  628. var tagName = (child.tagName || '').toUpperCase();
  629. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  630. beforeChild = child;
  631. }
  632. }
  633. DOCUMENT.head.insertBefore(style, beforeChild);
  634. return css;
  635. }
  636. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  637. function nextUniqueId() {
  638. var size = 12;
  639. var id = '';
  640. while (size-- > 0) {
  641. id += idPool[Math.random() * 62 | 0];
  642. }
  643. return id;
  644. }
  645. function toArray(obj) {
  646. var array = [];
  647. for (var i = (obj || []).length >>> 0; i--;) {
  648. array[i] = obj[i];
  649. }
  650. return array;
  651. }
  652. function classArray(node) {
  653. if (node.classList) {
  654. return toArray(node.classList);
  655. } else {
  656. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  657. return i;
  658. });
  659. }
  660. }
  661. function getIconName(familyPrefix, cls) {
  662. var parts = cls.split('-');
  663. var prefix = parts[0];
  664. var iconName = parts.slice(1).join('-');
  665. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  666. return iconName;
  667. } else {
  668. return null;
  669. }
  670. }
  671. function htmlEscape(str) {
  672. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  673. }
  674. function joinAttributes(attributes) {
  675. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  676. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  677. }, '').trim();
  678. }
  679. function joinStyles(styles) {
  680. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  681. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  682. }, '');
  683. }
  684. function transformIsMeaningful(transform) {
  685. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  686. }
  687. function transformForSvg(_ref) {
  688. var transform = _ref.transform,
  689. containerWidth = _ref.containerWidth,
  690. iconWidth = _ref.iconWidth;
  691. var outer = {
  692. transform: "translate(".concat(containerWidth / 2, " 256)")
  693. };
  694. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  695. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  696. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  697. var inner = {
  698. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  699. };
  700. var path = {
  701. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  702. };
  703. return {
  704. outer: outer,
  705. inner: inner,
  706. path: path
  707. };
  708. }
  709. function transformForCss(_ref2) {
  710. var transform = _ref2.transform,
  711. _ref2$width = _ref2.width,
  712. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  713. _ref2$height = _ref2.height,
  714. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  715. _ref2$startCentered = _ref2.startCentered,
  716. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  717. var val = '';
  718. if (startCentered && IS_IE) {
  719. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  720. } else if (startCentered) {
  721. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  722. } else {
  723. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  724. }
  725. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  726. val += "rotate(".concat(transform.rotate, "deg) ");
  727. return val;
  728. }
  729. var ALL_SPACE = {
  730. x: 0,
  731. y: 0,
  732. width: '100%',
  733. height: '100%'
  734. };
  735. function fillBlack(abstract) {
  736. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  737. if (abstract.attributes && (abstract.attributes.fill || force)) {
  738. abstract.attributes.fill = 'black';
  739. }
  740. return abstract;
  741. }
  742. function deGroup(abstract) {
  743. if (abstract.tag === 'g') {
  744. return abstract.children;
  745. } else {
  746. return [abstract];
  747. }
  748. }
  749. function makeIconMasking (_ref) {
  750. var children = _ref.children,
  751. attributes = _ref.attributes,
  752. main = _ref.main,
  753. mask = _ref.mask,
  754. transform = _ref.transform;
  755. var mainWidth = main.width,
  756. mainPath = main.icon;
  757. var maskWidth = mask.width,
  758. maskPath = mask.icon;
  759. var trans = transformForSvg({
  760. transform: transform,
  761. containerWidth: maskWidth,
  762. iconWidth: mainWidth
  763. });
  764. var maskRect = {
  765. tag: 'rect',
  766. attributes: _objectSpread({}, ALL_SPACE, {
  767. fill: 'white'
  768. })
  769. };
  770. var maskInnerGroupChildrenMixin = mainPath.children ? {
  771. children: mainPath.children.map(fillBlack)
  772. } : {};
  773. var maskInnerGroup = {
  774. tag: 'g',
  775. attributes: _objectSpread({}, trans.inner),
  776. children: [fillBlack(_objectSpread({
  777. tag: mainPath.tag,
  778. attributes: _objectSpread({}, mainPath.attributes, trans.path)
  779. }, maskInnerGroupChildrenMixin))]
  780. };
  781. var maskOuterGroup = {
  782. tag: 'g',
  783. attributes: _objectSpread({}, trans.outer),
  784. children: [maskInnerGroup]
  785. };
  786. var maskId = "mask-".concat(nextUniqueId());
  787. var clipId = "clip-".concat(nextUniqueId());
  788. var maskTag = {
  789. tag: 'mask',
  790. attributes: _objectSpread({}, ALL_SPACE, {
  791. id: maskId,
  792. maskUnits: 'userSpaceOnUse',
  793. maskContentUnits: 'userSpaceOnUse'
  794. }),
  795. children: [maskRect, maskOuterGroup]
  796. };
  797. var defs = {
  798. tag: 'defs',
  799. children: [{
  800. tag: 'clipPath',
  801. attributes: {
  802. id: clipId
  803. },
  804. children: deGroup(maskPath)
  805. }, maskTag]
  806. };
  807. children.push(defs, {
  808. tag: 'rect',
  809. attributes: _objectSpread({
  810. fill: 'currentColor',
  811. 'clip-path': "url(#".concat(clipId, ")"),
  812. mask: "url(#".concat(maskId, ")")
  813. }, ALL_SPACE)
  814. });
  815. return {
  816. children: children,
  817. attributes: attributes
  818. };
  819. }
  820. function makeIconStandard (_ref) {
  821. var children = _ref.children,
  822. attributes = _ref.attributes,
  823. main = _ref.main,
  824. transform = _ref.transform,
  825. styles = _ref.styles;
  826. var styleString = joinStyles(styles);
  827. if (styleString.length > 0) {
  828. attributes['style'] = styleString;
  829. }
  830. if (transformIsMeaningful(transform)) {
  831. var trans = transformForSvg({
  832. transform: transform,
  833. containerWidth: main.width,
  834. iconWidth: main.width
  835. });
  836. children.push({
  837. tag: 'g',
  838. attributes: _objectSpread({}, trans.outer),
  839. children: [{
  840. tag: 'g',
  841. attributes: _objectSpread({}, trans.inner),
  842. children: [{
  843. tag: main.icon.tag,
  844. children: main.icon.children,
  845. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  846. }]
  847. }]
  848. });
  849. } else {
  850. children.push(main.icon);
  851. }
  852. return {
  853. children: children,
  854. attributes: attributes
  855. };
  856. }
  857. function asIcon (_ref) {
  858. var children = _ref.children,
  859. main = _ref.main,
  860. mask = _ref.mask,
  861. attributes = _ref.attributes,
  862. styles = _ref.styles,
  863. transform = _ref.transform;
  864. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  865. var width = main.width,
  866. height = main.height;
  867. var offset = {
  868. x: width / height / 2,
  869. y: 0.5
  870. };
  871. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  872. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  873. }));
  874. }
  875. return [{
  876. tag: 'svg',
  877. attributes: attributes,
  878. children: children
  879. }];
  880. }
  881. function asSymbol (_ref) {
  882. var prefix = _ref.prefix,
  883. iconName = _ref.iconName,
  884. children = _ref.children,
  885. attributes = _ref.attributes,
  886. symbol = _ref.symbol;
  887. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  888. return [{
  889. tag: 'svg',
  890. attributes: {
  891. style: 'display: none;'
  892. },
  893. children: [{
  894. tag: 'symbol',
  895. attributes: _objectSpread({}, attributes, {
  896. id: id
  897. }),
  898. children: children
  899. }]
  900. }];
  901. }
  902. function makeInlineSvgAbstract(params) {
  903. var _params$icons = params.icons,
  904. main = _params$icons.main,
  905. mask = _params$icons.mask,
  906. prefix = params.prefix,
  907. iconName = params.iconName,
  908. transform = params.transform,
  909. symbol = params.symbol,
  910. title = params.title,
  911. extra = params.extra,
  912. _params$watchable = params.watchable,
  913. watchable = _params$watchable === void 0 ? false : _params$watchable;
  914. var _ref = mask.found ? mask : main,
  915. width = _ref.width,
  916. height = _ref.height;
  917. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  918. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  919. return extra.classes.indexOf(c) === -1;
  920. }).concat(extra.classes).join(' ');
  921. var content = {
  922. children: [],
  923. attributes: _objectSpread({}, extra.attributes, {
  924. 'data-prefix': prefix,
  925. 'data-icon': iconName,
  926. 'class': attrClass,
  927. 'role': extra.attributes.role || 'img',
  928. 'xmlns': 'http://www.w3.org/2000/svg',
  929. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  930. })
  931. };
  932. if (watchable) {
  933. content.attributes[DATA_FA_I2SVG] = '';
  934. }
  935. if (title) content.children.push({
  936. tag: 'title',
  937. attributes: {
  938. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  939. },
  940. children: [title]
  941. });
  942. var args = _objectSpread({}, content, {
  943. prefix: prefix,
  944. iconName: iconName,
  945. main: main,
  946. mask: mask,
  947. transform: transform,
  948. symbol: symbol,
  949. styles: extra.styles
  950. });
  951. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  952. children = _ref2.children,
  953. attributes = _ref2.attributes;
  954. args.children = children;
  955. args.attributes = attributes;
  956. if (symbol) {
  957. return asSymbol(args);
  958. } else {
  959. return asIcon(args);
  960. }
  961. }
  962. function makeLayersTextAbstract(params) {
  963. var content = params.content,
  964. width = params.width,
  965. height = params.height,
  966. transform = params.transform,
  967. title = params.title,
  968. extra = params.extra,
  969. _params$watchable2 = params.watchable,
  970. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  971. var attributes = _objectSpread({}, extra.attributes, title ? {
  972. 'title': title
  973. } : {}, {
  974. 'class': extra.classes.join(' ')
  975. });
  976. if (watchable) {
  977. attributes[DATA_FA_I2SVG] = '';
  978. }
  979. var styles = _objectSpread({}, extra.styles);
  980. if (transformIsMeaningful(transform)) {
  981. styles['transform'] = transformForCss({
  982. transform: transform,
  983. startCentered: true,
  984. width: width,
  985. height: height
  986. });
  987. styles['-webkit-transform'] = styles['transform'];
  988. }
  989. var styleString = joinStyles(styles);
  990. if (styleString.length > 0) {
  991. attributes['style'] = styleString;
  992. }
  993. var val = [];
  994. val.push({
  995. tag: 'span',
  996. attributes: attributes,
  997. children: [content]
  998. });
  999. if (title) {
  1000. val.push({
  1001. tag: 'span',
  1002. attributes: {
  1003. class: 'sr-only'
  1004. },
  1005. children: [title]
  1006. });
  1007. }
  1008. return val;
  1009. }
  1010. function makeLayersCounterAbstract(params) {
  1011. var content = params.content,
  1012. title = params.title,
  1013. extra = params.extra;
  1014. var attributes = _objectSpread({}, extra.attributes, title ? {
  1015. 'title': title
  1016. } : {}, {
  1017. 'class': extra.classes.join(' ')
  1018. });
  1019. var styleString = joinStyles(extra.styles);
  1020. if (styleString.length > 0) {
  1021. attributes['style'] = styleString;
  1022. }
  1023. var val = [];
  1024. val.push({
  1025. tag: 'span',
  1026. attributes: attributes,
  1027. children: [content]
  1028. });
  1029. if (title) {
  1030. val.push({
  1031. tag: 'span',
  1032. attributes: {
  1033. class: 'sr-only'
  1034. },
  1035. children: [title]
  1036. });
  1037. }
  1038. return val;
  1039. }
  1040. var noop$1 = function noop() {};
  1041. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  1042. mark: noop$1,
  1043. measure: noop$1
  1044. };
  1045. var preamble = "FA \"5.11.2\"";
  1046. var begin = function begin(name) {
  1047. p.mark("".concat(preamble, " ").concat(name, " begins"));
  1048. return function () {
  1049. return end(name);
  1050. };
  1051. };
  1052. var end = function end(name) {
  1053. p.mark("".concat(preamble, " ").concat(name, " ends"));
  1054. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  1055. };
  1056. var perf = {
  1057. begin: begin,
  1058. end: end
  1059. };
  1060. /**
  1061. * Internal helper to bind a function known to have 4 arguments
  1062. * to a given context.
  1063. */
  1064. var bindInternal4 = function bindInternal4(func, thisContext) {
  1065. return function (a, b, c, d) {
  1066. return func.call(thisContext, a, b, c, d);
  1067. };
  1068. };
  1069. /**
  1070. * # Reduce
  1071. *
  1072. * A fast object `.reduce()` implementation.
  1073. *
  1074. * @param {Object} subject The object to reduce over.
  1075. * @param {Function} fn The reducer function.
  1076. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  1077. * @param {Object} thisContext The context for the reducer.
  1078. * @return {mixed} The final result.
  1079. */
  1080. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  1081. var keys = Object.keys(subject),
  1082. length = keys.length,
  1083. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  1084. i,
  1085. key,
  1086. result;
  1087. if (initialValue === undefined) {
  1088. i = 1;
  1089. result = subject[keys[0]];
  1090. } else {
  1091. i = 0;
  1092. result = initialValue;
  1093. }
  1094. for (; i < length; i++) {
  1095. key = keys[i];
  1096. result = iterator(result, subject[key], key, subject);
  1097. }
  1098. return result;
  1099. };
  1100. function toHex(unicode) {
  1101. var result = '';
  1102. for (var i = 0; i < unicode.length; i++) {
  1103. var hex = unicode.charCodeAt(i).toString(16);
  1104. result += ('000' + hex).slice(-4);
  1105. }
  1106. return result;
  1107. }
  1108. function defineIcons(prefix, icons) {
  1109. var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1110. var _params$skipHooks = params.skipHooks,
  1111. skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  1112. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1113. var icon = icons[iconName];
  1114. var expanded = !!icon.icon;
  1115. if (expanded) {
  1116. acc[icon.iconName] = icon.icon;
  1117. } else {
  1118. acc[iconName] = icon;
  1119. }
  1120. return acc;
  1121. }, {});
  1122. if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
  1123. namespace.hooks.addPack(prefix, normalized);
  1124. } else {
  1125. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1126. }
  1127. /**
  1128. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1129. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1130. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1131. * this as well.
  1132. */
  1133. if (prefix === 'fas') {
  1134. defineIcons('fa', icons);
  1135. }
  1136. }
  1137. var styles = namespace.styles,
  1138. shims = namespace.shims;
  1139. var _byUnicode = {};
  1140. var _byLigature = {};
  1141. var _byOldName = {};
  1142. var build = function build() {
  1143. var lookup = function lookup(reducer) {
  1144. return reduce(styles, function (o, style, prefix) {
  1145. o[prefix] = reduce(style, reducer, {});
  1146. return o;
  1147. }, {});
  1148. };
  1149. _byUnicode = lookup(function (acc, icon, iconName) {
  1150. if (icon[3]) {
  1151. acc[icon[3]] = iconName;
  1152. }
  1153. return acc;
  1154. });
  1155. _byLigature = lookup(function (acc, icon, iconName) {
  1156. var ligatures = icon[2];
  1157. acc[iconName] = iconName;
  1158. ligatures.forEach(function (ligature) {
  1159. acc[ligature] = iconName;
  1160. });
  1161. return acc;
  1162. });
  1163. var hasRegular = 'far' in styles;
  1164. _byOldName = reduce(shims, function (acc, shim) {
  1165. var oldName = shim[0];
  1166. var prefix = shim[1];
  1167. var iconName = shim[2];
  1168. if (prefix === 'far' && !hasRegular) {
  1169. prefix = 'fas';
  1170. }
  1171. acc[oldName] = {
  1172. prefix: prefix,
  1173. iconName: iconName
  1174. };
  1175. return acc;
  1176. }, {});
  1177. };
  1178. build();
  1179. function byUnicode(prefix, unicode) {
  1180. return (_byUnicode[prefix] || {})[unicode];
  1181. }
  1182. function byLigature(prefix, ligature) {
  1183. return (_byLigature[prefix] || {})[ligature];
  1184. }
  1185. function byOldName(name) {
  1186. return _byOldName[name] || {
  1187. prefix: null,
  1188. iconName: null
  1189. };
  1190. }
  1191. var styles$1 = namespace.styles;
  1192. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  1193. return {
  1194. prefix: null,
  1195. iconName: null,
  1196. rest: []
  1197. };
  1198. };
  1199. function getCanonicalIcon(values) {
  1200. return values.reduce(function (acc, cls) {
  1201. var iconName = getIconName(config.familyPrefix, cls);
  1202. if (styles$1[cls]) {
  1203. acc.prefix = cls;
  1204. } else if (config.autoFetchSvg && ['fas', 'far', 'fal', 'fad', 'fab', 'fa'].indexOf(cls) > -1) {
  1205. acc.prefix = cls;
  1206. } else if (iconName) {
  1207. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  1208. acc.iconName = shim.iconName || iconName;
  1209. acc.prefix = shim.prefix || acc.prefix;
  1210. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  1211. acc.rest.push(cls);
  1212. }
  1213. return acc;
  1214. }, emptyCanonicalIcon());
  1215. }
  1216. function iconFromMapping(mapping, prefix, iconName) {
  1217. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  1218. return {
  1219. prefix: prefix,
  1220. iconName: iconName,
  1221. icon: mapping[prefix][iconName]
  1222. };
  1223. }
  1224. }
  1225. function toHtml(abstractNodes) {
  1226. var tag = abstractNodes.tag,
  1227. _abstractNodes$attrib = abstractNodes.attributes,
  1228. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  1229. _abstractNodes$childr = abstractNodes.children,
  1230. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  1231. if (typeof abstractNodes === 'string') {
  1232. return htmlEscape(abstractNodes);
  1233. } else {
  1234. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  1235. }
  1236. }
  1237. var noop$2 = function noop() {};
  1238. function isWatched(node) {
  1239. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  1240. return typeof i2svg === 'string';
  1241. }
  1242. function getMutator() {
  1243. if (config.autoReplaceSvg === true) {
  1244. return mutators.replace;
  1245. }
  1246. var mutator = mutators[config.autoReplaceSvg];
  1247. return mutator || mutators.replace;
  1248. }
  1249. var mutators = {
  1250. replace: function replace(mutation) {
  1251. var node = mutation[0];
  1252. var abstract = mutation[1];
  1253. var newOuterHTML = abstract.map(function (a) {
  1254. return toHtml(a);
  1255. }).join('\n');
  1256. if (node.parentNode && node.outerHTML) {
  1257. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  1258. } else if (node.parentNode) {
  1259. var newNode = document.createElement('span');
  1260. node.parentNode.replaceChild(newNode, node);
  1261. newNode.outerHTML = newOuterHTML;
  1262. }
  1263. },
  1264. nest: function nest(mutation) {
  1265. var node = mutation[0];
  1266. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  1267. // Short-circuit to the standard replacement
  1268. if (~classArray(node).indexOf(config.replacementClass)) {
  1269. return mutators.replace(mutation);
  1270. }
  1271. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  1272. delete abstract[0].attributes.style;
  1273. delete abstract[0].attributes.id;
  1274. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  1275. if (cls === config.replacementClass || cls.match(forSvg)) {
  1276. acc.toSvg.push(cls);
  1277. } else {
  1278. acc.toNode.push(cls);
  1279. }
  1280. return acc;
  1281. }, {
  1282. toNode: [],
  1283. toSvg: []
  1284. });
  1285. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  1286. var newInnerHTML = abstract.map(function (a) {
  1287. return toHtml(a);
  1288. }).join('\n');
  1289. node.setAttribute('class', splitClasses.toNode.join(' '));
  1290. node.setAttribute(DATA_FA_I2SVG, '');
  1291. node.innerHTML = newInnerHTML;
  1292. }
  1293. };
  1294. function performOperationSync(op) {
  1295. op();
  1296. }
  1297. function perform(mutations, callback) {
  1298. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  1299. if (mutations.length === 0) {
  1300. callbackFunction();
  1301. } else {
  1302. var frame = performOperationSync;
  1303. if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
  1304. frame = WINDOW.requestAnimationFrame || performOperationSync;
  1305. }
  1306. frame(function () {
  1307. var mutator = getMutator();
  1308. var mark = perf.begin('mutate');
  1309. mutations.map(mutator);
  1310. mark();
  1311. callbackFunction();
  1312. });
  1313. }
  1314. }
  1315. var disabled = false;
  1316. function disableObservation() {
  1317. disabled = true;
  1318. }
  1319. function enableObservation() {
  1320. disabled = false;
  1321. }
  1322. var mo = null;
  1323. function observe(options) {
  1324. if (!MUTATION_OBSERVER) {
  1325. return;
  1326. }
  1327. if (!config.observeMutations) {
  1328. return;
  1329. }
  1330. var treeCallback = options.treeCallback,
  1331. nodeCallback = options.nodeCallback,
  1332. pseudoElementsCallback = options.pseudoElementsCallback,
  1333. _options$observeMutat = options.observeMutationsRoot,
  1334. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  1335. mo = new MUTATION_OBSERVER(function (objects) {
  1336. if (disabled) return;
  1337. toArray(objects).forEach(function (mutationRecord) {
  1338. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  1339. if (config.searchPseudoElements) {
  1340. pseudoElementsCallback(mutationRecord.target);
  1341. }
  1342. treeCallback(mutationRecord.target);
  1343. }
  1344. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1345. pseudoElementsCallback(mutationRecord.target.parentNode);
  1346. }
  1347. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1348. if (mutationRecord.attributeName === 'class') {
  1349. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1350. prefix = _getCanonicalIcon.prefix,
  1351. iconName = _getCanonicalIcon.iconName;
  1352. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1353. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1354. } else {
  1355. nodeCallback(mutationRecord.target);
  1356. }
  1357. }
  1358. });
  1359. });
  1360. if (!IS_DOM) return;
  1361. mo.observe(observeMutationsRoot, {
  1362. childList: true,
  1363. attributes: true,
  1364. characterData: true,
  1365. subtree: true
  1366. });
  1367. }
  1368. function disconnect() {
  1369. if (!mo) return;
  1370. mo.disconnect();
  1371. }
  1372. function styleParser (node) {
  1373. var style = node.getAttribute('style');
  1374. var val = [];
  1375. if (style) {
  1376. val = style.split(';').reduce(function (acc, style) {
  1377. var styles = style.split(':');
  1378. var prop = styles[0];
  1379. var value = styles.slice(1);
  1380. if (prop && value.length > 0) {
  1381. acc[prop] = value.join(':').trim();
  1382. }
  1383. return acc;
  1384. }, {});
  1385. }
  1386. return val;
  1387. }
  1388. function classParser (node) {
  1389. var existingPrefix = node.getAttribute('data-prefix');
  1390. var existingIconName = node.getAttribute('data-icon');
  1391. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1392. var val = getCanonicalIcon(classArray(node));
  1393. if (existingPrefix && existingIconName) {
  1394. val.prefix = existingPrefix;
  1395. val.iconName = existingIconName;
  1396. }
  1397. if (val.prefix && innerText.length > 1) {
  1398. val.iconName = byLigature(val.prefix, node.innerText);
  1399. } else if (val.prefix && innerText.length === 1) {
  1400. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1401. }
  1402. return val;
  1403. }
  1404. var parseTransformString = function parseTransformString(transformString) {
  1405. var transform = {
  1406. size: 16,
  1407. x: 0,
  1408. y: 0,
  1409. flipX: false,
  1410. flipY: false,
  1411. rotate: 0
  1412. };
  1413. if (!transformString) {
  1414. return transform;
  1415. } else {
  1416. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1417. var parts = n.toLowerCase().split('-');
  1418. var first = parts[0];
  1419. var rest = parts.slice(1).join('-');
  1420. if (first && rest === 'h') {
  1421. acc.flipX = true;
  1422. return acc;
  1423. }
  1424. if (first && rest === 'v') {
  1425. acc.flipY = true;
  1426. return acc;
  1427. }
  1428. rest = parseFloat(rest);
  1429. if (isNaN(rest)) {
  1430. return acc;
  1431. }
  1432. switch (first) {
  1433. case 'grow':
  1434. acc.size = acc.size + rest;
  1435. break;
  1436. case 'shrink':
  1437. acc.size = acc.size - rest;
  1438. break;
  1439. case 'left':
  1440. acc.x = acc.x - rest;
  1441. break;
  1442. case 'right':
  1443. acc.x = acc.x + rest;
  1444. break;
  1445. case 'up':
  1446. acc.y = acc.y - rest;
  1447. break;
  1448. case 'down':
  1449. acc.y = acc.y + rest;
  1450. break;
  1451. case 'rotate':
  1452. acc.rotate = acc.rotate + rest;
  1453. break;
  1454. }
  1455. return acc;
  1456. }, transform);
  1457. }
  1458. };
  1459. function transformParser (node) {
  1460. return parseTransformString(node.getAttribute('data-fa-transform'));
  1461. }
  1462. function symbolParser (node) {
  1463. var symbol = node.getAttribute('data-fa-symbol');
  1464. return symbol === null ? false : symbol === '' ? true : symbol;
  1465. }
  1466. function attributesParser (node) {
  1467. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1468. if (acc.name !== 'class' && acc.name !== 'style') {
  1469. acc[attr.name] = attr.value;
  1470. }
  1471. return acc;
  1472. }, {});
  1473. var title = node.getAttribute('title');
  1474. if (config.autoA11y) {
  1475. if (title) {
  1476. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1477. } else {
  1478. extraAttributes['aria-hidden'] = 'true';
  1479. extraAttributes['focusable'] = 'false';
  1480. }
  1481. }
  1482. return extraAttributes;
  1483. }
  1484. function maskParser (node) {
  1485. var mask = node.getAttribute('data-fa-mask');
  1486. if (!mask) {
  1487. return emptyCanonicalIcon();
  1488. } else {
  1489. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1490. return i.trim();
  1491. }));
  1492. }
  1493. }
  1494. function blankMeta() {
  1495. return {
  1496. iconName: null,
  1497. title: null,
  1498. prefix: null,
  1499. transform: meaninglessTransform,
  1500. symbol: false,
  1501. mask: null,
  1502. extra: {
  1503. classes: [],
  1504. styles: {},
  1505. attributes: {}
  1506. }
  1507. };
  1508. }
  1509. function parseMeta(node) {
  1510. var _classParser = classParser(node),
  1511. iconName = _classParser.iconName,
  1512. prefix = _classParser.prefix,
  1513. extraClasses = _classParser.rest;
  1514. var extraStyles = styleParser(node);
  1515. var transform = transformParser(node);
  1516. var symbol = symbolParser(node);
  1517. var extraAttributes = attributesParser(node);
  1518. var mask = maskParser(node);
  1519. return {
  1520. iconName: iconName,
  1521. title: node.getAttribute('title'),
  1522. prefix: prefix,
  1523. transform: transform,
  1524. symbol: symbol,
  1525. mask: mask,
  1526. extra: {
  1527. classes: extraClasses,
  1528. styles: extraStyles,
  1529. attributes: extraAttributes
  1530. }
  1531. };
  1532. }
  1533. function MissingIcon(error) {
  1534. this.name = 'MissingIcon';
  1535. this.message = error || 'Icon unavailable';
  1536. this.stack = new Error().stack;
  1537. }
  1538. MissingIcon.prototype = Object.create(Error.prototype);
  1539. MissingIcon.prototype.constructor = MissingIcon;
  1540. var FILL = {
  1541. fill: 'currentColor'
  1542. };
  1543. var ANIMATION_BASE = {
  1544. attributeType: 'XML',
  1545. repeatCount: 'indefinite',
  1546. dur: '2s'
  1547. };
  1548. var RING = {
  1549. tag: 'path',
  1550. attributes: _objectSpread({}, FILL, {
  1551. 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'
  1552. })
  1553. };
  1554. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1555. attributeName: 'opacity'
  1556. });
  1557. var DOT = {
  1558. tag: 'circle',
  1559. attributes: _objectSpread({}, FILL, {
  1560. cx: '256',
  1561. cy: '364',
  1562. r: '28'
  1563. }),
  1564. children: [{
  1565. tag: 'animate',
  1566. attributes: _objectSpread({}, ANIMATION_BASE, {
  1567. attributeName: 'r',
  1568. values: '28;14;28;28;14;28;'
  1569. })
  1570. }, {
  1571. tag: 'animate',
  1572. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1573. values: '1;0;1;1;0;1;'
  1574. })
  1575. }]
  1576. };
  1577. var QUESTION = {
  1578. tag: 'path',
  1579. attributes: _objectSpread({}, FILL, {
  1580. opacity: '1',
  1581. 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'
  1582. }),
  1583. children: [{
  1584. tag: 'animate',
  1585. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1586. values: '1;0;0;0;0;1;'
  1587. })
  1588. }]
  1589. };
  1590. var EXCLAMATION = {
  1591. tag: 'path',
  1592. attributes: _objectSpread({}, FILL, {
  1593. opacity: '0',
  1594. 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'
  1595. }),
  1596. children: [{
  1597. tag: 'animate',
  1598. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1599. values: '0;0;1;1;0;0;'
  1600. })
  1601. }]
  1602. };
  1603. var missing = {
  1604. tag: 'g',
  1605. children: [RING, DOT, QUESTION, EXCLAMATION]
  1606. };
  1607. var styles$2 = namespace.styles;
  1608. function asFoundIcon(icon) {
  1609. var width = icon[0];
  1610. var height = icon[1];
  1611. var _icon$slice = icon.slice(4),
  1612. _icon$slice2 = _slicedToArray(_icon$slice, 1),
  1613. vectorData = _icon$slice2[0];
  1614. var element = null;
  1615. if (Array.isArray(vectorData)) {
  1616. element = {
  1617. tag: 'g',
  1618. attributes: {
  1619. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
  1620. },
  1621. children: [{
  1622. tag: 'path',
  1623. attributes: {
  1624. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
  1625. fill: 'currentColor',
  1626. d: vectorData[0]
  1627. }
  1628. }, {
  1629. tag: 'path',
  1630. attributes: {
  1631. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
  1632. fill: 'currentColor',
  1633. d: vectorData[1]
  1634. }
  1635. }]
  1636. };
  1637. } else {
  1638. element = {
  1639. tag: 'path',
  1640. attributes: {
  1641. fill: 'currentColor',
  1642. d: vectorData
  1643. }
  1644. };
  1645. }
  1646. return {
  1647. found: true,
  1648. width: width,
  1649. height: height,
  1650. icon: element
  1651. };
  1652. }
  1653. function findIcon(iconName, prefix) {
  1654. return new picked(function (resolve, reject) {
  1655. var val = {
  1656. found: false,
  1657. width: 512,
  1658. height: 512,
  1659. icon: missing
  1660. };
  1661. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1662. var icon = styles$2[prefix][iconName];
  1663. return resolve(asFoundIcon(icon));
  1664. }
  1665. var headers = {};
  1666. if (_typeof(WINDOW.FontAwesomeKitConfig) === 'object' && typeof window.FontAwesomeKitConfig.token === 'string') {
  1667. headers['fa-kit-token'] = WINDOW.FontAwesomeKitConfig.token;
  1668. }
  1669. if (iconName && prefix && !config.showMissingIcons) {
  1670. reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
  1671. } else {
  1672. resolve(val);
  1673. }
  1674. });
  1675. }
  1676. var styles$3 = namespace.styles;
  1677. function generateSvgReplacementMutation(node, nodeMeta) {
  1678. var iconName = nodeMeta.iconName,
  1679. title = nodeMeta.title,
  1680. prefix = nodeMeta.prefix,
  1681. transform = nodeMeta.transform,
  1682. symbol = nodeMeta.symbol,
  1683. mask = nodeMeta.mask,
  1684. extra = nodeMeta.extra;
  1685. return new picked(function (resolve, reject) {
  1686. picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
  1687. var _ref2 = _slicedToArray(_ref, 2),
  1688. main = _ref2[0],
  1689. mask = _ref2[1];
  1690. resolve([node, makeInlineSvgAbstract({
  1691. icons: {
  1692. main: main,
  1693. mask: mask
  1694. },
  1695. prefix: prefix,
  1696. iconName: iconName,
  1697. transform: transform,
  1698. symbol: symbol,
  1699. mask: mask,
  1700. title: title,
  1701. extra: extra,
  1702. watchable: true
  1703. })]);
  1704. });
  1705. });
  1706. }
  1707. function generateLayersText(node, nodeMeta) {
  1708. var title = nodeMeta.title,
  1709. transform = nodeMeta.transform,
  1710. extra = nodeMeta.extra;
  1711. var width = null;
  1712. var height = null;
  1713. if (IS_IE) {
  1714. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1715. var boundingClientRect = node.getBoundingClientRect();
  1716. width = boundingClientRect.width / computedFontSize;
  1717. height = boundingClientRect.height / computedFontSize;
  1718. }
  1719. if (config.autoA11y && !title) {
  1720. extra.attributes['aria-hidden'] = 'true';
  1721. }
  1722. return picked.resolve([node, makeLayersTextAbstract({
  1723. content: node.innerHTML,
  1724. width: width,
  1725. height: height,
  1726. transform: transform,
  1727. title: title,
  1728. extra: extra,
  1729. watchable: true
  1730. })]);
  1731. }
  1732. function generateMutation(node) {
  1733. var nodeMeta = parseMeta(node);
  1734. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1735. return generateLayersText(node, nodeMeta);
  1736. } else {
  1737. return generateSvgReplacementMutation(node, nodeMeta);
  1738. }
  1739. }
  1740. function onTree(root) {
  1741. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1742. if (!IS_DOM) return;
  1743. var htmlClassList = DOCUMENT.documentElement.classList;
  1744. var hclAdd = function hclAdd(suffix) {
  1745. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1746. };
  1747. var hclRemove = function hclRemove(suffix) {
  1748. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1749. };
  1750. var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  1751. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1752. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1753. })).join(', ');
  1754. if (prefixesDomQuery.length === 0) {
  1755. return;
  1756. }
  1757. var candidates = [];
  1758. try {
  1759. candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1760. } catch (e) {// noop
  1761. }
  1762. if (candidates.length > 0) {
  1763. hclAdd('pending');
  1764. hclRemove('complete');
  1765. } else {
  1766. return;
  1767. }
  1768. var mark = perf.begin('onTree');
  1769. var mutations = candidates.reduce(function (acc, node) {
  1770. try {
  1771. var mutation = generateMutation(node);
  1772. if (mutation) {
  1773. acc.push(mutation);
  1774. }
  1775. } catch (e) {
  1776. if (!PRODUCTION) {
  1777. if (e instanceof MissingIcon) {
  1778. console.error(e);
  1779. }
  1780. }
  1781. }
  1782. return acc;
  1783. }, []);
  1784. return new picked(function (resolve, reject) {
  1785. picked.all(mutations).then(function (resolvedMutations) {
  1786. perform(resolvedMutations, function () {
  1787. hclAdd('active');
  1788. hclAdd('complete');
  1789. hclRemove('pending');
  1790. if (typeof callback === 'function') callback();
  1791. mark();
  1792. resolve();
  1793. });
  1794. }).catch(function () {
  1795. mark();
  1796. reject();
  1797. });
  1798. });
  1799. }
  1800. function onNode(node) {
  1801. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1802. generateMutation(node).then(function (mutation) {
  1803. if (mutation) {
  1804. perform([mutation], callback);
  1805. }
  1806. });
  1807. }
  1808. function replaceForPosition(node, position) {
  1809. var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  1810. return new picked(function (resolve, reject) {
  1811. if (node.getAttribute(pendingAttribute) !== null) {
  1812. // This node is already being processed
  1813. return resolve();
  1814. }
  1815. var children = toArray(node.children);
  1816. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1817. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
  1818. })[0];
  1819. var styles = WINDOW.getComputedStyle(node, position);
  1820. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1821. var fontWeight = styles.getPropertyValue('font-weight');
  1822. if (alreadyProcessedPseudoElement && !fontFamily) {
  1823. // If we've already processed it but the current computed style does not result in a font-family,
  1824. // that probably means that a class name that was previously present to make the icon has been
  1825. // removed. So we now should delete the icon.
  1826. node.removeChild(alreadyProcessedPseudoElement);
  1827. return resolve();
  1828. } else if (fontFamily) {
  1829. var content = styles.getPropertyValue('content');
  1830. var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1831. var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
  1832. var iconName = byUnicode(prefix, hexValue);
  1833. var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1834. // already done so with the same prefix and iconName
  1835. if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
  1836. node.setAttribute(pendingAttribute, iconIdentifier);
  1837. if (alreadyProcessedPseudoElement) {
  1838. // Delete the old one, since we're replacing it with a new one
  1839. node.removeChild(alreadyProcessedPseudoElement);
  1840. }
  1841. var meta = blankMeta();
  1842. var extra = meta.extra;
  1843. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
  1844. findIcon(iconName, prefix).then(function (main) {
  1845. var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
  1846. icons: {
  1847. main: main,
  1848. mask: emptyCanonicalIcon()
  1849. },
  1850. prefix: prefix,
  1851. iconName: iconIdentifier,
  1852. extra: extra,
  1853. watchable: true
  1854. }));
  1855. var element = DOCUMENT.createElement('svg');
  1856. if (position === ':before') {
  1857. node.insertBefore(element, node.firstChild);
  1858. } else {
  1859. node.appendChild(element);
  1860. }
  1861. element.outerHTML = abstract.map(function (a) {
  1862. return toHtml(a);
  1863. }).join('\n');
  1864. node.removeAttribute(pendingAttribute);
  1865. resolve();
  1866. }).catch(reject);
  1867. } else {
  1868. resolve();
  1869. }
  1870. } else {
  1871. resolve();
  1872. }
  1873. });
  1874. }
  1875. function replace(node) {
  1876. return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
  1877. }
  1878. function processable(node) {
  1879. 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');
  1880. }
  1881. function searchPseudoElements (root) {
  1882. if (!IS_DOM) return;
  1883. return new picked(function (resolve, reject) {
  1884. var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
  1885. var end = perf.begin('searchPseudoElements');
  1886. disableObservation();
  1887. picked.all(operations).then(function () {
  1888. end();
  1889. enableObservation();
  1890. resolve();
  1891. }).catch(function () {
  1892. end();
  1893. enableObservation();
  1894. reject();
  1895. });
  1896. });
  1897. }
  1898. 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}";
  1899. function css () {
  1900. var dfp = DEFAULT_FAMILY_PREFIX;
  1901. var drc = DEFAULT_REPLACEMENT_CLASS;
  1902. var fp = config.familyPrefix;
  1903. var rc = config.replacementClass;
  1904. var s = baseStyles;
  1905. if (fp !== dfp || rc !== drc) {
  1906. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1907. var customPropPatt = new RegExp("\\--".concat(dfp, "\\-"), 'g');
  1908. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1909. s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1910. }
  1911. return s;
  1912. }
  1913. var Library =
  1914. /*#__PURE__*/
  1915. function () {
  1916. function Library() {
  1917. _classCallCheck(this, Library);
  1918. this.definitions = {};
  1919. }
  1920. _createClass(Library, [{
  1921. key: "add",
  1922. value: function add() {
  1923. var _this = this;
  1924. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1925. definitions[_key] = arguments[_key];
  1926. }
  1927. var additions = definitions.reduce(this._pullDefinitions, {});
  1928. Object.keys(additions).forEach(function (key) {
  1929. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1930. defineIcons(key, additions[key]);
  1931. build();
  1932. });
  1933. }
  1934. }, {
  1935. key: "reset",
  1936. value: function reset() {
  1937. this.definitions = {};
  1938. }
  1939. }, {
  1940. key: "_pullDefinitions",
  1941. value: function _pullDefinitions(additions, definition) {
  1942. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1943. 0: definition
  1944. } : definition;
  1945. Object.keys(normalized).map(function (key) {
  1946. var _normalized$key = normalized[key],
  1947. prefix = _normalized$key.prefix,
  1948. iconName = _normalized$key.iconName,
  1949. icon = _normalized$key.icon;
  1950. if (!additions[prefix]) additions[prefix] = {};
  1951. additions[prefix][iconName] = icon;
  1952. });
  1953. return additions;
  1954. }
  1955. }]);
  1956. return Library;
  1957. }();
  1958. function ensureCss() {
  1959. if (config.autoAddCss && !_cssInserted) {
  1960. insertCss(css());
  1961. _cssInserted = true;
  1962. }
  1963. }
  1964. function apiObject(val, abstractCreator) {
  1965. Object.defineProperty(val, 'abstract', {
  1966. get: abstractCreator
  1967. });
  1968. Object.defineProperty(val, 'html', {
  1969. get: function get() {
  1970. return val.abstract.map(function (a) {
  1971. return toHtml(a);
  1972. });
  1973. }
  1974. });
  1975. Object.defineProperty(val, 'node', {
  1976. get: function get() {
  1977. if (!IS_DOM) return;
  1978. var container = DOCUMENT.createElement('div');
  1979. container.innerHTML = val.html;
  1980. return container.children;
  1981. }
  1982. });
  1983. return val;
  1984. }
  1985. function findIconDefinition(iconLookup) {
  1986. var _iconLookup$prefix = iconLookup.prefix,
  1987. prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
  1988. iconName = iconLookup.iconName;
  1989. if (!iconName) return;
  1990. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1991. }
  1992. function resolveIcons(next) {
  1993. return function (maybeIconDefinition) {
  1994. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1995. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1996. var mask = params.mask;
  1997. if (mask) {
  1998. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1999. }
  2000. return next(iconDefinition, _objectSpread({}, params, {
  2001. mask: mask
  2002. }));
  2003. };
  2004. }
  2005. var library = new Library();
  2006. var noAuto = function noAuto() {
  2007. config.autoReplaceSvg = false;
  2008. config.observeMutations = false;
  2009. disconnect();
  2010. };
  2011. var _cssInserted = false;
  2012. var dom = {
  2013. i2svg: function i2svg() {
  2014. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2015. if (IS_DOM) {
  2016. ensureCss();
  2017. var _params$node = params.node,
  2018. node = _params$node === void 0 ? DOCUMENT : _params$node,
  2019. _params$callback = params.callback,
  2020. callback = _params$callback === void 0 ? function () {} : _params$callback;
  2021. if (config.searchPseudoElements) {
  2022. searchPseudoElements(node);
  2023. }
  2024. return onTree(node, callback);
  2025. } else {
  2026. return picked.reject('Operation requires a DOM of some kind.');
  2027. }
  2028. },
  2029. css: css,
  2030. insertCss: function insertCss$$1() {
  2031. if (!_cssInserted) {
  2032. insertCss(css());
  2033. _cssInserted = true;
  2034. }
  2035. },
  2036. watch: function watch() {
  2037. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2038. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  2039. observeMutationsRoot = params.observeMutationsRoot;
  2040. if (config.autoReplaceSvg === false) {
  2041. config.autoReplaceSvg = true;
  2042. }
  2043. config.observeMutations = true;
  2044. domready(function () {
  2045. autoReplace({
  2046. autoReplaceSvgRoot: autoReplaceSvgRoot
  2047. });
  2048. observe({
  2049. treeCallback: onTree,
  2050. nodeCallback: onNode,
  2051. pseudoElementsCallback: searchPseudoElements,
  2052. observeMutationsRoot: observeMutationsRoot
  2053. });
  2054. });
  2055. }
  2056. };
  2057. var parse = {
  2058. transform: function transform(transformString) {
  2059. return parseTransformString(transformString);
  2060. }
  2061. };
  2062. var icon = resolveIcons(function (iconDefinition) {
  2063. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2064. var _params$transform = params.transform,
  2065. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  2066. _params$symbol = params.symbol,
  2067. symbol = _params$symbol === void 0 ? false : _params$symbol,
  2068. _params$mask = params.mask,
  2069. mask = _params$mask === void 0 ? null : _params$mask,
  2070. _params$title = params.title,
  2071. title = _params$title === void 0 ? null : _params$title,
  2072. _params$classes = params.classes,
  2073. classes = _params$classes === void 0 ? [] : _params$classes,
  2074. _params$attributes = params.attributes,
  2075. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  2076. _params$styles = params.styles,
  2077. styles = _params$styles === void 0 ? {} : _params$styles;
  2078. if (!iconDefinition) return;
  2079. var prefix = iconDefinition.prefix,
  2080. iconName = iconDefinition.iconName,
  2081. icon = iconDefinition.icon;
  2082. return apiObject(_objectSpread({
  2083. type: 'icon'
  2084. }, iconDefinition), function () {
  2085. ensureCss();
  2086. if (config.autoA11y) {
  2087. if (title) {
  2088. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  2089. } else {
  2090. attributes['aria-hidden'] = 'true';
  2091. attributes['focusable'] = 'false';
  2092. }
  2093. }
  2094. return makeInlineSvgAbstract({
  2095. icons: {
  2096. main: asFoundIcon(icon),
  2097. mask: mask ? asFoundIcon(mask.icon) : {
  2098. found: false,
  2099. width: null,
  2100. height: null,
  2101. icon: {}
  2102. }
  2103. },
  2104. prefix: prefix,
  2105. iconName: iconName,
  2106. transform: _objectSpread({}, meaninglessTransform, transform),
  2107. symbol: symbol,
  2108. title: title,
  2109. extra: {
  2110. attributes: attributes,
  2111. styles: styles,
  2112. classes: classes
  2113. }
  2114. });
  2115. });
  2116. });
  2117. var text = function text(content) {
  2118. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2119. var _params$transform2 = params.transform,
  2120. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  2121. _params$title2 = params.title,
  2122. title = _params$title2 === void 0 ? null : _params$title2,
  2123. _params$classes2 = params.classes,
  2124. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  2125. _params$attributes2 = params.attributes,
  2126. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  2127. _params$styles2 = params.styles,
  2128. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  2129. return apiObject({
  2130. type: 'text',
  2131. content: content
  2132. }, function () {
  2133. ensureCss();
  2134. return makeLayersTextAbstract({
  2135. content: content,
  2136. transform: _objectSpread({}, meaninglessTransform, transform),
  2137. title: title,
  2138. extra: {
  2139. attributes: attributes,
  2140. styles: styles,
  2141. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  2142. }
  2143. });
  2144. });
  2145. };
  2146. var counter = function counter(content) {
  2147. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2148. var _params$title3 = params.title,
  2149. title = _params$title3 === void 0 ? null : _params$title3,
  2150. _params$classes3 = params.classes,
  2151. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  2152. _params$attributes3 = params.attributes,
  2153. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  2154. _params$styles3 = params.styles,
  2155. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  2156. return apiObject({
  2157. type: 'counter',
  2158. content: content
  2159. }, function () {
  2160. ensureCss();
  2161. return makeLayersCounterAbstract({
  2162. content: content.toString(),
  2163. title: title,
  2164. extra: {
  2165. attributes: attributes,
  2166. styles: styles,
  2167. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  2168. }
  2169. });
  2170. });
  2171. };
  2172. var layer = function layer(assembler) {
  2173. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2174. var _params$classes4 = params.classes,
  2175. classes = _params$classes4 === void 0 ? [] : _params$classes4;
  2176. return apiObject({
  2177. type: 'layer'
  2178. }, function () {
  2179. ensureCss();
  2180. var children = [];
  2181. assembler(function (args) {
  2182. Array.isArray(args) ? args.map(function (a) {
  2183. children = children.concat(a.abstract);
  2184. }) : children = children.concat(args.abstract);
  2185. });
  2186. return [{
  2187. tag: 'span',
  2188. attributes: {
  2189. class: ["".concat(config.familyPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
  2190. },
  2191. children: children
  2192. }];
  2193. });
  2194. };
  2195. var api = {
  2196. noAuto: noAuto,
  2197. config: config,
  2198. dom: dom,
  2199. library: library,
  2200. parse: parse,
  2201. findIconDefinition: findIconDefinition,
  2202. icon: icon,
  2203. text: text,
  2204. counter: counter,
  2205. layer: layer,
  2206. toHtml: toHtml
  2207. };
  2208. var autoReplace = function autoReplace() {
  2209. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2210. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  2211. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  2212. if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  2213. node: autoReplaceSvgRoot
  2214. });
  2215. };
  2216. /* 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))
  2217. /***/ }),
  2218. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  2219. /*!**************************************************************************************!*\
  2220. !*** E:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  2221. \**************************************************************************************/
  2222. /*! exports provided: fas, prefix, faAd, faAddressBook, faAddressCard, faAdjust, faAirFreshener, faAlignCenter, faAlignJustify, faAlignLeft, faAlignRight, faAllergies, faAmbulance, faAmericanSignLanguageInterpreting, faAnchor, faAngleDoubleDown, faAngleDoubleLeft, faAngleDoubleRight, faAngleDoubleUp, faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAngry, faAnkh, faAppleAlt, faArchive, faArchway, faArrowAltCircleDown, faArrowAltCircleLeft, faArrowAltCircleRight, faArrowAltCircleUp, faArrowCircleDown, faArrowCircleLeft, faArrowCircleRight, faArrowCircleUp, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAlt, faArrowsAltH, faArrowsAltV, faAssistiveListeningSystems, faAsterisk, faAt, faAtlas, faAtom, faAudioDescription, faAward, faBackspace, faBackward, faBalanceScale, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBinoculars, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookOpen, faBookReader, faBookmark, faBowlingBall, faBox, faBoxOpen, faBoxes, faBraille, faBrain, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCamera, faCameraRetro, faCampground, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCartArrowDown, faCartPlus, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMoon, faCloudSun, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCube, faCubes, faCut, faDatabase, faDeaf, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDungeon, faEdit, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFastBackward, faFastForward, faFax, faFeather, faFeatherAlt, faFemale, faFighterJet, faFile, faFileAlt, faFileArchive, faFileAudio, faFileCode, faFileContract, faFileCsv, faFileDownload, faFileExcel, faFileExport, faFileImage, faFileImport, faFileInvoice, faFileInvoiceDollar, faFileMedical, faFileMedicalAlt, faFilePdf, faFilePowerpoint, faFilePrescription, faFileSignature, faFileUpload, faFileVideo, faFileWord, faFill, faFillDrip, faFilm, faFilter, faFingerprint, faFire, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGlassMartini, faGlassMartiniAlt, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripVertical, faHSquare, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingUsd, faHandLizard, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSpock, faHands, faHandsHelping, faHandshake, faHanukiah, faHashtag, faHatWizard, faHaykal, faHdd, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHome, faHorse, faHospital, faHospitalAlt, faHospitalSymbol, faHotTub, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHryvnia, faICursor, faIdBadge, faIdCard, faIdCardAlt, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaugh, faLaughBeam, faLaughSquint, faLaughWink, faLayerGroup, faLeaf, faLemon, faLessThan, faLessThanEqual, faLevelDownAlt, faLevelUpAlt, faLifeRing, faLightbulb, faLink, faLiraSign, faList, faListAlt, faListOl, faListUl, faLocationArrow, faLock, faLockOpen, faLongArrowAltDown, faLongArrowAltLeft, faLongArrowAltRight, faLongArrowAltUp, faLowVision, faLuggageCart, faMagic, faMagnet, faMailBulk, faMale, faMap, faMapMarked, faMapMarkedAlt, faMapMarker, faMapMarkerAlt, faMapPin, faMapSigns, faMarker, faMars, faMarsDouble, faMarsStroke, faMarsStrokeH, faMarsStrokeV, faMask, faMedal, faMedkit, faMeh, faMehBlank, faMehRollingEyes, faMemory, faMenorah, faMercury, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMousePointer, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleCarry, faPercent, faPercentage, faPhone, faPhoneSlash, faPhoneSquare, faPhoneVolume, faPiggyBank, faPills, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRandom, faReceipt, faRecycle, faRedo, faRedoAlt, faRegistered, faReply, faReplyAll, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSave, faSchool, faScrewdriver, faScroll, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSitemap, faSkull, faSkullCrossbones, faSlash, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmoking, faSmokingBan, faSnowflake, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaUp, faSortAmountDown, faSortAmountUp, faSortDown, faSortNumericDown, faSortNumericUp, faSortUp, faSpa, faSpaceShuttle, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStore, faStoreAlt, faStream, faStreetView, faStrikethrough, faStroopwafel, faSubscript, faSubway, faSuitcase, faSuitcaseRolling, faSun, faSuperscript, faSurprise, faSwatchbook, faSwimmer, faSwimmingPool, faSynagogue, faSync, faSyncAlt, faSyringe, faTable, faTableTennis, faTablet, faTabletAlt, faTablets, faTachometerAlt, faTag, faTags, faTape, faTasks, faTaxi, faTeeth, faTeethOpen, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToiletPaper, faToolbox, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrain, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTree, faTrophy, faTruck, faTruckLoading, faTruckMonster, faTruckMoving, faTruckPickup, faTshirt, faTty, faTv, faUmbrella, faUmbrellaBeach, faUnderline, faUndo, faUndoAlt, faUniversalAccess, faUniversity, faUnlink, faUnlock, faUnlockAlt, faUpload, faUser, faUserAlt, faUserAltSlash, faUserAstronaut, faUserCheck, faUserCircle, faUserClock, faUserCog, faUserEdit, faUserFriends, faUserGraduate, faUserInjured, faUserLock, faUserMd, faUserMinus, faUserNinja, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVrCardboard, faWalking, faWallet, faWarehouse, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  2223. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2224. "use strict";
  2225. __webpack_require__.r(__webpack_exports__);
  2226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  2227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  2229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  2230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  2231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  2232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  2233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  2234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  2235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  2236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  2237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  2238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  2239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  2240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  2241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  2242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  2243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  2244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  2907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  2908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  2909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  2910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  2912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  2913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  2914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  2916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  2918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  2919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  2920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  2921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  2922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  2923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  2925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  2927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  2928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  2929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  2930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  2931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  2932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  2933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  2934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  2935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  2936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  2937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  2939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  2941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  2942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  2943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  2944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  2945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  2946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  2947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  2948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  2949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  2950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  2951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  2952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  2954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  2955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  2956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  2957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  2958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  2959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  2960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  2961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  2966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  2968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  2980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  2981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  2985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  2986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  2987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  2988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  2989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  2990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  2991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  2992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  2993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  2994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  2995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  2996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  2998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  2999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  3000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  3001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  3002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  3003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  3004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  3005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  3006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  3007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  3008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  3009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  3010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  3011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  3012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  3013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  3014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  3015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  3016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  3017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  3018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  3019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  3020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  3021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  3022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  3023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  3024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  3025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  3026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  3027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  3028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  3029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  3030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  3031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  3032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  3033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  3034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  3035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  3036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  3037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  3038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  3039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  3040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  3041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  3042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  3043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  3044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  3045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  3046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  3047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  3048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  3049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  3050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  3051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  3052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  3053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  3054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  3055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  3056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  3057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  3058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  3059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  3060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  3061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  3062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  3063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  3064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  3065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  3066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  3067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  3068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  3069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  3070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  3071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  3072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  3073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  3074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  3075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  3076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  3077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  3078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  3079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  3080. /*!
  3081. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  3082. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  3083. */
  3084. var prefix = "fas";
  3085. var faAd = { prefix: 'fas', iconName: 'ad', icon: [512, 512, [], "f641", "M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"] };
  3086. var faAddressBook = { prefix: 'fas', iconName: 'address-book', icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3087. var faAddressCard = { prefix: 'fas', iconName: 'address-card', icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  3088. var faAdjust = { prefix: 'fas', iconName: 'adjust', icon: [512, 512, [], "f042", "M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"] };
  3089. var faAirFreshener = { prefix: 'fas', iconName: 'air-freshener', icon: [384, 512, [], "f5d0", "M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"] };
  3090. var faAlignCenter = { prefix: 'fas', iconName: 'align-center', icon: [448, 512, [], "f037", "M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  3091. var faAlignJustify = { prefix: 'fas', iconName: 'align-justify', icon: [448, 512, [], "f039", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3092. var faAlignLeft = { prefix: 'fas', iconName: 'align-left', icon: [448, 512, [], "f036", "M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  3093. var faAlignRight = { prefix: 'fas', iconName: 'align-right', icon: [448, 512, [], "f038", "M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3094. var faAllergies = { prefix: 'fas', iconName: 'allergies', icon: [448, 512, [], "f461", "M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3095. var faAmbulance = { prefix: 'fas', iconName: 'ambulance', icon: [640, 512, [], "f0f9", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3096. var faAmericanSignLanguageInterpreting = { prefix: 'fas', iconName: 'american-sign-language-interpreting', icon: [640, 512, [], "f2a3", "M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"] };
  3097. var faAnchor = { prefix: 'fas', iconName: 'anchor', icon: [576, 512, [], "f13d", "M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"] };
  3098. var faAngleDoubleDown = { prefix: 'fas', iconName: 'angle-double-down', icon: [320, 512, [], "f103", "M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"] };
  3099. var faAngleDoubleLeft = { prefix: 'fas', iconName: 'angle-double-left', icon: [448, 512, [], "f100", "M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"] };
  3100. var faAngleDoubleRight = { prefix: 'fas', iconName: 'angle-double-right', icon: [448, 512, [], "f101", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"] };
  3101. var faAngleDoubleUp = { prefix: 'fas', iconName: 'angle-double-up', icon: [320, 512, [], "f102", "M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"] };
  3102. var faAngleDown = { prefix: 'fas', iconName: 'angle-down', icon: [320, 512, [], "f107", "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"] };
  3103. var faAngleLeft = { prefix: 'fas', iconName: 'angle-left', icon: [256, 512, [], "f104", "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"] };
  3104. var faAngleRight = { prefix: 'fas', iconName: 'angle-right', icon: [256, 512, [], "f105", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"] };
  3105. var faAngleUp = { prefix: 'fas', iconName: 'angle-up', icon: [320, 512, [], "f106", "M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"] };
  3106. var faAngry = { prefix: 'fas', iconName: 'angry', icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"] };
  3107. var faAnkh = { prefix: 'fas', iconName: 'ankh', icon: [320, 512, [], "f644", "M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"] };
  3108. var faAppleAlt = { prefix: 'fas', iconName: 'apple-alt', icon: [448, 512, [], "f5d1", "M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"] };
  3109. var faArchive = { prefix: 'fas', iconName: 'archive', icon: [512, 512, [], "f187", "M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"] };
  3110. var faArchway = { prefix: 'fas', iconName: 'archway', icon: [576, 512, [], "f557", "M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3111. var faArrowAltCircleDown = { prefix: 'fas', iconName: 'arrow-alt-circle-down', icon: [512, 512, [], "f358", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"] };
  3112. var faArrowAltCircleLeft = { prefix: 'fas', iconName: 'arrow-alt-circle-left', icon: [512, 512, [], "f359", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"] };
  3113. var faArrowAltCircleRight = { prefix: 'fas', iconName: 'arrow-alt-circle-right', icon: [512, 512, [], "f35a", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"] };
  3114. var faArrowAltCircleUp = { prefix: 'fas', iconName: 'arrow-alt-circle-up', icon: [512, 512, [], "f35b", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"] };
  3115. var faArrowCircleDown = { prefix: 'fas', iconName: 'arrow-circle-down', icon: [512, 512, [], "f0ab", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"] };
  3116. var faArrowCircleLeft = { prefix: 'fas', iconName: 'arrow-circle-left', icon: [512, 512, [], "f0a8", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"] };
  3117. var faArrowCircleRight = { prefix: 'fas', iconName: 'arrow-circle-right', icon: [512, 512, [], "f0a9", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"] };
  3118. var faArrowCircleUp = { prefix: 'fas', iconName: 'arrow-circle-up', icon: [512, 512, [], "f0aa", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"] };
  3119. var faArrowDown = { prefix: 'fas', iconName: 'arrow-down', icon: [448, 512, [], "f063", "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"] };
  3120. var faArrowLeft = { prefix: 'fas', iconName: 'arrow-left', icon: [448, 512, [], "f060", "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"] };
  3121. var faArrowRight = { prefix: 'fas', iconName: 'arrow-right', icon: [448, 512, [], "f061", "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"] };
  3122. var faArrowUp = { prefix: 'fas', iconName: 'arrow-up', icon: [448, 512, [], "f062", "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"] };
  3123. var faArrowsAlt = { prefix: 'fas', iconName: 'arrows-alt', icon: [512, 512, [], "f0b2", "M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"] };
  3124. var faArrowsAltH = { prefix: 'fas', iconName: 'arrows-alt-h', icon: [512, 512, [], "f337", "M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"] };
  3125. var faArrowsAltV = { prefix: 'fas', iconName: 'arrows-alt-v', icon: [256, 512, [], "f338", "M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"] };
  3126. var faAssistiveListeningSystems = { prefix: 'fas', iconName: 'assistive-listening-systems', icon: [512, 512, [], "f2a2", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"] };
  3127. var faAsterisk = { prefix: 'fas', iconName: 'asterisk', icon: [512, 512, [], "f069", "M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"] };
  3128. var faAt = { prefix: 'fas', iconName: 'at', icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"] };
  3129. var faAtlas = { prefix: 'fas', iconName: 'atlas', icon: [448, 512, [], "f558", "M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"] };
  3130. var faAtom = { prefix: 'fas', iconName: 'atom', icon: [448, 512, [], "f5d2", "M413.03 256c40.13-54.89 41.51-98.62 25.14-128-10.91-19.52-40.54-50.73-116.33-41.88C300.36 34.89 267.64 0 224 0s-76.36 34.89-97.84 86.12C50.43 77.34 20.73 108.48 9.83 128c-16.38 29.4-15 73.09 25.14 128-40.13 54.89-41.51 98.62-25.14 128 29.21 52.34 101.68 43.58 116.33 41.88C147.63 477.1 180.36 512 224 512s76.37-34.9 97.84-86.12c14.64 1.7 87.11 10.46 116.33-41.88 16.38-29.4 15-73.09-25.14-128zM63.38 352c-4.03-7.21-.19-24.8 14.95-48.29 6.96 6.53 14.2 12.89 21.87 19.18 1.71 13.71 4 27.08 6.76 40.08-24.56.89-39.89-4.37-43.58-10.97zm36.82-162.88c-7.66 6.29-14.9 12.65-21.87 19.18-15.13-23.5-18.97-41.09-14.95-48.3 3.41-6.14 16.39-11.47 37.92-11.47 1.71 0 3.87.3 5.69.37a472.191 472.191 0 0 0-6.79 40.22zM224 64c9.47 0 22.2 13.52 33.86 37.26-11.19 3.7-22.44 8-33.86 12.86-11.42-4.86-22.67-9.16-33.86-12.86C201.8 77.52 214.53 64 224 64zm0 384c-9.47 0-22.2-13.52-33.86-37.26 11.19-3.7 22.44-8 33.86-12.86 11.42 4.86 22.67 9.16 33.86 12.86C246.2 434.48 233.47 448 224 448zm62.5-157.33c-26.7 19.08-46.14 29.33-62.5 37.48-16.35-8.14-35.8-18.41-62.5-37.48-1.99-27.79-1.99-41.54 0-69.33 26.67-19.05 46.13-29.32 62.5-37.48 16.39 8.17 35.86 18.44 62.5 37.48 1.98 27.78 1.99 41.53 0 69.33zM384.62 352c-3.67 6.62-19 11.82-43.58 10.95 2.76-13 5.05-26.37 6.76-40.06 7.66-6.29 14.9-12.65 21.87-19.18 15.13 23.49 18.97 41.08 14.95 48.29zm-14.95-143.71c-6.96-6.53-14.2-12.89-21.87-19.18a473.535 473.535 0 0 0-6.79-40.22c1.82-.07 3.97-.37 5.69-.37 21.52 0 34.51 5.34 37.92 11.47 4.02 7.22.18 24.81-14.95 48.3zM224 224c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3131. var faAudioDescription = { prefix: 'fas', iconName: 'audio-description', icon: [512, 512, [], "f29e", "M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"] };
  3132. var faAward = { prefix: 'fas', iconName: 'award', icon: [384, 512, [], "f559", "M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"] };
  3133. var faBackspace = { prefix: 'fas', iconName: 'backspace', icon: [640, 512, [], "f55a", "M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"] };
  3134. var faBackward = { prefix: 'fas', iconName: 'backward', icon: [512, 512, [], "f04a", "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"] };
  3135. var faBalanceScale = { prefix: 'fas', iconName: 'balance-scale', icon: [640, 512, [], "f24e", "M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3136. var faBan = { prefix: 'fas', iconName: 'ban', icon: [512, 512, [], "f05e", "M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"] };
  3137. var faBandAid = { prefix: 'fas', iconName: 'band-aid', icon: [640, 512, [], "f462", "M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"] };
  3138. var faBarcode = { prefix: 'fas', iconName: 'barcode', icon: [512, 512, [], "f02a", "M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"] };
  3139. var faBars = { prefix: 'fas', iconName: 'bars', icon: [448, 512, [], "f0c9", "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3140. var faBaseballBall = { prefix: 'fas', iconName: 'baseball-ball', icon: [496, 512, [], "f433", "M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"] };
  3141. var faBasketballBall = { prefix: 'fas', iconName: 'basketball-ball', icon: [496, 512, [], "f434", "M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"] };
  3142. var faBath = { prefix: 'fas', iconName: 'bath', icon: [512, 512, [], "f2cd", "M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  3143. var faBatteryEmpty = { prefix: 'fas', iconName: 'battery-empty', icon: [640, 512, [], "f244", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"] };
  3144. var faBatteryFull = { prefix: 'fas', iconName: 'battery-full', icon: [640, 512, [], "f240", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"] };
  3145. var faBatteryHalf = { prefix: 'fas', iconName: 'battery-half', icon: [640, 512, [], "f242", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"] };
  3146. var faBatteryQuarter = { prefix: 'fas', iconName: 'battery-quarter', icon: [640, 512, [], "f243", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"] };
  3147. var faBatteryThreeQuarters = { prefix: 'fas', iconName: 'battery-three-quarters', icon: [640, 512, [], "f241", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"] };
  3148. var faBed = { prefix: 'fas', iconName: 'bed', icon: [640, 512, [], "f236", "M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"] };
  3149. var faBeer = { prefix: 'fas', iconName: 'beer', icon: [448, 512, [], "f0fc", "M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"] };
  3150. var faBell = { prefix: 'fas', iconName: 'bell', icon: [448, 512, [], "f0f3", "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"] };
  3151. var faBellSlash = { prefix: 'fas', iconName: 'bell-slash', icon: [640, 512, [], "f1f6", "M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"] };
  3152. var faBezierCurve = { prefix: 'fas', iconName: 'bezier-curve', icon: [640, 512, [], "f55b", "M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3153. var faBible = { prefix: 'fas', iconName: 'bible', icon: [448, 512, [], "f647", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3154. var faBicycle = { prefix: 'fas', iconName: 'bicycle', icon: [640, 512, [], "f206", "M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"] };
  3155. var faBinoculars = { prefix: 'fas', iconName: 'binoculars', icon: [512, 512, [], "f1e5", "M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"] };
  3156. var faBirthdayCake = { prefix: 'fas', iconName: 'birthday-cake', icon: [448, 512, [], "f1fd", "M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"] };
  3157. var faBlender = { prefix: 'fas', iconName: 'blender', icon: [512, 512, [], "f517", "M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"] };
  3158. var faBlenderPhone = { prefix: 'fas', iconName: 'blender-phone', icon: [576, 512, [], "f6b6", "M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3159. var faBlind = { prefix: 'fas', iconName: 'blind', icon: [384, 512, [], "f29d", "M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"] };
  3160. var faBold = { prefix: 'fas', iconName: 'bold', icon: [384, 512, [], "f032", "M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"] };
  3161. var faBolt = { prefix: 'fas', iconName: 'bolt', icon: [320, 512, [], "f0e7", "M295.973 160H180.572L215.19 30.184C219.25 14.956 207.756 0 192 0H56C43.971 0 33.8 8.905 32.211 20.828l-31.996 240C-1.704 275.217 9.504 288 24.004 288h118.701L96.646 482.466C93.05 497.649 104.659 512 119.992 512c8.35 0 16.376-4.374 20.778-11.978l175.973-303.997c9.244-15.967-2.288-36.025-20.77-36.025z"] };
  3162. var faBomb = { prefix: 'fas', iconName: 'bomb', icon: [512, 512, [], "f1e2", "M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"] };
  3163. var faBone = { prefix: 'fas', iconName: 'bone', icon: [640, 512, [], "f5d7", "M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"] };
  3164. var faBong = { prefix: 'fas', iconName: 'bong', icon: [448, 512, [], "f55c", "M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"] };
  3165. var faBook = { prefix: 'fas', iconName: 'book', icon: [448, 512, [], "f02d", "M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"] };
  3166. var faBookDead = { prefix: 'fas', iconName: 'book-dead', icon: [448, 512, [], "f6b7", "M272 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.18 0 80 28.65 80 64 0 20.87-12.68 39.23-32 50.91V184c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-13.09c-19.32-11.68-32-30.04-32-50.91 0-35.35 35.82-64 80-64zM129.05 233.85a7.996 7.996 0 0 1-4.2-10.5l6.29-14.7a7.995 7.995 0 0 1 10.51-4.2L240 246.6l98.35-42.15c4.06-1.74 8.77.14 10.51 4.2l6.29 14.7a7.996 7.996 0 0 1-4.2 10.5L280.6 264l70.34 30.15a7.996 7.996 0 0 1 4.2 10.5l-6.29 14.7a8.008 8.008 0 0 1-10.51 4.21L240 281.4l-98.35 42.15a8.003 8.003 0 0 1-10.51-4.21l-6.29-14.7a7.996 7.996 0 0 1 4.2-10.5L199.4 264l-70.35-30.15zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64zM208 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16z"] };
  3167. var faBookOpen = { prefix: 'fas', iconName: 'book-open', icon: [576, 512, [], "f518", "M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"] };
  3168. var faBookReader = { prefix: 'fas', iconName: 'book-reader', icon: [512, 512, [], "f5da", "M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"] };
  3169. var faBookmark = { prefix: 'fas', iconName: 'bookmark', icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"] };
  3170. var faBowlingBall = { prefix: 'fas', iconName: 'bowling-ball', icon: [496, 512, [], "f436", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3171. var faBox = { prefix: 'fas', iconName: 'box', icon: [512, 512, [], "f466", "M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"] };
  3172. var faBoxOpen = { prefix: 'fas', iconName: 'box-open', icon: [640, 512, [], "f49e", "M53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9zm585.1 102.8L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9z"] };
  3173. var faBoxes = { prefix: 'fas', iconName: 'boxes', icon: [576, 512, [], "f468", "M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"] };
  3174. var faBraille = { prefix: 'fas', iconName: 'braille', icon: [640, 512, [], "f2a1", "M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3175. var faBrain = { prefix: 'fas', iconName: 'brain', icon: [576, 512, [], "f5dc", "M208 0c-29.87 0-54.74 20.55-61.8 48.22-.75-.02-1.45-.22-2.2-.22-35.34 0-64 28.65-64 64 0 4.84.64 9.51 1.66 14.04C52.54 138 32 166.57 32 200c0 12.58 3.16 24.32 8.34 34.91C16.34 248.72 0 274.33 0 304c0 33.34 20.42 61.88 49.42 73.89-.9 4.57-1.42 9.28-1.42 14.11 0 39.76 32.23 72 72 72 4.12 0 8.1-.55 12.03-1.21C141.61 491.31 168.25 512 200 512c39.77 0 72-32.24 72-72V205.45c-10.91 8.98-23.98 15.45-38.36 18.39-4.97 1.02-9.64-2.82-9.64-7.89v-16.18c0-3.57 2.35-6.78 5.8-7.66 24.2-6.16 42.2-27.95 42.2-54.04V64c0-35.35-28.66-64-64-64zm368 304c0-29.67-16.34-55.28-40.34-69.09 5.17-10.59 8.34-22.33 8.34-34.91 0-33.43-20.54-62-49.66-73.96 1.02-4.53 1.66-9.2 1.66-14.04 0-35.35-28.66-64-64-64-.75 0-1.45.2-2.2.22C422.74 20.55 397.87 0 368 0c-35.34 0-64 28.65-64 64v74.07c0 26.09 17.99 47.88 42.2 54.04 3.46.88 5.8 4.09 5.8 7.66v16.18c0 5.07-4.68 8.91-9.64 7.89-14.38-2.94-27.44-9.41-38.36-18.39V440c0 39.76 32.23 72 72 72 31.75 0 58.39-20.69 67.97-49.21 3.93.67 7.91 1.21 12.03 1.21 39.77 0 72-32.24 72-72 0-4.83-.52-9.54-1.42-14.11 29-12.01 49.42-40.55 49.42-73.89z"] };
  3176. var faBriefcase = { prefix: 'fas', iconName: 'briefcase', icon: [512, 512, [], "f0b1", "M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"] };
  3177. var faBriefcaseMedical = { prefix: 'fas', iconName: 'briefcase-medical', icon: [512, 512, [], "f469", "M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"] };
  3178. var faBroadcastTower = { prefix: 'fas', iconName: 'broadcast-tower', icon: [640, 512, [], "f519", "M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"] };
  3179. var faBroom = { prefix: 'fas', iconName: 'broom', icon: [640, 512, [], "f51a", "M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"] };
  3180. var faBrush = { prefix: 'fas', iconName: 'brush', icon: [384, 512, [], "f55d", "M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"] };
  3181. var faBug = { prefix: 'fas', iconName: 'bug', icon: [512, 512, [], "f188", "M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"] };
  3182. var faBuilding = { prefix: 'fas', iconName: 'building', icon: [448, 512, [], "f1ad", "M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"] };
  3183. var faBullhorn = { prefix: 'fas', iconName: 'bullhorn', icon: [576, 512, [], "f0a1", "M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"] };
  3184. var faBullseye = { prefix: 'fas', iconName: 'bullseye', icon: [496, 512, [], "f140", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"] };
  3185. var faBurn = { prefix: 'fas', iconName: 'burn', icon: [384, 512, [], "f46a", "M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"] };
  3186. var faBus = { prefix: 'fas', iconName: 'bus', icon: [512, 512, [], "f207", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3187. var faBusAlt = { prefix: 'fas', iconName: 'bus-alt', icon: [512, 512, [], "f55e", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3188. var faBusinessTime = { prefix: 'fas', iconName: 'business-time', icon: [640, 512, [], "f64a", "M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"] };
  3189. var faCalculator = { prefix: 'fas', iconName: 'calculator', icon: [448, 512, [], "f1ec", "M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"] };
  3190. var faCalendar = { prefix: 'fas', iconName: 'calendar', icon: [448, 512, [], "f133", "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"] };
  3191. var faCalendarAlt = { prefix: 'fas', iconName: 'calendar-alt', icon: [448, 512, [], "f073", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm116 204c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40z"] };
  3192. var faCalendarCheck = { prefix: 'fas', iconName: 'calendar-check', icon: [448, 512, [], "f274", "M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"] };
  3193. var faCalendarMinus = { prefix: 'fas', iconName: 'calendar-minus', icon: [448, 512, [], "f272", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"] };
  3194. var faCalendarPlus = { prefix: 'fas', iconName: 'calendar-plus', icon: [448, 512, [], "f271", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"] };
  3195. var faCalendarTimes = { prefix: 'fas', iconName: 'calendar-times', icon: [448, 512, [], "f273", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"] };
  3196. var faCamera = { prefix: 'fas', iconName: 'camera', icon: [512, 512, [], "f030", "M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"] };
  3197. var faCameraRetro = { prefix: 'fas', iconName: 'camera-retro', icon: [512, 512, [], "f083", "M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"] };
  3198. var faCampground = { prefix: 'fas', iconName: 'campground', icon: [640, 512, [], "f6bb", "M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"] };
  3199. var faCannabis = { prefix: 'fas', iconName: 'cannabis', icon: [512, 512, [], "f55f", "M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"] };
  3200. var faCapsules = { prefix: 'fas', iconName: 'capsules', icon: [576, 512, [], "f46b", "M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"] };
  3201. var faCar = { prefix: 'fas', iconName: 'car', icon: [512, 512, [], "f1b9", "M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  3202. var faCarAlt = { prefix: 'fas', iconName: 'car-alt', icon: [480, 512, [], "f5de", "M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  3203. var faCarBattery = { prefix: 'fas', iconName: 'car-battery', icon: [512, 512, [], "f5df", "M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"] };
  3204. var faCarCrash = { prefix: 'fas', iconName: 'car-crash', icon: [640, 512, [], "f5e1", "M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"] };
  3205. var faCarSide = { prefix: 'fas', iconName: 'car-side', icon: [640, 512, [], "f5e4", "M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3206. var faCaretDown = { prefix: 'fas', iconName: 'caret-down', icon: [320, 512, [], "f0d7", "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"] };
  3207. var faCaretLeft = { prefix: 'fas', iconName: 'caret-left', icon: [192, 512, [], "f0d9", "M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"] };
  3208. var faCaretRight = { prefix: 'fas', iconName: 'caret-right', icon: [192, 512, [], "f0da", "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"] };
  3209. var faCaretSquareDown = { prefix: 'fas', iconName: 'caret-square-down', icon: [448, 512, [], "f150", "M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"] };
  3210. var faCaretSquareLeft = { prefix: 'fas', iconName: 'caret-square-left', icon: [448, 512, [], "f191", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"] };
  3211. var faCaretSquareRight = { prefix: 'fas', iconName: 'caret-square-right', icon: [448, 512, [], "f152", "M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"] };
  3212. var faCaretSquareUp = { prefix: 'fas', iconName: 'caret-square-up', icon: [448, 512, [], "f151", "M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"] };
  3213. var faCaretUp = { prefix: 'fas', iconName: 'caret-up', icon: [320, 512, [], "f0d8", "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"] };
  3214. var faCartArrowDown = { prefix: 'fas', iconName: 'cart-arrow-down', icon: [576, 512, [], "f218", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"] };
  3215. var faCartPlus = { prefix: 'fas', iconName: 'cart-plus', icon: [576, 512, [], "f217", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"] };
  3216. var faCat = { prefix: 'fas', iconName: 'cat', icon: [512, 512, [], "f6be", "M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3217. var faCertificate = { prefix: 'fas', iconName: 'certificate', icon: [512, 512, [], "f0a3", "M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"] };
  3218. var faChair = { prefix: 'fas', iconName: 'chair', icon: [448, 512, [], "f6c0", "M446.33 341.88l-10.67-32A31.996 31.996 0 0 0 405.3 288H42.69c-13.77 0-26 8.81-30.36 21.88l-10.67 32C-5.24 362.6 10.18 384 32.03 384H32v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h256v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-.03c21.85 0 37.27-21.4 30.36-42.12zM112 128c0-29.48 16.2-54.99 40-68.87V256h48V48h48v208h48V59.13c23.8 13.88 40 39.39 40 68.87v128h48V128C384 57.31 326.69 0 256 0h-64C121.31 0 64 57.31 64 128v128h48V128z"] };
  3219. var faChalkboard = { prefix: 'fas', iconName: 'chalkboard', icon: [640, 512, [], "f51b", "M96 64h448v352h64V40c0-22.06-17.94-40-40-40H72C49.94 0 32 17.94 32 40v376h64V64zm528 384H480v-64H288v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3220. var faChalkboardTeacher = { prefix: 'fas', iconName: 'chalkboard-teacher', icon: [640, 512, [], "f51c", "M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"] };
  3221. var faChargingStation = { prefix: 'fas', iconName: 'charging-station', icon: [576, 512, [], "f5e7", "M336 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h320c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm208-320V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-32V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-16c-8.84 0-16 7.16-16 16v32c0 35.76 23.62 65.69 56 75.93v118.49c0 13.95-9.5 26.92-23.26 29.19C431.22 402.5 416 388.99 416 372v-28c0-48.6-39.4-88-88-88h-8V64c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64v352h288V304h8c22.09 0 40 17.91 40 40v24.61c0 39.67 28.92 75.16 68.41 79.01C481.71 452.05 520 416.41 520 372V251.93c32.38-10.24 56-40.17 56-75.93v-32c0-8.84-7.16-16-16-16h-16zm-283.91 47.76l-93.7 139c-2.2 3.33-6.21 5.24-10.39 5.24-7.67 0-13.47-6.28-11.67-12.92L167.35 224H108c-7.25 0-12.85-5.59-11.89-11.89l16-107C112.9 99.9 117.98 96 124 96h68c7.88 0 13.62 6.54 11.6 13.21L192 160h57.7c9.24 0 15.01 8.78 10.39 15.76z"] };
  3222. var faChartArea = { prefix: 'fas', iconName: 'chart-area', icon: [512, 512, [], "f1fe", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"] };
  3223. var faChartBar = { prefix: 'fas', iconName: 'chart-bar', icon: [512, 512, [], "f080", "M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3224. var faChartLine = { prefix: 'fas', iconName: 'chart-line', icon: [512, 512, [], "f201", "M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"] };
  3225. var faChartPie = { prefix: 'fas', iconName: 'chart-pie', icon: [544, 512, [], "f200", "M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"] };
  3226. var faCheck = { prefix: 'fas', iconName: 'check', icon: [512, 512, [], "f00c", "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"] };
  3227. var faCheckCircle = { prefix: 'fas', iconName: 'check-circle', icon: [512, 512, [], "f058", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"] };
  3228. var faCheckDouble = { prefix: 'fas', iconName: 'check-double', icon: [512, 512, [], "f560", "M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"] };
  3229. var faCheckSquare = { prefix: 'fas', iconName: 'check-square', icon: [448, 512, [], "f14a", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"] };
  3230. var faChess = { prefix: 'fas', iconName: 'chess', icon: [512, 512, [], "f439", "M199.821 217.633a6 6 0 0 1 6 6l-.001 20.766a6 6 0 0 1-6 6h-25.805c0 31.715-2.153 96.201 17.398 153.229H64.597C84.54 345.452 82.02 279.245 82.02 250.399H56.183a6 6 0 0 1-6-6l.002-20.766a6 6 0 0 1 6-6h143.636zM41.554 115.088l34.58 95.071h103.734l34.572-95.072c2.846-7.826-2.95-16.101-11.278-16.101H152v-30.22h21.57a6 6 0 0 0 6-6V40.383a6 6 0 0 0-6-6h-28.367V6a6 6 0 0 0-6-6H116.82a6 6 0 0 0-6 6v28.383H82.421a6 6 0 0 0-6 6v22.383a6 6 0 0 0 6 6H104v30.219H52.831c-8.328.001-14.124 8.276-11.277 16.103zM222.678 445.17v-28.067a6 6 0 0 0-6-6H39.322a6 6 0 0 0-6 6v28.067l-22.148 14.164a6 6 0 0 0-2.767 5.055V506a6 6 0 0 0 6 6h227.187a6 6 0 0 0 6-6v-41.612a6 6 0 0 0-2.767-5.055l-22.149-14.163zm90.578-144.225l24.88 16.963c.09 18.124-.167 63.904-11.905 114.522h147.526c-11.713-50.475-11.969-96.324-11.882-114.537l24.859-16.949a3.856 3.856 0 0 0 1.684-3.187v-69.901a3.857 3.857 0 0 0-3.857-3.857h-27.655a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.858-3.857h-52.918a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.857-3.857H315.43a3.857 3.857 0 0 0-3.857 3.857v69.901a3.855 3.855 0 0 0 1.683 3.188zm71.585 51.906c0-8.372 6.787-15.158 15.159-15.158s15.158 6.787 15.158 15.158v30.318h-30.317v-30.318zM504.62 470.059l-13.664-10.639v-15.552a3.857 3.857 0 0 0-3.857-3.857H312.915a3.857 3.857 0 0 0-3.857 3.857v15.552l-13.677 10.639a3.857 3.857 0 0 0-1.488 3.044v35.039a3.857 3.857 0 0 0 3.857 3.857h204.5a3.857 3.857 0 0 0 3.857-3.857v-35.04a3.859 3.859 0 0 0-1.487-3.043z"] };
  3231. var faChessBishop = { prefix: 'fas', iconName: 'chess-bishop', icon: [320, 512, [], "f43a", "M123.158 77.881C107.369 72.53 96 57.597 96 40c0-22.091 17.909-40 40-40h47.796c22.091 0 40 17.909 40 40 0 17.541-11.295 32.434-27.005 37.829 23.993 16.657 48.577 46.839 68.703 82.05L144.929 280.443a6 6 0 0 0 0 8.485l14.142 14.142a6 6 0 0 0 8.485 0L280.9 189.726c17.758 38.297 29.371 79.443 29.371 114.273 0 53.786-22.897 75.788-58.446 86.033V448H68.174v-57.97C32.631 379.784 9.739 357.781 9.739 304c0-78.029 58.281-187.766 113.419-226.119zM320 500v-24c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12z"] };
  3232. var faChessBoard = { prefix: 'fas', iconName: 'chess-board', icon: [512, 512, [], "f43c", "M256 256v64h-64v-64h64zm0-256h-64v64h64V0zm0 256h64v-64h-64v64zM384 0h-64v64h64V0zm0 512h64v-64h-64v64zm128-64v-64h-64v64h64zm-384 64h64v-64h-64v64zm0-512H64v64h64V0zm384 192v-64h-64v64h64zm0 128v-64h-64v64h64zM0 512h64v-64H0v64zM0 64v64h64V64H0zm0 128v64h64v-64H0zm0 128v64h64v-64H0zm256 192h64v-64h-64v64zm-64-128v64h64v-64h-64zm64-192v-64h-64v64h64zM64 384v64h64v-64H64zm64-128H64v64h64v-64zm256 128h64v-64h-64v64zM512 0h-64v64h64V0zM384 256h64v-64h-64v64zm0-192v64h64V64h-64zm-64 320v64h64v-64h-64zm-192-64v64h64v-64h-64zm128 0v64h64v-64h-64zm-64-128h-64v64h64v-64zm-64-64H64v64h64v-64zm192 192h64v-64h-64v64zM192 128V64h-64v64h64zm128 0V64h-64v64h64zm0 64h64v-64h-64v64z"] };
  3233. var faChessKing = { prefix: 'fas', iconName: 'chess-king', icon: [448, 512, [], "f43f", "M416 476v24c0 6.627-5.373 12-12 12H44c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12zm-8.033-324H248v-48h50a6 6 0 0 0 6-6V62a6 6 0 0 0-6-6h-50V6a6 6 0 0 0-6-6h-36a6 6 0 0 0-6 6v50h-50a6 6 0 0 0-6 6v36a6 6 0 0 0 6 6h50v48H40.033c-27.574 0-46.879 27.244-37.738 53.259L87.582 448h272.836l85.287-242.741C454.846 179.244 435.541 152 407.967 152z"] };
  3234. var faChessKnight = { prefix: 'fas', iconName: 'chess-knight', icon: [384, 512, [], "f441", "M352 224v224H32v-46.557c0-30.302 17.12-58.003 44.223-71.554l57.243-28.622A48 48 0 0 0 160 258.334V208l-22.127 11.063a23.996 23.996 0 0 0-12.55 15.645l-11.835 47.338a12 12 0 0 1-7.185 8.231l-29.601 11.84a11.998 11.998 0 0 1-9.33-.176L7.126 275.167A12 12 0 0 1 0 264.201v-158.26c0-6.365 2.529-12.47 7.03-16.971L16 80 1.789 51.578A16.937 16.937 0 0 1 0 44c0-6.627 5.373-12 12-12h148c106.039 0 192 85.961 192 192zm20 240H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12zM52 128c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3235. var faChessPawn = { prefix: 'fas', iconName: 'chess-pawn', icon: [320, 512, [], "f443", "M264 448H56s60-42.743 60-176H84c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h40.209C95.721 210.56 76 181.588 76 148c0-46.392 37.608-84 84-84s84 37.608 84 84c0 33.588-19.721 62.56-48.209 76H236c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-32c0 133.257 60 176 60 176zm28 16H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h264c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12z"] };
  3236. var faChessQueen = { prefix: 'fas', iconName: 'chess-queen', icon: [512, 512, [], "f445", "M436 512H76c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12zM255.579 0c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zm204.568 154.634c-5.768-3.045-12.916-.932-16.082 4.77-8.616 15.516-22.747 37.801-44.065 37.801-28.714 0-30.625-19.804-31.686-57.542-.183-6.492-5.501-11.664-11.995-11.664h-41.006c-5.175 0-9.754 3.328-11.388 8.238-8.89 26.709-26.073 40.992-47.925 40.992s-39.034-14.283-47.925-40.992c-1.634-4.91-6.213-8.238-11.388-8.238h-41.005c-6.495 0-11.813 5.174-11.995 11.667-1.052 37.642-2.934 57.539-31.688 57.539-20.691 0-33.817-20.224-44.425-38.025-3.266-5.48-10.258-7.431-15.899-4.453l-39.179 20.679a12 12 0 0 0-5.51 15.145L112 448h288l105.014-257.448a12 12 0 0 0-5.51-15.145l-39.357-20.773z"] };
  3237. var faChessRook = { prefix: 'fas', iconName: 'chess-rook', icon: [384, 512, [], "f447", "M81.241 215.027C80.957 258.92 77.411 348.076 48 448h287.982c-29.4-99.604-32.936-188.912-33.221-232.975l45.418-42.312a11.998 11.998 0 0 0 3.82-8.78V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v44h-48V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v44H96V44c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v119.932c0 3.33 1.384 6.51 3.82 8.78l45.421 42.315zM160 256c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v64.004h-64V256zm224 220v24c0 6.627-5.373 12-12 12H12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12z"] };
  3238. var faChevronCircleDown = { prefix: 'fas', iconName: 'chevron-circle-down', icon: [512, 512, [], "f13a", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"] };
  3239. var faChevronCircleLeft = { prefix: 'fas', iconName: 'chevron-circle-left', icon: [512, 512, [], "f137", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"] };
  3240. var faChevronCircleRight = { prefix: 'fas', iconName: 'chevron-circle-right', icon: [512, 512, [], "f138", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"] };
  3241. var faChevronCircleUp = { prefix: 'fas', iconName: 'chevron-circle-up', icon: [512, 512, [], "f139", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"] };
  3242. var faChevronDown = { prefix: 'fas', iconName: 'chevron-down', icon: [448, 512, [], "f078", "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"] };
  3243. var faChevronLeft = { prefix: 'fas', iconName: 'chevron-left', icon: [320, 512, [], "f053", "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"] };
  3244. var faChevronRight = { prefix: 'fas', iconName: 'chevron-right', icon: [320, 512, [], "f054", "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"] };
  3245. var faChevronUp = { prefix: 'fas', iconName: 'chevron-up', icon: [448, 512, [], "f077", "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"] };
  3246. var faChild = { prefix: 'fas', iconName: 'child', icon: [384, 512, [], "f1ae", "M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"] };
  3247. var faChurch = { prefix: 'fas', iconName: 'church', icon: [640, 512, [], "f51d", "M464.46 246.68L352 179.2V128h48c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-48V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v48h-48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v51.2l-112.46 67.48A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.65-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.54A32.024 32.024 0 0 0 0 395.96zm620.61-29.42L512 320v192h112c8.84 0 16-7.16 16-16V395.96c0-12.8-7.63-24.37-19.39-29.42z"] };
  3248. var faCircle = { prefix: 'fas', iconName: 'circle', icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"] };
  3249. var faCircleNotch = { prefix: 'fas', iconName: 'circle-notch', icon: [512, 512, [], "f1ce", "M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"] };
  3250. var faCity = { prefix: 'fas', iconName: 'city', icon: [640, 512, [], "f64f", "M616 192H480V24c0-13.26-10.74-24-24-24H312c-13.26 0-24 10.74-24 24v72h-64V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v80h-64V16c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v80H24c-13.26 0-24 10.74-24 24v360c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V216c0-13.26-10.75-24-24-24zM128 404c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm128 192c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12V76c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 288c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40z"] };
  3251. var faClipboard = { prefix: 'fas', iconName: 'clipboard', icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"] };
  3252. var faClipboardCheck = { prefix: 'fas', iconName: 'clipboard-check', icon: [384, 512, [], "f46c", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"] };
  3253. var faClipboardList = { prefix: 'fas', iconName: 'clipboard-list', icon: [384, 512, [], "f46d", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  3254. var faClock = { prefix: 'fas', iconName: 'clock', icon: [512, 512, [], "f017", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm57.1 350.1L224.9 294c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v137.7l63.5 46.2c5.4 3.9 6.5 11.4 2.6 16.8l-28.2 38.8c-3.9 5.3-11.4 6.5-16.8 2.6z"] };
  3255. var faClone = { prefix: 'fas', iconName: 'clone', icon: [512, 512, [], "f24d", "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"] };
  3256. var faClosedCaptioning = { prefix: 'fas', iconName: 'closed-captioning', icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"] };
  3257. var faCloud = { prefix: 'fas', iconName: 'cloud', icon: [640, 512, [], "f0c2", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"] };
  3258. var faCloudDownloadAlt = { prefix: 'fas', iconName: 'cloud-download-alt', icon: [640, 512, [], "f381", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"] };
  3259. var faCloudMoon = { prefix: 'fas', iconName: 'cloud-moon', icon: [640, 512, [], "f6c3", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.3 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm285.26-29.42c-104.23 19.22-199.95-58.16-199.95-160.03 0-58.68 32.45-112.64 85.18-141.7 8.13-4.48 6.08-16.41-3.15-18.06C497.14 1.17 484 0 470.84 0 352.25 0 256 93.04 256 208c0 7.26.4 14.44 1.15 21.51 9.87-3.38 20.18-5.51 30.85-5.51 52.94 0 96 43.06 96 96 0 3.59-.21 7.17-.63 10.73 33.49 15.39 57.47 46.55 63.24 83.86 7.96.87 16.03 1.41 24.23 1.41 66.26 0 126.79-29.19 166.88-77.02 5.93-7.07-.54-17.41-9.71-15.72z"] };
  3260. var faCloudSun = { prefix: 'fas', iconName: 'cloud-sun', icon: [640, 512, [], "f6c4", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.31 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm243.19-99.8c-7.85-6.79-7.85-18.97 0-25.76L633.41 186c12.76-11.05 5.84-32.02-11-33.3l-61.59-4.67c-10.19-.78-17.28-10.49-14.9-20.43l14.95-62.48c3.89-16.26-13.96-29.02-28.08-20.07l-52.51 33.26c-8.61 5.46-20.06 1.75-23.85-7.72l-23.47-58.74c-6.32-15.81-28.19-15.81-34.51 0l-23.38 58.49c-3.83 9.59-15.44 13.35-24.17 7.82l-52.29-33.12c-14.13-8.95-31.98 3.81-28.08 20.07l14.95 62.48c2.38 9.94-4.7 19.65-14.9 20.43l-61.15 4.64c-17 1.29-23.99 22.46-11.1 33.62l31.23 27.05c7.82 5.17 15.21 11.01 21.78 17.84 11.42-4.71 23.73-7.18 36.37-7.18 5.97 0 11.77.71 17.44 1.76 7.09-54.98 53.68-97.76 110.56-97.76 61.76 0 112 50.24 112 112s-50.24 112-112 112c-.95 0-1.83-.26-2.77-.28 13.83 13.2 24.61 29.47 30.16 48.28h27.02c6.25 0 12.37 1.83 17.6 5.27l45.08 29.68c14.19 8.99 31.89-4.17 27.92-20.76l-14.69-61.38c-2.43-10.16 4.8-20.08 15.22-20.87l61.16-4.64c16.84-1.28 23.76-22.25 11-33.3l-47.47-41.11zm-202.66 59.94C393.3 317.34 404.32 320 416 320c44.11 0 80-35.89 80-80s-35.89-80-80-80c-43.25 0-78.39 34.56-79.75 77.49 26.44 15.53 44.59 43.13 47.03 75.33z"] };
  3261. var faCloudUploadAlt = { prefix: 'fas', iconName: 'cloud-upload-alt', icon: [640, 512, [], "f382", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"] };
  3262. var faCocktail = { prefix: 'fas', iconName: 'cocktail', icon: [576, 512, [], "f561", "M296 464h-56V338.78l168.74-168.73c15.52-15.52 4.53-42.05-17.42-42.05H24.68c-21.95 0-32.94 26.53-17.42 42.05L176 338.78V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM432 0c-62.61 0-115.35 40.2-135.18 96h52.54c16.65-28.55 47.27-48 82.64-48 52.93 0 96 43.06 96 96s-43.07 96-96 96c-14.04 0-27.29-3.2-39.32-8.64l-35.26 35.26C379.23 279.92 404.59 288 432 288c79.53 0 144-64.47 144-144S511.53 0 432 0z"] };
  3263. var faCode = { prefix: 'fas', iconName: 'code', icon: [640, 512, [], "f121", "M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"] };
  3264. var faCodeBranch = { prefix: 'fas', iconName: 'code-branch', icon: [384, 512, [], "f126", "M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"] };
  3265. var faCoffee = { prefix: 'fas', iconName: 'coffee', icon: [640, 512, [], "f0f4", "M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"] };
  3266. var faCog = { prefix: 'fas', iconName: 'cog', icon: [512, 512, [], "f013", "M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"] };
  3267. var faCogs = { prefix: 'fas', iconName: 'cogs', icon: [640, 512, [], "f085", "M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"] };
  3268. var faCoins = { prefix: 'fas', iconName: 'coins', icon: [512, 512, [], "f51e", "M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"] };
  3269. var faColumns = { prefix: 'fas', iconName: 'columns', icon: [512, 512, [], "f0db", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"] };
  3270. var faComment = { prefix: 'fas', iconName: 'comment', icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"] };
  3271. var faCommentAlt = { prefix: 'fas', iconName: 'comment-alt', icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"] };
  3272. var faCommentDollar = { prefix: 'fas', iconName: 'comment-dollar', icon: [512, 512, [], "f651", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95.01 57.02 130.74C44.46 421.05 2.7 465.97 2.2 466.5A7.995 7.995 0 0 0 8 480c66.26 0 115.99-31.75 140.6-51.38C181.29 440.93 217.59 448 256 448c141.38 0 256-93.12 256-208S397.38 32 256 32zm24 302.44V352c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-17.73c-11.42-1.35-22.28-5.19-31.78-11.46-6.22-4.11-6.82-13.11-1.55-18.38l17.52-17.52c3.74-3.74 9.31-4.24 14.11-2.03 3.18 1.46 6.66 2.22 10.26 2.22h32.78c4.66 0 8.44-3.78 8.44-8.42 0-3.75-2.52-7.08-6.12-8.11l-50.07-14.3c-22.25-6.35-40.01-24.71-42.91-47.67-4.05-32.07 19.03-59.43 49.32-63.05V128c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v17.73c11.42 1.35 22.28 5.19 31.78 11.46 6.22 4.11 6.82 13.11 1.55 18.38l-17.52 17.52c-3.74 3.74-9.31 4.24-14.11 2.03a24.516 24.516 0 0 0-10.26-2.22h-32.78c-4.66 0-8.44 3.78-8.44 8.42 0 3.75 2.52 7.08 6.12 8.11l50.07 14.3c22.25 6.36 40.01 24.71 42.91 47.67 4.05 32.06-19.03 59.42-49.32 63.04z"] };
  3273. var faCommentDots = { prefix: 'fas', iconName: 'comment-dots', icon: [512, 512, [], "f4ad", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3274. var faCommentSlash = { prefix: 'fas', iconName: 'comment-slash', icon: [640, 512, [], "f4b3", "M64 240c0 49.6 21.4 95 57 130.7-12.6 50.3-54.3 95.2-54.8 95.8-2.2 2.3-2.8 5.7-1.5 8.7 1.3 2.9 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 27.4 0 53.7-3.6 78.4-10L72.9 186.4c-5.6 17.1-8.9 35-8.9 53.6zm569.8 218.1l-114.4-88.4C554.6 334.1 576 289.2 576 240c0-114.9-114.6-208-256-208-65.1 0-124.2 20.1-169.4 52.7L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3275. var faComments = { prefix: 'fas', iconName: 'comments', icon: [576, 512, [], "f086", "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"] };
  3276. var faCommentsDollar = { prefix: 'fas', iconName: 'comments-dollar', icon: [576, 512, [], "f653", "M416 192c0-88.37-93.12-160-208-160S0 103.63 0 192c0 34.27 14.13 65.95 37.97 91.98C24.61 314.22 2.52 338.16 2.2 338.5A7.995 7.995 0 0 0 8 352c36.58 0 66.93-12.25 88.73-24.98C128.93 342.76 167.02 352 208 352c114.88 0 208-71.63 208-160zm-224 96v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V96c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07V288c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm346.01 123.99C561.87 385.96 576 354.27 576 320c0-66.94-53.49-124.2-129.33-148.07.86 6.6 1.33 13.29 1.33 20.07 0 105.87-107.66 192-240 192-10.78 0-21.32-.77-31.73-1.88C207.8 439.63 281.77 480 368 480c40.98 0 79.07-9.24 111.27-24.98C501.07 467.75 531.42 480 568 480c3.2 0 6.09-1.91 7.34-4.84 1.27-2.94.66-6.34-1.55-8.67-.31-.33-22.42-24.24-35.78-54.5z"] };
  3277. var faCompactDisc = { prefix: 'fas', iconName: 'compact-disc', icon: [496, 512, [], "f51f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 256H56c0-105.9 86.1-192 192-192v32c-88.2 0-160 71.8-160 160zm160 96c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  3278. var faCompass = { prefix: 'fas', iconName: 'compass', icon: [496, 512, [], "f14e", "M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"] };
  3279. var faCompress = { prefix: 'fas', iconName: 'compress', icon: [448, 512, [], "f066", "M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3280. var faConciergeBell = { prefix: 'fas', iconName: 'concierge-bell', icon: [512, 512, [], "f562", "M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3281. var faCookie = { prefix: 'fas', iconName: 'cookie', icon: [512, 512, [], "f563", "M510.37 254.79l-12.08-76.26a132.493 132.493 0 0 0-37.16-72.95l-54.76-54.75c-19.73-19.72-45.18-32.7-72.71-37.05l-76.7-12.15c-27.51-4.36-55.69.11-80.52 12.76L107.32 49.6a132.25 132.25 0 0 0-57.79 57.8l-35.1 68.88a132.602 132.602 0 0 0-12.82 80.94l12.08 76.27a132.493 132.493 0 0 0 37.16 72.95l54.76 54.75a132.087 132.087 0 0 0 72.71 37.05l76.7 12.14c27.51 4.36 55.69-.11 80.52-12.75l69.12-35.21a132.302 132.302 0 0 0 57.79-57.8l35.1-68.87c12.71-24.96 17.2-53.3 12.82-80.96zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3282. var faCookieBite = { prefix: 'fas', iconName: 'cookie-bite', icon: [512, 512, [], "f564", "M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3283. var faCopy = { prefix: 'fas', iconName: 'copy', icon: [448, 512, [], "f0c5", "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"] };
  3284. var faCopyright = { prefix: 'fas', iconName: 'copyright', icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"] };
  3285. var faCouch = { prefix: 'fas', iconName: 'couch', icon: [640, 512, [], "f4b8", "M160 224v64h320v-64c0-35.3 28.7-64 64-64h32c0-53-43-96-96-96H160c-53 0-96 43-96 96h32c35.3 0 64 28.7 64 64zm416-32h-32c-17.7 0-32 14.3-32 32v96H128v-96c0-17.7-14.3-32-32-32H64c-35.3 0-64 28.7-64 64 0 23.6 13 44 32 55.1V432c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-16h384v16c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V311.1c19-11.1 32-31.5 32-55.1 0-35.3-28.7-64-64-64z"] };
  3286. var faCreditCard = { prefix: 'fas', iconName: 'credit-card', icon: [576, 512, [], "f09d", "M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"] };
  3287. var faCrop = { prefix: 'fas', iconName: 'crop', icon: [512, 512, [], "f125", "M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3288. var faCropAlt = { prefix: 'fas', iconName: 'crop-alt', icon: [512, 512, [], "f565", "M488 352h-40V96c0-17.67-14.33-32-32-32H192v96h160v328c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24zM160 24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v256c0 17.67 14.33 32 32 32h224v-96H160V24z"] };
  3289. var faCross = { prefix: 'fas', iconName: 'cross', icon: [384, 512, [], "f654", "M352 128h-96V32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h96v224c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V256h96c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3290. var faCrosshairs = { prefix: 'fas', iconName: 'crosshairs', icon: [512, 512, [], "f05b", "M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"] };
  3291. var faCrow = { prefix: 'fas', iconName: 'crow', icon: [640, 512, [], "f520", "M544 32h-16.36C513.04 12.68 490.09 0 464 0c-44.18 0-80 35.82-80 80v20.98L12.09 393.57A30.216 30.216 0 0 0 0 417.74c0 22.46 23.64 37.07 43.73 27.03L165.27 384h96.49l44.41 120.1c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38L312.94 384H352c1.91 0 3.76-.23 5.66-.29l44.51 120.38c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38l-41.24-111.53C485.74 352.8 544 279.26 544 192v-80l96-16c0-35.35-42.98-64-96-64zm-80 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3292. var faCrown = { prefix: 'fas', iconName: 'crown', icon: [640, 512, [], "f521", "M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"] };
  3293. var faCube = { prefix: 'fas', iconName: 'cube', icon: [512, 512, [], "f1b2", "M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"] };
  3294. var faCubes = { prefix: 'fas', iconName: 'cubes', icon: [512, 512, [], "f1b3", "M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"] };
  3295. var faCut = { prefix: 'fas', iconName: 'cut', icon: [448, 512, [], "f0c4", "M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  3296. var faDatabase = { prefix: 'fas', iconName: 'database', icon: [448, 512, [], "f1c0", "M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"] };
  3297. var faDeaf = { prefix: 'fas', iconName: 'deaf', icon: [512, 512, [], "f2a4", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"] };
  3298. var faDesktop = { prefix: 'fas', iconName: 'desktop', icon: [576, 512, [], "f108", "M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"] };
  3299. var faDharmachakra = { prefix: 'fas', iconName: 'dharmachakra', icon: [512, 512, [], "f655", "M495 225.06l-17.22 1.08c-5.27-39.49-20.79-75.64-43.86-105.84l12.95-11.43c6.92-6.11 7.25-16.79.73-23.31L426.44 64.4c-6.53-6.53-17.21-6.19-23.31.73L391.7 78.07c-30.2-23.06-66.35-38.58-105.83-43.86L286.94 17c.58-9.21-6.74-17-15.97-17h-29.94c-9.23 0-16.54 7.79-15.97 17l1.08 17.22c-39.49 5.27-75.64 20.79-105.83 43.86l-11.43-12.95c-6.11-6.92-16.79-7.25-23.31-.73L64.4 85.56c-6.53 6.53-6.19 17.21.73 23.31l12.95 11.43c-23.06 30.2-38.58 66.35-43.86 105.84L17 225.06c-9.21-.58-17 6.74-17 15.97v29.94c0 9.23 7.79 16.54 17 15.97l17.22-1.08c5.27 39.49 20.79 75.64 43.86 105.83l-12.95 11.43c-6.92 6.11-7.25 16.79-.73 23.31l21.17 21.17c6.53 6.53 17.21 6.19 23.31-.73l11.43-12.95c30.2 23.06 66.35 38.58 105.84 43.86L225.06 495c-.58 9.21 6.74 17 15.97 17h29.94c9.23 0 16.54-7.79 15.97-17l-1.08-17.22c39.49-5.27 75.64-20.79 105.84-43.86l11.43 12.95c6.11 6.92 16.79 7.25 23.31.73l21.17-21.17c6.53-6.53 6.19-17.21-.73-23.31l-12.95-11.43c23.06-30.2 38.58-66.35 43.86-105.83l17.22 1.08c9.21.58 17-6.74 17-15.97v-29.94c-.01-9.23-7.8-16.54-17.01-15.97zM281.84 98.61c24.81 4.07 47.63 13.66 67.23 27.78l-42.62 48.29c-8.73-5.44-18.32-9.54-28.62-11.95l4.01-64.12zm-51.68 0l4.01 64.12c-10.29 2.41-19.89 6.52-28.62 11.95l-42.62-48.29c19.6-14.12 42.42-23.71 67.23-27.78zm-103.77 64.33l48.3 42.61c-5.44 8.73-9.54 18.33-11.96 28.62l-64.12-4.01c4.07-24.81 13.66-47.62 27.78-67.22zm-27.78 118.9l64.12-4.01c2.41 10.29 6.52 19.89 11.95 28.62l-48.29 42.62c-14.12-19.6-23.71-42.42-27.78-67.23zm131.55 131.55c-24.81-4.07-47.63-13.66-67.23-27.78l42.61-48.3c8.73 5.44 18.33 9.54 28.62 11.96l-4 64.12zM256 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm25.84 125.39l-4.01-64.12c10.29-2.41 19.89-6.52 28.62-11.96l42.61 48.3c-19.6 14.12-42.41 23.71-67.22 27.78zm103.77-64.33l-48.29-42.62c5.44-8.73 9.54-18.32 11.95-28.62l64.12 4.01c-4.07 24.82-13.66 47.64-27.78 67.23zm-36.34-114.89c-2.41-10.29-6.52-19.89-11.96-28.62l48.3-42.61c14.12 19.6 23.71 42.42 27.78 67.23l-64.12 4z"] };
  3300. var faDiagnoses = { prefix: 'fas', iconName: 'diagnoses', icon: [640, 512, [], "f470", "M496 256c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm-176-80c48.5 0 88-39.5 88-88S368.5 0 320 0s-88 39.5-88 88 39.5 88 88 88zM59.8 364c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-28.7 16-17.6 10.5-18.8 31.8-10 45.1L59.8 364zM368 344c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-160 8c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm512 192H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  3301. var faDice = { prefix: 'fas', iconName: 'dice', icon: [640, 512, [], "f522", "M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3302. var faDiceD20 = { prefix: 'fas', iconName: 'dice-d20', icon: [480, 512, [], "f6cf", "M106.75 215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25-10.78-11.14L17.81 110.35c-2.47 1.62-2.39 5.26.13 6.78l81.53 48.69zM240 176h109.21L253.63 7.62C250.5 2.54 245.25 0 240 0s-10.5 2.54-13.63 7.62L130.79 176H240zm233.94-28.9l-76.64 45.99 75.29 122.35c2.11 3.44 7.41 1.94 7.41-2.1V150.53c0-3.11-3.39-5.03-6.06-3.43zm-93.41 18.72l81.53-48.7c2.53-1.52 2.6-5.16.13-6.78l-150.81-98.6c-7.19-4.11-15.12 4.08-10.78 11.14l79.93 142.94zm79.02 250.21L256 438.32v65.67c0 5.84 6.05 9.71 11.35 7.26l194.4-87.66c4.03-1.97 2.25-8.06-2.2-7.56zm-86.3-200.97l-108.63 190.1 208.26-22.07c5.83-.65 9.01-7.14 5.93-12.14L373.25 215.06zM240 208H139.57L240 383.75 340.43 208H240z"] };
  3303. var faDiceD6 = { prefix: 'fas', iconName: 'dice-d6', icon: [448, 512, [], "f6d1", "M422.19 109.95L256.21 9.07c-19.91-12.1-44.52-12.1-64.43 0L25.81 109.95c-5.32 3.23-5.29 11.27.06 14.46L224 242.55l198.14-118.14c5.35-3.19 5.38-11.22.05-14.46zm13.84 44.63L240 271.46v223.82c0 12.88 13.39 20.91 24.05 14.43l152.16-92.48c19.68-11.96 31.79-33.94 31.79-57.7v-197.7c0-6.41-6.64-10.43-11.97-7.25zM0 161.83v197.7c0 23.77 12.11 45.74 31.79 57.7l152.16 92.47c10.67 6.48 24.05-1.54 24.05-14.43V271.46L11.97 154.58C6.64 151.4 0 155.42 0 161.83z"] };
  3304. var faDiceFive = { prefix: 'fas', iconName: 'dice-five', icon: [448, 512, [], "f523", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3305. var faDiceFour = { prefix: 'fas', iconName: 'dice-four', icon: [448, 512, [], "f524", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3306. var faDiceOne = { prefix: 'fas', iconName: 'dice-one', icon: [448, 512, [], "f525", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM224 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3307. var faDiceSix = { prefix: 'fas', iconName: 'dice-six', icon: [448, 512, [], "f526", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3308. var faDiceThree = { prefix: 'fas', iconName: 'dice-three', icon: [448, 512, [], "f527", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3309. var faDiceTwo = { prefix: 'fas', iconName: 'dice-two', icon: [448, 512, [], "f528", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3310. var faDigitalTachograph = { prefix: 'fas', iconName: 'digital-tachograph', icon: [640, 512, [], "f566", "M608 96H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128c0-17.67-14.33-32-32-32zM304 352c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8zM72 288v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H80c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm40-64c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-48c0-8.84 7.16-16 16-16h208c8.84 0 16 7.16 16 16v48zm272 128c0 4.42-3.58 8-8 8H344c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8z"] };
  3311. var faDirections = { prefix: 'fas', iconName: 'directions', icon: [512, 512, [], "f5eb", "M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"] };
  3312. var faDivide = { prefix: 'fas', iconName: 'divide', icon: [448, 512, [], "f529", "M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3313. var faDizzy = { prefix: 'fas', iconName: 'dizzy', icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-96 206.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L174.6 192l28.7 28.7c15.2 15.2-7.9 37.4-22.6 22.6L152 214.6zM248 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm147.3-195.3c15.2 15.2-7.9 37.4-22.6 22.6L344 214.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L366.6 192l28.7 28.7z"] };
  3314. var faDna = { prefix: 'fas', iconName: 'dna', icon: [448, 512, [], "f471", "M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47-35.6 78.7-51.4C410.5 199.1 442.1 65.8 447.9 17.9 449 8.4 441.6.1 432 .1L399.6 0c-8.1 0-14.9 5.9-16 13.9-.7 4.9-1.8 11.1-3.4 18.1H67.8c-1.6-7-2.7-13.1-3.4-18.1-1.1-8-7.9-14-16-13.9L16.1.1C6.5.1-1 8.4.1 17.9 5.3 60.8 31.4 171.8 160 256 31.5 340.2 5.3 451.2.1 494.1zM224 219.6c-25.1-13.7-46.4-28.4-64.3-43.6h128.5c-17.8 15.2-39.1 30-64.2 43.6zM355.1 96c-5.8 10.4-12.8 21.1-21 32H114c-8.3-10.9-15.3-21.6-21-32h262.1zM92.9 416c5.8-10.4 12.8-21.1 21-32h219.4c8.3 10.9 15.4 21.6 21.2 32H92.9z"] };
  3315. var faDog = { prefix: 'fas', iconName: 'dog', icon: [512, 512, [], "f6d3", "M496 96h-64l-7.16-14.31A32 32 0 0 0 396.22 64H342.6l-27.28-27.28C305.23 26.64 288 33.78 288 48.03v149.84l128 45.71V208h32c35.35 0 64-28.65 64-64v-32c0-8.84-7.16-16-16-16zm-112 48c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM96 224c-17.64 0-32-14.36-32-32 0-17.67-14.33-32-32-32S0 174.33 0 192c0 41.66 26.83 76.85 64 90.1V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V384h160v112c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V277.55L266.05 224H96z"] };
  3316. var faDollarSign = { prefix: 'fas', iconName: 'dollar-sign', icon: [288, 512, [], "f155", "M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"] };
  3317. var faDolly = { prefix: 'fas', iconName: 'dolly', icon: [576, 512, [], "f472", "M294.2 277.7c18 5 34.7 13.4 49.5 24.7l161.5-53.8c8.4-2.8 12.9-11.9 10.1-20.2L454.9 47.2c-2.8-8.4-11.9-12.9-20.2-10.1l-61.1 20.4 33.1 99.4L346 177l-33.1-99.4-61.6 20.5c-8.4 2.8-12.9 11.9-10.1 20.2l53 159.4zm281 48.7L565 296c-2.8-8.4-11.9-12.9-20.2-10.1l-213.5 71.2c-17.2-22-43.6-36.4-73.5-37L158.4 21.9C154 8.8 141.8 0 128 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h88.9l92.2 276.7c-26.1 20.4-41.7 53.6-36 90.5 6.1 39.4 37.9 72.3 77.3 79.2 60.2 10.7 112.3-34.8 113.4-92.6l213.3-71.2c8.3-2.8 12.9-11.8 10.1-20.2zM256 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3318. var faDollyFlatbed = { prefix: 'fas', iconName: 'dolly-flatbed', icon: [640, 512, [], "f474", "M208 320h384c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16H448v128l-48-32-48 32V32H208c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16zm416 64H128V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h82.9c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H451c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H624c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  3319. var faDonate = { prefix: 'fas', iconName: 'donate', icon: [512, 512, [], "f4b9", "M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"] };
  3320. var faDoorClosed = { prefix: 'fas', iconName: 'door-closed', icon: [640, 512, [], "f52a", "M624 448H512V50.8C512 22.78 490.47 0 464 0H175.99c-26.47 0-48 22.78-48 50.8V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM415.99 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32c.01 17.67-14.32 32-32 32z"] };
  3321. var faDoorOpen = { prefix: 'fas', iconName: 'door-open', icon: [640, 512, [], "f52b", "M624 448h-80V113.45C544 86.19 522.47 64 496 64H384v64h96v384h144c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM312.24 1.01l-192 49.74C105.99 54.44 96 67.7 96 82.92V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h336V33.18c0-21.58-19.56-37.41-39.76-32.17zM264 288c-13.25 0-24-14.33-24-32s10.75-32 24-32 24 14.33 24 32-10.75 32-24 32z"] };
  3322. var faDotCircle = { prefix: 'fas', iconName: 'dot-circle', icon: [512, 512, [], "f192", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"] };
  3323. var faDove = { prefix: 'fas', iconName: 'dove', icon: [512, 512, [], "f4ba", "M288 167.2v-28.1c-28.2-36.3-47.1-79.3-54.1-125.2-2.1-13.5-19-18.8-27.8-8.3-21.1 24.9-37.7 54.1-48.9 86.5 34.2 38.3 80 64.6 130.8 75.1zM400 64c-44.2 0-80 35.9-80 80.1v59.4C215.6 197.3 127 133 87 41.8c-5.5-12.5-23.2-13.2-29-.9C41.4 76 32 115.2 32 156.6c0 70.8 34.1 136.9 85.1 185.9 13.2 12.7 26.1 23.2 38.9 32.8l-143.9 36C1.4 414-3.4 426.4 2.6 435.7 20 462.6 63 508.2 155.8 512c8 .3 16-2.6 22.1-7.9l65.2-56.1H320c88.4 0 160-71.5 160-159.9V128l32-64H400zm0 96.1c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3324. var faDownload = { prefix: 'fas', iconName: 'download', icon: [512, 512, [], "f019", "M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3325. var faDraftingCompass = { prefix: 'fas', iconName: 'drafting-compass', icon: [512, 512, [], "f568", "M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"] };
  3326. var faDragon = { prefix: 'fas', iconName: 'dragon', icon: [640, 512, [], "f6d5", "M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"] };
  3327. var faDrawPolygon = { prefix: 'fas', iconName: 'draw-polygon', icon: [448, 512, [], "f5ee", "M384 352c-.35 0-.67.1-1.02.1l-39.2-65.32c5.07-9.17 8.22-19.56 8.22-30.78s-3.14-21.61-8.22-30.78l39.2-65.32c.35.01.67.1 1.02.1 35.35 0 64-28.65 64-64s-28.65-64-64-64c-23.63 0-44.04 12.95-55.12 32H119.12C108.04 44.95 87.63 32 64 32 28.65 32 0 60.65 0 96c0 23.63 12.95 44.04 32 55.12v209.75C12.95 371.96 0 392.37 0 416c0 35.35 28.65 64 64 64 23.63 0 44.04-12.95 55.12-32h209.75c11.09 19.05 31.49 32 55.12 32 35.35 0 64-28.65 64-64 .01-35.35-28.64-64-63.99-64zm-288 8.88V151.12A63.825 63.825 0 0 0 119.12 128h208.36l-38.46 64.1c-.35-.01-.67-.1-1.02-.1-35.35 0-64 28.65-64 64s28.65 64 64 64c.35 0 .67-.1 1.02-.1l38.46 64.1H119.12A63.748 63.748 0 0 0 96 360.88zM272 256c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zM400 96c0 8.82-7.18 16-16 16s-16-7.18-16-16 7.18-16 16-16 16 7.18 16 16zM64 80c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 416c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zm336 16c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z"] };
  3328. var faDrum = { prefix: 'fas', iconName: 'drum', icon: [576, 512, [], "f569", "M458.08 120.88l102.39-61.43c15.16-9.09 20.06-28.75 10.97-43.91C562.34.39 542.7-4.53 527.53 4.57l-160.69 96.41A629.32 629.32 0 0 0 288 96C128.94 96 0 153.31 0 224v160.83c0 30.46 24.03 58.4 64 80.37v-96.37c0-17.6 14.4-32 32-32s32 14.4 32 32v122.41c37.4 11.13 81 18.44 128 20.75V400.84c0-17.6 14.4-32 32-32s32 14.4 32 32V512c47-2.31 90.6-9.62 128-20.75V368.84c0-17.6 14.4-32 32-32s32 14.4 32 32v96.37c39.97-21.97 64-49.91 64-80.37V224.01c-.01-42.38-46.54-79.84-117.92-103.13zM288 304c-132.55 0-240-35.82-240-80s107.45-80 240-80c2.34 0 4.62.1 6.94.12l-87.41 52.44c-15.16 9.09-20.06 28.75-10.97 43.91 9.56 15.93 29.51 19.61 43.91 10.97l162.71-97.62C477.55 167.41 528 193.74 528 224.01 528 268.19 420.54 304 288 304z"] };
  3329. var faDrumSteelpan = { prefix: 'fas', iconName: 'drum-steelpan', icon: [576, 512, [], "f56a", "M288 32C128.94 32 0 89.31 0 160v192c0 70.69 128.94 128 288 128s288-57.31 288-128V160c0-70.69-128.94-128-288-128zm-82.99 158.36c-4.45 16.61-14.54 30.57-28.31 40.48C100.23 217.46 48 190.78 48 160c0-30.16 50.11-56.39 124.04-70.03l25.6 44.34c9.86 17.09 12.48 36.99 7.37 56.05zM288 240c-21.08 0-41.41-1-60.89-2.7 8.06-26.13 32.15-45.3 60.89-45.3s52.83 19.17 60.89 45.3C329.41 239 309.08 240 288 240zm64-144c0 35.29-28.71 64-64 64s-64-28.71-64-64V82.96c20.4-1.88 41.8-2.96 64-2.96s43.6 1.08 64 2.96V96zm46.93 134.9c-13.81-9.91-23.94-23.9-28.4-40.54-5.11-19.06-2.49-38.96 7.38-56.04l25.65-44.42C477.72 103.5 528 129.79 528 160c0 30.83-52.4 57.54-129.07 70.9z"] };
  3330. var faDrumstickBite = { prefix: 'fas', iconName: 'drumstick-bite', icon: [512, 512, [], "f6d7", "M462.79 49.57c-66.14-66.09-173.36-66.09-239.5 0C187.81 85.02 160.12 128 160.12 192v85.83l-40.62 40.59c-9.7 9.69-24.04 11.07-36.78 5.98-21.72-8.68-47.42-4.29-65.02 13.29-23.61 23.59-23.61 61.84 0 85.43 15.28 15.27 36.53 19.58 56.14 15.09-4.5 19.6-.18 40.83 15.1 56.1 23.61 23.59 61.88 23.59 85.49 0 17.6-17.58 21.99-43.26 13.31-64.97-5.09-12.73-3.72-27.05 5.99-36.75L234.35 352h85.89c23.2 0 43.57-3.72 61.89-10.03-39.64-43.89-39.83-110.23 1.05-151.07 34.38-34.36 86.76-39.46 128.74-16.8 1.3-44.93-14.81-90.25-49.13-124.53z"] };
  3331. var faDumbbell = { prefix: 'fas', iconName: 'dumbbell', icon: [640, 512, [], "f44b", "M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"] };
  3332. var faDungeon = { prefix: 'fas', iconName: 'dungeon', icon: [512, 512, [], "f6d9", "M128.73 195.32l-82.81-51.76c-8.04-5.02-18.99-2.17-22.93 6.45A254.19 254.19 0 0 0 .54 239.28C-.05 248.37 7.59 256 16.69 256h97.13c7.96 0 14.08-6.25 15.01-14.16 1.09-9.33 3.24-18.33 6.24-26.94 2.56-7.34.25-15.46-6.34-19.58zM319.03 8C298.86 2.82 277.77 0 256 0s-42.86 2.82-63.03 8c-9.17 2.35-13.91 12.6-10.39 21.39l37.47 104.03A16.003 16.003 0 0 0 235.1 144h41.8c6.75 0 12.77-4.23 15.05-10.58l37.47-104.03c3.52-8.79-1.22-19.03-10.39-21.39zM112 288H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm77.31-283.67l-36.32-90.8c-3.53-8.83-14.13-12.99-22.42-8.31a257.308 257.308 0 0 0-71.61 59.89c-6.06 7.32-3.85 18.48 4.22 23.52l82.93 51.83c6.51 4.07 14.66 2.62 20.11-2.79 5.18-5.15 10.79-9.85 16.79-14.05 6.28-4.41 9.15-12.17 6.3-19.29zM398.18 256h97.13c9.1 0 16.74-7.63 16.15-16.72a254.135 254.135 0 0 0-22.45-89.27c-3.94-8.62-14.89-11.47-22.93-6.45l-82.81 51.76c-6.59 4.12-8.9 12.24-6.34 19.58 3.01 8.61 5.15 17.62 6.24 26.94.93 7.91 7.05 14.16 15.01 14.16zm54.85-162.89a257.308 257.308 0 0 0-71.61-59.89c-8.28-4.68-18.88-.52-22.42 8.31l-36.32 90.8c-2.85 7.12.02 14.88 6.3 19.28 6 4.2 11.61 8.9 16.79 14.05 5.44 5.41 13.6 6.86 20.11 2.79l82.93-51.83c8.07-5.03 10.29-16.19 4.22-23.51zM496 288h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zM240 177.62V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V177.62c-5.23-.89-10.52-1.62-16-1.62s-10.77.73-16 1.62zm-64 41.51V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V189.36c-12.78 7.45-23.84 17.47-32 29.77zm128-29.77V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V219.13c-8.16-12.3-19.22-22.32-32-29.77z"] };
  3333. var faEdit = { prefix: 'fas', iconName: 'edit', icon: [576, 512, [], "f044", "M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"] };
  3334. var faEject = { prefix: 'fas', iconName: 'eject', icon: [448, 512, [], "f052", "M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"] };
  3335. var faEllipsisH = { prefix: 'fas', iconName: 'ellipsis-h', icon: [512, 512, [], "f141", "M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"] };
  3336. var faEllipsisV = { prefix: 'fas', iconName: 'ellipsis-v', icon: [192, 512, [], "f142", "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"] };
  3337. var faEnvelope = { prefix: 'fas', iconName: 'envelope', icon: [512, 512, [], "f0e0", "M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"] };
  3338. var faEnvelopeOpen = { prefix: 'fas', iconName: 'envelope-open', icon: [512, 512, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"] };
  3339. var faEnvelopeOpenText = { prefix: 'fas', iconName: 'envelope-open-text', icon: [512, 512, [], "f658", "M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"] };
  3340. var faEnvelopeSquare = { prefix: 'fas', iconName: 'envelope-square', icon: [448, 512, [], "f199", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"] };
  3341. var faEquals = { prefix: 'fas', iconName: 'equals', icon: [448, 512, [], "f52c", "M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3342. var faEraser = { prefix: 'fas', iconName: 'eraser', icon: [512, 512, [], "f12d", "M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"] };
  3343. var faEuroSign = { prefix: 'fas', iconName: 'euro-sign', icon: [320, 512, [], "f153", "M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"] };
  3344. var faExchangeAlt = { prefix: 'fas', iconName: 'exchange-alt', icon: [512, 512, [], "f362", "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  3345. var faExclamation = { prefix: 'fas', iconName: 'exclamation', icon: [192, 512, [], "f12a", "M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"] };
  3346. var faExclamationCircle = { prefix: 'fas', iconName: 'exclamation-circle', icon: [512, 512, [], "f06a", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  3347. var faExclamationTriangle = { prefix: 'fas', iconName: 'exclamation-triangle', icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  3348. var faExpand = { prefix: 'fas', iconName: 'expand', icon: [448, 512, [], "f065", "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"] };
  3349. var faExpandArrowsAlt = { prefix: 'fas', iconName: 'expand-arrows-alt', icon: [448, 512, [], "f31e", "M448.1 344v112c0 13.3-10.7 24-24 24h-112c-21.4 0-32.1-25.9-17-41l36.2-36.2L224 295.6 116.8 402.9 153 439c15.1 15.1 4.4 41-17 41H24c-13.3 0-24-10.7-24-24V344c0-21.4 25.9-32.1 41-17l36.2 36.2L184.5 256 77.2 148.7 41 185c-15.1 15.1-41 4.4-41-17V56c0-13.3 10.7-24 24-24h112c21.4 0 32.1 25.9 17 41l-36.2 36.2L224 216.4l107.3-107.3L295.1 73c-15.1-15.1-4.4-41 17-41h112c13.3 0 24 10.7 24 24v112c0 21.4-25.9 32.1-41 17l-36.2-36.2L263.6 256l107.3 107.3 36.2-36.2c15.1-15.2 41-4.5 41 16.9z"] };
  3350. var faExternalLinkAlt = { prefix: 'fas', iconName: 'external-link-alt', icon: [576, 512, [], "f35d", "M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"] };
  3351. var faExternalLinkSquareAlt = { prefix: 'fas', iconName: 'external-link-square-alt', icon: [448, 512, [], "f360", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"] };
  3352. var faEye = { prefix: 'fas', iconName: 'eye', icon: [576, 512, [], "f06e", "M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"] };
  3353. var faEyeDropper = { prefix: 'fas', iconName: 'eye-dropper', icon: [512, 512, [], "f1fb", "M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"] };
  3354. var faEyeSlash = { prefix: 'fas', iconName: 'eye-slash', icon: [576, 512, [], "f070", "M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"] };
  3355. var faFastBackward = { prefix: 'fas', iconName: 'fast-backward', icon: [512, 512, [], "f049", "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"] };
  3356. var faFastForward = { prefix: 'fas', iconName: 'fast-forward', icon: [512, 512, [], "f050", "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"] };
  3357. var faFax = { prefix: 'fas', iconName: 'fax', icon: [512, 512, [], "f1ac", "M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"] };
  3358. var faFeather = { prefix: 'fas', iconName: 'feather', icon: [512, 512, [], "f52d", "M467.14 44.84c-62.55-62.48-161.67-64.78-252.28 25.73-78.61 78.52-60.98 60.92-85.75 85.66-60.46 60.39-70.39 150.83-63.64 211.17l178.44-178.25c6.26-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.6 9.37 33.98 0l66.1-66.03C159.42 454.65 279 457.11 353.95 384h-98.19l147.57-49.14c49.99-49.93 36.38-36.18 46.31-46.86h-97.78l131.54-43.8c45.44-74.46 34.31-148.84-16.26-199.36z"] };
  3359. var faFeatherAlt = { prefix: 'fas', iconName: 'feather-alt', icon: [512, 512, [], "f56b", "M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36 53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"] };
  3360. var faFemale = { prefix: 'fas', iconName: 'female', icon: [256, 512, [], "f182", "M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"] };
  3361. var faFighterJet = { prefix: 'fas', iconName: 'fighter-jet', icon: [640, 512, [], "f0fb", "M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"] };
  3362. var faFile = { prefix: 'fas', iconName: 'file', icon: [384, 512, [], "f15b", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3363. var faFileAlt = { prefix: 'fas', iconName: 'file-alt', icon: [384, 512, [], "f15c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3364. var faFileArchive = { prefix: 'fas', iconName: 'file-archive', icon: [384, 512, [], "f1c6", "M224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32V32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6zm32.7-53c0 14.9-14.5 27-32.4 27S96 378 96 363c0-14.9 14.5-27 32.4-27s32.5 12.1 32.5 27zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3365. var faFileAudio = { prefix: 'fas', iconName: 'file-audio', icon: [384, 512, [], "f1c7", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3366. var faFileCode = { prefix: 'fas', iconName: 'file-code', icon: [384, 512, [], "f1c9", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zM123.206 400.505a5.4 5.4 0 0 1-7.633.246l-64.866-60.812a5.4 5.4 0 0 1 0-7.879l64.866-60.812a5.4 5.4 0 0 1 7.633.246l19.579 20.885a5.4 5.4 0 0 1-.372 7.747L101.65 336l40.763 35.874a5.4 5.4 0 0 1 .372 7.747l-19.579 20.884zm51.295 50.479l-27.453-7.97a5.402 5.402 0 0 1-3.681-6.692l61.44-211.626a5.402 5.402 0 0 1 6.692-3.681l27.452 7.97a5.4 5.4 0 0 1 3.68 6.692l-61.44 211.626a5.397 5.397 0 0 1-6.69 3.681zm160.792-111.045l-64.866 60.812a5.4 5.4 0 0 1-7.633-.246l-19.58-20.885a5.4 5.4 0 0 1 .372-7.747L284.35 336l-40.763-35.874a5.4 5.4 0 0 1-.372-7.747l19.58-20.885a5.4 5.4 0 0 1 7.633-.246l64.866 60.812a5.4 5.4 0 0 1-.001 7.879z"] };
  3367. var faFileContract = { prefix: 'fas', iconName: 'file-contract', icon: [384, 512, [], "f56c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3368. var faFileCsv = { prefix: 'fas', iconName: 'file-csv', icon: [384, 512, [], "f6dd", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3369. var faFileDownload = { prefix: 'fas', iconName: 'file-download', icon: [384, 512, [], "f56d", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3370. var faFileExcel = { prefix: 'fas', iconName: 'file-excel', icon: [384, 512, [], "f1c3", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3371. var faFileExport = { prefix: 'fas', iconName: 'file-export', icon: [576, 512, [], "f56e", "M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zM192 336v-32c0-8.84 7.16-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.84 0-16-7.16-16-16zm379.05-28.02l-95.7-96.43c-10.06-10.14-27.36-3.01-27.36 11.27V288H384v64h63.99v65.18c0 14.28 17.29 21.41 27.36 11.27l95.7-96.42c6.6-6.66 6.6-17.4 0-24.05z"] };
  3372. var faFileImage = { prefix: 'fas', iconName: 'file-image', icon: [384, 512, [], "f1c5", "M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"] };
  3373. var faFileImport = { prefix: 'fas', iconName: 'file-import', icon: [512, 512, [], "f56f", "M16 288c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h112v-64H16zm336-152V0H152c-13.3 0-24 10.7-24 24v264h127.99v-65.18c0-14.28 17.29-21.41 27.36-11.27l95.7 96.43c6.6 6.65 6.6 17.39 0 24.04l-95.7 96.42c-10.06 10.14-27.36 3.01-27.36-11.27V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24zm153-31L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3374. var faFileInvoice = { prefix: 'fas', iconName: 'file-invoice', icon: [384, 512, [], "f570", "M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"] };
  3375. var faFileInvoiceDollar = { prefix: 'fas', iconName: 'file-invoice-dollar', icon: [384, 512, [], "f571", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"] };
  3376. var faFileMedical = { prefix: 'fas', iconName: 'file-medical', icon: [384, 512, [], "f477", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"] };
  3377. var faFileMedicalAlt = { prefix: 'fas', iconName: 'file-medical-alt', icon: [448, 512, [], "f478", "M288 136V0H88C74.7 0 64 10.7 64 24v232H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h140.9c3 0 5.8 1.7 7.2 4.4l19.9 39.8 56.8-113.7c2.9-5.9 11.4-5.9 14.3 0l34.7 69.5H352c8.8 0 16 7.2 16 16s-7.2 16-16 16h-89.9L240 275.8l-56.8 113.7c-2.9 5.9-11.4 5.9-14.3 0L134.1 320H64v168c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H312c-13.2 0-24-10.8-24-24zm153-31L343.1 7c-4.5-4.5-10.6-7-17-7H320v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3378. var faFilePdf = { prefix: 'fas', iconName: 'file-pdf', icon: [384, 512, [], "f1c1", "M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"] };
  3379. var faFilePowerpoint = { prefix: 'fas', iconName: 'file-powerpoint', icon: [384, 512, [], "f1c4", "M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"] };
  3380. var faFilePrescription = { prefix: 'fas', iconName: 'file-prescription', icon: [384, 512, [], "f572", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm68.53 179.48l11.31 11.31c6.25 6.25 6.25 16.38 0 22.63l-29.9 29.9L304 409.38c6.25 6.25 6.25 16.38 0 22.63l-11.31 11.31c-6.25 6.25-16.38 6.25-22.63 0L240 413.25l-30.06 30.06c-6.25 6.25-16.38 6.25-22.63 0L176 432c-6.25-6.25-6.25-16.38 0-22.63l30.06-30.06L146.74 320H128v48c0 8.84-7.16 16-16 16H96c-8.84 0-16-7.16-16-16V208c0-8.84 7.16-16 16-16h80c35.35 0 64 28.65 64 64 0 24.22-13.62 45.05-33.46 55.92L240 345.38l29.9-29.9c6.25-6.25 16.38-6.25 22.63 0zM176 272h-48v-32h48c8.82 0 16 7.18 16 16s-7.18 16-16 16zm208-150.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3381. var faFileSignature = { prefix: 'fas', iconName: 'file-signature', icon: [576, 512, [], "f573", "M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"] };
  3382. var faFileUpload = { prefix: 'fas', iconName: 'file-upload', icon: [384, 512, [], "f574", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3383. var faFileVideo = { prefix: 'fas', iconName: 'file-video', icon: [384, 512, [], "f1c8", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"] };
  3384. var faFileWord = { prefix: 'fas', iconName: 'file-word', icon: [384, 512, [], "f1c2", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3385. var faFill = { prefix: 'fas', iconName: 'fill', icon: [512, 512, [], "f575", "M502.63 217.06L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.77c-6.24-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.63l86.19 86.18-94.76 94.76c-37.49 37.49-37.49 98.26 0 135.75l117.19 117.19c18.75 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.88-28.12l221.57-221.57c12.49-12.5 12.49-32.76 0-45.26zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.61 58.6c12.49 12.49 32.75 12.49 45.24 0 12.49-12.49 12.49-32.75 0-45.24l-58.61-58.6 58.95-58.95 162.45 162.44-48.35 48.34z"] };
  3386. var faFillDrip = { prefix: 'fas', iconName: 'fill-drip', icon: [576, 512, [], "f576", "M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"] };
  3387. var faFilm = { prefix: 'fas', iconName: 'film', icon: [512, 512, [], "f008", "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3388. var faFilter = { prefix: 'fas', iconName: 'filter', icon: [512, 512, [], "f0b0", "M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"] };
  3389. var faFingerprint = { prefix: 'fas', iconName: 'fingerprint', icon: [512, 512, [], "f577", "M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"] };
  3390. var faFire = { prefix: 'fas', iconName: 'fire', icon: [384, 512, [], "f06d", "M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"] };
  3391. var faFireExtinguisher = { prefix: 'fas', iconName: 'fire-extinguisher', icon: [448, 512, [], "f134", "M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"] };
  3392. var faFirstAid = { prefix: 'fas', iconName: 'first-aid', icon: [576, 512, [], "f479", "M0 80v352c0 26.5 21.5 48 48 48h48V32H48C21.5 32 0 53.5 0 80zm128 400h320V32H128v448zm64-248c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48zM528 32h-48v448h48c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3393. var faFish = { prefix: 'fas', iconName: 'fish', icon: [576, 512, [], "f578", "M327.1 96c-89.97 0-168.54 54.77-212.27 101.63L27.5 131.58c-12.13-9.18-30.24.6-27.14 14.66L24.54 256 .35 365.77c-3.1 14.06 15.01 23.83 27.14 14.66l87.33-66.05C158.55 361.23 237.13 416 327.1 416 464.56 416 576 288 576 256S464.56 96 327.1 96zm87.43 184c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24 13.26 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3394. var faFistRaised = { prefix: 'fas', iconName: 'fist-raised', icon: [384, 512, [], "f6de", "M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z"] };
  3395. var faFlag = { prefix: 'fas', iconName: 'flag', icon: [512, 512, [], "f024", "M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"] };
  3396. var faFlagCheckered = { prefix: 'fas', iconName: 'flag-checkered', icon: [512, 512, [], "f11e", "M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"] };
  3397. var faFlask = { prefix: 'fas', iconName: 'flask', icon: [448, 512, [], "f0c3", "M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"] };
  3398. var faFlushed = { prefix: 'fas', iconName: 'flushed', icon: [496, 512, [], "f579", "M344 200c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM80 224c0-39.8 32.2-72 72-72s72 32.2 72 72-32.2 72-72 72-72-32.2-72-72zm232 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-104c-39.8 0-72-32.2-72-72s32.2-72 72-72 72 32.2 72 72-32.2 72-72 72z"] };
  3399. var faFolder = { prefix: 'fas', iconName: 'folder', icon: [512, 512, [], "f07b", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"] };
  3400. var faFolderMinus = { prefix: 'fas', iconName: 'folder-minus', icon: [512, 512, [], "f65d", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16H160c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h192c8.84 0 16 7.16 16 16v16z"] };
  3401. var faFolderOpen = { prefix: 'fas', iconName: 'folder-open', icon: [576, 512, [], "f07c", "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"] };
  3402. var faFolderPlus = { prefix: 'fas', iconName: 'folder-plus', icon: [512, 512, [], "f65e", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16h-72v72c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-72h-72c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h72v-72c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v72h72c8.84 0 16 7.16 16 16v16z"] };
  3403. var faFont = { prefix: 'fas', iconName: 'font', icon: [448, 512, [], "f031", "M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"] };
  3404. var faFontAwesomeLogoFull = { prefix: 'fas', iconName: 'font-awesome-logo-full', icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"] };
  3405. var faFootballBall = { prefix: 'fas', iconName: 'football-ball', icon: [496, 512, [], "f44e", "M481.5 60.3c-4.8-18.2-19.1-32.5-37.3-37.4C420.3 16.5 383 8.9 339.4 8L496 164.8c-.8-43.5-8.2-80.6-14.5-104.5zm-467 391.4c4.8 18.2 19.1 32.5 37.3 37.4 23.9 6.4 61.2 14 104.8 14.9L0 347.2c.8 43.5 8.2 80.6 14.5 104.5zM4.2 283.4L220.4 500c132.5-19.4 248.8-118.7 271.5-271.4L275.6 12C143.1 31.4 26.8 130.7 4.2 283.4zm317.3-123.6c3.1-3.1 8.2-3.1 11.3 0l11.3 11.3c3.1 3.1 3.1 8.2 0 11.3l-28.3 28.3 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-22.6 22.7 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L248 278.6l-22.6 22.6 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-28.3 28.3c-3.1 3.1-8.2 3.1-11.3 0l-11.3-11.3c-3.1-3.1-3.1-8.2 0-11.3l28.3-28.3-28.3-28.2c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 28.3-28.5z"] };
  3406. var faForward = { prefix: 'fas', iconName: 'forward', icon: [512, 512, [], "f04e", "M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"] };
  3407. var faFrog = { prefix: 'fas', iconName: 'frog', icon: [576, 512, [], "f52e", "M446.53 97.43C439.67 60.23 407.19 32 368 32c-39.23 0-71.72 28.29-78.54 65.54C126.75 112.96-.5 250.12 0 416.98.11 451.9 29.08 480 64 480h304c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-79.49l35.8-48.33c24.14-36.23 10.35-88.28-33.71-106.6-23.89-9.93-51.55-4.65-72.24 10.88l-32.76 24.59c-7.06 5.31-17.09 3.91-22.41-3.19-5.3-7.08-3.88-17.11 3.19-22.41l34.78-26.09c36.84-27.66 88.28-27.62 125.13 0 10.87 8.15 45.87 39.06 40.8 93.21L469.62 480H560c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-53.63l-98.52-104.68 154.44-86.65A58.16 58.16 0 0 0 576 189.94c0-21.4-11.72-40.95-30.48-51.23-40.56-22.22-98.99-41.28-98.99-41.28zM368 136c-13.26 0-24-10.75-24-24 0-13.26 10.74-24 24-24 13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3408. var faFrown = { prefix: 'fas', iconName: 'frown', icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"] };
  3409. var faFrownOpen = { prefix: 'fas', iconName: 'frown-open', icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm187.3 183.3c-31.2-9.6-59.4-15.3-75.3-15.3s-44.1 5.7-75.3 15.3c-11.5 3.5-22.5-6.3-20.5-18.1 7-40 60.1-61.2 95.8-61.2s88.8 21.3 95.8 61.2c2 11.9-9.1 21.6-20.5 18.1zM328 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3410. var faFunnelDollar = { prefix: 'fas', iconName: 'funnel-dollar', icon: [640, 512, [], "f662", "M433.46 165.94l101.2-111.87C554.61 34.12 540.48 0 512.26 0H31.74C3.52 0-10.61 34.12 9.34 54.07L192 256v155.92c0 12.59 5.93 24.44 16 32l79.99 60c20.86 15.64 48.47 6.97 59.22-13.57C310.8 455.38 288 406.35 288 352c0-89.79 62.05-165.17 145.46-186.06zM480 192c-88.37 0-160 71.63-160 160s71.63 160 160 160 160-71.63 160-160-71.63-160-160-160zm16 239.88V448c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V256c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.04 44.44-42.67 45.07z"] };
  3411. var faFutbol = { prefix: 'fas', iconName: 'futbol', icon: [512, 512, [], "f1e3", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"] };
  3412. var faGamepad = { prefix: 'fas', iconName: 'gamepad', icon: [640, 512, [], "f11b", "M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3413. var faGasPump = { prefix: 'fas', iconName: 'gas-pump', icon: [512, 512, [], "f52f", "M336 448H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm157.2-340.7l-81-81c-6.2-6.2-16.4-6.2-22.6 0l-11.3 11.3c-6.2 6.2-6.2 16.4 0 22.6L416 97.9V160c0 28.1 20.9 51.3 48 55.2V376c0 13.2-10.8 24-24 24s-24-10.8-24-24v-32c0-48.6-39.4-88-88-88h-8V64c0-35.3-28.7-64-64-64H96C60.7 0 32 28.7 32 64v352h288V304h8c22.1 0 40 17.9 40 40v27.8c0 37.7 27 72 64.5 75.9 43 4.3 79.5-29.5 79.5-71.7V152.6c0-17-6.8-33.3-18.8-45.3zM256 192H96V64h160v128z"] };
  3414. var faGavel = { prefix: 'fas', iconName: 'gavel', icon: [512, 512, [], "f0e3", "M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"] };
  3415. var faGem = { prefix: 'fas', iconName: 'gem', icon: [576, 512, [], "f3a5", "M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"] };
  3416. var faGenderless = { prefix: 'fas', iconName: 'genderless', icon: [288, 512, [], "f22d", "M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"] };
  3417. var faGhost = { prefix: 'fas', iconName: 'ghost', icon: [384, 512, [], "f6e2", "M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3418. var faGift = { prefix: 'fas', iconName: 'gift', icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"] };
  3419. var faGlassMartini = { prefix: 'fas', iconName: 'glass-martini', icon: [512, 512, [], "f000", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6z"] };
  3420. var faGlassMartiniAlt = { prefix: 'fas', iconName: 'glass-martini-alt', icon: [512, 512, [], "f57b", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"] };
  3421. var faGlasses = { prefix: 'fas', iconName: 'glasses', icon: [576, 512, [], "f530", "M574.1 280.37L528.75 98.66c-5.91-23.7-21.59-44.05-43-55.81-21.44-11.73-46.97-14.11-70.19-6.33l-15.25 5.08c-8.39 2.79-12.92 11.86-10.12 20.24l5.06 15.18c2.79 8.38 11.85 12.91 20.23 10.12l13.18-4.39c10.87-3.62 23-3.57 33.16 1.73 10.29 5.37 17.57 14.56 20.37 25.82l38.46 153.82c-22.19-6.81-49.79-12.46-81.2-12.46-34.77 0-73.98 7.02-114.85 26.74h-73.18c-40.87-19.74-80.08-26.75-114.86-26.75-31.42 0-59.02 5.65-81.21 12.46l38.46-153.83c2.79-11.25 10.09-20.45 20.38-25.81 10.16-5.3 22.28-5.35 33.15-1.73l13.17 4.39c8.38 2.79 17.44-1.74 20.23-10.12l5.06-15.18c2.8-8.38-1.73-17.45-10.12-20.24l-15.25-5.08c-23.22-7.78-48.75-5.41-70.19 6.33-21.41 11.77-37.09 32.11-43 55.8L1.9 280.37A64.218 64.218 0 0 0 0 295.86v70.25C0 429.01 51.58 480 115.2 480h37.12c60.28 0 110.37-45.94 114.88-105.37l2.93-38.63h35.75l2.93 38.63C313.31 434.06 363.4 480 423.68 480h37.12c63.62 0 115.2-50.99 115.2-113.88v-70.25c0-5.23-.64-10.43-1.9-15.5zm-370.72 89.42c-1.97 25.91-24.4 46.21-51.06 46.21H115.2C86.97 416 64 393.62 64 366.11v-37.54c18.12-6.49 43.42-12.92 72.58-12.92 23.86 0 47.26 4.33 69.93 12.92l-3.13 41.22zM512 366.12c0 27.51-22.97 49.88-51.2 49.88h-37.12c-26.67 0-49.1-20.3-51.06-46.21l-3.13-41.22c22.67-8.59 46.08-12.92 69.95-12.92 29.12 0 54.43 6.44 72.55 12.93v37.54z"] };
  3422. var faGlobe = { prefix: 'fas', iconName: 'globe', icon: [496, 512, [], "f0ac", "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"] };
  3423. var faGlobeAfrica = { prefix: 'fas', iconName: 'globe-africa', icon: [496, 512, [], "f57c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"] };
  3424. var faGlobeAmericas = { prefix: 'fas', iconName: 'globe-americas', icon: [496, 512, [], "f57d", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm82.29 357.6c-3.9 3.88-7.99 7.95-11.31 11.28-2.99 3-5.1 6.7-6.17 10.71-1.51 5.66-2.73 11.38-4.77 16.87l-17.39 46.85c-13.76 3-28 4.69-42.65 4.69v-27.38c1.69-12.62-7.64-36.26-22.63-51.25-6-6-9.37-14.14-9.37-22.63v-32.01c0-11.64-6.27-22.34-16.46-27.97-14.37-7.95-34.81-19.06-48.81-26.11-11.48-5.78-22.1-13.14-31.65-21.75l-.8-.72a114.792 114.792 0 0 1-18.06-20.74c-9.38-13.77-24.66-36.42-34.59-51.14 20.47-45.5 57.36-82.04 103.2-101.89l24.01 12.01C203.48 89.74 216 82.01 216 70.11v-11.3c7.99-1.29 16.12-2.11 24.39-2.42l28.3 28.3c6.25 6.25 6.25 16.38 0 22.63L264 112l-10.34 10.34c-3.12 3.12-3.12 8.19 0 11.31l4.69 4.69c3.12 3.12 3.12 8.19 0 11.31l-8 8a8.008 8.008 0 0 1-5.66 2.34h-8.99c-2.08 0-4.08.81-5.58 2.27l-9.92 9.65a8.008 8.008 0 0 0-1.58 9.31l15.59 31.19c2.66 5.32-1.21 11.58-7.15 11.58h-5.64c-1.93 0-3.79-.7-5.24-1.96l-9.28-8.06a16.017 16.017 0 0 0-15.55-3.1l-31.17 10.39a11.95 11.95 0 0 0-8.17 11.34c0 4.53 2.56 8.66 6.61 10.69l11.08 5.54c9.41 4.71 19.79 7.16 30.31 7.16s22.59 27.29 32 32h66.75c8.49 0 16.62 3.37 22.63 9.37l13.69 13.69a30.503 30.503 0 0 1 8.93 21.57 46.536 46.536 0 0 1-13.72 32.98zM417 274.25c-5.79-1.45-10.84-5-14.15-9.97l-17.98-26.97a23.97 23.97 0 0 1 0-26.62l19.59-29.38c2.32-3.47 5.5-6.29 9.24-8.15l12.98-6.49C440.2 193.59 448 223.87 448 256c0 8.67-.74 17.16-1.82 25.54L417 274.25z"] };
  3425. var faGlobeAsia = { prefix: 'fas', iconName: 'globe-asia', icon: [496, 512, [], "f57e", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm-11.34 240.23c-2.89 4.82-8.1 7.77-13.72 7.77h-.31c-4.24 0-8.31 1.69-11.31 4.69l-5.66 5.66c-3.12 3.12-3.12 8.19 0 11.31l5.66 5.66c3 3 4.69 7.07 4.69 11.31V304c0 8.84-7.16 16-16 16h-6.11c-6.06 0-11.6-3.42-14.31-8.85l-22.62-45.23c-2.44-4.88-8.95-5.94-12.81-2.08l-19.47 19.46c-3 3-7.07 4.69-11.31 4.69H50.81C49.12 277.55 48 266.92 48 256c0-110.28 89.72-200 200-200 21.51 0 42.2 3.51 61.63 9.82l-50.16 38.53c-5.11 3.41-4.63 11.06.86 13.81l10.83 5.41c5.42 2.71 8.84 8.25 8.84 14.31V216c0 4.42-3.58 8-8 8h-3.06c-3.03 0-5.8-1.71-7.15-4.42-1.56-3.12-5.96-3.29-7.76-.3l-17.37 28.95zM408 358.43c0 4.24-1.69 8.31-4.69 11.31l-9.57 9.57c-3 3-7.07 4.69-11.31 4.69h-15.16c-4.24 0-8.31-1.69-11.31-4.69l-13.01-13.01a26.767 26.767 0 0 0-25.42-7.04l-21.27 5.32c-1.27.32-2.57.48-3.88.48h-10.34c-4.24 0-8.31-1.69-11.31-4.69l-11.91-11.91a8.008 8.008 0 0 1-2.34-5.66v-10.2c0-3.27 1.99-6.21 5.03-7.43l39.34-15.74c1.98-.79 3.86-1.82 5.59-3.05l23.71-16.89a7.978 7.978 0 0 1 4.64-1.48h12.09c3.23 0 6.15 1.94 7.39 4.93l5.35 12.85a4 4 0 0 0 3.69 2.46h3.8c1.78 0 3.35-1.18 3.84-2.88l4.2-14.47c.5-1.71 2.06-2.88 3.84-2.88h6.06c2.21 0 4 1.79 4 4v12.93c0 2.12.84 4.16 2.34 5.66l11.91 11.91c3 3 4.69 7.07 4.69 11.31v24.6z"] };
  3426. var faGolfBall = { prefix: 'fas', iconName: 'golf-ball', icon: [416, 512, [], "f450", "M96 416h224c0 17.7-14.3 32-32 32h-16c-17.7 0-32 14.3-32 32v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20c0-17.7-14.3-32-32-32h-16c-17.7 0-32-14.3-32-32zm320-208c0 74.2-39 139.2-97.5 176h-221C39 347.2 0 282.2 0 208 0 93.1 93.1 0 208 0s208 93.1 208 208zm-180.1 43.9c18.3 0 33.1-14.8 33.1-33.1 0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1zm49.1 46.9c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1zm64-64c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1z"] };
  3427. var faGopuram = { prefix: 'fas', iconName: 'gopuram', icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.84-7.16-16-16-16h-16v-80c0-8.84-7.16-16-16-16h-16V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16S96 7.16 96 16v112H80c-8.84 0-16 7.16-16 16v80H48c-8.84 0-16 7.16-16 16v112H16c-8.84 0-16 7.16-16 16v128c0 8.84 7.16 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.84 0 16-7.16 16-16V368c0-8.84-7.16-16-16-16zm-272 0v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64h-64zm8-128v-48c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v48h-48z"] };
  3428. var faGraduationCap = { prefix: 'fas', iconName: 'graduation-cap', icon: [640, 512, [], "f19d", "M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"] };
  3429. var faGreaterThan = { prefix: 'fas', iconName: 'greater-than', icon: [384, 512, [], "f531", "M365.52 209.85L59.22 67.01c-16.06-7.49-35.15-.54-42.64 15.52L3.01 111.61c-7.49 16.06-.54 35.15 15.52 42.64L236.96 256.1 18.49 357.99C2.47 365.46-4.46 384.5 3.01 400.52l13.52 29C24 445.54 43.04 452.47 59.06 445l306.47-142.91a32.003 32.003 0 0 0 18.48-29v-34.23c-.01-12.45-7.21-23.76-18.49-29.01z"] };
  3430. var faGreaterThanEqual = { prefix: 'fas', iconName: 'greater-than-equal', icon: [448, 512, [], "f532", "M55.22 107.69l175.56 68.09-175.44 68.05c-18.39 6.03-27.88 24.39-21.2 41l12.09 30.08c6.68 16.61 26.99 25.19 45.38 19.15L393.02 214.2c13.77-4.52 22.98-16.61 22.98-30.17v-15.96c0-13.56-9.21-25.65-22.98-30.17L91.3 17.92c-18.29-6-38.51 2.53-45.15 19.06L34.12 66.9c-6.64 16.53 2.81 34.79 21.1 40.79zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3431. var faGrimace = { prefix: 'fas', iconName: 'grimace', icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM144 400h-8c-17.7 0-32-14.3-32-32v-8h40v40zm0-56h-40v-8c0-17.7 14.3-32 32-32h8v40zm-8-136c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm72 192h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm-8-104c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64 128c0 17.7-14.3 32-32 32h-8v-40h40v8zm0-24h-40v-40h8c17.7 0 32 14.3 32 32v8z"] };
  3432. var faGrin = { prefix: 'fas', iconName: 'grin', icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm80 256c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3433. var faGrinAlt = { prefix: 'fas', iconName: 'grin-alt', icon: [496, 512, [], "f581", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm63.7 128.7c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zm-160 0c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3434. var faGrinBeam = { prefix: 'fas', iconName: 'grin-beam', icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 144c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3435. var faGrinBeamSweat = { prefix: 'fas', iconName: 'grin-beam-sweat', icon: [504, 512, [], "f583", "M456 128c26.5 0 48-21 48-47 0-20-28.5-60.4-41.6-77.8-3.2-4.3-9.6-4.3-12.8 0C436.5 20.6 408 61 408 81c0 26 21.5 47 48 47zm0 32c-44.1 0-80-35.4-80-79 0-4.4.3-14.2 8.1-32.2C345 23.1 298.3 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-35.1-7.4-68.4-20.5-98.6-6.3 1.5-12.7 2.6-19.5 2.6zm-128-8c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3436. var faGrinHearts = { prefix: 'fas', iconName: 'grin-hearts', icon: [496, 512, [], "f584", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM90.4 183.6c6.7-17.6 26.7-26.7 44.9-21.9l7.1 1.9 2-7.1c5-18.1 22.8-30.9 41.5-27.9 21.4 3.4 34.4 24.2 28.8 44.5L195.3 243c-1.2 4.5-5.9 7.2-10.5 6l-70.2-18.2c-20.4-5.4-31.9-27-24.2-47.2zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm133.4-201.3l-70.2 18.2c-4.5 1.2-9.2-1.5-10.5-6L281.3 173c-5.6-20.3 7.4-41.1 28.8-44.5 18.6-3 36.4 9.8 41.5 27.9l2 7.1 7.1-1.9c18.2-4.7 38.2 4.3 44.9 21.9 7.7 20.3-3.8 41.9-24.2 47.2z"] };
  3437. var faGrinSquint = { prefix: 'fas', iconName: 'grin-squint', icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3438. var faGrinSquintTears = { prefix: 'fas', iconName: 'grin-squint-tears', icon: [512, 512, [], "f586", "M409.6 111.9c22.6-3.2 73.5-12 88.3-26.8 19.2-19.2 18.9-50.6-.7-70.2S446-5 426.9 14.2c-14.8 14.8-23.5 65.7-26.8 88.3-.8 5.5 3.9 10.2 9.5 9.4zM102.4 400.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm311.7-256.5c-33 3.9-48.6-25.1-45.7-45.7 3.4-24 7.4-42.1 11.5-56.5C285.1-13.4 161.8-.5 80.6 80.6-.5 161.7-13.4 285 41.4 379.9c14.4-4.1 32.4-8 56.5-11.5 33.2-3.9 48.6 25.2 45.7 45.7-3.4 24-7.4 42.1-11.5 56.5 94.8 54.8 218.1 41.9 299.3-39.2s94-204.4 39.2-299.3c-14.4 4.1-32.5 8-56.5 11.5zM255.7 106c3.3-13.2 22.4-11.5 23.6 1.8l4.8 52.3 52.3 4.8c13.4 1.2 14.9 20.3 1.8 23.6l-90.5 22.6c-8.9 2.2-16.7-5.9-14.5-14.5l22.5-90.6zm-90.9 230.3L160 284l-52.3-4.8c-13.4-1.2-14.9-20.3-1.8-23.6l90.5-22.6c8.8-2.2 16.7 5.8 14.5 14.5L188.3 338c-3.1 13.2-22.2 11.7-23.5-1.7zm215.7 44.2c-29.3 29.3-75.7 50.4-116.7 50.4-18.9 0-36.6-4.5-51-14.7-9.8-6.9-8.7-21.8 2-27.2 28.3-14.6 63.9-42.4 97.8-76.3s61.7-69.6 76.3-97.8c5.4-10.5 20.2-11.9 27.3-2 32.3 45.3 7.1 124.7-35.7 167.6z"] };
  3439. var faGrinStars = { prefix: 'fas', iconName: 'grin-stars', icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"] };
  3440. var faGrinTears = { prefix: 'fas', iconName: 'grin-tears', icon: [640, 512, [], "f588", "M102.4 256.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm523.4 26.8c-14.8-14.8-65.7-23.5-88.3-26.8-5.5-.8-10.3 3.9-9.5 9.5 3.2 22.6 12 73.5 26.8 88.3 19.2 19.2 50.6 18.9 70.2-.7s20-51.2.8-70.3zm-129.4-12.8c-3.8-26.6 19.1-49.5 45.7-45.7 8.9 1.3 16.8 2.7 24.3 4.1C552.7 104.5 447.7 8 320 8S87.3 104.5 73.6 228.5c7.5-1.4 15.4-2.8 24.3-4.1 33.2-3.9 48.6 25.3 45.7 45.7-11.8 82.3-29.9 100.4-35.8 106.4-.9.9-2 1.6-3 2.5 42.7 74.6 123 125 215.2 125s172.5-50.4 215.2-125.1c-1-.9-2.1-1.5-3-2.5-5.9-5.9-24-24-35.8-106.3zM400 152c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.7 9.2-21.6 20.7-17.9C227.1 330.5 272 336 320 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3441. var faGrinTongue = { prefix: 'fas', iconName: 'grin-tongue', icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-34.9 134.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3442. var faGrinTongueSquint = { prefix: 'fas', iconName: 'grin-tongue-squint', icon: [496, 512, [], "f58a", "M293.1 374.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-33.8 210.3l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.7 4.7 7.7 15.9 0 20.6zm163 30c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.8-4.7-7.8-15.9 0-20.6l80-48c11.7-6.9 23.9 7.7 15.4 18L343.6 208l33.6 40.3z"] };
  3443. var faGrinTongueWink = { prefix: 'fas', iconName: 'grin-tongue-wink', icon: [496, 512, [], "f58b", "M344 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-56 225l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L112 233c-8.5 7.4-21.6.3-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c1.6 11.1-11.6 18.2-20 10.8zm152 39c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-50.9 102.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3444. var faGrinWink = { prefix: 'fas', iconName: 'grin-wink', icon: [496, 512, [], "f58c", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm168 25l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.6 11-11.5 18.2-20 10.8zm-243.1 87.8C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6 20.7 17.9-9.2 55-83.2 93.3-143.8 93.3s-134.5-38.3-143.8-93.3c-2-11.9 9.3-21.6 20.7-17.9z"] };
  3445. var faGripHorizontal = { prefix: 'fas', iconName: 'grip-horizontal', icon: [448, 512, [], "f58d", "M96 288H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM96 96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3446. var faGripVertical = { prefix: 'fas', iconName: 'grip-vertical', icon: [320, 512, [], "f58e", "M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3447. var faHSquare = { prefix: 'fas', iconName: 'h-square', icon: [448, 512, [], "f0fd", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"] };
  3448. var faHammer = { prefix: 'fas', iconName: 'hammer', icon: [576, 512, [], "f6e3", "M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z"] };
  3449. var faHamsa = { prefix: 'fas', iconName: 'hamsa', icon: [512, 512, [], "f665", "M509.34 307.25C504.28 295.56 492.75 288 480 288h-64V80c0-22-18-40-40-40s-40 18-40 40v134c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V40c0-22-18-40-40-40s-40 18-40 40v174c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V80c0-22-18-40-40-40S96 58 96 80v208H32c-12.75 0-24.28 7.56-29.34 19.25a31.966 31.966 0 0 0 5.94 34.58l102.69 110.03C146.97 490.08 199.69 512 256 512s109.03-21.92 144.72-60.14L503.4 341.83a31.966 31.966 0 0 0 5.94-34.58zM256 416c-53.02 0-96-64-96-64s42.98-64 96-64 96 64 96 64-42.98 64-96 64zm0-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3450. var faHandHolding = { prefix: 'fas', iconName: 'hand-holding', icon: [576, 512, [], "f4bd", "M565.3 328.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3451. var faHandHoldingHeart = { prefix: 'fas', iconName: 'hand-holding-heart', icon: [576, 512, [], "f4be", "M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3452. var faHandHoldingUsd = { prefix: 'fas', iconName: 'hand-holding-usd', icon: [544, 512, [], "f4c0", "M257.6 144.3l50 14.3c3.6 1 6.1 4.4 6.1 8.1 0 4.6-3.8 8.4-8.4 8.4h-32.8c-3.6 0-7.1-.8-10.3-2.2-4.8-2.2-10.4-1.7-14.1 2l-17.5 17.5c-5.3 5.3-4.7 14.3 1.5 18.4 9.5 6.3 20.3 10.1 31.8 11.5V240c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-17.6c30.3-3.6 53.3-31 49.3-63-2.9-23-20.7-41.3-42.9-47.7l-50-14.3c-3.6-1-6.1-4.4-6.1-8.1 0-4.6 3.8-8.4 8.4-8.4h32.8c3.6 0 7.1.8 10.3 2.2 4.8 2.2 10.4 1.7 14.1-2l17.5-17.5c5.3-5.3 4.7-14.3-1.5-18.4-9.5-6.3-20.3-10.1-31.8-11.5V16c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v17.6c-30.3 3.6-53.3 31-49.3 63 2.9 23 20.7 41.3 42.9 47.7zm276.3 183.8c-11.2-10.7-28.5-10-40.3 0L406.4 402c-10.7 9.1-24 14-37.8 14H256.9c-8.3 0-15.1-7.2-15.1-16s6.8-16 15.1-16h73.9c15.1 0 29-10.9 31.4-26.6 3.1-20-11.5-37.4-29.8-37.4H181.3c-25.5 0-50.2 9.3-69.9 26.3L67.5 384H15.1C6.8 384 0 391.2 0 400v96c0 8.8 6.8 16 15.1 16H352c13.7 0 27-4.9 37.8-14l142.8-121c14.4-12.1 15.5-35.3 1.3-48.9z"] };
  3453. var faHandLizard = { prefix: 'fas', iconName: 'hand-lizard', icon: [576, 512, [], "f258", "M384 480h192V363.778a95.998 95.998 0 0 0-14.833-51.263L398.127 54.368A48 48 0 0 0 357.544 32H24C10.745 32 0 42.745 0 56v16c0 30.928 25.072 56 56 56h229.981c12.844 0 21.556 13.067 16.615 24.923l-21.41 51.385A32 32 0 0 1 251.648 224H128c-35.346 0-64 28.654-64 64v8c0 13.255 10.745 24 24 24h147.406a47.995 47.995 0 0 1 25.692 7.455l111.748 70.811A24.001 24.001 0 0 1 384 418.539V480z"] };
  3454. var faHandPaper = { prefix: 'fas', iconName: 'hand-paper', icon: [448, 512, [], "f256", "M408.781 128.007C386.356 127.578 368 146.36 368 168.79V256h-8V79.79c0-22.43-18.356-41.212-40.781-40.783C297.488 39.423 280 57.169 280 79v177h-8V40.79C272 18.36 253.644-.422 231.219.007 209.488.423 192 18.169 192 40v216h-8V80.79c0-22.43-18.356-41.212-40.781-40.783C121.488 40.423 104 58.169 104 80v235.992l-31.648-43.519c-12.993-17.866-38.009-21.817-55.877-8.823-17.865 12.994-21.815 38.01-8.822 55.877l125.601 172.705A48 48 0 0 0 172.073 512h197.59c22.274 0 41.622-15.324 46.724-37.006l26.508-112.66a192.011 192.011 0 0 0 5.104-43.975V168c.001-21.831-17.487-39.577-39.218-39.993z"] };
  3455. var faHandPeace = { prefix: 'fas', iconName: 'hand-peace', icon: [448, 512, [], "f25b", "M408 216c-22.092 0-40 17.909-40 40h-8v-32c0-22.091-17.908-40-40-40s-40 17.909-40 40v32h-8V48c0-26.51-21.49-48-48-48s-48 21.49-48 48v208h-13.572L92.688 78.449C82.994 53.774 55.134 41.63 30.461 51.324 5.787 61.017-6.356 88.877 3.337 113.551l74.765 190.342-31.09 24.872c-15.381 12.306-19.515 33.978-9.741 51.081l64 112A39.998 39.998 0 0 0 136 512h240c18.562 0 34.686-12.77 38.937-30.838l32-136A39.97 39.97 0 0 0 448 336v-80c0-22.091-17.908-40-40-40z"] };
  3456. var faHandPointDown = { prefix: 'fas', iconName: 'hand-point-down', icon: [384, 512, [], "f0a7", "M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3457. var faHandPointLeft = { prefix: 'fas', iconName: 'hand-point-left', icon: [512, 512, [], "f0a5", "M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"] };
  3458. var faHandPointRight = { prefix: 'fas', iconName: 'hand-point-right', icon: [512, 512, [], "f0a4", "M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3459. var faHandPointUp = { prefix: 'fas', iconName: 'hand-point-up', icon: [384, 512, [], "f0a6", "M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3460. var faHandPointer = { prefix: 'fas', iconName: 'hand-pointer', icon: [448, 512, [], "f25a", "M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.908-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.908-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.908-40 40-40s40 17.909 40 40v24h8c0-22.091 17.908-40 40-40s40 17.909 40 40zm-256 80h-8v96h8v-96zm88 0h-8v96h8v-96zm88 0h-8v96h8v-96z"] };
  3461. var faHandRock = { prefix: 'fas', iconName: 'hand-rock', icon: [512, 512, [], "f255", "M512 128.79c0-26.322-20.861-48.344-47.18-48.783C437.935 79.558 416 101.217 416 128h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C333.935 47.558 312 69.217 312 96v32h-8V80.79c0-26.322-20.861-48.344-47.18-48.783C229.935 31.558 208 53.217 208 80v48h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C125.935 47.558 104 69.217 104 96v136l-8-7.111V176.79c0-26.322-20.861-48.344-47.18-48.783C21.935 127.558 0 149.217 0 176v66.445a95.998 95.998 0 0 0 32.221 71.751l111.668 99.261A47.999 47.999 0 0 1 160 449.333V456c0 13.255 10.745 24 24 24h240c13.255 0 24-10.745 24-24v-2.921a96.01 96.01 0 0 1 7.523-37.254l48.954-116.265A96.002 96.002 0 0 0 512 262.306V128.79z"] };
  3462. var faHandScissors = { prefix: 'fas', iconName: 'hand-scissors', icon: [512, 512, [], "f257", "M216 440c0-22.092 17.909-40 40-40v-8h-32c-22.091 0-40-17.908-40-40s17.909-40 40-40h32v-8H48c-26.51 0-48-21.49-48-48s21.49-48 48-48h208v-13.572l-177.551-69.74c-24.674-9.694-36.818-37.555-27.125-62.228 9.693-24.674 37.554-36.817 62.228-27.124l190.342 74.765 24.872-31.09c12.306-15.381 33.978-19.515 51.081-9.741l112 64A40.002 40.002 0 0 1 512 168v240c0 18.562-12.77 34.686-30.838 38.937l-136 32A39.982 39.982 0 0 1 336 480h-80c-22.091 0-40-17.908-40-40z"] };
  3463. var faHandSpock = { prefix: 'fas', iconName: 'hand-spock', icon: [512, 512, [], "f259", "M10.872 316.585c15.139-16.086 40.454-16.854 56.543-1.713L128 371.893v-79.405L88.995 120.865c-4.896-21.542 8.598-42.974 30.14-47.87 21.549-4.894 42.975 8.599 47.87 30.141L201.747 256h9.833L164.016 48.966c-4.946-21.531 8.498-42.994 30.028-47.94 21.532-4.95 42.994 8.498 47.94 30.028L293.664 256h15.105l48.425-193.702c5.357-21.432 27.075-34.462 48.507-29.104 21.432 5.358 34.463 27.075 29.104 48.507L391.231 256h11.08l30.768-129.265c5.117-21.491 26.685-34.768 48.177-29.647 21.491 5.117 34.765 26.686 29.647 48.177l-36.292 152.467A96.024 96.024 0 0 0 472 319.967v42.102a96.002 96.002 0 0 1-3.96 27.287l-26.174 88.287C435.825 498.022 417.101 512 395.846 512H179.172a48.002 48.002 0 0 1-32.898-13.046L12.585 373.128c-16.087-15.141-16.853-40.456-1.713-56.543z"] };
  3464. var faHands = { prefix: 'fas', iconName: 'hands', icon: [640, 512, [], "f4c2", "M204.8 230.4c-10.6-14.1-30.7-17-44.8-6.4-14.1 10.6-17 30.7-6.4 44.8l38.1 50.8c4.8 6.4 4.1 15.3-1.5 20.9l-12.8 12.8c-6.7 6.7-17.6 6.2-23.6-1.1L64 244.4V96c0-17.7-14.3-32-32-32S0 78.3 0 96v218.4c0 10.9 3.7 21.5 10.5 30l104.1 134.3c5 6.5 8.4 13.9 10.4 21.7 1.8 6.9 8.1 11.6 15.3 11.6H272c8.8 0 16-7.2 16-16V384c0-27.7-9-54.6-25.6-76.8l-57.6-76.8zM608 64c-17.7 0-32 14.3-32 32v148.4l-89.8 107.8c-6 7.2-17 7.7-23.6 1.1l-12.8-12.8c-5.6-5.6-6.3-14.5-1.5-20.9l38.1-50.8c10.6-14.1 7.7-34.2-6.4-44.8-14.1-10.6-34.2-7.7-44.8 6.4l-57.6 76.8C361 329.4 352 356.3 352 384v112c0 8.8 7.2 16 16 16h131.7c7.1 0 13.5-4.7 15.3-11.6 2-7.8 5.4-15.2 10.4-21.7l104.1-134.3c6.8-8.5 10.5-19.1 10.5-30V96c0-17.7-14.3-32-32-32z"] };
  3465. var faHandsHelping = { prefix: 'fas', iconName: 'hands-helping', icon: [640, 512, [], "f4c4", "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"] };
  3466. var faHandshake = { prefix: 'fas', iconName: 'handshake', icon: [640, 512, [], "f2b5", "M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z"] };
  3467. var faHanukiah = { prefix: 'fas', iconName: 'hanukiah', icon: [640, 512, [], "f6e6", "M232 160c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm-64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm224 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm88 8c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v120h32V168zm-440-8c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm520 0h-32c-8.84 0-16 7.16-16 16v112c0 17.67-14.33 32-32 32H352V128c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v192H96c-17.67 0-32-14.33-32-32V176c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v112c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V176c0-8.84-7.16-16-16-16zm-16-32c13.25 0 24-11.94 24-26.67S608 48 608 48s-24 38.61-24 53.33S594.75 128 608 128zm-576 0c13.25 0 24-11.94 24-26.67S32 48 32 48 8 86.61 8 101.33 18.75 128 32 128zm288-48c13.25 0 24-11.94 24-26.67S320 0 320 0s-24 38.61-24 53.33S306.75 80 320 80zm-208 48c13.25 0 24-11.94 24-26.67S112 48 112 48s-24 38.61-24 53.33S98.75 128 112 128zm64 0c13.25 0 24-11.94 24-26.67S176 48 176 48s-24 38.61-24 53.33S162.75 128 176 128zm64 0c13.25 0 24-11.94 24-26.67S240 48 240 48s-24 38.61-24 53.33S226.75 128 240 128zm160 0c13.25 0 24-11.94 24-26.67S400 48 400 48s-24 38.61-24 53.33S386.75 128 400 128zm64 0c13.25 0 24-11.94 24-26.67S464 48 464 48s-24 38.61-24 53.33S450.75 128 464 128zm64 0c13.25 0 24-11.94 24-26.67S528 48 528 48s-24 38.61-24 53.33S514.75 128 528 128z"] };
  3468. var faHashtag = { prefix: 'fas', iconName: 'hashtag', icon: [448, 512, [], "f292", "M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"] };
  3469. var faHatWizard = { prefix: 'fas', iconName: 'hat-wizard', icon: [512, 512, [], "f6e8", "M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"] };
  3470. var faHaykal = { prefix: 'fas', iconName: 'haykal', icon: [512, 512, [], "f666", "M496.25 202.52l-110-15.44 41.82-104.34c6.67-16.64-11.6-32.18-26.59-22.63L307.44 120 273.35 12.82C270.64 4.27 263.32 0 256 0c-7.32 0-14.64 4.27-17.35 12.82l-34.09 107.19-94.04-59.89c-14.99-9.55-33.25 5.99-26.59 22.63l41.82 104.34-110 15.43c-17.54 2.46-21.68 26.27-6.03 34.67l98.16 52.66-74.48 83.54c-10.92 12.25-1.72 30.93 13.29 30.93 1.31 0 2.67-.14 4.07-.45l108.57-23.65-4.11 112.55c-.43 11.65 8.87 19.22 18.41 19.22 5.15 0 10.39-2.21 14.2-7.18l68.18-88.9 68.18 88.9c3.81 4.97 9.04 7.18 14.2 7.18 9.54 0 18.84-7.57 18.41-19.22l-4.11-112.55 108.57 23.65c17.36 3.76 29.21-17.2 17.35-30.49l-74.48-83.54 98.16-52.66c15.64-8.39 11.5-32.2-6.04-34.66zM338.51 311.68l-51.89-11.3 1.97 53.79L256 311.68l-32.59 42.49 1.96-53.79-51.89 11.3 35.6-39.93-46.92-25.17 52.57-7.38-19.99-49.87 44.95 28.62L256 166.72l16.29 51.23 44.95-28.62-19.99 49.87 52.57 7.38-46.92 25.17 35.61 39.93z"] };
  3471. var faHdd = { prefix: 'fas', iconName: 'hdd', icon: [576, 512, [], "f0a0", "M576 304v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48zm-48-80a79.557 79.557 0 0 1 30.777 6.165L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L17.223 230.165A79.557 79.557 0 0 1 48 224h480zm-48 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3472. var faHeading = { prefix: 'fas', iconName: 'heading', icon: [512, 512, [], "f1dc", "M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"] };
  3473. var faHeadphones = { prefix: 'fas', iconName: 'headphones', icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"] };
  3474. var faHeadphonesAlt = { prefix: 'fas', iconName: 'headphones-alt', icon: [512, 512, [], "f58f", "M160 288h-16c-35.35 0-64 28.7-64 64.12v63.76c0 35.41 28.65 64.12 64 64.12h16c17.67 0 32-14.36 32-32.06V320.06c0-17.71-14.33-32.06-32-32.06zm208 0h-16c-17.67 0-32 14.35-32 32.06v127.88c0 17.7 14.33 32.06 32 32.06h16c35.35 0 64-28.71 64-64.12v-63.76c0-35.41-28.65-64.12-64-64.12zM256 32C112.91 32 4.57 151.13 0 288v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288c0-114.67 93.33-207.8 208-207.82 114.67.02 208 93.15 208 207.82v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288C507.43 151.13 399.09 32 256 32z"] };
  3475. var faHeadset = { prefix: 'fas', iconName: 'headset', icon: [512, 512, [], "f590", "M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"] };
  3476. var faHeart = { prefix: 'fas', iconName: 'heart', icon: [512, 512, [], "f004", "M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"] };
  3477. var faHeartbeat = { prefix: 'fas', iconName: 'heartbeat', icon: [512, 512, [], "f21e", "M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"] };
  3478. var faHelicopter = { prefix: 'fas', iconName: 'helicopter', icon: [640, 512, [], "f533", "M304 384h272c17.67 0 32-14.33 32-32 0-123.71-100.29-224-224-224V64h176c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H144c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h176v64H112L68.8 70.4C65.78 66.37 61.03 64 56 64H16.01C5.6 64-2.04 73.78.49 83.88L32 192l160 64 86.4 115.2A31.992 31.992 0 0 0 304 384zm112-188.49C478.55 208.3 528.03 257.44 540.79 320H416V195.51zm219.37 263.3l-22.15-22.2c-6.25-6.26-16.24-6.1-22.64.01-7.09 6.77-13.84 11.25-24.64 11.25H240c-8.84 0-16 7.18-16 16.03v32.06c0 8.85 7.16 16.03 16 16.03h325.94c14.88 0 35.3-.47 68.45-29.52 7.02-6.14 7.57-17.05.98-23.66z"] };
  3479. var faHighlighter = { prefix: 'fas', iconName: 'highlighter', icon: [544, 512, [], "f591", "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"] };
  3480. var faHiking = { prefix: 'fas', iconName: 'hiking', icon: [384, 512, [], "f6ec", "M80.95 472.23c-4.28 17.16 6.14 34.53 23.28 38.81 2.61.66 5.22.95 7.8.95 14.33 0 27.37-9.7 31.02-24.23l25.24-100.97-52.78-52.78-34.56 138.22zm14.89-196.12L137 117c2.19-8.42-3.14-16.95-11.92-19.06-43.88-10.52-88.35 15.07-99.32 57.17L.49 253.24c-2.19 8.42 3.14 16.95 11.92 19.06l63.56 15.25c8.79 2.1 17.68-3.02 19.87-11.44zM368 160h-16c-8.84 0-16 7.16-16 16v16h-34.75l-46.78-46.78C243.38 134.11 228.61 128 212.91 128c-27.02 0-50.47 18.3-57.03 44.52l-26.92 107.72a32.012 32.012 0 0 0 8.42 30.39L224 397.25V480c0 17.67 14.33 32 32 32s32-14.33 32-32v-82.75c0-17.09-6.66-33.16-18.75-45.25l-46.82-46.82c.15-.5.49-.89.62-1.41l19.89-79.57 22.43 22.43c6 6 14.14 9.38 22.62 9.38h48v240c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V176c.01-8.84-7.15-16-15.99-16zM240 96c26.51 0 48-21.49 48-48S266.51 0 240 0s-48 21.49-48 48 21.49 48 48 48z"] };
  3481. var faHippo = { prefix: 'fas', iconName: 'hippo', icon: [640, 512, [], "f6ed", "M581.12 96.2c-27.67-.15-52.5 17.58-76.6 26.62C489.98 88.27 455.83 64 416 64c-11.28 0-21.95 2.3-32 5.88V56c0-13.26-10.75-24-24-24h-16c-13.25 0-24 10.74-24 24v48.98C286.01 79.58 241.24 64 192 64 85.96 64 0 135.64 0 224v240c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16v-70.79C128.35 407.57 166.72 416 208 416s79.65-8.43 112-22.79V464c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V288h128v32c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-32c17.67 0 32-14.33 32-32v-92.02c0-34.09-24.79-67.59-58.88-67.78zM448 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3482. var faHistory = { prefix: 'fas', iconName: 'history', icon: [512, 512, [], "f1da", "M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"] };
  3483. var faHockeyPuck = { prefix: 'fas', iconName: 'hockey-puck', icon: [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"] };
  3484. var faHome = { prefix: 'fas', iconName: 'home', icon: [576, 512, [], "f015", "M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"] };
  3485. var faHorse = { prefix: 'fas', iconName: 'horse', icon: [576, 512, [], "f6f0", "M575.92 76.6c-.01-8.13-3.02-15.87-8.58-21.8-3.78-4.03-8.58-9.12-13.69-14.5 11.06-6.84 19.5-17.49 22.18-30.66C576.85 4.68 572.96 0 567.9 0H447.92c-70.69 0-128 57.31-128 128H160c-28.84 0-54.4 12.98-72 33.11V160c-48.53 0-88 39.47-88 88v56c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-56c0-13.22 6.87-24.39 16.78-31.68-.21 2.58-.78 5.05-.78 7.68 0 27.64 11.84 52.36 30.54 69.88l-25.72 68.6a63.945 63.945 0 0 0-2.16 37.99l24.85 99.41A15.982 15.982 0 0 0 107.02 512h65.96c10.41 0 18.05-9.78 15.52-19.88l-26.31-105.26 23.84-63.59L320 345.6V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V318.22c19.74-20.19 32-47.75 32-78.22 0-.22-.07-.42-.08-.64V136.89l16 7.11 18.9 37.7c7.45 14.87 25.05 21.55 40.49 15.37l32.55-13.02a31.997 31.997 0 0 0 20.12-29.74l-.06-77.71zm-64 19.4c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3486. var faHospital = { prefix: 'fas', iconName: 'hospital', icon: [448, 512, [], "f0f8", "M448 492v20H0v-20c0-6.627 5.373-12 12-12h20V120c0-13.255 10.745-24 24-24h88V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v72h88c13.255 0 24 10.745 24 24v360h20c6.627 0 12 5.373 12 12zM308 192h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-168 64h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm104 128h-40c-6.627 0-12 5.373-12 12v84h64v-84c0-6.627-5.373-12-12-12zm64-96h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-116 12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40zM182 96h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6z"] };
  3487. var faHospitalAlt = { prefix: 'fas', iconName: 'hospital-alt', icon: [576, 512, [], "f47d", "M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3488. var faHospitalSymbol = { prefix: 'fas', iconName: 'hospital-symbol', icon: [512, 512, [], "f47e", "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-88h-96v88c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V136c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v88h96v-88c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v240z"] };
  3489. var faHotTub = { prefix: 'fas', iconName: 'hot-tub', icon: [512, 512, [], "f593", "M414.21 177.65c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C378.96 6.14 372.22 0 364.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zm-108 0c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V288c0-17.67-14.33-32-32-32zM128 440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zM64 128c35.35 0 64-28.65 64-64S99.35 0 64 0 0 28.65 0 64s28.65 64 64 64z"] };
  3490. var faHotel = { prefix: 'fas', iconName: 'hotel', icon: [576, 512, [], "f594", "M560 64c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h15.98v384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h240v-80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v80h240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-16V64h16zm-304 44.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm0 96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm-128-96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zM179.2 256h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8zM192 384c0-53.02 42.98-96 96-96s96 42.98 96 96H192zm256-140.8c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-96c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3491. var faHourglass = { prefix: 'fas', iconName: 'hourglass', icon: [384, 512, [], "f254", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"] };
  3492. var faHourglassEnd = { prefix: 'fas', iconName: 'hourglass-end', icon: [384, 512, [], "f253", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"] };
  3493. var faHourglassHalf = { prefix: 'fas', iconName: 'hourglass-half', icon: [384, 512, [], "f252", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"] };
  3494. var faHourglassStart = { prefix: 'fas', iconName: 'hourglass-start', icon: [384, 512, [], "f251", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"] };
  3495. var faHouseDamage = { prefix: 'fas', iconName: 'house-damage', icon: [576, 512, [], "f6f1", "M288 114.96L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496c0 8.84 7.16 16 16 16h149.23L192 439.19l104.11-64-60.16-119.22L384 392.75l-104.11 64L319.81 512H496c8.84 0 16-7.16 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2L288 114.96zm282.69 121.32L512 184.45V48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v51.69L314.75 10.31C307.12 3.45 297.56.01 288 0s-19.1 3.41-26.7 10.27L5.31 236.28c-6.57 5.91-7.12 16.02-1.21 22.6l21.4 23.82c5.9 6.57 16.02 7.12 22.6 1.21L277.42 81.63c6.05-5.33 15.12-5.33 21.17 0L527.91 283.9c6.57 5.9 16.69 5.36 22.6-1.21l21.4-23.82c5.9-6.57 5.36-16.69-1.22-22.59z"] };
  3496. var faHryvnia = { prefix: 'fas', iconName: 'hryvnia', icon: [384, 512, [], "f6f2", "M368 240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-41.86c13.41-28.63 13.74-63.33-4.13-94.05C303.34 49.84 267.1 32 229.96 32h-78.82c-24.32 0-47.86 8.53-66.54 24.09L72.83 65.9c-10.18 8.49-11.56 23.62-3.07 33.8l20.49 24.59c8.49 10.19 23.62 11.56 33.81 3.07l11.73-9.78c4.32-3.6 9.77-5.57 15.39-5.57h83.62c11.69 0 21.2 9.52 21.2 21.2 0 5.91-2.48 11.58-6.81 15.58L219.7 176H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h134.37l-34.67 32H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h41.86c-13.41 28.63-13.74 63.33 4.13 94.05C80.66 462.15 116.9 480 154.04 480h78.82c24.32 0 47.86-8.53 66.54-24.09l11.77-9.81c10.18-8.49 11.56-23.62 3.07-33.8l-20.49-24.59c-8.49-10.19-23.62-11.56-33.81-3.07l-11.75 9.8a23.992 23.992 0 0 1-15.36 5.56H149.2c-11.69 0-21.2-9.52-21.2-21.2 0-5.91 2.48-11.58 6.81-15.58L164.3 336H368c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H233.63l34.67-32H368z"] };
  3497. var faICursor = { prefix: 'fas', iconName: 'i-cursor', icon: [256, 512, [], "f246", "M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"] };
  3498. var faIdBadge = { prefix: 'fas', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3499. var faIdCard = { prefix: 'fas', iconName: 'id-card', icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"] };
  3500. var faIdCardAlt = { prefix: 'fas', iconName: 'id-card-alt', icon: [576, 512, [], "f47f", "M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"] };
  3501. var faImage = { prefix: 'fas', iconName: 'image', icon: [512, 512, [], "f03e", "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"] };
  3502. var faImages = { prefix: 'fas', iconName: 'images', icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"] };
  3503. var faInbox = { prefix: 'fas', iconName: 'inbox', icon: [576, 512, [], "f01c", "M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"] };
  3504. var faIndent = { prefix: 'fas', iconName: 'indent', icon: [448, 512, [], "f03c", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"] };
  3505. var faIndustry = { prefix: 'fas', iconName: 'industry', icon: [512, 512, [], "f275", "M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"] };
  3506. var faInfinity = { prefix: 'fas', iconName: 'infinity', icon: [640, 512, [], "f534", "M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"] };
  3507. var faInfo = { prefix: 'fas', iconName: 'info', icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"] };
  3508. var faInfoCircle = { prefix: 'fas', iconName: 'info-circle', icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"] };
  3509. var faItalic = { prefix: 'fas', iconName: 'italic', icon: [320, 512, [], "f033", "M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"] };
  3510. var faJedi = { prefix: 'fas', iconName: 'jedi', icon: [544, 512, [], "f669", "M479.99 352l58.88-58.87c3.29-16.8 5.13-34.12 5.13-51.86 0-5.81-.68-11.51-1.05-17.27H496l41.25-41.24c-14.5-64.79-52.43-123.05-107.91-162.27-2.77-1.96-5.97-2.99-9.25-2.99-5.37 0-10.41 2.71-13.49 7.24-3.05 4.49-3.64 9.99-1.61 15.09 6.55 16.46 9.86 33.73 9.86 51.31 0 45.12-21.03 86.57-57.69 113.73-4.02 2.98-6.46 7.5-6.7 12.4-.24 4.92 1.76 9.66 5.49 13.03 32.93 29.75 47.35 73.51 38.57 117.07-9.74 48.35-48.84 87.1-97.31 96.5l-2.5-65.34L321.88 397c2.98 2.06 7.39 1.69 10.02-.8a8.002 8.002 0 0 0 1.34-9.92l-20.11-33.73 42.07-8.72c3.7-.75 6.38-4.05 6.38-7.83 0-3.77-2.69-7.06-6.38-7.83l-42.07-8.73 20.13-33.77c1.92-3.23 1.34-7.31-1.38-9.91-2.7-2.55-6.97-2.89-10-.8l-30.39 20.67L279.96 7.7a7.964 7.964 0 0 0-8-7.7c-4.33 0-7.84 3.38-8 7.67l-11.52 287.97-30.39-20.66c-3.14-2.12-7.27-1.83-10 .78-2.72 2.59-3.3 6.67-1.36 9.94l20.11 33.73-42.07 8.73c-3.7.75-6.38 4.05-6.38 7.83s2.67 7.08 6.38 7.83l42.07 8.72-20.13 33.77c-1.92 3.23-1.34 7.33 1.39 9.94 2.59 2.45 7.03 2.75 10 .75l27.16-18.48-2.5 65.26c-56.94-11.64-99.89-61.89-99.89-121.92 0-35.08 14.62-67.6 41.17-91.58 3.72-3.36 5.72-8.11 5.48-13.01-.24-4.9-2.68-9.41-6.69-12.38-36.67-27.16-57.71-68.62-57.71-113.74 0-17.56 3.31-34.81 9.84-51.26 2.02-5.09 1.43-10.59-1.62-15.09-3.08-4.54-8.13-7.25-13.51-7.25-3.3 0-6.5 1.04-9.27 3-55.87 39.52-93.6 97.37-107.97 162.07L47.93 224H.72c-.63 9.92-.97 19.91-.5 29.99.62 13.43 2.54 26.53 5.11 39.41l58.6 58.6H24.02c41.25 90.23 131.13 154.94 235.1 159.71 4.3.2 8.59.29 12.85.29 110.34 0 205.35-65.83 247.98-160h-39.96z"] };
  3511. var faJoint = { prefix: 'fas', iconName: 'joint', icon: [640, 512, [], "f595", "M444.34 181.1c22.38 15.68 35.66 41.16 35.66 68.59V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-43.24-21.01-83.41-56.34-108.06C463.85 125.02 448 99.34 448 70.31V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v66.4c0 43.69 24.56 81.63 60.34 106.7zM194.97 358.98C126.03 370.07 59.69 394.69 0 432c83.65 52.28 180.3 80 278.94 80h88.57L254.79 380.49c-14.74-17.2-37.45-25.11-59.82-21.51zM553.28 87.09c-5.67-3.8-9.28-9.96-9.28-16.78V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v62.31c0 22.02 10.17 43.41 28.64 55.39C550.79 153.04 576 199.54 576 249.69V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-65.44-32.41-126.19-86.72-162.6zM360.89 352.05c-34.4.06-86.81.15-88.21.17l117.8 137.43A63.987 63.987 0 0 0 439.07 512h88.45L409.57 374.4a63.955 63.955 0 0 0-48.68-22.35zM616 352H432l117.99 137.65A63.987 63.987 0 0 0 598.58 512H616c13.25 0 24-10.75 24-24V376c0-13.26-10.75-24-24-24z"] };
  3512. var faJournalWhills = { prefix: 'fas', iconName: 'journal-whills', icon: [448, 512, [], "f66a", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM133.08 144.39l21.26 21.26c1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34c3.12-3.12 3.12-8.19 0-11.31l-26.42-26.42c10-20.9 26.24-37.97 46.37-49.26C179.62 88.4 176 99.74 176 112c0 19.96 9.33 37.57 23.66 49.31C190.01 171.37 184 184.96 184 200c0 26.94 19.04 49.4 44.38 54.76l1.36-32.71-10.37 7.04c-.69.45-1.47.69-2.25.69-1 0-1.98-.38-2.75-1.09a4.006 4.006 0 0 1-.69-4.95l8.54-14.31-17.91-3.72c-1.86-.39-3.19-2.03-3.19-3.92s1.33-3.53 3.19-3.92l17.91-3.72-8.54-14.31c-.95-1.61-.67-3.67.69-4.95 1.36-1.3 3.44-1.44 5-.41l12.01 8.16L236 71.83c.09-2.14 1.86-3.83 4-3.83s3.91 1.69 4 3.83l4.68 112.29 14.2-9.65a4.067 4.067 0 0 1 5 .41 4.006 4.006 0 0 1 .69 4.95l-8.54 14.31 17.91 3.72c1.86.39 3.19 2.03 3.19 3.92s-1.33 3.53-3.19 3.92l-17.91 3.72 8.54 14.31c.95 1.61.67 3.67-.69 4.95-.77.72-1.77 1.09-2.75 1.09-.78 0-1.56-.23-2.25-.69l-12.68-8.62 1.43 34.28C276.96 249.4 296 226.94 296 200c0-15.04-6.01-28.63-15.66-38.69C294.67 149.57 304 131.96 304 112c0-12.26-3.62-23.6-9.6-33.33 20.13 11.28 36.37 28.36 46.37 49.26l-26.42 26.42c-3.12 3.12-3.12 8.19 0 11.31 1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34l21.26-21.26c2.97 10.08 5.07 20.55 5.07 31.6 0 .52-.14.99-.15 1.51l-37.11 32.47a7.975 7.975 0 0 0-.75 11.28 7.97 7.97 0 0 0 6.02 2.73c1.88 0 3.75-.66 5.27-1.98l23.59-20.64C337.32 250.96 293.09 288 240 288s-97.32-37.04-108.86-86.62l23.59 20.64A7.957 7.957 0 0 0 160 224c2.22 0 4.44-.92 6.02-2.73 2.92-3.33 2.58-8.38-.75-11.28l-37.11-32.47c-.01-.52-.15-.99-.15-1.51-.01-11.06 2.09-21.53 5.07-31.62zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3513. var faKaaba = { prefix: 'fas', iconName: 'kaaba', icon: [576, 512, [], "f66b", "M554.12 83.51L318.36 4.93a95.962 95.962 0 0 0-60.71 0L21.88 83.51A32.006 32.006 0 0 0 0 113.87v49.01l265.02-79.51c15.03-4.5 30.92-4.5 45.98 0l265 79.51v-49.01c0-13.77-8.81-26-21.88-30.36zm-279.9 30.52L0 196.3v228.38c0 15 10.42 27.98 25.06 31.24l242.12 53.8a95.937 95.937 0 0 0 41.65 0l242.12-53.8c14.64-3.25 25.06-16.24 25.06-31.24V196.29l-274.2-82.26c-9.04-2.72-18.59-2.72-27.59 0zM128 230.11c0 3.61-2.41 6.77-5.89 7.72l-80 21.82C37.02 261.03 32 257.2 32 251.93v-16.58c0-3.61 2.41-6.77 5.89-7.72l80-21.82c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm144-39.28c0 3.61-2.41 6.77-5.89 7.72l-96 26.18c-5.09 1.39-10.11-2.44-10.11-7.72v-16.58c0-3.61 2.41-6.77 5.89-7.72l96-26.18c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm176 22.7c0-5.28 5.02-9.11 10.11-7.72l80 21.82c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-80-21.82a7.997 7.997 0 0 1-5.89-7.72v-16.58zm-144-39.27c0-5.28 5.02-9.11 10.11-7.72l96 26.18c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-96-26.18a7.997 7.997 0 0 1-5.89-7.72v-16.58z"] };
  3514. var faKey = { prefix: 'fas', iconName: 'key', icon: [512, 512, [], "f084", "M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"] };
  3515. var faKeyboard = { prefix: 'fas', iconName: 'keyboard', icon: [576, 512, [], "f11c", "M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3516. var faKhanda = { prefix: 'fas', iconName: 'khanda', icon: [512, 512, [], "f66d", "M415.81 66c-6.37-3.5-14.37-2.33-19.36 3.02a15.974 15.974 0 0 0-1.91 19.52c16.49 26.16 25.2 56.39 25.2 87.41-.19 53.25-26.77 102.69-71.27 132.41l-76.63 53.35v-20.1l44.05-36.09c3.92-4.2 5-10.09 2.81-15.28L310.85 273c33.84-19.26 56.94-55.25 56.94-96.99 0-40.79-22.02-76.13-54.59-95.71l5.22-11.44c2.34-5.53.93-11.83-3.57-16.04L255.86 0l-58.99 52.81c-4.5 4.21-5.9 10.51-3.57 16.04l5.22 11.44c-32.57 19.58-54.59 54.93-54.59 95.72 0 41.75 23.09 77.73 56.94 96.99l-7.85 17.24c-2.19 5.18-1.1 11.07 2.81 15.28l44.05 36.09v19.9l-76.59-53.33C119.02 278.62 92.44 229.19 92.26 176c0-31.08 8.71-61.31 25.2-87.47 3.87-6.16 2.4-13.77-2.59-19.08-5-5.34-13.68-6.2-20.02-2.7C16.32 109.6-22.3 205.3 13.36 295.99c7.07 17.99 17.89 34.38 30.46 49.06l55.97 65.36c4.87 5.69 13.04 7.24 19.65 3.72l79.35-42.23L228 392.23l-47.08 32.78c-1.67-.37-3.23-1.01-5.01-1.01-13.25 0-23.99 10.74-23.99 24 0 13.25 10.74 24 23.99 24 12.1 0 21.69-9.11 23.33-20.76l40.63-28.28v29.95c-9.39 5.57-15.99 15.38-15.99 27.1 0 17.67 14.32 32 31.98 32s31.98-14.33 31.98-32c0-11.71-6.61-21.52-15.99-27.1v-30.15l40.91 28.48C314.41 462.89 324 472 336.09 472c13.25 0 23.99-10.75 23.99-24 0-13.26-10.74-24-23.99-24-1.78 0-3.34.64-5.01 1.01L284 392.23l29.21-20.34 79.35 42.23c6.61 3.52 14.78 1.97 19.65-3.71l52.51-61.31c18.87-22.02 34-47.5 41.25-75.59 21.62-83.66-16.45-167.27-90.16-207.51zm-95.99 110c0 22.3-11.49 41.92-28.83 53.38l-5.65-12.41c-8.75-24.52-8.75-51.04 0-75.56l7.83-17.18c16.07 11.65 26.65 30.45 26.65 51.77zm-127.93 0c0-21.32 10.58-40.12 26.66-51.76l7.83 17.18c8.75 24.52 8.75 51.03 0 75.56l-5.65 12.41c-17.34-11.46-28.84-31.09-28.84-53.39z"] };
  3517. var faKiss = { prefix: 'fas', iconName: 'kiss', icon: [496, 512, [], "f596", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm136 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm24-156c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3518. var faKissBeam = { prefix: 'fas', iconName: 'kiss-beam', icon: [496, 512, [], "f597", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-39 219.9l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5zM304 396c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm65-168.1l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5z"] };
  3519. var faKissWinkHeart = { prefix: 'fas', iconName: 'kiss-wink-heart', icon: [504, 512, [], "f598", "M501.1 402.5c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zm-177.6-4c-5.6-20.3-2.3-42 9-59.7 29.7-46.3 98.7-45.5 127.8 4.3 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-.3-.7-23.9-84.6-23.9-84.6zM168 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm120 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-5.7-12.3 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.8-3.7-4.6-16.6 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C274.6 368.7 288 383 288 396zm16-179c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S400 181 404 206.2c1.7 11.1-11.3 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 217z"] };
  3520. var faKiwiBird = { prefix: 'fas', iconName: 'kiwi-bird', icon: [576, 512, [], "f535", "M575.81 217.98C572.64 157.41 518.28 112 457.63 112h-9.37c-52.82 0-104.25-16.25-147.74-46.24-41.99-28.96-96.04-41.62-153.21-28.7C129.3 41.12-.08 78.24 0 224c.04 70.95 38.68 132.8 95.99 166.01V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-54.26c15.36 3.96 31.4 6.26 48 6.26 5.44 0 10.68-.73 16-1.18V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-59.43c14.24-5.06 27.88-11.39 40.34-19.51C342.07 355.25 393.86 336 448.46 336c25.48 0 16.01-.31 23.05-.78l74.41 136.44c2.86 5.23 8.3 8.34 14.05 8.34 1.31 0 2.64-.16 3.95-.5 7.09-1.8 12.05-8.19 12.05-15.5 0 0 .14-240.24-.16-246.02zM463.97 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm80 153.25l-39.86-73.08c15.12-5.83 28.73-14.6 39.86-25.98v99.06z"] };
  3521. var faLandmark = { prefix: 'fas', iconName: 'landmark', icon: [512, 512, [], "f66f", "M501.62 92.11L267.24 2.04a31.958 31.958 0 0 0-22.47 0L10.38 92.11A16.001 16.001 0 0 0 0 107.09V144c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-36.91c0-6.67-4.14-12.64-10.38-14.98zM64 192v160H48c-8.84 0-16 7.16-16 16v48h448v-48c0-8.84-7.16-16-16-16h-16V192h-64v160h-96V192h-64v160h-96V192H64zm432 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3522. var faLanguage = { prefix: 'fas', iconName: 'language', icon: [640, 512, [], "f1ab", "M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"] };
  3523. var faLaptop = { prefix: 'fas', iconName: 'laptop', icon: [640, 512, [], "f109", "M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3524. var faLaptopCode = { prefix: 'fas', iconName: 'laptop-code', icon: [640, 512, [], "f5fc", "M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3525. var faLaugh = { prefix: 'fas', iconName: 'laugh', icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"] };
  3526. var faLaughBeam = { prefix: 'fas', iconName: 'laugh-beam', icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm24 199.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.8 4.1-15.1-4.5zm-160 0c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3527. var faLaughSquint = { prefix: 'fas', iconName: 'laugh-squint', icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 161.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3528. var faLaughWink = { prefix: 'fas', iconName: 'laugh-wink', icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 198.1c4-25.2 34.2-42.1 59.9-42.1s55.9 16.9 59.9 42.1c1.7 11.1-11.4 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 217c-8.4 7.4-21.6.3-19.9-10.9zM168 160c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm230.9 146C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3529. var faLayerGroup = { prefix: 'fas', iconName: 'layer-group', icon: [512, 512, [], "f5fd", "M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"] };
  3530. var faLeaf = { prefix: 'fas', iconName: 'leaf', icon: [576, 512, [], "f06c", "M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"] };
  3531. var faLemon = { prefix: 'fas', iconName: 'lemon', icon: [512, 512, [], "f094", "M489.038 22.963C465.944-.13 434.648-5.93 413.947 6.129c-58.906 34.312-181.25-53.077-321.073 86.746S40.441 355.041 6.129 413.945c-12.059 20.702-6.26 51.999 16.833 75.093 23.095 23.095 54.392 28.891 75.095 16.832 58.901-34.31 181.246 53.079 321.068-86.743S471.56 156.96 505.871 98.056c12.059-20.702 6.261-51.999-16.833-75.093zM243.881 95.522c-58.189 14.547-133.808 90.155-148.358 148.358-1.817 7.27-8.342 12.124-15.511 12.124-1.284 0-2.59-.156-3.893-.481-8.572-2.144-13.784-10.83-11.642-19.403C81.901 166.427 166.316 81.93 236.119 64.478c8.575-2.143 17.261 3.069 19.403 11.642s-3.069 17.259-11.641 19.402z"] };
  3532. var faLessThan = { prefix: 'fas', iconName: 'less-than', icon: [384, 512, [], "f536", "M365.46 357.74L147.04 255.89l218.47-101.88c16.02-7.47 22.95-26.51 15.48-42.53l-13.52-29C360 66.46 340.96 59.53 324.94 67L18.48 209.91a32.014 32.014 0 0 0-18.48 29v34.24c0 12.44 7.21 23.75 18.48 29l306.31 142.83c16.06 7.49 35.15.54 42.64-15.52l13.56-29.08c7.49-16.06.54-35.15-15.53-42.64z"] };
  3533. var faLessThanEqual = { prefix: 'fas', iconName: 'less-than-equal', icon: [448, 512, [], "f537", "M54.98 214.2l301.41 119.87c18.39 6.03 38.71-2.54 45.38-19.15l12.09-30.08c6.68-16.61-2.82-34.97-21.21-41l-175.44-68.05 175.56-68.09c18.29-6 27.74-24.27 21.1-40.79l-12.03-29.92c-6.64-16.53-26.86-25.06-45.15-19.06L54.98 137.89C41.21 142.41 32 154.5 32 168.07v15.96c0 13.56 9.21 25.65 22.98 30.17zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3534. var faLevelDownAlt = { prefix: 'fas', iconName: 'level-down-alt', icon: [320, 512, [], "f3be", "M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"] };
  3535. var faLevelUpAlt = { prefix: 'fas', iconName: 'level-up-alt', icon: [320, 512, [], "f3bf", "M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"] };
  3536. var faLifeRing = { prefix: 'fas', iconName: 'life-ring', icon: [512, 512, [], "f1cd", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"] };
  3537. var faLightbulb = { prefix: 'fas', iconName: 'lightbulb', icon: [352, 512, [], "f0eb", "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3538. var faLink = { prefix: 'fas', iconName: 'link', icon: [512, 512, [], "f0c1", "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"] };
  3539. var faLiraSign = { prefix: 'fas', iconName: 'lira-sign', icon: [384, 512, [], "f195", "M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"] };
  3540. var faList = { prefix: 'fas', iconName: 'list', icon: [512, 512, [], "f03a", "M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"] };
  3541. var faListAlt = { prefix: 'fas', iconName: 'list-alt', icon: [512, 512, [], "f022", "M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"] };
  3542. var faListOl = { prefix: 'fas', iconName: 'list-ol', icon: [512, 512, [], "f0cb", "M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3543. var faListUl = { prefix: 'fas', iconName: 'list-ul', icon: [512, 512, [], "f0ca", "M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3544. var faLocationArrow = { prefix: 'fas', iconName: 'location-arrow', icon: [512, 512, [], "f124", "M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"] };
  3545. var faLock = { prefix: 'fas', iconName: 'lock', icon: [448, 512, [], "f023", "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"] };
  3546. var faLockOpen = { prefix: 'fas', iconName: 'lock-open', icon: [576, 512, [], "f3c1", "M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"] };
  3547. var faLongArrowAltDown = { prefix: 'fas', iconName: 'long-arrow-alt-down', icon: [256, 512, [], "f309", "M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"] };
  3548. var faLongArrowAltLeft = { prefix: 'fas', iconName: 'long-arrow-alt-left', icon: [448, 512, [], "f30a", "M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"] };
  3549. var faLongArrowAltRight = { prefix: 'fas', iconName: 'long-arrow-alt-right', icon: [448, 512, [], "f30b", "M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"] };
  3550. var faLongArrowAltUp = { prefix: 'fas', iconName: 'long-arrow-alt-up', icon: [256, 512, [], "f30c", "M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"] };
  3551. var faLowVision = { prefix: 'fas', iconName: 'low-vision', icon: [576, 512, [], "f2a8", "M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"] };
  3552. var faLuggageCart = { prefix: 'fas', iconName: 'luggage-cart', icon: [640, 512, [], "f59d", "M224 320h32V96h-32c-17.67 0-32 14.33-32 32v160c0 17.67 14.33 32 32 32zm352-32V128c0-17.67-14.33-32-32-32h-32v224h32c17.67 0 32-14.33 32-32zm48 96H128V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h48v368c0 8.84 7.16 16 16 16h82.94c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16h197.88c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM480 96V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v272h192V96zm-48 0h-96V48h96v48z"] };
  3553. var faMagic = { prefix: 'fas', iconName: 'magic', icon: [512, 512, [], "f0d0", "M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"] };
  3554. var faMagnet = { prefix: 'fas', iconName: 'magnet', icon: [512, 512, [], "f076", "M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"] };
  3555. var faMailBulk = { prefix: 'fas', iconName: 'mail-bulk', icon: [576, 512, [], "f674", "M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V345.6c-12.8 9.6-32 25.6-96 70.4-12.8 9.6-38.4 32-64 32zm128-192H32c-17.67 0-32 14.33-32 32v16c25.6 19.2 22.4 19.2 115.2 86.4 9.6 6.4 28.8 25.6 44.8 25.6s35.2-19.2 44.8-22.4c92.8-67.2 89.6-67.2 115.2-86.4V288c0-17.67-14.33-32-32-32zm256-96H224c-17.67 0-32 14.33-32 32v32h96c33.21 0 60.59 25.42 63.71 57.82l.29-.22V416h192c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zm-32 128h-64v-64h64v64zm-352-96c0-35.29 28.71-64 64-64h224V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v192h96v-32z"] };
  3556. var faMale = { prefix: 'fas', iconName: 'male', icon: [192, 512, [], "f183", "M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"] };
  3557. var faMap = { prefix: 'fas', iconName: 'map', icon: [576, 512, [], "f279", "M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3558. var faMapMarked = { prefix: 'fas', iconName: 'map-marked', icon: [576, 512, [], "f59f", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3559. var faMapMarkedAlt = { prefix: 'fas', iconName: 'map-marked-alt', icon: [576, 512, [], "f5a0", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3560. var faMapMarker = { prefix: 'fas', iconName: 'map-marker', icon: [384, 512, [], "f041", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"] };
  3561. var faMapMarkerAlt = { prefix: 'fas', iconName: 'map-marker-alt', icon: [384, 512, [], "f3c5", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"] };
  3562. var faMapPin = { prefix: 'fas', iconName: 'map-pin', icon: [288, 512, [], "f276", "M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"] };
  3563. var faMapSigns = { prefix: 'fas', iconName: 'map-signs', icon: [512, 512, [], "f277", "M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"] };
  3564. var faMarker = { prefix: 'fas', iconName: 'marker', icon: [512, 512, [], "f5a1", "M93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l75.4-75.4-128.02-128.02-75.4 75.4zM485.49 26.51c-35.35-35.35-92.67-35.35-128.02 0l-21.76 21.76-36.56-36.55c-15.62-15.62-40.95-15.62-56.56 0L138.47 115.84c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0l87.15-87.15 19.59 19.59L191.98 192 320 320.02l165.49-165.49c35.35-35.35 35.35-92.66 0-128.02z"] };
  3565. var faMars = { prefix: 'fas', iconName: 'mars', icon: [384, 512, [], "f222", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3566. var faMarsDouble = { prefix: 'fas', iconName: 'mars-double', icon: [512, 512, [], "f227", "M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"] };
  3567. var faMarsStroke = { prefix: 'fas', iconName: 'mars-stroke', icon: [384, 512, [], "f229", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3568. var faMarsStrokeH = { prefix: 'fas', iconName: 'mars-stroke-h', icon: [480, 512, [], "f22b", "M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3569. var faMarsStrokeV = { prefix: 'fas', iconName: 'mars-stroke-v', icon: [288, 512, [], "f22a", "M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3570. var faMask = { prefix: 'fas', iconName: 'mask', icon: [640, 512, [], "f6fa", "M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"] };
  3571. var faMedal = { prefix: 'fas', iconName: 'medal', icon: [512, 512, [], "f5a2", "M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"] };
  3572. var faMedkit = { prefix: 'fas', iconName: 'medkit', icon: [512, 512, [], "f0fa", "M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"] };
  3573. var faMeh = { prefix: 'fas', iconName: 'meh', icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm176 192H152c-21.2 0-21.2-32 0-32h192c21.2 0 21.2 32 0 32zm-16-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3574. var faMehBlank = { prefix: 'fas', iconName: 'meh-blank', icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3575. var faMehRollingEyes = { prefix: 'fas', iconName: 'meh-rolling-eyes', icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 224c0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64s-64-28.7-64-64zm224 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-112c-35.3 0-64-28.7-64-64 0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64z"] };
  3576. var faMemory = { prefix: 'fas', iconName: 'memory', icon: [640, 512, [], "f538", "M640 130.94V96c0-17.67-14.33-32-32-32H32C14.33 64 0 78.33 0 96v34.94c18.6 6.61 32 24.19 32 45.06s-13.4 38.45-32 45.06V320h640v-98.94c-18.6-6.61-32-24.19-32-45.06s13.4-38.45 32-45.06zM224 256h-64V128h64v128zm128 0h-64V128h64v128zm128 0h-64V128h64v128zM0 448h64v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h64v-96H0v96z"] };
  3577. var faMenorah = { prefix: 'fas', iconName: 'menorah', icon: [640, 512, [], "f676", "M144 128h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm192 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm80-32c17.67 0 32-14.33 32-32S608 0 608 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S512 0 512 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S416 0 416 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S320 0 320 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S224 0 224 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S128 0 128 0 96 46.33 96 64s14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S32 0 32 0 0 46.33 0 64s14.33 32 32 32zm544 192c0 17.67-14.33 32-32 32H352V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v176H96c-17.67 0-32-14.33-32-32V144c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v144c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144z"] };
  3578. var faMercury = { prefix: 'fas', iconName: 'mercury', icon: [288, 512, [], "f223", "M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3579. var faMicrochip = { prefix: 'fas', iconName: 'microchip', icon: [512, 512, [], "f2db", "M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"] };
  3580. var faMicrophone = { prefix: 'fas', iconName: 'microphone', icon: [352, 512, [], "f130", "M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"] };
  3581. var faMicrophoneAlt = { prefix: 'fas', iconName: 'microphone-alt', icon: [352, 512, [], "f3c9", "M336 192h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16zM176 352c53.02 0 96-42.98 96-96h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96z"] };
  3582. var faMicrophoneAltSlash = { prefix: 'fas', iconName: 'microphone-alt-slash', icon: [640, 512, [], "f539", "M633.82 458.1L476.26 336.33C488.74 312.21 496 284.98 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67h-43.67l-41.4-32H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.78c11.71-1.62 23.1-4.28 33.96-8.08l-50.4-38.96c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3583. var faMicrophoneSlash = { prefix: 'fas', iconName: 'microphone-slash', icon: [640, 512, [], "f131", "M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3584. var faMicroscope = { prefix: 'fas', iconName: 'microscope', icon: [512, 512, [], "f610", "M160 320h12v16c0 8.84 7.16 16 16 16h40c8.84 0 16-7.16 16-16v-16h12c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32V16c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v16c-17.67 0-32 14.33-32 32v224c0 17.67 14.33 32 32 32zm304 128h-1.29C493.24 413.99 512 369.2 512 320c0-105.88-86.12-192-192-192v64c70.58 0 128 57.42 128 128s-57.42 128-128 128H48c-26.51 0-48 21.49-48 48 0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48zm-360-32h208c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8H104c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8z"] };
  3585. var faMinus = { prefix: 'fas', iconName: 'minus', icon: [448, 512, [], "f068", "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3586. var faMinusCircle = { prefix: 'fas', iconName: 'minus-circle', icon: [512, 512, [], "f056", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"] };
  3587. var faMinusSquare = { prefix: 'fas', iconName: 'minus-square', icon: [448, 512, [], "f146", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"] };
  3588. var faMobile = { prefix: 'fas', iconName: 'mobile', icon: [320, 512, [], "f10b", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3589. var faMobileAlt = { prefix: 'fas', iconName: 'mobile-alt', icon: [320, 512, [], "f3cd", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"] };
  3590. var faMoneyBill = { prefix: 'fas', iconName: 'money-bill', icon: [640, 512, [], "f0d6", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3591. var faMoneyBillAlt = { prefix: 'fas', iconName: 'money-bill-alt', icon: [640, 512, [], "f3d1", "M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3592. var faMoneyBillWave = { prefix: 'fas', iconName: 'money-bill-wave', icon: [640, 512, [], "f53a", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"] };
  3593. var faMoneyBillWaveAlt = { prefix: 'fas', iconName: 'money-bill-wave-alt', icon: [640, 512, [], "f53b", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96z"] };
  3594. var faMoneyCheck = { prefix: 'fas', iconName: 'money-check', icon: [640, 512, [], "f53c", "M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"] };
  3595. var faMoneyCheckAlt = { prefix: 'fas', iconName: 'money-check-alt', icon: [640, 512, [], "f53d", "M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"] };
  3596. var faMonument = { prefix: 'fas', iconName: 'monument', icon: [384, 512, [], "f5a6", "M368 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h352c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-78.86-347.26a31.97 31.97 0 0 0-9.21-19.44L203.31 4.69c-6.25-6.25-16.38-6.25-22.63 0l-76.6 76.61a31.97 31.97 0 0 0-9.21 19.44L64 416h256l-30.86-315.26zM240 307.2c0 6.4-6.4 12.8-12.8 12.8h-70.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h70.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3597. var faMoon = { prefix: 'fas', iconName: 'moon', icon: [512, 512, [], "f186", "M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"] };
  3598. var faMortarPestle = { prefix: 'fas', iconName: 'mortar-pestle', icon: [512, 512, [], "f5a7", "M501.54 60.91c17.22-17.22 12.51-46.25-9.27-57.14a35.696 35.696 0 0 0-37.37 3.37L251.09 160h151.37l99.08-99.09zM496 192H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c0 80.98 50.2 150.11 121.13 178.32-12.76 16.87-21.72 36.8-24.95 58.69-1.46 9.92 6.04 18.98 16.07 18.98h223.5c10.03 0 17.53-9.06 16.07-18.98-3.22-21.89-12.18-41.82-24.95-58.69C429.8 406.11 480 336.98 480 256h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3599. var faMosque = { prefix: 'fas', iconName: 'mosque', icon: [640, 512, [], "f678", "M0 480c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V160H0v320zm579.16-192c17.86-17.39 28.84-37.34 28.84-58.91 0-52.86-41.79-93.79-87.92-122.9-41.94-26.47-80.63-57.77-111.96-96.22L400 0l-8.12 9.97c-31.33 38.45-70.01 69.76-111.96 96.22C233.79 135.3 192 176.23 192 229.09c0 21.57 10.98 41.52 28.84 58.91h358.32zM608 320H192c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h32v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h64v-72c0-48 48-72 48-72s48 24 48 72v72h64v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h32c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM64 0S0 32 0 96v32h128V96c0-64-64-96-64-96z"] };
  3600. var faMotorcycle = { prefix: 'fas', iconName: 'motorcycle', icon: [640, 512, [], "f21c", "M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"] };
  3601. var faMountain = { prefix: 'fas', iconName: 'mountain', icon: [640, 512, [], "f6fc", "M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z"] };
  3602. var faMousePointer = { prefix: 'fas', iconName: 'mouse-pointer', icon: [320, 512, [], "f245", "M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"] };
  3603. var faMusic = { prefix: 'fas', iconName: 'music', icon: [512, 512, [], "f001", "M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"] };
  3604. var faNetworkWired = { prefix: 'fas', iconName: 'network-wired', icon: [640, 512, [], "f6ff", "M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"] };
  3605. var faNeuter = { prefix: 'fas', iconName: 'neuter', icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3606. var faNewspaper = { prefix: 'fas', iconName: 'newspaper', icon: [576, 512, [], "f1ea", "M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"] };
  3607. var faNotEqual = { prefix: 'fas', iconName: 'not-equal', icon: [448, 512, [], "f53e", "M416 208c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32h-23.88l51.87-66.81c5.37-7.02 4.04-17.06-2.97-22.43L415.61 3.3c-7.02-5.38-17.06-4.04-22.44 2.97L311.09 112H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h204.56l-74.53 96H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h55.49l-51.87 66.81c-5.37 7.01-4.04 17.05 2.97 22.43L64 508.7c7.02 5.38 17.06 4.04 22.43-2.97L168.52 400H416c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32H243.05l74.53-96H416z"] };
  3608. var faNotesMedical = { prefix: 'fas', iconName: 'notes-medical', icon: [384, 512, [], "f481", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm96 304c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm0-192c0 4.4-3.6 8-8 8H104c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16z"] };
  3609. var faObjectGroup = { prefix: 'fas', iconName: 'object-group', icon: [512, 512, [], "f247", "M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"] };
  3610. var faObjectUngroup = { prefix: 'fas', iconName: 'object-ungroup', icon: [576, 512, [], "f248", "M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"] };
  3611. var faOilCan = { prefix: 'fas', iconName: 'oil-can', icon: [640, 512, [], "f613", "M629.8 160.31L416 224l-50.49-25.24a64.07 64.07 0 0 0-28.62-6.76H280v-48h56c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h56v48h-56L37.72 166.86a31.9 31.9 0 0 0-5.79-.53C14.67 166.33 0 180.36 0 198.34v94.95c0 15.46 11.06 28.72 26.28 31.48L96 337.46V384c0 17.67 14.33 32 32 32h274.63c8.55 0 16.75-3.42 22.76-9.51l212.26-214.75c1.5-1.5 2.34-3.54 2.34-5.66V168c.01-5.31-5.08-9.15-10.19-7.69zM96 288.67l-48-8.73v-62.43l48 8.73v62.43zm453.33 84.66c0 23.56 19.1 42.67 42.67 42.67s42.67-19.1 42.67-42.67S592 288 592 288s-42.67 61.77-42.67 85.33z"] };
  3612. var faOm = { prefix: 'fas', iconName: 'om', icon: [512, 512, [], "f679", "M360.6 60.94a10.43 10.43 0 0 0 14.76 0l21.57-21.56a10.43 10.43 0 0 0 0-14.76L375.35 3.06c-4.08-4.07-10.68-4.07-14.76 0l-21.57 21.56a10.43 10.43 0 0 0 0 14.76l21.58 21.56zM412.11 192c-26.69 0-51.77 10.39-70.64 29.25l-24.25 24.25c-6.78 6.77-15.78 10.5-25.38 10.5H245c10.54-22.1 14.17-48.11 7.73-75.23-10.1-42.55-46.36-76.11-89.52-83.19-36.15-5.93-70.9 5.04-96.01 28.78-7.36 6.96-6.97 18.85 1.12 24.93l26.15 19.63c5.72 4.3 13.66 4.32 19.2-.21 8.45-6.9 19.02-10.71 30.27-10.71 26.47 0 48.01 21.53 48.01 48s-21.54 48-48.01 48h-31.9c-11.96 0-19.74 12.58-14.39 23.28l16.09 32.17c2.53 5.06 7.6 8.1 13.17 8.55h33.03c35.3 0 64.01 28.7 64.01 64s-28.71 64-64.01 64c-96.02 0-122.35-54.02-145.15-92.03-4.53-7.55-14.77-3.58-14.79 5.22C-.09 416 41.13 512 159.94 512c70.59 0 128.02-57.42 128.02-128 0-23.42-6.78-45.1-17.81-64h21.69c26.69 0 51.77-10.39 70.64-29.25l24.25-24.25c6.78-6.77 15.78-10.5 25.38-10.5 19.78 0 35.88 16.09 35.88 35.88V392c0 13.23-18.77 24-32.01 24-39.4 0-66.67-24.24-81.82-42.89-4.77-5.87-14.2-2.54-14.2 5.02V416s0 64 96.02 64c48.54 0 96.02-39.47 96.02-88V291.88c0-55.08-44.8-99.88-99.89-99.88zm42.18-124.73c-85.55 65.12-169.05 2.75-172.58.05-6.02-4.62-14.44-4.38-20.14.55-5.74 4.92-7.27 13.17-3.66 19.8 1.61 2.95 40.37 72.34 118.8 72.34 79.92 0 98.78-31.36 101.75-37.66 1.02-2.12 1.53-4.47 1.53-6.83V80c0-13.22-15.14-20.69-25.7-12.73z"] };
  3613. var faOtter = { prefix: 'fas', iconName: 'otter', icon: [640, 512, [], "f700", "M608 32h-32l-13.25-13.25A63.97 63.97 0 0 0 517.49 0H497c-11.14 0-22.08 2.91-31.75 8.43L312 96h-56C149.96 96 64 181.96 64 288v1.61c0 32.75-16 62.14-39.56 84.89-18.19 17.58-28.1 43.68-23.19 71.8 6.76 38.8 42.9 65.7 82.28 65.7H192c17.67 0 32-14.33 32-32s-14.33-32-32-32H80c-8.83 0-16-7.17-16-16s7.17-16 16-16h224c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-64l149.49-80.5L448 416h80c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-28.22l-55.11-110.21L521.14 192H544c53.02 0 96-42.98 96-96V64c0-17.67-14.33-32-32-32zm-96 16c8.84 0 16 7.16 16 16s-7.16 16-16 16-16-7.16-16-16 7.16-16 16-16zm32 96h-34.96L407.2 198.84l-13.77-27.55L512 112h77.05c-6.62 18.58-24.22 32-45.05 32z"] };
  3614. var faOutdent = { prefix: 'fas', iconName: 'outdent', icon: [448, 512, [], "f03b", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"] };
  3615. var faPaintBrush = { prefix: 'fas', iconName: 'paint-brush', icon: [512, 512, [], "f1fc", "M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"] };
  3616. var faPaintRoller = { prefix: 'fas', iconName: 'paint-roller', icon: [512, 512, [], "f5aa", "M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"] };
  3617. var faPalette = { prefix: 'fas', iconName: 'palette', icon: [512, 512, [], "f53f", "M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3618. var faPallet = { prefix: 'fas', iconName: 'pallet', icon: [640, 512, [], "f482", "M144 256h352c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H384v128l-64-32-64 32V0H144c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16zm480 128c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h48v64H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-48v-64h48zm-336 64H128v-64h160v64zm224 0H352v-64h160v64z"] };
  3619. var faPaperPlane = { prefix: 'fas', iconName: 'paper-plane', icon: [512, 512, [], "f1d8", "M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"] };
  3620. var faPaperclip = { prefix: 'fas', iconName: 'paperclip', icon: [448, 512, [], "f0c6", "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"] };
  3621. var faParachuteBox = { prefix: 'fas', iconName: 'parachute-box', icon: [512, 512, [], "f4cd", "M511.9 175c-9.1-75.6-78.4-132.4-158.3-158.7C390 55.7 416 116.9 416 192h28.1L327.5 321.5c-2.5-.6-4.8-1.5-7.5-1.5h-48V192h112C384 76.8 315.1 0 256 0S128 76.8 128 192h112v128h-48c-2.7 0-5 .9-7.5 1.5L67.9 192H96c0-75.1 26-136.3 62.4-175.7C78.5 42.7 9.2 99.5.1 175c-1.1 9.1 6.8 17 16 17h8.7l136.7 151.9c-.7 2.6-1.6 5.2-1.6 8.1v128c0 17.7 14.3 32 32 32h128c17.7 0 32-14.3 32-32V352c0-2.9-.9-5.4-1.6-8.1L487.1 192h8.7c9.3 0 17.2-7.8 16.1-17z"] };
  3622. var faParagraph = { prefix: 'fas', iconName: 'paragraph', icon: [448, 512, [], "f1dd", "M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"] };
  3623. var faParking = { prefix: 'fas', iconName: 'parking', icon: [448, 512, [], "f540", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"] };
  3624. var faPassport = { prefix: 'fas', iconName: 'passport', icon: [448, 512, [], "f5ab", "M129.62 176h39.09c1.49-27.03 6.54-51.35 14.21-70.41-27.71 13.24-48.02 39.19-53.3 70.41zm0 32c5.29 31.22 25.59 57.17 53.3 70.41-7.68-19.06-12.72-43.38-14.21-70.41h-39.09zM224 286.69c7.69-7.45 20.77-34.42 23.43-78.69h-46.87c2.67 44.26 15.75 71.24 23.44 78.69zM200.57 176h46.87c-2.66-44.26-15.74-71.24-23.43-78.69-7.7 7.45-20.78 34.43-23.44 78.69zm64.51 102.41c27.71-13.24 48.02-39.19 53.3-70.41h-39.09c-1.49 27.03-6.53 51.35-14.21 70.41zM416 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h352c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32zm-80 416H112c-8.8 0-16-7.2-16-16s7.2-16 16-16h224c8.8 0 16 7.2 16 16s-7.2 16-16 16zm-112-96c-70.69 0-128-57.31-128-128S153.31 64 224 64s128 57.31 128 128-57.31 128-128 128zm41.08-214.41c7.68 19.06 12.72 43.38 14.21 70.41h39.09c-5.28-31.22-25.59-57.17-53.3-70.41z"] };
  3625. var faPastafarianism = { prefix: 'fas', iconName: 'pastafarianism', icon: [640, 512, [], "f67b", "M624.54 347.67c-32.7-12.52-57.36 4.25-75.37 16.45-17.06 11.53-23.25 14.42-31.41 11.36-8.12-3.09-10.83-9.38-15.89-29.38-3.33-13.15-7.44-29.32-17.95-42.65 2.24-2.91 4.43-5.79 6.38-8.57C500.47 304.45 513.71 312 532 312c33.95 0 50.87-25.78 62.06-42.83 10.59-16.14 15-21.17 21.94-21.17 13.25 0 24-10.75 24-24s-10.75-24-24-24c-33.95 0-50.87 25.78-62.06 42.83-10.6 16.14-15 21.17-21.94 21.17-17.31 0-37.48-61.43-97.26-101.91l17.25-34.5C485.43 125.5 512 97.98 512 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 13.02 3.94 25.1 10.62 35.21l-18.15 36.3c-16.98-4.6-35.6-7.51-56.46-7.51s-39.49 2.91-56.46 7.51l-18.15-36.3C252.06 89.1 256 77.02 256 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 33.98 26.56 61.5 60.02 63.6l17.25 34.5C145.68 202.44 125.15 264 108 264c-6.94 0-11.34-5.03-21.94-21.17C74.88 225.78 57.96 200 24 200c-13.25 0-24 10.75-24 24s10.75 24 24 24c6.94 0 11.34 5.03 21.94 21.17C57.13 286.22 74.05 312 108 312c18.29 0 31.53-7.55 41.7-17.11 1.95 2.79 4.14 5.66 6.38 8.57-10.51 13.33-14.62 29.5-17.95 42.65-5.06 20-7.77 26.28-15.89 29.38-8.11 3.06-14.33.17-31.41-11.36-18.03-12.2-42.72-28.92-75.37-16.45-12.39 4.72-18.59 18.58-13.87 30.97 4.72 12.41 18.61 18.61 30.97 13.88 8.16-3.09 14.34-.19 31.39 11.36 13.55 9.16 30.83 20.86 52.42 20.84 7.17 0 14.83-1.28 22.97-4.39 32.66-12.44 39.98-41.33 45.33-62.44 2.21-8.72 3.99-14.49 5.95-18.87 16.62 13.61 36.95 25.88 61.64 34.17-9.96 37-32.18 90.8-60.26 90.8-13.25 0-24 10.75-24 24s10.75 24 24 24c66.74 0 97.05-88.63 107.42-129.14 6.69.6 13.42 1.14 20.58 1.14s13.89-.54 20.58-1.14C350.95 423.37 381.26 512 448 512c13.25 0 24-10.75 24-24s-10.75-24-24-24c-27.94 0-50.21-53.81-60.22-90.81 24.69-8.29 45-20.56 61.62-34.16 1.96 4.38 3.74 10.15 5.95 18.87 5.34 21.11 12.67 50 45.33 62.44 8.14 3.11 15.8 4.39 22.97 4.39 21.59 0 38.87-11.69 52.42-20.84 17.05-11.55 23.28-14.45 31.39-11.36 12.39 4.75 26.27-1.47 30.97-13.88 4.71-12.4-1.49-26.26-13.89-30.98zM448 48c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zm-256 0c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16z"] };
  3626. var faPaste = { prefix: 'fas', iconName: 'paste', icon: [448, 512, [], "f0ea", "M128 184c0-30.879 25.122-56 56-56h136V56c0-13.255-10.745-24-24-24h-80.61C204.306 12.89 183.637 0 160 0s-44.306 12.89-55.39 32H24C10.745 32 0 42.745 0 56v336c0 13.255 10.745 24 24 24h104V184zm32-144c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24zm184 248h104v200c0 13.255-10.745 24-24 24H184c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h136v104c0 13.2 10.8 24 24 24zm104-38.059V256h-96v-96h6.059a24 24 0 0 1 16.97 7.029l65.941 65.941a24.002 24.002 0 0 1 7.03 16.971z"] };
  3627. var faPause = { prefix: 'fas', iconName: 'pause', icon: [448, 512, [], "f04c", "M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"] };
  3628. var faPauseCircle = { prefix: 'fas', iconName: 'pause-circle', icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"] };
  3629. var faPaw = { prefix: 'fas', iconName: 'paw', icon: [512, 512, [], "f1b0", "M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"] };
  3630. var faPeace = { prefix: 'fas', iconName: 'peace', icon: [496, 512, [], "f67c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm184 248c0 31.93-8.2 61.97-22.57 88.17L280 240.63V74.97c86.23 15.21 152 90.5 152 181.03zM216 437.03c-33.86-5.97-64.49-21.2-89.29-43.02L216 322.57v114.46zm64-114.46L369.29 394c-24.8 21.82-55.43 37.05-89.29 43.02V322.57zm-64-247.6v165.66L86.57 344.17C72.2 317.97 64 287.93 64 256c0-90.53 65.77-165.82 152-181.03z"] };
  3631. var faPen = { prefix: 'fas', iconName: 'pen', icon: [512, 512, [], "f304", "M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"] };
  3632. var faPenAlt = { prefix: 'fas', iconName: 'pen-alt', icon: [512, 512, [], "f305", "M497.94 74.17l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91zm-246.8-20.53c-15.62-15.62-40.94-15.62-56.56 0L75.8 172.43c-6.25 6.25-6.25 16.38 0 22.62l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l101.82-101.82 22.63 22.62L93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l196.79-196.79-82.77-82.77-84.85-84.85z"] };
  3633. var faPenFancy = { prefix: 'fas', iconName: 'pen-fancy', icon: [512, 512, [], "f5ac", "M79.18 282.94a32.005 32.005 0 0 0-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.33-32 32-32s32 14.33 32 32-14.33 32-32 32c-2.77 0-5.24-.91-7.8-1.57l-92.89 92.89L32 512l176.82-58.94a31.983 31.983 0 0 0 20.24-20.24l33.07-84.07-98.88-98.88-84.07 33.07zM369.25 28.32L186.14 227.81l97.85 97.85 199.49-183.11C568.4 67.48 443.73-55.94 369.25 28.32z"] };
  3634. var faPenNib = { prefix: 'fas', iconName: 'pen-nib', icon: [512, 512, [], "f5ad", "M136.6 138.79a64.003 64.003 0 0 0-43.31 41.35L0 460l14.69 14.69L164.8 324.58c-2.99-6.26-4.8-13.18-4.8-20.58 0-26.51 21.49-48 48-48s48 21.49 48 48-21.49 48-48 48c-7.4 0-14.32-1.81-20.58-4.8L37.31 497.31 52 512l279.86-93.29a64.003 64.003 0 0 0 41.35-43.31L416 224 288 96l-151.4 42.79zm361.34-64.62l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91z"] };
  3635. var faPenSquare = { prefix: 'fas', iconName: 'pen-square', icon: [448, 512, [], "f14b", "M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"] };
  3636. var faPencilAlt = { prefix: 'fas', iconName: 'pencil-alt', icon: [512, 512, [], "f303", "M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"] };
  3637. var faPencilRuler = { prefix: 'fas', iconName: 'pencil-ruler', icon: [512, 512, [], "f5ae", "M109.46 244.04l134.58-134.56-44.12-44.12-61.68 61.68a7.919 7.919 0 0 1-11.21 0l-11.21-11.21c-3.1-3.1-3.1-8.12 0-11.21l61.68-61.68-33.64-33.65C131.47-3.1 111.39-3.1 99 9.29L9.29 99c-12.38 12.39-12.39 32.47 0 44.86l100.17 100.18zm388.47-116.8c18.76-18.76 18.75-49.17 0-67.93l-45.25-45.25c-18.76-18.76-49.18-18.76-67.95 0l-46.02 46.01 113.2 113.2 46.02-46.03zM316.08 82.71l-297 296.96L.32 487.11c-2.53 14.49 10.09 27.11 24.59 24.56l107.45-18.84L429.28 195.9 316.08 82.71zm186.63 285.43l-33.64-33.64-61.68 61.68c-3.1 3.1-8.12 3.1-11.21 0l-11.21-11.21c-3.09-3.1-3.09-8.12 0-11.21l61.68-61.68-44.14-44.14L267.93 402.5l100.21 100.2c12.39 12.39 32.47 12.39 44.86 0l89.71-89.7c12.39-12.39 12.39-32.47 0-44.86z"] };
  3638. var faPeopleCarry = { prefix: 'fas', iconName: 'people-carry', icon: [640, 512, [], "f4ce", "M128 96c26.5 0 48-21.5 48-48S154.5 0 128 0 80 21.5 80 48s21.5 48 48 48zm384 0c26.5 0 48-21.5 48-48S538.5 0 512 0s-48 21.5-48 48 21.5 48 48 48zm125.7 372.1l-44-110-41.1 46.4-2 18.2 27.7 69.2c5 12.5 17 20.1 29.7 20.1 4 0 8-.7 11.9-2.3 16.4-6.6 24.4-25.2 17.8-41.6zm-34.2-209.8L585 178.1c-4.6-20-18.6-36.8-37.5-44.9-18.5-8-39-6.7-56.1 3.3-22.7 13.4-39.7 34.5-48.1 59.4L432 229.8 416 240v-96c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v96l-16.1-10.2-11.3-33.9c-8.3-25-25.4-46-48.1-59.4-17.2-10-37.6-11.3-56.1-3.3-18.9 8.1-32.9 24.9-37.5 44.9l-18.4 80.2c-4.6 20 .7 41.2 14.4 56.7l67.2 75.9 10.1 92.6C130 499.8 143.8 512 160 512c1.2 0 2.3-.1 3.5-.2 17.6-1.9 30.2-17.7 28.3-35.3l-10.1-92.8c-1.5-13-6.9-25.1-15.6-35l-43.3-49 17.6-70.3 6.8 20.4c4.1 12.5 11.9 23.4 24.5 32.6l51.1 32.5c4.6 2.9 12.1 4.6 17.2 5h160c5.1-.4 12.6-2.1 17.2-5l51.1-32.5c12.6-9.2 20.4-20 24.5-32.6l6.8-20.4 17.6 70.3-43.3 49c-8.7 9.9-14.1 22-15.6 35l-10.1 92.8c-1.9 17.6 10.8 33.4 28.3 35.3 1.2.1 2.3.2 3.5.2 16.1 0 30-12.1 31.8-28.5l10.1-92.6 67.2-75.9c13.6-15.5 19-36.7 14.4-56.7zM46.3 358.1l-44 110c-6.6 16.4 1.4 35 17.8 41.6 16.8 6.6 35.1-1.7 41.6-17.8l27.7-69.2-2-18.2-41.1-46.4z"] };
  3639. var faPercent = { prefix: 'fas', iconName: 'percent', icon: [448, 512, [], "f295", "M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"] };
  3640. var faPercentage = { prefix: 'fas', iconName: 'percentage', icon: [384, 512, [], "f541", "M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"] };
  3641. var faPhone = { prefix: 'fas', iconName: 'phone', icon: [512, 512, [], "f095", "M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"] };
  3642. var faPhoneSlash = { prefix: 'fas', iconName: 'phone-slash', icon: [640, 512, [], "f3dd", "M268.2 381.4l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48c-10.7 4.6-16.5 16.1-13.9 27.5l24 104c2.5 10.8 12.1 18.6 23.4 18.6 100.7 0 193.7-32.4 269.7-86.9l-80-61.8c-10.9 6.5-22.1 12.7-33.6 18.1zm365.6 76.7L475.1 335.5C537.9 256.4 576 156.9 576 48c0-11.2-7.7-20.9-18.6-23.4l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-12.2 26.1-27.9 50.3-46 72.8L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3643. var faPhoneSquare = { prefix: 'fas', iconName: 'phone-square', icon: [448, 512, [], "f098", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"] };
  3644. var faPhoneVolume = { prefix: 'fas', iconName: 'phone-volume', icon: [384, 512, [], "f2a0", "M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"] };
  3645. var faPiggyBank = { prefix: 'fas', iconName: 'piggy-bank', icon: [576, 512, [], "f4d3", "M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"] };
  3646. var faPills = { prefix: 'fas', iconName: 'pills', icon: [576, 512, [], "f484", "M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112zm48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8-45.3 62.5-40.4 150.1 15.9 206.4 56.3 56.3 143.9 61.2 206.4 15.9 4-2.9 4.3-8.8.8-12.3L299.7 226.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8 45.3-62.6 40.5-150.1-15.9-206.4z"] };
  3647. var faPlaceOfWorship = { prefix: 'fas', iconName: 'place-of-worship', icon: [640, 512, [], "f67f", "M620.61 366.55L512 320v192h112c8.84 0 16-7.16 16-16V395.96a32 32 0 0 0-19.39-29.41zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.55A32 32 0 0 0 0 395.96zm464.46-149.28L416 217.6V102.63c0-8.49-3.37-16.62-9.38-22.63L331.31 4.69c-6.25-6.25-16.38-6.25-22.62 0L233.38 80c-6 6-9.38 14.14-9.38 22.63V217.6l-48.46 29.08A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.66-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44z"] };
  3648. var faPlane = { prefix: 'fas', iconName: 'plane', icon: [576, 512, [], "f072", "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"] };
  3649. var faPlaneArrival = { prefix: 'fas', iconName: 'plane-arrival', icon: [640, 512, [], "f5af", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM44.81 205.66l88.74 80a62.607 62.607 0 0 0 25.47 13.93l287.6 78.35c26.48 7.21 54.56 8.72 81 1.36 29.67-8.27 43.44-21.21 47.25-35.71 3.83-14.5-1.73-32.71-23.37-54.96-19.28-19.82-44.35-32.79-70.83-40l-97.51-26.56L282.8 30.22c-1.51-5.81-5.95-10.35-11.66-11.91L206.05.58c-10.56-2.88-20.9 5.32-20.71 16.44l47.92 164.21-102.2-27.84-27.59-67.88c-1.93-4.89-6.01-8.57-11.02-9.93L52.72 64.75c-10.34-2.82-20.53 5-20.72 15.88l.23 101.78c.19 8.91 6.03 17.34 12.58 23.25z"] };
  3650. var faPlaneDeparture = { prefix: 'fas', iconName: 'plane-departure', icon: [640, 512, [], "f5b0", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM80.55 341.27c6.28 6.84 15.1 10.72 24.33 10.71l130.54-.18a65.62 65.62 0 0 0 29.64-7.12l290.96-147.65c26.74-13.57 50.71-32.94 67.02-58.31 18.31-28.48 20.3-49.09 13.07-63.65-7.21-14.57-24.74-25.27-58.25-27.45-29.85-1.94-59.54 5.92-86.28 19.48l-98.51 49.99-218.7-82.06a17.799 17.799 0 0 0-18-1.11L90.62 67.29c-10.67 5.41-13.25 19.65-5.17 28.53l156.22 98.1-103.21 52.38-72.35-36.47a17.804 17.804 0 0 0-16.07.02L9.91 230.22c-10.44 5.3-13.19 19.12-5.57 28.08l76.21 82.97z"] };
  3651. var faPlay = { prefix: 'fas', iconName: 'play', icon: [448, 512, [], "f04b", "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"] };
  3652. var faPlayCircle = { prefix: 'fas', iconName: 'play-circle', icon: [512, 512, [], "f144", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"] };
  3653. var faPlug = { prefix: 'fas', iconName: 'plug', icon: [384, 512, [], "f1e6", "M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"] };
  3654. var faPlus = { prefix: 'fas', iconName: 'plus', icon: [448, 512, [], "f067", "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3655. var faPlusCircle = { prefix: 'fas', iconName: 'plus-circle', icon: [512, 512, [], "f055", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3656. var faPlusSquare = { prefix: 'fas', iconName: 'plus-square', icon: [448, 512, [], "f0fe", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3657. var faPodcast = { prefix: 'fas', iconName: 'podcast', icon: [448, 512, [], "f2ce", "M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"] };
  3658. var faPoll = { prefix: 'fas', iconName: 'poll', icon: [448, 512, [], "f681", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM160 368c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V240c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v128zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V144c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v224zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64z"] };
  3659. var faPollH = { prefix: 'fas', iconName: 'poll-h', icon: [448, 512, [], "f682", "M448 432V80c0-26.5-21.5-48-48-48H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48zM112 192c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h128c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-64z"] };
  3660. var faPoo = { prefix: 'fas', iconName: 'poo', icon: [512, 512, [], "f2fe", "M451.4 369.1C468.7 356 480 335.4 480 312c0-39.8-32.2-72-72-72h-14.1c13.4-11.7 22.1-28.8 22.1-48 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C250.3 14.6 256 30.6 256 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 19.2 8.7 36.3 22.1 48H104c-39.8 0-72 32.2-72 72 0 23.4 11.3 44 28.6 57.1C26.3 374.6 0 404.1 0 440c0 39.8 32.2 72 72 72h368c39.8 0 72-32.2 72-72 0-35.9-26.3-65.4-60.6-70.9zM192 256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm159.5 139C341 422.9 293 448 256 448s-85-25.1-95.5-53c-2-5.3 2-11 7.8-11h175.4c5.8 0 9.8 5.7 7.8 11zM320 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3661. var faPoop = { prefix: 'fas', iconName: 'poop', icon: [512, 512, [], "f619", "M451.36 369.14C468.66 355.99 480 335.41 480 312c0-39.77-32.24-72-72-72h-14.07c13.42-11.73 22.07-28.78 22.07-48 0-35.35-28.65-64-64-64h-5.88c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96-5.17 0-10.15.74-15.11 1.52C250.31 14.64 256 30.62 256 48c0 44.18-35.82 80-80 80h-16c-35.35 0-64 28.65-64 64 0 19.22 8.65 36.27 22.07 48H104c-39.76 0-72 32.23-72 72 0 23.41 11.34 43.99 28.64 57.14C26.31 374.62 0 404.12 0 440c0 39.76 32.24 72 72 72h368c39.76 0 72-32.24 72-72 0-35.88-26.31-65.38-60.64-70.86z"] };
  3662. var faPortrait = { prefix: 'fas', iconName: 'portrait', icon: [384, 512, [], "f3e0", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3663. var faPoundSign = { prefix: 'fas', iconName: 'pound-sign', icon: [320, 512, [], "f154", "M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"] };
  3664. var faPowerOff = { prefix: 'fas', iconName: 'power-off', icon: [512, 512, [], "f011", "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"] };
  3665. var faPray = { prefix: 'fas', iconName: 'pray', icon: [384, 512, [], "f683", "M256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-30.63 169.75c14.06 16.72 39 19.09 55.97 5.22l88-72.02c17.09-13.98 19.59-39.19 5.62-56.28-13.97-17.11-39.19-19.59-56.31-5.62l-57.44 47-38.91-46.31c-15.44-18.39-39.22-27.92-64-25.33-24.19 2.48-45.25 16.27-56.37 36.92l-49.37 92.03c-23.4 43.64-8.69 96.37 34.19 123.75L131.56 432H40c-22.09 0-40 17.91-40 40s17.91 40 40 40h208c34.08 0 53.77-42.79 28.28-68.28L166.42 333.86l34.8-64.87 24.15 28.76z"] };
  3666. var faPrayingHands = { prefix: 'fas', iconName: 'praying-hands', icon: [640, 512, [], "f684", "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z"] };
  3667. var faPrescription = { prefix: 'fas', iconName: 'prescription', icon: [384, 512, [], "f5b1", "M301.26 352l78.06-78.06c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0L256 306.74l-83.96-83.96C219.31 216.8 256 176.89 256 128c0-53.02-42.98-96-96-96H16C7.16 32 0 39.16 0 48v256c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-80h18.75l128 128-78.06 78.06c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0L256 397.25l78.06 78.06c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63L301.26 352zM64 96h96c17.64 0 32 14.36 32 32s-14.36 32-32 32H64V96z"] };
  3668. var faPrescriptionBottle = { prefix: 'fas', iconName: 'prescription-bottle', icon: [384, 512, [], "f485", "M32 192h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v64zM360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24z"] };
  3669. var faPrescriptionBottleAlt = { prefix: 'fas', iconName: 'prescription-bottle-alt', icon: [384, 512, [], "f486", "M360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24zM32 480c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v352zm64-184c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48z"] };
  3670. var faPrint = { prefix: 'fas', iconName: 'print', icon: [512, 512, [], "f02f", "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3671. var faProcedures = { prefix: 'fas', iconName: 'procedures', icon: [640, 512, [], "f487", "M528 224H272c-8.8 0-16 7.2-16 16v144H64V144c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h512v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V336c0-61.9-50.1-112-112-112zM136 96h126.1l27.6 55.2c5.9 11.8 22.7 11.8 28.6 0L368 51.8 390.1 96H512c8.8 0 16-7.2 16-16s-7.2-16-16-16H409.9L382.3 8.8C376.4-3 359.6-3 353.7 8.8L304 108.2l-19.9-39.8c-1.4-2.7-4.1-4.4-7.2-4.4H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm24 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"] };
  3672. var faProjectDiagram = { prefix: 'fas', iconName: 'project-diagram', icon: [640, 512, [], "f542", "M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"] };
  3673. var faPuzzlePiece = { prefix: 'fas', iconName: 'puzzle-piece', icon: [576, 512, [], "f12e", "M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"] };
  3674. var faQrcode = { prefix: 'fas', iconName: 'qrcode', icon: [448, 512, [], "f029", "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"] };
  3675. var faQuestion = { prefix: 'fas', iconName: 'question', icon: [384, 512, [], "f128", "M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"] };
  3676. var faQuestionCircle = { prefix: 'fas', iconName: 'question-circle', icon: [512, 512, [], "f059", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"] };
  3677. var faQuidditch = { prefix: 'fas', iconName: 'quidditch', icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 44.1 35.7 79.9 79.8 79.9 44.1 0 79.8-35.8 79.8-79.9 0-44.2-35.8-79.9-79.8-79.9zM636.5 31L616.7 6c-5.5-6.9-15.5-8-22.4-2.6L361.8 181.3l-34.1-43c-5.1-6.4-15.1-5.2-18.6 2.2l-25.3 54.6 86.7 109.2 58.8-12.4c8-1.7 11.4-11.2 6.3-17.6l-34.1-42.9L634 53.5c6.9-5.5 8-15.6 2.5-22.5z"] };
  3678. var faQuoteLeft = { prefix: 'fas', iconName: 'quote-left', icon: [512, 512, [], "f10d", "M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3679. var faQuoteRight = { prefix: 'fas', iconName: 'quote-right', icon: [512, 512, [], "f10e", "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"] };
  3680. var faQuran = { prefix: 'fas', iconName: 'quran', icon: [448, 512, [], "f687", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM301.08 145.82c.6-1.21 1.76-1.82 2.92-1.82s2.32.61 2.92 1.82l11.18 22.65 25 3.63c2.67.39 3.74 3.67 1.81 5.56l-18.09 17.63 4.27 24.89c.36 2.11-1.31 3.82-3.21 3.82-.5 0-1.02-.12-1.52-.38L304 211.87l-22.36 11.75c-.5.26-1.02.38-1.52.38-1.9 0-3.57-1.71-3.21-3.82l4.27-24.89-18.09-17.63c-1.94-1.89-.87-5.17 1.81-5.56l24.99-3.63 11.19-22.65zm-57.89-69.01c13.67 0 27.26 2.49 40.38 7.41a6.775 6.775 0 1 1-2.38 13.12c-.67 0-3.09-.21-4.13-.21-52.31 0-94.86 42.55-94.86 94.86 0 52.3 42.55 94.86 94.86 94.86 1.03 0 3.48-.21 4.13-.21 3.93 0 6.8 3.14 6.8 6.78 0 2.98-1.94 5.51-4.62 6.42-13.07 4.87-26.59 7.34-40.19 7.34C179.67 307.19 128 255.51 128 192c0-63.52 51.67-115.19 115.19-115.19zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3681. var faRandom = { prefix: 'fas', iconName: 'random', icon: [512, 512, [], "f074", "M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"] };
  3682. var faReceipt = { prefix: 'fas', iconName: 'receipt', icon: [384, 512, [], "f543", "M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"] };
  3683. var faRecycle = { prefix: 'fas', iconName: 'recycle', icon: [512, 512, [], "f1b8", "M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"] };
  3684. var faRedo = { prefix: 'fas', iconName: 'redo', icon: [512, 512, [], "f01e", "M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"] };
  3685. var faRedoAlt = { prefix: 'fas', iconName: 'redo-alt', icon: [512, 512, [], "f2f9", "M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"] };
  3686. var faRegistered = { prefix: 'fas', iconName: 'registered', icon: [512, 512, [], "f25d", "M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"] };
  3687. var faReply = { prefix: 'fas', iconName: 'reply', icon: [512, 512, [], "f3e5", "M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"] };
  3688. var faReplyAll = { prefix: 'fas', iconName: 'reply-all', icon: [576, 512, [], "f122", "M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"] };
  3689. var faRetweet = { prefix: 'fas', iconName: 'retweet', icon: [640, 512, [], "f079", "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"] };
  3690. var faRibbon = { prefix: 'fas', iconName: 'ribbon', icon: [448, 512, [], "f4d6", "M6.1 444.3c-9.6 10.8-7.5 27.6 4.5 35.7l68.8 27.9c9.9 6.7 23.3 5 31.3-3.8l91.8-101.9-79.2-87.9-117.2 130zm435.8 0s-292-324.6-295.4-330.1c15.4-8.4 40.2-17.9 77.5-17.9s62.1 9.5 77.5 17.9c-3.3 5.6-56 64.6-56 64.6l79.1 87.7 34.2-38c28.7-31.9 33.3-78.6 11.4-115.5l-43.7-73.5c-4.3-7.2-9.9-13.3-16.8-18-40.7-27.6-127.4-29.7-171.4 0-6.9 4.7-12.5 10.8-16.8 18l-43.6 73.2c-1.5 2.5-37.1 62.2 11.5 116L337.5 504c8 8.9 21.4 10.5 31.3 3.8l68.8-27.9c11.9-8 14-24.8 4.3-35.6z"] };
  3691. var faRing = { prefix: 'fas', iconName: 'ring', icon: [512, 512, [], "f70b", "M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"] };
  3692. var faRoad = { prefix: 'fas', iconName: 'road', icon: [576, 512, [], "f018", "M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"] };
  3693. var faRobot = { prefix: 'fas', iconName: 'robot', icon: [640, 512, [], "f544", "M0 256v128c0 17.7 14.3 32 32 32h32V224H32c-17.7 0-32 14.3-32 32zM464 96H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H176c-44.2 0-80 35.8-80 80v272c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V176c0-44.2-35.8-80-80-80zM256 416h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm128 120h-64v-32h64v32zm96 0h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm192-72h-32v192h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32z"] };
  3694. var faRocket = { prefix: 'fas', iconName: 'rocket', icon: [512, 512, [], "f135", "M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3695. var faRoute = { prefix: 'fas', iconName: 'route', icon: [512, 512, [], "f4d7", "M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3696. var faRss = { prefix: 'fas', iconName: 'rss', icon: [448, 512, [], "f09e", "M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"] };
  3697. var faRssSquare = { prefix: 'fas', iconName: 'rss-square', icon: [448, 512, [], "f143", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"] };
  3698. var faRubleSign = { prefix: 'fas', iconName: 'ruble-sign', icon: [384, 512, [], "f158", "M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"] };
  3699. var faRuler = { prefix: 'fas', iconName: 'ruler', icon: [640, 512, [], "f545", "M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z"] };
  3700. var faRulerCombined = { prefix: 'fas', iconName: 'ruler-combined', icon: [512, 512, [], "f546", "M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3701. var faRulerHorizontal = { prefix: 'fas', iconName: 'ruler-horizontal', icon: [576, 512, [], "f547", "M544 128h-48v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8H88c-4.42 0-8-3.58-8-8v-88H32c-17.67 0-32 14.33-32 32v192c0 17.67 14.33 32 32 32h512c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32z"] };
  3702. var faRulerVertical = { prefix: 'fas', iconName: 'ruler-vertical', icon: [256, 512, [], "f548", "M168 416c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 17.67 14.33 32 32 32h192c17.67 0 32-14.33 32-32v-64h-88z"] };
  3703. var faRunning = { prefix: 'fas', iconName: 'running', icon: [416, 512, [], "f70c", "M272 96c26.51 0 48-21.49 48-48S298.51 0 272 0s-48 21.49-48 48 21.49 48 48 48zM113.69 317.47l-14.8 34.52H32c-17.67 0-32 14.33-32 32s14.33 32 32 32h77.45c19.25 0 36.58-11.44 44.11-29.09l8.79-20.52-10.67-6.3c-17.32-10.23-30.06-25.37-37.99-42.61zM384 223.99h-44.03l-26.06-53.25c-12.5-25.55-35.45-44.23-61.78-50.94l-71.08-21.14c-28.3-6.8-57.77-.55-80.84 17.14l-39.67 30.41c-14.03 10.75-16.69 30.83-5.92 44.86s30.84 16.66 44.86 5.92l39.69-30.41c7.67-5.89 17.44-8 25.27-6.14l14.7 4.37-37.46 87.39c-12.62 29.48-1.31 64.01 26.3 80.31l84.98 50.17-27.47 87.73c-5.28 16.86 4.11 34.81 20.97 40.09 3.19 1 6.41 1.48 9.58 1.48 13.61 0 26.23-8.77 30.52-22.45l31.64-101.06c5.91-20.77-2.89-43.08-21.64-54.39l-61.24-36.14 31.31-78.28 20.27 41.43c8 16.34 24.92 26.89 43.11 26.89H384c17.67 0 32-14.33 32-32s-14.33-31.99-32-31.99z"] };
  3704. var faRupeeSign = { prefix: 'fas', iconName: 'rupee-sign', icon: [320, 512, [], "f156", "M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"] };
  3705. var faSadCry = { prefix: 'fas', iconName: 'sad-cry', icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256c0 90.1 48.2 168.7 120 212.1V288c0-8.8 7.2-16 16-16s16 7.2 16 16v196.7c29.5 12.4 62 19.3 96 19.3s66.5-6.9 96-19.3V288c0-8.8 7.2-16 16-16s16 7.2 16 16v180.1C447.8 424.7 496 346 496 256 496 119 385 8 248 8zm-65.5 216.5c-14.8-13.2-46.2-13.2-61 0L112 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c.8 5-1.7 10-6.1 12.4-5.8 3.1-11.2.7-13.7-1.6l-9.7-8.5zM248 416c-26.5 0-48-28.7-48-64s21.5-64 48-64 48 28.7 48 64-21.5 64-48 64zm149.8-181.5c-5.8 3.1-11.2.7-13.7-1.6l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S400 197 404 222.2c.6 4.9-1.8 9.9-6.2 12.3z"] };
  3706. var faSadTear = { prefix: 'fas', iconName: 'sad-tear', icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"] };
  3707. var faSave = { prefix: 'fas', iconName: 'save', icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"] };
  3708. var faSchool = { prefix: 'fas', iconName: 'school', icon: [640, 512, [], "f549", "M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z"] };
  3709. var faScrewdriver = { prefix: 'fas', iconName: 'screwdriver', icon: [512, 512, [], "f54a", "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"] };
  3710. var faScroll = { prefix: 'fas', iconName: 'scroll', icon: [640, 512, [], "f70e", "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"] };
  3711. var faSearch = { prefix: 'fas', iconName: 'search', icon: [512, 512, [], "f002", "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"] };
  3712. var faSearchDollar = { prefix: 'fas', iconName: 'search-dollar', icon: [512, 512, [], "f688", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm27.11-152.54l-45.01-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V112c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.63.63-42.68 20.55-42.68 45.07 0 19.97 12.99 37.81 31.58 43.39l45.01 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.1c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V304c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.63-.63 42.68-20.54 42.68-45.07 0-19.97-12.99-37.81-31.59-43.39z"] };
  3713. var faSearchLocation = { prefix: 'fas', iconName: 'search-location', icon: [512, 512, [], "f689", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3714. var faSearchMinus = { prefix: 'fas', iconName: 'search-minus', icon: [512, 512, [], "f010", "M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3715. var faSearchPlus = { prefix: 'fas', iconName: 'search-plus', icon: [512, 512, [], "f00e", "M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3716. var faSeedling = { prefix: 'fas', iconName: 'seedling', icon: [512, 512, [], "f4d8", "M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"] };
  3717. var faServer = { prefix: 'fas', iconName: 'server', icon: [512, 512, [], "f233", "M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"] };
  3718. var faShapes = { prefix: 'fas', iconName: 'shapes', icon: [512, 512, [], "f61f", "M512 320v160c0 17.67-14.33 32-32 32H320c-17.67 0-32-14.33-32-32V320c0-17.67 14.33-32 32-32h160c17.67 0 32 14.33 32 32zm-384-64C57.31 256 0 313.31 0 384s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm351.03-32c25.34 0 41.18-26.67 28.51-48L412.51 16c-12.67-21.33-44.35-21.33-57.02 0l-95.03 160c-12.67 21.33 3.17 48 28.51 48h190.06z"] };
  3719. var faShare = { prefix: 'fas', iconName: 'share', icon: [512, 512, [], "f064", "M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"] };
  3720. var faShareAlt = { prefix: 'fas', iconName: 'share-alt', icon: [448, 512, [], "f1e0", "M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"] };
  3721. var faShareAltSquare = { prefix: 'fas', iconName: 'share-alt-square', icon: [448, 512, [], "f1e1", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"] };
  3722. var faShareSquare = { prefix: 'fas', iconName: 'share-square', icon: [576, 512, [], "f14d", "M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"] };
  3723. var faShekelSign = { prefix: 'fas', iconName: 'shekel-sign', icon: [448, 512, [], "f20b", "M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"] };
  3724. var faShieldAlt = { prefix: 'fas', iconName: 'shield-alt', icon: [512, 512, [], "f3ed", "M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"] };
  3725. var faShip = { prefix: 'fas', iconName: 'ship', icon: [640, 512, [], "f21a", "M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"] };
  3726. var faShippingFast = { prefix: 'fas', iconName: 'shipping-fast', icon: [640, 512, [], "f48b", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3727. var faShoePrints = { prefix: 'fas', iconName: 'shoe-prints', icon: [640, 512, [], "f54b", "M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"] };
  3728. var faShoppingBag = { prefix: 'fas', iconName: 'shopping-bag', icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"] };
  3729. var faShoppingBasket = { prefix: 'fas', iconName: 'shopping-basket', icon: [576, 512, [], "f291", "M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"] };
  3730. var faShoppingCart = { prefix: 'fas', iconName: 'shopping-cart', icon: [576, 512, [], "f07a", "M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"] };
  3731. var faShower = { prefix: 'fas', iconName: 'shower', icon: [512, 512, [], "f2cc", "M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"] };
  3732. var faShuttleVan = { prefix: 'fas', iconName: 'shuttle-van', icon: [640, 512, [], "f5b6", "M628.88 210.65L494.39 49.27A48.01 48.01 0 0 0 457.52 32H32C14.33 32 0 46.33 0 64v288c0 17.67 14.33 32 32 32h32c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h32c17.67 0 32-14.33 32-32V241.38c0-11.23-3.94-22.1-11.12-30.73zM64 192V96h96v96H64zm96 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm160-240h-96V96h96v96zm160 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-96-240V96h66.02l80 96H384z"] };
  3733. var faSign = { prefix: 'fas', iconName: 'sign', icon: [512, 512, [], "f4d9", "M496 64H128V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v48H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V128h368c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM160 384h320V160H160v224z"] };
  3734. var faSignInAlt = { prefix: 'fas', iconName: 'sign-in-alt', icon: [512, 512, [], "f2f6", "M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"] };
  3735. var faSignLanguage = { prefix: 'fas', iconName: 'sign-language', icon: [448, 512, [], "f2a7", "M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"] };
  3736. var faSignOutAlt = { prefix: 'fas', iconName: 'sign-out-alt', icon: [512, 512, [], "f2f5", "M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"] };
  3737. var faSignal = { prefix: 'fas', iconName: 'signal', icon: [640, 512, [], "f012", "M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3738. var faSignature = { prefix: 'fas', iconName: 'signature', icon: [512, 512, [], "f5b7", "M496 320h-91.86c-9.27 0-19.72-11.31-25.78-28.52-15.23-43.36-48.11-70.3-85.8-70.3-30.84 0-58.47 18.05-76.11 49.23L194.8 106.5C188.84 81.08 169.34 64 146.28 64c-23.05 0-42.55 17.08-48.5 42.5L56.16 284.2C50.7 307.45 37.75 320 28.33 320H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h12.33c41.97 0 78.19-34.23 90.14-85.2l23.84-101.78 29.25 222.11c1.98 15.05 13.82 27.45 28.94 28.75.99.09 1.96.13 2.93.13 14.08 0 26.64-9.27 30.69-22.95l33.03-112.34c5.88-16.72 15.84-27.52 25.41-27.52 9.58 0 19.55 10.8 25.78 28.52 15.23 43.36 48.11 70.3 85.8 70.3H496c8.84 0 16-7.16 16-16v-32c0-8.86-7.16-16.02-16-16.02z"] };
  3739. var faSitemap = { prefix: 'fas', iconName: 'sitemap', icon: [640, 512, [], "f0e8", "M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3740. var faSkull = { prefix: 'fas', iconName: 'skull', icon: [512, 512, [], "f54c", "M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"] };
  3741. var faSkullCrossbones = { prefix: 'fas', iconName: 'skull-crossbones', icon: [448, 512, [], "f714", "M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z"] };
  3742. var faSlash = { prefix: 'fas', iconName: 'slash', icon: [640, 512, [], "f715", "M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"] };
  3743. var faSlidersH = { prefix: 'fas', iconName: 'sliders-h', icon: [512, 512, [], "f1de", "M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"] };
  3744. var faSmile = { prefix: 'fas', iconName: 'smile', icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"] };
  3745. var faSmileBeam = { prefix: 'fas', iconName: 'smile-beam', icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM112 223.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zm250.8 122.8C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.3 24.6 20.5zm6.2-118.3l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.6 8.6-11 11.9-15.1 4.5z"] };
  3746. var faSmileWink = { prefix: 'fas', iconName: 'smile-wink', icon: [496, 512, [], "f4da", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm158.5 16.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.7 11.1-11.4 18.3-19.8 10.8l-9.7-8.5zM157.8 325.8C180.2 352.7 213 368 248 368s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.2 24.6 20.5C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11.2-36.7 24.6-20.4z"] };
  3747. var faSmoking = { prefix: 'fas', iconName: 'smoking', icon: [640, 512, [], "f48d", "M632 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zM553.3 87.1c-5.7-3.8-9.3-10-9.3-16.8V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v62.3c0 22 10.2 43.4 28.6 55.4 42.2 27.3 67.4 73.8 67.4 124V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-65.5-32.4-126.2-86.7-162.6zM432 352H48c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h384c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zm-32 112H224v-64h176v64zm87.7-322.4C463.8 125 448 99.3 448 70.3V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v66.4c0 43.7 24.6 81.6 60.3 106.7 22.4 15.7 35.7 41.2 35.7 68.6V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-43.3-21-83.4-56.3-108.1zM536 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"] };
  3748. var faSmokingBan = { prefix: 'fas', iconName: 'smoking-ban', icon: [512, 512, [], "f54d", "M96 304c0 8.8 7.2 16 16 16h117.5l-96-96H112c-8.8 0-16 7.2-16 16v64zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 448c-105.9 0-192-86.1-192-192 0-41.4 13.3-79.7 35.7-111.1l267.4 267.4C335.7 434.7 297.4 448 256 448zm45.2-192H384v32h-50.8l-32-32zm111.1 111.1L365.2 320H400c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H269.2L144.9 99.7C176.3 77.3 214.6 64 256 64c105.9 0 192 86.1 192 192 0 41.4-13.3 79.7-35.7 111.1zM320.6 128c-15.6 0-28.6-11.2-31.4-25.9-.7-3.6-4-6.1-7.7-6.1h-16.2c-5 0-8.7 4.5-8 9.4 4.6 30.9 31.2 54.6 63.3 54.6 15.6 0 28.6 11.2 31.4 25.9.7 3.6 4 6.1 7.7 6.1h16.2c5 0 8.7-4.5 8-9.4-4.6-30.9-31.2-54.6-63.3-54.6z"] };
  3749. var faSnowflake = { prefix: 'fas', iconName: 'snowflake', icon: [448, 512, [], "f2dc", "M444.816 301.639a24.12 24.12 0 0 0 2.661-16.978c-2.725-12.966-15.339-21.245-28.174-18.492l-87.407 25.046L264 256l67.896-35.215 87.407 25.046c12.835 2.753 25.449-5.526 28.174-18.492 2.725-12.966-5.471-25.708-18.305-28.461l-47.477-7.137 53.077-30.956c11.363-6.627 15.257-21.306 8.696-32.785-6.561-11.479-21.091-15.412-32.454-8.785l-53.077 30.956 17.621-45.104c4.057-12.606-2.768-26.146-15.247-30.245-12.478-4.099-25.883 2.797-29.94 15.402l-22.232 88.99-60.38 35.215V144l65.175-63.945c8.778-9.852 7.987-25.027-1.766-33.894-9.753-8.867-24.775-8.068-33.552 1.784l-29.857 37.967V24c0-13.255-10.637-24-23.758-24s-23.758 10.745-23.758 24v61.912l-29.857-37.967c-8.779-9.852-23.799-10.652-33.552-1.784-9.753 8.867-10.543 24.042-1.766 33.894L200.242 144v70.431l-60.38-35.215-22.232-88.99c-4.057-12.605-17.462-19.501-29.94-15.402-12.478 4.099-19.304 17.64-15.247 30.245l17.62 45.104-53.077-30.956c-11.363-6.627-25.893-2.694-32.454 8.785s-2.667 26.157 8.696 32.785l53.077 30.956-47.477 7.137C5.993 201.634-2.203 214.375.523 227.341c2.725 12.965 15.339 21.245 28.174 18.492l87.407-25.046L184 256l-67.896 35.215-87.406-25.045c-12.835-2.753-25.449 5.526-28.174 18.492-2.725 12.967 5.47 25.708 18.305 28.461l47.477 7.137-53.077 30.956C1.866 357.843-2.027 372.521 4.533 384s21.091 15.412 32.454 8.785l53.077-30.956-17.62 45.104a24.157 24.157 0 0 0 2.022 19.428c2.831 4.953 7.416 8.909 13.224 10.816 12.478 4.099 25.883-2.797 29.94-15.402l22.232-88.99 60.38-35.215V368l-65.175 63.945c-8.778 9.852-7.987 25.027 1.766 33.894 9.754 8.868 24.774 8.068 33.552-1.784l29.857-37.967V488c0 13.255 10.637 24 23.758 24s23.758-10.745 23.758-24v-61.912l29.857 37.967A23.59 23.59 0 0 0 295.282 472a23.534 23.534 0 0 0 15.885-6.161c9.753-8.867 10.544-24.042 1.766-33.894L247.758 368v-70.431l60.38 35.215 22.232 88.99c4.057 12.605 17.462 19.501 29.94 15.402 12.479-4.099 19.304-17.64 15.247-30.245l-17.621-45.104 53.077 30.956c11.363 6.627 25.893 2.694 32.454-8.785s2.667-26.157-8.696-32.785l-53.077-30.956 47.477-7.137c6.86-1.469 12.394-5.793 15.645-11.481z"] };
  3750. var faSocks = { prefix: 'fas', iconName: 'socks', icon: [512, 512, [], "f696", "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"] };
  3751. var faSolarPanel = { prefix: 'fas', iconName: 'solar-panel', icon: [640, 512, [], "f5ba", "M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"] };
  3752. var faSort = { prefix: 'fas', iconName: 'sort', icon: [320, 512, [], "f0dc", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"] };
  3753. var faSortAlphaDown = { prefix: 'fas', iconName: 'sort-alpha-down', icon: [448, 512, [], "f15d", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3754. var faSortAlphaUp = { prefix: 'fas', iconName: 'sort-alpha-up', icon: [448, 512, [], "f15e", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3755. var faSortAmountDown = { prefix: 'fas', iconName: 'sort-amount-down', icon: [512, 512, [], "f160", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3756. var faSortAmountUp = { prefix: 'fas', iconName: 'sort-amount-up', icon: [512, 512, [], "f161", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3757. var faSortDown = { prefix: 'fas', iconName: 'sort-down', icon: [320, 512, [], "f0dd", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"] };
  3758. var faSortNumericDown = { prefix: 'fas', iconName: 'sort-numeric-down', icon: [448, 512, [], "f162", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"] };
  3759. var faSortNumericUp = { prefix: 'fas', iconName: 'sort-numeric-up', icon: [448, 512, [], "f163", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"] };
  3760. var faSortUp = { prefix: 'fas', iconName: 'sort-up', icon: [320, 512, [], "f0de", "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"] };
  3761. var faSpa = { prefix: 'fas', iconName: 'spa', icon: [576, 512, [], "f5bb", "M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"] };
  3762. var faSpaceShuttle = { prefix: 'fas', iconName: 'space-shuttle', icon: [640, 512, [], "f197", "M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"] };
  3763. var faSpider = { prefix: 'fas', iconName: 'spider', icon: [576, 512, [], "f717", "M151.17 167.35L177.1 176h4.67l5.22-26.12c.72-3.58 1.8-7.58 3.21-11.79l-20.29-40.58 23.8-71.39c2.79-8.38-1.73-17.44-10.12-20.24L168.42.82c-8.38-2.8-17.45 1.73-20.24 10.12l-25.89 77.68a32.04 32.04 0 0 0 1.73 24.43l27.15 54.3zm422.14 182.03l-52.75-79.12a32.002 32.002 0 0 0-26.62-14.25H416l68.99-24.36a32.03 32.03 0 0 0 16.51-12.61l53.6-80.41c4.9-7.35 2.91-17.29-4.44-22.19l-13.31-8.88c-7.35-4.9-17.29-2.91-22.19 4.44l-50.56 75.83L404.1 208H368l-10.37-51.85C355.44 145.18 340.26 96 288 96c-52.26 0-67.44 49.18-69.63 60.15L208 208h-36.1l-60.49-20.17L60.84 112c-4.9-7.35-14.83-9.34-22.19-4.44l-13.31 8.88c-7.35 4.9-9.34 14.83-4.44 22.19l53.6 80.41a32.03 32.03 0 0 0 16.51 12.61L160 256H82.06a32.02 32.02 0 0 0-26.63 14.25L2.69 349.38c-4.9 7.35-2.92 17.29 4.44 22.19l13.31 8.88c7.35 4.9 17.29 2.91 22.19-4.44l48-72h47.06l-60.83 97.33A31.988 31.988 0 0 0 72 418.3V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-73.11l74.08-118.53c-1.01 14.05-2.08 28.11-2.08 42.21C192 399.64 232.76 448 288 448s96-48.36 96-101.43c0-14.1-1.08-28.16-2.08-42.21L456 422.89V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-77.71c0-6-1.69-11.88-4.86-16.96L438.31 304h47.06l48 72c4.9 7.35 14.84 9.34 22.19 4.44l13.31-8.88c7.36-4.9 9.34-14.83 4.44-22.18zM406.09 97.51l-20.29 40.58c1.41 4.21 2.49 8.21 3.21 11.79l5.22 26.12h4.67l25.93-8.65 27.15-54.3a31.995 31.995 0 0 0 1.73-24.43l-25.89-77.68C425.03 2.56 415.96-1.98 407.58.82l-15.17 5.06c-8.38 2.8-12.91 11.86-10.12 20.24l23.8 71.39z"] };
  3764. var faSpinner = { prefix: 'fas', iconName: 'spinner', icon: [512, 512, [], "f110", "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"] };
  3765. var faSplotch = { prefix: 'fas', iconName: 'splotch', icon: [512, 512, [], "f5bc", "M472.29 195.89l-67.06-22.95c-19.28-6.6-33.54-20.92-38.14-38.3L351.1 74.19c-11.58-43.77-76.57-57.13-109.98-22.62l-46.14 47.67c-13.26 13.71-33.54 20.93-54.2 19.31l-71.88-5.62c-52.05-4.07-86.93 44.88-59.03 82.83l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24L24.62 355.4c-20.59 41.25 22.84 84.87 73.49 73.81l69.96-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101.04 7.57 104.45-37.22l4.7-61.86c1.35-17.79 12.8-33.86 30.63-42.99l62-31.74c44.88-22.96 39.59-80.17-8.95-96.79z"] };
  3766. var faSprayCan = { prefix: 'fas', iconName: 'spray-can', icon: [512, 512, [], "f5bd", "M224 32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96h128V32zm256 96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-256 32H96c-53.02 0-96 42.98-96 96v224c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V256c0-53.02-42.98-96-96-96zm-64 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zM480 96c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-96 32c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-96-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 0c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 192c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3767. var faSquare = { prefix: 'fas', iconName: 'square', icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3768. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3769. var faSquareRootAlt = { prefix: 'fas', iconName: 'square-root-alt', icon: [576, 512, [], "f698", "M571.31 251.31l-22.62-22.62c-6.25-6.25-16.38-6.25-22.63 0L480 274.75l-46.06-46.06c-6.25-6.25-16.38-6.25-22.63 0l-22.62 22.62c-6.25 6.25-6.25 16.38 0 22.63L434.75 320l-46.06 46.06c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L480 365.25l46.06 46.06c6.25 6.25 16.38 6.25 22.63 0l22.62-22.62c6.25-6.25 6.25-16.38 0-22.63L525.25 320l46.06-46.06c6.25-6.25 6.25-16.38 0-22.63zM552 0H307.65c-14.54 0-27.26 9.8-30.95 23.87l-84.79 322.8-58.41-106.1A32.008 32.008 0 0 0 105.47 224H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h43.62l88.88 163.73C168.99 503.5 186.3 512 204.94 512c17.27 0 44.44-9 54.28-41.48L357.03 96H552c13.25 0 24-10.75 24-24V24c0-13.26-10.75-24-24-24z"] };
  3770. var faStamp = { prefix: 'fas', iconName: 'stamp', icon: [512, 512, [], "f5bf", "M32 512h448v-64H32v64zm384-256h-66.56c-16.26 0-29.44-13.18-29.44-29.44v-9.46c0-27.37 8.88-53.41 21.46-77.72 9.11-17.61 12.9-38.39 9.05-60.42-6.77-38.78-38.47-70.7-77.26-77.45C212.62-9.04 160 37.33 160 96c0 14.16 3.12 27.54 8.69 39.58C182.02 164.43 192 194.7 192 226.49v.07c0 16.26-13.18 29.44-29.44 29.44H96c-53.02 0-96 42.98-96 96v32c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-32c0-53.02-42.98-96-96-96z"] };
  3771. var faStar = { prefix: 'fas', iconName: 'star', icon: [576, 512, [], "f005", "M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"] };
  3772. var faStarAndCrescent = { prefix: 'fas', iconName: 'star-and-crescent', icon: [512, 512, [], "f699", "M340.47 466.36c-1.45 0-6.89.46-9.18.46-116.25 0-210.82-94.57-210.82-210.82S215.04 45.18 331.29 45.18c2.32 0 7.7.46 9.18.46 7.13 0 13.33-5.03 14.75-12.07 1.46-7.25-2.55-14.49-9.47-17.09C316.58 5.54 286.39 0 256 0 114.84 0 0 114.84 0 256s114.84 256 256 256c30.23 0 60.28-5.49 89.32-16.32 5.96-2.02 10.28-7.64 10.28-14.26 0-8.09-6.39-15.06-15.13-15.06zm162.99-252.5l-76.38-11.1-34.16-69.21c-1.83-3.7-5.38-5.55-8.93-5.55s-7.1 1.85-8.93 5.55l-34.16 69.21-76.38 11.1c-8.17 1.18-11.43 11.22-5.52 16.99l55.27 53.87-13.05 76.07c-1.11 6.44 4.01 11.66 9.81 11.66 1.53 0 3.11-.36 4.64-1.17L384 335.37l68.31 35.91c1.53.8 3.11 1.17 4.64 1.17 5.8 0 10.92-5.23 9.81-11.66l-13.05-76.07 55.27-53.87c5.91-5.77 2.65-15.81-5.52-16.99z"] };
  3773. var faStarHalf = { prefix: 'fas', iconName: 'star-half', icon: [576, 512, [], "f089", "M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"] };
  3774. var faStarHalfAlt = { prefix: 'fas', iconName: 'star-half-alt', icon: [536, 512, [], "f5c0", "M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"] };
  3775. var faStarOfDavid = { prefix: 'fas', iconName: 'star-of-david', icon: [464, 512, [], "f69a", "M405.68 256l53.21-89.39C473.3 142.4 455.48 112 426.88 112H319.96l-55.95-93.98C256.86 6.01 244.43 0 232 0s-24.86 6.01-32.01 18.02L144.04 112H37.11c-28.6 0-46.42 30.4-32.01 54.61L58.32 256 5.1 345.39C-9.31 369.6 8.51 400 37.11 400h106.93l55.95 93.98C207.14 505.99 219.57 512 232 512s24.86-6.01 32.01-18.02L319.96 400h106.93c28.6 0 46.42-30.4 32.01-54.61L405.68 256zm-12.78-88l-19.8 33.26L353.3 168h39.6zm-52.39 88l-52.39 88H175.88l-52.39-88 52.38-88h112.25l52.39 88zM232 73.72L254.79 112h-45.57L232 73.72zM71.1 168h39.6l-19.8 33.26L71.1 168zm0 176l19.8-33.26L110.7 344H71.1zM232 438.28L209.21 400h45.57L232 438.28zM353.29 344l19.8-33.26L392.9 344h-39.61z"] };
  3776. var faStarOfLife = { prefix: 'fas', iconName: 'star-of-life', icon: [480, 512, [], "f621", "M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"] };
  3777. var faStepBackward = { prefix: 'fas', iconName: 'step-backward', icon: [448, 512, [], "f048", "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"] };
  3778. var faStepForward = { prefix: 'fas', iconName: 'step-forward', icon: [448, 512, [], "f051", "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"] };
  3779. var faStethoscope = { prefix: 'fas', iconName: 'stethoscope', icon: [512, 512, [], "f0f1", "M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3780. var faStickyNote = { prefix: 'fas', iconName: 'sticky-note', icon: [448, 512, [], "f249", "M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"] };
  3781. var faStop = { prefix: 'fas', iconName: 'stop', icon: [448, 512, [], "f04d", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3782. var faStopCircle = { prefix: 'fas', iconName: 'stop-circle', icon: [512, 512, [], "f28d", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"] };
  3783. var faStopwatch = { prefix: 'fas', iconName: 'stopwatch', icon: [448, 512, [], "f2f2", "M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3784. var faStore = { prefix: 'fas', iconName: 'store', icon: [616, 512, [], "f54e", "M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"] };
  3785. var faStoreAlt = { prefix: 'fas', iconName: 'store-alt', icon: [640, 512, [], "f54f", "M320 384H128V224H64v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V224h-64v160zm314.6-241.8l-85.3-128c-6-8.9-16-14.2-26.7-14.2H117.4c-10.7 0-20.7 5.3-26.6 14.2l-85.3 128c-14.2 21.3 1 49.8 26.6 49.8H608c25.5 0 40.7-28.5 26.6-49.8zM512 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V224h-64v272z"] };
  3786. var faStream = { prefix: 'fas', iconName: 'stream', icon: [512, 512, [], "f550", "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"] };
  3787. var faStreetView = { prefix: 'fas', iconName: 'street-view', icon: [512, 512, [], "f21d", "M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"] };
  3788. var faStrikethrough = { prefix: 'fas', iconName: 'strikethrough', icon: [512, 512, [], "f0cc", "M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"] };
  3789. var faStroopwafel = { prefix: 'fas', iconName: 'stroopwafel', icon: [512, 512, [], "f551", "M188.12 210.74L142.86 256l45.25 45.25L233.37 256l-45.25-45.26zm113.13-22.62L256 142.86l-45.25 45.25L256 233.37l45.25-45.25zm-90.5 135.76L256 369.14l45.26-45.26L256 278.63l-45.25 45.25zM256 0C114.62 0 0 114.62 0 256s114.62 256 256 256 256-114.62 256-256S397.38 0 256 0zm186.68 295.6l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-28.29-28.29-45.25 45.25 33.94 33.94 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-33.94-33.94-45.26 45.26 28.29 28.29c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0L256 414.39l-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l28.29-28.29-45.25-45.26-33.94 33.94 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 33.94-33.94-45.25-45.25-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0L69.32 295.6c-3.12-3.12-3.12-8.19 0-11.31L97.61 256l-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l28.29 28.29 45.25-45.26-33.94-33.94-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 33.94 33.94 45.26-45.25-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0L256 97.61l28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-28.29 28.29 45.26 45.25 33.94-33.94-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-33.94 33.94 45.25 45.26 28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31L414.39 256l28.29 28.28a8.015 8.015 0 0 1 0 11.32zM278.63 256l45.26 45.25L369.14 256l-45.25-45.26L278.63 256z"] };
  3790. var faSubscript = { prefix: 'fas', iconName: 'subscript', icon: [512, 512, [], "f12c", "M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"] };
  3791. var faSubway = { prefix: 'fas', iconName: 'subway', icon: [448, 512, [], "f239", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3792. var faSuitcase = { prefix: 'fas', iconName: 'suitcase', icon: [512, 512, [], "f0f2", "M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"] };
  3793. var faSuitcaseRolling = { prefix: 'fas', iconName: 'suitcase-rolling', icon: [384, 512, [], "f5c1", "M336 160H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h16v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h128v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h16c26.51 0 48-21.49 48-48V208c0-26.51-21.49-48-48-48zm-16 216c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zM144 48h96v80h48V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v80h48V48z"] };
  3794. var faSun = { prefix: 'fas', iconName: 'sun', icon: [512, 512, [], "f185", "M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"] };
  3795. var faSuperscript = { prefix: 'fas', iconName: 'superscript', icon: [512, 512, [], "f12b", "M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"] };
  3796. var faSurprise = { prefix: 'fas', iconName: 'surprise', icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3797. var faSwatchbook = { prefix: 'fas', iconName: 'swatchbook', icon: [511, 512, [], "f5c3", "M479.06 320H372.29L186.15 506.51c-2.06 2.07-4.49 3.58-6.67 5.49h299.58c17.64 0 31.94-14.33 31.94-32V352c0-17.67-14.3-32-31.94-32zm-44.5-152.9l-90.33-90.51c-12.47-12.5-32.69-12.5-45.17 0l-75.5 75.65V416c0 2.96-.67 5.73-.87 8.64l211.87-212.28c12.47-12.5 12.47-32.77 0-45.26zM191.62 32c0-17.67-14.3-32-31.94-32H31.94C14.3 0 0 14.33 0 32v384c0 53.02 42.9 96 95.81 96s95.81-42.98 95.81-96V32zM95.81 440c-13.23 0-23.95-10.75-23.95-24 0-13.26 10.73-24 23.95-24s23.95 10.74 23.95 24c.01 13.25-10.72 24-23.95 24zm31.94-184H63.88v-64h63.88v64zm0-128H63.88V64h63.88v64z"] };
  3798. var faSwimmer = { prefix: 'fas', iconName: 'swimmer', icon: [640, 512, [], "f5c4", "M189.61 310.58c3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c16.02-14.77 34.5-22.58 53.46-22.58h16.3c18.96 0 37.45 7.81 53.46 22.58 3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c14.86-13.71 31.88-21.12 49.39-22.16l-112.84-80.6 18-12.86c3.64-2.58 8.28-3.52 12.62-2.61l100.35 21.53c25.91 5.53 51.44-10.97 57-36.88 5.55-25.92-10.95-51.44-36.88-57L437.68 98.47c-30.73-6.58-63.02.12-88.56 18.38l-80.02 57.17c-10.38 7.39-19.36 16.44-26.72 26.94L173.75 299c5.47 3.23 10.82 6.93 15.86 11.58zM624 352h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 343.58 442.04 352 416 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 343.58 250.04 352 224 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 343.58 58.04 352 32 352H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-512-96c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z"] };
  3799. var faSwimmingPool = { prefix: 'fas', iconName: 'swimming-pool', icon: [640, 512, [], "f5c5", "M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"] };
  3800. var faSynagogue = { prefix: 'fas', iconName: 'synagogue', icon: [640, 512, [], "f69b", "M70 196.51L6.67 268.29A26.643 26.643 0 0 0 0 285.93V512h128V239.58l-38-43.07c-5.31-6.01-14.69-6.01-20 0zm563.33 71.78L570 196.51c-5.31-6.02-14.69-6.02-20 0l-38 43.07V512h128V285.93c0-6.5-2.37-12.77-6.67-17.64zM339.99 7.01c-11.69-9.35-28.29-9.35-39.98 0l-128 102.4A32.005 32.005 0 0 0 160 134.4V512h96v-92.57c0-31.88 21.78-61.43 53.25-66.55C349.34 346.35 384 377.13 384 416v96h96V134.4c0-9.72-4.42-18.92-12.01-24.99l-128-102.4zm52.07 215.55c1.98 3.15-.29 7.24-4 7.24h-38.94L324 269.79c-1.85 2.95-6.15 2.95-8 0l-25.12-39.98h-38.94c-3.72 0-5.98-4.09-4-7.24l19.2-30.56-19.2-30.56c-1.98-3.15.29-7.24 4-7.24h38.94l25.12-40c1.85-2.95 6.15-2.95 8 0l25.12 39.98h38.95c3.71 0 5.98 4.09 4 7.24L372.87 192l19.19 30.56z"] };
  3801. var faSync = { prefix: 'fas', iconName: 'sync', icon: [512, 512, [], "f021", "M440.935 12.574l3.966 82.766C399.416 41.904 331.674 8 256 8 134.813 8 33.933 94.924 12.296 209.824 10.908 217.193 16.604 224 24.103 224h49.084c5.57 0 10.377-3.842 11.676-9.259C103.407 137.408 172.931 80 256 80c60.893 0 114.512 30.856 146.104 77.801l-101.53-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12h-47.411c-6.853 0-12.315 5.729-11.987 12.574zM256 432c-60.895 0-114.517-30.858-146.109-77.805l101.868 4.871c6.845.327 12.573-5.134 12.573-11.986v-47.412c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12V500c0 6.627 5.373 12 12 12h47.385c6.863 0 12.328-5.745 11.985-12.599l-4.129-82.575C112.725 470.166 180.405 504 256 504c121.187 0 222.067-86.924 243.704-201.824 1.388-7.369-4.308-14.176-11.807-14.176h-49.084c-5.57 0-10.377 3.842-11.676 9.259C408.593 374.592 339.069 432 256 432z"] };
  3802. var faSyncAlt = { prefix: 'fas', iconName: 'sync-alt', icon: [512, 512, [], "f2f1", "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"] };
  3803. var faSyringe = { prefix: 'fas', iconName: 'syringe', icon: [512, 512, [], "f48e", "M201.5 174.8l55.7 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-55.7-55.8-45.3 45.3 55.8 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L111 265.2l-26.4 26.4c-17.3 17.3-25.6 41.1-23 65.4l7.1 63.6L2.3 487c-3.1 3.1-3.1 8.2 0 11.3l11.3 11.3c3.1 3.1 8.2 3.1 11.3 0l66.3-66.3 63.6 7.1c23.9 2.6 47.9-5.4 65.4-23l181.9-181.9-135.7-135.7-64.9 65zm308.2-93.3L430.5 2.3c-3.1-3.1-8.2-3.1-11.3 0l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l28.3 28.3-45.3 45.3-56.6-56.6-17-17c-3.1-3.1-8.2-3.1-11.3 0l-33.9 33.9c-3.1 3.1-3.1 8.2 0 11.3l17 17L424.8 223l17 17c3.1 3.1 8.2 3.1 11.3 0l33.9-34c3.1-3.1 3.1-8.2 0-11.3l-73.5-73.5 45.3-45.3 28.3 28.3c3.1 3.1 8.2 3.1 11.3 0l11.3-11.3c3.1-3.2 3.1-8.2 0-11.4z"] };
  3804. var faTable = { prefix: 'fas', iconName: 'table', icon: [512, 512, [], "f0ce", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"] };
  3805. var faTableTennis = { prefix: 'fas', iconName: 'table-tennis', icon: [512, 512, [], "f45d", "M496.2 296.5C527.7 218.7 512 126.2 449 63.1 365.1-21 229-21 145.1 63.1l-56 56.1 211.5 211.5c46.1-62.1 131.5-77.4 195.6-34.2zm-217.9 79.7L57.9 155.9c-27.3 45.3-21.7 105 17.3 144.1l34.5 34.6L6.7 424c-8.6 7.5-9.1 20.7-1 28.8l53.4 53.5c8 8.1 21.2 7.6 28.7-1L177.1 402l35.7 35.7c19.7 19.7 44.6 30.5 70.3 33.3-7.1-17-11-35.6-11-55.1-.1-13.8 2.5-27 6.2-39.7zM416 320c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"] };
  3806. var faTablet = { prefix: 'fas', iconName: 'tablet', icon: [448, 512, [], "f10a", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3807. var faTabletAlt = { prefix: 'fas', iconName: 'tablet-alt', icon: [448, 512, [], "f3fa", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"] };
  3808. var faTablets = { prefix: 'fas', iconName: 'tablets', icon: [640, 512, [], "f490", "M160 192C78.9 192 12.5 250.5.1 326.7c-.8 4.8 3.3 9.3 8.3 9.3h303.3c5 0 9.1-4.5 8.3-9.3C307.5 250.5 241.1 192 160 192zm151.6 176H8.4c-5 0-9.1 4.5-8.3 9.3C12.5 453.5 78.9 512 160 512s147.5-58.5 159.9-134.7c.8-4.8-3.3-9.3-8.3-9.3zM593.4 46.6c-56.5-56.5-144.2-61.4-206.9-16-4 2.9-4.3 8.9-.8 12.3L597 254.3c3.5 3.5 9.5 3.2 12.3-.8 45.5-62.7 40.6-150.4-15.9-206.9zM363 65.7c-3.5-3.5-9.5-3.2-12.3.8-45.4 62.7-40.5 150.4 15.9 206.9 56.5 56.5 144.2 61.4 206.9 15.9 4-2.9 4.3-8.9.8-12.3L363 65.7z"] };
  3809. var faTachometerAlt = { prefix: 'fas', iconName: 'tachometer-alt', icon: [576, 512, [], "f3fd", "M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3810. var faTag = { prefix: 'fas', iconName: 'tag', icon: [512, 512, [], "f02b", "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3811. var faTags = { prefix: 'fas', iconName: 'tags', icon: [640, 512, [], "f02c", "M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"] };
  3812. var faTape = { prefix: 'fas', iconName: 'tape', icon: [640, 512, [], "f4db", "M224 192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm400 224H380.6c41.5-40.7 67.4-97.3 67.4-160 0-123.7-100.3-224-224-224S0 132.3 0 256s100.3 224 224 224h400c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400-64c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"] };
  3813. var faTasks = { prefix: 'fas', iconName: 'tasks', icon: [512, 512, [], "f0ae", "M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"] };
  3814. var faTaxi = { prefix: 'fas', iconName: 'taxi', icon: [512, 512, [], "f1ba", "M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3815. var faTeeth = { prefix: 'fas', iconName: 'teeth', icon: [640, 512, [], "f62e", "M544 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96zM160 368c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm128 128c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64z"] };
  3816. var faTeethOpen = { prefix: 'fas', iconName: 'teeth-open', icon: [640, 512, [], "f62f", "M544 0H96C42.98 0 0 42.98 0 96v64c0 35.35 28.66 64 64 64h512c35.34 0 64-28.65 64-64V96c0-53.02-42.98-96-96-96zM160 176c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm128 0c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm0 144H64c-35.34 0-64 28.65-64 64v32c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96v-32c0-35.35-28.66-64-64-64zm-416 80c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32zm144-8c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm144 0c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm128 8c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32z"] };
  3817. var faTerminal = { prefix: 'fas', iconName: 'terminal', icon: [640, 512, [], "f120", "M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"] };
  3818. var faTextHeight = { prefix: 'fas', iconName: 'text-height', icon: [576, 512, [], "f034", "M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"] };
  3819. var faTextWidth = { prefix: 'fas', iconName: 'text-width', icon: [448, 512, [], "f035", "M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"] };
  3820. var faTh = { prefix: 'fas', iconName: 'th', icon: [512, 512, [], "f00a", "M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"] };
  3821. var faThLarge = { prefix: 'fas', iconName: 'th-large', icon: [512, 512, [], "f009", "M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"] };
  3822. var faThList = { prefix: 'fas', iconName: 'th-list', icon: [512, 512, [], "f00b", "M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"] };
  3823. var faTheaterMasks = { prefix: 'fas', iconName: 'theater-masks', icon: [640, 512, [], "f630", "M206.86 245.15c-35.88 10.45-59.95 41.2-57.53 74.1 11.4-12.72 28.81-23.7 49.9-30.92l7.63-43.18zM95.81 295L64.08 115.49c-.29-1.62.28-2.62.24-2.65 57.76-32.06 123.12-49.01 189.01-49.01 1.61 0 3.23.17 4.85.19 13.95-13.47 31.73-22.83 51.59-26 18.89-3.02 38.05-4.55 57.18-5.32-9.99-13.95-24.48-24.23-41.77-27C301.27 1.89 277.24 0 253.32 0 176.66 0 101.02 19.42 33.2 57.06 9.03 70.48-3.92 98.48 1.05 126.58l31.73 179.51c14.23 80.52 136.33 142.08 204.45 142.08 3.59 0 6.75-.46 10.01-.8-13.52-17.08-28.94-40.48-39.5-67.58-47.61-12.98-106.06-51.62-111.93-84.79zm97.55-137.46c-.73-4.12-2.23-7.87-4.07-11.4-8.25 8.91-20.67 15.75-35.32 18.32-14.65 2.58-28.67.4-39.48-5.17-.52 3.94-.64 7.98.09 12.1 3.84 21.7 24.58 36.19 46.34 32.37 21.75-3.82 36.28-24.52 32.44-46.22zM606.8 120.9c-88.98-49.38-191.43-67.41-291.98-51.35-27.31 4.36-49.08 26.26-54.04 54.36l-31.73 179.51c-15.39 87.05 95.28 196.27 158.31 207.35 63.03 11.09 204.47-53.79 219.86-140.84l31.73-179.51c4.97-28.11-7.98-56.11-32.15-69.52zm-273.24 96.8c3.84-21.7 24.58-36.19 46.34-32.36 21.76 3.83 36.28 24.52 32.45 46.22-.73 4.12-2.23 7.87-4.07 11.4-8.25-8.91-20.67-15.75-35.32-18.32-14.65-2.58-28.67-.4-39.48 5.17-.53-3.95-.65-7.99.08-12.11zm70.47 198.76c-55.68-9.79-93.52-59.27-89.04-112.9 20.6 25.54 56.21 46.17 99.49 53.78 43.28 7.61 83.82.37 111.93-16.6-14.18 51.94-66.71 85.51-122.38 75.72zm130.3-151.34c-8.25-8.91-20.68-15.75-35.33-18.32-14.65-2.58-28.67-.4-39.48 5.17-.52-3.94-.64-7.98.09-12.1 3.84-21.7 24.58-36.19 46.34-32.37 21.75 3.83 36.28 24.52 32.45 46.22-.73 4.13-2.23 7.88-4.07 11.4z"] };
  3824. var faThermometer = { prefix: 'fas', iconName: 'thermometer', icon: [512, 512, [], "f491", "M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"] };
  3825. var faThermometerEmpty = { prefix: 'fas', iconName: 'thermometer-empty', icon: [256, 512, [], "f2cb", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3826. var faThermometerFull = { prefix: 'fas', iconName: 'thermometer-full', icon: [256, 512, [], "f2c7", "M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"] };
  3827. var faThermometerHalf = { prefix: 'fas', iconName: 'thermometer-half', icon: [256, 512, [], "f2c9", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3828. var faThermometerQuarter = { prefix: 'fas', iconName: 'thermometer-quarter', icon: [256, 512, [], "f2ca", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3829. var faThermometerThreeQuarters = { prefix: 'fas', iconName: 'thermometer-three-quarters', icon: [256, 512, [], "f2c8", "M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3830. var faThumbsDown = { prefix: 'fas', iconName: 'thumbs-down', icon: [512, 512, [], "f165", "M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"] };
  3831. var faThumbsUp = { prefix: 'fas', iconName: 'thumbs-up', icon: [512, 512, [], "f164", "M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"] };
  3832. var faThumbtack = { prefix: 'fas', iconName: 'thumbtack', icon: [384, 512, [], "f08d", "M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"] };
  3833. var faTicketAlt = { prefix: 'fas', iconName: 'ticket-alt', icon: [576, 512, [], "f3ff", "M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"] };
  3834. var faTimes = { prefix: 'fas', iconName: 'times', icon: [352, 512, [], "f00d", "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"] };
  3835. var faTimesCircle = { prefix: 'fas', iconName: 'times-circle', icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"] };
  3836. var faTint = { prefix: 'fas', iconName: 'tint', icon: [352, 512, [], "f043", "M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3837. var faTintSlash = { prefix: 'fas', iconName: 'tint-slash', icon: [640, 512, [], "f5c7", "M633.82 458.1L494.97 350.78c.52-5.57 1.03-11.16 1.03-16.87 0-111.76-99.79-153.34-146.78-311.82-7.94-28.78-49.44-30.12-58.44 0-15.52 52.34-36.87 91.96-58.49 125.68L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM144 333.91C144 432.35 222.72 512 320 512c44.71 0 85.37-16.96 116.4-44.7L162.72 255.78c-11.41 23.5-18.72 48.35-18.72 78.13z"] };
  3838. var faTired = { prefix: 'fas', iconName: 'tired', icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 288c51.9 0 115.3 43.8 123.2 106.7 1.7 13.6-8 24.6-17.7 20.4-25.9-11.1-64.4-17.4-105.5-17.4s-79.6 6.3-105.5 17.4c-9.8 4.2-19.4-7-17.7-20.4C132.7 331.8 196.1 288 248 288z"] };
  3839. var faToggleOff = { prefix: 'fas', iconName: 'toggle-off', icon: [576, 512, [], "f204", "M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"] };
  3840. var faToggleOn = { prefix: 'fas', iconName: 'toggle-on', icon: [576, 512, [], "f205", "M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"] };
  3841. var faToiletPaper = { prefix: 'fas', iconName: 'toilet-paper', icon: [576, 512, [], "f71e", "M128 0C74.98 0 32 85.96 32 192v172.07c0 41.12-9.8 62.77-31.17 126.87C-2.62 501.3 5.09 512 16.01 512h280.92c13.77 0 26-8.81 30.36-21.88 12.83-38.48 24.71-72.4 24.71-126.05V192c0-83.6 23.67-153.52 60.44-192H128zM96 224c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM480 0c-53.02 0-96 85.96-96 192s42.98 192 96 192 96-85.96 96-192S533.02 0 480 0zm0 256c-17.67 0-32-28.65-32-64s14.33-64 32-64 32 28.65 32 64-14.33 64-32 64z"] };
  3842. var faToolbox = { prefix: 'fas', iconName: 'toolbox', icon: [512, 512, [], "f552", "M502.63 214.63l-45.25-45.25c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V320h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-82.75c0-8.48-3.37-16.62-9.37-22.62zM320 160H192V96h128v64zm64 208c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H192v16c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H0v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96H384v16z"] };
  3843. var faTooth = { prefix: 'fas', iconName: 'tooth', icon: [448, 512, [], "f5c9", "M443.98 96.25c-11.01-45.22-47.11-82.06-92.01-93.72-32.19-8.36-63 5.1-89.14 24.33-3.25 2.39-6.96 3.73-10.5 5.48l28.32 18.21c7.42 4.77 9.58 14.67 4.8 22.11-4.46 6.95-14.27 9.86-22.11 4.8L162.83 12.84c-20.7-10.85-43.38-16.4-66.81-10.31-44.9 11.67-81 48.5-92.01 93.72-10.13 41.62-.42 80.81 21.5 110.43 23.36 31.57 32.68 68.66 36.29 107.35 4.4 47.16 10.33 94.16 20.94 140.32l7.8 33.95c3.19 13.87 15.49 23.7 29.67 23.7 13.97 0 26.15-9.55 29.54-23.16l34.47-138.42c4.56-18.32 20.96-31.16 39.76-31.16s35.2 12.85 39.76 31.16l34.47 138.42c3.39 13.61 15.57 23.16 29.54 23.16 14.18 0 26.48-9.83 29.67-23.7l7.8-33.95c10.61-46.15 16.53-93.16 20.94-140.32 3.61-38.7 12.93-75.78 36.29-107.35 21.95-29.61 31.66-68.8 21.53-110.43z"] };
  3844. var faTorah = { prefix: 'fas', iconName: 'torah', icon: [448, 512, [], "f6a0", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM139.11 141.21c-2.77-4.41.4-10.14 5.6-10.14h53.08c.9 0 1.73-.46 2.21-1.22l34.4-54.76c2.6-4.13 8.61-4.13 11.21 0l34.4 54.76a2.61 2.61 0 0 0 2.21 1.22h53.08c5.2 0 8.37 5.73 5.6 10.14L314.01 184l26.88 42.79c2.77 4.4-.4 10.13-5.6 10.13h-53.08c-.9 0-1.73.46-2.21 1.22l-34.4 54.76c-2.6 4.13-8.61 4.13-11.21 0L200 238.15a2.61 2.61 0 0 0-2.21-1.22h-53.08c-5.2 0-8.37-5.73-5.6-10.13l26.88-42.8-26.88-42.79zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3845. var faToriiGate = { prefix: 'fas', iconName: 'torii-gate', icon: [512, 512, [], "f6a1", "M376.45 32h-240.9A303.17 303.17 0 0 1 0 0v96c0 17.67 14.33 32 32 32h32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h256v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h48c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-48v-64h32c17.67 0 32-14.33 32-32V0a303.17 303.17 0 0 1-135.55 32zM128 128h96v64h-96v-64zm256 64h-96v-64h96v64z"] };
  3846. var faTractor = { prefix: 'fas', iconName: 'tractor', icon: [640, 512, [], "f722", "M528 336c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 112c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24-10.77 24-24 24zm80-288h-64v-40.2c0-14.12 4.7-27.76 13.15-38.84 4.42-5.8 3.55-14.06-1.32-19.49L534.2 37.3c-6.66-7.45-18.32-6.92-24.7.78C490.58 60.9 480 89.81 480 119.8V160H377.67L321.58 29.14A47.914 47.914 0 0 0 277.45 0H144c-26.47 0-48 21.53-48 48v146.52c-8.63-6.73-20.96-6.46-28.89 1.47L36 227.1c-8.59 8.59-8.59 22.52 0 31.11l5.06 5.06c-4.99 9.26-8.96 18.82-11.91 28.72H22c-12.15 0-22 9.85-22 22v44c0 12.15 9.85 22 22 22h7.14c2.96 9.91 6.92 19.46 11.91 28.73l-5.06 5.06c-8.59 8.59-8.59 22.52 0 31.11L67.1 476c8.59 8.59 22.52 8.59 31.11 0l5.06-5.06c9.26 4.99 18.82 8.96 28.72 11.91V490c0 12.15 9.85 22 22 22h44c12.15 0 22-9.85 22-22v-7.14c9.9-2.95 19.46-6.92 28.72-11.91l5.06 5.06c8.59 8.59 22.52 8.59 31.11 0l31.11-31.11c8.59-8.59 8.59-22.52 0-31.11l-5.06-5.06c4.99-9.26 8.96-18.82 11.91-28.72H330c12.15 0 22-9.85 22-22v-6h80.54c21.91-28.99 56.32-48 95.46-48 18.64 0 36.07 4.61 51.8 12.2l50.82-50.82c6-6 9.37-14.14 9.37-22.63V192c.01-17.67-14.32-32-31.99-32zM176 416c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm22-256h-38V64h106.89l41.15 96H198z"] };
  3847. var faTrademark = { prefix: 'fas', iconName: 'trademark', icon: [640, 512, [], "f25c", "M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"] };
  3848. var faTrafficLight = { prefix: 'fas', iconName: 'traffic-light', icon: [384, 512, [], "f637", "M384 192h-64v-37.88c37.2-13.22 64-48.38 64-90.12h-64V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v32H0c0 41.74 26.8 76.9 64 90.12V192H0c0 41.74 26.8 76.9 64 90.12V320H0c0 42.84 28.25 78.69 66.99 91.05C79.42 468.72 130.6 512 192 512s112.58-43.28 125.01-100.95C355.75 398.69 384 362.84 384 320h-64v-37.88c37.2-13.22 64-48.38 64-90.12zM192 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3849. var faTrain = { prefix: 'fas', iconName: 'train', icon: [448, 512, [], "f238", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"] };
  3850. var faTransgender = { prefix: 'fas', iconName: 'transgender', icon: [384, 512, [], "f224", "M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3851. var faTransgenderAlt = { prefix: 'fas', iconName: 'transgender-alt', icon: [480, 512, [], "f225", "M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3852. var faTrash = { prefix: 'fas', iconName: 'trash', icon: [448, 512, [], "f1f8", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"] };
  3853. var faTrashAlt = { prefix: 'fas', iconName: 'trash-alt', icon: [448, 512, [], "f2ed", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm416 56v324c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V140c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12zm-272 68c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208z"] };
  3854. var faTree = { prefix: 'fas', iconName: 'tree', icon: [384, 512, [], "f1bb", "M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"] };
  3855. var faTrophy = { prefix: 'fas', iconName: 'trophy', icon: [576, 512, [], "f091", "M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"] };
  3856. var faTruck = { prefix: 'fas', iconName: 'truck', icon: [640, 512, [], "f0d1", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3857. var faTruckLoading = { prefix: 'fas', iconName: 'truck-loading', icon: [640, 512, [], "f4de", "M50.2 375.6c2.3 8.5 11.1 13.6 19.6 11.3l216.4-58c8.5-2.3 13.6-11.1 11.3-19.6l-49.7-185.5c-2.3-8.5-11.1-13.6-19.6-11.3L151 133.3l24.8 92.7-61.8 16.5-24.8-92.7-77.3 20.7C3.4 172.8-1.7 181.6.6 190.1l49.6 185.5zM384 0c-17.7 0-32 14.3-32 32v323.6L5.9 450c-4.3 1.2-6.8 5.6-5.6 9.8l12.6 46.3c1.2 4.3 5.6 6.8 9.8 5.6l393.7-107.4C418.8 464.1 467.6 512 528 512c61.9 0 112-50.1 112-112V0H384zm144 448c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3858. var faTruckMonster = { prefix: 'fas', iconName: 'truck-monster', icon: [640, 512, [], "f63b", "M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17.67 0-32 14.33-32 32v96H48c-8.84 0-16 7.16-16 16v80H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16.72c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64h65.45c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-336-96V64h81.24l51.2 64H288zm304 224h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 512 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67A110.85 110.85 0 0 0 373.2 352H368c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32c-.02-8.84-7.18-16-16.02-16zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-208-80h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 192 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0L58.18 304.8c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67a110.85 110.85 0 0 0-8.65 20.89H48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32C288 359.16 280.84 352 272 352zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3859. var faTruckMoving = { prefix: 'fas', iconName: 'truck-moving', icon: [640, 512, [], "f4df", "M621.3 237.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7H480V64c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v336c0 44.2 35.8 80 80 80 26.3 0 49.4-12.9 64-32.4 14.6 19.6 37.7 32.4 64 32.4 44.2 0 80-35.8 80-80 0-5.5-.6-10.8-1.6-16h163.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H624c8.8 0 16-7.2 16-16v-85.5c0-17-6.7-33.2-18.7-45.2zM80 432c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm128 0c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm272-224h37.5c4.3 0 8.3 1.7 11.3 4.7l43.3 43.3H480v-48zm48 224c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z"] };
  3860. var faTruckPickup = { prefix: 'fas', iconName: 'truck-pickup', icon: [640, 512, [], "f63c", "M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3861. var faTshirt = { prefix: 'fas', iconName: 'tshirt', icon: [640, 512, [], "f553", "M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"] };
  3862. var faTty = { prefix: 'fas', iconName: 'tty', icon: [512, 512, [], "f1e4", "M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3863. var faTv = { prefix: 'fas', iconName: 'tv', icon: [640, 512, [], "f26c", "M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"] };
  3864. var faUmbrella = { prefix: 'fas', iconName: 'umbrella', icon: [576, 512, [], "f0e9", "M557.011 267.631c-51.432-45.217-107.572-43.698-158.567 30.731-5.298 7.861-14.906 7.165-19.736 0-2.483-3.624-32.218-60.808-90.708-60.808-45.766 0-70.542 31.378-90.709 60.808-4.829 7.165-14.436 7.861-19.734 0-50.904-74.285-106.613-76.406-158.567-30.731-10.21 8.264-20.912-1.109-18.696-9.481C32.146 134.573 158.516 64.612 288.001 64.612c128.793 0 256.546 69.961 287.706 193.538 2.206 8.322-8.426 17.793-18.696 9.481zM256 261.001V416c0 17.645-14.355 32-32 32s-32-14.355-32-32c0-17.673-14.327-32-32-32s-32 14.327-32 32c0 52.935 43.065 96 96 96s96-43.065 96-96V261.288c-21.836-10.806-45.425-9.737-64-.287zm64-211.007V32c0-17.673-14.327-32-32-32s-32 14.327-32 32v17.987a372.105 372.105 0 0 1 64 .007z"] };
  3865. var faUmbrellaBeach = { prefix: 'fas', iconName: 'umbrella-beach', icon: [640, 512, [], "f5ca", "M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"] };
  3866. var faUnderline = { prefix: 'fas', iconName: 'underline', icon: [448, 512, [], "f0cd", "M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"] };
  3867. var faUndo = { prefix: 'fas', iconName: 'undo', icon: [512, 512, [], "f0e2", "M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"] };
  3868. var faUndoAlt = { prefix: 'fas', iconName: 'undo-alt', icon: [512, 512, [], "f2ea", "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"] };
  3869. var faUniversalAccess = { prefix: 'fas', iconName: 'universal-access', icon: [512, 512, [], "f29a", "M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"] };
  3870. var faUniversity = { prefix: 'fas', iconName: 'university', icon: [512, 512, [], "f19c", "M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"] };
  3871. var faUnlink = { prefix: 'fas', iconName: 'unlink', icon: [512, 512, [], "f127", "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"] };
  3872. var faUnlock = { prefix: 'fas', iconName: 'unlock', icon: [448, 512, [], "f09c", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3873. var faUnlockAlt = { prefix: 'fas', iconName: 'unlock-alt', icon: [448, 512, [], "f13e", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"] };
  3874. var faUpload = { prefix: 'fas', iconName: 'upload', icon: [512, 512, [], "f093", "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3875. var faUser = { prefix: 'fas', iconName: 'user', icon: [448, 512, [], "f007", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3876. var faUserAlt = { prefix: 'fas', iconName: 'user-alt', icon: [512, 512, [], "f406", "M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"] };
  3877. var faUserAltSlash = { prefix: 'fas', iconName: 'user-alt-slash', icon: [640, 512, [], "f4fa", "M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"] };
  3878. var faUserAstronaut = { prefix: 'fas', iconName: 'user-astronaut', icon: [448, 512, [], "f4fb", "M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"] };
  3879. var faUserCheck = { prefix: 'fas', iconName: 'user-check', icon: [640, 512, [], "f4fc", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"] };
  3880. var faUserCircle = { prefix: 'fas', iconName: 'user-circle', icon: [496, 512, [], "f2bd", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"] };
  3881. var faUserClock = { prefix: 'fas', iconName: 'user-clock', icon: [640, 512, [], "f4fd", "M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"] };
  3882. var faUserCog = { prefix: 'fas', iconName: 'user-cog', icon: [640, 512, [], "f4fe", "M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"] };
  3883. var faUserEdit = { prefix: 'fas', iconName: 'user-edit', icon: [640, 512, [], "f4ff", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"] };
  3884. var faUserFriends = { prefix: 'fas', iconName: 'user-friends', icon: [640, 512, [], "f500", "M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"] };
  3885. var faUserGraduate = { prefix: 'fas', iconName: 'user-graduate', icon: [448, 512, [], "f501", "M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"] };
  3886. var faUserInjured = { prefix: 'fas', iconName: 'user-injured', icon: [448, 512, [], "f728", "M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"] };
  3887. var faUserLock = { prefix: 'fas', iconName: 'user-lock', icon: [640, 512, [], "f502", "M320 320c0-11.1 3.1-21.4 8.1-30.5-4.8-.5-9.5-1.5-14.5-1.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h280.9c-5.5-9.5-8.9-20.3-8.9-32V320zm-96-64c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm384 32h-32v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80v48h-32c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V320c0-17.7-14.3-32-32-32zm-80 0h-64v-48c0-17.6 14.4-32 32-32s32 14.4 32 32v48z"] };
  3888. var faUserMd = { prefix: 'fas', iconName: 'user-md', icon: [448, 512, [], "f0f0", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"] };
  3889. var faUserMinus = { prefix: 'fas', iconName: 'user-minus', icon: [640, 512, [], "f503", "M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3890. var faUserNinja = { prefix: 'fas', iconName: 'user-ninja', icon: [448, 512, [], "f504", "M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"] };
  3891. var faUserPlus = { prefix: 'fas', iconName: 'user-plus', icon: [640, 512, [], "f234", "M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3892. var faUserSecret = { prefix: 'fas', iconName: 'user-secret', icon: [448, 512, [], "f21b", "M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"] };
  3893. var faUserShield = { prefix: 'fas', iconName: 'user-shield', icon: [640, 512, [], "f505", "M622.3 271.1l-115.2-45c-4.1-1.6-12.6-3.7-22.2 0l-115.2 45c-10.7 4.2-17.7 14-17.7 24.9 0 111.6 68.7 188.8 132.9 213.9 9.6 3.7 18 1.6 22.2 0C558.4 489.9 640 420.5 640 296c0-10.9-7-20.7-17.7-24.9zM496 462.4V273.3l95.5 37.3c-5.6 87.1-60.9 135.4-95.5 151.8zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 40c0-2.5.8-4.8 1.1-7.2-2.5-.1-4.9-.8-7.5-.8h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c6.8 0 13.3-1.5 19.2-4-54-42.9-99.2-116.7-99.2-212z"] };
  3894. var faUserSlash = { prefix: 'fas', iconName: 'user-slash', icon: [640, 512, [], "f506", "M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h350.2L207.4 290.3C144.2 301.3 96 356 96 422.4z"] };
  3895. var faUserTag = { prefix: 'fas', iconName: 'user-tag', icon: [640, 512, [], "f507", "M630.6 364.9l-90.3-90.2c-12-12-28.3-18.7-45.3-18.7h-79.3c-17.7 0-32 14.3-32 32v79.2c0 17 6.7 33.2 18.7 45.2l90.3 90.2c12.5 12.5 32.8 12.5 45.3 0l92.5-92.5c12.6-12.5 12.6-32.7.1-45.2zm-182.8-21c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24c0 13.2-10.7 24-24 24zm-223.8-88c70.7 0 128-57.3 128-128C352 57.3 294.7 0 224 0S96 57.3 96 128c0 70.6 57.3 127.9 128 127.9zm127.8 111.2V294c-12.2-3.6-24.9-6.2-38.2-6.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 287.9 0 348.1 0 422.3v41.6c0 26.5 21.5 48 48 48h352c15.5 0 29.1-7.5 37.9-18.9l-58-58c-18.1-18.1-28.1-42.2-28.1-67.9z"] };
  3896. var faUserTie = { prefix: 'fas', iconName: 'user-tie', icon: [448, 512, [], "f508", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"] };
  3897. var faUserTimes = { prefix: 'fas', iconName: 'user-times', icon: [640, 512, [], "f235", "M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3898. var faUsers = { prefix: 'fas', iconName: 'users', icon: [640, 512, [], "f0c0", "M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3899. var faUsersCog = { prefix: 'fas', iconName: 'users-cog', icon: [640, 512, [], "f509", "M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3900. var faUtensilSpoon = { prefix: 'fas', iconName: 'utensil-spoon', icon: [512, 512, [], "f2e5", "M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"] };
  3901. var faUtensils = { prefix: 'fas', iconName: 'utensils', icon: [416, 512, [], "f2e7", "M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"] };
  3902. var faVectorSquare = { prefix: 'fas', iconName: 'vector-square', icon: [512, 512, [], "f5cb", "M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"] };
  3903. var faVenus = { prefix: 'fas', iconName: 'venus', icon: [288, 512, [], "f221", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3904. var faVenusDouble = { prefix: 'fas', iconName: 'venus-double', icon: [512, 512, [], "f226", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"] };
  3905. var faVenusMars = { prefix: 'fas', iconName: 'venus-mars', icon: [576, 512, [], "f228", "M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3906. var faVial = { prefix: 'fas', iconName: 'vial', icon: [480, 512, [], "f492", "M477.7 186.1L309.5 18.3c-3.1-3.1-8.2-3.1-11.3 0l-34 33.9c-3.1 3.1-3.1 8.2 0 11.3l11.2 11.1L33 316.5c-38.8 38.7-45.1 102-9.4 143.5 20.6 24 49.5 36 78.4 35.9 26.4 0 52.8-10 72.9-30.1l246.3-245.7 11.2 11.1c3.1 3.1 8.2 3.1 11.3 0l34-33.9c3.1-3 3.1-8.1 0-11.2zM318 256H161l148-147.7 78.5 78.3L318 256z"] };
  3907. var faVials = { prefix: 'fas', iconName: 'vials', icon: [640, 512, [], "f493", "M72 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64zm480 384H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM360 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64z"] };
  3908. var faVideo = { prefix: 'fas', iconName: 'video', icon: [576, 512, [], "f03d", "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"] };
  3909. var faVideoSlash = { prefix: 'fas', iconName: 'video-slash', icon: [640, 512, [], "f4e2", "M633.8 458.1l-55-42.5c15.4-1.4 29.2-13.7 29.2-31.1v-257c0-25.5-29.1-40.4-50.4-25.8L448 177.3v137.2l-32-24.7v-178c0-26.4-21.4-47.8-47.8-47.8H123.9L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4L42.7 82 416 370.6l178.5 138c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.5-6.9 4.2-17-2.8-22.4zM32 400.2c0 26.4 21.4 47.8 47.8 47.8h288.4c11.2 0 21.4-4 29.6-10.5L32 154.7v245.5z"] };
  3910. var faVihara = { prefix: 'fas', iconName: 'vihara', icon: [640, 512, [], "f6a7", "M632.88 400.71L544 352v-64l55.16-17.69c11.79-5.9 11.79-22.72 0-28.62L480 192v-64l27.31-16.3c7.72-7.72 5.61-20.74-4.16-25.62L320 0 136.85 86.07c-9.77 4.88-11.88 17.9-4.16 25.62L160 128v64L40.84 241.69c-11.79 5.9-11.79 22.72 0 28.62L96 288v64L7.12 400.71c-5.42 3.62-7.7 9.63-7 15.29.62 5.01 3.57 9.75 8.72 12.33L64 448v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48l55.15-19.67c5.16-2.58 8.1-7.32 8.72-12.33.71-5.67-1.57-11.68-6.99-15.29zM224 128h192v64H224v-64zm-64 224v-64h320v64H160z"] };
  3911. var faVolleyballBall = { prefix: 'fas', iconName: 'volleyball-ball', icon: [495, 512, [], "f45f", "M223.3 243.4c-.9-37-8.6-72.8-22.7-105.7-90.8 42.4-157.5 122.4-180.3 216.8 13.4 30.8 32.9 58.3 56.9 81.1 22.7-79.2 74.2-147.8 146.1-192.2zM186.4 109c-15-26.4-34.5-50.1-57.4-70.7C38 88.1-15.8 191.2 4 300.5c33.4-83.1 98.4-152 182.4-191.5zM374 274.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5 57.3 59.3 91 138.2 93.5 222.7 32.5 17.7 67.3 29 102.9 33.2zm-124.7 9.5c-31.6 19.3-58.7 43.9-80.2 72.6 82 57.3 184.5 75.1 277.5 47.8 19.7-26.4 34.2-56.8 42.2-89.9-26.6 6.6-53.7 10.4-80.9 10.4-54.6-.1-108.9-14.1-158.6-40.9zM151 383.3c-15.2 26-25.7 54.4-32.1 84.2 37.6 23 81.7 36.5 129.1 36.5 61 0 116.7-22.1 159.9-58.6C295 461.5 204.6 420.6 151 383.3zM331.3 22.7c55.3 70.4 82.5 161.2 74.6 253.6 30.3.2 60.5-4.8 89.7-14.2 0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"] };
  3912. var faVolumeDown = { prefix: 'fas', iconName: 'volume-down', icon: [384, 512, [], "f027", "M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"] };
  3913. var faVolumeMute = { prefix: 'fas', iconName: 'volume-mute', icon: [512, 512, [], "f6a9", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"] };
  3914. var faVolumeOff = { prefix: 'fas', iconName: 'volume-off', icon: [257, 512, [], "f026", "M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"] };
  3915. var faVolumeUp = { prefix: 'fas', iconName: 'volume-up', icon: [576, 512, [], "f028", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"] };
  3916. var faVrCardboard = { prefix: 'fas', iconName: 'vr-cardboard', icon: [640, 512, [], "f729", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h160.22c25.19 0 48.03-14.77 58.36-37.74l27.74-61.64C286.21 331.08 302.35 320 320 320s33.79 11.08 41.68 28.62l27.74 61.64C399.75 433.23 422.6 448 447.78 448H608c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM160 304c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64zm320 0c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64z"] };
  3917. var faWalking = { prefix: 'fas', iconName: 'walking', icon: [320, 512, [], "f554", "M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z"] };
  3918. var faWallet = { prefix: 'fas', iconName: 'wallet', icon: [512, 512, [], "f555", "M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3919. var faWarehouse = { prefix: 'fas', iconName: 'warehouse', icon: [640, 512, [], "f494", "M504 352H136.4c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 96H136.1c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0-192H136.6c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm106.5-139L338.4 3.7a48.15 48.15 0 0 0-36.9 0L29.5 117C11.7 124.5 0 141.9 0 161.3V504c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V256c0-17.6 14.6-32 32.6-32h382.8c18 0 32.6 14.4 32.6 32v248c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V161.3c0-19.4-11.7-36.8-29.5-44.3z"] };
  3920. var faWeight = { prefix: 'fas', iconName: 'weight', icon: [512, 512, [], "f496", "M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"] };
  3921. var faWeightHanging = { prefix: 'fas', iconName: 'weight-hanging', icon: [512, 512, [], "f5cd", "M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  3922. var faWheelchair = { prefix: 'fas', iconName: 'wheelchair', icon: [512, 512, [], "f193", "M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"] };
  3923. var faWifi = { prefix: 'fas', iconName: 'wifi', icon: [640, 512, [], "f1eb", "M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"] };
  3924. var faWind = { prefix: 'fas', iconName: 'wind', icon: [512, 512, [], "f72e", "M156.66 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h142.19c15.95 0 30.77 10.85 33.37 26.58C194.86 366.6 179.42 384 160 384c-14.11 0-26.13-9.19-30.37-21.9-2.11-6.31-8.6-10.1-15.25-10.1H81.63c-9.8 0-17.73 8.81-15.86 18.43C74.39 414.58 113.37 448 160 448c57.09 0 102.7-50.09 95.19-108.63-6.21-48.39-49.74-83.37-98.53-83.37zM16 224h336c59.7 0 106.83-54.76 93.83-116.69-7.61-36.23-36.91-65.53-73.14-73.14-55.44-11.64-105.13 24.91-114.93 75.53-1.86 9.57 6.09 18.3 15.84 18.3h32.8c6.65 0 13.14-3.79 15.25-10.1C325.88 105.19 337.89 96 352 96c19.42 0 34.86 17.39 31.55 37.41-2.6 15.73-17.42 26.59-33.37 26.59H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16zm384 32H243.68c19.34 16.57 33.19 38.79 39.77 64H400c26.47 0 48 21.53 48 48s-21.53 48-48 48c-17.86 0-33.33-9.86-41.56-24.38-2.85-5.03-8.69-7.62-14.47-7.62h-33.82c-10.91 0-18.96 10.81-15.35 21.1 17.77 50.6 70.54 84.75 129.41 72.35 41.22-8.69 75.1-41.65 84.67-82.68C525.98 321.46 470.48 256 400 256z"] };
  3925. var faWindowClose = { prefix: 'fas', iconName: 'window-close', icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"] };
  3926. var faWindowMaximize = { prefix: 'fas', iconName: 'window-maximize', icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"] };
  3927. var faWindowMinimize = { prefix: 'fas', iconName: 'window-minimize', icon: [512, 512, [], "f2d1", "M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"] };
  3928. var faWindowRestore = { prefix: 'fas', iconName: 'window-restore', icon: [512, 512, [], "f2d2", "M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"] };
  3929. var faWineBottle = { prefix: 'fas', iconName: 'wine-bottle', icon: [512, 512, [], "f72f", "M507.31 72.57L439.43 4.69c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l-76.67 76.67c-46.58-19.7-102.4-10.73-140.37 27.23L18.75 312.23c-24.99 24.99-24.99 65.52 0 90.51l90.51 90.51c24.99 24.99 65.52 24.99 90.51 0l158.39-158.39c37.96-37.96 46.93-93.79 27.23-140.37l76.67-76.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.24-6.24 6.24-16.37-.01-22.62zM179.22 423.29l-90.51-90.51 122.04-122.04 90.51 90.51-122.04 122.04z"] };
  3930. var faWineGlass = { prefix: 'fas', iconName: 'wine-glass', icon: [288, 512, [], "f4e3", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"] };
  3931. var faWineGlassAlt = { prefix: 'fas', iconName: 'wine-glass-alt', icon: [288, 512, [], "f5ce", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"] };
  3932. var faWonSign = { prefix: 'fas', iconName: 'won-sign', icon: [576, 512, [], "f159", "M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"] };
  3933. var faWrench = { prefix: 'fas', iconName: 'wrench', icon: [512, 512, [], "f0ad", "M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3934. var faXRay = { prefix: 'fas', iconName: 'x-ray', icon: [640, 512, [], "f497", "M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"] };
  3935. var faYenSign = { prefix: 'fas', iconName: 'yen-sign', icon: [384, 512, [], "f157", "M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"] };
  3936. var faYinYang = { prefix: 'fas', iconName: 'yin-yang', icon: [496, 512, [], "f6ad", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3937. var _iconsCache = {
  3938. faAd: faAd,
  3939. faAddressBook: faAddressBook,
  3940. faAddressCard: faAddressCard,
  3941. faAdjust: faAdjust,
  3942. faAirFreshener: faAirFreshener,
  3943. faAlignCenter: faAlignCenter,
  3944. faAlignJustify: faAlignJustify,
  3945. faAlignLeft: faAlignLeft,
  3946. faAlignRight: faAlignRight,
  3947. faAllergies: faAllergies,
  3948. faAmbulance: faAmbulance,
  3949. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  3950. faAnchor: faAnchor,
  3951. faAngleDoubleDown: faAngleDoubleDown,
  3952. faAngleDoubleLeft: faAngleDoubleLeft,
  3953. faAngleDoubleRight: faAngleDoubleRight,
  3954. faAngleDoubleUp: faAngleDoubleUp,
  3955. faAngleDown: faAngleDown,
  3956. faAngleLeft: faAngleLeft,
  3957. faAngleRight: faAngleRight,
  3958. faAngleUp: faAngleUp,
  3959. faAngry: faAngry,
  3960. faAnkh: faAnkh,
  3961. faAppleAlt: faAppleAlt,
  3962. faArchive: faArchive,
  3963. faArchway: faArchway,
  3964. faArrowAltCircleDown: faArrowAltCircleDown,
  3965. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3966. faArrowAltCircleRight: faArrowAltCircleRight,
  3967. faArrowAltCircleUp: faArrowAltCircleUp,
  3968. faArrowCircleDown: faArrowCircleDown,
  3969. faArrowCircleLeft: faArrowCircleLeft,
  3970. faArrowCircleRight: faArrowCircleRight,
  3971. faArrowCircleUp: faArrowCircleUp,
  3972. faArrowDown: faArrowDown,
  3973. faArrowLeft: faArrowLeft,
  3974. faArrowRight: faArrowRight,
  3975. faArrowUp: faArrowUp,
  3976. faArrowsAlt: faArrowsAlt,
  3977. faArrowsAltH: faArrowsAltH,
  3978. faArrowsAltV: faArrowsAltV,
  3979. faAssistiveListeningSystems: faAssistiveListeningSystems,
  3980. faAsterisk: faAsterisk,
  3981. faAt: faAt,
  3982. faAtlas: faAtlas,
  3983. faAtom: faAtom,
  3984. faAudioDescription: faAudioDescription,
  3985. faAward: faAward,
  3986. faBackspace: faBackspace,
  3987. faBackward: faBackward,
  3988. faBalanceScale: faBalanceScale,
  3989. faBan: faBan,
  3990. faBandAid: faBandAid,
  3991. faBarcode: faBarcode,
  3992. faBars: faBars,
  3993. faBaseballBall: faBaseballBall,
  3994. faBasketballBall: faBasketballBall,
  3995. faBath: faBath,
  3996. faBatteryEmpty: faBatteryEmpty,
  3997. faBatteryFull: faBatteryFull,
  3998. faBatteryHalf: faBatteryHalf,
  3999. faBatteryQuarter: faBatteryQuarter,
  4000. faBatteryThreeQuarters: faBatteryThreeQuarters,
  4001. faBed: faBed,
  4002. faBeer: faBeer,
  4003. faBell: faBell,
  4004. faBellSlash: faBellSlash,
  4005. faBezierCurve: faBezierCurve,
  4006. faBible: faBible,
  4007. faBicycle: faBicycle,
  4008. faBinoculars: faBinoculars,
  4009. faBirthdayCake: faBirthdayCake,
  4010. faBlender: faBlender,
  4011. faBlenderPhone: faBlenderPhone,
  4012. faBlind: faBlind,
  4013. faBold: faBold,
  4014. faBolt: faBolt,
  4015. faBomb: faBomb,
  4016. faBone: faBone,
  4017. faBong: faBong,
  4018. faBook: faBook,
  4019. faBookDead: faBookDead,
  4020. faBookOpen: faBookOpen,
  4021. faBookReader: faBookReader,
  4022. faBookmark: faBookmark,
  4023. faBowlingBall: faBowlingBall,
  4024. faBox: faBox,
  4025. faBoxOpen: faBoxOpen,
  4026. faBoxes: faBoxes,
  4027. faBraille: faBraille,
  4028. faBrain: faBrain,
  4029. faBriefcase: faBriefcase,
  4030. faBriefcaseMedical: faBriefcaseMedical,
  4031. faBroadcastTower: faBroadcastTower,
  4032. faBroom: faBroom,
  4033. faBrush: faBrush,
  4034. faBug: faBug,
  4035. faBuilding: faBuilding,
  4036. faBullhorn: faBullhorn,
  4037. faBullseye: faBullseye,
  4038. faBurn: faBurn,
  4039. faBus: faBus,
  4040. faBusAlt: faBusAlt,
  4041. faBusinessTime: faBusinessTime,
  4042. faCalculator: faCalculator,
  4043. faCalendar: faCalendar,
  4044. faCalendarAlt: faCalendarAlt,
  4045. faCalendarCheck: faCalendarCheck,
  4046. faCalendarMinus: faCalendarMinus,
  4047. faCalendarPlus: faCalendarPlus,
  4048. faCalendarTimes: faCalendarTimes,
  4049. faCamera: faCamera,
  4050. faCameraRetro: faCameraRetro,
  4051. faCampground: faCampground,
  4052. faCannabis: faCannabis,
  4053. faCapsules: faCapsules,
  4054. faCar: faCar,
  4055. faCarAlt: faCarAlt,
  4056. faCarBattery: faCarBattery,
  4057. faCarCrash: faCarCrash,
  4058. faCarSide: faCarSide,
  4059. faCaretDown: faCaretDown,
  4060. faCaretLeft: faCaretLeft,
  4061. faCaretRight: faCaretRight,
  4062. faCaretSquareDown: faCaretSquareDown,
  4063. faCaretSquareLeft: faCaretSquareLeft,
  4064. faCaretSquareRight: faCaretSquareRight,
  4065. faCaretSquareUp: faCaretSquareUp,
  4066. faCaretUp: faCaretUp,
  4067. faCartArrowDown: faCartArrowDown,
  4068. faCartPlus: faCartPlus,
  4069. faCat: faCat,
  4070. faCertificate: faCertificate,
  4071. faChair: faChair,
  4072. faChalkboard: faChalkboard,
  4073. faChalkboardTeacher: faChalkboardTeacher,
  4074. faChargingStation: faChargingStation,
  4075. faChartArea: faChartArea,
  4076. faChartBar: faChartBar,
  4077. faChartLine: faChartLine,
  4078. faChartPie: faChartPie,
  4079. faCheck: faCheck,
  4080. faCheckCircle: faCheckCircle,
  4081. faCheckDouble: faCheckDouble,
  4082. faCheckSquare: faCheckSquare,
  4083. faChess: faChess,
  4084. faChessBishop: faChessBishop,
  4085. faChessBoard: faChessBoard,
  4086. faChessKing: faChessKing,
  4087. faChessKnight: faChessKnight,
  4088. faChessPawn: faChessPawn,
  4089. faChessQueen: faChessQueen,
  4090. faChessRook: faChessRook,
  4091. faChevronCircleDown: faChevronCircleDown,
  4092. faChevronCircleLeft: faChevronCircleLeft,
  4093. faChevronCircleRight: faChevronCircleRight,
  4094. faChevronCircleUp: faChevronCircleUp,
  4095. faChevronDown: faChevronDown,
  4096. faChevronLeft: faChevronLeft,
  4097. faChevronRight: faChevronRight,
  4098. faChevronUp: faChevronUp,
  4099. faChild: faChild,
  4100. faChurch: faChurch,
  4101. faCircle: faCircle,
  4102. faCircleNotch: faCircleNotch,
  4103. faCity: faCity,
  4104. faClipboard: faClipboard,
  4105. faClipboardCheck: faClipboardCheck,
  4106. faClipboardList: faClipboardList,
  4107. faClock: faClock,
  4108. faClone: faClone,
  4109. faClosedCaptioning: faClosedCaptioning,
  4110. faCloud: faCloud,
  4111. faCloudDownloadAlt: faCloudDownloadAlt,
  4112. faCloudMoon: faCloudMoon,
  4113. faCloudSun: faCloudSun,
  4114. faCloudUploadAlt: faCloudUploadAlt,
  4115. faCocktail: faCocktail,
  4116. faCode: faCode,
  4117. faCodeBranch: faCodeBranch,
  4118. faCoffee: faCoffee,
  4119. faCog: faCog,
  4120. faCogs: faCogs,
  4121. faCoins: faCoins,
  4122. faColumns: faColumns,
  4123. faComment: faComment,
  4124. faCommentAlt: faCommentAlt,
  4125. faCommentDollar: faCommentDollar,
  4126. faCommentDots: faCommentDots,
  4127. faCommentSlash: faCommentSlash,
  4128. faComments: faComments,
  4129. faCommentsDollar: faCommentsDollar,
  4130. faCompactDisc: faCompactDisc,
  4131. faCompass: faCompass,
  4132. faCompress: faCompress,
  4133. faConciergeBell: faConciergeBell,
  4134. faCookie: faCookie,
  4135. faCookieBite: faCookieBite,
  4136. faCopy: faCopy,
  4137. faCopyright: faCopyright,
  4138. faCouch: faCouch,
  4139. faCreditCard: faCreditCard,
  4140. faCrop: faCrop,
  4141. faCropAlt: faCropAlt,
  4142. faCross: faCross,
  4143. faCrosshairs: faCrosshairs,
  4144. faCrow: faCrow,
  4145. faCrown: faCrown,
  4146. faCube: faCube,
  4147. faCubes: faCubes,
  4148. faCut: faCut,
  4149. faDatabase: faDatabase,
  4150. faDeaf: faDeaf,
  4151. faDesktop: faDesktop,
  4152. faDharmachakra: faDharmachakra,
  4153. faDiagnoses: faDiagnoses,
  4154. faDice: faDice,
  4155. faDiceD20: faDiceD20,
  4156. faDiceD6: faDiceD6,
  4157. faDiceFive: faDiceFive,
  4158. faDiceFour: faDiceFour,
  4159. faDiceOne: faDiceOne,
  4160. faDiceSix: faDiceSix,
  4161. faDiceThree: faDiceThree,
  4162. faDiceTwo: faDiceTwo,
  4163. faDigitalTachograph: faDigitalTachograph,
  4164. faDirections: faDirections,
  4165. faDivide: faDivide,
  4166. faDizzy: faDizzy,
  4167. faDna: faDna,
  4168. faDog: faDog,
  4169. faDollarSign: faDollarSign,
  4170. faDolly: faDolly,
  4171. faDollyFlatbed: faDollyFlatbed,
  4172. faDonate: faDonate,
  4173. faDoorClosed: faDoorClosed,
  4174. faDoorOpen: faDoorOpen,
  4175. faDotCircle: faDotCircle,
  4176. faDove: faDove,
  4177. faDownload: faDownload,
  4178. faDraftingCompass: faDraftingCompass,
  4179. faDragon: faDragon,
  4180. faDrawPolygon: faDrawPolygon,
  4181. faDrum: faDrum,
  4182. faDrumSteelpan: faDrumSteelpan,
  4183. faDrumstickBite: faDrumstickBite,
  4184. faDumbbell: faDumbbell,
  4185. faDungeon: faDungeon,
  4186. faEdit: faEdit,
  4187. faEject: faEject,
  4188. faEllipsisH: faEllipsisH,
  4189. faEllipsisV: faEllipsisV,
  4190. faEnvelope: faEnvelope,
  4191. faEnvelopeOpen: faEnvelopeOpen,
  4192. faEnvelopeOpenText: faEnvelopeOpenText,
  4193. faEnvelopeSquare: faEnvelopeSquare,
  4194. faEquals: faEquals,
  4195. faEraser: faEraser,
  4196. faEuroSign: faEuroSign,
  4197. faExchangeAlt: faExchangeAlt,
  4198. faExclamation: faExclamation,
  4199. faExclamationCircle: faExclamationCircle,
  4200. faExclamationTriangle: faExclamationTriangle,
  4201. faExpand: faExpand,
  4202. faExpandArrowsAlt: faExpandArrowsAlt,
  4203. faExternalLinkAlt: faExternalLinkAlt,
  4204. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  4205. faEye: faEye,
  4206. faEyeDropper: faEyeDropper,
  4207. faEyeSlash: faEyeSlash,
  4208. faFastBackward: faFastBackward,
  4209. faFastForward: faFastForward,
  4210. faFax: faFax,
  4211. faFeather: faFeather,
  4212. faFeatherAlt: faFeatherAlt,
  4213. faFemale: faFemale,
  4214. faFighterJet: faFighterJet,
  4215. faFile: faFile,
  4216. faFileAlt: faFileAlt,
  4217. faFileArchive: faFileArchive,
  4218. faFileAudio: faFileAudio,
  4219. faFileCode: faFileCode,
  4220. faFileContract: faFileContract,
  4221. faFileCsv: faFileCsv,
  4222. faFileDownload: faFileDownload,
  4223. faFileExcel: faFileExcel,
  4224. faFileExport: faFileExport,
  4225. faFileImage: faFileImage,
  4226. faFileImport: faFileImport,
  4227. faFileInvoice: faFileInvoice,
  4228. faFileInvoiceDollar: faFileInvoiceDollar,
  4229. faFileMedical: faFileMedical,
  4230. faFileMedicalAlt: faFileMedicalAlt,
  4231. faFilePdf: faFilePdf,
  4232. faFilePowerpoint: faFilePowerpoint,
  4233. faFilePrescription: faFilePrescription,
  4234. faFileSignature: faFileSignature,
  4235. faFileUpload: faFileUpload,
  4236. faFileVideo: faFileVideo,
  4237. faFileWord: faFileWord,
  4238. faFill: faFill,
  4239. faFillDrip: faFillDrip,
  4240. faFilm: faFilm,
  4241. faFilter: faFilter,
  4242. faFingerprint: faFingerprint,
  4243. faFire: faFire,
  4244. faFireExtinguisher: faFireExtinguisher,
  4245. faFirstAid: faFirstAid,
  4246. faFish: faFish,
  4247. faFistRaised: faFistRaised,
  4248. faFlag: faFlag,
  4249. faFlagCheckered: faFlagCheckered,
  4250. faFlask: faFlask,
  4251. faFlushed: faFlushed,
  4252. faFolder: faFolder,
  4253. faFolderMinus: faFolderMinus,
  4254. faFolderOpen: faFolderOpen,
  4255. faFolderPlus: faFolderPlus,
  4256. faFont: faFont,
  4257. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  4258. faFootballBall: faFootballBall,
  4259. faForward: faForward,
  4260. faFrog: faFrog,
  4261. faFrown: faFrown,
  4262. faFrownOpen: faFrownOpen,
  4263. faFunnelDollar: faFunnelDollar,
  4264. faFutbol: faFutbol,
  4265. faGamepad: faGamepad,
  4266. faGasPump: faGasPump,
  4267. faGavel: faGavel,
  4268. faGem: faGem,
  4269. faGenderless: faGenderless,
  4270. faGhost: faGhost,
  4271. faGift: faGift,
  4272. faGlassMartini: faGlassMartini,
  4273. faGlassMartiniAlt: faGlassMartiniAlt,
  4274. faGlasses: faGlasses,
  4275. faGlobe: faGlobe,
  4276. faGlobeAfrica: faGlobeAfrica,
  4277. faGlobeAmericas: faGlobeAmericas,
  4278. faGlobeAsia: faGlobeAsia,
  4279. faGolfBall: faGolfBall,
  4280. faGopuram: faGopuram,
  4281. faGraduationCap: faGraduationCap,
  4282. faGreaterThan: faGreaterThan,
  4283. faGreaterThanEqual: faGreaterThanEqual,
  4284. faGrimace: faGrimace,
  4285. faGrin: faGrin,
  4286. faGrinAlt: faGrinAlt,
  4287. faGrinBeam: faGrinBeam,
  4288. faGrinBeamSweat: faGrinBeamSweat,
  4289. faGrinHearts: faGrinHearts,
  4290. faGrinSquint: faGrinSquint,
  4291. faGrinSquintTears: faGrinSquintTears,
  4292. faGrinStars: faGrinStars,
  4293. faGrinTears: faGrinTears,
  4294. faGrinTongue: faGrinTongue,
  4295. faGrinTongueSquint: faGrinTongueSquint,
  4296. faGrinTongueWink: faGrinTongueWink,
  4297. faGrinWink: faGrinWink,
  4298. faGripHorizontal: faGripHorizontal,
  4299. faGripVertical: faGripVertical,
  4300. faHSquare: faHSquare,
  4301. faHammer: faHammer,
  4302. faHamsa: faHamsa,
  4303. faHandHolding: faHandHolding,
  4304. faHandHoldingHeart: faHandHoldingHeart,
  4305. faHandHoldingUsd: faHandHoldingUsd,
  4306. faHandLizard: faHandLizard,
  4307. faHandPaper: faHandPaper,
  4308. faHandPeace: faHandPeace,
  4309. faHandPointDown: faHandPointDown,
  4310. faHandPointLeft: faHandPointLeft,
  4311. faHandPointRight: faHandPointRight,
  4312. faHandPointUp: faHandPointUp,
  4313. faHandPointer: faHandPointer,
  4314. faHandRock: faHandRock,
  4315. faHandScissors: faHandScissors,
  4316. faHandSpock: faHandSpock,
  4317. faHands: faHands,
  4318. faHandsHelping: faHandsHelping,
  4319. faHandshake: faHandshake,
  4320. faHanukiah: faHanukiah,
  4321. faHashtag: faHashtag,
  4322. faHatWizard: faHatWizard,
  4323. faHaykal: faHaykal,
  4324. faHdd: faHdd,
  4325. faHeading: faHeading,
  4326. faHeadphones: faHeadphones,
  4327. faHeadphonesAlt: faHeadphonesAlt,
  4328. faHeadset: faHeadset,
  4329. faHeart: faHeart,
  4330. faHeartbeat: faHeartbeat,
  4331. faHelicopter: faHelicopter,
  4332. faHighlighter: faHighlighter,
  4333. faHiking: faHiking,
  4334. faHippo: faHippo,
  4335. faHistory: faHistory,
  4336. faHockeyPuck: faHockeyPuck,
  4337. faHome: faHome,
  4338. faHorse: faHorse,
  4339. faHospital: faHospital,
  4340. faHospitalAlt: faHospitalAlt,
  4341. faHospitalSymbol: faHospitalSymbol,
  4342. faHotTub: faHotTub,
  4343. faHotel: faHotel,
  4344. faHourglass: faHourglass,
  4345. faHourglassEnd: faHourglassEnd,
  4346. faHourglassHalf: faHourglassHalf,
  4347. faHourglassStart: faHourglassStart,
  4348. faHouseDamage: faHouseDamage,
  4349. faHryvnia: faHryvnia,
  4350. faICursor: faICursor,
  4351. faIdBadge: faIdBadge,
  4352. faIdCard: faIdCard,
  4353. faIdCardAlt: faIdCardAlt,
  4354. faImage: faImage,
  4355. faImages: faImages,
  4356. faInbox: faInbox,
  4357. faIndent: faIndent,
  4358. faIndustry: faIndustry,
  4359. faInfinity: faInfinity,
  4360. faInfo: faInfo,
  4361. faInfoCircle: faInfoCircle,
  4362. faItalic: faItalic,
  4363. faJedi: faJedi,
  4364. faJoint: faJoint,
  4365. faJournalWhills: faJournalWhills,
  4366. faKaaba: faKaaba,
  4367. faKey: faKey,
  4368. faKeyboard: faKeyboard,
  4369. faKhanda: faKhanda,
  4370. faKiss: faKiss,
  4371. faKissBeam: faKissBeam,
  4372. faKissWinkHeart: faKissWinkHeart,
  4373. faKiwiBird: faKiwiBird,
  4374. faLandmark: faLandmark,
  4375. faLanguage: faLanguage,
  4376. faLaptop: faLaptop,
  4377. faLaptopCode: faLaptopCode,
  4378. faLaugh: faLaugh,
  4379. faLaughBeam: faLaughBeam,
  4380. faLaughSquint: faLaughSquint,
  4381. faLaughWink: faLaughWink,
  4382. faLayerGroup: faLayerGroup,
  4383. faLeaf: faLeaf,
  4384. faLemon: faLemon,
  4385. faLessThan: faLessThan,
  4386. faLessThanEqual: faLessThanEqual,
  4387. faLevelDownAlt: faLevelDownAlt,
  4388. faLevelUpAlt: faLevelUpAlt,
  4389. faLifeRing: faLifeRing,
  4390. faLightbulb: faLightbulb,
  4391. faLink: faLink,
  4392. faLiraSign: faLiraSign,
  4393. faList: faList,
  4394. faListAlt: faListAlt,
  4395. faListOl: faListOl,
  4396. faListUl: faListUl,
  4397. faLocationArrow: faLocationArrow,
  4398. faLock: faLock,
  4399. faLockOpen: faLockOpen,
  4400. faLongArrowAltDown: faLongArrowAltDown,
  4401. faLongArrowAltLeft: faLongArrowAltLeft,
  4402. faLongArrowAltRight: faLongArrowAltRight,
  4403. faLongArrowAltUp: faLongArrowAltUp,
  4404. faLowVision: faLowVision,
  4405. faLuggageCart: faLuggageCart,
  4406. faMagic: faMagic,
  4407. faMagnet: faMagnet,
  4408. faMailBulk: faMailBulk,
  4409. faMale: faMale,
  4410. faMap: faMap,
  4411. faMapMarked: faMapMarked,
  4412. faMapMarkedAlt: faMapMarkedAlt,
  4413. faMapMarker: faMapMarker,
  4414. faMapMarkerAlt: faMapMarkerAlt,
  4415. faMapPin: faMapPin,
  4416. faMapSigns: faMapSigns,
  4417. faMarker: faMarker,
  4418. faMars: faMars,
  4419. faMarsDouble: faMarsDouble,
  4420. faMarsStroke: faMarsStroke,
  4421. faMarsStrokeH: faMarsStrokeH,
  4422. faMarsStrokeV: faMarsStrokeV,
  4423. faMask: faMask,
  4424. faMedal: faMedal,
  4425. faMedkit: faMedkit,
  4426. faMeh: faMeh,
  4427. faMehBlank: faMehBlank,
  4428. faMehRollingEyes: faMehRollingEyes,
  4429. faMemory: faMemory,
  4430. faMenorah: faMenorah,
  4431. faMercury: faMercury,
  4432. faMicrochip: faMicrochip,
  4433. faMicrophone: faMicrophone,
  4434. faMicrophoneAlt: faMicrophoneAlt,
  4435. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4436. faMicrophoneSlash: faMicrophoneSlash,
  4437. faMicroscope: faMicroscope,
  4438. faMinus: faMinus,
  4439. faMinusCircle: faMinusCircle,
  4440. faMinusSquare: faMinusSquare,
  4441. faMobile: faMobile,
  4442. faMobileAlt: faMobileAlt,
  4443. faMoneyBill: faMoneyBill,
  4444. faMoneyBillAlt: faMoneyBillAlt,
  4445. faMoneyBillWave: faMoneyBillWave,
  4446. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4447. faMoneyCheck: faMoneyCheck,
  4448. faMoneyCheckAlt: faMoneyCheckAlt,
  4449. faMonument: faMonument,
  4450. faMoon: faMoon,
  4451. faMortarPestle: faMortarPestle,
  4452. faMosque: faMosque,
  4453. faMotorcycle: faMotorcycle,
  4454. faMountain: faMountain,
  4455. faMousePointer: faMousePointer,
  4456. faMusic: faMusic,
  4457. faNetworkWired: faNetworkWired,
  4458. faNeuter: faNeuter,
  4459. faNewspaper: faNewspaper,
  4460. faNotEqual: faNotEqual,
  4461. faNotesMedical: faNotesMedical,
  4462. faObjectGroup: faObjectGroup,
  4463. faObjectUngroup: faObjectUngroup,
  4464. faOilCan: faOilCan,
  4465. faOm: faOm,
  4466. faOtter: faOtter,
  4467. faOutdent: faOutdent,
  4468. faPaintBrush: faPaintBrush,
  4469. faPaintRoller: faPaintRoller,
  4470. faPalette: faPalette,
  4471. faPallet: faPallet,
  4472. faPaperPlane: faPaperPlane,
  4473. faPaperclip: faPaperclip,
  4474. faParachuteBox: faParachuteBox,
  4475. faParagraph: faParagraph,
  4476. faParking: faParking,
  4477. faPassport: faPassport,
  4478. faPastafarianism: faPastafarianism,
  4479. faPaste: faPaste,
  4480. faPause: faPause,
  4481. faPauseCircle: faPauseCircle,
  4482. faPaw: faPaw,
  4483. faPeace: faPeace,
  4484. faPen: faPen,
  4485. faPenAlt: faPenAlt,
  4486. faPenFancy: faPenFancy,
  4487. faPenNib: faPenNib,
  4488. faPenSquare: faPenSquare,
  4489. faPencilAlt: faPencilAlt,
  4490. faPencilRuler: faPencilRuler,
  4491. faPeopleCarry: faPeopleCarry,
  4492. faPercent: faPercent,
  4493. faPercentage: faPercentage,
  4494. faPhone: faPhone,
  4495. faPhoneSlash: faPhoneSlash,
  4496. faPhoneSquare: faPhoneSquare,
  4497. faPhoneVolume: faPhoneVolume,
  4498. faPiggyBank: faPiggyBank,
  4499. faPills: faPills,
  4500. faPlaceOfWorship: faPlaceOfWorship,
  4501. faPlane: faPlane,
  4502. faPlaneArrival: faPlaneArrival,
  4503. faPlaneDeparture: faPlaneDeparture,
  4504. faPlay: faPlay,
  4505. faPlayCircle: faPlayCircle,
  4506. faPlug: faPlug,
  4507. faPlus: faPlus,
  4508. faPlusCircle: faPlusCircle,
  4509. faPlusSquare: faPlusSquare,
  4510. faPodcast: faPodcast,
  4511. faPoll: faPoll,
  4512. faPollH: faPollH,
  4513. faPoo: faPoo,
  4514. faPoop: faPoop,
  4515. faPortrait: faPortrait,
  4516. faPoundSign: faPoundSign,
  4517. faPowerOff: faPowerOff,
  4518. faPray: faPray,
  4519. faPrayingHands: faPrayingHands,
  4520. faPrescription: faPrescription,
  4521. faPrescriptionBottle: faPrescriptionBottle,
  4522. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4523. faPrint: faPrint,
  4524. faProcedures: faProcedures,
  4525. faProjectDiagram: faProjectDiagram,
  4526. faPuzzlePiece: faPuzzlePiece,
  4527. faQrcode: faQrcode,
  4528. faQuestion: faQuestion,
  4529. faQuestionCircle: faQuestionCircle,
  4530. faQuidditch: faQuidditch,
  4531. faQuoteLeft: faQuoteLeft,
  4532. faQuoteRight: faQuoteRight,
  4533. faQuran: faQuran,
  4534. faRandom: faRandom,
  4535. faReceipt: faReceipt,
  4536. faRecycle: faRecycle,
  4537. faRedo: faRedo,
  4538. faRedoAlt: faRedoAlt,
  4539. faRegistered: faRegistered,
  4540. faReply: faReply,
  4541. faReplyAll: faReplyAll,
  4542. faRetweet: faRetweet,
  4543. faRibbon: faRibbon,
  4544. faRing: faRing,
  4545. faRoad: faRoad,
  4546. faRobot: faRobot,
  4547. faRocket: faRocket,
  4548. faRoute: faRoute,
  4549. faRss: faRss,
  4550. faRssSquare: faRssSquare,
  4551. faRubleSign: faRubleSign,
  4552. faRuler: faRuler,
  4553. faRulerCombined: faRulerCombined,
  4554. faRulerHorizontal: faRulerHorizontal,
  4555. faRulerVertical: faRulerVertical,
  4556. faRunning: faRunning,
  4557. faRupeeSign: faRupeeSign,
  4558. faSadCry: faSadCry,
  4559. faSadTear: faSadTear,
  4560. faSave: faSave,
  4561. faSchool: faSchool,
  4562. faScrewdriver: faScrewdriver,
  4563. faScroll: faScroll,
  4564. faSearch: faSearch,
  4565. faSearchDollar: faSearchDollar,
  4566. faSearchLocation: faSearchLocation,
  4567. faSearchMinus: faSearchMinus,
  4568. faSearchPlus: faSearchPlus,
  4569. faSeedling: faSeedling,
  4570. faServer: faServer,
  4571. faShapes: faShapes,
  4572. faShare: faShare,
  4573. faShareAlt: faShareAlt,
  4574. faShareAltSquare: faShareAltSquare,
  4575. faShareSquare: faShareSquare,
  4576. faShekelSign: faShekelSign,
  4577. faShieldAlt: faShieldAlt,
  4578. faShip: faShip,
  4579. faShippingFast: faShippingFast,
  4580. faShoePrints: faShoePrints,
  4581. faShoppingBag: faShoppingBag,
  4582. faShoppingBasket: faShoppingBasket,
  4583. faShoppingCart: faShoppingCart,
  4584. faShower: faShower,
  4585. faShuttleVan: faShuttleVan,
  4586. faSign: faSign,
  4587. faSignInAlt: faSignInAlt,
  4588. faSignLanguage: faSignLanguage,
  4589. faSignOutAlt: faSignOutAlt,
  4590. faSignal: faSignal,
  4591. faSignature: faSignature,
  4592. faSitemap: faSitemap,
  4593. faSkull: faSkull,
  4594. faSkullCrossbones: faSkullCrossbones,
  4595. faSlash: faSlash,
  4596. faSlidersH: faSlidersH,
  4597. faSmile: faSmile,
  4598. faSmileBeam: faSmileBeam,
  4599. faSmileWink: faSmileWink,
  4600. faSmoking: faSmoking,
  4601. faSmokingBan: faSmokingBan,
  4602. faSnowflake: faSnowflake,
  4603. faSocks: faSocks,
  4604. faSolarPanel: faSolarPanel,
  4605. faSort: faSort,
  4606. faSortAlphaDown: faSortAlphaDown,
  4607. faSortAlphaUp: faSortAlphaUp,
  4608. faSortAmountDown: faSortAmountDown,
  4609. faSortAmountUp: faSortAmountUp,
  4610. faSortDown: faSortDown,
  4611. faSortNumericDown: faSortNumericDown,
  4612. faSortNumericUp: faSortNumericUp,
  4613. faSortUp: faSortUp,
  4614. faSpa: faSpa,
  4615. faSpaceShuttle: faSpaceShuttle,
  4616. faSpider: faSpider,
  4617. faSpinner: faSpinner,
  4618. faSplotch: faSplotch,
  4619. faSprayCan: faSprayCan,
  4620. faSquare: faSquare,
  4621. faSquareFull: faSquareFull,
  4622. faSquareRootAlt: faSquareRootAlt,
  4623. faStamp: faStamp,
  4624. faStar: faStar,
  4625. faStarAndCrescent: faStarAndCrescent,
  4626. faStarHalf: faStarHalf,
  4627. faStarHalfAlt: faStarHalfAlt,
  4628. faStarOfDavid: faStarOfDavid,
  4629. faStarOfLife: faStarOfLife,
  4630. faStepBackward: faStepBackward,
  4631. faStepForward: faStepForward,
  4632. faStethoscope: faStethoscope,
  4633. faStickyNote: faStickyNote,
  4634. faStop: faStop,
  4635. faStopCircle: faStopCircle,
  4636. faStopwatch: faStopwatch,
  4637. faStore: faStore,
  4638. faStoreAlt: faStoreAlt,
  4639. faStream: faStream,
  4640. faStreetView: faStreetView,
  4641. faStrikethrough: faStrikethrough,
  4642. faStroopwafel: faStroopwafel,
  4643. faSubscript: faSubscript,
  4644. faSubway: faSubway,
  4645. faSuitcase: faSuitcase,
  4646. faSuitcaseRolling: faSuitcaseRolling,
  4647. faSun: faSun,
  4648. faSuperscript: faSuperscript,
  4649. faSurprise: faSurprise,
  4650. faSwatchbook: faSwatchbook,
  4651. faSwimmer: faSwimmer,
  4652. faSwimmingPool: faSwimmingPool,
  4653. faSynagogue: faSynagogue,
  4654. faSync: faSync,
  4655. faSyncAlt: faSyncAlt,
  4656. faSyringe: faSyringe,
  4657. faTable: faTable,
  4658. faTableTennis: faTableTennis,
  4659. faTablet: faTablet,
  4660. faTabletAlt: faTabletAlt,
  4661. faTablets: faTablets,
  4662. faTachometerAlt: faTachometerAlt,
  4663. faTag: faTag,
  4664. faTags: faTags,
  4665. faTape: faTape,
  4666. faTasks: faTasks,
  4667. faTaxi: faTaxi,
  4668. faTeeth: faTeeth,
  4669. faTeethOpen: faTeethOpen,
  4670. faTerminal: faTerminal,
  4671. faTextHeight: faTextHeight,
  4672. faTextWidth: faTextWidth,
  4673. faTh: faTh,
  4674. faThLarge: faThLarge,
  4675. faThList: faThList,
  4676. faTheaterMasks: faTheaterMasks,
  4677. faThermometer: faThermometer,
  4678. faThermometerEmpty: faThermometerEmpty,
  4679. faThermometerFull: faThermometerFull,
  4680. faThermometerHalf: faThermometerHalf,
  4681. faThermometerQuarter: faThermometerQuarter,
  4682. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4683. faThumbsDown: faThumbsDown,
  4684. faThumbsUp: faThumbsUp,
  4685. faThumbtack: faThumbtack,
  4686. faTicketAlt: faTicketAlt,
  4687. faTimes: faTimes,
  4688. faTimesCircle: faTimesCircle,
  4689. faTint: faTint,
  4690. faTintSlash: faTintSlash,
  4691. faTired: faTired,
  4692. faToggleOff: faToggleOff,
  4693. faToggleOn: faToggleOn,
  4694. faToiletPaper: faToiletPaper,
  4695. faToolbox: faToolbox,
  4696. faTooth: faTooth,
  4697. faTorah: faTorah,
  4698. faToriiGate: faToriiGate,
  4699. faTractor: faTractor,
  4700. faTrademark: faTrademark,
  4701. faTrafficLight: faTrafficLight,
  4702. faTrain: faTrain,
  4703. faTransgender: faTransgender,
  4704. faTransgenderAlt: faTransgenderAlt,
  4705. faTrash: faTrash,
  4706. faTrashAlt: faTrashAlt,
  4707. faTree: faTree,
  4708. faTrophy: faTrophy,
  4709. faTruck: faTruck,
  4710. faTruckLoading: faTruckLoading,
  4711. faTruckMonster: faTruckMonster,
  4712. faTruckMoving: faTruckMoving,
  4713. faTruckPickup: faTruckPickup,
  4714. faTshirt: faTshirt,
  4715. faTty: faTty,
  4716. faTv: faTv,
  4717. faUmbrella: faUmbrella,
  4718. faUmbrellaBeach: faUmbrellaBeach,
  4719. faUnderline: faUnderline,
  4720. faUndo: faUndo,
  4721. faUndoAlt: faUndoAlt,
  4722. faUniversalAccess: faUniversalAccess,
  4723. faUniversity: faUniversity,
  4724. faUnlink: faUnlink,
  4725. faUnlock: faUnlock,
  4726. faUnlockAlt: faUnlockAlt,
  4727. faUpload: faUpload,
  4728. faUser: faUser,
  4729. faUserAlt: faUserAlt,
  4730. faUserAltSlash: faUserAltSlash,
  4731. faUserAstronaut: faUserAstronaut,
  4732. faUserCheck: faUserCheck,
  4733. faUserCircle: faUserCircle,
  4734. faUserClock: faUserClock,
  4735. faUserCog: faUserCog,
  4736. faUserEdit: faUserEdit,
  4737. faUserFriends: faUserFriends,
  4738. faUserGraduate: faUserGraduate,
  4739. faUserInjured: faUserInjured,
  4740. faUserLock: faUserLock,
  4741. faUserMd: faUserMd,
  4742. faUserMinus: faUserMinus,
  4743. faUserNinja: faUserNinja,
  4744. faUserPlus: faUserPlus,
  4745. faUserSecret: faUserSecret,
  4746. faUserShield: faUserShield,
  4747. faUserSlash: faUserSlash,
  4748. faUserTag: faUserTag,
  4749. faUserTie: faUserTie,
  4750. faUserTimes: faUserTimes,
  4751. faUsers: faUsers,
  4752. faUsersCog: faUsersCog,
  4753. faUtensilSpoon: faUtensilSpoon,
  4754. faUtensils: faUtensils,
  4755. faVectorSquare: faVectorSquare,
  4756. faVenus: faVenus,
  4757. faVenusDouble: faVenusDouble,
  4758. faVenusMars: faVenusMars,
  4759. faVial: faVial,
  4760. faVials: faVials,
  4761. faVideo: faVideo,
  4762. faVideoSlash: faVideoSlash,
  4763. faVihara: faVihara,
  4764. faVolleyballBall: faVolleyballBall,
  4765. faVolumeDown: faVolumeDown,
  4766. faVolumeMute: faVolumeMute,
  4767. faVolumeOff: faVolumeOff,
  4768. faVolumeUp: faVolumeUp,
  4769. faVrCardboard: faVrCardboard,
  4770. faWalking: faWalking,
  4771. faWallet: faWallet,
  4772. faWarehouse: faWarehouse,
  4773. faWeight: faWeight,
  4774. faWeightHanging: faWeightHanging,
  4775. faWheelchair: faWheelchair,
  4776. faWifi: faWifi,
  4777. faWind: faWind,
  4778. faWindowClose: faWindowClose,
  4779. faWindowMaximize: faWindowMaximize,
  4780. faWindowMinimize: faWindowMinimize,
  4781. faWindowRestore: faWindowRestore,
  4782. faWineBottle: faWineBottle,
  4783. faWineGlass: faWineGlass,
  4784. faWineGlassAlt: faWineGlassAlt,
  4785. faWonSign: faWonSign,
  4786. faWrench: faWrench,
  4787. faXRay: faXRay,
  4788. faYenSign: faYenSign,
  4789. faYinYang: faYinYang
  4790. };
  4791. /***/ }),
  4792. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4793. /*!***********************************************************************************!*\
  4794. !*** E:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4795. \***********************************************************************************/
  4796. /*! exports provided: FontAwesomeIcon */
  4797. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4798. "use strict";
  4799. __webpack_require__.r(__webpack_exports__);
  4800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4801. /* 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");
  4802. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4803. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4804. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4805. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4806. function _typeof(obj) {
  4807. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  4808. _typeof = function (obj) {
  4809. return typeof obj;
  4810. };
  4811. } else {
  4812. _typeof = function (obj) {
  4813. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  4814. };
  4815. }
  4816. return _typeof(obj);
  4817. }
  4818. function _defineProperty(obj, key, value) {
  4819. if (key in obj) {
  4820. Object.defineProperty(obj, key, {
  4821. value: value,
  4822. enumerable: true,
  4823. configurable: true,
  4824. writable: true
  4825. });
  4826. } else {
  4827. obj[key] = value;
  4828. }
  4829. return obj;
  4830. }
  4831. function _objectSpread(target) {
  4832. for (var i = 1; i < arguments.length; i++) {
  4833. var source = arguments[i] != null ? arguments[i] : {};
  4834. var ownKeys = Object.keys(source);
  4835. if (typeof Object.getOwnPropertySymbols === 'function') {
  4836. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  4837. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  4838. }));
  4839. }
  4840. ownKeys.forEach(function (key) {
  4841. _defineProperty(target, key, source[key]);
  4842. });
  4843. }
  4844. return target;
  4845. }
  4846. function _objectWithoutPropertiesLoose(source, excluded) {
  4847. if (source == null) return {};
  4848. var target = {};
  4849. var sourceKeys = Object.keys(source);
  4850. var key, i;
  4851. for (i = 0; i < sourceKeys.length; i++) {
  4852. key = sourceKeys[i];
  4853. if (excluded.indexOf(key) >= 0) continue;
  4854. target[key] = source[key];
  4855. }
  4856. return target;
  4857. }
  4858. function _objectWithoutProperties(source, excluded) {
  4859. if (source == null) return {};
  4860. var target = _objectWithoutPropertiesLoose(source, excluded);
  4861. var key, i;
  4862. if (Object.getOwnPropertySymbols) {
  4863. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  4864. for (i = 0; i < sourceSymbolKeys.length; i++) {
  4865. key = sourceSymbolKeys[i];
  4866. if (excluded.indexOf(key) >= 0) continue;
  4867. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  4868. target[key] = source[key];
  4869. }
  4870. }
  4871. return target;
  4872. }
  4873. function _toConsumableArray(arr) {
  4874. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  4875. }
  4876. function _arrayWithoutHoles(arr) {
  4877. if (Array.isArray(arr)) {
  4878. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  4879. return arr2;
  4880. }
  4881. }
  4882. function _iterableToArray(iter) {
  4883. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  4884. }
  4885. function _nonIterableSpread() {
  4886. throw new TypeError("Invalid attempt to spread non-iterable instance");
  4887. }
  4888. // Get CSS class list from a props object
  4889. function classList(props) {
  4890. var _classes;
  4891. var spin = props.spin,
  4892. pulse = props.pulse,
  4893. fixedWidth = props.fixedWidth,
  4894. inverse = props.inverse,
  4895. border = props.border,
  4896. listItem = props.listItem,
  4897. flip = props.flip,
  4898. size = props.size,
  4899. rotation = props.rotation,
  4900. pull = props.pull; // map of CSS class names to properties
  4901. var classes = (_classes = {
  4902. 'fa-spin': spin,
  4903. 'fa-pulse': pulse,
  4904. 'fa-fw': fixedWidth,
  4905. 'fa-inverse': inverse,
  4906. 'fa-border': border,
  4907. 'fa-li': listItem,
  4908. 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
  4909. 'fa-flip-vertical': flip === 'vertical' || flip === 'both'
  4910. }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined'), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined'), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined'), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object
  4911. // return an array of the keys where the value for the key is not null
  4912. return Object.keys(classes).map(function (key) {
  4913. return classes[key] ? key : null;
  4914. }).filter(function (key) {
  4915. return key;
  4916. });
  4917. }
  4918. // Camelize taken from humps
  4919. // humps is copyright © 2012+ Dom Christie
  4920. // Released under the MIT license.
  4921. // Performant way to determine if object coerces to a number
  4922. function _isNumerical(obj) {
  4923. obj = obj - 0; // eslint-disable-next-line no-self-compare
  4924. return obj === obj;
  4925. }
  4926. function camelize(string) {
  4927. if (_isNumerical(string)) {
  4928. return string;
  4929. } // eslint-disable-next-line no-useless-escape
  4930. string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
  4931. return chr ? chr.toUpperCase() : '';
  4932. }); // Ensure 1st char is always lowercase
  4933. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4934. }
  4935. function capitalize(val) {
  4936. return val.charAt(0).toUpperCase() + val.slice(1);
  4937. }
  4938. function styleToObject(style) {
  4939. return style.split(';').map(function (s) {
  4940. return s.trim();
  4941. }).filter(function (s) {
  4942. return s;
  4943. }).reduce(function (acc, pair) {
  4944. var i = pair.indexOf(':');
  4945. var prop = camelize(pair.slice(0, i));
  4946. var value = pair.slice(i + 1).trim();
  4947. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  4948. return acc;
  4949. }, {});
  4950. }
  4951. function convert(createElement, element) {
  4952. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4953. if (typeof element === 'string') {
  4954. return element;
  4955. }
  4956. var children = (element.children || []).map(function (child) {
  4957. return convert(createElement, child);
  4958. });
  4959. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  4960. var val = element.attributes[key];
  4961. switch (key) {
  4962. case 'class':
  4963. acc.attrs['className'] = val;
  4964. delete element.attributes['class'];
  4965. break;
  4966. case 'style':
  4967. acc.attrs['style'] = styleToObject(val);
  4968. break;
  4969. default:
  4970. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  4971. acc.attrs[key.toLowerCase()] = val;
  4972. } else {
  4973. acc.attrs[camelize(key)] = val;
  4974. }
  4975. }
  4976. return acc;
  4977. }, {
  4978. attrs: {}
  4979. });
  4980. var _extraProps$style = extraProps.style,
  4981. existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
  4982. remaining = _objectWithoutProperties(extraProps, ["style"]);
  4983. mixins.attrs['style'] = _objectSpread({}, mixins.attrs['style'], existingStyle);
  4984. return createElement.apply(void 0, [element.tag, _objectSpread({}, mixins.attrs, remaining)].concat(_toConsumableArray(children)));
  4985. }
  4986. var PRODUCTION = false;
  4987. try {
  4988. PRODUCTION = "development" === 'production';
  4989. } catch (e) {}
  4990. function log () {
  4991. if (!PRODUCTION && console && typeof console.error === 'function') {
  4992. var _console;
  4993. (_console = console).error.apply(_console, arguments);
  4994. }
  4995. }
  4996. // Normalize icon arguments
  4997. function normalizeIconArgs(icon$$1) {
  4998. // if the icon is null, there's nothing to do
  4999. if (icon$$1 === null) {
  5000. return null;
  5001. } // if the icon is an object and has a prefix and an icon name, return it
  5002. if (_typeof(icon$$1) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  5003. return icon$$1;
  5004. } // if it's an array with length of two
  5005. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  5006. // use the first item as prefix, second as icon name
  5007. return {
  5008. prefix: icon$$1[0],
  5009. iconName: icon$$1[1]
  5010. };
  5011. } // if it's a string, use it as the icon name
  5012. if (typeof icon$$1 === 'string') {
  5013. return {
  5014. prefix: 'fas',
  5015. iconName: icon$$1
  5016. };
  5017. }
  5018. }
  5019. // creates an object with a key of key
  5020. // and a value of value
  5021. // if certain conditions are met
  5022. function objectWithKey(key, value) {
  5023. // if the value is a non-empty array
  5024. // or it's not an array but it is truthy
  5025. // then create the object with the key and the value
  5026. // if not, return an empty array
  5027. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
  5028. }
  5029. function FontAwesomeIcon(props) {
  5030. var iconArgs = props.icon,
  5031. maskArgs = props.mask,
  5032. symbol = props.symbol,
  5033. className = props.className,
  5034. title = props.title;
  5035. var iconLookup = normalizeIconArgs(iconArgs);
  5036. var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
  5037. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  5038. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  5039. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _objectSpread({}, classes, transform, mask, {
  5040. symbol: symbol,
  5041. title: title
  5042. }));
  5043. if (!renderedIcon) {
  5044. log('Could not find icon', iconLookup);
  5045. return null;
  5046. }
  5047. var abstract = renderedIcon.abstract;
  5048. var extraProps = {};
  5049. Object.keys(props).forEach(function (key) {
  5050. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  5051. extraProps[key] = props[key];
  5052. }
  5053. });
  5054. return convertCurry(abstract[0], extraProps);
  5055. }
  5056. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  5057. FontAwesomeIcon.propTypes = {
  5058. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5059. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5060. 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]),
  5061. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5062. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5063. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  5064. 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]),
  5065. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5066. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  5067. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5068. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  5069. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  5070. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5071. 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]),
  5072. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5073. 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]),
  5074. swapOpacity: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
  5075. };
  5076. FontAwesomeIcon.defaultProps = {
  5077. border: false,
  5078. className: '',
  5079. mask: null,
  5080. fixedWidth: false,
  5081. inverse: false,
  5082. flip: null,
  5083. icon: null,
  5084. listItem: false,
  5085. pull: null,
  5086. pulse: false,
  5087. rotation: null,
  5088. size: null,
  5089. spin: false,
  5090. symbol: false,
  5091. title: '',
  5092. transform: null,
  5093. swapOpacity: false
  5094. };
  5095. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  5096. /***/ }),
  5097. /***/ "../../node_modules/@icons/material/CheckIcon.js":
  5098. /*!*********************************************************************!*\
  5099. !*** E:/Repos/Babylon.js/node_modules/@icons/material/CheckIcon.js ***!
  5100. \*********************************************************************/
  5101. /*! no static exports found */
  5102. /***/ (function(module, exports, __webpack_require__) {
  5103. "use strict";
  5104. Object.defineProperty(exports, "__esModule", {
  5105. value: true
  5106. });
  5107. 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; };
  5108. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  5109. var _react2 = _interopRequireDefault(_react);
  5110. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5111. 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; }
  5112. var DEFAULT_SIZE = 24;
  5113. exports.default = function (_ref) {
  5114. var _ref$fill = _ref.fill,
  5115. fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
  5116. _ref$width = _ref.width,
  5117. width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
  5118. _ref$height = _ref.height,
  5119. height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
  5120. _ref$style = _ref.style,
  5121. style = _ref$style === undefined ? {} : _ref$style,
  5122. props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
  5123. return _react2.default.createElement(
  5124. 'svg',
  5125. _extends({
  5126. viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
  5127. style: _extends({ fill: fill, width: width, height: height }, style)
  5128. }, props),
  5129. _react2.default.createElement('path', { d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' })
  5130. );
  5131. };
  5132. /***/ }),
  5133. /***/ "../../node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":
  5134. /*!************************************************************************************!*\
  5135. !*** E:/Repos/Babylon.js/node_modules/@icons/material/UnfoldMoreHorizontalIcon.js ***!
  5136. \************************************************************************************/
  5137. /*! no static exports found */
  5138. /***/ (function(module, exports, __webpack_require__) {
  5139. "use strict";
  5140. Object.defineProperty(exports, "__esModule", {
  5141. value: true
  5142. });
  5143. 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; };
  5144. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  5145. var _react2 = _interopRequireDefault(_react);
  5146. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5147. 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; }
  5148. var DEFAULT_SIZE = 24;
  5149. exports.default = function (_ref) {
  5150. var _ref$fill = _ref.fill,
  5151. fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
  5152. _ref$width = _ref.width,
  5153. width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
  5154. _ref$height = _ref.height,
  5155. height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
  5156. _ref$style = _ref.style,
  5157. style = _ref$style === undefined ? {} : _ref$style,
  5158. props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
  5159. return _react2.default.createElement(
  5160. 'svg',
  5161. _extends({
  5162. viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
  5163. style: _extends({ fill: fill, width: width, height: height }, style)
  5164. }, props),
  5165. _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' })
  5166. );
  5167. };
  5168. /***/ }),
  5169. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./components/log/log.scss":
  5170. /*!**************************************************************************************************************************************!*\
  5171. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/log/log.scss ***!
  5172. \**************************************************************************************************************************************/
  5173. /*! no static exports found */
  5174. /***/ (function(module, exports, __webpack_require__) {
  5175. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5176. // imports
  5177. // module
  5178. 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", ""]);
  5179. // exports
  5180. /***/ }),
  5181. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./components/nodeList/nodeList.scss":
  5182. /*!************************************************************************************************************************************************!*\
  5183. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/nodeList/nodeList.scss ***!
  5184. \************************************************************************************************************************************************/
  5185. /*! no static exports found */
  5186. /***/ (function(module, exports, __webpack_require__) {
  5187. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5188. // imports
  5189. // module
  5190. exports.push([module.i, "#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 100%;\n overflow: hidden; }\n #nodeList .panes {\n overflow: hidden; }\n #nodeList .panes .pane {\n color: white;\n overflow: hidden;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .panes .pane .filter {\n display: flex;\n align-items: stretch; }\n #nodeList .panes .pane .filter input {\n width: 100%;\n margin: 10px 10px 5px 10px;\n display: block;\n border: none;\n padding: 0;\n border-bottom: solid 1px #337ab7;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, #337ab7 4%);\n background-position: -1000px 0;\n background-size: 1000px 100%;\n background-repeat: no-repeat;\n color: white; }\n #nodeList .panes .pane .filter input:focus {\n box-shadow: none;\n outline: none;\n background-position: 0 0; }\n #nodeList .panes .pane .filter input::placeholder {\n color: gray; }\n #nodeList .panes .pane .list-container {\n overflow-x: hidden;\n overflow-y: auto;\n height: calc(100% - 32px); }\n #nodeList .panes .pane .list-container .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .panes .pane .list-container .draggableLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n background: #222222;\n cursor: grab;\n text-align: center;\n margin: 0;\n box-sizing: border-box; }\n #nodeList .panes .pane .list-container .draggableLine:hover {\n background: #337ab7;\n color: white; }\n #nodeList .panes .pane .list-container .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .panes .pane .list-container .buttonLine button {\n background: #222222;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .panes .pane .list-container .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .panes .pane .list-container .buttonLine button:active {\n background: #282828; }\n #nodeList .panes .pane .list-container .buttonLine button:focus {\n outline: 0px; }\n #nodeList .panes .pane .list-container .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 1px solid rgba(255, 255, 255, 0.3); }\n", ""]);
  5191. // exports
  5192. /***/ }),
  5193. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./components/propertyTab/propertyTab.scss":
  5194. /*!******************************************************************************************************************************************************!*\
  5195. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/propertyTab/propertyTab.scss ***!
  5196. \******************************************************************************************************************************************************/
  5197. /*! no static exports found */
  5198. /***/ (function(module, exports, __webpack_require__) {
  5199. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5200. // imports
  5201. // module
  5202. 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 5px;\n padding-top: 5px;\n padding-left: 5px;\n padding-bottom: 5px; }\n #propertyTab .gradient-step .step {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .gradient-step .color {\n grid-row: 1;\n grid-column: 2;\n cursor: pointer; }\n #propertyTab .gradient-step .step-value {\n margin-left: 5px;\n grid-row: 1;\n grid-column: 3;\n text-align: right;\n margin-right: 5px; }\n #propertyTab .gradient-step .step-slider {\n grid-row: 1;\n grid-column: 4;\n display: grid;\n justify-content: stretch;\n align-content: center;\n margin-right: 5px; }\n #propertyTab .gradient-step .step-slider input {\n width: unset; }\n #propertyTab .gradient-step .gradient-delete {\n grid-row: 1;\n grid-column: 5;\n display: grid;\n align-content: center;\n justify-content: center; }\n #propertyTab .floatLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value input {\n width: 110px; }\n #propertyTab .vector3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .no-right-margin {\n margin-right: 0; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n padding-bottom: 5px; }\n #propertyTab .buttonLine input[type=\"file\"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n padding-top: 0px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #propertyTab .checkBoxLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: '';\n transition: all 0.15s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .color3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #propertyTab .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 {\n grid-column: 2;\n 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 #propertyTab .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .color3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .textLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n", ""]);
  5203. // exports
  5204. /***/ }),
  5205. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./diagram/graphCanvas.scss":
  5206. /*!***************************************************************************************************************************************!*\
  5207. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./diagram/graphCanvas.scss ***!
  5208. \***************************************************************************************************************************************/
  5209. /*! no static exports found */
  5210. /***/ (function(module, exports, __webpack_require__) {
  5211. exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5212. // imports
  5213. // module
  5214. 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 .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", ""]);
  5215. // exports
  5216. /***/ }),
  5217. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./main.scss":
  5218. /*!************************************************************************************************************************!*\
  5219. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./main.scss ***!
  5220. \************************************************************************************************************************/
  5221. /*! no static exports found */
  5222. /***/ (function(module, exports, __webpack_require__) {
  5223. exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5224. // imports
  5225. // module
  5226. 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 .right-panel #preview-mesh-bar #color-picker-button #color-picker {\n display: none; }\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", ""]);
  5227. // exports
  5228. /***/ }),
  5229. /***/ "../../node_modules/css-loader/lib/css-base.js":
  5230. /*!*******************************************************************!*\
  5231. !*** E:/Repos/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  5232. \*******************************************************************/
  5233. /*! no static exports found */
  5234. /***/ (function(module, exports) {
  5235. /*
  5236. MIT License http://www.opensource.org/licenses/mit-license.php
  5237. Author Tobias Koppers @sokra
  5238. */
  5239. // css base code, injected by the css-loader
  5240. module.exports = function(useSourceMap) {
  5241. var list = [];
  5242. // return the list of modules as css string
  5243. list.toString = function toString() {
  5244. return this.map(function (item) {
  5245. var content = cssWithMappingToString(item, useSourceMap);
  5246. if(item[2]) {
  5247. return "@media " + item[2] + "{" + content + "}";
  5248. } else {
  5249. return content;
  5250. }
  5251. }).join("");
  5252. };
  5253. // import a list of modules into the list
  5254. list.i = function(modules, mediaQuery) {
  5255. if(typeof modules === "string")
  5256. modules = [[null, modules, ""]];
  5257. var alreadyImportedModules = {};
  5258. for(var i = 0; i < this.length; i++) {
  5259. var id = this[i][0];
  5260. if(typeof id === "number")
  5261. alreadyImportedModules[id] = true;
  5262. }
  5263. for(i = 0; i < modules.length; i++) {
  5264. var item = modules[i];
  5265. // skip already imported module
  5266. // this implementation is not 100% perfect for weird media query combinations
  5267. // when a module is imported multiple times with different media queries.
  5268. // I hope this will never occur (Hey this way we have smaller bundles)
  5269. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  5270. if(mediaQuery && !item[2]) {
  5271. item[2] = mediaQuery;
  5272. } else if(mediaQuery) {
  5273. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  5274. }
  5275. list.push(item);
  5276. }
  5277. }
  5278. };
  5279. return list;
  5280. };
  5281. function cssWithMappingToString(item, useSourceMap) {
  5282. var content = item[1] || '';
  5283. var cssMapping = item[3];
  5284. if (!cssMapping) {
  5285. return content;
  5286. }
  5287. if (useSourceMap && typeof btoa === 'function') {
  5288. var sourceMapping = toComment(cssMapping);
  5289. var sourceURLs = cssMapping.sources.map(function (source) {
  5290. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  5291. });
  5292. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  5293. }
  5294. return [content].join('\n');
  5295. }
  5296. // Adapted from convert-source-map (MIT)
  5297. function toComment(sourceMap) {
  5298. // eslint-disable-next-line no-undef
  5299. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  5300. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  5301. return '/*# ' + data + ' */';
  5302. }
  5303. /***/ }),
  5304. /***/ "../../node_modules/dagre/index.js":
  5305. /*!*******************************************************!*\
  5306. !*** E:/Repos/Babylon.js/node_modules/dagre/index.js ***!
  5307. \*******************************************************/
  5308. /*! no static exports found */
  5309. /***/ (function(module, exports, __webpack_require__) {
  5310. /*
  5311. Copyright (c) 2012-2014 Chris Pettitt
  5312. Permission is hereby granted, free of charge, to any person obtaining a copy
  5313. of this software and associated documentation files (the "Software"), to deal
  5314. in the Software without restriction, including without limitation the rights
  5315. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  5316. copies of the Software, and to permit persons to whom the Software is
  5317. furnished to do so, subject to the following conditions:
  5318. The above copyright notice and this permission notice shall be included in
  5319. all copies or substantial portions of the Software.
  5320. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  5321. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  5322. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  5323. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  5324. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  5325. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  5326. THE SOFTWARE.
  5327. */
  5328. module.exports = {
  5329. graphlib: __webpack_require__(/*! ./lib/graphlib */ "../../node_modules/dagre/lib/graphlib.js"),
  5330. layout: __webpack_require__(/*! ./lib/layout */ "../../node_modules/dagre/lib/layout.js"),
  5331. debug: __webpack_require__(/*! ./lib/debug */ "../../node_modules/dagre/lib/debug.js"),
  5332. util: {
  5333. time: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").time,
  5334. notime: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").notime
  5335. },
  5336. version: __webpack_require__(/*! ./lib/version */ "../../node_modules/dagre/lib/version.js")
  5337. };
  5338. /***/ }),
  5339. /***/ "../../node_modules/dagre/lib/acyclic.js":
  5340. /*!*************************************************************!*\
  5341. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/acyclic.js ***!
  5342. \*************************************************************/
  5343. /*! no static exports found */
  5344. /***/ (function(module, exports, __webpack_require__) {
  5345. "use strict";
  5346. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5347. greedyFAS = __webpack_require__(/*! ./greedy-fas */ "../../node_modules/dagre/lib/greedy-fas.js");
  5348. module.exports = {
  5349. run: run,
  5350. undo: undo
  5351. };
  5352. function run(g) {
  5353. var fas = (g.graph().acyclicer === "greedy"
  5354. ? greedyFAS(g, weightFn(g))
  5355. : dfsFAS(g));
  5356. _.forEach(fas, function(e) {
  5357. var label = g.edge(e);
  5358. g.removeEdge(e);
  5359. label.forwardName = e.name;
  5360. label.reversed = true;
  5361. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  5362. });
  5363. function weightFn(g) {
  5364. return function(e) {
  5365. return g.edge(e).weight;
  5366. };
  5367. }
  5368. }
  5369. function dfsFAS(g) {
  5370. var fas = [],
  5371. stack = {},
  5372. visited = {};
  5373. function dfs(v) {
  5374. if (_.has(visited, v)) {
  5375. return;
  5376. }
  5377. visited[v] = true;
  5378. stack[v] = true;
  5379. _.forEach(g.outEdges(v), function(e) {
  5380. if (_.has(stack, e.w)) {
  5381. fas.push(e);
  5382. } else {
  5383. dfs(e.w);
  5384. }
  5385. });
  5386. delete stack[v];
  5387. }
  5388. _.forEach(g.nodes(), dfs);
  5389. return fas;
  5390. }
  5391. function undo(g) {
  5392. _.forEach(g.edges(), function(e) {
  5393. var label = g.edge(e);
  5394. if (label.reversed) {
  5395. g.removeEdge(e);
  5396. var forwardName = label.forwardName;
  5397. delete label.reversed;
  5398. delete label.forwardName;
  5399. g.setEdge(e.w, e.v, label, forwardName);
  5400. }
  5401. });
  5402. }
  5403. /***/ }),
  5404. /***/ "../../node_modules/dagre/lib/add-border-segments.js":
  5405. /*!*************************************************************************!*\
  5406. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/add-border-segments.js ***!
  5407. \*************************************************************************/
  5408. /*! no static exports found */
  5409. /***/ (function(module, exports, __webpack_require__) {
  5410. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5411. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  5412. module.exports = addBorderSegments;
  5413. function addBorderSegments(g) {
  5414. function dfs(v) {
  5415. var children = g.children(v),
  5416. node = g.node(v);
  5417. if (children.length) {
  5418. _.forEach(children, dfs);
  5419. }
  5420. if (_.has(node, "minRank")) {
  5421. node.borderLeft = [];
  5422. node.borderRight = [];
  5423. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  5424. rank < maxRank;
  5425. ++rank) {
  5426. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  5427. addBorderNode(g, "borderRight", "_br", v, node, rank);
  5428. }
  5429. }
  5430. }
  5431. _.forEach(g.children(), dfs);
  5432. }
  5433. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  5434. var label = { width: 0, height: 0, rank: rank, borderType: prop },
  5435. prev = sgNode[prop][rank - 1],
  5436. curr = util.addDummyNode(g, "border", label, prefix);
  5437. sgNode[prop][rank] = curr;
  5438. g.setParent(curr, sg);
  5439. if (prev) {
  5440. g.setEdge(prev, curr, { weight: 1 });
  5441. }
  5442. }
  5443. /***/ }),
  5444. /***/ "../../node_modules/dagre/lib/coordinate-system.js":
  5445. /*!***********************************************************************!*\
  5446. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/coordinate-system.js ***!
  5447. \***********************************************************************/
  5448. /*! no static exports found */
  5449. /***/ (function(module, exports, __webpack_require__) {
  5450. "use strict";
  5451. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  5452. module.exports = {
  5453. adjust: adjust,
  5454. undo: undo
  5455. };
  5456. function adjust(g) {
  5457. var rankDir = g.graph().rankdir.toLowerCase();
  5458. if (rankDir === "lr" || rankDir === "rl") {
  5459. swapWidthHeight(g);
  5460. }
  5461. }
  5462. function undo(g) {
  5463. var rankDir = g.graph().rankdir.toLowerCase();
  5464. if (rankDir === "bt" || rankDir === "rl") {
  5465. reverseY(g);
  5466. }
  5467. if (rankDir === "lr" || rankDir === "rl") {
  5468. swapXY(g);
  5469. swapWidthHeight(g);
  5470. }
  5471. }
  5472. function swapWidthHeight(g) {
  5473. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  5474. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  5475. }
  5476. function swapWidthHeightOne(attrs) {
  5477. var w = attrs.width;
  5478. attrs.width = attrs.height;
  5479. attrs.height = w;
  5480. }
  5481. function reverseY(g) {
  5482. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  5483. _.forEach(g.edges(), function(e) {
  5484. var edge = g.edge(e);
  5485. _.forEach(edge.points, reverseYOne);
  5486. if (_.has(edge, "y")) {
  5487. reverseYOne(edge);
  5488. }
  5489. });
  5490. }
  5491. function reverseYOne(attrs) {
  5492. attrs.y = -attrs.y;
  5493. }
  5494. function swapXY(g) {
  5495. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  5496. _.forEach(g.edges(), function(e) {
  5497. var edge = g.edge(e);
  5498. _.forEach(edge.points, swapXYOne);
  5499. if (_.has(edge, "x")) {
  5500. swapXYOne(edge);
  5501. }
  5502. });
  5503. }
  5504. function swapXYOne(attrs) {
  5505. var x = attrs.x;
  5506. attrs.x = attrs.y;
  5507. attrs.y = x;
  5508. }
  5509. /***/ }),
  5510. /***/ "../../node_modules/dagre/lib/data/list.js":
  5511. /*!***************************************************************!*\
  5512. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/data/list.js ***!
  5513. \***************************************************************/
  5514. /*! no static exports found */
  5515. /***/ (function(module, exports) {
  5516. /*
  5517. * Simple doubly linked list implementation derived from Cormen, et al.,
  5518. * "Introduction to Algorithms".
  5519. */
  5520. module.exports = List;
  5521. function List() {
  5522. var sentinel = {};
  5523. sentinel._next = sentinel._prev = sentinel;
  5524. this._sentinel = sentinel;
  5525. }
  5526. List.prototype.dequeue = function() {
  5527. var sentinel = this._sentinel,
  5528. entry = sentinel._prev;
  5529. if (entry !== sentinel) {
  5530. unlink(entry);
  5531. return entry;
  5532. }
  5533. };
  5534. List.prototype.enqueue = function(entry) {
  5535. var sentinel = this._sentinel;
  5536. if (entry._prev && entry._next) {
  5537. unlink(entry);
  5538. }
  5539. entry._next = sentinel._next;
  5540. sentinel._next._prev = entry;
  5541. sentinel._next = entry;
  5542. entry._prev = sentinel;
  5543. };
  5544. List.prototype.toString = function() {
  5545. var strs = [],
  5546. sentinel = this._sentinel,
  5547. curr = sentinel._prev;
  5548. while (curr !== sentinel) {
  5549. strs.push(JSON.stringify(curr, filterOutLinks));
  5550. curr = curr._prev;
  5551. }
  5552. return "[" + strs.join(", ") + "]";
  5553. };
  5554. function unlink(entry) {
  5555. entry._prev._next = entry._next;
  5556. entry._next._prev = entry._prev;
  5557. delete entry._next;
  5558. delete entry._prev;
  5559. }
  5560. function filterOutLinks(k, v) {
  5561. if (k !== "_next" && k !== "_prev") {
  5562. return v;
  5563. }
  5564. }
  5565. /***/ }),
  5566. /***/ "../../node_modules/dagre/lib/debug.js":
  5567. /*!***********************************************************!*\
  5568. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/debug.js ***!
  5569. \***********************************************************/
  5570. /*! no static exports found */
  5571. /***/ (function(module, exports, __webpack_require__) {
  5572. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5573. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5574. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5575. module.exports = {
  5576. debugOrdering: debugOrdering
  5577. };
  5578. /* istanbul ignore next */
  5579. function debugOrdering(g) {
  5580. var layerMatrix = util.buildLayerMatrix(g);
  5581. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  5582. _.forEach(g.nodes(), function(v) {
  5583. h.setNode(v, { label: v });
  5584. h.setParent(v, "layer" + g.node(v).rank);
  5585. });
  5586. _.forEach(g.edges(), function(e) {
  5587. h.setEdge(e.v, e.w, {}, e.name);
  5588. });
  5589. _.forEach(layerMatrix, function(layer, i) {
  5590. var layerV = "layer" + i;
  5591. h.setNode(layerV, { rank: "same" });
  5592. _.reduce(layer, function(u, v) {
  5593. h.setEdge(u, v, { style: "invis" });
  5594. return v;
  5595. });
  5596. });
  5597. return h;
  5598. }
  5599. /***/ }),
  5600. /***/ "../../node_modules/dagre/lib/graphlib.js":
  5601. /*!**************************************************************!*\
  5602. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/graphlib.js ***!
  5603. \**************************************************************/
  5604. /*! no static exports found */
  5605. /***/ (function(module, exports, __webpack_require__) {
  5606. /* global window */
  5607. var graphlib;
  5608. if (true) {
  5609. try {
  5610. graphlib = __webpack_require__(/*! graphlib */ "../../node_modules/graphlib/index.js");
  5611. } catch (e) {}
  5612. }
  5613. if (!graphlib) {
  5614. graphlib = window.graphlib;
  5615. }
  5616. module.exports = graphlib;
  5617. /***/ }),
  5618. /***/ "../../node_modules/dagre/lib/greedy-fas.js":
  5619. /*!****************************************************************!*\
  5620. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/greedy-fas.js ***!
  5621. \****************************************************************/
  5622. /*! no static exports found */
  5623. /***/ (function(module, exports, __webpack_require__) {
  5624. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5625. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  5626. List = __webpack_require__(/*! ./data/list */ "../../node_modules/dagre/lib/data/list.js");
  5627. /*
  5628. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  5629. * arc set is a set of edges that can be removed to make a graph acyclic.
  5630. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  5631. * effective heuristic for the feedback arc set problem." This implementation
  5632. * adjusts that from the paper to allow for weighted edges.
  5633. */
  5634. module.exports = greedyFAS;
  5635. var DEFAULT_WEIGHT_FN = _.constant(1);
  5636. function greedyFAS(g, weightFn) {
  5637. if (g.nodeCount() <= 1) {
  5638. return [];
  5639. }
  5640. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  5641. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  5642. // Expand multi-edges
  5643. return _.flatten(_.map(results, function(e) {
  5644. return g.outEdges(e.v, e.w);
  5645. }), true);
  5646. }
  5647. function doGreedyFAS(g, buckets, zeroIdx) {
  5648. var results = [],
  5649. sources = buckets[buckets.length - 1],
  5650. sinks = buckets[0];
  5651. var entry;
  5652. while (g.nodeCount()) {
  5653. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5654. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5655. if (g.nodeCount()) {
  5656. for (var i = buckets.length - 2; i > 0; --i) {
  5657. entry = buckets[i].dequeue();
  5658. if (entry) {
  5659. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  5660. break;
  5661. }
  5662. }
  5663. }
  5664. }
  5665. return results;
  5666. }
  5667. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  5668. var results = collectPredecessors ? [] : undefined;
  5669. _.forEach(g.inEdges(entry.v), function(edge) {
  5670. var weight = g.edge(edge),
  5671. uEntry = g.node(edge.v);
  5672. if (collectPredecessors) {
  5673. results.push({ v: edge.v, w: edge.w });
  5674. }
  5675. uEntry.out -= weight;
  5676. assignBucket(buckets, zeroIdx, uEntry);
  5677. });
  5678. _.forEach(g.outEdges(entry.v), function(edge) {
  5679. var weight = g.edge(edge),
  5680. w = edge.w,
  5681. wEntry = g.node(w);
  5682. wEntry["in"] -= weight;
  5683. assignBucket(buckets, zeroIdx, wEntry);
  5684. });
  5685. g.removeNode(entry.v);
  5686. return results;
  5687. }
  5688. function buildState(g, weightFn) {
  5689. var fasGraph = new Graph(),
  5690. maxIn = 0,
  5691. maxOut = 0;
  5692. _.forEach(g.nodes(), function(v) {
  5693. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  5694. });
  5695. // Aggregate weights on nodes, but also sum the weights across multi-edges
  5696. // into a single edge for the fasGraph.
  5697. _.forEach(g.edges(), function(e) {
  5698. var prevWeight = fasGraph.edge(e.v, e.w) || 0,
  5699. weight = weightFn(e),
  5700. edgeWeight = prevWeight + weight;
  5701. fasGraph.setEdge(e.v, e.w, edgeWeight);
  5702. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  5703. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  5704. });
  5705. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  5706. var zeroIdx = maxIn + 1;
  5707. _.forEach(fasGraph.nodes(), function(v) {
  5708. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  5709. });
  5710. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  5711. }
  5712. function assignBucket(buckets, zeroIdx, entry) {
  5713. if (!entry.out) {
  5714. buckets[0].enqueue(entry);
  5715. } else if (!entry["in"]) {
  5716. buckets[buckets.length - 1].enqueue(entry);
  5717. } else {
  5718. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  5719. }
  5720. }
  5721. /***/ }),
  5722. /***/ "../../node_modules/dagre/lib/layout.js":
  5723. /*!************************************************************!*\
  5724. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/layout.js ***!
  5725. \************************************************************/
  5726. /*! no static exports found */
  5727. /***/ (function(module, exports, __webpack_require__) {
  5728. "use strict";
  5729. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5730. acyclic = __webpack_require__(/*! ./acyclic */ "../../node_modules/dagre/lib/acyclic.js"),
  5731. normalize = __webpack_require__(/*! ./normalize */ "../../node_modules/dagre/lib/normalize.js"),
  5732. rank = __webpack_require__(/*! ./rank */ "../../node_modules/dagre/lib/rank/index.js"),
  5733. normalizeRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").normalizeRanks,
  5734. parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "../../node_modules/dagre/lib/parent-dummy-chains.js"),
  5735. removeEmptyRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").removeEmptyRanks,
  5736. nestingGraph = __webpack_require__(/*! ./nesting-graph */ "../../node_modules/dagre/lib/nesting-graph.js"),
  5737. addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "../../node_modules/dagre/lib/add-border-segments.js"),
  5738. coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "../../node_modules/dagre/lib/coordinate-system.js"),
  5739. order = __webpack_require__(/*! ./order */ "../../node_modules/dagre/lib/order/index.js"),
  5740. position = __webpack_require__(/*! ./position */ "../../node_modules/dagre/lib/position/index.js"),
  5741. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5742. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5743. module.exports = layout;
  5744. function layout(g, opts) {
  5745. var time = opts && opts.debugTiming ? util.time : util.notime;
  5746. time("layout", function() {
  5747. var layoutGraph = time(" buildLayoutGraph",
  5748. function() { return buildLayoutGraph(g); });
  5749. time(" runLayout", function() { runLayout(layoutGraph, time); });
  5750. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  5751. });
  5752. }
  5753. function runLayout(g, time) {
  5754. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  5755. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  5756. time(" acyclic", function() { acyclic.run(g); });
  5757. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  5758. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  5759. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  5760. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  5761. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  5762. time(" normalizeRanks", function() { normalizeRanks(g); });
  5763. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  5764. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  5765. time(" normalize.run", function() { normalize.run(g); });
  5766. time(" parentDummyChains", function() { parentDummyChains(g); });
  5767. time(" addBorderSegments", function() { addBorderSegments(g); });
  5768. time(" order", function() { order(g); });
  5769. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  5770. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  5771. time(" position", function() { position(g); });
  5772. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  5773. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  5774. time(" normalize.undo", function() { normalize.undo(g); });
  5775. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  5776. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  5777. time(" translateGraph", function() { translateGraph(g); });
  5778. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  5779. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  5780. time(" acyclic.undo", function() { acyclic.undo(g); });
  5781. }
  5782. /*
  5783. * Copies final layout information from the layout graph back to the input
  5784. * graph. This process only copies whitelisted attributes from the layout graph
  5785. * to the input graph, so it serves as a good place to determine what
  5786. * attributes can influence layout.
  5787. */
  5788. function updateInputGraph(inputGraph, layoutGraph) {
  5789. _.forEach(inputGraph.nodes(), function(v) {
  5790. var inputLabel = inputGraph.node(v),
  5791. layoutLabel = layoutGraph.node(v);
  5792. if (inputLabel) {
  5793. inputLabel.x = layoutLabel.x;
  5794. inputLabel.y = layoutLabel.y;
  5795. if (layoutGraph.children(v).length) {
  5796. inputLabel.width = layoutLabel.width;
  5797. inputLabel.height = layoutLabel.height;
  5798. }
  5799. }
  5800. });
  5801. _.forEach(inputGraph.edges(), function(e) {
  5802. var inputLabel = inputGraph.edge(e),
  5803. layoutLabel = layoutGraph.edge(e);
  5804. inputLabel.points = layoutLabel.points;
  5805. if (_.has(layoutLabel, "x")) {
  5806. inputLabel.x = layoutLabel.x;
  5807. inputLabel.y = layoutLabel.y;
  5808. }
  5809. });
  5810. inputGraph.graph().width = layoutGraph.graph().width;
  5811. inputGraph.graph().height = layoutGraph.graph().height;
  5812. }
  5813. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"],
  5814. graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" },
  5815. graphAttrs = ["acyclicer", "ranker", "rankdir", "align"],
  5816. nodeNumAttrs = ["width", "height"],
  5817. nodeDefaults = { width: 0, height: 0 },
  5818. edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"],
  5819. edgeDefaults = {
  5820. minlen: 1, weight: 1, width: 0, height: 0,
  5821. labeloffset: 10, labelpos: "r"
  5822. },
  5823. edgeAttrs = ["labelpos"];
  5824. /*
  5825. * Constructs a new graph from the input graph, which can be used for layout.
  5826. * This process copies only whitelisted attributes from the input graph to the
  5827. * layout graph. Thus this function serves as a good place to determine what
  5828. * attributes can influence layout.
  5829. */
  5830. function buildLayoutGraph(inputGraph) {
  5831. var g = new Graph({ multigraph: true, compound: true }),
  5832. graph = canonicalize(inputGraph.graph());
  5833. g.setGraph(_.merge({},
  5834. graphDefaults,
  5835. selectNumberAttrs(graph, graphNumAttrs),
  5836. _.pick(graph, graphAttrs)));
  5837. _.forEach(inputGraph.nodes(), function(v) {
  5838. var node = canonicalize(inputGraph.node(v));
  5839. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  5840. g.setParent(v, inputGraph.parent(v));
  5841. });
  5842. _.forEach(inputGraph.edges(), function(e) {
  5843. var edge = canonicalize(inputGraph.edge(e));
  5844. g.setEdge(e, _.merge({},
  5845. edgeDefaults,
  5846. selectNumberAttrs(edge, edgeNumAttrs),
  5847. _.pick(edge, edgeAttrs)));
  5848. });
  5849. return g;
  5850. }
  5851. /*
  5852. * This idea comes from the Gansner paper: to account for edge labels in our
  5853. * layout we split each rank in half by doubling minlen and halving ranksep.
  5854. * Then we can place labels at these mid-points between nodes.
  5855. *
  5856. * We also add some minimal padding to the width to push the label for the edge
  5857. * away from the edge itself a bit.
  5858. */
  5859. function makeSpaceForEdgeLabels(g) {
  5860. var graph = g.graph();
  5861. graph.ranksep /= 2;
  5862. _.forEach(g.edges(), function(e) {
  5863. var edge = g.edge(e);
  5864. edge.minlen *= 2;
  5865. if (edge.labelpos.toLowerCase() !== "c") {
  5866. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  5867. edge.width += edge.labeloffset;
  5868. } else {
  5869. edge.height += edge.labeloffset;
  5870. }
  5871. }
  5872. });
  5873. }
  5874. /*
  5875. * Creates temporary dummy nodes that capture the rank in which each edge's
  5876. * label is going to, if it has one of non-zero width and height. We do this
  5877. * so that we can safely remove empty ranks while preserving balance for the
  5878. * label's position.
  5879. */
  5880. function injectEdgeLabelProxies(g) {
  5881. _.forEach(g.edges(), function(e) {
  5882. var edge = g.edge(e);
  5883. if (edge.width && edge.height) {
  5884. var v = g.node(e.v),
  5885. w = g.node(e.w),
  5886. label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  5887. util.addDummyNode(g, "edge-proxy", label, "_ep");
  5888. }
  5889. });
  5890. }
  5891. function assignRankMinMax(g) {
  5892. var maxRank = 0;
  5893. _.forEach(g.nodes(), function(v) {
  5894. var node = g.node(v);
  5895. if (node.borderTop) {
  5896. node.minRank = g.node(node.borderTop).rank;
  5897. node.maxRank = g.node(node.borderBottom).rank;
  5898. maxRank = _.max(maxRank, node.maxRank);
  5899. }
  5900. });
  5901. g.graph().maxRank = maxRank;
  5902. }
  5903. function removeEdgeLabelProxies(g) {
  5904. _.forEach(g.nodes(), function(v) {
  5905. var node = g.node(v);
  5906. if (node.dummy === "edge-proxy") {
  5907. g.edge(node.e).labelRank = node.rank;
  5908. g.removeNode(v);
  5909. }
  5910. });
  5911. }
  5912. function translateGraph(g) {
  5913. var minX = Number.POSITIVE_INFINITY,
  5914. maxX = 0,
  5915. minY = Number.POSITIVE_INFINITY,
  5916. maxY = 0,
  5917. graphLabel = g.graph(),
  5918. marginX = graphLabel.marginx || 0,
  5919. marginY = graphLabel.marginy || 0;
  5920. function getExtremes(attrs) {
  5921. var x = attrs.x,
  5922. y = attrs.y,
  5923. w = attrs.width,
  5924. h = attrs.height;
  5925. minX = Math.min(minX, x - w / 2);
  5926. maxX = Math.max(maxX, x + w / 2);
  5927. minY = Math.min(minY, y - h / 2);
  5928. maxY = Math.max(maxY, y + h / 2);
  5929. }
  5930. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  5931. _.forEach(g.edges(), function(e) {
  5932. var edge = g.edge(e);
  5933. if (_.has(edge, "x")) {
  5934. getExtremes(edge);
  5935. }
  5936. });
  5937. minX -= marginX;
  5938. minY -= marginY;
  5939. _.forEach(g.nodes(), function(v) {
  5940. var node = g.node(v);
  5941. node.x -= minX;
  5942. node.y -= minY;
  5943. });
  5944. _.forEach(g.edges(), function(e) {
  5945. var edge = g.edge(e);
  5946. _.forEach(edge.points, function(p) {
  5947. p.x -= minX;
  5948. p.y -= minY;
  5949. });
  5950. if (_.has(edge, "x")) { edge.x -= minX; }
  5951. if (_.has(edge, "y")) { edge.y -= minY; }
  5952. });
  5953. graphLabel.width = maxX - minX + marginX;
  5954. graphLabel.height = maxY - minY + marginY;
  5955. }
  5956. function assignNodeIntersects(g) {
  5957. _.forEach(g.edges(), function(e) {
  5958. var edge = g.edge(e),
  5959. nodeV = g.node(e.v),
  5960. nodeW = g.node(e.w),
  5961. p1, p2;
  5962. if (!edge.points) {
  5963. edge.points = [];
  5964. p1 = nodeW;
  5965. p2 = nodeV;
  5966. } else {
  5967. p1 = edge.points[0];
  5968. p2 = edge.points[edge.points.length - 1];
  5969. }
  5970. edge.points.unshift(util.intersectRect(nodeV, p1));
  5971. edge.points.push(util.intersectRect(nodeW, p2));
  5972. });
  5973. }
  5974. function fixupEdgeLabelCoords(g) {
  5975. _.forEach(g.edges(), function(e) {
  5976. var edge = g.edge(e);
  5977. if (_.has(edge, "x")) {
  5978. if (edge.labelpos === "l" || edge.labelpos === "r") {
  5979. edge.width -= edge.labeloffset;
  5980. }
  5981. switch (edge.labelpos) {
  5982. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  5983. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  5984. }
  5985. }
  5986. });
  5987. }
  5988. function reversePointsForReversedEdges(g) {
  5989. _.forEach(g.edges(), function(e) {
  5990. var edge = g.edge(e);
  5991. if (edge.reversed) {
  5992. edge.points.reverse();
  5993. }
  5994. });
  5995. }
  5996. function removeBorderNodes(g) {
  5997. _.forEach(g.nodes(), function(v) {
  5998. if (g.children(v).length) {
  5999. var node = g.node(v),
  6000. t = g.node(node.borderTop),
  6001. b = g.node(node.borderBottom),
  6002. l = g.node(_.last(node.borderLeft)),
  6003. r = g.node(_.last(node.borderRight));
  6004. node.width = Math.abs(r.x - l.x);
  6005. node.height = Math.abs(b.y - t.y);
  6006. node.x = l.x + node.width / 2;
  6007. node.y = t.y + node.height / 2;
  6008. }
  6009. });
  6010. _.forEach(g.nodes(), function(v) {
  6011. if (g.node(v).dummy === "border") {
  6012. g.removeNode(v);
  6013. }
  6014. });
  6015. }
  6016. function removeSelfEdges(g) {
  6017. _.forEach(g.edges(), function(e) {
  6018. if (e.v === e.w) {
  6019. var node = g.node(e.v);
  6020. if (!node.selfEdges) {
  6021. node.selfEdges = [];
  6022. }
  6023. node.selfEdges.push({ e: e, label: g.edge(e) });
  6024. g.removeEdge(e);
  6025. }
  6026. });
  6027. }
  6028. function insertSelfEdges(g) {
  6029. var layers = util.buildLayerMatrix(g);
  6030. _.forEach(layers, function(layer) {
  6031. var orderShift = 0;
  6032. _.forEach(layer, function(v, i) {
  6033. var node = g.node(v);
  6034. node.order = i + orderShift;
  6035. _.forEach(node.selfEdges, function(selfEdge) {
  6036. util.addDummyNode(g, "selfedge", {
  6037. width: selfEdge.label.width,
  6038. height: selfEdge.label.height,
  6039. rank: node.rank,
  6040. order: i + (++orderShift),
  6041. e: selfEdge.e,
  6042. label: selfEdge.label
  6043. }, "_se");
  6044. });
  6045. delete node.selfEdges;
  6046. });
  6047. });
  6048. }
  6049. function positionSelfEdges(g) {
  6050. _.forEach(g.nodes(), function(v) {
  6051. var node = g.node(v);
  6052. if (node.dummy === "selfedge") {
  6053. var selfNode = g.node(node.e.v),
  6054. x = selfNode.x + selfNode.width / 2,
  6055. y = selfNode.y,
  6056. dx = node.x - x,
  6057. dy = selfNode.height / 2;
  6058. g.setEdge(node.e, node.label);
  6059. g.removeNode(v);
  6060. node.label.points = [
  6061. { x: x + 2 * dx / 3, y: y - dy },
  6062. { x: x + 5 * dx / 6, y: y - dy },
  6063. { x: x + dx , y: y },
  6064. { x: x + 5 * dx / 6, y: y + dy },
  6065. { x: x + 2 * dx / 3, y: y + dy }
  6066. ];
  6067. node.label.x = node.x;
  6068. node.label.y = node.y;
  6069. }
  6070. });
  6071. }
  6072. function selectNumberAttrs(obj, attrs) {
  6073. return _.mapValues(_.pick(obj, attrs), Number);
  6074. }
  6075. function canonicalize(attrs) {
  6076. var newAttrs = {};
  6077. _.forEach(attrs, function(v, k) {
  6078. newAttrs[k.toLowerCase()] = v;
  6079. });
  6080. return newAttrs;
  6081. }
  6082. /***/ }),
  6083. /***/ "../../node_modules/dagre/lib/lodash.js":
  6084. /*!************************************************************!*\
  6085. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/lodash.js ***!
  6086. \************************************************************/
  6087. /*! no static exports found */
  6088. /***/ (function(module, exports, __webpack_require__) {
  6089. /* global window */
  6090. var lodash;
  6091. if (true) {
  6092. try {
  6093. lodash = {
  6094. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js"),
  6095. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  6096. defaults: __webpack_require__(/*! lodash/defaults */ "../../node_modules/lodash/defaults.js"),
  6097. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  6098. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  6099. find: __webpack_require__(/*! lodash/find */ "../../node_modules/lodash/find.js"),
  6100. flatten: __webpack_require__(/*! lodash/flatten */ "../../node_modules/lodash/flatten.js"),
  6101. forEach: __webpack_require__(/*! lodash/forEach */ "../../node_modules/lodash/forEach.js"),
  6102. forIn: __webpack_require__(/*! lodash/forIn */ "../../node_modules/lodash/forIn.js"),
  6103. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  6104. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  6105. last: __webpack_require__(/*! lodash/last */ "../../node_modules/lodash/last.js"),
  6106. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  6107. mapValues: __webpack_require__(/*! lodash/mapValues */ "../../node_modules/lodash/mapValues.js"),
  6108. max: __webpack_require__(/*! lodash/max */ "../../node_modules/lodash/max.js"),
  6109. merge: __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js"),
  6110. min: __webpack_require__(/*! lodash/min */ "../../node_modules/lodash/min.js"),
  6111. minBy: __webpack_require__(/*! lodash/minBy */ "../../node_modules/lodash/minBy.js"),
  6112. now: __webpack_require__(/*! lodash/now */ "../../node_modules/lodash/now.js"),
  6113. pick: __webpack_require__(/*! lodash/pick */ "../../node_modules/lodash/pick.js"),
  6114. range: __webpack_require__(/*! lodash/range */ "../../node_modules/lodash/range.js"),
  6115. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  6116. sortBy: __webpack_require__(/*! lodash/sortBy */ "../../node_modules/lodash/sortBy.js"),
  6117. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "../../node_modules/lodash/uniqueId.js"),
  6118. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js"),
  6119. zipObject: __webpack_require__(/*! lodash/zipObject */ "../../node_modules/lodash/zipObject.js"),
  6120. };
  6121. } catch (e) {}
  6122. }
  6123. if (!lodash) {
  6124. lodash = window._;
  6125. }
  6126. module.exports = lodash;
  6127. /***/ }),
  6128. /***/ "../../node_modules/dagre/lib/nesting-graph.js":
  6129. /*!*******************************************************************!*\
  6130. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/nesting-graph.js ***!
  6131. \*******************************************************************/
  6132. /*! no static exports found */
  6133. /***/ (function(module, exports, __webpack_require__) {
  6134. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6135. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6136. module.exports = {
  6137. run: run,
  6138. cleanup: cleanup
  6139. };
  6140. /*
  6141. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  6142. * adds appropriate edges to ensure that all cluster nodes are placed between
  6143. * these boundries, and ensures that the graph is connected.
  6144. *
  6145. * In addition we ensure, through the use of the minlen property, that nodes
  6146. * and subgraph border nodes to not end up on the same rank.
  6147. *
  6148. * Preconditions:
  6149. *
  6150. * 1. Input graph is a DAG
  6151. * 2. Nodes in the input graph has a minlen attribute
  6152. *
  6153. * Postconditions:
  6154. *
  6155. * 1. Input graph is connected.
  6156. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  6157. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  6158. * get placed on the same rank as subgraph border nodes.
  6159. *
  6160. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  6161. * Graphs."
  6162. */
  6163. function run(g) {
  6164. var root = util.addDummyNode(g, "root", {}, "_root");
  6165. var depths = treeDepths(g);
  6166. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  6167. var nodeSep = 2 * height + 1;
  6168. g.graph().nestingRoot = root;
  6169. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  6170. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  6171. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  6172. var weight = sumWeights(g) + 1;
  6173. // Create border nodes and link them up
  6174. _.forEach(g.children(), function(child) {
  6175. dfs(g, root, nodeSep, weight, height, depths, child);
  6176. });
  6177. // Save the multiplier for node layers for later removal of empty border
  6178. // layers.
  6179. g.graph().nodeRankFactor = nodeSep;
  6180. }
  6181. function dfs(g, root, nodeSep, weight, height, depths, v) {
  6182. var children = g.children(v);
  6183. if (!children.length) {
  6184. if (v !== root) {
  6185. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  6186. }
  6187. return;
  6188. }
  6189. var top = util.addBorderNode(g, "_bt"),
  6190. bottom = util.addBorderNode(g, "_bb"),
  6191. label = g.node(v);
  6192. g.setParent(top, v);
  6193. label.borderTop = top;
  6194. g.setParent(bottom, v);
  6195. label.borderBottom = bottom;
  6196. _.forEach(children, function(child) {
  6197. dfs(g, root, nodeSep, weight, height, depths, child);
  6198. var childNode = g.node(child),
  6199. childTop = childNode.borderTop ? childNode.borderTop : child,
  6200. childBottom = childNode.borderBottom ? childNode.borderBottom : child,
  6201. thisWeight = childNode.borderTop ? weight : 2 * weight,
  6202. minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  6203. g.setEdge(top, childTop, {
  6204. weight: thisWeight,
  6205. minlen: minlen,
  6206. nestingEdge: true
  6207. });
  6208. g.setEdge(childBottom, bottom, {
  6209. weight: thisWeight,
  6210. minlen: minlen,
  6211. nestingEdge: true
  6212. });
  6213. });
  6214. if (!g.parent(v)) {
  6215. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  6216. }
  6217. }
  6218. function treeDepths(g) {
  6219. var depths = {};
  6220. function dfs(v, depth) {
  6221. var children = g.children(v);
  6222. if (children && children.length) {
  6223. _.forEach(children, function(child) {
  6224. dfs(child, depth + 1);
  6225. });
  6226. }
  6227. depths[v] = depth;
  6228. }
  6229. _.forEach(g.children(), function(v) { dfs(v, 1); });
  6230. return depths;
  6231. }
  6232. function sumWeights(g) {
  6233. return _.reduce(g.edges(), function(acc, e) {
  6234. return acc + g.edge(e).weight;
  6235. }, 0);
  6236. }
  6237. function cleanup(g) {
  6238. var graphLabel = g.graph();
  6239. g.removeNode(graphLabel.nestingRoot);
  6240. delete graphLabel.nestingRoot;
  6241. _.forEach(g.edges(), function(e) {
  6242. var edge = g.edge(e);
  6243. if (edge.nestingEdge) {
  6244. g.removeEdge(e);
  6245. }
  6246. });
  6247. }
  6248. /***/ }),
  6249. /***/ "../../node_modules/dagre/lib/normalize.js":
  6250. /*!***************************************************************!*\
  6251. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/normalize.js ***!
  6252. \***************************************************************/
  6253. /*! no static exports found */
  6254. /***/ (function(module, exports, __webpack_require__) {
  6255. "use strict";
  6256. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6257. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6258. module.exports = {
  6259. run: run,
  6260. undo: undo
  6261. };
  6262. /*
  6263. * Breaks any long edges in the graph into short segments that span 1 layer
  6264. * each. This operation is undoable with the denormalize function.
  6265. *
  6266. * Pre-conditions:
  6267. *
  6268. * 1. The input graph is a DAG.
  6269. * 2. Each node in the graph has a "rank" property.
  6270. *
  6271. * Post-condition:
  6272. *
  6273. * 1. All edges in the graph have a length of 1.
  6274. * 2. Dummy nodes are added where edges have been split into segments.
  6275. * 3. The graph is augmented with a "dummyChains" attribute which contains
  6276. * the first dummy in each chain of dummy nodes produced.
  6277. */
  6278. function run(g) {
  6279. g.graph().dummyChains = [];
  6280. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  6281. }
  6282. function normalizeEdge(g, e) {
  6283. var v = e.v,
  6284. vRank = g.node(v).rank,
  6285. w = e.w,
  6286. wRank = g.node(w).rank,
  6287. name = e.name,
  6288. edgeLabel = g.edge(e),
  6289. labelRank = edgeLabel.labelRank;
  6290. if (wRank === vRank + 1) return;
  6291. g.removeEdge(e);
  6292. var dummy, attrs, i;
  6293. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  6294. edgeLabel.points = [];
  6295. attrs = {
  6296. width: 0, height: 0,
  6297. edgeLabel: edgeLabel, edgeObj: e,
  6298. rank: vRank
  6299. };
  6300. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  6301. if (vRank === labelRank) {
  6302. attrs.width = edgeLabel.width;
  6303. attrs.height = edgeLabel.height;
  6304. attrs.dummy = "edge-label";
  6305. attrs.labelpos = edgeLabel.labelpos;
  6306. }
  6307. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  6308. if (i === 0) {
  6309. g.graph().dummyChains.push(dummy);
  6310. }
  6311. v = dummy;
  6312. }
  6313. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  6314. }
  6315. function undo(g) {
  6316. _.forEach(g.graph().dummyChains, function(v) {
  6317. var node = g.node(v),
  6318. origLabel = node.edgeLabel,
  6319. w;
  6320. g.setEdge(node.edgeObj, origLabel);
  6321. while (node.dummy) {
  6322. w = g.successors(v)[0];
  6323. g.removeNode(v);
  6324. origLabel.points.push({ x: node.x, y: node.y });
  6325. if (node.dummy === "edge-label") {
  6326. origLabel.x = node.x;
  6327. origLabel.y = node.y;
  6328. origLabel.width = node.width;
  6329. origLabel.height = node.height;
  6330. }
  6331. v = w;
  6332. node = g.node(v);
  6333. }
  6334. });
  6335. }
  6336. /***/ }),
  6337. /***/ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js":
  6338. /*!************************************************************************************!*\
  6339. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  6340. \************************************************************************************/
  6341. /*! no static exports found */
  6342. /***/ (function(module, exports, __webpack_require__) {
  6343. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6344. module.exports = addSubgraphConstraints;
  6345. function addSubgraphConstraints(g, cg, vs) {
  6346. var prev = {},
  6347. rootPrev;
  6348. _.forEach(vs, function(v) {
  6349. var child = g.parent(v),
  6350. parent,
  6351. prevChild;
  6352. while (child) {
  6353. parent = g.parent(child);
  6354. if (parent) {
  6355. prevChild = prev[parent];
  6356. prev[parent] = child;
  6357. } else {
  6358. prevChild = rootPrev;
  6359. rootPrev = child;
  6360. }
  6361. if (prevChild && prevChild !== child) {
  6362. cg.setEdge(prevChild, child);
  6363. return;
  6364. }
  6365. child = parent;
  6366. }
  6367. });
  6368. /*
  6369. function dfs(v) {
  6370. var children = v ? g.children(v) : g.children();
  6371. if (children.length) {
  6372. var min = Number.POSITIVE_INFINITY,
  6373. subgraphs = [];
  6374. _.each(children, function(child) {
  6375. var childMin = dfs(child);
  6376. if (g.children(child).length) {
  6377. subgraphs.push({ v: child, order: childMin });
  6378. }
  6379. min = Math.min(min, childMin);
  6380. });
  6381. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  6382. cg.setEdge(prev.v, curr.v);
  6383. return curr;
  6384. });
  6385. return min;
  6386. }
  6387. return g.node(v).order;
  6388. }
  6389. dfs(undefined);
  6390. */
  6391. }
  6392. /***/ }),
  6393. /***/ "../../node_modules/dagre/lib/order/barycenter.js":
  6394. /*!**********************************************************************!*\
  6395. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/barycenter.js ***!
  6396. \**********************************************************************/
  6397. /*! no static exports found */
  6398. /***/ (function(module, exports, __webpack_require__) {
  6399. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6400. module.exports = barycenter;
  6401. function barycenter(g, movable) {
  6402. return _.map(movable, function(v) {
  6403. var inV = g.inEdges(v);
  6404. if (!inV.length) {
  6405. return { v: v };
  6406. } else {
  6407. var result = _.reduce(inV, function(acc, e) {
  6408. var edge = g.edge(e),
  6409. nodeU = g.node(e.v);
  6410. return {
  6411. sum: acc.sum + (edge.weight * nodeU.order),
  6412. weight: acc.weight + edge.weight
  6413. };
  6414. }, { sum: 0, weight: 0 });
  6415. return {
  6416. v: v,
  6417. barycenter: result.sum / result.weight,
  6418. weight: result.weight
  6419. };
  6420. }
  6421. });
  6422. }
  6423. /***/ }),
  6424. /***/ "../../node_modules/dagre/lib/order/build-layer-graph.js":
  6425. /*!*****************************************************************************!*\
  6426. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/build-layer-graph.js ***!
  6427. \*****************************************************************************/
  6428. /*! no static exports found */
  6429. /***/ (function(module, exports, __webpack_require__) {
  6430. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6431. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  6432. module.exports = buildLayerGraph;
  6433. /*
  6434. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  6435. * contain all base and subgraph nodes from the request layer in their original
  6436. * hierarchy and any edges that are incident on these nodes and are of the type
  6437. * requested by the "relationship" parameter.
  6438. *
  6439. * Nodes from the requested rank that do not have parents are assigned a root
  6440. * node in the output graph, which is set in the root graph attribute. This
  6441. * makes it easy to walk the hierarchy of movable nodes during ordering.
  6442. *
  6443. * Pre-conditions:
  6444. *
  6445. * 1. Input graph is a DAG
  6446. * 2. Base nodes in the input graph have a rank attribute
  6447. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  6448. * 4. Edges have an assigned weight
  6449. *
  6450. * Post-conditions:
  6451. *
  6452. * 1. Output graph has all nodes in the movable rank with preserved
  6453. * hierarchy.
  6454. * 2. Root nodes in the movable layer are made children of the node
  6455. * indicated by the root attribute of the graph.
  6456. * 3. Non-movable nodes incident on movable nodes, selected by the
  6457. * relationship parameter, are included in the graph (without hierarchy).
  6458. * 4. Edges incident on movable nodes, selected by the relationship
  6459. * parameter, are added to the output graph.
  6460. * 5. The weights for copied edges are aggregated as need, since the output
  6461. * graph is not a multi-graph.
  6462. */
  6463. function buildLayerGraph(g, rank, relationship) {
  6464. var root = createRootNode(g),
  6465. result = new Graph({ compound: true }).setGraph({ root: root })
  6466. .setDefaultNodeLabel(function(v) { return g.node(v); });
  6467. _.forEach(g.nodes(), function(v) {
  6468. var node = g.node(v),
  6469. parent = g.parent(v);
  6470. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  6471. result.setNode(v);
  6472. result.setParent(v, parent || root);
  6473. // This assumes we have only short edges!
  6474. _.forEach(g[relationship](v), function(e) {
  6475. var u = e.v === v ? e.w : e.v,
  6476. edge = result.edge(u, v),
  6477. weight = !_.isUndefined(edge) ? edge.weight : 0;
  6478. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  6479. });
  6480. if (_.has(node, "minRank")) {
  6481. result.setNode(v, {
  6482. borderLeft: node.borderLeft[rank],
  6483. borderRight: node.borderRight[rank]
  6484. });
  6485. }
  6486. }
  6487. });
  6488. return result;
  6489. }
  6490. function createRootNode(g) {
  6491. var v;
  6492. while (g.hasNode((v = _.uniqueId("_root"))));
  6493. return v;
  6494. }
  6495. /***/ }),
  6496. /***/ "../../node_modules/dagre/lib/order/cross-count.js":
  6497. /*!***********************************************************************!*\
  6498. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/cross-count.js ***!
  6499. \***********************************************************************/
  6500. /*! no static exports found */
  6501. /***/ (function(module, exports, __webpack_require__) {
  6502. "use strict";
  6503. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6504. module.exports = crossCount;
  6505. /*
  6506. * A function that takes a layering (an array of layers, each with an array of
  6507. * ordererd nodes) and a graph and returns a weighted crossing count.
  6508. *
  6509. * Pre-conditions:
  6510. *
  6511. * 1. Input graph must be simple (not a multigraph), directed, and include
  6512. * only simple edges.
  6513. * 2. Edges in the input graph must have assigned weights.
  6514. *
  6515. * Post-conditions:
  6516. *
  6517. * 1. The graph and layering matrix are left unchanged.
  6518. *
  6519. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  6520. */
  6521. function crossCount(g, layering) {
  6522. var cc = 0;
  6523. for (var i = 1; i < layering.length; ++i) {
  6524. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  6525. }
  6526. return cc;
  6527. }
  6528. function twoLayerCrossCount(g, northLayer, southLayer) {
  6529. // Sort all of the edges between the north and south layers by their position
  6530. // in the north layer and then the south. Map these edges to the position of
  6531. // their head in the south layer.
  6532. var southPos = _.zipObject(southLayer,
  6533. _.map(southLayer, function (v, i) { return i; }));
  6534. var southEntries = _.flatten(_.map(northLayer, function(v) {
  6535. return _.sortBy(_.map(g.outEdges(v), function(e) {
  6536. return { pos: southPos[e.w], weight: g.edge(e).weight };
  6537. }), "pos");
  6538. }), true);
  6539. // Build the accumulator tree
  6540. var firstIndex = 1;
  6541. while (firstIndex < southLayer.length) firstIndex <<= 1;
  6542. var treeSize = 2 * firstIndex - 1;
  6543. firstIndex -= 1;
  6544. var tree = _.map(new Array(treeSize), function() { return 0; });
  6545. // Calculate the weighted crossings
  6546. var cc = 0;
  6547. _.forEach(southEntries.forEach(function(entry) {
  6548. var index = entry.pos + firstIndex;
  6549. tree[index] += entry.weight;
  6550. var weightSum = 0;
  6551. while (index > 0) {
  6552. if (index % 2) {
  6553. weightSum += tree[index + 1];
  6554. }
  6555. index = (index - 1) >> 1;
  6556. tree[index] += entry.weight;
  6557. }
  6558. cc += entry.weight * weightSum;
  6559. }));
  6560. return cc;
  6561. }
  6562. /***/ }),
  6563. /***/ "../../node_modules/dagre/lib/order/index.js":
  6564. /*!*****************************************************************!*\
  6565. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/index.js ***!
  6566. \*****************************************************************/
  6567. /*! no static exports found */
  6568. /***/ (function(module, exports, __webpack_require__) {
  6569. "use strict";
  6570. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6571. initOrder = __webpack_require__(/*! ./init-order */ "../../node_modules/dagre/lib/order/init-order.js"),
  6572. crossCount = __webpack_require__(/*! ./cross-count */ "../../node_modules/dagre/lib/order/cross-count.js"),
  6573. sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "../../node_modules/dagre/lib/order/sort-subgraph.js"),
  6574. buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "../../node_modules/dagre/lib/order/build-layer-graph.js"),
  6575. addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js"),
  6576. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6577. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6578. module.exports = order;
  6579. /*
  6580. * Applies heuristics to minimize edge crossings in the graph and sets the best
  6581. * order solution as an order attribute on each node.
  6582. *
  6583. * Pre-conditions:
  6584. *
  6585. * 1. Graph must be DAG
  6586. * 2. Graph nodes must be objects with a "rank" attribute
  6587. * 3. Graph edges must have the "weight" attribute
  6588. *
  6589. * Post-conditions:
  6590. *
  6591. * 1. Graph nodes will have an "order" attribute based on the results of the
  6592. * algorithm.
  6593. */
  6594. function order(g) {
  6595. var maxRank = util.maxRank(g),
  6596. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  6597. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  6598. var layering = initOrder(g);
  6599. assignOrder(g, layering);
  6600. var bestCC = Number.POSITIVE_INFINITY,
  6601. best;
  6602. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  6603. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  6604. layering = util.buildLayerMatrix(g);
  6605. var cc = crossCount(g, layering);
  6606. if (cc < bestCC) {
  6607. lastBest = 0;
  6608. best = _.cloneDeep(layering);
  6609. bestCC = cc;
  6610. }
  6611. }
  6612. assignOrder(g, best);
  6613. }
  6614. function buildLayerGraphs(g, ranks, relationship) {
  6615. return _.map(ranks, function(rank) {
  6616. return buildLayerGraph(g, rank, relationship);
  6617. });
  6618. }
  6619. function sweepLayerGraphs(layerGraphs, biasRight) {
  6620. var cg = new Graph();
  6621. _.forEach(layerGraphs, function(lg) {
  6622. var root = lg.graph().root;
  6623. var sorted = sortSubgraph(lg, root, cg, biasRight);
  6624. _.forEach(sorted.vs, function(v, i) {
  6625. lg.node(v).order = i;
  6626. });
  6627. addSubgraphConstraints(lg, cg, sorted.vs);
  6628. });
  6629. }
  6630. function assignOrder(g, layering) {
  6631. _.forEach(layering, function(layer) {
  6632. _.forEach(layer, function(v, i) {
  6633. g.node(v).order = i;
  6634. });
  6635. });
  6636. }
  6637. /***/ }),
  6638. /***/ "../../node_modules/dagre/lib/order/init-order.js":
  6639. /*!**********************************************************************!*\
  6640. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/init-order.js ***!
  6641. \**********************************************************************/
  6642. /*! no static exports found */
  6643. /***/ (function(module, exports, __webpack_require__) {
  6644. "use strict";
  6645. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6646. module.exports = initOrder;
  6647. /*
  6648. * Assigns an initial order value for each node by performing a DFS search
  6649. * starting from nodes in the first rank. Nodes are assigned an order in their
  6650. * rank as they are first visited.
  6651. *
  6652. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  6653. * Graphs."
  6654. *
  6655. * Returns a layering matrix with an array per layer and each layer sorted by
  6656. * the order of its nodes.
  6657. */
  6658. function initOrder(g) {
  6659. var visited = {},
  6660. simpleNodes = _.filter(g.nodes(), function(v) {
  6661. return !g.children(v).length;
  6662. }),
  6663. maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; })),
  6664. layers = _.map(_.range(maxRank + 1), function() { return []; });
  6665. function dfs(v) {
  6666. if (_.has(visited, v)) return;
  6667. visited[v] = true;
  6668. var node = g.node(v);
  6669. layers[node.rank].push(v);
  6670. _.forEach(g.successors(v), dfs);
  6671. }
  6672. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  6673. _.forEach(orderedVs, dfs);
  6674. return layers;
  6675. }
  6676. /***/ }),
  6677. /***/ "../../node_modules/dagre/lib/order/resolve-conflicts.js":
  6678. /*!*****************************************************************************!*\
  6679. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/resolve-conflicts.js ***!
  6680. \*****************************************************************************/
  6681. /*! no static exports found */
  6682. /***/ (function(module, exports, __webpack_require__) {
  6683. "use strict";
  6684. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6685. module.exports = resolveConflicts;
  6686. /*
  6687. * Given a list of entries of the form {v, barycenter, weight} and a
  6688. * constraint graph this function will resolve any conflicts between the
  6689. * constraint graph and the barycenters for the entries. If the barycenters for
  6690. * an entry would violate a constraint in the constraint graph then we coalesce
  6691. * the nodes in the conflict into a new node that respects the contraint and
  6692. * aggregates barycenter and weight information.
  6693. *
  6694. * This implementation is based on the description in Forster, "A Fast and
  6695. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  6696. * differs in some specific details.
  6697. *
  6698. * Pre-conditions:
  6699. *
  6700. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  6701. * no barycenter, then {v}.
  6702. *
  6703. * Returns:
  6704. *
  6705. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  6706. * `vs` may either be a singleton or it may be an aggregation of nodes
  6707. * ordered such that they do not violate constraints from the constraint
  6708. * graph. The property `i` is the lowest original index of any of the
  6709. * elements in `vs`.
  6710. */
  6711. function resolveConflicts(entries, cg) {
  6712. var mappedEntries = {};
  6713. _.forEach(entries, function(entry, i) {
  6714. var tmp = mappedEntries[entry.v] = {
  6715. indegree: 0,
  6716. "in": [],
  6717. out: [],
  6718. vs: [entry.v],
  6719. i: i
  6720. };
  6721. if (!_.isUndefined(entry.barycenter)) {
  6722. tmp.barycenter = entry.barycenter;
  6723. tmp.weight = entry.weight;
  6724. }
  6725. });
  6726. _.forEach(cg.edges(), function(e) {
  6727. var entryV = mappedEntries[e.v],
  6728. entryW = mappedEntries[e.w];
  6729. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  6730. entryW.indegree++;
  6731. entryV.out.push(mappedEntries[e.w]);
  6732. }
  6733. });
  6734. var sourceSet = _.filter(mappedEntries, function(entry) {
  6735. return !entry.indegree;
  6736. });
  6737. return doResolveConflicts(sourceSet);
  6738. }
  6739. function doResolveConflicts(sourceSet) {
  6740. var entries = [];
  6741. function handleIn(vEntry) {
  6742. return function(uEntry) {
  6743. if (uEntry.merged) {
  6744. return;
  6745. }
  6746. if (_.isUndefined(uEntry.barycenter) ||
  6747. _.isUndefined(vEntry.barycenter) ||
  6748. uEntry.barycenter >= vEntry.barycenter) {
  6749. mergeEntries(vEntry, uEntry);
  6750. }
  6751. };
  6752. }
  6753. function handleOut(vEntry) {
  6754. return function(wEntry) {
  6755. wEntry["in"].push(vEntry);
  6756. if (--wEntry.indegree === 0) {
  6757. sourceSet.push(wEntry);
  6758. }
  6759. };
  6760. }
  6761. while (sourceSet.length) {
  6762. var entry = sourceSet.pop();
  6763. entries.push(entry);
  6764. _.forEach(entry["in"].reverse(), handleIn(entry));
  6765. _.forEach(entry.out, handleOut(entry));
  6766. }
  6767. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  6768. function(entry) {
  6769. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  6770. });
  6771. }
  6772. function mergeEntries(target, source) {
  6773. var sum = 0,
  6774. weight = 0;
  6775. if (target.weight) {
  6776. sum += target.barycenter * target.weight;
  6777. weight += target.weight;
  6778. }
  6779. if (source.weight) {
  6780. sum += source.barycenter * source.weight;
  6781. weight += source.weight;
  6782. }
  6783. target.vs = source.vs.concat(target.vs);
  6784. target.barycenter = sum / weight;
  6785. target.weight = weight;
  6786. target.i = Math.min(source.i, target.i);
  6787. source.merged = true;
  6788. }
  6789. /***/ }),
  6790. /***/ "../../node_modules/dagre/lib/order/sort-subgraph.js":
  6791. /*!*************************************************************************!*\
  6792. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/sort-subgraph.js ***!
  6793. \*************************************************************************/
  6794. /*! no static exports found */
  6795. /***/ (function(module, exports, __webpack_require__) {
  6796. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6797. barycenter = __webpack_require__(/*! ./barycenter */ "../../node_modules/dagre/lib/order/barycenter.js"),
  6798. resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "../../node_modules/dagre/lib/order/resolve-conflicts.js"),
  6799. sort = __webpack_require__(/*! ./sort */ "../../node_modules/dagre/lib/order/sort.js");
  6800. module.exports = sortSubgraph;
  6801. function sortSubgraph(g, v, cg, biasRight) {
  6802. var movable = g.children(v),
  6803. node = g.node(v),
  6804. bl = node ? node.borderLeft : undefined,
  6805. br = node ? node.borderRight: undefined,
  6806. subgraphs = {};
  6807. if (bl) {
  6808. movable = _.filter(movable, function(w) {
  6809. return w !== bl && w !== br;
  6810. });
  6811. }
  6812. var barycenters = barycenter(g, movable);
  6813. _.forEach(barycenters, function(entry) {
  6814. if (g.children(entry.v).length) {
  6815. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  6816. subgraphs[entry.v] = subgraphResult;
  6817. if (_.has(subgraphResult, "barycenter")) {
  6818. mergeBarycenters(entry, subgraphResult);
  6819. }
  6820. }
  6821. });
  6822. var entries = resolveConflicts(barycenters, cg);
  6823. expandSubgraphs(entries, subgraphs);
  6824. var result = sort(entries, biasRight);
  6825. if (bl) {
  6826. result.vs = _.flatten([bl, result.vs, br], true);
  6827. if (g.predecessors(bl).length) {
  6828. var blPred = g.node(g.predecessors(bl)[0]),
  6829. brPred = g.node(g.predecessors(br)[0]);
  6830. if (!_.has(result, "barycenter")) {
  6831. result.barycenter = 0;
  6832. result.weight = 0;
  6833. }
  6834. result.barycenter = (result.barycenter * result.weight +
  6835. blPred.order + brPred.order) / (result.weight + 2);
  6836. result.weight += 2;
  6837. }
  6838. }
  6839. return result;
  6840. }
  6841. function expandSubgraphs(entries, subgraphs) {
  6842. _.forEach(entries, function(entry) {
  6843. entry.vs = _.flatten(entry.vs.map(function(v) {
  6844. if (subgraphs[v]) {
  6845. return subgraphs[v].vs;
  6846. }
  6847. return v;
  6848. }), true);
  6849. });
  6850. }
  6851. function mergeBarycenters(target, other) {
  6852. if (!_.isUndefined(target.barycenter)) {
  6853. target.barycenter = (target.barycenter * target.weight +
  6854. other.barycenter * other.weight) /
  6855. (target.weight + other.weight);
  6856. target.weight += other.weight;
  6857. } else {
  6858. target.barycenter = other.barycenter;
  6859. target.weight = other.weight;
  6860. }
  6861. }
  6862. /***/ }),
  6863. /***/ "../../node_modules/dagre/lib/order/sort.js":
  6864. /*!****************************************************************!*\
  6865. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/sort.js ***!
  6866. \****************************************************************/
  6867. /*! no static exports found */
  6868. /***/ (function(module, exports, __webpack_require__) {
  6869. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6870. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6871. module.exports = sort;
  6872. function sort(entries, biasRight) {
  6873. var parts = util.partition(entries, function(entry) {
  6874. return _.has(entry, "barycenter");
  6875. });
  6876. var sortable = parts.lhs,
  6877. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  6878. vs = [],
  6879. sum = 0,
  6880. weight = 0,
  6881. vsIndex = 0;
  6882. sortable.sort(compareWithBias(!!biasRight));
  6883. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6884. _.forEach(sortable, function (entry) {
  6885. vsIndex += entry.vs.length;
  6886. vs.push(entry.vs);
  6887. sum += entry.barycenter * entry.weight;
  6888. weight += entry.weight;
  6889. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6890. });
  6891. var result = { vs: _.flatten(vs, true) };
  6892. if (weight) {
  6893. result.barycenter = sum / weight;
  6894. result.weight = weight;
  6895. }
  6896. return result;
  6897. }
  6898. function consumeUnsortable(vs, unsortable, index) {
  6899. var last;
  6900. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  6901. unsortable.pop();
  6902. vs.push(last.vs);
  6903. index++;
  6904. }
  6905. return index;
  6906. }
  6907. function compareWithBias(bias) {
  6908. return function(entryV, entryW) {
  6909. if (entryV.barycenter < entryW.barycenter) {
  6910. return -1;
  6911. } else if (entryV.barycenter > entryW.barycenter) {
  6912. return 1;
  6913. }
  6914. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  6915. };
  6916. }
  6917. /***/ }),
  6918. /***/ "../../node_modules/dagre/lib/parent-dummy-chains.js":
  6919. /*!*************************************************************************!*\
  6920. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/parent-dummy-chains.js ***!
  6921. \*************************************************************************/
  6922. /*! no static exports found */
  6923. /***/ (function(module, exports, __webpack_require__) {
  6924. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  6925. module.exports = parentDummyChains;
  6926. function parentDummyChains(g) {
  6927. var postorderNums = postorder(g);
  6928. _.forEach(g.graph().dummyChains, function(v) {
  6929. var node = g.node(v),
  6930. edgeObj = node.edgeObj,
  6931. pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w),
  6932. path = pathData.path,
  6933. lca = pathData.lca,
  6934. pathIdx = 0,
  6935. pathV = path[pathIdx],
  6936. ascending = true;
  6937. while (v !== edgeObj.w) {
  6938. node = g.node(v);
  6939. if (ascending) {
  6940. while ((pathV = path[pathIdx]) !== lca &&
  6941. g.node(pathV).maxRank < node.rank) {
  6942. pathIdx++;
  6943. }
  6944. if (pathV === lca) {
  6945. ascending = false;
  6946. }
  6947. }
  6948. if (!ascending) {
  6949. while (pathIdx < path.length - 1 &&
  6950. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  6951. pathIdx++;
  6952. }
  6953. pathV = path[pathIdx];
  6954. }
  6955. g.setParent(v, pathV);
  6956. v = g.successors(v)[0];
  6957. }
  6958. });
  6959. }
  6960. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  6961. // full path and the LCA.
  6962. function findPath(g, postorderNums, v, w) {
  6963. var vPath = [],
  6964. wPath = [],
  6965. low = Math.min(postorderNums[v].low, postorderNums[w].low),
  6966. lim = Math.max(postorderNums[v].lim, postorderNums[w].lim),
  6967. parent,
  6968. lca;
  6969. // Traverse up from v to find the LCA
  6970. parent = v;
  6971. do {
  6972. parent = g.parent(parent);
  6973. vPath.push(parent);
  6974. } while (parent &&
  6975. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  6976. lca = parent;
  6977. // Traverse from w to LCA
  6978. parent = w;
  6979. while ((parent = g.parent(parent)) !== lca) {
  6980. wPath.push(parent);
  6981. }
  6982. return { path: vPath.concat(wPath.reverse()), lca: lca };
  6983. }
  6984. function postorder(g) {
  6985. var result = {},
  6986. lim = 0;
  6987. function dfs(v) {
  6988. var low = lim;
  6989. _.forEach(g.children(v), dfs);
  6990. result[v] = { low: low, lim: lim++ };
  6991. }
  6992. _.forEach(g.children(), dfs);
  6993. return result;
  6994. }
  6995. /***/ }),
  6996. /***/ "../../node_modules/dagre/lib/position/bk.js":
  6997. /*!*****************************************************************!*\
  6998. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/position/bk.js ***!
  6999. \*****************************************************************/
  7000. /*! no static exports found */
  7001. /***/ (function(module, exports, __webpack_require__) {
  7002. "use strict";
  7003. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7004. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  7005. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  7006. /*
  7007. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  7008. * and Simple Horizontal Coordinate Assignment."
  7009. */
  7010. module.exports = {
  7011. positionX: positionX,
  7012. findType1Conflicts: findType1Conflicts,
  7013. findType2Conflicts: findType2Conflicts,
  7014. addConflict: addConflict,
  7015. hasConflict: hasConflict,
  7016. verticalAlignment: verticalAlignment,
  7017. horizontalCompaction: horizontalCompaction,
  7018. alignCoordinates: alignCoordinates,
  7019. findSmallestWidthAlignment: findSmallestWidthAlignment,
  7020. balance: balance
  7021. };
  7022. /*
  7023. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  7024. * property. A type-1 conflict is one where a non-inner segment crosses an
  7025. * inner segment. An inner segment is an edge with both incident nodes marked
  7026. * with the "dummy" property.
  7027. *
  7028. * This algorithm scans layer by layer, starting with the second, for type-1
  7029. * conflicts between the current layer and the previous layer. For each layer
  7030. * it scans the nodes from left to right until it reaches one that is incident
  7031. * on an inner segment. It then scans predecessors to determine if they have
  7032. * edges that cross that inner segment. At the end a final scan is done for all
  7033. * nodes on the current rank to see if they cross the last visited inner
  7034. * segment.
  7035. *
  7036. * This algorithm (safely) assumes that a dummy node will only be incident on a
  7037. * single node in the layers being scanned.
  7038. */
  7039. function findType1Conflicts(g, layering) {
  7040. var conflicts = {};
  7041. function visitLayer(prevLayer, layer) {
  7042. var
  7043. // last visited node in the previous layer that is incident on an inner
  7044. // segment.
  7045. k0 = 0,
  7046. // Tracks the last node in this layer scanned for crossings with a type-1
  7047. // segment.
  7048. scanPos = 0,
  7049. prevLayerLength = prevLayer.length,
  7050. lastNode = _.last(layer);
  7051. _.forEach(layer, function(v, i) {
  7052. var w = findOtherInnerSegmentNode(g, v),
  7053. k1 = w ? g.node(w).order : prevLayerLength;
  7054. if (w || v === lastNode) {
  7055. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  7056. _.forEach(g.predecessors(scanNode), function(u) {
  7057. var uLabel = g.node(u),
  7058. uPos = uLabel.order;
  7059. if ((uPos < k0 || k1 < uPos) &&
  7060. !(uLabel.dummy && g.node(scanNode).dummy)) {
  7061. addConflict(conflicts, u, scanNode);
  7062. }
  7063. });
  7064. });
  7065. scanPos = i + 1;
  7066. k0 = k1;
  7067. }
  7068. });
  7069. return layer;
  7070. }
  7071. _.reduce(layering, visitLayer);
  7072. return conflicts;
  7073. }
  7074. function findType2Conflicts(g, layering) {
  7075. var conflicts = {};
  7076. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  7077. var v;
  7078. _.forEach(_.range(southPos, southEnd), function(i) {
  7079. v = south[i];
  7080. if (g.node(v).dummy) {
  7081. _.forEach(g.predecessors(v), function(u) {
  7082. var uNode = g.node(u);
  7083. if (uNode.dummy &&
  7084. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  7085. addConflict(conflicts, u, v);
  7086. }
  7087. });
  7088. }
  7089. });
  7090. }
  7091. function visitLayer(north, south) {
  7092. var prevNorthPos = -1,
  7093. nextNorthPos,
  7094. southPos = 0;
  7095. _.forEach(south, function(v, southLookahead) {
  7096. if (g.node(v).dummy === "border") {
  7097. var predecessors = g.predecessors(v);
  7098. if (predecessors.length) {
  7099. nextNorthPos = g.node(predecessors[0]).order;
  7100. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  7101. southPos = southLookahead;
  7102. prevNorthPos = nextNorthPos;
  7103. }
  7104. }
  7105. scan(south, southPos, south.length, nextNorthPos, north.length);
  7106. });
  7107. return south;
  7108. }
  7109. _.reduce(layering, visitLayer);
  7110. return conflicts;
  7111. }
  7112. function findOtherInnerSegmentNode(g, v) {
  7113. if (g.node(v).dummy) {
  7114. return _.find(g.predecessors(v), function(u) {
  7115. return g.node(u).dummy;
  7116. });
  7117. }
  7118. }
  7119. function addConflict(conflicts, v, w) {
  7120. if (v > w) {
  7121. var tmp = v;
  7122. v = w;
  7123. w = tmp;
  7124. }
  7125. var conflictsV = conflicts[v];
  7126. if (!conflictsV) {
  7127. conflicts[v] = conflictsV = {};
  7128. }
  7129. conflictsV[w] = true;
  7130. }
  7131. function hasConflict(conflicts, v, w) {
  7132. if (v > w) {
  7133. var tmp = v;
  7134. v = w;
  7135. w = tmp;
  7136. }
  7137. return _.has(conflicts[v], w);
  7138. }
  7139. /*
  7140. * Try to align nodes into vertical "blocks" where possible. This algorithm
  7141. * attempts to align a node with one of its median neighbors. If the edge
  7142. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  7143. * If a previous node has already formed a block with a node after the node
  7144. * we're trying to form a block with, we also ignore that possibility - our
  7145. * blocks would be split in that scenario.
  7146. */
  7147. function verticalAlignment(g, layering, conflicts, neighborFn) {
  7148. var root = {},
  7149. align = {},
  7150. pos = {};
  7151. // We cache the position here based on the layering because the graph and
  7152. // layering may be out of sync. The layering matrix is manipulated to
  7153. // generate different extreme alignments.
  7154. _.forEach(layering, function(layer) {
  7155. _.forEach(layer, function(v, order) {
  7156. root[v] = v;
  7157. align[v] = v;
  7158. pos[v] = order;
  7159. });
  7160. });
  7161. _.forEach(layering, function(layer) {
  7162. var prevIdx = -1;
  7163. _.forEach(layer, function(v) {
  7164. var ws = neighborFn(v);
  7165. if (ws.length) {
  7166. ws = _.sortBy(ws, function(w) { return pos[w]; });
  7167. var mp = (ws.length - 1) / 2;
  7168. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  7169. var w = ws[i];
  7170. if (align[v] === v &&
  7171. prevIdx < pos[w] &&
  7172. !hasConflict(conflicts, v, w)) {
  7173. align[w] = v;
  7174. align[v] = root[v] = root[w];
  7175. prevIdx = pos[w];
  7176. }
  7177. }
  7178. }
  7179. });
  7180. });
  7181. return { root: root, align: align };
  7182. }
  7183. function horizontalCompaction(g, layering, root, align, reverseSep) {
  7184. // This portion of the algorithm differs from BK due to a number of problems.
  7185. // Instead of their algorithm we construct a new block graph and do two
  7186. // sweeps. The first sweep places blocks with the smallest possible
  7187. // coordinates. The second sweep removes unused space by moving blocks to the
  7188. // greatest coordinates without violating separation.
  7189. var xs = {},
  7190. blockG = buildBlockGraph(g, layering, root, reverseSep),
  7191. borderType = reverseSep ? "borderLeft" : "borderRight";
  7192. function iterate(setXsFunc, nextNodesFunc) {
  7193. var stack = blockG.nodes();
  7194. var elem = stack.pop();
  7195. var visited = {};
  7196. while (elem) {
  7197. if (visited[elem]) {
  7198. setXsFunc(elem);
  7199. } else {
  7200. visited[elem] = true;
  7201. stack.push(elem);
  7202. stack = stack.concat(nextNodesFunc(elem));
  7203. }
  7204. elem = stack.pop();
  7205. }
  7206. }
  7207. // First pass, assign smallest coordinates
  7208. function pass1(elem) {
  7209. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  7210. return Math.max(acc, xs[e.v] + blockG.edge(e));
  7211. }, 0);
  7212. }
  7213. // Second pass, assign greatest coordinates
  7214. function pass2(elem) {
  7215. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  7216. return Math.min(acc, xs[e.w] - blockG.edge(e));
  7217. }, Number.POSITIVE_INFINITY);
  7218. var node = g.node(elem);
  7219. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  7220. xs[elem] = Math.max(xs[elem], min);
  7221. }
  7222. }
  7223. iterate(pass1, blockG.predecessors.bind(blockG));
  7224. iterate(pass2, blockG.successors.bind(blockG));
  7225. // Assign x coordinates to all nodes
  7226. _.forEach(align, function(v) {
  7227. xs[v] = xs[root[v]];
  7228. });
  7229. return xs;
  7230. }
  7231. function buildBlockGraph(g, layering, root, reverseSep) {
  7232. var blockGraph = new Graph(),
  7233. graphLabel = g.graph(),
  7234. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  7235. _.forEach(layering, function(layer) {
  7236. var u;
  7237. _.forEach(layer, function(v) {
  7238. var vRoot = root[v];
  7239. blockGraph.setNode(vRoot);
  7240. if (u) {
  7241. var uRoot = root[u],
  7242. prevMax = blockGraph.edge(uRoot, vRoot);
  7243. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  7244. }
  7245. u = v;
  7246. });
  7247. });
  7248. return blockGraph;
  7249. }
  7250. /*
  7251. * Returns the alignment that has the smallest width of the given alignments.
  7252. */
  7253. function findSmallestWidthAlignment(g, xss) {
  7254. return _.minBy(_.values(xss), function (xs) {
  7255. var max = Number.NEGATIVE_INFINITY;
  7256. var min = Number.POSITIVE_INFINITY;
  7257. _.forIn(xs, function (x, v) {
  7258. var halfWidth = width(g, v) / 2;
  7259. max = Math.max(x + halfWidth, max);
  7260. min = Math.min(x - halfWidth, min);
  7261. });
  7262. return max - min;
  7263. });
  7264. }
  7265. /*
  7266. * Align the coordinates of each of the layout alignments such that
  7267. * left-biased alignments have their minimum coordinate at the same point as
  7268. * the minimum coordinate of the smallest width alignment and right-biased
  7269. * alignments have their maximum coordinate at the same point as the maximum
  7270. * coordinate of the smallest width alignment.
  7271. */
  7272. function alignCoordinates(xss, alignTo) {
  7273. var alignToVals = _.values(alignTo),
  7274. alignToMin = _.min(alignToVals),
  7275. alignToMax = _.max(alignToVals);
  7276. _.forEach(["u", "d"], function(vert) {
  7277. _.forEach(["l", "r"], function(horiz) {
  7278. var alignment = vert + horiz,
  7279. xs = xss[alignment],
  7280. delta;
  7281. if (xs === alignTo) return;
  7282. var xsVals = _.values(xs);
  7283. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  7284. if (delta) {
  7285. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  7286. }
  7287. });
  7288. });
  7289. }
  7290. function balance(xss, align) {
  7291. return _.mapValues(xss.ul, function(ignore, v) {
  7292. if (align) {
  7293. return xss[align.toLowerCase()][v];
  7294. } else {
  7295. var xs = _.sortBy(_.map(xss, v));
  7296. return (xs[1] + xs[2]) / 2;
  7297. }
  7298. });
  7299. }
  7300. function positionX(g) {
  7301. var layering = util.buildLayerMatrix(g),
  7302. conflicts = _.merge(findType1Conflicts(g, layering),
  7303. findType2Conflicts(g, layering));
  7304. var xss = {},
  7305. adjustedLayering;
  7306. _.forEach(["u", "d"], function(vert) {
  7307. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  7308. _.forEach(["l", "r"], function(horiz) {
  7309. if (horiz === "r") {
  7310. adjustedLayering = _.map(adjustedLayering, function(inner) {
  7311. return _.values(inner).reverse();
  7312. });
  7313. }
  7314. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  7315. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  7316. var xs = horizontalCompaction(g, adjustedLayering,
  7317. align.root, align.align,
  7318. horiz === "r");
  7319. if (horiz === "r") {
  7320. xs = _.mapValues(xs, function(x) { return -x; });
  7321. }
  7322. xss[vert + horiz] = xs;
  7323. });
  7324. });
  7325. var smallestWidth = findSmallestWidthAlignment(g, xss);
  7326. alignCoordinates(xss, smallestWidth);
  7327. return balance(xss, g.graph().align);
  7328. }
  7329. function sep(nodeSep, edgeSep, reverseSep) {
  7330. return function(g, v, w) {
  7331. var vLabel = g.node(v),
  7332. wLabel = g.node(w),
  7333. sum = 0,
  7334. delta;
  7335. sum += vLabel.width / 2;
  7336. if (_.has(vLabel, "labelpos")) {
  7337. switch (vLabel.labelpos.toLowerCase()) {
  7338. case "l": delta = -vLabel.width / 2; break;
  7339. case "r": delta = vLabel.width / 2; break;
  7340. }
  7341. }
  7342. if (delta) {
  7343. sum += reverseSep ? delta : -delta;
  7344. }
  7345. delta = 0;
  7346. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  7347. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  7348. sum += wLabel.width / 2;
  7349. if (_.has(wLabel, "labelpos")) {
  7350. switch (wLabel.labelpos.toLowerCase()) {
  7351. case "l": delta = wLabel.width / 2; break;
  7352. case "r": delta = -wLabel.width / 2; break;
  7353. }
  7354. }
  7355. if (delta) {
  7356. sum += reverseSep ? delta : -delta;
  7357. }
  7358. delta = 0;
  7359. return sum;
  7360. };
  7361. }
  7362. function width(g, v) {
  7363. return g.node(v).width;
  7364. }
  7365. /***/ }),
  7366. /***/ "../../node_modules/dagre/lib/position/index.js":
  7367. /*!********************************************************************!*\
  7368. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/position/index.js ***!
  7369. \********************************************************************/
  7370. /*! no static exports found */
  7371. /***/ (function(module, exports, __webpack_require__) {
  7372. "use strict";
  7373. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7374. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js"),
  7375. positionX = __webpack_require__(/*! ./bk */ "../../node_modules/dagre/lib/position/bk.js").positionX;
  7376. module.exports = position;
  7377. function position(g) {
  7378. g = util.asNonCompoundGraph(g);
  7379. positionY(g);
  7380. _.forEach(positionX(g), function(x, v) {
  7381. g.node(v).x = x;
  7382. });
  7383. }
  7384. function positionY(g) {
  7385. var layering = util.buildLayerMatrix(g),
  7386. rankSep = g.graph().ranksep,
  7387. prevY = 0;
  7388. _.forEach(layering, function(layer) {
  7389. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  7390. _.forEach(layer, function(v) {
  7391. g.node(v).y = prevY + maxHeight / 2;
  7392. });
  7393. prevY += maxHeight + rankSep;
  7394. });
  7395. }
  7396. /***/ }),
  7397. /***/ "../../node_modules/dagre/lib/rank/feasible-tree.js":
  7398. /*!************************************************************************!*\
  7399. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/feasible-tree.js ***!
  7400. \************************************************************************/
  7401. /*! no static exports found */
  7402. /***/ (function(module, exports, __webpack_require__) {
  7403. "use strict";
  7404. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7405. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  7406. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  7407. module.exports = feasibleTree;
  7408. /*
  7409. * Constructs a spanning tree with tight edges and adjusted the input node's
  7410. * ranks to achieve this. A tight edge is one that is has a length that matches
  7411. * its "minlen" attribute.
  7412. *
  7413. * The basic structure for this function is derived from Gansner, et al., "A
  7414. * Technique for Drawing Directed Graphs."
  7415. *
  7416. * Pre-conditions:
  7417. *
  7418. * 1. Graph must be a DAG.
  7419. * 2. Graph must be connected.
  7420. * 3. Graph must have at least one node.
  7421. * 5. Graph nodes must have been previously assigned a "rank" property that
  7422. * respects the "minlen" property of incident edges.
  7423. * 6. Graph edges must have a "minlen" property.
  7424. *
  7425. * Post-conditions:
  7426. *
  7427. * - Graph nodes will have their rank adjusted to ensure that all edges are
  7428. * tight.
  7429. *
  7430. * Returns a tree (undirected graph) that is constructed using only "tight"
  7431. * edges.
  7432. */
  7433. function feasibleTree(g) {
  7434. var t = new Graph({ directed: false });
  7435. // Choose arbitrary node from which to start our tree
  7436. var start = g.nodes()[0],
  7437. size = g.nodeCount();
  7438. t.setNode(start, {});
  7439. var edge, delta;
  7440. while (tightTree(t, g) < size) {
  7441. edge = findMinSlackEdge(t, g);
  7442. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  7443. shiftRanks(t, g, delta);
  7444. }
  7445. return t;
  7446. }
  7447. /*
  7448. * Finds a maximal tree of tight edges and returns the number of nodes in the
  7449. * tree.
  7450. */
  7451. function tightTree(t, g) {
  7452. function dfs(v) {
  7453. _.forEach(g.nodeEdges(v), function(e) {
  7454. var edgeV = e.v,
  7455. w = (v === edgeV) ? e.w : edgeV;
  7456. if (!t.hasNode(w) && !slack(g, e)) {
  7457. t.setNode(w, {});
  7458. t.setEdge(v, w, {});
  7459. dfs(w);
  7460. }
  7461. });
  7462. }
  7463. _.forEach(t.nodes(), dfs);
  7464. return t.nodeCount();
  7465. }
  7466. /*
  7467. * Finds the edge with the smallest slack that is incident on tree and returns
  7468. * it.
  7469. */
  7470. function findMinSlackEdge(t, g) {
  7471. return _.minBy(g.edges(), function(e) {
  7472. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  7473. return slack(g, e);
  7474. }
  7475. });
  7476. }
  7477. function shiftRanks(t, g, delta) {
  7478. _.forEach(t.nodes(), function(v) {
  7479. g.node(v).rank += delta;
  7480. });
  7481. }
  7482. /***/ }),
  7483. /***/ "../../node_modules/dagre/lib/rank/index.js":
  7484. /*!****************************************************************!*\
  7485. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/index.js ***!
  7486. \****************************************************************/
  7487. /*! no static exports found */
  7488. /***/ (function(module, exports, __webpack_require__) {
  7489. "use strict";
  7490. var rankUtil = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js"),
  7491. longestPath = rankUtil.longestPath,
  7492. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7493. networkSimplex = __webpack_require__(/*! ./network-simplex */ "../../node_modules/dagre/lib/rank/network-simplex.js");
  7494. module.exports = rank;
  7495. /*
  7496. * Assigns a rank to each node in the input graph that respects the "minlen"
  7497. * constraint specified on edges between nodes.
  7498. *
  7499. * This basic structure is derived from Gansner, et al., "A Technique for
  7500. * Drawing Directed Graphs."
  7501. *
  7502. * Pre-conditions:
  7503. *
  7504. * 1. Graph must be a connected DAG
  7505. * 2. Graph nodes must be objects
  7506. * 3. Graph edges must have "weight" and "minlen" attributes
  7507. *
  7508. * Post-conditions:
  7509. *
  7510. * 1. Graph nodes will have a "rank" attribute based on the results of the
  7511. * algorithm. Ranks can start at any index (including negative), we'll
  7512. * fix them up later.
  7513. */
  7514. function rank(g) {
  7515. switch(g.graph().ranker) {
  7516. case "network-simplex": networkSimplexRanker(g); break;
  7517. case "tight-tree": tightTreeRanker(g); break;
  7518. case "longest-path": longestPathRanker(g); break;
  7519. default: networkSimplexRanker(g);
  7520. }
  7521. }
  7522. // A fast and simple ranker, but results are far from optimal.
  7523. var longestPathRanker = longestPath;
  7524. function tightTreeRanker(g) {
  7525. longestPath(g);
  7526. feasibleTree(g);
  7527. }
  7528. function networkSimplexRanker(g) {
  7529. networkSimplex(g);
  7530. }
  7531. /***/ }),
  7532. /***/ "../../node_modules/dagre/lib/rank/network-simplex.js":
  7533. /*!**************************************************************************!*\
  7534. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/network-simplex.js ***!
  7535. \**************************************************************************/
  7536. /*! no static exports found */
  7537. /***/ (function(module, exports, __webpack_require__) {
  7538. "use strict";
  7539. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7540. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7541. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack,
  7542. initRank = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").longestPath,
  7543. preorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.preorder,
  7544. postorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.postorder,
  7545. simplify = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js").simplify;
  7546. module.exports = networkSimplex;
  7547. // Expose some internals for testing purposes
  7548. networkSimplex.initLowLimValues = initLowLimValues;
  7549. networkSimplex.initCutValues = initCutValues;
  7550. networkSimplex.calcCutValue = calcCutValue;
  7551. networkSimplex.leaveEdge = leaveEdge;
  7552. networkSimplex.enterEdge = enterEdge;
  7553. networkSimplex.exchangeEdges = exchangeEdges;
  7554. /*
  7555. * The network simplex algorithm assigns ranks to each node in the input graph
  7556. * and iteratively improves the ranking to reduce the length of edges.
  7557. *
  7558. * Preconditions:
  7559. *
  7560. * 1. The input graph must be a DAG.
  7561. * 2. All nodes in the graph must have an object value.
  7562. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  7563. *
  7564. * Postconditions:
  7565. *
  7566. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  7567. * been optimized by the network simplex algorithm. Ranks start at 0.
  7568. *
  7569. *
  7570. * A rough sketch of the algorithm is as follows:
  7571. *
  7572. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  7573. * which assigns ranks to the lowest position possible. In general this
  7574. * leads to very wide bottom ranks and unnecessarily long edges.
  7575. * 2. Construct a feasible tight tree. A tight tree is one such that all
  7576. * edges in the tree have no slack (difference between length of edge
  7577. * and minlen for the edge). This by itself greatly improves the assigned
  7578. * rankings by shorting edges.
  7579. * 3. Iteratively find edges that have negative cut values. Generally a
  7580. * negative cut value indicates that the edge could be removed and a new
  7581. * tree edge could be added to produce a more compact graph.
  7582. *
  7583. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  7584. * for Drawing Directed Graphs." The structure of the file roughly follows the
  7585. * structure of the overall algorithm.
  7586. */
  7587. function networkSimplex(g) {
  7588. g = simplify(g);
  7589. initRank(g);
  7590. var t = feasibleTree(g);
  7591. initLowLimValues(t);
  7592. initCutValues(t, g);
  7593. var e, f;
  7594. while ((e = leaveEdge(t))) {
  7595. f = enterEdge(t, g, e);
  7596. exchangeEdges(t, g, e, f);
  7597. }
  7598. }
  7599. /*
  7600. * Initializes cut values for all edges in the tree.
  7601. */
  7602. function initCutValues(t, g) {
  7603. var vs = postorder(t, t.nodes());
  7604. vs = vs.slice(0, vs.length - 1);
  7605. _.forEach(vs, function(v) {
  7606. assignCutValue(t, g, v);
  7607. });
  7608. }
  7609. function assignCutValue(t, g, child) {
  7610. var childLab = t.node(child),
  7611. parent = childLab.parent;
  7612. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  7613. }
  7614. /*
  7615. * Given the tight tree, its graph, and a child in the graph calculate and
  7616. * return the cut value for the edge between the child and its parent.
  7617. */
  7618. function calcCutValue(t, g, child) {
  7619. var childLab = t.node(child),
  7620. parent = childLab.parent,
  7621. // True if the child is on the tail end of the edge in the directed graph
  7622. childIsTail = true,
  7623. // The graph's view of the tree edge we're inspecting
  7624. graphEdge = g.edge(child, parent),
  7625. // The accumulated cut value for the edge between this node and its parent
  7626. cutValue = 0;
  7627. if (!graphEdge) {
  7628. childIsTail = false;
  7629. graphEdge = g.edge(parent, child);
  7630. }
  7631. cutValue = graphEdge.weight;
  7632. _.forEach(g.nodeEdges(child), function(e) {
  7633. var isOutEdge = e.v === child,
  7634. other = isOutEdge ? e.w : e.v;
  7635. if (other !== parent) {
  7636. var pointsToHead = isOutEdge === childIsTail,
  7637. otherWeight = g.edge(e).weight;
  7638. cutValue += pointsToHead ? otherWeight : -otherWeight;
  7639. if (isTreeEdge(t, child, other)) {
  7640. var otherCutValue = t.edge(child, other).cutvalue;
  7641. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  7642. }
  7643. }
  7644. });
  7645. return cutValue;
  7646. }
  7647. function initLowLimValues(tree, root) {
  7648. if (arguments.length < 2) {
  7649. root = tree.nodes()[0];
  7650. }
  7651. dfsAssignLowLim(tree, {}, 1, root);
  7652. }
  7653. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  7654. var low = nextLim,
  7655. label = tree.node(v);
  7656. visited[v] = true;
  7657. _.forEach(tree.neighbors(v), function(w) {
  7658. if (!_.has(visited, w)) {
  7659. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  7660. }
  7661. });
  7662. label.low = low;
  7663. label.lim = nextLim++;
  7664. if (parent) {
  7665. label.parent = parent;
  7666. } else {
  7667. // TODO should be able to remove this when we incrementally update low lim
  7668. delete label.parent;
  7669. }
  7670. return nextLim;
  7671. }
  7672. function leaveEdge(tree) {
  7673. return _.find(tree.edges(), function(e) {
  7674. return tree.edge(e).cutvalue < 0;
  7675. });
  7676. }
  7677. function enterEdge(t, g, edge) {
  7678. var v = edge.v,
  7679. w = edge.w;
  7680. // For the rest of this function we assume that v is the tail and w is the
  7681. // head, so if we don't have this edge in the graph we should flip it to
  7682. // match the correct orientation.
  7683. if (!g.hasEdge(v, w)) {
  7684. v = edge.w;
  7685. w = edge.v;
  7686. }
  7687. var vLabel = t.node(v),
  7688. wLabel = t.node(w),
  7689. tailLabel = vLabel,
  7690. flip = false;
  7691. // If the root is in the tail of the edge then we need to flip the logic that
  7692. // checks for the head and tail nodes in the candidates function below.
  7693. if (vLabel.lim > wLabel.lim) {
  7694. tailLabel = wLabel;
  7695. flip = true;
  7696. }
  7697. var candidates = _.filter(g.edges(), function(edge) {
  7698. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  7699. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  7700. });
  7701. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  7702. }
  7703. function exchangeEdges(t, g, e, f) {
  7704. var v = e.v,
  7705. w = e.w;
  7706. t.removeEdge(v, w);
  7707. t.setEdge(f.v, f.w, {});
  7708. initLowLimValues(t);
  7709. initCutValues(t, g);
  7710. updateRanks(t, g);
  7711. }
  7712. function updateRanks(t, g) {
  7713. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; }),
  7714. vs = preorder(t, root);
  7715. vs = vs.slice(1);
  7716. _.forEach(vs, function(v) {
  7717. var parent = t.node(v).parent,
  7718. edge = g.edge(v, parent),
  7719. flipped = false;
  7720. if (!edge) {
  7721. edge = g.edge(parent, v);
  7722. flipped = true;
  7723. }
  7724. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  7725. });
  7726. }
  7727. /*
  7728. * Returns true if the edge is in the tree.
  7729. */
  7730. function isTreeEdge(tree, u, v) {
  7731. return tree.hasEdge(u, v);
  7732. }
  7733. /*
  7734. * Returns true if the specified node is descendant of the root node per the
  7735. * assigned low and lim attributes in the tree.
  7736. */
  7737. function isDescendant(tree, vLabel, rootLabel) {
  7738. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  7739. }
  7740. /***/ }),
  7741. /***/ "../../node_modules/dagre/lib/rank/util.js":
  7742. /*!***************************************************************!*\
  7743. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/util.js ***!
  7744. \***************************************************************/
  7745. /*! no static exports found */
  7746. /***/ (function(module, exports, __webpack_require__) {
  7747. "use strict";
  7748. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  7749. module.exports = {
  7750. longestPath: longestPath,
  7751. slack: slack
  7752. };
  7753. /*
  7754. * Initializes ranks for the input graph using the longest path algorithm. This
  7755. * algorithm scales well and is fast in practice, it yields rather poor
  7756. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  7757. * ranks wide and leaving edges longer than necessary. However, due to its
  7758. * speed, this algorithm is good for getting an initial ranking that can be fed
  7759. * into other algorithms.
  7760. *
  7761. * This algorithm does not normalize layers because it will be used by other
  7762. * algorithms in most cases. If using this algorithm directly, be sure to
  7763. * run normalize at the end.
  7764. *
  7765. * Pre-conditions:
  7766. *
  7767. * 1. Input graph is a DAG.
  7768. * 2. Input graph node labels can be assigned properties.
  7769. *
  7770. * Post-conditions:
  7771. *
  7772. * 1. Each node will be assign an (unnormalized) "rank" property.
  7773. */
  7774. function longestPath(g) {
  7775. var visited = {};
  7776. function dfs(v) {
  7777. var label = g.node(v);
  7778. if (_.has(visited, v)) {
  7779. return label.rank;
  7780. }
  7781. visited[v] = true;
  7782. var rank = _.min(_.map(g.outEdges(v), function(e) {
  7783. return dfs(e.w) - g.edge(e).minlen;
  7784. }));
  7785. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  7786. rank === undefined || // return value of _.map([]) for Lodash 4
  7787. rank === null) { // return value of _.map([null])
  7788. rank = 0;
  7789. }
  7790. return (label.rank = rank);
  7791. }
  7792. _.forEach(g.sources(), dfs);
  7793. }
  7794. /*
  7795. * Returns the amount of slack for the given edge. The slack is defined as the
  7796. * difference between the length of the edge and its minimum length.
  7797. */
  7798. function slack(g, e) {
  7799. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  7800. }
  7801. /***/ }),
  7802. /***/ "../../node_modules/dagre/lib/util.js":
  7803. /*!**********************************************************!*\
  7804. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/util.js ***!
  7805. \**********************************************************/
  7806. /*! no static exports found */
  7807. /***/ (function(module, exports, __webpack_require__) {
  7808. "use strict";
  7809. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7810. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  7811. module.exports = {
  7812. addDummyNode: addDummyNode,
  7813. simplify: simplify,
  7814. asNonCompoundGraph: asNonCompoundGraph,
  7815. successorWeights: successorWeights,
  7816. predecessorWeights: predecessorWeights,
  7817. intersectRect: intersectRect,
  7818. buildLayerMatrix: buildLayerMatrix,
  7819. normalizeRanks: normalizeRanks,
  7820. removeEmptyRanks: removeEmptyRanks,
  7821. addBorderNode: addBorderNode,
  7822. maxRank: maxRank,
  7823. partition: partition,
  7824. time: time,
  7825. notime: notime
  7826. };
  7827. /*
  7828. * Adds a dummy node to the graph and return v.
  7829. */
  7830. function addDummyNode(g, type, attrs, name) {
  7831. var v;
  7832. do {
  7833. v = _.uniqueId(name);
  7834. } while (g.hasNode(v));
  7835. attrs.dummy = type;
  7836. g.setNode(v, attrs);
  7837. return v;
  7838. }
  7839. /*
  7840. * Returns a new graph with only simple edges. Handles aggregation of data
  7841. * associated with multi-edges.
  7842. */
  7843. function simplify(g) {
  7844. var simplified = new Graph().setGraph(g.graph());
  7845. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  7846. _.forEach(g.edges(), function(e) {
  7847. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 },
  7848. label = g.edge(e);
  7849. simplified.setEdge(e.v, e.w, {
  7850. weight: simpleLabel.weight + label.weight,
  7851. minlen: Math.max(simpleLabel.minlen, label.minlen)
  7852. });
  7853. });
  7854. return simplified;
  7855. }
  7856. function asNonCompoundGraph(g) {
  7857. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  7858. _.forEach(g.nodes(), function(v) {
  7859. if (!g.children(v).length) {
  7860. simplified.setNode(v, g.node(v));
  7861. }
  7862. });
  7863. _.forEach(g.edges(), function(e) {
  7864. simplified.setEdge(e, g.edge(e));
  7865. });
  7866. return simplified;
  7867. }
  7868. function successorWeights(g) {
  7869. var weightMap = _.map(g.nodes(), function(v) {
  7870. var sucs = {};
  7871. _.forEach(g.outEdges(v), function(e) {
  7872. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  7873. });
  7874. return sucs;
  7875. });
  7876. return _.zipObject(g.nodes(), weightMap);
  7877. }
  7878. function predecessorWeights(g) {
  7879. var weightMap = _.map(g.nodes(), function(v) {
  7880. var preds = {};
  7881. _.forEach(g.inEdges(v), function(e) {
  7882. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  7883. });
  7884. return preds;
  7885. });
  7886. return _.zipObject(g.nodes(), weightMap);
  7887. }
  7888. /*
  7889. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  7890. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  7891. */
  7892. function intersectRect(rect, point) {
  7893. var x = rect.x;
  7894. var y = rect.y;
  7895. // Rectangle intersection algorithm from:
  7896. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  7897. var dx = point.x - x;
  7898. var dy = point.y - y;
  7899. var w = rect.width / 2;
  7900. var h = rect.height / 2;
  7901. if (!dx && !dy) {
  7902. throw new Error("Not possible to find intersection inside of the rectangle");
  7903. }
  7904. var sx, sy;
  7905. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  7906. // Intersection is top or bottom of rect.
  7907. if (dy < 0) {
  7908. h = -h;
  7909. }
  7910. sx = h * dx / dy;
  7911. sy = h;
  7912. } else {
  7913. // Intersection is left or right of rect.
  7914. if (dx < 0) {
  7915. w = -w;
  7916. }
  7917. sx = w;
  7918. sy = w * dy / dx;
  7919. }
  7920. return { x: x + sx, y: y + sy };
  7921. }
  7922. /*
  7923. * Given a DAG with each node assigned "rank" and "order" properties, this
  7924. * function will produce a matrix with the ids of each node.
  7925. */
  7926. function buildLayerMatrix(g) {
  7927. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  7928. _.forEach(g.nodes(), function(v) {
  7929. var node = g.node(v),
  7930. rank = node.rank;
  7931. if (!_.isUndefined(rank)) {
  7932. layering[rank][node.order] = v;
  7933. }
  7934. });
  7935. return layering;
  7936. }
  7937. /*
  7938. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  7939. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  7940. */
  7941. function normalizeRanks(g) {
  7942. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7943. _.forEach(g.nodes(), function(v) {
  7944. var node = g.node(v);
  7945. if (_.has(node, "rank")) {
  7946. node.rank -= min;
  7947. }
  7948. });
  7949. }
  7950. function removeEmptyRanks(g) {
  7951. // Ranks may not start at 0, so we need to offset them
  7952. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7953. var layers = [];
  7954. _.forEach(g.nodes(), function(v) {
  7955. var rank = g.node(v).rank - offset;
  7956. if (!layers[rank]) {
  7957. layers[rank] = [];
  7958. }
  7959. layers[rank].push(v);
  7960. });
  7961. var delta = 0,
  7962. nodeRankFactor = g.graph().nodeRankFactor;
  7963. _.forEach(layers, function(vs, i) {
  7964. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  7965. --delta;
  7966. } else if (delta) {
  7967. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  7968. }
  7969. });
  7970. }
  7971. function addBorderNode(g, prefix, rank, order) {
  7972. var node = {
  7973. width: 0,
  7974. height: 0
  7975. };
  7976. if (arguments.length >= 4) {
  7977. node.rank = rank;
  7978. node.order = order;
  7979. }
  7980. return addDummyNode(g, "border", node, prefix);
  7981. }
  7982. function maxRank(g) {
  7983. return _.max(_.map(g.nodes(), function(v) {
  7984. var rank = g.node(v).rank;
  7985. if (!_.isUndefined(rank)) {
  7986. return rank;
  7987. }
  7988. }));
  7989. }
  7990. /*
  7991. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  7992. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  7993. * into `rhs.
  7994. */
  7995. function partition(collection, fn) {
  7996. var result = { lhs: [], rhs: [] };
  7997. _.forEach(collection, function(value) {
  7998. if (fn(value)) {
  7999. result.lhs.push(value);
  8000. } else {
  8001. result.rhs.push(value);
  8002. }
  8003. });
  8004. return result;
  8005. }
  8006. /*
  8007. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  8008. * time it takes to execute the function.
  8009. */
  8010. function time(name, fn) {
  8011. var start = _.now();
  8012. try {
  8013. return fn();
  8014. } finally {
  8015. console.log(name + " time: " + (_.now() - start) + "ms");
  8016. }
  8017. }
  8018. function notime(name, fn) {
  8019. return fn();
  8020. }
  8021. /***/ }),
  8022. /***/ "../../node_modules/dagre/lib/version.js":
  8023. /*!*************************************************************!*\
  8024. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/version.js ***!
  8025. \*************************************************************/
  8026. /*! no static exports found */
  8027. /***/ (function(module, exports) {
  8028. module.exports = "0.8.4";
  8029. /***/ }),
  8030. /***/ "../../node_modules/graphlib/index.js":
  8031. /*!**********************************************************!*\
  8032. !*** E:/Repos/Babylon.js/node_modules/graphlib/index.js ***!
  8033. \**********************************************************/
  8034. /*! no static exports found */
  8035. /***/ (function(module, exports, __webpack_require__) {
  8036. /**
  8037. * Copyright (c) 2014, Chris Pettitt
  8038. * All rights reserved.
  8039. *
  8040. * Redistribution and use in source and binary forms, with or without
  8041. * modification, are permitted provided that the following conditions are met:
  8042. *
  8043. * 1. Redistributions of source code must retain the above copyright notice, this
  8044. * list of conditions and the following disclaimer.
  8045. *
  8046. * 2. Redistributions in binary form must reproduce the above copyright notice,
  8047. * this list of conditions and the following disclaimer in the documentation
  8048. * and/or other materials provided with the distribution.
  8049. *
  8050. * 3. Neither the name of the copyright holder nor the names of its contributors
  8051. * may be used to endorse or promote products derived from this software without
  8052. * specific prior written permission.
  8053. *
  8054. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  8055. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  8056. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  8057. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  8058. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8059. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  8060. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  8061. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  8062. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  8063. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8064. */
  8065. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  8066. module.exports = {
  8067. Graph: lib.Graph,
  8068. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  8069. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  8070. version: lib.version
  8071. };
  8072. /***/ }),
  8073. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  8074. /*!***********************************************************************!*\
  8075. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  8076. \***********************************************************************/
  8077. /*! no static exports found */
  8078. /***/ (function(module, exports, __webpack_require__) {
  8079. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8080. module.exports = components;
  8081. function components(g) {
  8082. var visited = {},
  8083. cmpts = [],
  8084. cmpt;
  8085. function dfs(v) {
  8086. if (_.has(visited, v)) return;
  8087. visited[v] = true;
  8088. cmpt.push(v);
  8089. _.each(g.successors(v), dfs);
  8090. _.each(g.predecessors(v), dfs);
  8091. }
  8092. _.each(g.nodes(), function(v) {
  8093. cmpt = [];
  8094. dfs(v);
  8095. if (cmpt.length) {
  8096. cmpts.push(cmpt);
  8097. }
  8098. });
  8099. return cmpts;
  8100. }
  8101. /***/ }),
  8102. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  8103. /*!****************************************************************!*\
  8104. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  8105. \****************************************************************/
  8106. /*! no static exports found */
  8107. /***/ (function(module, exports, __webpack_require__) {
  8108. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8109. module.exports = dfs;
  8110. /*
  8111. * A helper that preforms a pre- or post-order traversal on the input graph
  8112. * and returns the nodes in the order they were visited. If the graph is
  8113. * undirected then this algorithm will navigate using neighbors. If the graph
  8114. * is directed then this algorithm will navigate using successors.
  8115. *
  8116. * Order must be one of "pre" or "post".
  8117. */
  8118. function dfs(g, vs, order) {
  8119. if (!_.isArray(vs)) {
  8120. vs = [vs];
  8121. }
  8122. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  8123. var acc = [],
  8124. visited = {};
  8125. _.each(vs, function(v) {
  8126. if (!g.hasNode(v)) {
  8127. throw new Error("Graph does not have node: " + v);
  8128. }
  8129. doDfs(g, v, order === "post", visited, navigation, acc);
  8130. });
  8131. return acc;
  8132. }
  8133. function doDfs(g, v, postorder, visited, navigation, acc) {
  8134. if (!_.has(visited, v)) {
  8135. visited[v] = true;
  8136. if (!postorder) { acc.push(v); }
  8137. _.each(navigation(v), function(w) {
  8138. doDfs(g, w, postorder, visited, navigation, acc);
  8139. });
  8140. if (postorder) { acc.push(v); }
  8141. }
  8142. }
  8143. /***/ }),
  8144. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  8145. /*!*************************************************************************!*\
  8146. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  8147. \*************************************************************************/
  8148. /*! no static exports found */
  8149. /***/ (function(module, exports, __webpack_require__) {
  8150. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8151. _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8152. module.exports = dijkstraAll;
  8153. function dijkstraAll(g, weightFunc, edgeFunc) {
  8154. return _.transform(g.nodes(), function(acc, v) {
  8155. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  8156. }, {});
  8157. }
  8158. /***/ }),
  8159. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  8160. /*!*********************************************************************!*\
  8161. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  8162. \*********************************************************************/
  8163. /*! no static exports found */
  8164. /***/ (function(module, exports, __webpack_require__) {
  8165. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8166. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8167. module.exports = dijkstra;
  8168. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8169. function dijkstra(g, source, weightFn, edgeFn) {
  8170. return runDijkstra(g, String(source),
  8171. weightFn || DEFAULT_WEIGHT_FUNC,
  8172. edgeFn || function(v) { return g.outEdges(v); });
  8173. }
  8174. function runDijkstra(g, source, weightFn, edgeFn) {
  8175. var results = {},
  8176. pq = new PriorityQueue(),
  8177. v, vEntry;
  8178. var updateNeighbors = function(edge) {
  8179. var w = edge.v !== v ? edge.v : edge.w,
  8180. wEntry = results[w],
  8181. weight = weightFn(edge),
  8182. distance = vEntry.distance + weight;
  8183. if (weight < 0) {
  8184. throw new Error("dijkstra does not allow negative edge weights. " +
  8185. "Bad edge: " + edge + " Weight: " + weight);
  8186. }
  8187. if (distance < wEntry.distance) {
  8188. wEntry.distance = distance;
  8189. wEntry.predecessor = v;
  8190. pq.decrease(w, distance);
  8191. }
  8192. };
  8193. g.nodes().forEach(function(v) {
  8194. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  8195. results[v] = { distance: distance };
  8196. pq.add(v, distance);
  8197. });
  8198. while (pq.size() > 0) {
  8199. v = pq.removeMin();
  8200. vEntry = results[v];
  8201. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  8202. break;
  8203. }
  8204. edgeFn(v).forEach(updateNeighbors);
  8205. }
  8206. return results;
  8207. }
  8208. /***/ }),
  8209. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  8210. /*!************************************************************************!*\
  8211. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  8212. \************************************************************************/
  8213. /*! no static exports found */
  8214. /***/ (function(module, exports, __webpack_require__) {
  8215. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8216. tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  8217. module.exports = findCycles;
  8218. function findCycles(g) {
  8219. return _.filter(tarjan(g), function(cmpt) {
  8220. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  8221. });
  8222. }
  8223. /***/ }),
  8224. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  8225. /*!***************************************************************************!*\
  8226. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  8227. \***************************************************************************/
  8228. /*! no static exports found */
  8229. /***/ (function(module, exports, __webpack_require__) {
  8230. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8231. module.exports = floydWarshall;
  8232. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8233. function floydWarshall(g, weightFn, edgeFn) {
  8234. return runFloydWarshall(g,
  8235. weightFn || DEFAULT_WEIGHT_FUNC,
  8236. edgeFn || function(v) { return g.outEdges(v); });
  8237. }
  8238. function runFloydWarshall(g, weightFn, edgeFn) {
  8239. var results = {},
  8240. nodes = g.nodes();
  8241. nodes.forEach(function(v) {
  8242. results[v] = {};
  8243. results[v][v] = { distance: 0 };
  8244. nodes.forEach(function(w) {
  8245. if (v !== w) {
  8246. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  8247. }
  8248. });
  8249. edgeFn(v).forEach(function(edge) {
  8250. var w = edge.v === v ? edge.w : edge.v,
  8251. d = weightFn(edge);
  8252. results[v][w] = { distance: d, predecessor: v };
  8253. });
  8254. });
  8255. nodes.forEach(function(k) {
  8256. var rowK = results[k];
  8257. nodes.forEach(function(i) {
  8258. var rowI = results[i];
  8259. nodes.forEach(function(j) {
  8260. var ik = rowI[k];
  8261. var kj = rowK[j];
  8262. var ij = rowI[j];
  8263. var altDistance = ik.distance + kj.distance;
  8264. if (altDistance < ij.distance) {
  8265. ij.distance = altDistance;
  8266. ij.predecessor = kj.predecessor;
  8267. }
  8268. });
  8269. });
  8270. });
  8271. return results;
  8272. }
  8273. /***/ }),
  8274. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  8275. /*!******************************************************************!*\
  8276. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  8277. \******************************************************************/
  8278. /*! no static exports found */
  8279. /***/ (function(module, exports, __webpack_require__) {
  8280. module.exports = {
  8281. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  8282. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8283. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  8284. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  8285. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  8286. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  8287. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  8288. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  8289. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  8290. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  8291. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  8292. };
  8293. /***/ }),
  8294. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  8295. /*!***********************************************************************!*\
  8296. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  8297. \***********************************************************************/
  8298. /*! no static exports found */
  8299. /***/ (function(module, exports, __webpack_require__) {
  8300. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  8301. module.exports = isAcyclic;
  8302. function isAcyclic(g) {
  8303. try {
  8304. topsort(g);
  8305. } catch (e) {
  8306. if (e instanceof topsort.CycleException) {
  8307. return false;
  8308. }
  8309. throw e;
  8310. }
  8311. return true;
  8312. }
  8313. /***/ }),
  8314. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  8315. /*!**********************************************************************!*\
  8316. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  8317. \**********************************************************************/
  8318. /*! no static exports found */
  8319. /***/ (function(module, exports, __webpack_require__) {
  8320. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8321. module.exports = postorder;
  8322. function postorder(g, vs) {
  8323. return dfs(g, vs, "post");
  8324. }
  8325. /***/ }),
  8326. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  8327. /*!*********************************************************************!*\
  8328. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/preorder.js ***!
  8329. \*********************************************************************/
  8330. /*! no static exports found */
  8331. /***/ (function(module, exports, __webpack_require__) {
  8332. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8333. module.exports = preorder;
  8334. function preorder(g, vs) {
  8335. return dfs(g, vs, "pre");
  8336. }
  8337. /***/ }),
  8338. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  8339. /*!*****************************************************************!*\
  8340. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  8341. \*****************************************************************/
  8342. /*! no static exports found */
  8343. /***/ (function(module, exports, __webpack_require__) {
  8344. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8345. Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js"),
  8346. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8347. module.exports = prim;
  8348. function prim(g, weightFunc) {
  8349. var result = new Graph(),
  8350. parents = {},
  8351. pq = new PriorityQueue(),
  8352. v;
  8353. function updateNeighbors(edge) {
  8354. var w = edge.v === v ? edge.w : edge.v,
  8355. pri = pq.priority(w);
  8356. if (pri !== undefined) {
  8357. var edgeWeight = weightFunc(edge);
  8358. if (edgeWeight < pri) {
  8359. parents[w] = v;
  8360. pq.decrease(w, edgeWeight);
  8361. }
  8362. }
  8363. }
  8364. if (g.nodeCount() === 0) {
  8365. return result;
  8366. }
  8367. _.each(g.nodes(), function(v) {
  8368. pq.add(v, Number.POSITIVE_INFINITY);
  8369. result.setNode(v);
  8370. });
  8371. // Start from an arbitrary node
  8372. pq.decrease(g.nodes()[0], 0);
  8373. var init = false;
  8374. while (pq.size() > 0) {
  8375. v = pq.removeMin();
  8376. if (_.has(parents, v)) {
  8377. result.setEdge(v, parents[v]);
  8378. } else if (init) {
  8379. throw new Error("Input graph is not connected: " + g);
  8380. } else {
  8381. init = true;
  8382. }
  8383. g.nodeEdges(v).forEach(updateNeighbors);
  8384. }
  8385. return result;
  8386. }
  8387. /***/ }),
  8388. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  8389. /*!*******************************************************************!*\
  8390. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  8391. \*******************************************************************/
  8392. /*! no static exports found */
  8393. /***/ (function(module, exports, __webpack_require__) {
  8394. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8395. module.exports = tarjan;
  8396. function tarjan(g) {
  8397. var index = 0,
  8398. stack = [],
  8399. visited = {}, // node id -> { onStack, lowlink, index }
  8400. results = [];
  8401. function dfs(v) {
  8402. var entry = visited[v] = {
  8403. onStack: true,
  8404. lowlink: index,
  8405. index: index++
  8406. };
  8407. stack.push(v);
  8408. g.successors(v).forEach(function(w) {
  8409. if (!_.has(visited, w)) {
  8410. dfs(w);
  8411. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  8412. } else if (visited[w].onStack) {
  8413. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  8414. }
  8415. });
  8416. if (entry.lowlink === entry.index) {
  8417. var cmpt = [],
  8418. w;
  8419. do {
  8420. w = stack.pop();
  8421. visited[w].onStack = false;
  8422. cmpt.push(w);
  8423. } while (v !== w);
  8424. results.push(cmpt);
  8425. }
  8426. }
  8427. g.nodes().forEach(function(v) {
  8428. if (!_.has(visited, v)) {
  8429. dfs(v);
  8430. }
  8431. });
  8432. return results;
  8433. }
  8434. /***/ }),
  8435. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  8436. /*!********************************************************************!*\
  8437. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  8438. \********************************************************************/
  8439. /*! no static exports found */
  8440. /***/ (function(module, exports, __webpack_require__) {
  8441. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8442. module.exports = topsort;
  8443. topsort.CycleException = CycleException;
  8444. function topsort(g) {
  8445. var visited = {},
  8446. stack = {},
  8447. results = [];
  8448. function visit(node) {
  8449. if (_.has(stack, node)) {
  8450. throw new CycleException();
  8451. }
  8452. if (!_.has(visited, node)) {
  8453. stack[node] = true;
  8454. visited[node] = true;
  8455. _.each(g.predecessors(node), visit);
  8456. delete stack[node];
  8457. results.push(node);
  8458. }
  8459. }
  8460. _.each(g.sinks(), visit);
  8461. if (_.size(visited) !== g.nodeCount()) {
  8462. throw new CycleException();
  8463. }
  8464. return results;
  8465. }
  8466. function CycleException() {}
  8467. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  8468. /***/ }),
  8469. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  8470. /*!****************************************************************************!*\
  8471. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  8472. \****************************************************************************/
  8473. /*! no static exports found */
  8474. /***/ (function(module, exports, __webpack_require__) {
  8475. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8476. module.exports = PriorityQueue;
  8477. /**
  8478. * A min-priority queue data structure. This algorithm is derived from Cormen,
  8479. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  8480. * queue is that you can efficiently (in O(1) time) get the smallest key in
  8481. * the queue. Adding and removing elements takes O(log n) time. A key can
  8482. * have its priority decreased in O(log n) time.
  8483. */
  8484. function PriorityQueue() {
  8485. this._arr = [];
  8486. this._keyIndices = {};
  8487. }
  8488. /**
  8489. * Returns the number of elements in the queue. Takes `O(1)` time.
  8490. */
  8491. PriorityQueue.prototype.size = function() {
  8492. return this._arr.length;
  8493. };
  8494. /**
  8495. * Returns the keys that are in the queue. Takes `O(n)` time.
  8496. */
  8497. PriorityQueue.prototype.keys = function() {
  8498. return this._arr.map(function(x) { return x.key; });
  8499. };
  8500. /**
  8501. * Returns `true` if **key** is in the queue and `false` if not.
  8502. */
  8503. PriorityQueue.prototype.has = function(key) {
  8504. return _.has(this._keyIndices, key);
  8505. };
  8506. /**
  8507. * Returns the priority for **key**. If **key** is not present in the queue
  8508. * then this function returns `undefined`. Takes `O(1)` time.
  8509. *
  8510. * @param {Object} key
  8511. */
  8512. PriorityQueue.prototype.priority = function(key) {
  8513. var index = this._keyIndices[key];
  8514. if (index !== undefined) {
  8515. return this._arr[index].priority;
  8516. }
  8517. };
  8518. /**
  8519. * Returns the key for the minimum element in this queue. If the queue is
  8520. * empty this function throws an Error. Takes `O(1)` time.
  8521. */
  8522. PriorityQueue.prototype.min = function() {
  8523. if (this.size() === 0) {
  8524. throw new Error("Queue underflow");
  8525. }
  8526. return this._arr[0].key;
  8527. };
  8528. /**
  8529. * Inserts a new key into the priority queue. If the key already exists in
  8530. * the queue this function returns `false`; otherwise it will return `true`.
  8531. * Takes `O(n)` time.
  8532. *
  8533. * @param {Object} key the key to add
  8534. * @param {Number} priority the initial priority for the key
  8535. */
  8536. PriorityQueue.prototype.add = function(key, priority) {
  8537. var keyIndices = this._keyIndices;
  8538. key = String(key);
  8539. if (!_.has(keyIndices, key)) {
  8540. var arr = this._arr;
  8541. var index = arr.length;
  8542. keyIndices[key] = index;
  8543. arr.push({key: key, priority: priority});
  8544. this._decrease(index);
  8545. return true;
  8546. }
  8547. return false;
  8548. };
  8549. /**
  8550. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  8551. */
  8552. PriorityQueue.prototype.removeMin = function() {
  8553. this._swap(0, this._arr.length - 1);
  8554. var min = this._arr.pop();
  8555. delete this._keyIndices[min.key];
  8556. this._heapify(0);
  8557. return min.key;
  8558. };
  8559. /**
  8560. * Decreases the priority for **key** to **priority**. If the new priority is
  8561. * greater than the previous priority, this function will throw an Error.
  8562. *
  8563. * @param {Object} key the key for which to raise priority
  8564. * @param {Number} priority the new priority for the key
  8565. */
  8566. PriorityQueue.prototype.decrease = function(key, priority) {
  8567. var index = this._keyIndices[key];
  8568. if (priority > this._arr[index].priority) {
  8569. throw new Error("New priority is greater than current priority. " +
  8570. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  8571. }
  8572. this._arr[index].priority = priority;
  8573. this._decrease(index);
  8574. };
  8575. PriorityQueue.prototype._heapify = function(i) {
  8576. var arr = this._arr;
  8577. var l = 2 * i,
  8578. r = l + 1,
  8579. largest = i;
  8580. if (l < arr.length) {
  8581. largest = arr[l].priority < arr[largest].priority ? l : largest;
  8582. if (r < arr.length) {
  8583. largest = arr[r].priority < arr[largest].priority ? r : largest;
  8584. }
  8585. if (largest !== i) {
  8586. this._swap(i, largest);
  8587. this._heapify(largest);
  8588. }
  8589. }
  8590. };
  8591. PriorityQueue.prototype._decrease = function(index) {
  8592. var arr = this._arr;
  8593. var priority = arr[index].priority;
  8594. var parent;
  8595. while (index !== 0) {
  8596. parent = index >> 1;
  8597. if (arr[parent].priority < priority) {
  8598. break;
  8599. }
  8600. this._swap(index, parent);
  8601. index = parent;
  8602. }
  8603. };
  8604. PriorityQueue.prototype._swap = function(i, j) {
  8605. var arr = this._arr;
  8606. var keyIndices = this._keyIndices;
  8607. var origArrI = arr[i];
  8608. var origArrJ = arr[j];
  8609. arr[i] = origArrJ;
  8610. arr[j] = origArrI;
  8611. keyIndices[origArrJ.key] = i;
  8612. keyIndices[origArrI.key] = j;
  8613. };
  8614. /***/ }),
  8615. /***/ "../../node_modules/graphlib/lib/graph.js":
  8616. /*!**************************************************************!*\
  8617. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  8618. \**************************************************************/
  8619. /*! no static exports found */
  8620. /***/ (function(module, exports, __webpack_require__) {
  8621. "use strict";
  8622. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8623. module.exports = Graph;
  8624. var DEFAULT_EDGE_NAME = "\x00",
  8625. GRAPH_NODE = "\x00",
  8626. EDGE_KEY_DELIM = "\x01";
  8627. // Implementation notes:
  8628. //
  8629. // * Node id query functions should return string ids for the nodes
  8630. // * Edge id query functions should return an "edgeObj", edge object, that is
  8631. // composed of enough information to uniquely identify an edge: {v, w, name}.
  8632. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  8633. // reference edges. This is because we need a performant way to look these
  8634. // edges up and, object properties, which have string keys, are the closest
  8635. // we're going to get to a performant hashtable in JavaScript.
  8636. function Graph(opts) {
  8637. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  8638. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  8639. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  8640. // Label for the graph itself
  8641. this._label = undefined;
  8642. // Defaults to be set when creating a new node
  8643. this._defaultNodeLabelFn = _.constant(undefined);
  8644. // Defaults to be set when creating a new edge
  8645. this._defaultEdgeLabelFn = _.constant(undefined);
  8646. // v -> label
  8647. this._nodes = {};
  8648. if (this._isCompound) {
  8649. // v -> parent
  8650. this._parent = {};
  8651. // v -> children
  8652. this._children = {};
  8653. this._children[GRAPH_NODE] = {};
  8654. }
  8655. // v -> edgeObj
  8656. this._in = {};
  8657. // u -> v -> Number
  8658. this._preds = {};
  8659. // v -> edgeObj
  8660. this._out = {};
  8661. // v -> w -> Number
  8662. this._sucs = {};
  8663. // e -> edgeObj
  8664. this._edgeObjs = {};
  8665. // e -> label
  8666. this._edgeLabels = {};
  8667. }
  8668. /* Number of nodes in the graph. Should only be changed by the implementation. */
  8669. Graph.prototype._nodeCount = 0;
  8670. /* Number of edges in the graph. Should only be changed by the implementation. */
  8671. Graph.prototype._edgeCount = 0;
  8672. /* === Graph functions ========= */
  8673. Graph.prototype.isDirected = function() {
  8674. return this._isDirected;
  8675. };
  8676. Graph.prototype.isMultigraph = function() {
  8677. return this._isMultigraph;
  8678. };
  8679. Graph.prototype.isCompound = function() {
  8680. return this._isCompound;
  8681. };
  8682. Graph.prototype.setGraph = function(label) {
  8683. this._label = label;
  8684. return this;
  8685. };
  8686. Graph.prototype.graph = function() {
  8687. return this._label;
  8688. };
  8689. /* === Node functions ========== */
  8690. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  8691. if (!_.isFunction(newDefault)) {
  8692. newDefault = _.constant(newDefault);
  8693. }
  8694. this._defaultNodeLabelFn = newDefault;
  8695. return this;
  8696. };
  8697. Graph.prototype.nodeCount = function() {
  8698. return this._nodeCount;
  8699. };
  8700. Graph.prototype.nodes = function() {
  8701. return _.keys(this._nodes);
  8702. };
  8703. Graph.prototype.sources = function() {
  8704. var self = this;
  8705. return _.filter(this.nodes(), function(v) {
  8706. return _.isEmpty(self._in[v]);
  8707. });
  8708. };
  8709. Graph.prototype.sinks = function() {
  8710. var self = this;
  8711. return _.filter(this.nodes(), function(v) {
  8712. return _.isEmpty(self._out[v]);
  8713. });
  8714. };
  8715. Graph.prototype.setNodes = function(vs, value) {
  8716. var args = arguments;
  8717. var self = this;
  8718. _.each(vs, function(v) {
  8719. if (args.length > 1) {
  8720. self.setNode(v, value);
  8721. } else {
  8722. self.setNode(v);
  8723. }
  8724. });
  8725. return this;
  8726. };
  8727. Graph.prototype.setNode = function(v, value) {
  8728. if (_.has(this._nodes, v)) {
  8729. if (arguments.length > 1) {
  8730. this._nodes[v] = value;
  8731. }
  8732. return this;
  8733. }
  8734. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  8735. if (this._isCompound) {
  8736. this._parent[v] = GRAPH_NODE;
  8737. this._children[v] = {};
  8738. this._children[GRAPH_NODE][v] = true;
  8739. }
  8740. this._in[v] = {};
  8741. this._preds[v] = {};
  8742. this._out[v] = {};
  8743. this._sucs[v] = {};
  8744. ++this._nodeCount;
  8745. return this;
  8746. };
  8747. Graph.prototype.node = function(v) {
  8748. return this._nodes[v];
  8749. };
  8750. Graph.prototype.hasNode = function(v) {
  8751. return _.has(this._nodes, v);
  8752. };
  8753. Graph.prototype.removeNode = function(v) {
  8754. var self = this;
  8755. if (_.has(this._nodes, v)) {
  8756. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  8757. delete this._nodes[v];
  8758. if (this._isCompound) {
  8759. this._removeFromParentsChildList(v);
  8760. delete this._parent[v];
  8761. _.each(this.children(v), function(child) {
  8762. self.setParent(child);
  8763. });
  8764. delete this._children[v];
  8765. }
  8766. _.each(_.keys(this._in[v]), removeEdge);
  8767. delete this._in[v];
  8768. delete this._preds[v];
  8769. _.each(_.keys(this._out[v]), removeEdge);
  8770. delete this._out[v];
  8771. delete this._sucs[v];
  8772. --this._nodeCount;
  8773. }
  8774. return this;
  8775. };
  8776. Graph.prototype.setParent = function(v, parent) {
  8777. if (!this._isCompound) {
  8778. throw new Error("Cannot set parent in a non-compound graph");
  8779. }
  8780. if (_.isUndefined(parent)) {
  8781. parent = GRAPH_NODE;
  8782. } else {
  8783. // Coerce parent to string
  8784. parent += "";
  8785. for (var ancestor = parent;
  8786. !_.isUndefined(ancestor);
  8787. ancestor = this.parent(ancestor)) {
  8788. if (ancestor === v) {
  8789. throw new Error("Setting " + parent+ " as parent of " + v +
  8790. " would create a cycle");
  8791. }
  8792. }
  8793. this.setNode(parent);
  8794. }
  8795. this.setNode(v);
  8796. this._removeFromParentsChildList(v);
  8797. this._parent[v] = parent;
  8798. this._children[parent][v] = true;
  8799. return this;
  8800. };
  8801. Graph.prototype._removeFromParentsChildList = function(v) {
  8802. delete this._children[this._parent[v]][v];
  8803. };
  8804. Graph.prototype.parent = function(v) {
  8805. if (this._isCompound) {
  8806. var parent = this._parent[v];
  8807. if (parent !== GRAPH_NODE) {
  8808. return parent;
  8809. }
  8810. }
  8811. };
  8812. Graph.prototype.children = function(v) {
  8813. if (_.isUndefined(v)) {
  8814. v = GRAPH_NODE;
  8815. }
  8816. if (this._isCompound) {
  8817. var children = this._children[v];
  8818. if (children) {
  8819. return _.keys(children);
  8820. }
  8821. } else if (v === GRAPH_NODE) {
  8822. return this.nodes();
  8823. } else if (this.hasNode(v)) {
  8824. return [];
  8825. }
  8826. };
  8827. Graph.prototype.predecessors = function(v) {
  8828. var predsV = this._preds[v];
  8829. if (predsV) {
  8830. return _.keys(predsV);
  8831. }
  8832. };
  8833. Graph.prototype.successors = function(v) {
  8834. var sucsV = this._sucs[v];
  8835. if (sucsV) {
  8836. return _.keys(sucsV);
  8837. }
  8838. };
  8839. Graph.prototype.neighbors = function(v) {
  8840. var preds = this.predecessors(v);
  8841. if (preds) {
  8842. return _.union(preds, this.successors(v));
  8843. }
  8844. };
  8845. Graph.prototype.isLeaf = function (v) {
  8846. var neighbors;
  8847. if (this.isDirected()) {
  8848. neighbors = this.successors(v);
  8849. } else {
  8850. neighbors = this.neighbors(v);
  8851. }
  8852. return neighbors.length === 0;
  8853. };
  8854. Graph.prototype.filterNodes = function(filter) {
  8855. var copy = new this.constructor({
  8856. directed: this._isDirected,
  8857. multigraph: this._isMultigraph,
  8858. compound: this._isCompound
  8859. });
  8860. copy.setGraph(this.graph());
  8861. var self = this;
  8862. _.each(this._nodes, function(value, v) {
  8863. if (filter(v)) {
  8864. copy.setNode(v, value);
  8865. }
  8866. });
  8867. _.each(this._edgeObjs, function(e) {
  8868. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  8869. copy.setEdge(e, self.edge(e));
  8870. }
  8871. });
  8872. var parents = {};
  8873. function findParent(v) {
  8874. var parent = self.parent(v);
  8875. if (parent === undefined || copy.hasNode(parent)) {
  8876. parents[v] = parent;
  8877. return parent;
  8878. } else if (parent in parents) {
  8879. return parents[parent];
  8880. } else {
  8881. return findParent(parent);
  8882. }
  8883. }
  8884. if (this._isCompound) {
  8885. _.each(copy.nodes(), function(v) {
  8886. copy.setParent(v, findParent(v));
  8887. });
  8888. }
  8889. return copy;
  8890. };
  8891. /* === Edge functions ========== */
  8892. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  8893. if (!_.isFunction(newDefault)) {
  8894. newDefault = _.constant(newDefault);
  8895. }
  8896. this._defaultEdgeLabelFn = newDefault;
  8897. return this;
  8898. };
  8899. Graph.prototype.edgeCount = function() {
  8900. return this._edgeCount;
  8901. };
  8902. Graph.prototype.edges = function() {
  8903. return _.values(this._edgeObjs);
  8904. };
  8905. Graph.prototype.setPath = function(vs, value) {
  8906. var self = this,
  8907. args = arguments;
  8908. _.reduce(vs, function(v, w) {
  8909. if (args.length > 1) {
  8910. self.setEdge(v, w, value);
  8911. } else {
  8912. self.setEdge(v, w);
  8913. }
  8914. return w;
  8915. });
  8916. return this;
  8917. };
  8918. /*
  8919. * setEdge(v, w, [value, [name]])
  8920. * setEdge({ v, w, [name] }, [value])
  8921. */
  8922. Graph.prototype.setEdge = function() {
  8923. var v, w, name, value,
  8924. valueSpecified = false,
  8925. arg0 = arguments[0];
  8926. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  8927. v = arg0.v;
  8928. w = arg0.w;
  8929. name = arg0.name;
  8930. if (arguments.length === 2) {
  8931. value = arguments[1];
  8932. valueSpecified = true;
  8933. }
  8934. } else {
  8935. v = arg0;
  8936. w = arguments[1];
  8937. name = arguments[3];
  8938. if (arguments.length > 2) {
  8939. value = arguments[2];
  8940. valueSpecified = true;
  8941. }
  8942. }
  8943. v = "" + v;
  8944. w = "" + w;
  8945. if (!_.isUndefined(name)) {
  8946. name = "" + name;
  8947. }
  8948. var e = edgeArgsToId(this._isDirected, v, w, name);
  8949. if (_.has(this._edgeLabels, e)) {
  8950. if (valueSpecified) {
  8951. this._edgeLabels[e] = value;
  8952. }
  8953. return this;
  8954. }
  8955. if (!_.isUndefined(name) && !this._isMultigraph) {
  8956. throw new Error("Cannot set a named edge when isMultigraph = false");
  8957. }
  8958. // It didn't exist, so we need to create it.
  8959. // First ensure the nodes exist.
  8960. this.setNode(v);
  8961. this.setNode(w);
  8962. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  8963. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  8964. // Ensure we add undirected edges in a consistent way.
  8965. v = edgeObj.v;
  8966. w = edgeObj.w;
  8967. Object.freeze(edgeObj);
  8968. this._edgeObjs[e] = edgeObj;
  8969. incrementOrInitEntry(this._preds[w], v);
  8970. incrementOrInitEntry(this._sucs[v], w);
  8971. this._in[w][e] = edgeObj;
  8972. this._out[v][e] = edgeObj;
  8973. this._edgeCount++;
  8974. return this;
  8975. };
  8976. Graph.prototype.edge = function(v, w, name) {
  8977. var e = (arguments.length === 1
  8978. ? edgeObjToId(this._isDirected, arguments[0])
  8979. : edgeArgsToId(this._isDirected, v, w, name));
  8980. return this._edgeLabels[e];
  8981. };
  8982. Graph.prototype.hasEdge = function(v, w, name) {
  8983. var e = (arguments.length === 1
  8984. ? edgeObjToId(this._isDirected, arguments[0])
  8985. : edgeArgsToId(this._isDirected, v, w, name));
  8986. return _.has(this._edgeLabels, e);
  8987. };
  8988. Graph.prototype.removeEdge = function(v, w, name) {
  8989. var e = (arguments.length === 1
  8990. ? edgeObjToId(this._isDirected, arguments[0])
  8991. : edgeArgsToId(this._isDirected, v, w, name)),
  8992. edge = this._edgeObjs[e];
  8993. if (edge) {
  8994. v = edge.v;
  8995. w = edge.w;
  8996. delete this._edgeLabels[e];
  8997. delete this._edgeObjs[e];
  8998. decrementOrRemoveEntry(this._preds[w], v);
  8999. decrementOrRemoveEntry(this._sucs[v], w);
  9000. delete this._in[w][e];
  9001. delete this._out[v][e];
  9002. this._edgeCount--;
  9003. }
  9004. return this;
  9005. };
  9006. Graph.prototype.inEdges = function(v, u) {
  9007. var inV = this._in[v];
  9008. if (inV) {
  9009. var edges = _.values(inV);
  9010. if (!u) {
  9011. return edges;
  9012. }
  9013. return _.filter(edges, function(edge) { return edge.v === u; });
  9014. }
  9015. };
  9016. Graph.prototype.outEdges = function(v, w) {
  9017. var outV = this._out[v];
  9018. if (outV) {
  9019. var edges = _.values(outV);
  9020. if (!w) {
  9021. return edges;
  9022. }
  9023. return _.filter(edges, function(edge) { return edge.w === w; });
  9024. }
  9025. };
  9026. Graph.prototype.nodeEdges = function(v, w) {
  9027. var inEdges = this.inEdges(v, w);
  9028. if (inEdges) {
  9029. return inEdges.concat(this.outEdges(v, w));
  9030. }
  9031. };
  9032. function incrementOrInitEntry(map, k) {
  9033. if (map[k]) {
  9034. map[k]++;
  9035. } else {
  9036. map[k] = 1;
  9037. }
  9038. }
  9039. function decrementOrRemoveEntry(map, k) {
  9040. if (!--map[k]) { delete map[k]; }
  9041. }
  9042. function edgeArgsToId(isDirected, v_, w_, name) {
  9043. var v = "" + v_;
  9044. var w = "" + w_;
  9045. if (!isDirected && v > w) {
  9046. var tmp = v;
  9047. v = w;
  9048. w = tmp;
  9049. }
  9050. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  9051. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  9052. }
  9053. function edgeArgsToObj(isDirected, v_, w_, name) {
  9054. var v = "" + v_;
  9055. var w = "" + w_;
  9056. if (!isDirected && v > w) {
  9057. var tmp = v;
  9058. v = w;
  9059. w = tmp;
  9060. }
  9061. var edgeObj = { v: v, w: w };
  9062. if (name) {
  9063. edgeObj.name = name;
  9064. }
  9065. return edgeObj;
  9066. }
  9067. function edgeObjToId(isDirected, edgeObj) {
  9068. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  9069. }
  9070. /***/ }),
  9071. /***/ "../../node_modules/graphlib/lib/index.js":
  9072. /*!**************************************************************!*\
  9073. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/index.js ***!
  9074. \**************************************************************/
  9075. /*! no static exports found */
  9076. /***/ (function(module, exports, __webpack_require__) {
  9077. // Includes only the "core" of graphlib
  9078. module.exports = {
  9079. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  9080. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  9081. };
  9082. /***/ }),
  9083. /***/ "../../node_modules/graphlib/lib/json.js":
  9084. /*!*************************************************************!*\
  9085. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/json.js ***!
  9086. \*************************************************************/
  9087. /*! no static exports found */
  9088. /***/ (function(module, exports, __webpack_require__) {
  9089. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  9090. Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  9091. module.exports = {
  9092. write: write,
  9093. read: read
  9094. };
  9095. function write(g) {
  9096. var json = {
  9097. options: {
  9098. directed: g.isDirected(),
  9099. multigraph: g.isMultigraph(),
  9100. compound: g.isCompound()
  9101. },
  9102. nodes: writeNodes(g),
  9103. edges: writeEdges(g)
  9104. };
  9105. if (!_.isUndefined(g.graph())) {
  9106. json.value = _.clone(g.graph());
  9107. }
  9108. return json;
  9109. }
  9110. function writeNodes(g) {
  9111. return _.map(g.nodes(), function(v) {
  9112. var nodeValue = g.node(v),
  9113. parent = g.parent(v),
  9114. node = { v: v };
  9115. if (!_.isUndefined(nodeValue)) {
  9116. node.value = nodeValue;
  9117. }
  9118. if (!_.isUndefined(parent)) {
  9119. node.parent = parent;
  9120. }
  9121. return node;
  9122. });
  9123. }
  9124. function writeEdges(g) {
  9125. return _.map(g.edges(), function(e) {
  9126. var edgeValue = g.edge(e),
  9127. edge = { v: e.v, w: e.w };
  9128. if (!_.isUndefined(e.name)) {
  9129. edge.name = e.name;
  9130. }
  9131. if (!_.isUndefined(edgeValue)) {
  9132. edge.value = edgeValue;
  9133. }
  9134. return edge;
  9135. });
  9136. }
  9137. function read(json) {
  9138. var g = new Graph(json.options).setGraph(json.value);
  9139. _.each(json.nodes, function(entry) {
  9140. g.setNode(entry.v, entry.value);
  9141. if (entry.parent) {
  9142. g.setParent(entry.v, entry.parent);
  9143. }
  9144. });
  9145. _.each(json.edges, function(entry) {
  9146. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  9147. });
  9148. return g;
  9149. }
  9150. /***/ }),
  9151. /***/ "../../node_modules/graphlib/lib/lodash.js":
  9152. /*!***************************************************************!*\
  9153. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  9154. \***************************************************************/
  9155. /*! no static exports found */
  9156. /***/ (function(module, exports, __webpack_require__) {
  9157. /* global window */
  9158. var lodash;
  9159. if (true) {
  9160. try {
  9161. lodash = {
  9162. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  9163. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  9164. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  9165. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  9166. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  9167. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  9168. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  9169. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  9170. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  9171. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  9172. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  9173. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  9174. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  9175. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  9176. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  9177. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  9178. };
  9179. } catch (e) {}
  9180. }
  9181. if (!lodash) {
  9182. lodash = window._;
  9183. }
  9184. module.exports = lodash;
  9185. /***/ }),
  9186. /***/ "../../node_modules/graphlib/lib/version.js":
  9187. /*!****************************************************************!*\
  9188. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/version.js ***!
  9189. \****************************************************************/
  9190. /*! no static exports found */
  9191. /***/ (function(module, exports) {
  9192. module.exports = '2.1.7';
  9193. /***/ }),
  9194. /***/ "../../node_modules/lodash/_DataView.js":
  9195. /*!************************************************************!*\
  9196. !*** E:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  9197. \************************************************************/
  9198. /*! no static exports found */
  9199. /***/ (function(module, exports, __webpack_require__) {
  9200. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9201. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9202. /* Built-in method references that are verified to be native. */
  9203. var DataView = getNative(root, 'DataView');
  9204. module.exports = DataView;
  9205. /***/ }),
  9206. /***/ "../../node_modules/lodash/_Hash.js":
  9207. /*!********************************************************!*\
  9208. !*** E:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  9209. \********************************************************/
  9210. /*! no static exports found */
  9211. /***/ (function(module, exports, __webpack_require__) {
  9212. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  9213. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  9214. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  9215. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  9216. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  9217. /**
  9218. * Creates a hash object.
  9219. *
  9220. * @private
  9221. * @constructor
  9222. * @param {Array} [entries] The key-value pairs to cache.
  9223. */
  9224. function Hash(entries) {
  9225. var index = -1,
  9226. length = entries == null ? 0 : entries.length;
  9227. this.clear();
  9228. while (++index < length) {
  9229. var entry = entries[index];
  9230. this.set(entry[0], entry[1]);
  9231. }
  9232. }
  9233. // Add methods to `Hash`.
  9234. Hash.prototype.clear = hashClear;
  9235. Hash.prototype['delete'] = hashDelete;
  9236. Hash.prototype.get = hashGet;
  9237. Hash.prototype.has = hashHas;
  9238. Hash.prototype.set = hashSet;
  9239. module.exports = Hash;
  9240. /***/ }),
  9241. /***/ "../../node_modules/lodash/_ListCache.js":
  9242. /*!*************************************************************!*\
  9243. !*** E:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  9244. \*************************************************************/
  9245. /*! no static exports found */
  9246. /***/ (function(module, exports, __webpack_require__) {
  9247. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  9248. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  9249. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  9250. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  9251. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  9252. /**
  9253. * Creates an list cache object.
  9254. *
  9255. * @private
  9256. * @constructor
  9257. * @param {Array} [entries] The key-value pairs to cache.
  9258. */
  9259. function ListCache(entries) {
  9260. var index = -1,
  9261. length = entries == null ? 0 : entries.length;
  9262. this.clear();
  9263. while (++index < length) {
  9264. var entry = entries[index];
  9265. this.set(entry[0], entry[1]);
  9266. }
  9267. }
  9268. // Add methods to `ListCache`.
  9269. ListCache.prototype.clear = listCacheClear;
  9270. ListCache.prototype['delete'] = listCacheDelete;
  9271. ListCache.prototype.get = listCacheGet;
  9272. ListCache.prototype.has = listCacheHas;
  9273. ListCache.prototype.set = listCacheSet;
  9274. module.exports = ListCache;
  9275. /***/ }),
  9276. /***/ "../../node_modules/lodash/_Map.js":
  9277. /*!*******************************************************!*\
  9278. !*** E:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  9279. \*******************************************************/
  9280. /*! no static exports found */
  9281. /***/ (function(module, exports, __webpack_require__) {
  9282. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9283. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9284. /* Built-in method references that are verified to be native. */
  9285. var Map = getNative(root, 'Map');
  9286. module.exports = Map;
  9287. /***/ }),
  9288. /***/ "../../node_modules/lodash/_MapCache.js":
  9289. /*!************************************************************!*\
  9290. !*** E:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  9291. \************************************************************/
  9292. /*! no static exports found */
  9293. /***/ (function(module, exports, __webpack_require__) {
  9294. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  9295. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  9296. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  9297. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  9298. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  9299. /**
  9300. * Creates a map cache object to store key-value pairs.
  9301. *
  9302. * @private
  9303. * @constructor
  9304. * @param {Array} [entries] The key-value pairs to cache.
  9305. */
  9306. function MapCache(entries) {
  9307. var index = -1,
  9308. length = entries == null ? 0 : entries.length;
  9309. this.clear();
  9310. while (++index < length) {
  9311. var entry = entries[index];
  9312. this.set(entry[0], entry[1]);
  9313. }
  9314. }
  9315. // Add methods to `MapCache`.
  9316. MapCache.prototype.clear = mapCacheClear;
  9317. MapCache.prototype['delete'] = mapCacheDelete;
  9318. MapCache.prototype.get = mapCacheGet;
  9319. MapCache.prototype.has = mapCacheHas;
  9320. MapCache.prototype.set = mapCacheSet;
  9321. module.exports = MapCache;
  9322. /***/ }),
  9323. /***/ "../../node_modules/lodash/_Promise.js":
  9324. /*!***********************************************************!*\
  9325. !*** E:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  9326. \***********************************************************/
  9327. /*! no static exports found */
  9328. /***/ (function(module, exports, __webpack_require__) {
  9329. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9330. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9331. /* Built-in method references that are verified to be native. */
  9332. var Promise = getNative(root, 'Promise');
  9333. module.exports = Promise;
  9334. /***/ }),
  9335. /***/ "../../node_modules/lodash/_Set.js":
  9336. /*!*******************************************************!*\
  9337. !*** E:/Repos/Babylon.js/node_modules/lodash/_Set.js ***!
  9338. \*******************************************************/
  9339. /*! no static exports found */
  9340. /***/ (function(module, exports, __webpack_require__) {
  9341. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9342. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9343. /* Built-in method references that are verified to be native. */
  9344. var Set = getNative(root, 'Set');
  9345. module.exports = Set;
  9346. /***/ }),
  9347. /***/ "../../node_modules/lodash/_SetCache.js":
  9348. /*!************************************************************!*\
  9349. !*** E:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  9350. \************************************************************/
  9351. /*! no static exports found */
  9352. /***/ (function(module, exports, __webpack_require__) {
  9353. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  9354. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  9355. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  9356. /**
  9357. *
  9358. * Creates an array cache object to store unique values.
  9359. *
  9360. * @private
  9361. * @constructor
  9362. * @param {Array} [values] The values to cache.
  9363. */
  9364. function SetCache(values) {
  9365. var index = -1,
  9366. length = values == null ? 0 : values.length;
  9367. this.__data__ = new MapCache;
  9368. while (++index < length) {
  9369. this.add(values[index]);
  9370. }
  9371. }
  9372. // Add methods to `SetCache`.
  9373. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  9374. SetCache.prototype.has = setCacheHas;
  9375. module.exports = SetCache;
  9376. /***/ }),
  9377. /***/ "../../node_modules/lodash/_Stack.js":
  9378. /*!*********************************************************!*\
  9379. !*** E:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  9380. \*********************************************************/
  9381. /*! no static exports found */
  9382. /***/ (function(module, exports, __webpack_require__) {
  9383. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  9384. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  9385. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  9386. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  9387. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  9388. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  9389. /**
  9390. * Creates a stack cache object to store key-value pairs.
  9391. *
  9392. * @private
  9393. * @constructor
  9394. * @param {Array} [entries] The key-value pairs to cache.
  9395. */
  9396. function Stack(entries) {
  9397. var data = this.__data__ = new ListCache(entries);
  9398. this.size = data.size;
  9399. }
  9400. // Add methods to `Stack`.
  9401. Stack.prototype.clear = stackClear;
  9402. Stack.prototype['delete'] = stackDelete;
  9403. Stack.prototype.get = stackGet;
  9404. Stack.prototype.has = stackHas;
  9405. Stack.prototype.set = stackSet;
  9406. module.exports = Stack;
  9407. /***/ }),
  9408. /***/ "../../node_modules/lodash/_Symbol.js":
  9409. /*!**********************************************************!*\
  9410. !*** E:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  9411. \**********************************************************/
  9412. /*! no static exports found */
  9413. /***/ (function(module, exports, __webpack_require__) {
  9414. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9415. /** Built-in value references. */
  9416. var Symbol = root.Symbol;
  9417. module.exports = Symbol;
  9418. /***/ }),
  9419. /***/ "../../node_modules/lodash/_Uint8Array.js":
  9420. /*!**************************************************************!*\
  9421. !*** E:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  9422. \**************************************************************/
  9423. /*! no static exports found */
  9424. /***/ (function(module, exports, __webpack_require__) {
  9425. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9426. /** Built-in value references. */
  9427. var Uint8Array = root.Uint8Array;
  9428. module.exports = Uint8Array;
  9429. /***/ }),
  9430. /***/ "../../node_modules/lodash/_WeakMap.js":
  9431. /*!***********************************************************!*\
  9432. !*** E:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  9433. \***********************************************************/
  9434. /*! no static exports found */
  9435. /***/ (function(module, exports, __webpack_require__) {
  9436. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9437. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9438. /* Built-in method references that are verified to be native. */
  9439. var WeakMap = getNative(root, 'WeakMap');
  9440. module.exports = WeakMap;
  9441. /***/ }),
  9442. /***/ "../../node_modules/lodash/_apply.js":
  9443. /*!*********************************************************!*\
  9444. !*** E:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  9445. \*********************************************************/
  9446. /*! no static exports found */
  9447. /***/ (function(module, exports) {
  9448. /**
  9449. * A faster alternative to `Function#apply`, this function invokes `func`
  9450. * with the `this` binding of `thisArg` and the arguments of `args`.
  9451. *
  9452. * @private
  9453. * @param {Function} func The function to invoke.
  9454. * @param {*} thisArg The `this` binding of `func`.
  9455. * @param {Array} args The arguments to invoke `func` with.
  9456. * @returns {*} Returns the result of `func`.
  9457. */
  9458. function apply(func, thisArg, args) {
  9459. switch (args.length) {
  9460. case 0: return func.call(thisArg);
  9461. case 1: return func.call(thisArg, args[0]);
  9462. case 2: return func.call(thisArg, args[0], args[1]);
  9463. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  9464. }
  9465. return func.apply(thisArg, args);
  9466. }
  9467. module.exports = apply;
  9468. /***/ }),
  9469. /***/ "../../node_modules/lodash/_arrayEach.js":
  9470. /*!*************************************************************!*\
  9471. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  9472. \*************************************************************/
  9473. /*! no static exports found */
  9474. /***/ (function(module, exports) {
  9475. /**
  9476. * A specialized version of `_.forEach` for arrays without support for
  9477. * iteratee shorthands.
  9478. *
  9479. * @private
  9480. * @param {Array} [array] The array to iterate over.
  9481. * @param {Function} iteratee The function invoked per iteration.
  9482. * @returns {Array} Returns `array`.
  9483. */
  9484. function arrayEach(array, iteratee) {
  9485. var index = -1,
  9486. length = array == null ? 0 : array.length;
  9487. while (++index < length) {
  9488. if (iteratee(array[index], index, array) === false) {
  9489. break;
  9490. }
  9491. }
  9492. return array;
  9493. }
  9494. module.exports = arrayEach;
  9495. /***/ }),
  9496. /***/ "../../node_modules/lodash/_arrayFilter.js":
  9497. /*!***************************************************************!*\
  9498. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  9499. \***************************************************************/
  9500. /*! no static exports found */
  9501. /***/ (function(module, exports) {
  9502. /**
  9503. * A specialized version of `_.filter` for arrays without support for
  9504. * iteratee shorthands.
  9505. *
  9506. * @private
  9507. * @param {Array} [array] The array to iterate over.
  9508. * @param {Function} predicate The function invoked per iteration.
  9509. * @returns {Array} Returns the new filtered array.
  9510. */
  9511. function arrayFilter(array, predicate) {
  9512. var index = -1,
  9513. length = array == null ? 0 : array.length,
  9514. resIndex = 0,
  9515. result = [];
  9516. while (++index < length) {
  9517. var value = array[index];
  9518. if (predicate(value, index, array)) {
  9519. result[resIndex++] = value;
  9520. }
  9521. }
  9522. return result;
  9523. }
  9524. module.exports = arrayFilter;
  9525. /***/ }),
  9526. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  9527. /*!*****************************************************************!*\
  9528. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  9529. \*****************************************************************/
  9530. /*! no static exports found */
  9531. /***/ (function(module, exports, __webpack_require__) {
  9532. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  9533. /**
  9534. * A specialized version of `_.includes` for arrays without support for
  9535. * specifying an index to search from.
  9536. *
  9537. * @private
  9538. * @param {Array} [array] The array to inspect.
  9539. * @param {*} target The value to search for.
  9540. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9541. */
  9542. function arrayIncludes(array, value) {
  9543. var length = array == null ? 0 : array.length;
  9544. return !!length && baseIndexOf(array, value, 0) > -1;
  9545. }
  9546. module.exports = arrayIncludes;
  9547. /***/ }),
  9548. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  9549. /*!*********************************************************************!*\
  9550. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  9551. \*********************************************************************/
  9552. /*! no static exports found */
  9553. /***/ (function(module, exports) {
  9554. /**
  9555. * This function is like `arrayIncludes` except that it accepts a comparator.
  9556. *
  9557. * @private
  9558. * @param {Array} [array] The array to inspect.
  9559. * @param {*} target The value to search for.
  9560. * @param {Function} comparator The comparator invoked per element.
  9561. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9562. */
  9563. function arrayIncludesWith(array, value, comparator) {
  9564. var index = -1,
  9565. length = array == null ? 0 : array.length;
  9566. while (++index < length) {
  9567. if (comparator(value, array[index])) {
  9568. return true;
  9569. }
  9570. }
  9571. return false;
  9572. }
  9573. module.exports = arrayIncludesWith;
  9574. /***/ }),
  9575. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  9576. /*!*****************************************************************!*\
  9577. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  9578. \*****************************************************************/
  9579. /*! no static exports found */
  9580. /***/ (function(module, exports, __webpack_require__) {
  9581. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  9582. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  9583. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9584. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9585. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  9586. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  9587. /** Used for built-in method references. */
  9588. var objectProto = Object.prototype;
  9589. /** Used to check objects for own properties. */
  9590. var hasOwnProperty = objectProto.hasOwnProperty;
  9591. /**
  9592. * Creates an array of the enumerable property names of the array-like `value`.
  9593. *
  9594. * @private
  9595. * @param {*} value The value to query.
  9596. * @param {boolean} inherited Specify returning inherited property names.
  9597. * @returns {Array} Returns the array of property names.
  9598. */
  9599. function arrayLikeKeys(value, inherited) {
  9600. var isArr = isArray(value),
  9601. isArg = !isArr && isArguments(value),
  9602. isBuff = !isArr && !isArg && isBuffer(value),
  9603. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  9604. skipIndexes = isArr || isArg || isBuff || isType,
  9605. result = skipIndexes ? baseTimes(value.length, String) : [],
  9606. length = result.length;
  9607. for (var key in value) {
  9608. if ((inherited || hasOwnProperty.call(value, key)) &&
  9609. !(skipIndexes && (
  9610. // Safari 9 has enumerable `arguments.length` in strict mode.
  9611. key == 'length' ||
  9612. // Node.js 0.10 has enumerable non-index properties on buffers.
  9613. (isBuff && (key == 'offset' || key == 'parent')) ||
  9614. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  9615. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  9616. // Skip index properties.
  9617. isIndex(key, length)
  9618. ))) {
  9619. result.push(key);
  9620. }
  9621. }
  9622. return result;
  9623. }
  9624. module.exports = arrayLikeKeys;
  9625. /***/ }),
  9626. /***/ "../../node_modules/lodash/_arrayMap.js":
  9627. /*!************************************************************!*\
  9628. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  9629. \************************************************************/
  9630. /*! no static exports found */
  9631. /***/ (function(module, exports) {
  9632. /**
  9633. * A specialized version of `_.map` for arrays without support for iteratee
  9634. * shorthands.
  9635. *
  9636. * @private
  9637. * @param {Array} [array] The array to iterate over.
  9638. * @param {Function} iteratee The function invoked per iteration.
  9639. * @returns {Array} Returns the new mapped array.
  9640. */
  9641. function arrayMap(array, iteratee) {
  9642. var index = -1,
  9643. length = array == null ? 0 : array.length,
  9644. result = Array(length);
  9645. while (++index < length) {
  9646. result[index] = iteratee(array[index], index, array);
  9647. }
  9648. return result;
  9649. }
  9650. module.exports = arrayMap;
  9651. /***/ }),
  9652. /***/ "../../node_modules/lodash/_arrayPush.js":
  9653. /*!*************************************************************!*\
  9654. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  9655. \*************************************************************/
  9656. /*! no static exports found */
  9657. /***/ (function(module, exports) {
  9658. /**
  9659. * Appends the elements of `values` to `array`.
  9660. *
  9661. * @private
  9662. * @param {Array} array The array to modify.
  9663. * @param {Array} values The values to append.
  9664. * @returns {Array} Returns `array`.
  9665. */
  9666. function arrayPush(array, values) {
  9667. var index = -1,
  9668. length = values.length,
  9669. offset = array.length;
  9670. while (++index < length) {
  9671. array[offset + index] = values[index];
  9672. }
  9673. return array;
  9674. }
  9675. module.exports = arrayPush;
  9676. /***/ }),
  9677. /***/ "../../node_modules/lodash/_arrayReduce.js":
  9678. /*!***************************************************************!*\
  9679. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  9680. \***************************************************************/
  9681. /*! no static exports found */
  9682. /***/ (function(module, exports) {
  9683. /**
  9684. * A specialized version of `_.reduce` for arrays without support for
  9685. * iteratee shorthands.
  9686. *
  9687. * @private
  9688. * @param {Array} [array] The array to iterate over.
  9689. * @param {Function} iteratee The function invoked per iteration.
  9690. * @param {*} [accumulator] The initial value.
  9691. * @param {boolean} [initAccum] Specify using the first element of `array` as
  9692. * the initial value.
  9693. * @returns {*} Returns the accumulated value.
  9694. */
  9695. function arrayReduce(array, iteratee, accumulator, initAccum) {
  9696. var index = -1,
  9697. length = array == null ? 0 : array.length;
  9698. if (initAccum && length) {
  9699. accumulator = array[++index];
  9700. }
  9701. while (++index < length) {
  9702. accumulator = iteratee(accumulator, array[index], index, array);
  9703. }
  9704. return accumulator;
  9705. }
  9706. module.exports = arrayReduce;
  9707. /***/ }),
  9708. /***/ "../../node_modules/lodash/_arraySome.js":
  9709. /*!*************************************************************!*\
  9710. !*** E:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  9711. \*************************************************************/
  9712. /*! no static exports found */
  9713. /***/ (function(module, exports) {
  9714. /**
  9715. * A specialized version of `_.some` for arrays without support for iteratee
  9716. * shorthands.
  9717. *
  9718. * @private
  9719. * @param {Array} [array] The array to iterate over.
  9720. * @param {Function} predicate The function invoked per iteration.
  9721. * @returns {boolean} Returns `true` if any element passes the predicate check,
  9722. * else `false`.
  9723. */
  9724. function arraySome(array, predicate) {
  9725. var index = -1,
  9726. length = array == null ? 0 : array.length;
  9727. while (++index < length) {
  9728. if (predicate(array[index], index, array)) {
  9729. return true;
  9730. }
  9731. }
  9732. return false;
  9733. }
  9734. module.exports = arraySome;
  9735. /***/ }),
  9736. /***/ "../../node_modules/lodash/_asciiSize.js":
  9737. /*!*************************************************************!*\
  9738. !*** E:/Repos/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  9739. \*************************************************************/
  9740. /*! no static exports found */
  9741. /***/ (function(module, exports, __webpack_require__) {
  9742. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  9743. /**
  9744. * Gets the size of an ASCII `string`.
  9745. *
  9746. * @private
  9747. * @param {string} string The string inspect.
  9748. * @returns {number} Returns the string size.
  9749. */
  9750. var asciiSize = baseProperty('length');
  9751. module.exports = asciiSize;
  9752. /***/ }),
  9753. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  9754. /*!********************************************************************!*\
  9755. !*** E:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  9756. \********************************************************************/
  9757. /*! no static exports found */
  9758. /***/ (function(module, exports, __webpack_require__) {
  9759. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9760. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9761. /**
  9762. * This function is like `assignValue` except that it doesn't assign
  9763. * `undefined` values.
  9764. *
  9765. * @private
  9766. * @param {Object} object The object to modify.
  9767. * @param {string} key The key of the property to assign.
  9768. * @param {*} value The value to assign.
  9769. */
  9770. function assignMergeValue(object, key, value) {
  9771. if ((value !== undefined && !eq(object[key], value)) ||
  9772. (value === undefined && !(key in object))) {
  9773. baseAssignValue(object, key, value);
  9774. }
  9775. }
  9776. module.exports = assignMergeValue;
  9777. /***/ }),
  9778. /***/ "../../node_modules/lodash/_assignValue.js":
  9779. /*!***************************************************************!*\
  9780. !*** E:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  9781. \***************************************************************/
  9782. /*! no static exports found */
  9783. /***/ (function(module, exports, __webpack_require__) {
  9784. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9785. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9786. /** Used for built-in method references. */
  9787. var objectProto = Object.prototype;
  9788. /** Used to check objects for own properties. */
  9789. var hasOwnProperty = objectProto.hasOwnProperty;
  9790. /**
  9791. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  9792. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  9793. * for equality comparisons.
  9794. *
  9795. * @private
  9796. * @param {Object} object The object to modify.
  9797. * @param {string} key The key of the property to assign.
  9798. * @param {*} value The value to assign.
  9799. */
  9800. function assignValue(object, key, value) {
  9801. var objValue = object[key];
  9802. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  9803. (value === undefined && !(key in object))) {
  9804. baseAssignValue(object, key, value);
  9805. }
  9806. }
  9807. module.exports = assignValue;
  9808. /***/ }),
  9809. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  9810. /*!****************************************************************!*\
  9811. !*** E:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  9812. \****************************************************************/
  9813. /*! no static exports found */
  9814. /***/ (function(module, exports, __webpack_require__) {
  9815. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9816. /**
  9817. * Gets the index at which the `key` is found in `array` of key-value pairs.
  9818. *
  9819. * @private
  9820. * @param {Array} array The array to inspect.
  9821. * @param {*} key The key to search for.
  9822. * @returns {number} Returns the index of the matched value, else `-1`.
  9823. */
  9824. function assocIndexOf(array, key) {
  9825. var length = array.length;
  9826. while (length--) {
  9827. if (eq(array[length][0], key)) {
  9828. return length;
  9829. }
  9830. }
  9831. return -1;
  9832. }
  9833. module.exports = assocIndexOf;
  9834. /***/ }),
  9835. /***/ "../../node_modules/lodash/_baseAssign.js":
  9836. /*!**************************************************************!*\
  9837. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  9838. \**************************************************************/
  9839. /*! no static exports found */
  9840. /***/ (function(module, exports, __webpack_require__) {
  9841. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9842. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9843. /**
  9844. * The base implementation of `_.assign` without support for multiple sources
  9845. * or `customizer` functions.
  9846. *
  9847. * @private
  9848. * @param {Object} object The destination object.
  9849. * @param {Object} source The source object.
  9850. * @returns {Object} Returns `object`.
  9851. */
  9852. function baseAssign(object, source) {
  9853. return object && copyObject(source, keys(source), object);
  9854. }
  9855. module.exports = baseAssign;
  9856. /***/ }),
  9857. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  9858. /*!****************************************************************!*\
  9859. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  9860. \****************************************************************/
  9861. /*! no static exports found */
  9862. /***/ (function(module, exports, __webpack_require__) {
  9863. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9864. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  9865. /**
  9866. * The base implementation of `_.assignIn` without support for multiple sources
  9867. * or `customizer` functions.
  9868. *
  9869. * @private
  9870. * @param {Object} object The destination object.
  9871. * @param {Object} source The source object.
  9872. * @returns {Object} Returns `object`.
  9873. */
  9874. function baseAssignIn(object, source) {
  9875. return object && copyObject(source, keysIn(source), object);
  9876. }
  9877. module.exports = baseAssignIn;
  9878. /***/ }),
  9879. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  9880. /*!*******************************************************************!*\
  9881. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  9882. \*******************************************************************/
  9883. /*! no static exports found */
  9884. /***/ (function(module, exports, __webpack_require__) {
  9885. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  9886. /**
  9887. * The base implementation of `assignValue` and `assignMergeValue` without
  9888. * value checks.
  9889. *
  9890. * @private
  9891. * @param {Object} object The object to modify.
  9892. * @param {string} key The key of the property to assign.
  9893. * @param {*} value The value to assign.
  9894. */
  9895. function baseAssignValue(object, key, value) {
  9896. if (key == '__proto__' && defineProperty) {
  9897. defineProperty(object, key, {
  9898. 'configurable': true,
  9899. 'enumerable': true,
  9900. 'value': value,
  9901. 'writable': true
  9902. });
  9903. } else {
  9904. object[key] = value;
  9905. }
  9906. }
  9907. module.exports = baseAssignValue;
  9908. /***/ }),
  9909. /***/ "../../node_modules/lodash/_baseClone.js":
  9910. /*!*************************************************************!*\
  9911. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  9912. \*************************************************************/
  9913. /*! no static exports found */
  9914. /***/ (function(module, exports, __webpack_require__) {
  9915. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  9916. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  9917. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  9918. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  9919. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  9920. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  9921. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  9922. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  9923. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  9924. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  9925. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  9926. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  9927. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  9928. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  9929. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  9930. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9931. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9932. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  9933. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  9934. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  9935. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9936. /** Used to compose bitmasks for cloning. */
  9937. var CLONE_DEEP_FLAG = 1,
  9938. CLONE_FLAT_FLAG = 2,
  9939. CLONE_SYMBOLS_FLAG = 4;
  9940. /** `Object#toString` result references. */
  9941. var argsTag = '[object Arguments]',
  9942. arrayTag = '[object Array]',
  9943. boolTag = '[object Boolean]',
  9944. dateTag = '[object Date]',
  9945. errorTag = '[object Error]',
  9946. funcTag = '[object Function]',
  9947. genTag = '[object GeneratorFunction]',
  9948. mapTag = '[object Map]',
  9949. numberTag = '[object Number]',
  9950. objectTag = '[object Object]',
  9951. regexpTag = '[object RegExp]',
  9952. setTag = '[object Set]',
  9953. stringTag = '[object String]',
  9954. symbolTag = '[object Symbol]',
  9955. weakMapTag = '[object WeakMap]';
  9956. var arrayBufferTag = '[object ArrayBuffer]',
  9957. dataViewTag = '[object DataView]',
  9958. float32Tag = '[object Float32Array]',
  9959. float64Tag = '[object Float64Array]',
  9960. int8Tag = '[object Int8Array]',
  9961. int16Tag = '[object Int16Array]',
  9962. int32Tag = '[object Int32Array]',
  9963. uint8Tag = '[object Uint8Array]',
  9964. uint8ClampedTag = '[object Uint8ClampedArray]',
  9965. uint16Tag = '[object Uint16Array]',
  9966. uint32Tag = '[object Uint32Array]';
  9967. /** Used to identify `toStringTag` values supported by `_.clone`. */
  9968. var cloneableTags = {};
  9969. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  9970. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  9971. cloneableTags[boolTag] = cloneableTags[dateTag] =
  9972. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  9973. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  9974. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  9975. cloneableTags[numberTag] = cloneableTags[objectTag] =
  9976. cloneableTags[regexpTag] = cloneableTags[setTag] =
  9977. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  9978. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  9979. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  9980. cloneableTags[errorTag] = cloneableTags[funcTag] =
  9981. cloneableTags[weakMapTag] = false;
  9982. /**
  9983. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  9984. * traversed objects.
  9985. *
  9986. * @private
  9987. * @param {*} value The value to clone.
  9988. * @param {boolean} bitmask The bitmask flags.
  9989. * 1 - Deep clone
  9990. * 2 - Flatten inherited properties
  9991. * 4 - Clone symbols
  9992. * @param {Function} [customizer] The function to customize cloning.
  9993. * @param {string} [key] The key of `value`.
  9994. * @param {Object} [object] The parent object of `value`.
  9995. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  9996. * @returns {*} Returns the cloned value.
  9997. */
  9998. function baseClone(value, bitmask, customizer, key, object, stack) {
  9999. var result,
  10000. isDeep = bitmask & CLONE_DEEP_FLAG,
  10001. isFlat = bitmask & CLONE_FLAT_FLAG,
  10002. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  10003. if (customizer) {
  10004. result = object ? customizer(value, key, object, stack) : customizer(value);
  10005. }
  10006. if (result !== undefined) {
  10007. return result;
  10008. }
  10009. if (!isObject(value)) {
  10010. return value;
  10011. }
  10012. var isArr = isArray(value);
  10013. if (isArr) {
  10014. result = initCloneArray(value);
  10015. if (!isDeep) {
  10016. return copyArray(value, result);
  10017. }
  10018. } else {
  10019. var tag = getTag(value),
  10020. isFunc = tag == funcTag || tag == genTag;
  10021. if (isBuffer(value)) {
  10022. return cloneBuffer(value, isDeep);
  10023. }
  10024. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  10025. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  10026. if (!isDeep) {
  10027. return isFlat
  10028. ? copySymbolsIn(value, baseAssignIn(result, value))
  10029. : copySymbols(value, baseAssign(result, value));
  10030. }
  10031. } else {
  10032. if (!cloneableTags[tag]) {
  10033. return object ? value : {};
  10034. }
  10035. result = initCloneByTag(value, tag, isDeep);
  10036. }
  10037. }
  10038. // Check for circular references and return its corresponding clone.
  10039. stack || (stack = new Stack);
  10040. var stacked = stack.get(value);
  10041. if (stacked) {
  10042. return stacked;
  10043. }
  10044. stack.set(value, result);
  10045. if (isSet(value)) {
  10046. value.forEach(function(subValue) {
  10047. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  10048. });
  10049. } else if (isMap(value)) {
  10050. value.forEach(function(subValue, key) {
  10051. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10052. });
  10053. }
  10054. var keysFunc = isFull
  10055. ? (isFlat ? getAllKeysIn : getAllKeys)
  10056. : (isFlat ? keysIn : keys);
  10057. var props = isArr ? undefined : keysFunc(value);
  10058. arrayEach(props || value, function(subValue, key) {
  10059. if (props) {
  10060. key = subValue;
  10061. subValue = value[key];
  10062. }
  10063. // Recursively populate clone (susceptible to call stack limits).
  10064. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10065. });
  10066. return result;
  10067. }
  10068. module.exports = baseClone;
  10069. /***/ }),
  10070. /***/ "../../node_modules/lodash/_baseCreate.js":
  10071. /*!**************************************************************!*\
  10072. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  10073. \**************************************************************/
  10074. /*! no static exports found */
  10075. /***/ (function(module, exports, __webpack_require__) {
  10076. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  10077. /** Built-in value references. */
  10078. var objectCreate = Object.create;
  10079. /**
  10080. * The base implementation of `_.create` without support for assigning
  10081. * properties to the created object.
  10082. *
  10083. * @private
  10084. * @param {Object} proto The object to inherit from.
  10085. * @returns {Object} Returns the new object.
  10086. */
  10087. var baseCreate = (function() {
  10088. function object() {}
  10089. return function(proto) {
  10090. if (!isObject(proto)) {
  10091. return {};
  10092. }
  10093. if (objectCreate) {
  10094. return objectCreate(proto);
  10095. }
  10096. object.prototype = proto;
  10097. var result = new object;
  10098. object.prototype = undefined;
  10099. return result;
  10100. };
  10101. }());
  10102. module.exports = baseCreate;
  10103. /***/ }),
  10104. /***/ "../../node_modules/lodash/_baseEach.js":
  10105. /*!************************************************************!*\
  10106. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  10107. \************************************************************/
  10108. /*! no static exports found */
  10109. /***/ (function(module, exports, __webpack_require__) {
  10110. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  10111. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  10112. /**
  10113. * The base implementation of `_.forEach` without support for iteratee shorthands.
  10114. *
  10115. * @private
  10116. * @param {Array|Object} collection The collection to iterate over.
  10117. * @param {Function} iteratee The function invoked per iteration.
  10118. * @returns {Array|Object} Returns `collection`.
  10119. */
  10120. var baseEach = createBaseEach(baseForOwn);
  10121. module.exports = baseEach;
  10122. /***/ }),
  10123. /***/ "../../node_modules/lodash/_baseExtremum.js":
  10124. /*!****************************************************************!*\
  10125. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  10126. \****************************************************************/
  10127. /*! no static exports found */
  10128. /***/ (function(module, exports, __webpack_require__) {
  10129. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  10130. /**
  10131. * The base implementation of methods like `_.max` and `_.min` which accepts a
  10132. * `comparator` to determine the extremum value.
  10133. *
  10134. * @private
  10135. * @param {Array} array The array to iterate over.
  10136. * @param {Function} iteratee The iteratee invoked per iteration.
  10137. * @param {Function} comparator The comparator used to compare values.
  10138. * @returns {*} Returns the extremum value.
  10139. */
  10140. function baseExtremum(array, iteratee, comparator) {
  10141. var index = -1,
  10142. length = array.length;
  10143. while (++index < length) {
  10144. var value = array[index],
  10145. current = iteratee(value);
  10146. if (current != null && (computed === undefined
  10147. ? (current === current && !isSymbol(current))
  10148. : comparator(current, computed)
  10149. )) {
  10150. var computed = current,
  10151. result = value;
  10152. }
  10153. }
  10154. return result;
  10155. }
  10156. module.exports = baseExtremum;
  10157. /***/ }),
  10158. /***/ "../../node_modules/lodash/_baseFilter.js":
  10159. /*!**************************************************************!*\
  10160. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  10161. \**************************************************************/
  10162. /*! no static exports found */
  10163. /***/ (function(module, exports, __webpack_require__) {
  10164. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  10165. /**
  10166. * The base implementation of `_.filter` without support for iteratee shorthands.
  10167. *
  10168. * @private
  10169. * @param {Array|Object} collection The collection to iterate over.
  10170. * @param {Function} predicate The function invoked per iteration.
  10171. * @returns {Array} Returns the new filtered array.
  10172. */
  10173. function baseFilter(collection, predicate) {
  10174. var result = [];
  10175. baseEach(collection, function(value, index, collection) {
  10176. if (predicate(value, index, collection)) {
  10177. result.push(value);
  10178. }
  10179. });
  10180. return result;
  10181. }
  10182. module.exports = baseFilter;
  10183. /***/ }),
  10184. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  10185. /*!*****************************************************************!*\
  10186. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  10187. \*****************************************************************/
  10188. /*! no static exports found */
  10189. /***/ (function(module, exports) {
  10190. /**
  10191. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  10192. * support for iteratee shorthands.
  10193. *
  10194. * @private
  10195. * @param {Array} array The array to inspect.
  10196. * @param {Function} predicate The function invoked per iteration.
  10197. * @param {number} fromIndex The index to search from.
  10198. * @param {boolean} [fromRight] Specify iterating from right to left.
  10199. * @returns {number} Returns the index of the matched value, else `-1`.
  10200. */
  10201. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  10202. var length = array.length,
  10203. index = fromIndex + (fromRight ? 1 : -1);
  10204. while ((fromRight ? index-- : ++index < length)) {
  10205. if (predicate(array[index], index, array)) {
  10206. return index;
  10207. }
  10208. }
  10209. return -1;
  10210. }
  10211. module.exports = baseFindIndex;
  10212. /***/ }),
  10213. /***/ "../../node_modules/lodash/_baseFlatten.js":
  10214. /*!***************************************************************!*\
  10215. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  10216. \***************************************************************/
  10217. /*! no static exports found */
  10218. /***/ (function(module, exports, __webpack_require__) {
  10219. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10220. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  10221. /**
  10222. * The base implementation of `_.flatten` with support for restricting flattening.
  10223. *
  10224. * @private
  10225. * @param {Array} array The array to flatten.
  10226. * @param {number} depth The maximum recursion depth.
  10227. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  10228. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  10229. * @param {Array} [result=[]] The initial result value.
  10230. * @returns {Array} Returns the new flattened array.
  10231. */
  10232. function baseFlatten(array, depth, predicate, isStrict, result) {
  10233. var index = -1,
  10234. length = array.length;
  10235. predicate || (predicate = isFlattenable);
  10236. result || (result = []);
  10237. while (++index < length) {
  10238. var value = array[index];
  10239. if (depth > 0 && predicate(value)) {
  10240. if (depth > 1) {
  10241. // Recursively flatten arrays (susceptible to call stack limits).
  10242. baseFlatten(value, depth - 1, predicate, isStrict, result);
  10243. } else {
  10244. arrayPush(result, value);
  10245. }
  10246. } else if (!isStrict) {
  10247. result[result.length] = value;
  10248. }
  10249. }
  10250. return result;
  10251. }
  10252. module.exports = baseFlatten;
  10253. /***/ }),
  10254. /***/ "../../node_modules/lodash/_baseFor.js":
  10255. /*!***********************************************************!*\
  10256. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  10257. \***********************************************************/
  10258. /*! no static exports found */
  10259. /***/ (function(module, exports, __webpack_require__) {
  10260. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  10261. /**
  10262. * The base implementation of `baseForOwn` which iterates over `object`
  10263. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  10264. * Iteratee functions may exit iteration early by explicitly returning `false`.
  10265. *
  10266. * @private
  10267. * @param {Object} object The object to iterate over.
  10268. * @param {Function} iteratee The function invoked per iteration.
  10269. * @param {Function} keysFunc The function to get the keys of `object`.
  10270. * @returns {Object} Returns `object`.
  10271. */
  10272. var baseFor = createBaseFor();
  10273. module.exports = baseFor;
  10274. /***/ }),
  10275. /***/ "../../node_modules/lodash/_baseForOwn.js":
  10276. /*!**************************************************************!*\
  10277. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  10278. \**************************************************************/
  10279. /*! no static exports found */
  10280. /***/ (function(module, exports, __webpack_require__) {
  10281. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  10282. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  10283. /**
  10284. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  10285. *
  10286. * @private
  10287. * @param {Object} object The object to iterate over.
  10288. * @param {Function} iteratee The function invoked per iteration.
  10289. * @returns {Object} Returns `object`.
  10290. */
  10291. function baseForOwn(object, iteratee) {
  10292. return object && baseFor(object, iteratee, keys);
  10293. }
  10294. module.exports = baseForOwn;
  10295. /***/ }),
  10296. /***/ "../../node_modules/lodash/_baseGet.js":
  10297. /*!***********************************************************!*\
  10298. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  10299. \***********************************************************/
  10300. /*! no static exports found */
  10301. /***/ (function(module, exports, __webpack_require__) {
  10302. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  10303. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10304. /**
  10305. * The base implementation of `_.get` without support for default values.
  10306. *
  10307. * @private
  10308. * @param {Object} object The object to query.
  10309. * @param {Array|string} path The path of the property to get.
  10310. * @returns {*} Returns the resolved value.
  10311. */
  10312. function baseGet(object, path) {
  10313. path = castPath(path, object);
  10314. var index = 0,
  10315. length = path.length;
  10316. while (object != null && index < length) {
  10317. object = object[toKey(path[index++])];
  10318. }
  10319. return (index && index == length) ? object : undefined;
  10320. }
  10321. module.exports = baseGet;
  10322. /***/ }),
  10323. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  10324. /*!******************************************************************!*\
  10325. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  10326. \******************************************************************/
  10327. /*! no static exports found */
  10328. /***/ (function(module, exports, __webpack_require__) {
  10329. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10330. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  10331. /**
  10332. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  10333. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  10334. * symbols of `object`.
  10335. *
  10336. * @private
  10337. * @param {Object} object The object to query.
  10338. * @param {Function} keysFunc The function to get the keys of `object`.
  10339. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  10340. * @returns {Array} Returns the array of property names and symbols.
  10341. */
  10342. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  10343. var result = keysFunc(object);
  10344. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  10345. }
  10346. module.exports = baseGetAllKeys;
  10347. /***/ }),
  10348. /***/ "../../node_modules/lodash/_baseGetTag.js":
  10349. /*!**************************************************************!*\
  10350. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  10351. \**************************************************************/
  10352. /*! no static exports found */
  10353. /***/ (function(module, exports, __webpack_require__) {
  10354. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  10355. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  10356. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  10357. /** `Object#toString` result references. */
  10358. var nullTag = '[object Null]',
  10359. undefinedTag = '[object Undefined]';
  10360. /** Built-in value references. */
  10361. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  10362. /**
  10363. * The base implementation of `getTag` without fallbacks for buggy environments.
  10364. *
  10365. * @private
  10366. * @param {*} value The value to query.
  10367. * @returns {string} Returns the `toStringTag`.
  10368. */
  10369. function baseGetTag(value) {
  10370. if (value == null) {
  10371. return value === undefined ? undefinedTag : nullTag;
  10372. }
  10373. return (symToStringTag && symToStringTag in Object(value))
  10374. ? getRawTag(value)
  10375. : objectToString(value);
  10376. }
  10377. module.exports = baseGetTag;
  10378. /***/ }),
  10379. /***/ "../../node_modules/lodash/_baseGt.js":
  10380. /*!**********************************************************!*\
  10381. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGt.js ***!
  10382. \**********************************************************/
  10383. /*! no static exports found */
  10384. /***/ (function(module, exports) {
  10385. /**
  10386. * The base implementation of `_.gt` which doesn't coerce arguments.
  10387. *
  10388. * @private
  10389. * @param {*} value The value to compare.
  10390. * @param {*} other The other value to compare.
  10391. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  10392. * else `false`.
  10393. */
  10394. function baseGt(value, other) {
  10395. return value > other;
  10396. }
  10397. module.exports = baseGt;
  10398. /***/ }),
  10399. /***/ "../../node_modules/lodash/_baseHas.js":
  10400. /*!***********************************************************!*\
  10401. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseHas.js ***!
  10402. \***********************************************************/
  10403. /*! no static exports found */
  10404. /***/ (function(module, exports) {
  10405. /** Used for built-in method references. */
  10406. var objectProto = Object.prototype;
  10407. /** Used to check objects for own properties. */
  10408. var hasOwnProperty = objectProto.hasOwnProperty;
  10409. /**
  10410. * The base implementation of `_.has` without support for deep paths.
  10411. *
  10412. * @private
  10413. * @param {Object} [object] The object to query.
  10414. * @param {Array|string} key The key to check.
  10415. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10416. */
  10417. function baseHas(object, key) {
  10418. return object != null && hasOwnProperty.call(object, key);
  10419. }
  10420. module.exports = baseHas;
  10421. /***/ }),
  10422. /***/ "../../node_modules/lodash/_baseHasIn.js":
  10423. /*!*************************************************************!*\
  10424. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  10425. \*************************************************************/
  10426. /*! no static exports found */
  10427. /***/ (function(module, exports) {
  10428. /**
  10429. * The base implementation of `_.hasIn` without support for deep paths.
  10430. *
  10431. * @private
  10432. * @param {Object} [object] The object to query.
  10433. * @param {Array|string} key The key to check.
  10434. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10435. */
  10436. function baseHasIn(object, key) {
  10437. return object != null && key in Object(object);
  10438. }
  10439. module.exports = baseHasIn;
  10440. /***/ }),
  10441. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  10442. /*!***************************************************************!*\
  10443. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  10444. \***************************************************************/
  10445. /*! no static exports found */
  10446. /***/ (function(module, exports, __webpack_require__) {
  10447. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  10448. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  10449. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  10450. /**
  10451. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  10452. *
  10453. * @private
  10454. * @param {Array} array The array to inspect.
  10455. * @param {*} value The value to search for.
  10456. * @param {number} fromIndex The index to search from.
  10457. * @returns {number} Returns the index of the matched value, else `-1`.
  10458. */
  10459. function baseIndexOf(array, value, fromIndex) {
  10460. return value === value
  10461. ? strictIndexOf(array, value, fromIndex)
  10462. : baseFindIndex(array, baseIsNaN, fromIndex);
  10463. }
  10464. module.exports = baseIndexOf;
  10465. /***/ }),
  10466. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  10467. /*!*******************************************************************!*\
  10468. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  10469. \*******************************************************************/
  10470. /*! no static exports found */
  10471. /***/ (function(module, exports, __webpack_require__) {
  10472. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10473. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10474. /** `Object#toString` result references. */
  10475. var argsTag = '[object Arguments]';
  10476. /**
  10477. * The base implementation of `_.isArguments`.
  10478. *
  10479. * @private
  10480. * @param {*} value The value to check.
  10481. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  10482. */
  10483. function baseIsArguments(value) {
  10484. return isObjectLike(value) && baseGetTag(value) == argsTag;
  10485. }
  10486. module.exports = baseIsArguments;
  10487. /***/ }),
  10488. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  10489. /*!***************************************************************!*\
  10490. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  10491. \***************************************************************/
  10492. /*! no static exports found */
  10493. /***/ (function(module, exports, __webpack_require__) {
  10494. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  10495. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10496. /**
  10497. * The base implementation of `_.isEqual` which supports partial comparisons
  10498. * and tracks traversed objects.
  10499. *
  10500. * @private
  10501. * @param {*} value The value to compare.
  10502. * @param {*} other The other value to compare.
  10503. * @param {boolean} bitmask The bitmask flags.
  10504. * 1 - Unordered comparison
  10505. * 2 - Partial comparison
  10506. * @param {Function} [customizer] The function to customize comparisons.
  10507. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  10508. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  10509. */
  10510. function baseIsEqual(value, other, bitmask, customizer, stack) {
  10511. if (value === other) {
  10512. return true;
  10513. }
  10514. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  10515. return value !== value && other !== other;
  10516. }
  10517. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  10518. }
  10519. module.exports = baseIsEqual;
  10520. /***/ }),
  10521. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  10522. /*!*******************************************************************!*\
  10523. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  10524. \*******************************************************************/
  10525. /*! no static exports found */
  10526. /***/ (function(module, exports, __webpack_require__) {
  10527. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10528. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  10529. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  10530. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  10531. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10532. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10533. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  10534. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  10535. /** Used to compose bitmasks for value comparisons. */
  10536. var COMPARE_PARTIAL_FLAG = 1;
  10537. /** `Object#toString` result references. */
  10538. var argsTag = '[object Arguments]',
  10539. arrayTag = '[object Array]',
  10540. objectTag = '[object Object]';
  10541. /** Used for built-in method references. */
  10542. var objectProto = Object.prototype;
  10543. /** Used to check objects for own properties. */
  10544. var hasOwnProperty = objectProto.hasOwnProperty;
  10545. /**
  10546. * A specialized version of `baseIsEqual` for arrays and objects which performs
  10547. * deep comparisons and tracks traversed objects enabling objects with circular
  10548. * references to be compared.
  10549. *
  10550. * @private
  10551. * @param {Object} object The object to compare.
  10552. * @param {Object} other The other object to compare.
  10553. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10554. * @param {Function} customizer The function to customize comparisons.
  10555. * @param {Function} equalFunc The function to determine equivalents of values.
  10556. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  10557. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10558. */
  10559. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  10560. var objIsArr = isArray(object),
  10561. othIsArr = isArray(other),
  10562. objTag = objIsArr ? arrayTag : getTag(object),
  10563. othTag = othIsArr ? arrayTag : getTag(other);
  10564. objTag = objTag == argsTag ? objectTag : objTag;
  10565. othTag = othTag == argsTag ? objectTag : othTag;
  10566. var objIsObj = objTag == objectTag,
  10567. othIsObj = othTag == objectTag,
  10568. isSameTag = objTag == othTag;
  10569. if (isSameTag && isBuffer(object)) {
  10570. if (!isBuffer(other)) {
  10571. return false;
  10572. }
  10573. objIsArr = true;
  10574. objIsObj = false;
  10575. }
  10576. if (isSameTag && !objIsObj) {
  10577. stack || (stack = new Stack);
  10578. return (objIsArr || isTypedArray(object))
  10579. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  10580. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  10581. }
  10582. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  10583. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  10584. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  10585. if (objIsWrapped || othIsWrapped) {
  10586. var objUnwrapped = objIsWrapped ? object.value() : object,
  10587. othUnwrapped = othIsWrapped ? other.value() : other;
  10588. stack || (stack = new Stack);
  10589. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  10590. }
  10591. }
  10592. if (!isSameTag) {
  10593. return false;
  10594. }
  10595. stack || (stack = new Stack);
  10596. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  10597. }
  10598. module.exports = baseIsEqualDeep;
  10599. /***/ }),
  10600. /***/ "../../node_modules/lodash/_baseIsMap.js":
  10601. /*!*************************************************************!*\
  10602. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  10603. \*************************************************************/
  10604. /*! no static exports found */
  10605. /***/ (function(module, exports, __webpack_require__) {
  10606. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10607. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10608. /** `Object#toString` result references. */
  10609. var mapTag = '[object Map]';
  10610. /**
  10611. * The base implementation of `_.isMap` without Node.js optimizations.
  10612. *
  10613. * @private
  10614. * @param {*} value The value to check.
  10615. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  10616. */
  10617. function baseIsMap(value) {
  10618. return isObjectLike(value) && getTag(value) == mapTag;
  10619. }
  10620. module.exports = baseIsMap;
  10621. /***/ }),
  10622. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  10623. /*!***************************************************************!*\
  10624. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  10625. \***************************************************************/
  10626. /*! no static exports found */
  10627. /***/ (function(module, exports, __webpack_require__) {
  10628. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10629. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  10630. /** Used to compose bitmasks for value comparisons. */
  10631. var COMPARE_PARTIAL_FLAG = 1,
  10632. COMPARE_UNORDERED_FLAG = 2;
  10633. /**
  10634. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  10635. *
  10636. * @private
  10637. * @param {Object} object The object to inspect.
  10638. * @param {Object} source The object of property values to match.
  10639. * @param {Array} matchData The property names, values, and compare flags to match.
  10640. * @param {Function} [customizer] The function to customize comparisons.
  10641. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  10642. */
  10643. function baseIsMatch(object, source, matchData, customizer) {
  10644. var index = matchData.length,
  10645. length = index,
  10646. noCustomizer = !customizer;
  10647. if (object == null) {
  10648. return !length;
  10649. }
  10650. object = Object(object);
  10651. while (index--) {
  10652. var data = matchData[index];
  10653. if ((noCustomizer && data[2])
  10654. ? data[1] !== object[data[0]]
  10655. : !(data[0] in object)
  10656. ) {
  10657. return false;
  10658. }
  10659. }
  10660. while (++index < length) {
  10661. data = matchData[index];
  10662. var key = data[0],
  10663. objValue = object[key],
  10664. srcValue = data[1];
  10665. if (noCustomizer && data[2]) {
  10666. if (objValue === undefined && !(key in object)) {
  10667. return false;
  10668. }
  10669. } else {
  10670. var stack = new Stack;
  10671. if (customizer) {
  10672. var result = customizer(objValue, srcValue, key, object, source, stack);
  10673. }
  10674. if (!(result === undefined
  10675. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  10676. : result
  10677. )) {
  10678. return false;
  10679. }
  10680. }
  10681. }
  10682. return true;
  10683. }
  10684. module.exports = baseIsMatch;
  10685. /***/ }),
  10686. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  10687. /*!*************************************************************!*\
  10688. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  10689. \*************************************************************/
  10690. /*! no static exports found */
  10691. /***/ (function(module, exports) {
  10692. /**
  10693. * The base implementation of `_.isNaN` without support for number objects.
  10694. *
  10695. * @private
  10696. * @param {*} value The value to check.
  10697. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  10698. */
  10699. function baseIsNaN(value) {
  10700. return value !== value;
  10701. }
  10702. module.exports = baseIsNaN;
  10703. /***/ }),
  10704. /***/ "../../node_modules/lodash/_baseIsNative.js":
  10705. /*!****************************************************************!*\
  10706. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  10707. \****************************************************************/
  10708. /*! no static exports found */
  10709. /***/ (function(module, exports, __webpack_require__) {
  10710. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  10711. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  10712. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10713. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  10714. /**
  10715. * Used to match `RegExp`
  10716. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  10717. */
  10718. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  10719. /** Used to detect host constructors (Safari). */
  10720. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  10721. /** Used for built-in method references. */
  10722. var funcProto = Function.prototype,
  10723. objectProto = Object.prototype;
  10724. /** Used to resolve the decompiled source of functions. */
  10725. var funcToString = funcProto.toString;
  10726. /** Used to check objects for own properties. */
  10727. var hasOwnProperty = objectProto.hasOwnProperty;
  10728. /** Used to detect if a method is native. */
  10729. var reIsNative = RegExp('^' +
  10730. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  10731. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  10732. );
  10733. /**
  10734. * The base implementation of `_.isNative` without bad shim checks.
  10735. *
  10736. * @private
  10737. * @param {*} value The value to check.
  10738. * @returns {boolean} Returns `true` if `value` is a native function,
  10739. * else `false`.
  10740. */
  10741. function baseIsNative(value) {
  10742. if (!isObject(value) || isMasked(value)) {
  10743. return false;
  10744. }
  10745. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  10746. return pattern.test(toSource(value));
  10747. }
  10748. module.exports = baseIsNative;
  10749. /***/ }),
  10750. /***/ "../../node_modules/lodash/_baseIsSet.js":
  10751. /*!*************************************************************!*\
  10752. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  10753. \*************************************************************/
  10754. /*! no static exports found */
  10755. /***/ (function(module, exports, __webpack_require__) {
  10756. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10757. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10758. /** `Object#toString` result references. */
  10759. var setTag = '[object Set]';
  10760. /**
  10761. * The base implementation of `_.isSet` without Node.js optimizations.
  10762. *
  10763. * @private
  10764. * @param {*} value The value to check.
  10765. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  10766. */
  10767. function baseIsSet(value) {
  10768. return isObjectLike(value) && getTag(value) == setTag;
  10769. }
  10770. module.exports = baseIsSet;
  10771. /***/ }),
  10772. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  10773. /*!********************************************************************!*\
  10774. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  10775. \********************************************************************/
  10776. /*! no static exports found */
  10777. /***/ (function(module, exports, __webpack_require__) {
  10778. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10779. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  10780. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10781. /** `Object#toString` result references. */
  10782. var argsTag = '[object Arguments]',
  10783. arrayTag = '[object Array]',
  10784. boolTag = '[object Boolean]',
  10785. dateTag = '[object Date]',
  10786. errorTag = '[object Error]',
  10787. funcTag = '[object Function]',
  10788. mapTag = '[object Map]',
  10789. numberTag = '[object Number]',
  10790. objectTag = '[object Object]',
  10791. regexpTag = '[object RegExp]',
  10792. setTag = '[object Set]',
  10793. stringTag = '[object String]',
  10794. weakMapTag = '[object WeakMap]';
  10795. var arrayBufferTag = '[object ArrayBuffer]',
  10796. dataViewTag = '[object DataView]',
  10797. float32Tag = '[object Float32Array]',
  10798. float64Tag = '[object Float64Array]',
  10799. int8Tag = '[object Int8Array]',
  10800. int16Tag = '[object Int16Array]',
  10801. int32Tag = '[object Int32Array]',
  10802. uint8Tag = '[object Uint8Array]',
  10803. uint8ClampedTag = '[object Uint8ClampedArray]',
  10804. uint16Tag = '[object Uint16Array]',
  10805. uint32Tag = '[object Uint32Array]';
  10806. /** Used to identify `toStringTag` values of typed arrays. */
  10807. var typedArrayTags = {};
  10808. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  10809. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  10810. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  10811. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  10812. typedArrayTags[uint32Tag] = true;
  10813. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  10814. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  10815. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  10816. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  10817. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  10818. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  10819. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  10820. typedArrayTags[weakMapTag] = false;
  10821. /**
  10822. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  10823. *
  10824. * @private
  10825. * @param {*} value The value to check.
  10826. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  10827. */
  10828. function baseIsTypedArray(value) {
  10829. return isObjectLike(value) &&
  10830. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  10831. }
  10832. module.exports = baseIsTypedArray;
  10833. /***/ }),
  10834. /***/ "../../node_modules/lodash/_baseIteratee.js":
  10835. /*!****************************************************************!*\
  10836. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  10837. \****************************************************************/
  10838. /*! no static exports found */
  10839. /***/ (function(module, exports, __webpack_require__) {
  10840. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  10841. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  10842. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  10843. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10844. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  10845. /**
  10846. * The base implementation of `_.iteratee`.
  10847. *
  10848. * @private
  10849. * @param {*} [value=_.identity] The value to convert to an iteratee.
  10850. * @returns {Function} Returns the iteratee.
  10851. */
  10852. function baseIteratee(value) {
  10853. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  10854. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  10855. if (typeof value == 'function') {
  10856. return value;
  10857. }
  10858. if (value == null) {
  10859. return identity;
  10860. }
  10861. if (typeof value == 'object') {
  10862. return isArray(value)
  10863. ? baseMatchesProperty(value[0], value[1])
  10864. : baseMatches(value);
  10865. }
  10866. return property(value);
  10867. }
  10868. module.exports = baseIteratee;
  10869. /***/ }),
  10870. /***/ "../../node_modules/lodash/_baseKeys.js":
  10871. /*!************************************************************!*\
  10872. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  10873. \************************************************************/
  10874. /*! no static exports found */
  10875. /***/ (function(module, exports, __webpack_require__) {
  10876. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10877. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  10878. /** Used for built-in method references. */
  10879. var objectProto = Object.prototype;
  10880. /** Used to check objects for own properties. */
  10881. var hasOwnProperty = objectProto.hasOwnProperty;
  10882. /**
  10883. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  10884. *
  10885. * @private
  10886. * @param {Object} object The object to query.
  10887. * @returns {Array} Returns the array of property names.
  10888. */
  10889. function baseKeys(object) {
  10890. if (!isPrototype(object)) {
  10891. return nativeKeys(object);
  10892. }
  10893. var result = [];
  10894. for (var key in Object(object)) {
  10895. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  10896. result.push(key);
  10897. }
  10898. }
  10899. return result;
  10900. }
  10901. module.exports = baseKeys;
  10902. /***/ }),
  10903. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  10904. /*!**************************************************************!*\
  10905. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  10906. \**************************************************************/
  10907. /*! no static exports found */
  10908. /***/ (function(module, exports, __webpack_require__) {
  10909. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10910. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10911. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  10912. /** Used for built-in method references. */
  10913. var objectProto = Object.prototype;
  10914. /** Used to check objects for own properties. */
  10915. var hasOwnProperty = objectProto.hasOwnProperty;
  10916. /**
  10917. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  10918. *
  10919. * @private
  10920. * @param {Object} object The object to query.
  10921. * @returns {Array} Returns the array of property names.
  10922. */
  10923. function baseKeysIn(object) {
  10924. if (!isObject(object)) {
  10925. return nativeKeysIn(object);
  10926. }
  10927. var isProto = isPrototype(object),
  10928. result = [];
  10929. for (var key in object) {
  10930. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  10931. result.push(key);
  10932. }
  10933. }
  10934. return result;
  10935. }
  10936. module.exports = baseKeysIn;
  10937. /***/ }),
  10938. /***/ "../../node_modules/lodash/_baseLt.js":
  10939. /*!**********************************************************!*\
  10940. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseLt.js ***!
  10941. \**********************************************************/
  10942. /*! no static exports found */
  10943. /***/ (function(module, exports) {
  10944. /**
  10945. * The base implementation of `_.lt` which doesn't coerce arguments.
  10946. *
  10947. * @private
  10948. * @param {*} value The value to compare.
  10949. * @param {*} other The other value to compare.
  10950. * @returns {boolean} Returns `true` if `value` is less than `other`,
  10951. * else `false`.
  10952. */
  10953. function baseLt(value, other) {
  10954. return value < other;
  10955. }
  10956. module.exports = baseLt;
  10957. /***/ }),
  10958. /***/ "../../node_modules/lodash/_baseMap.js":
  10959. /*!***********************************************************!*\
  10960. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  10961. \***********************************************************/
  10962. /*! no static exports found */
  10963. /***/ (function(module, exports, __webpack_require__) {
  10964. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  10965. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  10966. /**
  10967. * The base implementation of `_.map` without support for iteratee shorthands.
  10968. *
  10969. * @private
  10970. * @param {Array|Object} collection The collection to iterate over.
  10971. * @param {Function} iteratee The function invoked per iteration.
  10972. * @returns {Array} Returns the new mapped array.
  10973. */
  10974. function baseMap(collection, iteratee) {
  10975. var index = -1,
  10976. result = isArrayLike(collection) ? Array(collection.length) : [];
  10977. baseEach(collection, function(value, key, collection) {
  10978. result[++index] = iteratee(value, key, collection);
  10979. });
  10980. return result;
  10981. }
  10982. module.exports = baseMap;
  10983. /***/ }),
  10984. /***/ "../../node_modules/lodash/_baseMatches.js":
  10985. /*!***************************************************************!*\
  10986. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  10987. \***************************************************************/
  10988. /*! no static exports found */
  10989. /***/ (function(module, exports, __webpack_require__) {
  10990. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  10991. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  10992. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  10993. /**
  10994. * The base implementation of `_.matches` which doesn't clone `source`.
  10995. *
  10996. * @private
  10997. * @param {Object} source The object of property values to match.
  10998. * @returns {Function} Returns the new spec function.
  10999. */
  11000. function baseMatches(source) {
  11001. var matchData = getMatchData(source);
  11002. if (matchData.length == 1 && matchData[0][2]) {
  11003. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  11004. }
  11005. return function(object) {
  11006. return object === source || baseIsMatch(object, source, matchData);
  11007. };
  11008. }
  11009. module.exports = baseMatches;
  11010. /***/ }),
  11011. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  11012. /*!***********************************************************************!*\
  11013. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  11014. \***********************************************************************/
  11015. /*! no static exports found */
  11016. /***/ (function(module, exports, __webpack_require__) {
  11017. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  11018. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  11019. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  11020. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11021. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  11022. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  11023. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11024. /** Used to compose bitmasks for value comparisons. */
  11025. var COMPARE_PARTIAL_FLAG = 1,
  11026. COMPARE_UNORDERED_FLAG = 2;
  11027. /**
  11028. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  11029. *
  11030. * @private
  11031. * @param {string} path The path of the property to get.
  11032. * @param {*} srcValue The value to match.
  11033. * @returns {Function} Returns the new spec function.
  11034. */
  11035. function baseMatchesProperty(path, srcValue) {
  11036. if (isKey(path) && isStrictComparable(srcValue)) {
  11037. return matchesStrictComparable(toKey(path), srcValue);
  11038. }
  11039. return function(object) {
  11040. var objValue = get(object, path);
  11041. return (objValue === undefined && objValue === srcValue)
  11042. ? hasIn(object, path)
  11043. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  11044. };
  11045. }
  11046. module.exports = baseMatchesProperty;
  11047. /***/ }),
  11048. /***/ "../../node_modules/lodash/_baseMerge.js":
  11049. /*!*************************************************************!*\
  11050. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  11051. \*************************************************************/
  11052. /*! no static exports found */
  11053. /***/ (function(module, exports, __webpack_require__) {
  11054. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  11055. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11056. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  11057. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  11058. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11059. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  11060. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  11061. /**
  11062. * The base implementation of `_.merge` without support for multiple sources.
  11063. *
  11064. * @private
  11065. * @param {Object} object The destination object.
  11066. * @param {Object} source The source object.
  11067. * @param {number} srcIndex The index of `source`.
  11068. * @param {Function} [customizer] The function to customize merged values.
  11069. * @param {Object} [stack] Tracks traversed source values and their merged
  11070. * counterparts.
  11071. */
  11072. function baseMerge(object, source, srcIndex, customizer, stack) {
  11073. if (object === source) {
  11074. return;
  11075. }
  11076. baseFor(source, function(srcValue, key) {
  11077. stack || (stack = new Stack);
  11078. if (isObject(srcValue)) {
  11079. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  11080. }
  11081. else {
  11082. var newValue = customizer
  11083. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  11084. : undefined;
  11085. if (newValue === undefined) {
  11086. newValue = srcValue;
  11087. }
  11088. assignMergeValue(object, key, newValue);
  11089. }
  11090. }, keysIn);
  11091. }
  11092. module.exports = baseMerge;
  11093. /***/ }),
  11094. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  11095. /*!*****************************************************************!*\
  11096. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  11097. \*****************************************************************/
  11098. /*! no static exports found */
  11099. /***/ (function(module, exports, __webpack_require__) {
  11100. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11101. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  11102. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  11103. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  11104. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  11105. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  11106. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11107. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  11108. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  11109. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  11110. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11111. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  11112. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  11113. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  11114. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  11115. /**
  11116. * A specialized version of `baseMerge` for arrays and objects which performs
  11117. * deep merges and tracks traversed objects enabling objects with circular
  11118. * references to be merged.
  11119. *
  11120. * @private
  11121. * @param {Object} object The destination object.
  11122. * @param {Object} source The source object.
  11123. * @param {string} key The key of the value to merge.
  11124. * @param {number} srcIndex The index of `source`.
  11125. * @param {Function} mergeFunc The function to merge values.
  11126. * @param {Function} [customizer] The function to customize assigned values.
  11127. * @param {Object} [stack] Tracks traversed source values and their merged
  11128. * counterparts.
  11129. */
  11130. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  11131. var objValue = safeGet(object, key),
  11132. srcValue = safeGet(source, key),
  11133. stacked = stack.get(srcValue);
  11134. if (stacked) {
  11135. assignMergeValue(object, key, stacked);
  11136. return;
  11137. }
  11138. var newValue = customizer
  11139. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  11140. : undefined;
  11141. var isCommon = newValue === undefined;
  11142. if (isCommon) {
  11143. var isArr = isArray(srcValue),
  11144. isBuff = !isArr && isBuffer(srcValue),
  11145. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  11146. newValue = srcValue;
  11147. if (isArr || isBuff || isTyped) {
  11148. if (isArray(objValue)) {
  11149. newValue = objValue;
  11150. }
  11151. else if (isArrayLikeObject(objValue)) {
  11152. newValue = copyArray(objValue);
  11153. }
  11154. else if (isBuff) {
  11155. isCommon = false;
  11156. newValue = cloneBuffer(srcValue, true);
  11157. }
  11158. else if (isTyped) {
  11159. isCommon = false;
  11160. newValue = cloneTypedArray(srcValue, true);
  11161. }
  11162. else {
  11163. newValue = [];
  11164. }
  11165. }
  11166. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  11167. newValue = objValue;
  11168. if (isArguments(objValue)) {
  11169. newValue = toPlainObject(objValue);
  11170. }
  11171. else if (!isObject(objValue) || isFunction(objValue)) {
  11172. newValue = initCloneObject(srcValue);
  11173. }
  11174. }
  11175. else {
  11176. isCommon = false;
  11177. }
  11178. }
  11179. if (isCommon) {
  11180. // Recursively merge objects and arrays (susceptible to call stack limits).
  11181. stack.set(srcValue, newValue);
  11182. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  11183. stack['delete'](srcValue);
  11184. }
  11185. assignMergeValue(object, key, newValue);
  11186. }
  11187. module.exports = baseMergeDeep;
  11188. /***/ }),
  11189. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  11190. /*!***************************************************************!*\
  11191. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  11192. \***************************************************************/
  11193. /*! no static exports found */
  11194. /***/ (function(module, exports, __webpack_require__) {
  11195. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11196. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  11197. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  11198. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  11199. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  11200. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  11201. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11202. /**
  11203. * The base implementation of `_.orderBy` without param guards.
  11204. *
  11205. * @private
  11206. * @param {Array|Object} collection The collection to iterate over.
  11207. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  11208. * @param {string[]} orders The sort orders of `iteratees`.
  11209. * @returns {Array} Returns the new sorted array.
  11210. */
  11211. function baseOrderBy(collection, iteratees, orders) {
  11212. var index = -1;
  11213. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
  11214. var result = baseMap(collection, function(value, key, collection) {
  11215. var criteria = arrayMap(iteratees, function(iteratee) {
  11216. return iteratee(value);
  11217. });
  11218. return { 'criteria': criteria, 'index': ++index, 'value': value };
  11219. });
  11220. return baseSortBy(result, function(object, other) {
  11221. return compareMultiple(object, other, orders);
  11222. });
  11223. }
  11224. module.exports = baseOrderBy;
  11225. /***/ }),
  11226. /***/ "../../node_modules/lodash/_basePick.js":
  11227. /*!************************************************************!*\
  11228. !*** E:/Repos/Babylon.js/node_modules/lodash/_basePick.js ***!
  11229. \************************************************************/
  11230. /*! no static exports found */
  11231. /***/ (function(module, exports, __webpack_require__) {
  11232. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  11233. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  11234. /**
  11235. * The base implementation of `_.pick` without support for individual
  11236. * property identifiers.
  11237. *
  11238. * @private
  11239. * @param {Object} object The source object.
  11240. * @param {string[]} paths The property paths to pick.
  11241. * @returns {Object} Returns the new object.
  11242. */
  11243. function basePick(object, paths) {
  11244. return basePickBy(object, paths, function(value, path) {
  11245. return hasIn(object, path);
  11246. });
  11247. }
  11248. module.exports = basePick;
  11249. /***/ }),
  11250. /***/ "../../node_modules/lodash/_basePickBy.js":
  11251. /*!**************************************************************!*\
  11252. !*** E:/Repos/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  11253. \**************************************************************/
  11254. /*! no static exports found */
  11255. /***/ (function(module, exports, __webpack_require__) {
  11256. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  11257. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  11258. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  11259. /**
  11260. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  11261. *
  11262. * @private
  11263. * @param {Object} object The source object.
  11264. * @param {string[]} paths The property paths to pick.
  11265. * @param {Function} predicate The function invoked per property.
  11266. * @returns {Object} Returns the new object.
  11267. */
  11268. function basePickBy(object, paths, predicate) {
  11269. var index = -1,
  11270. length = paths.length,
  11271. result = {};
  11272. while (++index < length) {
  11273. var path = paths[index],
  11274. value = baseGet(object, path);
  11275. if (predicate(value, path)) {
  11276. baseSet(result, castPath(path, object), value);
  11277. }
  11278. }
  11279. return result;
  11280. }
  11281. module.exports = basePickBy;
  11282. /***/ }),
  11283. /***/ "../../node_modules/lodash/_baseProperty.js":
  11284. /*!****************************************************************!*\
  11285. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  11286. \****************************************************************/
  11287. /*! no static exports found */
  11288. /***/ (function(module, exports) {
  11289. /**
  11290. * The base implementation of `_.property` without support for deep paths.
  11291. *
  11292. * @private
  11293. * @param {string} key The key of the property to get.
  11294. * @returns {Function} Returns the new accessor function.
  11295. */
  11296. function baseProperty(key) {
  11297. return function(object) {
  11298. return object == null ? undefined : object[key];
  11299. };
  11300. }
  11301. module.exports = baseProperty;
  11302. /***/ }),
  11303. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  11304. /*!********************************************************************!*\
  11305. !*** E:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  11306. \********************************************************************/
  11307. /*! no static exports found */
  11308. /***/ (function(module, exports, __webpack_require__) {
  11309. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  11310. /**
  11311. * A specialized version of `baseProperty` which supports deep paths.
  11312. *
  11313. * @private
  11314. * @param {Array|string} path The path of the property to get.
  11315. * @returns {Function} Returns the new accessor function.
  11316. */
  11317. function basePropertyDeep(path) {
  11318. return function(object) {
  11319. return baseGet(object, path);
  11320. };
  11321. }
  11322. module.exports = basePropertyDeep;
  11323. /***/ }),
  11324. /***/ "../../node_modules/lodash/_baseRange.js":
  11325. /*!*************************************************************!*\
  11326. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseRange.js ***!
  11327. \*************************************************************/
  11328. /*! no static exports found */
  11329. /***/ (function(module, exports) {
  11330. /* Built-in method references for those with the same name as other `lodash` methods. */
  11331. var nativeCeil = Math.ceil,
  11332. nativeMax = Math.max;
  11333. /**
  11334. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  11335. * coerce arguments.
  11336. *
  11337. * @private
  11338. * @param {number} start The start of the range.
  11339. * @param {number} end The end of the range.
  11340. * @param {number} step The value to increment or decrement by.
  11341. * @param {boolean} [fromRight] Specify iterating from right to left.
  11342. * @returns {Array} Returns the range of numbers.
  11343. */
  11344. function baseRange(start, end, step, fromRight) {
  11345. var index = -1,
  11346. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  11347. result = Array(length);
  11348. while (length--) {
  11349. result[fromRight ? length : ++index] = start;
  11350. start += step;
  11351. }
  11352. return result;
  11353. }
  11354. module.exports = baseRange;
  11355. /***/ }),
  11356. /***/ "../../node_modules/lodash/_baseReduce.js":
  11357. /*!**************************************************************!*\
  11358. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  11359. \**************************************************************/
  11360. /*! no static exports found */
  11361. /***/ (function(module, exports) {
  11362. /**
  11363. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  11364. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  11365. *
  11366. * @private
  11367. * @param {Array|Object} collection The collection to iterate over.
  11368. * @param {Function} iteratee The function invoked per iteration.
  11369. * @param {*} accumulator The initial value.
  11370. * @param {boolean} initAccum Specify using the first or last element of
  11371. * `collection` as the initial value.
  11372. * @param {Function} eachFunc The function to iterate over `collection`.
  11373. * @returns {*} Returns the accumulated value.
  11374. */
  11375. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  11376. eachFunc(collection, function(value, index, collection) {
  11377. accumulator = initAccum
  11378. ? (initAccum = false, value)
  11379. : iteratee(accumulator, value, index, collection);
  11380. });
  11381. return accumulator;
  11382. }
  11383. module.exports = baseReduce;
  11384. /***/ }),
  11385. /***/ "../../node_modules/lodash/_baseRest.js":
  11386. /*!************************************************************!*\
  11387. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  11388. \************************************************************/
  11389. /*! no static exports found */
  11390. /***/ (function(module, exports, __webpack_require__) {
  11391. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  11392. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  11393. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  11394. /**
  11395. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  11396. *
  11397. * @private
  11398. * @param {Function} func The function to apply a rest parameter to.
  11399. * @param {number} [start=func.length-1] The start position of the rest parameter.
  11400. * @returns {Function} Returns the new function.
  11401. */
  11402. function baseRest(func, start) {
  11403. return setToString(overRest(func, start, identity), func + '');
  11404. }
  11405. module.exports = baseRest;
  11406. /***/ }),
  11407. /***/ "../../node_modules/lodash/_baseSet.js":
  11408. /*!***********************************************************!*\
  11409. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseSet.js ***!
  11410. \***********************************************************/
  11411. /*! no static exports found */
  11412. /***/ (function(module, exports, __webpack_require__) {
  11413. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  11414. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  11415. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  11416. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11417. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11418. /**
  11419. * The base implementation of `_.set`.
  11420. *
  11421. * @private
  11422. * @param {Object} object The object to modify.
  11423. * @param {Array|string} path The path of the property to set.
  11424. * @param {*} value The value to set.
  11425. * @param {Function} [customizer] The function to customize path creation.
  11426. * @returns {Object} Returns `object`.
  11427. */
  11428. function baseSet(object, path, value, customizer) {
  11429. if (!isObject(object)) {
  11430. return object;
  11431. }
  11432. path = castPath(path, object);
  11433. var index = -1,
  11434. length = path.length,
  11435. lastIndex = length - 1,
  11436. nested = object;
  11437. while (nested != null && ++index < length) {
  11438. var key = toKey(path[index]),
  11439. newValue = value;
  11440. if (index != lastIndex) {
  11441. var objValue = nested[key];
  11442. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  11443. if (newValue === undefined) {
  11444. newValue = isObject(objValue)
  11445. ? objValue
  11446. : (isIndex(path[index + 1]) ? [] : {});
  11447. }
  11448. }
  11449. assignValue(nested, key, newValue);
  11450. nested = nested[key];
  11451. }
  11452. return object;
  11453. }
  11454. module.exports = baseSet;
  11455. /***/ }),
  11456. /***/ "../../node_modules/lodash/_baseSetToString.js":
  11457. /*!*******************************************************************!*\
  11458. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  11459. \*******************************************************************/
  11460. /*! no static exports found */
  11461. /***/ (function(module, exports, __webpack_require__) {
  11462. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  11463. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  11464. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11465. /**
  11466. * The base implementation of `setToString` without support for hot loop shorting.
  11467. *
  11468. * @private
  11469. * @param {Function} func The function to modify.
  11470. * @param {Function} string The `toString` result.
  11471. * @returns {Function} Returns `func`.
  11472. */
  11473. var baseSetToString = !defineProperty ? identity : function(func, string) {
  11474. return defineProperty(func, 'toString', {
  11475. 'configurable': true,
  11476. 'enumerable': false,
  11477. 'value': constant(string),
  11478. 'writable': true
  11479. });
  11480. };
  11481. module.exports = baseSetToString;
  11482. /***/ }),
  11483. /***/ "../../node_modules/lodash/_baseSortBy.js":
  11484. /*!**************************************************************!*\
  11485. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  11486. \**************************************************************/
  11487. /*! no static exports found */
  11488. /***/ (function(module, exports) {
  11489. /**
  11490. * The base implementation of `_.sortBy` which uses `comparer` to define the
  11491. * sort order of `array` and replaces criteria objects with their corresponding
  11492. * values.
  11493. *
  11494. * @private
  11495. * @param {Array} array The array to sort.
  11496. * @param {Function} comparer The function to define sort order.
  11497. * @returns {Array} Returns `array`.
  11498. */
  11499. function baseSortBy(array, comparer) {
  11500. var length = array.length;
  11501. array.sort(comparer);
  11502. while (length--) {
  11503. array[length] = array[length].value;
  11504. }
  11505. return array;
  11506. }
  11507. module.exports = baseSortBy;
  11508. /***/ }),
  11509. /***/ "../../node_modules/lodash/_baseTimes.js":
  11510. /*!*************************************************************!*\
  11511. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  11512. \*************************************************************/
  11513. /*! no static exports found */
  11514. /***/ (function(module, exports) {
  11515. /**
  11516. * The base implementation of `_.times` without support for iteratee shorthands
  11517. * or max array length checks.
  11518. *
  11519. * @private
  11520. * @param {number} n The number of times to invoke `iteratee`.
  11521. * @param {Function} iteratee The function invoked per iteration.
  11522. * @returns {Array} Returns the array of results.
  11523. */
  11524. function baseTimes(n, iteratee) {
  11525. var index = -1,
  11526. result = Array(n);
  11527. while (++index < n) {
  11528. result[index] = iteratee(index);
  11529. }
  11530. return result;
  11531. }
  11532. module.exports = baseTimes;
  11533. /***/ }),
  11534. /***/ "../../node_modules/lodash/_baseToString.js":
  11535. /*!****************************************************************!*\
  11536. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  11537. \****************************************************************/
  11538. /*! no static exports found */
  11539. /***/ (function(module, exports, __webpack_require__) {
  11540. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  11541. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11542. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11543. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11544. /** Used as references for various `Number` constants. */
  11545. var INFINITY = 1 / 0;
  11546. /** Used to convert symbols to primitives and strings. */
  11547. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11548. symbolToString = symbolProto ? symbolProto.toString : undefined;
  11549. /**
  11550. * The base implementation of `_.toString` which doesn't convert nullish
  11551. * values to empty strings.
  11552. *
  11553. * @private
  11554. * @param {*} value The value to process.
  11555. * @returns {string} Returns the string.
  11556. */
  11557. function baseToString(value) {
  11558. // Exit early for strings to avoid a performance hit in some environments.
  11559. if (typeof value == 'string') {
  11560. return value;
  11561. }
  11562. if (isArray(value)) {
  11563. // Recursively convert values (susceptible to call stack limits).
  11564. return arrayMap(value, baseToString) + '';
  11565. }
  11566. if (isSymbol(value)) {
  11567. return symbolToString ? symbolToString.call(value) : '';
  11568. }
  11569. var result = (value + '');
  11570. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11571. }
  11572. module.exports = baseToString;
  11573. /***/ }),
  11574. /***/ "../../node_modules/lodash/_baseUnary.js":
  11575. /*!*************************************************************!*\
  11576. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  11577. \*************************************************************/
  11578. /*! no static exports found */
  11579. /***/ (function(module, exports) {
  11580. /**
  11581. * The base implementation of `_.unary` without support for storing metadata.
  11582. *
  11583. * @private
  11584. * @param {Function} func The function to cap arguments for.
  11585. * @returns {Function} Returns the new capped function.
  11586. */
  11587. function baseUnary(func) {
  11588. return function(value) {
  11589. return func(value);
  11590. };
  11591. }
  11592. module.exports = baseUnary;
  11593. /***/ }),
  11594. /***/ "../../node_modules/lodash/_baseUniq.js":
  11595. /*!************************************************************!*\
  11596. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  11597. \************************************************************/
  11598. /*! no static exports found */
  11599. /***/ (function(module, exports, __webpack_require__) {
  11600. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  11601. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  11602. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  11603. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  11604. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  11605. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  11606. /** Used as the size to enable large array optimizations. */
  11607. var LARGE_ARRAY_SIZE = 200;
  11608. /**
  11609. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  11610. *
  11611. * @private
  11612. * @param {Array} array The array to inspect.
  11613. * @param {Function} [iteratee] The iteratee invoked per element.
  11614. * @param {Function} [comparator] The comparator invoked per element.
  11615. * @returns {Array} Returns the new duplicate free array.
  11616. */
  11617. function baseUniq(array, iteratee, comparator) {
  11618. var index = -1,
  11619. includes = arrayIncludes,
  11620. length = array.length,
  11621. isCommon = true,
  11622. result = [],
  11623. seen = result;
  11624. if (comparator) {
  11625. isCommon = false;
  11626. includes = arrayIncludesWith;
  11627. }
  11628. else if (length >= LARGE_ARRAY_SIZE) {
  11629. var set = iteratee ? null : createSet(array);
  11630. if (set) {
  11631. return setToArray(set);
  11632. }
  11633. isCommon = false;
  11634. includes = cacheHas;
  11635. seen = new SetCache;
  11636. }
  11637. else {
  11638. seen = iteratee ? [] : result;
  11639. }
  11640. outer:
  11641. while (++index < length) {
  11642. var value = array[index],
  11643. computed = iteratee ? iteratee(value) : value;
  11644. value = (comparator || value !== 0) ? value : 0;
  11645. if (isCommon && computed === computed) {
  11646. var seenIndex = seen.length;
  11647. while (seenIndex--) {
  11648. if (seen[seenIndex] === computed) {
  11649. continue outer;
  11650. }
  11651. }
  11652. if (iteratee) {
  11653. seen.push(computed);
  11654. }
  11655. result.push(value);
  11656. }
  11657. else if (!includes(seen, computed, comparator)) {
  11658. if (seen !== result) {
  11659. seen.push(computed);
  11660. }
  11661. result.push(value);
  11662. }
  11663. }
  11664. return result;
  11665. }
  11666. module.exports = baseUniq;
  11667. /***/ }),
  11668. /***/ "../../node_modules/lodash/_baseValues.js":
  11669. /*!**************************************************************!*\
  11670. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseValues.js ***!
  11671. \**************************************************************/
  11672. /*! no static exports found */
  11673. /***/ (function(module, exports, __webpack_require__) {
  11674. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  11675. /**
  11676. * The base implementation of `_.values` and `_.valuesIn` which creates an
  11677. * array of `object` property values corresponding to the property names
  11678. * of `props`.
  11679. *
  11680. * @private
  11681. * @param {Object} object The object to query.
  11682. * @param {Array} props The property names to get values for.
  11683. * @returns {Object} Returns the array of property values.
  11684. */
  11685. function baseValues(object, props) {
  11686. return arrayMap(props, function(key) {
  11687. return object[key];
  11688. });
  11689. }
  11690. module.exports = baseValues;
  11691. /***/ }),
  11692. /***/ "../../node_modules/lodash/_baseZipObject.js":
  11693. /*!*****************************************************************!*\
  11694. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  11695. \*****************************************************************/
  11696. /*! no static exports found */
  11697. /***/ (function(module, exports) {
  11698. /**
  11699. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  11700. *
  11701. * @private
  11702. * @param {Array} props The property identifiers.
  11703. * @param {Array} values The property values.
  11704. * @param {Function} assignFunc The function to assign values.
  11705. * @returns {Object} Returns the new object.
  11706. */
  11707. function baseZipObject(props, values, assignFunc) {
  11708. var index = -1,
  11709. length = props.length,
  11710. valsLength = values.length,
  11711. result = {};
  11712. while (++index < length) {
  11713. var value = index < valsLength ? values[index] : undefined;
  11714. assignFunc(result, props[index], value);
  11715. }
  11716. return result;
  11717. }
  11718. module.exports = baseZipObject;
  11719. /***/ }),
  11720. /***/ "../../node_modules/lodash/_cacheHas.js":
  11721. /*!************************************************************!*\
  11722. !*** E:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  11723. \************************************************************/
  11724. /*! no static exports found */
  11725. /***/ (function(module, exports) {
  11726. /**
  11727. * Checks if a `cache` value for `key` exists.
  11728. *
  11729. * @private
  11730. * @param {Object} cache The cache to query.
  11731. * @param {string} key The key of the entry to check.
  11732. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11733. */
  11734. function cacheHas(cache, key) {
  11735. return cache.has(key);
  11736. }
  11737. module.exports = cacheHas;
  11738. /***/ }),
  11739. /***/ "../../node_modules/lodash/_castFunction.js":
  11740. /*!****************************************************************!*\
  11741. !*** E:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  11742. \****************************************************************/
  11743. /*! no static exports found */
  11744. /***/ (function(module, exports, __webpack_require__) {
  11745. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11746. /**
  11747. * Casts `value` to `identity` if it's not a function.
  11748. *
  11749. * @private
  11750. * @param {*} value The value to inspect.
  11751. * @returns {Function} Returns cast function.
  11752. */
  11753. function castFunction(value) {
  11754. return typeof value == 'function' ? value : identity;
  11755. }
  11756. module.exports = castFunction;
  11757. /***/ }),
  11758. /***/ "../../node_modules/lodash/_castPath.js":
  11759. /*!************************************************************!*\
  11760. !*** E:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  11761. \************************************************************/
  11762. /*! no static exports found */
  11763. /***/ (function(module, exports, __webpack_require__) {
  11764. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11765. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11766. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  11767. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  11768. /**
  11769. * Casts `value` to a path array if it's not one.
  11770. *
  11771. * @private
  11772. * @param {*} value The value to inspect.
  11773. * @param {Object} [object] The object to query keys on.
  11774. * @returns {Array} Returns the cast property path array.
  11775. */
  11776. function castPath(value, object) {
  11777. if (isArray(value)) {
  11778. return value;
  11779. }
  11780. return isKey(value, object) ? [value] : stringToPath(toString(value));
  11781. }
  11782. module.exports = castPath;
  11783. /***/ }),
  11784. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  11785. /*!********************************************************************!*\
  11786. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  11787. \********************************************************************/
  11788. /*! no static exports found */
  11789. /***/ (function(module, exports, __webpack_require__) {
  11790. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  11791. /**
  11792. * Creates a clone of `arrayBuffer`.
  11793. *
  11794. * @private
  11795. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  11796. * @returns {ArrayBuffer} Returns the cloned array buffer.
  11797. */
  11798. function cloneArrayBuffer(arrayBuffer) {
  11799. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11800. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  11801. return result;
  11802. }
  11803. module.exports = cloneArrayBuffer;
  11804. /***/ }),
  11805. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  11806. /*!***************************************************************!*\
  11807. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  11808. \***************************************************************/
  11809. /*! no static exports found */
  11810. /***/ (function(module, exports, __webpack_require__) {
  11811. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11812. /** Detect free variable `exports`. */
  11813. var freeExports = true && exports && !exports.nodeType && exports;
  11814. /** Detect free variable `module`. */
  11815. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  11816. /** Detect the popular CommonJS extension `module.exports`. */
  11817. var moduleExports = freeModule && freeModule.exports === freeExports;
  11818. /** Built-in value references. */
  11819. var Buffer = moduleExports ? root.Buffer : undefined,
  11820. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  11821. /**
  11822. * Creates a clone of `buffer`.
  11823. *
  11824. * @private
  11825. * @param {Buffer} buffer The buffer to clone.
  11826. * @param {boolean} [isDeep] Specify a deep clone.
  11827. * @returns {Buffer} Returns the cloned buffer.
  11828. */
  11829. function cloneBuffer(buffer, isDeep) {
  11830. if (isDeep) {
  11831. return buffer.slice();
  11832. }
  11833. var length = buffer.length,
  11834. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  11835. buffer.copy(result);
  11836. return result;
  11837. }
  11838. module.exports = cloneBuffer;
  11839. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  11840. /***/ }),
  11841. /***/ "../../node_modules/lodash/_cloneDataView.js":
  11842. /*!*****************************************************************!*\
  11843. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  11844. \*****************************************************************/
  11845. /*! no static exports found */
  11846. /***/ (function(module, exports, __webpack_require__) {
  11847. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11848. /**
  11849. * Creates a clone of `dataView`.
  11850. *
  11851. * @private
  11852. * @param {Object} dataView The data view to clone.
  11853. * @param {boolean} [isDeep] Specify a deep clone.
  11854. * @returns {Object} Returns the cloned data view.
  11855. */
  11856. function cloneDataView(dataView, isDeep) {
  11857. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  11858. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  11859. }
  11860. module.exports = cloneDataView;
  11861. /***/ }),
  11862. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  11863. /*!***************************************************************!*\
  11864. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  11865. \***************************************************************/
  11866. /*! no static exports found */
  11867. /***/ (function(module, exports) {
  11868. /** Used to match `RegExp` flags from their coerced string values. */
  11869. var reFlags = /\w*$/;
  11870. /**
  11871. * Creates a clone of `regexp`.
  11872. *
  11873. * @private
  11874. * @param {Object} regexp The regexp to clone.
  11875. * @returns {Object} Returns the cloned regexp.
  11876. */
  11877. function cloneRegExp(regexp) {
  11878. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  11879. result.lastIndex = regexp.lastIndex;
  11880. return result;
  11881. }
  11882. module.exports = cloneRegExp;
  11883. /***/ }),
  11884. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  11885. /*!***************************************************************!*\
  11886. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  11887. \***************************************************************/
  11888. /*! no static exports found */
  11889. /***/ (function(module, exports, __webpack_require__) {
  11890. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  11891. /** Used to convert symbols to primitives and strings. */
  11892. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11893. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  11894. /**
  11895. * Creates a clone of the `symbol` object.
  11896. *
  11897. * @private
  11898. * @param {Object} symbol The symbol object to clone.
  11899. * @returns {Object} Returns the cloned symbol object.
  11900. */
  11901. function cloneSymbol(symbol) {
  11902. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  11903. }
  11904. module.exports = cloneSymbol;
  11905. /***/ }),
  11906. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  11907. /*!*******************************************************************!*\
  11908. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  11909. \*******************************************************************/
  11910. /*! no static exports found */
  11911. /***/ (function(module, exports, __webpack_require__) {
  11912. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11913. /**
  11914. * Creates a clone of `typedArray`.
  11915. *
  11916. * @private
  11917. * @param {Object} typedArray The typed array to clone.
  11918. * @param {boolean} [isDeep] Specify a deep clone.
  11919. * @returns {Object} Returns the cloned typed array.
  11920. */
  11921. function cloneTypedArray(typedArray, isDeep) {
  11922. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  11923. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  11924. }
  11925. module.exports = cloneTypedArray;
  11926. /***/ }),
  11927. /***/ "../../node_modules/lodash/_compareAscending.js":
  11928. /*!********************************************************************!*\
  11929. !*** E:/Repos/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  11930. \********************************************************************/
  11931. /*! no static exports found */
  11932. /***/ (function(module, exports, __webpack_require__) {
  11933. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11934. /**
  11935. * Compares values to sort them in ascending order.
  11936. *
  11937. * @private
  11938. * @param {*} value The value to compare.
  11939. * @param {*} other The other value to compare.
  11940. * @returns {number} Returns the sort order indicator for `value`.
  11941. */
  11942. function compareAscending(value, other) {
  11943. if (value !== other) {
  11944. var valIsDefined = value !== undefined,
  11945. valIsNull = value === null,
  11946. valIsReflexive = value === value,
  11947. valIsSymbol = isSymbol(value);
  11948. var othIsDefined = other !== undefined,
  11949. othIsNull = other === null,
  11950. othIsReflexive = other === other,
  11951. othIsSymbol = isSymbol(other);
  11952. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  11953. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  11954. (valIsNull && othIsDefined && othIsReflexive) ||
  11955. (!valIsDefined && othIsReflexive) ||
  11956. !valIsReflexive) {
  11957. return 1;
  11958. }
  11959. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  11960. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  11961. (othIsNull && valIsDefined && valIsReflexive) ||
  11962. (!othIsDefined && valIsReflexive) ||
  11963. !othIsReflexive) {
  11964. return -1;
  11965. }
  11966. }
  11967. return 0;
  11968. }
  11969. module.exports = compareAscending;
  11970. /***/ }),
  11971. /***/ "../../node_modules/lodash/_compareMultiple.js":
  11972. /*!*******************************************************************!*\
  11973. !*** E:/Repos/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  11974. \*******************************************************************/
  11975. /*! no static exports found */
  11976. /***/ (function(module, exports, __webpack_require__) {
  11977. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  11978. /**
  11979. * Used by `_.orderBy` to compare multiple properties of a value to another
  11980. * and stable sort them.
  11981. *
  11982. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  11983. * specify an order of "desc" for descending or "asc" for ascending sort order
  11984. * of corresponding values.
  11985. *
  11986. * @private
  11987. * @param {Object} object The object to compare.
  11988. * @param {Object} other The other object to compare.
  11989. * @param {boolean[]|string[]} orders The order to sort by for each property.
  11990. * @returns {number} Returns the sort order indicator for `object`.
  11991. */
  11992. function compareMultiple(object, other, orders) {
  11993. var index = -1,
  11994. objCriteria = object.criteria,
  11995. othCriteria = other.criteria,
  11996. length = objCriteria.length,
  11997. ordersLength = orders.length;
  11998. while (++index < length) {
  11999. var result = compareAscending(objCriteria[index], othCriteria[index]);
  12000. if (result) {
  12001. if (index >= ordersLength) {
  12002. return result;
  12003. }
  12004. var order = orders[index];
  12005. return result * (order == 'desc' ? -1 : 1);
  12006. }
  12007. }
  12008. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  12009. // that causes it, under certain circumstances, to provide the same value for
  12010. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  12011. // for more details.
  12012. //
  12013. // This also ensures a stable sort in V8 and other engines.
  12014. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  12015. return object.index - other.index;
  12016. }
  12017. module.exports = compareMultiple;
  12018. /***/ }),
  12019. /***/ "../../node_modules/lodash/_copyArray.js":
  12020. /*!*************************************************************!*\
  12021. !*** E:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  12022. \*************************************************************/
  12023. /*! no static exports found */
  12024. /***/ (function(module, exports) {
  12025. /**
  12026. * Copies the values of `source` to `array`.
  12027. *
  12028. * @private
  12029. * @param {Array} source The array to copy values from.
  12030. * @param {Array} [array=[]] The array to copy values to.
  12031. * @returns {Array} Returns `array`.
  12032. */
  12033. function copyArray(source, array) {
  12034. var index = -1,
  12035. length = source.length;
  12036. array || (array = Array(length));
  12037. while (++index < length) {
  12038. array[index] = source[index];
  12039. }
  12040. return array;
  12041. }
  12042. module.exports = copyArray;
  12043. /***/ }),
  12044. /***/ "../../node_modules/lodash/_copyObject.js":
  12045. /*!**************************************************************!*\
  12046. !*** E:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  12047. \**************************************************************/
  12048. /*! no static exports found */
  12049. /***/ (function(module, exports, __webpack_require__) {
  12050. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  12051. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  12052. /**
  12053. * Copies properties of `source` to `object`.
  12054. *
  12055. * @private
  12056. * @param {Object} source The object to copy properties from.
  12057. * @param {Array} props The property identifiers to copy.
  12058. * @param {Object} [object={}] The object to copy properties to.
  12059. * @param {Function} [customizer] The function to customize copied values.
  12060. * @returns {Object} Returns `object`.
  12061. */
  12062. function copyObject(source, props, object, customizer) {
  12063. var isNew = !object;
  12064. object || (object = {});
  12065. var index = -1,
  12066. length = props.length;
  12067. while (++index < length) {
  12068. var key = props[index];
  12069. var newValue = customizer
  12070. ? customizer(object[key], source[key], key, object, source)
  12071. : undefined;
  12072. if (newValue === undefined) {
  12073. newValue = source[key];
  12074. }
  12075. if (isNew) {
  12076. baseAssignValue(object, key, newValue);
  12077. } else {
  12078. assignValue(object, key, newValue);
  12079. }
  12080. }
  12081. return object;
  12082. }
  12083. module.exports = copyObject;
  12084. /***/ }),
  12085. /***/ "../../node_modules/lodash/_copySymbols.js":
  12086. /*!***************************************************************!*\
  12087. !*** E:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  12088. \***************************************************************/
  12089. /*! no static exports found */
  12090. /***/ (function(module, exports, __webpack_require__) {
  12091. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12092. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  12093. /**
  12094. * Copies own symbols of `source` to `object`.
  12095. *
  12096. * @private
  12097. * @param {Object} source The object to copy symbols from.
  12098. * @param {Object} [object={}] The object to copy symbols to.
  12099. * @returns {Object} Returns `object`.
  12100. */
  12101. function copySymbols(source, object) {
  12102. return copyObject(source, getSymbols(source), object);
  12103. }
  12104. module.exports = copySymbols;
  12105. /***/ }),
  12106. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  12107. /*!*****************************************************************!*\
  12108. !*** E:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  12109. \*****************************************************************/
  12110. /*! no static exports found */
  12111. /***/ (function(module, exports, __webpack_require__) {
  12112. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12113. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  12114. /**
  12115. * Copies own and inherited symbols of `source` to `object`.
  12116. *
  12117. * @private
  12118. * @param {Object} source The object to copy symbols from.
  12119. * @param {Object} [object={}] The object to copy symbols to.
  12120. * @returns {Object} Returns `object`.
  12121. */
  12122. function copySymbolsIn(source, object) {
  12123. return copyObject(source, getSymbolsIn(source), object);
  12124. }
  12125. module.exports = copySymbolsIn;
  12126. /***/ }),
  12127. /***/ "../../node_modules/lodash/_coreJsData.js":
  12128. /*!**************************************************************!*\
  12129. !*** E:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  12130. \**************************************************************/
  12131. /*! no static exports found */
  12132. /***/ (function(module, exports, __webpack_require__) {
  12133. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  12134. /** Used to detect overreaching core-js shims. */
  12135. var coreJsData = root['__core-js_shared__'];
  12136. module.exports = coreJsData;
  12137. /***/ }),
  12138. /***/ "../../node_modules/lodash/_createAssigner.js":
  12139. /*!******************************************************************!*\
  12140. !*** E:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  12141. \******************************************************************/
  12142. /*! no static exports found */
  12143. /***/ (function(module, exports, __webpack_require__) {
  12144. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  12145. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  12146. /**
  12147. * Creates a function like `_.assign`.
  12148. *
  12149. * @private
  12150. * @param {Function} assigner The function to assign values.
  12151. * @returns {Function} Returns the new assigner function.
  12152. */
  12153. function createAssigner(assigner) {
  12154. return baseRest(function(object, sources) {
  12155. var index = -1,
  12156. length = sources.length,
  12157. customizer = length > 1 ? sources[length - 1] : undefined,
  12158. guard = length > 2 ? sources[2] : undefined;
  12159. customizer = (assigner.length > 3 && typeof customizer == 'function')
  12160. ? (length--, customizer)
  12161. : undefined;
  12162. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  12163. customizer = length < 3 ? undefined : customizer;
  12164. length = 1;
  12165. }
  12166. object = Object(object);
  12167. while (++index < length) {
  12168. var source = sources[index];
  12169. if (source) {
  12170. assigner(object, source, index, customizer);
  12171. }
  12172. }
  12173. return object;
  12174. });
  12175. }
  12176. module.exports = createAssigner;
  12177. /***/ }),
  12178. /***/ "../../node_modules/lodash/_createBaseEach.js":
  12179. /*!******************************************************************!*\
  12180. !*** E:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  12181. \******************************************************************/
  12182. /*! no static exports found */
  12183. /***/ (function(module, exports, __webpack_require__) {
  12184. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  12185. /**
  12186. * Creates a `baseEach` or `baseEachRight` function.
  12187. *
  12188. * @private
  12189. * @param {Function} eachFunc The function to iterate over a collection.
  12190. * @param {boolean} [fromRight] Specify iterating from right to left.
  12191. * @returns {Function} Returns the new base function.
  12192. */
  12193. function createBaseEach(eachFunc, fromRight) {
  12194. return function(collection, iteratee) {
  12195. if (collection == null) {
  12196. return collection;
  12197. }
  12198. if (!isArrayLike(collection)) {
  12199. return eachFunc(collection, iteratee);
  12200. }
  12201. var length = collection.length,
  12202. index = fromRight ? length : -1,
  12203. iterable = Object(collection);
  12204. while ((fromRight ? index-- : ++index < length)) {
  12205. if (iteratee(iterable[index], index, iterable) === false) {
  12206. break;
  12207. }
  12208. }
  12209. return collection;
  12210. };
  12211. }
  12212. module.exports = createBaseEach;
  12213. /***/ }),
  12214. /***/ "../../node_modules/lodash/_createBaseFor.js":
  12215. /*!*****************************************************************!*\
  12216. !*** E:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  12217. \*****************************************************************/
  12218. /*! no static exports found */
  12219. /***/ (function(module, exports) {
  12220. /**
  12221. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  12222. *
  12223. * @private
  12224. * @param {boolean} [fromRight] Specify iterating from right to left.
  12225. * @returns {Function} Returns the new base function.
  12226. */
  12227. function createBaseFor(fromRight) {
  12228. return function(object, iteratee, keysFunc) {
  12229. var index = -1,
  12230. iterable = Object(object),
  12231. props = keysFunc(object),
  12232. length = props.length;
  12233. while (length--) {
  12234. var key = props[fromRight ? length : ++index];
  12235. if (iteratee(iterable[key], key, iterable) === false) {
  12236. break;
  12237. }
  12238. }
  12239. return object;
  12240. };
  12241. }
  12242. module.exports = createBaseFor;
  12243. /***/ }),
  12244. /***/ "../../node_modules/lodash/_createFind.js":
  12245. /*!**************************************************************!*\
  12246. !*** E:/Repos/Babylon.js/node_modules/lodash/_createFind.js ***!
  12247. \**************************************************************/
  12248. /*! no static exports found */
  12249. /***/ (function(module, exports, __webpack_require__) {
  12250. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  12251. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  12252. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12253. /**
  12254. * Creates a `_.find` or `_.findLast` function.
  12255. *
  12256. * @private
  12257. * @param {Function} findIndexFunc The function to find the collection index.
  12258. * @returns {Function} Returns the new find function.
  12259. */
  12260. function createFind(findIndexFunc) {
  12261. return function(collection, predicate, fromIndex) {
  12262. var iterable = Object(collection);
  12263. if (!isArrayLike(collection)) {
  12264. var iteratee = baseIteratee(predicate, 3);
  12265. collection = keys(collection);
  12266. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  12267. }
  12268. var index = findIndexFunc(collection, predicate, fromIndex);
  12269. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  12270. };
  12271. }
  12272. module.exports = createFind;
  12273. /***/ }),
  12274. /***/ "../../node_modules/lodash/_createRange.js":
  12275. /*!***************************************************************!*\
  12276. !*** E:/Repos/Babylon.js/node_modules/lodash/_createRange.js ***!
  12277. \***************************************************************/
  12278. /*! no static exports found */
  12279. /***/ (function(module, exports, __webpack_require__) {
  12280. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  12281. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  12282. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  12283. /**
  12284. * Creates a `_.range` or `_.rangeRight` function.
  12285. *
  12286. * @private
  12287. * @param {boolean} [fromRight] Specify iterating from right to left.
  12288. * @returns {Function} Returns the new range function.
  12289. */
  12290. function createRange(fromRight) {
  12291. return function(start, end, step) {
  12292. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  12293. end = step = undefined;
  12294. }
  12295. // Ensure the sign of `-0` is preserved.
  12296. start = toFinite(start);
  12297. if (end === undefined) {
  12298. end = start;
  12299. start = 0;
  12300. } else {
  12301. end = toFinite(end);
  12302. }
  12303. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  12304. return baseRange(start, end, step, fromRight);
  12305. };
  12306. }
  12307. module.exports = createRange;
  12308. /***/ }),
  12309. /***/ "../../node_modules/lodash/_createSet.js":
  12310. /*!*************************************************************!*\
  12311. !*** E:/Repos/Babylon.js/node_modules/lodash/_createSet.js ***!
  12312. \*************************************************************/
  12313. /*! no static exports found */
  12314. /***/ (function(module, exports, __webpack_require__) {
  12315. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12316. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  12317. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12318. /** Used as references for various `Number` constants. */
  12319. var INFINITY = 1 / 0;
  12320. /**
  12321. * Creates a set object of `values`.
  12322. *
  12323. * @private
  12324. * @param {Array} values The values to add to the set.
  12325. * @returns {Object} Returns the new set.
  12326. */
  12327. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  12328. return new Set(values);
  12329. };
  12330. module.exports = createSet;
  12331. /***/ }),
  12332. /***/ "../../node_modules/lodash/_defineProperty.js":
  12333. /*!******************************************************************!*\
  12334. !*** E:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  12335. \******************************************************************/
  12336. /*! no static exports found */
  12337. /***/ (function(module, exports, __webpack_require__) {
  12338. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  12339. var defineProperty = (function() {
  12340. try {
  12341. var func = getNative(Object, 'defineProperty');
  12342. func({}, '', {});
  12343. return func;
  12344. } catch (e) {}
  12345. }());
  12346. module.exports = defineProperty;
  12347. /***/ }),
  12348. /***/ "../../node_modules/lodash/_equalArrays.js":
  12349. /*!***************************************************************!*\
  12350. !*** E:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  12351. \***************************************************************/
  12352. /*! no static exports found */
  12353. /***/ (function(module, exports, __webpack_require__) {
  12354. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  12355. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  12356. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  12357. /** Used to compose bitmasks for value comparisons. */
  12358. var COMPARE_PARTIAL_FLAG = 1,
  12359. COMPARE_UNORDERED_FLAG = 2;
  12360. /**
  12361. * A specialized version of `baseIsEqualDeep` for arrays with support for
  12362. * partial deep comparisons.
  12363. *
  12364. * @private
  12365. * @param {Array} array The array to compare.
  12366. * @param {Array} other The other array to compare.
  12367. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12368. * @param {Function} customizer The function to customize comparisons.
  12369. * @param {Function} equalFunc The function to determine equivalents of values.
  12370. * @param {Object} stack Tracks traversed `array` and `other` objects.
  12371. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  12372. */
  12373. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  12374. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12375. arrLength = array.length,
  12376. othLength = other.length;
  12377. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  12378. return false;
  12379. }
  12380. // Assume cyclic values are equal.
  12381. var stacked = stack.get(array);
  12382. if (stacked && stack.get(other)) {
  12383. return stacked == other;
  12384. }
  12385. var index = -1,
  12386. result = true,
  12387. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  12388. stack.set(array, other);
  12389. stack.set(other, array);
  12390. // Ignore non-index properties.
  12391. while (++index < arrLength) {
  12392. var arrValue = array[index],
  12393. othValue = other[index];
  12394. if (customizer) {
  12395. var compared = isPartial
  12396. ? customizer(othValue, arrValue, index, other, array, stack)
  12397. : customizer(arrValue, othValue, index, array, other, stack);
  12398. }
  12399. if (compared !== undefined) {
  12400. if (compared) {
  12401. continue;
  12402. }
  12403. result = false;
  12404. break;
  12405. }
  12406. // Recursively compare arrays (susceptible to call stack limits).
  12407. if (seen) {
  12408. if (!arraySome(other, function(othValue, othIndex) {
  12409. if (!cacheHas(seen, othIndex) &&
  12410. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  12411. return seen.push(othIndex);
  12412. }
  12413. })) {
  12414. result = false;
  12415. break;
  12416. }
  12417. } else if (!(
  12418. arrValue === othValue ||
  12419. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  12420. )) {
  12421. result = false;
  12422. break;
  12423. }
  12424. }
  12425. stack['delete'](array);
  12426. stack['delete'](other);
  12427. return result;
  12428. }
  12429. module.exports = equalArrays;
  12430. /***/ }),
  12431. /***/ "../../node_modules/lodash/_equalByTag.js":
  12432. /*!**************************************************************!*\
  12433. !*** E:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  12434. \**************************************************************/
  12435. /*! no static exports found */
  12436. /***/ (function(module, exports, __webpack_require__) {
  12437. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12438. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  12439. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  12440. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  12441. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  12442. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12443. /** Used to compose bitmasks for value comparisons. */
  12444. var COMPARE_PARTIAL_FLAG = 1,
  12445. COMPARE_UNORDERED_FLAG = 2;
  12446. /** `Object#toString` result references. */
  12447. var boolTag = '[object Boolean]',
  12448. dateTag = '[object Date]',
  12449. errorTag = '[object Error]',
  12450. mapTag = '[object Map]',
  12451. numberTag = '[object Number]',
  12452. regexpTag = '[object RegExp]',
  12453. setTag = '[object Set]',
  12454. stringTag = '[object String]',
  12455. symbolTag = '[object Symbol]';
  12456. var arrayBufferTag = '[object ArrayBuffer]',
  12457. dataViewTag = '[object DataView]';
  12458. /** Used to convert symbols to primitives and strings. */
  12459. var symbolProto = Symbol ? Symbol.prototype : undefined,
  12460. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  12461. /**
  12462. * A specialized version of `baseIsEqualDeep` for comparing objects of
  12463. * the same `toStringTag`.
  12464. *
  12465. * **Note:** This function only supports comparing values with tags of
  12466. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  12467. *
  12468. * @private
  12469. * @param {Object} object The object to compare.
  12470. * @param {Object} other The other object to compare.
  12471. * @param {string} tag The `toStringTag` of the objects to compare.
  12472. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12473. * @param {Function} customizer The function to customize comparisons.
  12474. * @param {Function} equalFunc The function to determine equivalents of values.
  12475. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12476. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12477. */
  12478. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  12479. switch (tag) {
  12480. case dataViewTag:
  12481. if ((object.byteLength != other.byteLength) ||
  12482. (object.byteOffset != other.byteOffset)) {
  12483. return false;
  12484. }
  12485. object = object.buffer;
  12486. other = other.buffer;
  12487. case arrayBufferTag:
  12488. if ((object.byteLength != other.byteLength) ||
  12489. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  12490. return false;
  12491. }
  12492. return true;
  12493. case boolTag:
  12494. case dateTag:
  12495. case numberTag:
  12496. // Coerce booleans to `1` or `0` and dates to milliseconds.
  12497. // Invalid dates are coerced to `NaN`.
  12498. return eq(+object, +other);
  12499. case errorTag:
  12500. return object.name == other.name && object.message == other.message;
  12501. case regexpTag:
  12502. case stringTag:
  12503. // Coerce regexes to strings and treat strings, primitives and objects,
  12504. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  12505. // for more details.
  12506. return object == (other + '');
  12507. case mapTag:
  12508. var convert = mapToArray;
  12509. case setTag:
  12510. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  12511. convert || (convert = setToArray);
  12512. if (object.size != other.size && !isPartial) {
  12513. return false;
  12514. }
  12515. // Assume cyclic values are equal.
  12516. var stacked = stack.get(object);
  12517. if (stacked) {
  12518. return stacked == other;
  12519. }
  12520. bitmask |= COMPARE_UNORDERED_FLAG;
  12521. // Recursively compare objects (susceptible to call stack limits).
  12522. stack.set(object, other);
  12523. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  12524. stack['delete'](object);
  12525. return result;
  12526. case symbolTag:
  12527. if (symbolValueOf) {
  12528. return symbolValueOf.call(object) == symbolValueOf.call(other);
  12529. }
  12530. }
  12531. return false;
  12532. }
  12533. module.exports = equalByTag;
  12534. /***/ }),
  12535. /***/ "../../node_modules/lodash/_equalObjects.js":
  12536. /*!****************************************************************!*\
  12537. !*** E:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  12538. \****************************************************************/
  12539. /*! no static exports found */
  12540. /***/ (function(module, exports, __webpack_require__) {
  12541. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  12542. /** Used to compose bitmasks for value comparisons. */
  12543. var COMPARE_PARTIAL_FLAG = 1;
  12544. /** Used for built-in method references. */
  12545. var objectProto = Object.prototype;
  12546. /** Used to check objects for own properties. */
  12547. var hasOwnProperty = objectProto.hasOwnProperty;
  12548. /**
  12549. * A specialized version of `baseIsEqualDeep` for objects with support for
  12550. * partial deep comparisons.
  12551. *
  12552. * @private
  12553. * @param {Object} object The object to compare.
  12554. * @param {Object} other The other object to compare.
  12555. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12556. * @param {Function} customizer The function to customize comparisons.
  12557. * @param {Function} equalFunc The function to determine equivalents of values.
  12558. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12559. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12560. */
  12561. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  12562. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12563. objProps = getAllKeys(object),
  12564. objLength = objProps.length,
  12565. othProps = getAllKeys(other),
  12566. othLength = othProps.length;
  12567. if (objLength != othLength && !isPartial) {
  12568. return false;
  12569. }
  12570. var index = objLength;
  12571. while (index--) {
  12572. var key = objProps[index];
  12573. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  12574. return false;
  12575. }
  12576. }
  12577. // Assume cyclic values are equal.
  12578. var stacked = stack.get(object);
  12579. if (stacked && stack.get(other)) {
  12580. return stacked == other;
  12581. }
  12582. var result = true;
  12583. stack.set(object, other);
  12584. stack.set(other, object);
  12585. var skipCtor = isPartial;
  12586. while (++index < objLength) {
  12587. key = objProps[index];
  12588. var objValue = object[key],
  12589. othValue = other[key];
  12590. if (customizer) {
  12591. var compared = isPartial
  12592. ? customizer(othValue, objValue, key, other, object, stack)
  12593. : customizer(objValue, othValue, key, object, other, stack);
  12594. }
  12595. // Recursively compare objects (susceptible to call stack limits).
  12596. if (!(compared === undefined
  12597. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  12598. : compared
  12599. )) {
  12600. result = false;
  12601. break;
  12602. }
  12603. skipCtor || (skipCtor = key == 'constructor');
  12604. }
  12605. if (result && !skipCtor) {
  12606. var objCtor = object.constructor,
  12607. othCtor = other.constructor;
  12608. // Non `Object` object instances with different constructors are not equal.
  12609. if (objCtor != othCtor &&
  12610. ('constructor' in object && 'constructor' in other) &&
  12611. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  12612. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  12613. result = false;
  12614. }
  12615. }
  12616. stack['delete'](object);
  12617. stack['delete'](other);
  12618. return result;
  12619. }
  12620. module.exports = equalObjects;
  12621. /***/ }),
  12622. /***/ "../../node_modules/lodash/_flatRest.js":
  12623. /*!************************************************************!*\
  12624. !*** E:/Repos/Babylon.js/node_modules/lodash/_flatRest.js ***!
  12625. \************************************************************/
  12626. /*! no static exports found */
  12627. /***/ (function(module, exports, __webpack_require__) {
  12628. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  12629. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  12630. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  12631. /**
  12632. * A specialized version of `baseRest` which flattens the rest array.
  12633. *
  12634. * @private
  12635. * @param {Function} func The function to apply a rest parameter to.
  12636. * @returns {Function} Returns the new function.
  12637. */
  12638. function flatRest(func) {
  12639. return setToString(overRest(func, undefined, flatten), func + '');
  12640. }
  12641. module.exports = flatRest;
  12642. /***/ }),
  12643. /***/ "../../node_modules/lodash/_freeGlobal.js":
  12644. /*!**************************************************************!*\
  12645. !*** E:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  12646. \**************************************************************/
  12647. /*! no static exports found */
  12648. /***/ (function(module, exports, __webpack_require__) {
  12649. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  12650. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  12651. module.exports = freeGlobal;
  12652. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  12653. /***/ }),
  12654. /***/ "../../node_modules/lodash/_getAllKeys.js":
  12655. /*!**************************************************************!*\
  12656. !*** E:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  12657. \**************************************************************/
  12658. /*! no static exports found */
  12659. /***/ (function(module, exports, __webpack_require__) {
  12660. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12661. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12662. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12663. /**
  12664. * Creates an array of own enumerable property names and symbols of `object`.
  12665. *
  12666. * @private
  12667. * @param {Object} object The object to query.
  12668. * @returns {Array} Returns the array of property names and symbols.
  12669. */
  12670. function getAllKeys(object) {
  12671. return baseGetAllKeys(object, keys, getSymbols);
  12672. }
  12673. module.exports = getAllKeys;
  12674. /***/ }),
  12675. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  12676. /*!****************************************************************!*\
  12677. !*** E:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  12678. \****************************************************************/
  12679. /*! no static exports found */
  12680. /***/ (function(module, exports, __webpack_require__) {
  12681. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12682. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  12683. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  12684. /**
  12685. * Creates an array of own and inherited enumerable property names and
  12686. * symbols of `object`.
  12687. *
  12688. * @private
  12689. * @param {Object} object The object to query.
  12690. * @returns {Array} Returns the array of property names and symbols.
  12691. */
  12692. function getAllKeysIn(object) {
  12693. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  12694. }
  12695. module.exports = getAllKeysIn;
  12696. /***/ }),
  12697. /***/ "../../node_modules/lodash/_getMapData.js":
  12698. /*!**************************************************************!*\
  12699. !*** E:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  12700. \**************************************************************/
  12701. /*! no static exports found */
  12702. /***/ (function(module, exports, __webpack_require__) {
  12703. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  12704. /**
  12705. * Gets the data for `map`.
  12706. *
  12707. * @private
  12708. * @param {Object} map The map to query.
  12709. * @param {string} key The reference key.
  12710. * @returns {*} Returns the map data.
  12711. */
  12712. function getMapData(map, key) {
  12713. var data = map.__data__;
  12714. return isKeyable(key)
  12715. ? data[typeof key == 'string' ? 'string' : 'hash']
  12716. : data.map;
  12717. }
  12718. module.exports = getMapData;
  12719. /***/ }),
  12720. /***/ "../../node_modules/lodash/_getMatchData.js":
  12721. /*!****************************************************************!*\
  12722. !*** E:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  12723. \****************************************************************/
  12724. /*! no static exports found */
  12725. /***/ (function(module, exports, __webpack_require__) {
  12726. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  12727. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12728. /**
  12729. * Gets the property names, values, and compare flags of `object`.
  12730. *
  12731. * @private
  12732. * @param {Object} object The object to query.
  12733. * @returns {Array} Returns the match data of `object`.
  12734. */
  12735. function getMatchData(object) {
  12736. var result = keys(object),
  12737. length = result.length;
  12738. while (length--) {
  12739. var key = result[length],
  12740. value = object[key];
  12741. result[length] = [key, value, isStrictComparable(value)];
  12742. }
  12743. return result;
  12744. }
  12745. module.exports = getMatchData;
  12746. /***/ }),
  12747. /***/ "../../node_modules/lodash/_getNative.js":
  12748. /*!*************************************************************!*\
  12749. !*** E:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  12750. \*************************************************************/
  12751. /*! no static exports found */
  12752. /***/ (function(module, exports, __webpack_require__) {
  12753. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  12754. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  12755. /**
  12756. * Gets the native function at `key` of `object`.
  12757. *
  12758. * @private
  12759. * @param {Object} object The object to query.
  12760. * @param {string} key The key of the method to get.
  12761. * @returns {*} Returns the function if it's native, else `undefined`.
  12762. */
  12763. function getNative(object, key) {
  12764. var value = getValue(object, key);
  12765. return baseIsNative(value) ? value : undefined;
  12766. }
  12767. module.exports = getNative;
  12768. /***/ }),
  12769. /***/ "../../node_modules/lodash/_getPrototype.js":
  12770. /*!****************************************************************!*\
  12771. !*** E:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  12772. \****************************************************************/
  12773. /*! no static exports found */
  12774. /***/ (function(module, exports, __webpack_require__) {
  12775. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  12776. /** Built-in value references. */
  12777. var getPrototype = overArg(Object.getPrototypeOf, Object);
  12778. module.exports = getPrototype;
  12779. /***/ }),
  12780. /***/ "../../node_modules/lodash/_getRawTag.js":
  12781. /*!*************************************************************!*\
  12782. !*** E:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  12783. \*************************************************************/
  12784. /*! no static exports found */
  12785. /***/ (function(module, exports, __webpack_require__) {
  12786. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  12787. /** Used for built-in method references. */
  12788. var objectProto = Object.prototype;
  12789. /** Used to check objects for own properties. */
  12790. var hasOwnProperty = objectProto.hasOwnProperty;
  12791. /**
  12792. * Used to resolve the
  12793. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  12794. * of values.
  12795. */
  12796. var nativeObjectToString = objectProto.toString;
  12797. /** Built-in value references. */
  12798. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  12799. /**
  12800. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  12801. *
  12802. * @private
  12803. * @param {*} value The value to query.
  12804. * @returns {string} Returns the raw `toStringTag`.
  12805. */
  12806. function getRawTag(value) {
  12807. var isOwn = hasOwnProperty.call(value, symToStringTag),
  12808. tag = value[symToStringTag];
  12809. try {
  12810. value[symToStringTag] = undefined;
  12811. var unmasked = true;
  12812. } catch (e) {}
  12813. var result = nativeObjectToString.call(value);
  12814. if (unmasked) {
  12815. if (isOwn) {
  12816. value[symToStringTag] = tag;
  12817. } else {
  12818. delete value[symToStringTag];
  12819. }
  12820. }
  12821. return result;
  12822. }
  12823. module.exports = getRawTag;
  12824. /***/ }),
  12825. /***/ "../../node_modules/lodash/_getSymbols.js":
  12826. /*!**************************************************************!*\
  12827. !*** E:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  12828. \**************************************************************/
  12829. /*! no static exports found */
  12830. /***/ (function(module, exports, __webpack_require__) {
  12831. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  12832. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12833. /** Used for built-in method references. */
  12834. var objectProto = Object.prototype;
  12835. /** Built-in value references. */
  12836. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  12837. /* Built-in method references for those with the same name as other `lodash` methods. */
  12838. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12839. /**
  12840. * Creates an array of the own enumerable symbols of `object`.
  12841. *
  12842. * @private
  12843. * @param {Object} object The object to query.
  12844. * @returns {Array} Returns the array of symbols.
  12845. */
  12846. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  12847. if (object == null) {
  12848. return [];
  12849. }
  12850. object = Object(object);
  12851. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  12852. return propertyIsEnumerable.call(object, symbol);
  12853. });
  12854. };
  12855. module.exports = getSymbols;
  12856. /***/ }),
  12857. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  12858. /*!****************************************************************!*\
  12859. !*** E:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  12860. \****************************************************************/
  12861. /*! no static exports found */
  12862. /***/ (function(module, exports, __webpack_require__) {
  12863. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  12864. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  12865. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12866. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12867. /* Built-in method references for those with the same name as other `lodash` methods. */
  12868. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12869. /**
  12870. * Creates an array of the own and inherited enumerable symbols of `object`.
  12871. *
  12872. * @private
  12873. * @param {Object} object The object to query.
  12874. * @returns {Array} Returns the array of symbols.
  12875. */
  12876. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  12877. var result = [];
  12878. while (object) {
  12879. arrayPush(result, getSymbols(object));
  12880. object = getPrototype(object);
  12881. }
  12882. return result;
  12883. };
  12884. module.exports = getSymbolsIn;
  12885. /***/ }),
  12886. /***/ "../../node_modules/lodash/_getTag.js":
  12887. /*!**********************************************************!*\
  12888. !*** E:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  12889. \**********************************************************/
  12890. /*! no static exports found */
  12891. /***/ (function(module, exports, __webpack_require__) {
  12892. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  12893. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  12894. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  12895. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12896. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  12897. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12898. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  12899. /** `Object#toString` result references. */
  12900. var mapTag = '[object Map]',
  12901. objectTag = '[object Object]',
  12902. promiseTag = '[object Promise]',
  12903. setTag = '[object Set]',
  12904. weakMapTag = '[object WeakMap]';
  12905. var dataViewTag = '[object DataView]';
  12906. /** Used to detect maps, sets, and weakmaps. */
  12907. var dataViewCtorString = toSource(DataView),
  12908. mapCtorString = toSource(Map),
  12909. promiseCtorString = toSource(Promise),
  12910. setCtorString = toSource(Set),
  12911. weakMapCtorString = toSource(WeakMap);
  12912. /**
  12913. * Gets the `toStringTag` of `value`.
  12914. *
  12915. * @private
  12916. * @param {*} value The value to query.
  12917. * @returns {string} Returns the `toStringTag`.
  12918. */
  12919. var getTag = baseGetTag;
  12920. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  12921. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  12922. (Map && getTag(new Map) != mapTag) ||
  12923. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  12924. (Set && getTag(new Set) != setTag) ||
  12925. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  12926. getTag = function(value) {
  12927. var result = baseGetTag(value),
  12928. Ctor = result == objectTag ? value.constructor : undefined,
  12929. ctorString = Ctor ? toSource(Ctor) : '';
  12930. if (ctorString) {
  12931. switch (ctorString) {
  12932. case dataViewCtorString: return dataViewTag;
  12933. case mapCtorString: return mapTag;
  12934. case promiseCtorString: return promiseTag;
  12935. case setCtorString: return setTag;
  12936. case weakMapCtorString: return weakMapTag;
  12937. }
  12938. }
  12939. return result;
  12940. };
  12941. }
  12942. module.exports = getTag;
  12943. /***/ }),
  12944. /***/ "../../node_modules/lodash/_getValue.js":
  12945. /*!************************************************************!*\
  12946. !*** E:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  12947. \************************************************************/
  12948. /*! no static exports found */
  12949. /***/ (function(module, exports) {
  12950. /**
  12951. * Gets the value at `key` of `object`.
  12952. *
  12953. * @private
  12954. * @param {Object} [object] The object to query.
  12955. * @param {string} key The key of the property to get.
  12956. * @returns {*} Returns the property value.
  12957. */
  12958. function getValue(object, key) {
  12959. return object == null ? undefined : object[key];
  12960. }
  12961. module.exports = getValue;
  12962. /***/ }),
  12963. /***/ "../../node_modules/lodash/_hasPath.js":
  12964. /*!***********************************************************!*\
  12965. !*** E:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  12966. \***********************************************************/
  12967. /*! no static exports found */
  12968. /***/ (function(module, exports, __webpack_require__) {
  12969. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  12970. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12971. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12972. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  12973. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  12974. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  12975. /**
  12976. * Checks if `path` exists on `object`.
  12977. *
  12978. * @private
  12979. * @param {Object} object The object to query.
  12980. * @param {Array|string} path The path to check.
  12981. * @param {Function} hasFunc The function to check properties.
  12982. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  12983. */
  12984. function hasPath(object, path, hasFunc) {
  12985. path = castPath(path, object);
  12986. var index = -1,
  12987. length = path.length,
  12988. result = false;
  12989. while (++index < length) {
  12990. var key = toKey(path[index]);
  12991. if (!(result = object != null && hasFunc(object, key))) {
  12992. break;
  12993. }
  12994. object = object[key];
  12995. }
  12996. if (result || ++index != length) {
  12997. return result;
  12998. }
  12999. length = object == null ? 0 : object.length;
  13000. return !!length && isLength(length) && isIndex(key, length) &&
  13001. (isArray(object) || isArguments(object));
  13002. }
  13003. module.exports = hasPath;
  13004. /***/ }),
  13005. /***/ "../../node_modules/lodash/_hasUnicode.js":
  13006. /*!**************************************************************!*\
  13007. !*** E:/Repos/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  13008. \**************************************************************/
  13009. /*! no static exports found */
  13010. /***/ (function(module, exports) {
  13011. /** Used to compose unicode character classes. */
  13012. var rsAstralRange = '\\ud800-\\udfff',
  13013. rsComboMarksRange = '\\u0300-\\u036f',
  13014. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  13015. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  13016. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  13017. rsVarRange = '\\ufe0e\\ufe0f';
  13018. /** Used to compose unicode capture groups. */
  13019. var rsZWJ = '\\u200d';
  13020. /** 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/). */
  13021. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  13022. /**
  13023. * Checks if `string` contains Unicode symbols.
  13024. *
  13025. * @private
  13026. * @param {string} string The string to inspect.
  13027. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  13028. */
  13029. function hasUnicode(string) {
  13030. return reHasUnicode.test(string);
  13031. }
  13032. module.exports = hasUnicode;
  13033. /***/ }),
  13034. /***/ "../../node_modules/lodash/_hashClear.js":
  13035. /*!*************************************************************!*\
  13036. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  13037. \*************************************************************/
  13038. /*! no static exports found */
  13039. /***/ (function(module, exports, __webpack_require__) {
  13040. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13041. /**
  13042. * Removes all key-value entries from the hash.
  13043. *
  13044. * @private
  13045. * @name clear
  13046. * @memberOf Hash
  13047. */
  13048. function hashClear() {
  13049. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  13050. this.size = 0;
  13051. }
  13052. module.exports = hashClear;
  13053. /***/ }),
  13054. /***/ "../../node_modules/lodash/_hashDelete.js":
  13055. /*!**************************************************************!*\
  13056. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  13057. \**************************************************************/
  13058. /*! no static exports found */
  13059. /***/ (function(module, exports) {
  13060. /**
  13061. * Removes `key` and its value from the hash.
  13062. *
  13063. * @private
  13064. * @name delete
  13065. * @memberOf Hash
  13066. * @param {Object} hash The hash to modify.
  13067. * @param {string} key The key of the value to remove.
  13068. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13069. */
  13070. function hashDelete(key) {
  13071. var result = this.has(key) && delete this.__data__[key];
  13072. this.size -= result ? 1 : 0;
  13073. return result;
  13074. }
  13075. module.exports = hashDelete;
  13076. /***/ }),
  13077. /***/ "../../node_modules/lodash/_hashGet.js":
  13078. /*!***********************************************************!*\
  13079. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashGet.js ***!
  13080. \***********************************************************/
  13081. /*! no static exports found */
  13082. /***/ (function(module, exports, __webpack_require__) {
  13083. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13084. /** Used to stand-in for `undefined` hash values. */
  13085. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13086. /** Used for built-in method references. */
  13087. var objectProto = Object.prototype;
  13088. /** Used to check objects for own properties. */
  13089. var hasOwnProperty = objectProto.hasOwnProperty;
  13090. /**
  13091. * Gets the hash value for `key`.
  13092. *
  13093. * @private
  13094. * @name get
  13095. * @memberOf Hash
  13096. * @param {string} key The key of the value to get.
  13097. * @returns {*} Returns the entry value.
  13098. */
  13099. function hashGet(key) {
  13100. var data = this.__data__;
  13101. if (nativeCreate) {
  13102. var result = data[key];
  13103. return result === HASH_UNDEFINED ? undefined : result;
  13104. }
  13105. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  13106. }
  13107. module.exports = hashGet;
  13108. /***/ }),
  13109. /***/ "../../node_modules/lodash/_hashHas.js":
  13110. /*!***********************************************************!*\
  13111. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  13112. \***********************************************************/
  13113. /*! no static exports found */
  13114. /***/ (function(module, exports, __webpack_require__) {
  13115. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13116. /** Used for built-in method references. */
  13117. var objectProto = Object.prototype;
  13118. /** Used to check objects for own properties. */
  13119. var hasOwnProperty = objectProto.hasOwnProperty;
  13120. /**
  13121. * Checks if a hash value for `key` exists.
  13122. *
  13123. * @private
  13124. * @name has
  13125. * @memberOf Hash
  13126. * @param {string} key The key of the entry to check.
  13127. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13128. */
  13129. function hashHas(key) {
  13130. var data = this.__data__;
  13131. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  13132. }
  13133. module.exports = hashHas;
  13134. /***/ }),
  13135. /***/ "../../node_modules/lodash/_hashSet.js":
  13136. /*!***********************************************************!*\
  13137. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  13138. \***********************************************************/
  13139. /*! no static exports found */
  13140. /***/ (function(module, exports, __webpack_require__) {
  13141. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13142. /** Used to stand-in for `undefined` hash values. */
  13143. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13144. /**
  13145. * Sets the hash `key` to `value`.
  13146. *
  13147. * @private
  13148. * @name set
  13149. * @memberOf Hash
  13150. * @param {string} key The key of the value to set.
  13151. * @param {*} value The value to set.
  13152. * @returns {Object} Returns the hash instance.
  13153. */
  13154. function hashSet(key, value) {
  13155. var data = this.__data__;
  13156. this.size += this.has(key) ? 0 : 1;
  13157. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  13158. return this;
  13159. }
  13160. module.exports = hashSet;
  13161. /***/ }),
  13162. /***/ "../../node_modules/lodash/_initCloneArray.js":
  13163. /*!******************************************************************!*\
  13164. !*** E:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  13165. \******************************************************************/
  13166. /*! no static exports found */
  13167. /***/ (function(module, exports) {
  13168. /** Used for built-in method references. */
  13169. var objectProto = Object.prototype;
  13170. /** Used to check objects for own properties. */
  13171. var hasOwnProperty = objectProto.hasOwnProperty;
  13172. /**
  13173. * Initializes an array clone.
  13174. *
  13175. * @private
  13176. * @param {Array} array The array to clone.
  13177. * @returns {Array} Returns the initialized clone.
  13178. */
  13179. function initCloneArray(array) {
  13180. var length = array.length,
  13181. result = new array.constructor(length);
  13182. // Add properties assigned by `RegExp#exec`.
  13183. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  13184. result.index = array.index;
  13185. result.input = array.input;
  13186. }
  13187. return result;
  13188. }
  13189. module.exports = initCloneArray;
  13190. /***/ }),
  13191. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  13192. /*!******************************************************************!*\
  13193. !*** E:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  13194. \******************************************************************/
  13195. /*! no static exports found */
  13196. /***/ (function(module, exports, __webpack_require__) {
  13197. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  13198. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  13199. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  13200. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  13201. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  13202. /** `Object#toString` result references. */
  13203. var boolTag = '[object Boolean]',
  13204. dateTag = '[object Date]',
  13205. mapTag = '[object Map]',
  13206. numberTag = '[object Number]',
  13207. regexpTag = '[object RegExp]',
  13208. setTag = '[object Set]',
  13209. stringTag = '[object String]',
  13210. symbolTag = '[object Symbol]';
  13211. var arrayBufferTag = '[object ArrayBuffer]',
  13212. dataViewTag = '[object DataView]',
  13213. float32Tag = '[object Float32Array]',
  13214. float64Tag = '[object Float64Array]',
  13215. int8Tag = '[object Int8Array]',
  13216. int16Tag = '[object Int16Array]',
  13217. int32Tag = '[object Int32Array]',
  13218. uint8Tag = '[object Uint8Array]',
  13219. uint8ClampedTag = '[object Uint8ClampedArray]',
  13220. uint16Tag = '[object Uint16Array]',
  13221. uint32Tag = '[object Uint32Array]';
  13222. /**
  13223. * Initializes an object clone based on its `toStringTag`.
  13224. *
  13225. * **Note:** This function only supports cloning values with tags of
  13226. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  13227. *
  13228. * @private
  13229. * @param {Object} object The object to clone.
  13230. * @param {string} tag The `toStringTag` of the object to clone.
  13231. * @param {boolean} [isDeep] Specify a deep clone.
  13232. * @returns {Object} Returns the initialized clone.
  13233. */
  13234. function initCloneByTag(object, tag, isDeep) {
  13235. var Ctor = object.constructor;
  13236. switch (tag) {
  13237. case arrayBufferTag:
  13238. return cloneArrayBuffer(object);
  13239. case boolTag:
  13240. case dateTag:
  13241. return new Ctor(+object);
  13242. case dataViewTag:
  13243. return cloneDataView(object, isDeep);
  13244. case float32Tag: case float64Tag:
  13245. case int8Tag: case int16Tag: case int32Tag:
  13246. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  13247. return cloneTypedArray(object, isDeep);
  13248. case mapTag:
  13249. return new Ctor;
  13250. case numberTag:
  13251. case stringTag:
  13252. return new Ctor(object);
  13253. case regexpTag:
  13254. return cloneRegExp(object);
  13255. case setTag:
  13256. return new Ctor;
  13257. case symbolTag:
  13258. return cloneSymbol(object);
  13259. }
  13260. }
  13261. module.exports = initCloneByTag;
  13262. /***/ }),
  13263. /***/ "../../node_modules/lodash/_initCloneObject.js":
  13264. /*!*******************************************************************!*\
  13265. !*** E:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  13266. \*******************************************************************/
  13267. /*! no static exports found */
  13268. /***/ (function(module, exports, __webpack_require__) {
  13269. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  13270. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  13271. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  13272. /**
  13273. * Initializes an object clone.
  13274. *
  13275. * @private
  13276. * @param {Object} object The object to clone.
  13277. * @returns {Object} Returns the initialized clone.
  13278. */
  13279. function initCloneObject(object) {
  13280. return (typeof object.constructor == 'function' && !isPrototype(object))
  13281. ? baseCreate(getPrototype(object))
  13282. : {};
  13283. }
  13284. module.exports = initCloneObject;
  13285. /***/ }),
  13286. /***/ "../../node_modules/lodash/_isFlattenable.js":
  13287. /*!*****************************************************************!*\
  13288. !*** E:/Repos/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  13289. \*****************************************************************/
  13290. /*! no static exports found */
  13291. /***/ (function(module, exports, __webpack_require__) {
  13292. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  13293. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  13294. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  13295. /** Built-in value references. */
  13296. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  13297. /**
  13298. * Checks if `value` is a flattenable `arguments` object or array.
  13299. *
  13300. * @private
  13301. * @param {*} value The value to check.
  13302. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  13303. */
  13304. function isFlattenable(value) {
  13305. return isArray(value) || isArguments(value) ||
  13306. !!(spreadableSymbol && value && value[spreadableSymbol]);
  13307. }
  13308. module.exports = isFlattenable;
  13309. /***/ }),
  13310. /***/ "../../node_modules/lodash/_isIndex.js":
  13311. /*!***********************************************************!*\
  13312. !*** E:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  13313. \***********************************************************/
  13314. /*! no static exports found */
  13315. /***/ (function(module, exports) {
  13316. /** Used as references for various `Number` constants. */
  13317. var MAX_SAFE_INTEGER = 9007199254740991;
  13318. /** Used to detect unsigned integer values. */
  13319. var reIsUint = /^(?:0|[1-9]\d*)$/;
  13320. /**
  13321. * Checks if `value` is a valid array-like index.
  13322. *
  13323. * @private
  13324. * @param {*} value The value to check.
  13325. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  13326. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  13327. */
  13328. function isIndex(value, length) {
  13329. var type = typeof value;
  13330. length = length == null ? MAX_SAFE_INTEGER : length;
  13331. return !!length &&
  13332. (type == 'number' ||
  13333. (type != 'symbol' && reIsUint.test(value))) &&
  13334. (value > -1 && value % 1 == 0 && value < length);
  13335. }
  13336. module.exports = isIndex;
  13337. /***/ }),
  13338. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  13339. /*!******************************************************************!*\
  13340. !*** E:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  13341. \******************************************************************/
  13342. /*! no static exports found */
  13343. /***/ (function(module, exports, __webpack_require__) {
  13344. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  13345. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  13346. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  13347. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13348. /**
  13349. * Checks if the given arguments are from an iteratee call.
  13350. *
  13351. * @private
  13352. * @param {*} value The potential iteratee value argument.
  13353. * @param {*} index The potential iteratee index or key argument.
  13354. * @param {*} object The potential iteratee object argument.
  13355. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  13356. * else `false`.
  13357. */
  13358. function isIterateeCall(value, index, object) {
  13359. if (!isObject(object)) {
  13360. return false;
  13361. }
  13362. var type = typeof index;
  13363. if (type == 'number'
  13364. ? (isArrayLike(object) && isIndex(index, object.length))
  13365. : (type == 'string' && index in object)
  13366. ) {
  13367. return eq(object[index], value);
  13368. }
  13369. return false;
  13370. }
  13371. module.exports = isIterateeCall;
  13372. /***/ }),
  13373. /***/ "../../node_modules/lodash/_isKey.js":
  13374. /*!*********************************************************!*\
  13375. !*** E:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  13376. \*********************************************************/
  13377. /*! no static exports found */
  13378. /***/ (function(module, exports, __webpack_require__) {
  13379. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  13380. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  13381. /** Used to match property names within property paths. */
  13382. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  13383. reIsPlainProp = /^\w*$/;
  13384. /**
  13385. * Checks if `value` is a property name and not a property path.
  13386. *
  13387. * @private
  13388. * @param {*} value The value to check.
  13389. * @param {Object} [object] The object to query keys on.
  13390. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  13391. */
  13392. function isKey(value, object) {
  13393. if (isArray(value)) {
  13394. return false;
  13395. }
  13396. var type = typeof value;
  13397. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  13398. value == null || isSymbol(value)) {
  13399. return true;
  13400. }
  13401. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  13402. (object != null && value in Object(object));
  13403. }
  13404. module.exports = isKey;
  13405. /***/ }),
  13406. /***/ "../../node_modules/lodash/_isKeyable.js":
  13407. /*!*************************************************************!*\
  13408. !*** E:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  13409. \*************************************************************/
  13410. /*! no static exports found */
  13411. /***/ (function(module, exports) {
  13412. /**
  13413. * Checks if `value` is suitable for use as unique object key.
  13414. *
  13415. * @private
  13416. * @param {*} value The value to check.
  13417. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  13418. */
  13419. function isKeyable(value) {
  13420. var type = typeof value;
  13421. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  13422. ? (value !== '__proto__')
  13423. : (value === null);
  13424. }
  13425. module.exports = isKeyable;
  13426. /***/ }),
  13427. /***/ "../../node_modules/lodash/_isMasked.js":
  13428. /*!************************************************************!*\
  13429. !*** E:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  13430. \************************************************************/
  13431. /*! no static exports found */
  13432. /***/ (function(module, exports, __webpack_require__) {
  13433. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  13434. /** Used to detect methods masquerading as native. */
  13435. var maskSrcKey = (function() {
  13436. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  13437. return uid ? ('Symbol(src)_1.' + uid) : '';
  13438. }());
  13439. /**
  13440. * Checks if `func` has its source masked.
  13441. *
  13442. * @private
  13443. * @param {Function} func The function to check.
  13444. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  13445. */
  13446. function isMasked(func) {
  13447. return !!maskSrcKey && (maskSrcKey in func);
  13448. }
  13449. module.exports = isMasked;
  13450. /***/ }),
  13451. /***/ "../../node_modules/lodash/_isPrototype.js":
  13452. /*!***************************************************************!*\
  13453. !*** E:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  13454. \***************************************************************/
  13455. /*! no static exports found */
  13456. /***/ (function(module, exports) {
  13457. /** Used for built-in method references. */
  13458. var objectProto = Object.prototype;
  13459. /**
  13460. * Checks if `value` is likely a prototype object.
  13461. *
  13462. * @private
  13463. * @param {*} value The value to check.
  13464. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  13465. */
  13466. function isPrototype(value) {
  13467. var Ctor = value && value.constructor,
  13468. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13469. return value === proto;
  13470. }
  13471. module.exports = isPrototype;
  13472. /***/ }),
  13473. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  13474. /*!**********************************************************************!*\
  13475. !*** E:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  13476. \**********************************************************************/
  13477. /*! no static exports found */
  13478. /***/ (function(module, exports, __webpack_require__) {
  13479. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13480. /**
  13481. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  13482. *
  13483. * @private
  13484. * @param {*} value The value to check.
  13485. * @returns {boolean} Returns `true` if `value` if suitable for strict
  13486. * equality comparisons, else `false`.
  13487. */
  13488. function isStrictComparable(value) {
  13489. return value === value && !isObject(value);
  13490. }
  13491. module.exports = isStrictComparable;
  13492. /***/ }),
  13493. /***/ "../../node_modules/lodash/_listCacheClear.js":
  13494. /*!******************************************************************!*\
  13495. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  13496. \******************************************************************/
  13497. /*! no static exports found */
  13498. /***/ (function(module, exports) {
  13499. /**
  13500. * Removes all key-value entries from the list cache.
  13501. *
  13502. * @private
  13503. * @name clear
  13504. * @memberOf ListCache
  13505. */
  13506. function listCacheClear() {
  13507. this.__data__ = [];
  13508. this.size = 0;
  13509. }
  13510. module.exports = listCacheClear;
  13511. /***/ }),
  13512. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  13513. /*!*******************************************************************!*\
  13514. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  13515. \*******************************************************************/
  13516. /*! no static exports found */
  13517. /***/ (function(module, exports, __webpack_require__) {
  13518. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13519. /** Used for built-in method references. */
  13520. var arrayProto = Array.prototype;
  13521. /** Built-in value references. */
  13522. var splice = arrayProto.splice;
  13523. /**
  13524. * Removes `key` and its value from the list cache.
  13525. *
  13526. * @private
  13527. * @name delete
  13528. * @memberOf ListCache
  13529. * @param {string} key The key of the value to remove.
  13530. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13531. */
  13532. function listCacheDelete(key) {
  13533. var data = this.__data__,
  13534. index = assocIndexOf(data, key);
  13535. if (index < 0) {
  13536. return false;
  13537. }
  13538. var lastIndex = data.length - 1;
  13539. if (index == lastIndex) {
  13540. data.pop();
  13541. } else {
  13542. splice.call(data, index, 1);
  13543. }
  13544. --this.size;
  13545. return true;
  13546. }
  13547. module.exports = listCacheDelete;
  13548. /***/ }),
  13549. /***/ "../../node_modules/lodash/_listCacheGet.js":
  13550. /*!****************************************************************!*\
  13551. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  13552. \****************************************************************/
  13553. /*! no static exports found */
  13554. /***/ (function(module, exports, __webpack_require__) {
  13555. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13556. /**
  13557. * Gets the list cache value for `key`.
  13558. *
  13559. * @private
  13560. * @name get
  13561. * @memberOf ListCache
  13562. * @param {string} key The key of the value to get.
  13563. * @returns {*} Returns the entry value.
  13564. */
  13565. function listCacheGet(key) {
  13566. var data = this.__data__,
  13567. index = assocIndexOf(data, key);
  13568. return index < 0 ? undefined : data[index][1];
  13569. }
  13570. module.exports = listCacheGet;
  13571. /***/ }),
  13572. /***/ "../../node_modules/lodash/_listCacheHas.js":
  13573. /*!****************************************************************!*\
  13574. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  13575. \****************************************************************/
  13576. /*! no static exports found */
  13577. /***/ (function(module, exports, __webpack_require__) {
  13578. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13579. /**
  13580. * Checks if a list cache value for `key` exists.
  13581. *
  13582. * @private
  13583. * @name has
  13584. * @memberOf ListCache
  13585. * @param {string} key The key of the entry to check.
  13586. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13587. */
  13588. function listCacheHas(key) {
  13589. return assocIndexOf(this.__data__, key) > -1;
  13590. }
  13591. module.exports = listCacheHas;
  13592. /***/ }),
  13593. /***/ "../../node_modules/lodash/_listCacheSet.js":
  13594. /*!****************************************************************!*\
  13595. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  13596. \****************************************************************/
  13597. /*! no static exports found */
  13598. /***/ (function(module, exports, __webpack_require__) {
  13599. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13600. /**
  13601. * Sets the list cache `key` to `value`.
  13602. *
  13603. * @private
  13604. * @name set
  13605. * @memberOf ListCache
  13606. * @param {string} key The key of the value to set.
  13607. * @param {*} value The value to set.
  13608. * @returns {Object} Returns the list cache instance.
  13609. */
  13610. function listCacheSet(key, value) {
  13611. var data = this.__data__,
  13612. index = assocIndexOf(data, key);
  13613. if (index < 0) {
  13614. ++this.size;
  13615. data.push([key, value]);
  13616. } else {
  13617. data[index][1] = value;
  13618. }
  13619. return this;
  13620. }
  13621. module.exports = listCacheSet;
  13622. /***/ }),
  13623. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  13624. /*!*****************************************************************!*\
  13625. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  13626. \*****************************************************************/
  13627. /*! no static exports found */
  13628. /***/ (function(module, exports, __webpack_require__) {
  13629. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  13630. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13631. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  13632. /**
  13633. * Removes all key-value entries from the map.
  13634. *
  13635. * @private
  13636. * @name clear
  13637. * @memberOf MapCache
  13638. */
  13639. function mapCacheClear() {
  13640. this.size = 0;
  13641. this.__data__ = {
  13642. 'hash': new Hash,
  13643. 'map': new (Map || ListCache),
  13644. 'string': new Hash
  13645. };
  13646. }
  13647. module.exports = mapCacheClear;
  13648. /***/ }),
  13649. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  13650. /*!******************************************************************!*\
  13651. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  13652. \******************************************************************/
  13653. /*! no static exports found */
  13654. /***/ (function(module, exports, __webpack_require__) {
  13655. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13656. /**
  13657. * Removes `key` and its value from the map.
  13658. *
  13659. * @private
  13660. * @name delete
  13661. * @memberOf MapCache
  13662. * @param {string} key The key of the value to remove.
  13663. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13664. */
  13665. function mapCacheDelete(key) {
  13666. var result = getMapData(this, key)['delete'](key);
  13667. this.size -= result ? 1 : 0;
  13668. return result;
  13669. }
  13670. module.exports = mapCacheDelete;
  13671. /***/ }),
  13672. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  13673. /*!***************************************************************!*\
  13674. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  13675. \***************************************************************/
  13676. /*! no static exports found */
  13677. /***/ (function(module, exports, __webpack_require__) {
  13678. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13679. /**
  13680. * Gets the map value for `key`.
  13681. *
  13682. * @private
  13683. * @name get
  13684. * @memberOf MapCache
  13685. * @param {string} key The key of the value to get.
  13686. * @returns {*} Returns the entry value.
  13687. */
  13688. function mapCacheGet(key) {
  13689. return getMapData(this, key).get(key);
  13690. }
  13691. module.exports = mapCacheGet;
  13692. /***/ }),
  13693. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  13694. /*!***************************************************************!*\
  13695. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  13696. \***************************************************************/
  13697. /*! no static exports found */
  13698. /***/ (function(module, exports, __webpack_require__) {
  13699. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13700. /**
  13701. * Checks if a map value for `key` exists.
  13702. *
  13703. * @private
  13704. * @name has
  13705. * @memberOf MapCache
  13706. * @param {string} key The key of the entry to check.
  13707. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13708. */
  13709. function mapCacheHas(key) {
  13710. return getMapData(this, key).has(key);
  13711. }
  13712. module.exports = mapCacheHas;
  13713. /***/ }),
  13714. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  13715. /*!***************************************************************!*\
  13716. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  13717. \***************************************************************/
  13718. /*! no static exports found */
  13719. /***/ (function(module, exports, __webpack_require__) {
  13720. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13721. /**
  13722. * Sets the map `key` to `value`.
  13723. *
  13724. * @private
  13725. * @name set
  13726. * @memberOf MapCache
  13727. * @param {string} key The key of the value to set.
  13728. * @param {*} value The value to set.
  13729. * @returns {Object} Returns the map cache instance.
  13730. */
  13731. function mapCacheSet(key, value) {
  13732. var data = getMapData(this, key),
  13733. size = data.size;
  13734. data.set(key, value);
  13735. this.size += data.size == size ? 0 : 1;
  13736. return this;
  13737. }
  13738. module.exports = mapCacheSet;
  13739. /***/ }),
  13740. /***/ "../../node_modules/lodash/_mapToArray.js":
  13741. /*!**************************************************************!*\
  13742. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  13743. \**************************************************************/
  13744. /*! no static exports found */
  13745. /***/ (function(module, exports) {
  13746. /**
  13747. * Converts `map` to its key-value pairs.
  13748. *
  13749. * @private
  13750. * @param {Object} map The map to convert.
  13751. * @returns {Array} Returns the key-value pairs.
  13752. */
  13753. function mapToArray(map) {
  13754. var index = -1,
  13755. result = Array(map.size);
  13756. map.forEach(function(value, key) {
  13757. result[++index] = [key, value];
  13758. });
  13759. return result;
  13760. }
  13761. module.exports = mapToArray;
  13762. /***/ }),
  13763. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  13764. /*!***************************************************************************!*\
  13765. !*** E:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  13766. \***************************************************************************/
  13767. /*! no static exports found */
  13768. /***/ (function(module, exports) {
  13769. /**
  13770. * A specialized version of `matchesProperty` for source values suitable
  13771. * for strict equality comparisons, i.e. `===`.
  13772. *
  13773. * @private
  13774. * @param {string} key The key of the property to get.
  13775. * @param {*} srcValue The value to match.
  13776. * @returns {Function} Returns the new spec function.
  13777. */
  13778. function matchesStrictComparable(key, srcValue) {
  13779. return function(object) {
  13780. if (object == null) {
  13781. return false;
  13782. }
  13783. return object[key] === srcValue &&
  13784. (srcValue !== undefined || (key in Object(object)));
  13785. };
  13786. }
  13787. module.exports = matchesStrictComparable;
  13788. /***/ }),
  13789. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  13790. /*!*****************************************************************!*\
  13791. !*** E:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  13792. \*****************************************************************/
  13793. /*! no static exports found */
  13794. /***/ (function(module, exports, __webpack_require__) {
  13795. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  13796. /** Used as the maximum memoize cache size. */
  13797. var MAX_MEMOIZE_SIZE = 500;
  13798. /**
  13799. * A specialized version of `_.memoize` which clears the memoized function's
  13800. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  13801. *
  13802. * @private
  13803. * @param {Function} func The function to have its output memoized.
  13804. * @returns {Function} Returns the new memoized function.
  13805. */
  13806. function memoizeCapped(func) {
  13807. var result = memoize(func, function(key) {
  13808. if (cache.size === MAX_MEMOIZE_SIZE) {
  13809. cache.clear();
  13810. }
  13811. return key;
  13812. });
  13813. var cache = result.cache;
  13814. return result;
  13815. }
  13816. module.exports = memoizeCapped;
  13817. /***/ }),
  13818. /***/ "../../node_modules/lodash/_nativeCreate.js":
  13819. /*!****************************************************************!*\
  13820. !*** E:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  13821. \****************************************************************/
  13822. /*! no static exports found */
  13823. /***/ (function(module, exports, __webpack_require__) {
  13824. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  13825. /* Built-in method references that are verified to be native. */
  13826. var nativeCreate = getNative(Object, 'create');
  13827. module.exports = nativeCreate;
  13828. /***/ }),
  13829. /***/ "../../node_modules/lodash/_nativeKeys.js":
  13830. /*!**************************************************************!*\
  13831. !*** E:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  13832. \**************************************************************/
  13833. /*! no static exports found */
  13834. /***/ (function(module, exports, __webpack_require__) {
  13835. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  13836. /* Built-in method references for those with the same name as other `lodash` methods. */
  13837. var nativeKeys = overArg(Object.keys, Object);
  13838. module.exports = nativeKeys;
  13839. /***/ }),
  13840. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  13841. /*!****************************************************************!*\
  13842. !*** E:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  13843. \****************************************************************/
  13844. /*! no static exports found */
  13845. /***/ (function(module, exports) {
  13846. /**
  13847. * This function is like
  13848. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  13849. * except that it includes inherited enumerable properties.
  13850. *
  13851. * @private
  13852. * @param {Object} object The object to query.
  13853. * @returns {Array} Returns the array of property names.
  13854. */
  13855. function nativeKeysIn(object) {
  13856. var result = [];
  13857. if (object != null) {
  13858. for (var key in Object(object)) {
  13859. result.push(key);
  13860. }
  13861. }
  13862. return result;
  13863. }
  13864. module.exports = nativeKeysIn;
  13865. /***/ }),
  13866. /***/ "../../node_modules/lodash/_nodeUtil.js":
  13867. /*!************************************************************!*\
  13868. !*** E:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  13869. \************************************************************/
  13870. /*! no static exports found */
  13871. /***/ (function(module, exports, __webpack_require__) {
  13872. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13873. /** Detect free variable `exports`. */
  13874. var freeExports = true && exports && !exports.nodeType && exports;
  13875. /** Detect free variable `module`. */
  13876. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  13877. /** Detect the popular CommonJS extension `module.exports`. */
  13878. var moduleExports = freeModule && freeModule.exports === freeExports;
  13879. /** Detect free variable `process` from Node.js. */
  13880. var freeProcess = moduleExports && freeGlobal.process;
  13881. /** Used to access faster Node.js helpers. */
  13882. var nodeUtil = (function() {
  13883. try {
  13884. // Use `util.types` for Node.js 10+.
  13885. var types = freeModule && freeModule.require && freeModule.require('util').types;
  13886. if (types) {
  13887. return types;
  13888. }
  13889. // Legacy `process.binding('util')` for Node.js < 10.
  13890. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  13891. } catch (e) {}
  13892. }());
  13893. module.exports = nodeUtil;
  13894. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  13895. /***/ }),
  13896. /***/ "../../node_modules/lodash/_objectToString.js":
  13897. /*!******************************************************************!*\
  13898. !*** E:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  13899. \******************************************************************/
  13900. /*! no static exports found */
  13901. /***/ (function(module, exports) {
  13902. /** Used for built-in method references. */
  13903. var objectProto = Object.prototype;
  13904. /**
  13905. * Used to resolve the
  13906. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  13907. * of values.
  13908. */
  13909. var nativeObjectToString = objectProto.toString;
  13910. /**
  13911. * Converts `value` to a string using `Object.prototype.toString`.
  13912. *
  13913. * @private
  13914. * @param {*} value The value to convert.
  13915. * @returns {string} Returns the converted string.
  13916. */
  13917. function objectToString(value) {
  13918. return nativeObjectToString.call(value);
  13919. }
  13920. module.exports = objectToString;
  13921. /***/ }),
  13922. /***/ "../../node_modules/lodash/_overArg.js":
  13923. /*!***********************************************************!*\
  13924. !*** E:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  13925. \***********************************************************/
  13926. /*! no static exports found */
  13927. /***/ (function(module, exports) {
  13928. /**
  13929. * Creates a unary function that invokes `func` with its argument transformed.
  13930. *
  13931. * @private
  13932. * @param {Function} func The function to wrap.
  13933. * @param {Function} transform The argument transform.
  13934. * @returns {Function} Returns the new function.
  13935. */
  13936. function overArg(func, transform) {
  13937. return function(arg) {
  13938. return func(transform(arg));
  13939. };
  13940. }
  13941. module.exports = overArg;
  13942. /***/ }),
  13943. /***/ "../../node_modules/lodash/_overRest.js":
  13944. /*!************************************************************!*\
  13945. !*** E:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  13946. \************************************************************/
  13947. /*! no static exports found */
  13948. /***/ (function(module, exports, __webpack_require__) {
  13949. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  13950. /* Built-in method references for those with the same name as other `lodash` methods. */
  13951. var nativeMax = Math.max;
  13952. /**
  13953. * A specialized version of `baseRest` which transforms the rest array.
  13954. *
  13955. * @private
  13956. * @param {Function} func The function to apply a rest parameter to.
  13957. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13958. * @param {Function} transform The rest array transform.
  13959. * @returns {Function} Returns the new function.
  13960. */
  13961. function overRest(func, start, transform) {
  13962. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  13963. return function() {
  13964. var args = arguments,
  13965. index = -1,
  13966. length = nativeMax(args.length - start, 0),
  13967. array = Array(length);
  13968. while (++index < length) {
  13969. array[index] = args[start + index];
  13970. }
  13971. index = -1;
  13972. var otherArgs = Array(start + 1);
  13973. while (++index < start) {
  13974. otherArgs[index] = args[index];
  13975. }
  13976. otherArgs[start] = transform(array);
  13977. return apply(func, this, otherArgs);
  13978. };
  13979. }
  13980. module.exports = overRest;
  13981. /***/ }),
  13982. /***/ "../../node_modules/lodash/_root.js":
  13983. /*!********************************************************!*\
  13984. !*** E:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  13985. \********************************************************/
  13986. /*! no static exports found */
  13987. /***/ (function(module, exports, __webpack_require__) {
  13988. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13989. /** Detect free variable `self`. */
  13990. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  13991. /** Used as a reference to the global object. */
  13992. var root = freeGlobal || freeSelf || Function('return this')();
  13993. module.exports = root;
  13994. /***/ }),
  13995. /***/ "../../node_modules/lodash/_safeGet.js":
  13996. /*!***********************************************************!*\
  13997. !*** E:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  13998. \***********************************************************/
  13999. /*! no static exports found */
  14000. /***/ (function(module, exports) {
  14001. /**
  14002. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  14003. *
  14004. * @private
  14005. * @param {Object} object The object to query.
  14006. * @param {string} key The key of the property to get.
  14007. * @returns {*} Returns the property value.
  14008. */
  14009. function safeGet(object, key) {
  14010. if (key === 'constructor' && typeof object[key] === 'function') {
  14011. return;
  14012. }
  14013. if (key == '__proto__') {
  14014. return;
  14015. }
  14016. return object[key];
  14017. }
  14018. module.exports = safeGet;
  14019. /***/ }),
  14020. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  14021. /*!***************************************************************!*\
  14022. !*** E:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  14023. \***************************************************************/
  14024. /*! no static exports found */
  14025. /***/ (function(module, exports) {
  14026. /** Used to stand-in for `undefined` hash values. */
  14027. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  14028. /**
  14029. * Adds `value` to the array cache.
  14030. *
  14031. * @private
  14032. * @name add
  14033. * @memberOf SetCache
  14034. * @alias push
  14035. * @param {*} value The value to cache.
  14036. * @returns {Object} Returns the cache instance.
  14037. */
  14038. function setCacheAdd(value) {
  14039. this.__data__.set(value, HASH_UNDEFINED);
  14040. return this;
  14041. }
  14042. module.exports = setCacheAdd;
  14043. /***/ }),
  14044. /***/ "../../node_modules/lodash/_setCacheHas.js":
  14045. /*!***************************************************************!*\
  14046. !*** E:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  14047. \***************************************************************/
  14048. /*! no static exports found */
  14049. /***/ (function(module, exports) {
  14050. /**
  14051. * Checks if `value` is in the array cache.
  14052. *
  14053. * @private
  14054. * @name has
  14055. * @memberOf SetCache
  14056. * @param {*} value The value to search for.
  14057. * @returns {number} Returns `true` if `value` is found, else `false`.
  14058. */
  14059. function setCacheHas(value) {
  14060. return this.__data__.has(value);
  14061. }
  14062. module.exports = setCacheHas;
  14063. /***/ }),
  14064. /***/ "../../node_modules/lodash/_setToArray.js":
  14065. /*!**************************************************************!*\
  14066. !*** E:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  14067. \**************************************************************/
  14068. /*! no static exports found */
  14069. /***/ (function(module, exports) {
  14070. /**
  14071. * Converts `set` to an array of its values.
  14072. *
  14073. * @private
  14074. * @param {Object} set The set to convert.
  14075. * @returns {Array} Returns the values.
  14076. */
  14077. function setToArray(set) {
  14078. var index = -1,
  14079. result = Array(set.size);
  14080. set.forEach(function(value) {
  14081. result[++index] = value;
  14082. });
  14083. return result;
  14084. }
  14085. module.exports = setToArray;
  14086. /***/ }),
  14087. /***/ "../../node_modules/lodash/_setToString.js":
  14088. /*!***************************************************************!*\
  14089. !*** E:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  14090. \***************************************************************/
  14091. /*! no static exports found */
  14092. /***/ (function(module, exports, __webpack_require__) {
  14093. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  14094. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  14095. /**
  14096. * Sets the `toString` method of `func` to return `string`.
  14097. *
  14098. * @private
  14099. * @param {Function} func The function to modify.
  14100. * @param {Function} string The `toString` result.
  14101. * @returns {Function} Returns `func`.
  14102. */
  14103. var setToString = shortOut(baseSetToString);
  14104. module.exports = setToString;
  14105. /***/ }),
  14106. /***/ "../../node_modules/lodash/_shortOut.js":
  14107. /*!************************************************************!*\
  14108. !*** E:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  14109. \************************************************************/
  14110. /*! no static exports found */
  14111. /***/ (function(module, exports) {
  14112. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  14113. var HOT_COUNT = 800,
  14114. HOT_SPAN = 16;
  14115. /* Built-in method references for those with the same name as other `lodash` methods. */
  14116. var nativeNow = Date.now;
  14117. /**
  14118. * Creates a function that'll short out and invoke `identity` instead
  14119. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  14120. * milliseconds.
  14121. *
  14122. * @private
  14123. * @param {Function} func The function to restrict.
  14124. * @returns {Function} Returns the new shortable function.
  14125. */
  14126. function shortOut(func) {
  14127. var count = 0,
  14128. lastCalled = 0;
  14129. return function() {
  14130. var stamp = nativeNow(),
  14131. remaining = HOT_SPAN - (stamp - lastCalled);
  14132. lastCalled = stamp;
  14133. if (remaining > 0) {
  14134. if (++count >= HOT_COUNT) {
  14135. return arguments[0];
  14136. }
  14137. } else {
  14138. count = 0;
  14139. }
  14140. return func.apply(undefined, arguments);
  14141. };
  14142. }
  14143. module.exports = shortOut;
  14144. /***/ }),
  14145. /***/ "../../node_modules/lodash/_stackClear.js":
  14146. /*!**************************************************************!*\
  14147. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  14148. \**************************************************************/
  14149. /*! no static exports found */
  14150. /***/ (function(module, exports, __webpack_require__) {
  14151. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  14152. /**
  14153. * Removes all key-value entries from the stack.
  14154. *
  14155. * @private
  14156. * @name clear
  14157. * @memberOf Stack
  14158. */
  14159. function stackClear() {
  14160. this.__data__ = new ListCache;
  14161. this.size = 0;
  14162. }
  14163. module.exports = stackClear;
  14164. /***/ }),
  14165. /***/ "../../node_modules/lodash/_stackDelete.js":
  14166. /*!***************************************************************!*\
  14167. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  14168. \***************************************************************/
  14169. /*! no static exports found */
  14170. /***/ (function(module, exports) {
  14171. /**
  14172. * Removes `key` and its value from the stack.
  14173. *
  14174. * @private
  14175. * @name delete
  14176. * @memberOf Stack
  14177. * @param {string} key The key of the value to remove.
  14178. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  14179. */
  14180. function stackDelete(key) {
  14181. var data = this.__data__,
  14182. result = data['delete'](key);
  14183. this.size = data.size;
  14184. return result;
  14185. }
  14186. module.exports = stackDelete;
  14187. /***/ }),
  14188. /***/ "../../node_modules/lodash/_stackGet.js":
  14189. /*!************************************************************!*\
  14190. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  14191. \************************************************************/
  14192. /*! no static exports found */
  14193. /***/ (function(module, exports) {
  14194. /**
  14195. * Gets the stack value for `key`.
  14196. *
  14197. * @private
  14198. * @name get
  14199. * @memberOf Stack
  14200. * @param {string} key The key of the value to get.
  14201. * @returns {*} Returns the entry value.
  14202. */
  14203. function stackGet(key) {
  14204. return this.__data__.get(key);
  14205. }
  14206. module.exports = stackGet;
  14207. /***/ }),
  14208. /***/ "../../node_modules/lodash/_stackHas.js":
  14209. /*!************************************************************!*\
  14210. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  14211. \************************************************************/
  14212. /*! no static exports found */
  14213. /***/ (function(module, exports) {
  14214. /**
  14215. * Checks if a stack value for `key` exists.
  14216. *
  14217. * @private
  14218. * @name has
  14219. * @memberOf Stack
  14220. * @param {string} key The key of the entry to check.
  14221. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14222. */
  14223. function stackHas(key) {
  14224. return this.__data__.has(key);
  14225. }
  14226. module.exports = stackHas;
  14227. /***/ }),
  14228. /***/ "../../node_modules/lodash/_stackSet.js":
  14229. /*!************************************************************!*\
  14230. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  14231. \************************************************************/
  14232. /*! no static exports found */
  14233. /***/ (function(module, exports, __webpack_require__) {
  14234. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  14235. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  14236. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  14237. /** Used as the size to enable large array optimizations. */
  14238. var LARGE_ARRAY_SIZE = 200;
  14239. /**
  14240. * Sets the stack `key` to `value`.
  14241. *
  14242. * @private
  14243. * @name set
  14244. * @memberOf Stack
  14245. * @param {string} key The key of the value to set.
  14246. * @param {*} value The value to set.
  14247. * @returns {Object} Returns the stack cache instance.
  14248. */
  14249. function stackSet(key, value) {
  14250. var data = this.__data__;
  14251. if (data instanceof ListCache) {
  14252. var pairs = data.__data__;
  14253. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  14254. pairs.push([key, value]);
  14255. this.size = ++data.size;
  14256. return this;
  14257. }
  14258. data = this.__data__ = new MapCache(pairs);
  14259. }
  14260. data.set(key, value);
  14261. this.size = data.size;
  14262. return this;
  14263. }
  14264. module.exports = stackSet;
  14265. /***/ }),
  14266. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  14267. /*!*****************************************************************!*\
  14268. !*** E:/Repos/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  14269. \*****************************************************************/
  14270. /*! no static exports found */
  14271. /***/ (function(module, exports) {
  14272. /**
  14273. * A specialized version of `_.indexOf` which performs strict equality
  14274. * comparisons of values, i.e. `===`.
  14275. *
  14276. * @private
  14277. * @param {Array} array The array to inspect.
  14278. * @param {*} value The value to search for.
  14279. * @param {number} fromIndex The index to search from.
  14280. * @returns {number} Returns the index of the matched value, else `-1`.
  14281. */
  14282. function strictIndexOf(array, value, fromIndex) {
  14283. var index = fromIndex - 1,
  14284. length = array.length;
  14285. while (++index < length) {
  14286. if (array[index] === value) {
  14287. return index;
  14288. }
  14289. }
  14290. return -1;
  14291. }
  14292. module.exports = strictIndexOf;
  14293. /***/ }),
  14294. /***/ "../../node_modules/lodash/_stringSize.js":
  14295. /*!**************************************************************!*\
  14296. !*** E:/Repos/Babylon.js/node_modules/lodash/_stringSize.js ***!
  14297. \**************************************************************/
  14298. /*! no static exports found */
  14299. /***/ (function(module, exports, __webpack_require__) {
  14300. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  14301. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  14302. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  14303. /**
  14304. * Gets the number of symbols in `string`.
  14305. *
  14306. * @private
  14307. * @param {string} string The string to inspect.
  14308. * @returns {number} Returns the string size.
  14309. */
  14310. function stringSize(string) {
  14311. return hasUnicode(string)
  14312. ? unicodeSize(string)
  14313. : asciiSize(string);
  14314. }
  14315. module.exports = stringSize;
  14316. /***/ }),
  14317. /***/ "../../node_modules/lodash/_stringToPath.js":
  14318. /*!****************************************************************!*\
  14319. !*** E:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  14320. \****************************************************************/
  14321. /*! no static exports found */
  14322. /***/ (function(module, exports, __webpack_require__) {
  14323. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  14324. /** Used to match property names within property paths. */
  14325. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  14326. /** Used to match backslashes in property paths. */
  14327. var reEscapeChar = /\\(\\)?/g;
  14328. /**
  14329. * Converts `string` to a property path array.
  14330. *
  14331. * @private
  14332. * @param {string} string The string to convert.
  14333. * @returns {Array} Returns the property path array.
  14334. */
  14335. var stringToPath = memoizeCapped(function(string) {
  14336. var result = [];
  14337. if (string.charCodeAt(0) === 46 /* . */) {
  14338. result.push('');
  14339. }
  14340. string.replace(rePropName, function(match, number, quote, subString) {
  14341. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  14342. });
  14343. return result;
  14344. });
  14345. module.exports = stringToPath;
  14346. /***/ }),
  14347. /***/ "../../node_modules/lodash/_toKey.js":
  14348. /*!*********************************************************!*\
  14349. !*** E:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  14350. \*********************************************************/
  14351. /*! no static exports found */
  14352. /***/ (function(module, exports, __webpack_require__) {
  14353. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14354. /** Used as references for various `Number` constants. */
  14355. var INFINITY = 1 / 0;
  14356. /**
  14357. * Converts `value` to a string key if it's not a string or symbol.
  14358. *
  14359. * @private
  14360. * @param {*} value The value to inspect.
  14361. * @returns {string|symbol} Returns the key.
  14362. */
  14363. function toKey(value) {
  14364. if (typeof value == 'string' || isSymbol(value)) {
  14365. return value;
  14366. }
  14367. var result = (value + '');
  14368. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  14369. }
  14370. module.exports = toKey;
  14371. /***/ }),
  14372. /***/ "../../node_modules/lodash/_toSource.js":
  14373. /*!************************************************************!*\
  14374. !*** E:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  14375. \************************************************************/
  14376. /*! no static exports found */
  14377. /***/ (function(module, exports) {
  14378. /** Used for built-in method references. */
  14379. var funcProto = Function.prototype;
  14380. /** Used to resolve the decompiled source of functions. */
  14381. var funcToString = funcProto.toString;
  14382. /**
  14383. * Converts `func` to its source code.
  14384. *
  14385. * @private
  14386. * @param {Function} func The function to convert.
  14387. * @returns {string} Returns the source code.
  14388. */
  14389. function toSource(func) {
  14390. if (func != null) {
  14391. try {
  14392. return funcToString.call(func);
  14393. } catch (e) {}
  14394. try {
  14395. return (func + '');
  14396. } catch (e) {}
  14397. }
  14398. return '';
  14399. }
  14400. module.exports = toSource;
  14401. /***/ }),
  14402. /***/ "../../node_modules/lodash/_unicodeSize.js":
  14403. /*!***************************************************************!*\
  14404. !*** E:/Repos/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  14405. \***************************************************************/
  14406. /*! no static exports found */
  14407. /***/ (function(module, exports) {
  14408. /** Used to compose unicode character classes. */
  14409. var rsAstralRange = '\\ud800-\\udfff',
  14410. rsComboMarksRange = '\\u0300-\\u036f',
  14411. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  14412. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  14413. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  14414. rsVarRange = '\\ufe0e\\ufe0f';
  14415. /** Used to compose unicode capture groups. */
  14416. var rsAstral = '[' + rsAstralRange + ']',
  14417. rsCombo = '[' + rsComboRange + ']',
  14418. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  14419. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  14420. rsNonAstral = '[^' + rsAstralRange + ']',
  14421. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  14422. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  14423. rsZWJ = '\\u200d';
  14424. /** Used to compose unicode regexes. */
  14425. var reOptMod = rsModifier + '?',
  14426. rsOptVar = '[' + rsVarRange + ']?',
  14427. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  14428. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  14429. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  14430. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  14431. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  14432. /**
  14433. * Gets the size of a Unicode `string`.
  14434. *
  14435. * @private
  14436. * @param {string} string The string inspect.
  14437. * @returns {number} Returns the string size.
  14438. */
  14439. function unicodeSize(string) {
  14440. var result = reUnicode.lastIndex = 0;
  14441. while (reUnicode.test(string)) {
  14442. ++result;
  14443. }
  14444. return result;
  14445. }
  14446. module.exports = unicodeSize;
  14447. /***/ }),
  14448. /***/ "../../node_modules/lodash/clone.js":
  14449. /*!********************************************************!*\
  14450. !*** E:/Repos/Babylon.js/node_modules/lodash/clone.js ***!
  14451. \********************************************************/
  14452. /*! no static exports found */
  14453. /***/ (function(module, exports, __webpack_require__) {
  14454. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14455. /** Used to compose bitmasks for cloning. */
  14456. var CLONE_SYMBOLS_FLAG = 4;
  14457. /**
  14458. * Creates a shallow clone of `value`.
  14459. *
  14460. * **Note:** This method is loosely based on the
  14461. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  14462. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  14463. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  14464. * arrays. The own enumerable properties of `arguments` objects are cloned
  14465. * as plain objects. An empty object is returned for uncloneable values such
  14466. * as error objects, functions, DOM nodes, and WeakMaps.
  14467. *
  14468. * @static
  14469. * @memberOf _
  14470. * @since 0.1.0
  14471. * @category Lang
  14472. * @param {*} value The value to clone.
  14473. * @returns {*} Returns the cloned value.
  14474. * @see _.cloneDeep
  14475. * @example
  14476. *
  14477. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14478. *
  14479. * var shallow = _.clone(objects);
  14480. * console.log(shallow[0] === objects[0]);
  14481. * // => true
  14482. */
  14483. function clone(value) {
  14484. return baseClone(value, CLONE_SYMBOLS_FLAG);
  14485. }
  14486. module.exports = clone;
  14487. /***/ }),
  14488. /***/ "../../node_modules/lodash/cloneDeep.js":
  14489. /*!************************************************************!*\
  14490. !*** E:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  14491. \************************************************************/
  14492. /*! no static exports found */
  14493. /***/ (function(module, exports, __webpack_require__) {
  14494. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14495. /** Used to compose bitmasks for cloning. */
  14496. var CLONE_DEEP_FLAG = 1,
  14497. CLONE_SYMBOLS_FLAG = 4;
  14498. /**
  14499. * This method is like `_.clone` except that it recursively clones `value`.
  14500. *
  14501. * @static
  14502. * @memberOf _
  14503. * @since 1.0.0
  14504. * @category Lang
  14505. * @param {*} value The value to recursively clone.
  14506. * @returns {*} Returns the deep cloned value.
  14507. * @see _.clone
  14508. * @example
  14509. *
  14510. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14511. *
  14512. * var deep = _.cloneDeep(objects);
  14513. * console.log(deep[0] === objects[0]);
  14514. * // => false
  14515. */
  14516. function cloneDeep(value) {
  14517. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  14518. }
  14519. module.exports = cloneDeep;
  14520. /***/ }),
  14521. /***/ "../../node_modules/lodash/constant.js":
  14522. /*!***********************************************************!*\
  14523. !*** E:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  14524. \***********************************************************/
  14525. /*! no static exports found */
  14526. /***/ (function(module, exports) {
  14527. /**
  14528. * Creates a function that returns `value`.
  14529. *
  14530. * @static
  14531. * @memberOf _
  14532. * @since 2.4.0
  14533. * @category Util
  14534. * @param {*} value The value to return from the new function.
  14535. * @returns {Function} Returns the new constant function.
  14536. * @example
  14537. *
  14538. * var objects = _.times(2, _.constant({ 'a': 1 }));
  14539. *
  14540. * console.log(objects);
  14541. * // => [{ 'a': 1 }, { 'a': 1 }]
  14542. *
  14543. * console.log(objects[0] === objects[1]);
  14544. * // => true
  14545. */
  14546. function constant(value) {
  14547. return function() {
  14548. return value;
  14549. };
  14550. }
  14551. module.exports = constant;
  14552. /***/ }),
  14553. /***/ "../../node_modules/lodash/debounce.js":
  14554. /*!***********************************************************!*\
  14555. !*** E:/Repos/Babylon.js/node_modules/lodash/debounce.js ***!
  14556. \***********************************************************/
  14557. /*! no static exports found */
  14558. /***/ (function(module, exports, __webpack_require__) {
  14559. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  14560. now = __webpack_require__(/*! ./now */ "../../node_modules/lodash/now.js"),
  14561. toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  14562. /** Error message constants. */
  14563. var FUNC_ERROR_TEXT = 'Expected a function';
  14564. /* Built-in method references for those with the same name as other `lodash` methods. */
  14565. var nativeMax = Math.max,
  14566. nativeMin = Math.min;
  14567. /**
  14568. * Creates a debounced function that delays invoking `func` until after `wait`
  14569. * milliseconds have elapsed since the last time the debounced function was
  14570. * invoked. The debounced function comes with a `cancel` method to cancel
  14571. * delayed `func` invocations and a `flush` method to immediately invoke them.
  14572. * Provide `options` to indicate whether `func` should be invoked on the
  14573. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  14574. * with the last arguments provided to the debounced function. Subsequent
  14575. * calls to the debounced function return the result of the last `func`
  14576. * invocation.
  14577. *
  14578. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  14579. * invoked on the trailing edge of the timeout only if the debounced function
  14580. * is invoked more than once during the `wait` timeout.
  14581. *
  14582. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  14583. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  14584. *
  14585. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  14586. * for details over the differences between `_.debounce` and `_.throttle`.
  14587. *
  14588. * @static
  14589. * @memberOf _
  14590. * @since 0.1.0
  14591. * @category Function
  14592. * @param {Function} func The function to debounce.
  14593. * @param {number} [wait=0] The number of milliseconds to delay.
  14594. * @param {Object} [options={}] The options object.
  14595. * @param {boolean} [options.leading=false]
  14596. * Specify invoking on the leading edge of the timeout.
  14597. * @param {number} [options.maxWait]
  14598. * The maximum time `func` is allowed to be delayed before it's invoked.
  14599. * @param {boolean} [options.trailing=true]
  14600. * Specify invoking on the trailing edge of the timeout.
  14601. * @returns {Function} Returns the new debounced function.
  14602. * @example
  14603. *
  14604. * // Avoid costly calculations while the window size is in flux.
  14605. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  14606. *
  14607. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  14608. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  14609. * 'leading': true,
  14610. * 'trailing': false
  14611. * }));
  14612. *
  14613. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  14614. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  14615. * var source = new EventSource('/stream');
  14616. * jQuery(source).on('message', debounced);
  14617. *
  14618. * // Cancel the trailing debounced invocation.
  14619. * jQuery(window).on('popstate', debounced.cancel);
  14620. */
  14621. function debounce(func, wait, options) {
  14622. var lastArgs,
  14623. lastThis,
  14624. maxWait,
  14625. result,
  14626. timerId,
  14627. lastCallTime,
  14628. lastInvokeTime = 0,
  14629. leading = false,
  14630. maxing = false,
  14631. trailing = true;
  14632. if (typeof func != 'function') {
  14633. throw new TypeError(FUNC_ERROR_TEXT);
  14634. }
  14635. wait = toNumber(wait) || 0;
  14636. if (isObject(options)) {
  14637. leading = !!options.leading;
  14638. maxing = 'maxWait' in options;
  14639. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  14640. trailing = 'trailing' in options ? !!options.trailing : trailing;
  14641. }
  14642. function invokeFunc(time) {
  14643. var args = lastArgs,
  14644. thisArg = lastThis;
  14645. lastArgs = lastThis = undefined;
  14646. lastInvokeTime = time;
  14647. result = func.apply(thisArg, args);
  14648. return result;
  14649. }
  14650. function leadingEdge(time) {
  14651. // Reset any `maxWait` timer.
  14652. lastInvokeTime = time;
  14653. // Start the timer for the trailing edge.
  14654. timerId = setTimeout(timerExpired, wait);
  14655. // Invoke the leading edge.
  14656. return leading ? invokeFunc(time) : result;
  14657. }
  14658. function remainingWait(time) {
  14659. var timeSinceLastCall = time - lastCallTime,
  14660. timeSinceLastInvoke = time - lastInvokeTime,
  14661. timeWaiting = wait - timeSinceLastCall;
  14662. return maxing
  14663. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  14664. : timeWaiting;
  14665. }
  14666. function shouldInvoke(time) {
  14667. var timeSinceLastCall = time - lastCallTime,
  14668. timeSinceLastInvoke = time - lastInvokeTime;
  14669. // Either this is the first call, activity has stopped and we're at the
  14670. // trailing edge, the system time has gone backwards and we're treating
  14671. // it as the trailing edge, or we've hit the `maxWait` limit.
  14672. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  14673. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  14674. }
  14675. function timerExpired() {
  14676. var time = now();
  14677. if (shouldInvoke(time)) {
  14678. return trailingEdge(time);
  14679. }
  14680. // Restart the timer.
  14681. timerId = setTimeout(timerExpired, remainingWait(time));
  14682. }
  14683. function trailingEdge(time) {
  14684. timerId = undefined;
  14685. // Only invoke if we have `lastArgs` which means `func` has been
  14686. // debounced at least once.
  14687. if (trailing && lastArgs) {
  14688. return invokeFunc(time);
  14689. }
  14690. lastArgs = lastThis = undefined;
  14691. return result;
  14692. }
  14693. function cancel() {
  14694. if (timerId !== undefined) {
  14695. clearTimeout(timerId);
  14696. }
  14697. lastInvokeTime = 0;
  14698. lastArgs = lastCallTime = lastThis = timerId = undefined;
  14699. }
  14700. function flush() {
  14701. return timerId === undefined ? result : trailingEdge(now());
  14702. }
  14703. function debounced() {
  14704. var time = now(),
  14705. isInvoking = shouldInvoke(time);
  14706. lastArgs = arguments;
  14707. lastThis = this;
  14708. lastCallTime = time;
  14709. if (isInvoking) {
  14710. if (timerId === undefined) {
  14711. return leadingEdge(lastCallTime);
  14712. }
  14713. if (maxing) {
  14714. // Handle invocations in a tight loop.
  14715. clearTimeout(timerId);
  14716. timerId = setTimeout(timerExpired, wait);
  14717. return invokeFunc(lastCallTime);
  14718. }
  14719. }
  14720. if (timerId === undefined) {
  14721. timerId = setTimeout(timerExpired, wait);
  14722. }
  14723. return result;
  14724. }
  14725. debounced.cancel = cancel;
  14726. debounced.flush = flush;
  14727. return debounced;
  14728. }
  14729. module.exports = debounce;
  14730. /***/ }),
  14731. /***/ "../../node_modules/lodash/defaults.js":
  14732. /*!***********************************************************!*\
  14733. !*** E:/Repos/Babylon.js/node_modules/lodash/defaults.js ***!
  14734. \***********************************************************/
  14735. /*! no static exports found */
  14736. /***/ (function(module, exports, __webpack_require__) {
  14737. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  14738. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  14739. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  14740. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14741. /** Used for built-in method references. */
  14742. var objectProto = Object.prototype;
  14743. /** Used to check objects for own properties. */
  14744. var hasOwnProperty = objectProto.hasOwnProperty;
  14745. /**
  14746. * Assigns own and inherited enumerable string keyed properties of source
  14747. * objects to the destination object for all destination properties that
  14748. * resolve to `undefined`. Source objects are applied from left to right.
  14749. * Once a property is set, additional values of the same property are ignored.
  14750. *
  14751. * **Note:** This method mutates `object`.
  14752. *
  14753. * @static
  14754. * @since 0.1.0
  14755. * @memberOf _
  14756. * @category Object
  14757. * @param {Object} object The destination object.
  14758. * @param {...Object} [sources] The source objects.
  14759. * @returns {Object} Returns `object`.
  14760. * @see _.defaultsDeep
  14761. * @example
  14762. *
  14763. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  14764. * // => { 'a': 1, 'b': 2 }
  14765. */
  14766. var defaults = baseRest(function(object, sources) {
  14767. object = Object(object);
  14768. var index = -1;
  14769. var length = sources.length;
  14770. var guard = length > 2 ? sources[2] : undefined;
  14771. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  14772. length = 1;
  14773. }
  14774. while (++index < length) {
  14775. var source = sources[index];
  14776. var props = keysIn(source);
  14777. var propsIndex = -1;
  14778. var propsLength = props.length;
  14779. while (++propsIndex < propsLength) {
  14780. var key = props[propsIndex];
  14781. var value = object[key];
  14782. if (value === undefined ||
  14783. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  14784. object[key] = source[key];
  14785. }
  14786. }
  14787. }
  14788. return object;
  14789. });
  14790. module.exports = defaults;
  14791. /***/ }),
  14792. /***/ "../../node_modules/lodash/each.js":
  14793. /*!*******************************************************!*\
  14794. !*** E:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  14795. \*******************************************************/
  14796. /*! no static exports found */
  14797. /***/ (function(module, exports, __webpack_require__) {
  14798. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  14799. /***/ }),
  14800. /***/ "../../node_modules/lodash/eq.js":
  14801. /*!*****************************************************!*\
  14802. !*** E:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  14803. \*****************************************************/
  14804. /*! no static exports found */
  14805. /***/ (function(module, exports) {
  14806. /**
  14807. * Performs a
  14808. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14809. * comparison between two values to determine if they are equivalent.
  14810. *
  14811. * @static
  14812. * @memberOf _
  14813. * @since 4.0.0
  14814. * @category Lang
  14815. * @param {*} value The value to compare.
  14816. * @param {*} other The other value to compare.
  14817. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  14818. * @example
  14819. *
  14820. * var object = { 'a': 1 };
  14821. * var other = { 'a': 1 };
  14822. *
  14823. * _.eq(object, object);
  14824. * // => true
  14825. *
  14826. * _.eq(object, other);
  14827. * // => false
  14828. *
  14829. * _.eq('a', 'a');
  14830. * // => true
  14831. *
  14832. * _.eq('a', Object('a'));
  14833. * // => false
  14834. *
  14835. * _.eq(NaN, NaN);
  14836. * // => true
  14837. */
  14838. function eq(value, other) {
  14839. return value === other || (value !== value && other !== other);
  14840. }
  14841. module.exports = eq;
  14842. /***/ }),
  14843. /***/ "../../node_modules/lodash/filter.js":
  14844. /*!*********************************************************!*\
  14845. !*** E:/Repos/Babylon.js/node_modules/lodash/filter.js ***!
  14846. \*********************************************************/
  14847. /*! no static exports found */
  14848. /***/ (function(module, exports, __webpack_require__) {
  14849. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  14850. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  14851. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14852. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14853. /**
  14854. * Iterates over elements of `collection`, returning an array of all elements
  14855. * `predicate` returns truthy for. The predicate is invoked with three
  14856. * arguments: (value, index|key, collection).
  14857. *
  14858. * **Note:** Unlike `_.remove`, this method returns a new array.
  14859. *
  14860. * @static
  14861. * @memberOf _
  14862. * @since 0.1.0
  14863. * @category Collection
  14864. * @param {Array|Object} collection The collection to iterate over.
  14865. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14866. * @returns {Array} Returns the new filtered array.
  14867. * @see _.reject
  14868. * @example
  14869. *
  14870. * var users = [
  14871. * { 'user': 'barney', 'age': 36, 'active': true },
  14872. * { 'user': 'fred', 'age': 40, 'active': false }
  14873. * ];
  14874. *
  14875. * _.filter(users, function(o) { return !o.active; });
  14876. * // => objects for ['fred']
  14877. *
  14878. * // The `_.matches` iteratee shorthand.
  14879. * _.filter(users, { 'age': 36, 'active': true });
  14880. * // => objects for ['barney']
  14881. *
  14882. * // The `_.matchesProperty` iteratee shorthand.
  14883. * _.filter(users, ['active', false]);
  14884. * // => objects for ['fred']
  14885. *
  14886. * // The `_.property` iteratee shorthand.
  14887. * _.filter(users, 'active');
  14888. * // => objects for ['barney']
  14889. */
  14890. function filter(collection, predicate) {
  14891. var func = isArray(collection) ? arrayFilter : baseFilter;
  14892. return func(collection, baseIteratee(predicate, 3));
  14893. }
  14894. module.exports = filter;
  14895. /***/ }),
  14896. /***/ "../../node_modules/lodash/find.js":
  14897. /*!*******************************************************!*\
  14898. !*** E:/Repos/Babylon.js/node_modules/lodash/find.js ***!
  14899. \*******************************************************/
  14900. /*! no static exports found */
  14901. /***/ (function(module, exports, __webpack_require__) {
  14902. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  14903. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  14904. /**
  14905. * Iterates over elements of `collection`, returning the first element
  14906. * `predicate` returns truthy for. The predicate is invoked with three
  14907. * arguments: (value, index|key, collection).
  14908. *
  14909. * @static
  14910. * @memberOf _
  14911. * @since 0.1.0
  14912. * @category Collection
  14913. * @param {Array|Object} collection The collection to inspect.
  14914. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14915. * @param {number} [fromIndex=0] The index to search from.
  14916. * @returns {*} Returns the matched element, else `undefined`.
  14917. * @example
  14918. *
  14919. * var users = [
  14920. * { 'user': 'barney', 'age': 36, 'active': true },
  14921. * { 'user': 'fred', 'age': 40, 'active': false },
  14922. * { 'user': 'pebbles', 'age': 1, 'active': true }
  14923. * ];
  14924. *
  14925. * _.find(users, function(o) { return o.age < 40; });
  14926. * // => object for 'barney'
  14927. *
  14928. * // The `_.matches` iteratee shorthand.
  14929. * _.find(users, { 'age': 1, 'active': true });
  14930. * // => object for 'pebbles'
  14931. *
  14932. * // The `_.matchesProperty` iteratee shorthand.
  14933. * _.find(users, ['active', false]);
  14934. * // => object for 'fred'
  14935. *
  14936. * // The `_.property` iteratee shorthand.
  14937. * _.find(users, 'active');
  14938. * // => object for 'barney'
  14939. */
  14940. var find = createFind(findIndex);
  14941. module.exports = find;
  14942. /***/ }),
  14943. /***/ "../../node_modules/lodash/findIndex.js":
  14944. /*!************************************************************!*\
  14945. !*** E:/Repos/Babylon.js/node_modules/lodash/findIndex.js ***!
  14946. \************************************************************/
  14947. /*! no static exports found */
  14948. /***/ (function(module, exports, __webpack_require__) {
  14949. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  14950. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14951. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  14952. /* Built-in method references for those with the same name as other `lodash` methods. */
  14953. var nativeMax = Math.max;
  14954. /**
  14955. * This method is like `_.find` except that it returns the index of the first
  14956. * element `predicate` returns truthy for instead of the element itself.
  14957. *
  14958. * @static
  14959. * @memberOf _
  14960. * @since 1.1.0
  14961. * @category Array
  14962. * @param {Array} array The array to inspect.
  14963. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14964. * @param {number} [fromIndex=0] The index to search from.
  14965. * @returns {number} Returns the index of the found element, else `-1`.
  14966. * @example
  14967. *
  14968. * var users = [
  14969. * { 'user': 'barney', 'active': false },
  14970. * { 'user': 'fred', 'active': false },
  14971. * { 'user': 'pebbles', 'active': true }
  14972. * ];
  14973. *
  14974. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  14975. * // => 0
  14976. *
  14977. * // The `_.matches` iteratee shorthand.
  14978. * _.findIndex(users, { 'user': 'fred', 'active': false });
  14979. * // => 1
  14980. *
  14981. * // The `_.matchesProperty` iteratee shorthand.
  14982. * _.findIndex(users, ['active', false]);
  14983. * // => 0
  14984. *
  14985. * // The `_.property` iteratee shorthand.
  14986. * _.findIndex(users, 'active');
  14987. * // => 2
  14988. */
  14989. function findIndex(array, predicate, fromIndex) {
  14990. var length = array == null ? 0 : array.length;
  14991. if (!length) {
  14992. return -1;
  14993. }
  14994. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  14995. if (index < 0) {
  14996. index = nativeMax(length + index, 0);
  14997. }
  14998. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  14999. }
  15000. module.exports = findIndex;
  15001. /***/ }),
  15002. /***/ "../../node_modules/lodash/flatten.js":
  15003. /*!**********************************************************!*\
  15004. !*** E:/Repos/Babylon.js/node_modules/lodash/flatten.js ***!
  15005. \**********************************************************/
  15006. /*! no static exports found */
  15007. /***/ (function(module, exports, __webpack_require__) {
  15008. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  15009. /**
  15010. * Flattens `array` a single level deep.
  15011. *
  15012. * @static
  15013. * @memberOf _
  15014. * @since 0.1.0
  15015. * @category Array
  15016. * @param {Array} array The array to flatten.
  15017. * @returns {Array} Returns the new flattened array.
  15018. * @example
  15019. *
  15020. * _.flatten([1, [2, [3, [4]], 5]]);
  15021. * // => [1, 2, [3, [4]], 5]
  15022. */
  15023. function flatten(array) {
  15024. var length = array == null ? 0 : array.length;
  15025. return length ? baseFlatten(array, 1) : [];
  15026. }
  15027. module.exports = flatten;
  15028. /***/ }),
  15029. /***/ "../../node_modules/lodash/forEach.js":
  15030. /*!**********************************************************!*\
  15031. !*** E:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  15032. \**********************************************************/
  15033. /*! no static exports found */
  15034. /***/ (function(module, exports, __webpack_require__) {
  15035. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  15036. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  15037. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  15038. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  15039. /**
  15040. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  15041. * The iteratee is invoked with three arguments: (value, index|key, collection).
  15042. * Iteratee functions may exit iteration early by explicitly returning `false`.
  15043. *
  15044. * **Note:** As with other "Collections" methods, objects with a "length"
  15045. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  15046. * or `_.forOwn` for object iteration.
  15047. *
  15048. * @static
  15049. * @memberOf _
  15050. * @since 0.1.0
  15051. * @alias each
  15052. * @category Collection
  15053. * @param {Array|Object} collection The collection to iterate over.
  15054. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15055. * @returns {Array|Object} Returns `collection`.
  15056. * @see _.forEachRight
  15057. * @example
  15058. *
  15059. * _.forEach([1, 2], function(value) {
  15060. * console.log(value);
  15061. * });
  15062. * // => Logs `1` then `2`.
  15063. *
  15064. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  15065. * console.log(key);
  15066. * });
  15067. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  15068. */
  15069. function forEach(collection, iteratee) {
  15070. var func = isArray(collection) ? arrayEach : baseEach;
  15071. return func(collection, castFunction(iteratee));
  15072. }
  15073. module.exports = forEach;
  15074. /***/ }),
  15075. /***/ "../../node_modules/lodash/forIn.js":
  15076. /*!********************************************************!*\
  15077. !*** E:/Repos/Babylon.js/node_modules/lodash/forIn.js ***!
  15078. \********************************************************/
  15079. /*! no static exports found */
  15080. /***/ (function(module, exports, __webpack_require__) {
  15081. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  15082. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  15083. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  15084. /**
  15085. * Iterates over own and inherited enumerable string keyed properties of an
  15086. * object and invokes `iteratee` for each property. The iteratee is invoked
  15087. * with three arguments: (value, key, object). Iteratee functions may exit
  15088. * iteration early by explicitly returning `false`.
  15089. *
  15090. * @static
  15091. * @memberOf _
  15092. * @since 0.3.0
  15093. * @category Object
  15094. * @param {Object} object The object to iterate over.
  15095. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15096. * @returns {Object} Returns `object`.
  15097. * @see _.forInRight
  15098. * @example
  15099. *
  15100. * function Foo() {
  15101. * this.a = 1;
  15102. * this.b = 2;
  15103. * }
  15104. *
  15105. * Foo.prototype.c = 3;
  15106. *
  15107. * _.forIn(new Foo, function(value, key) {
  15108. * console.log(key);
  15109. * });
  15110. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  15111. */
  15112. function forIn(object, iteratee) {
  15113. return object == null
  15114. ? object
  15115. : baseFor(object, castFunction(iteratee), keysIn);
  15116. }
  15117. module.exports = forIn;
  15118. /***/ }),
  15119. /***/ "../../node_modules/lodash/forOwn.js":
  15120. /*!*********************************************************!*\
  15121. !*** E:/Repos/Babylon.js/node_modules/lodash/forOwn.js ***!
  15122. \*********************************************************/
  15123. /*! no static exports found */
  15124. /***/ (function(module, exports, __webpack_require__) {
  15125. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  15126. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js");
  15127. /**
  15128. * Iterates over own enumerable string keyed properties of an object and
  15129. * invokes `iteratee` for each property. The iteratee is invoked with three
  15130. * arguments: (value, key, object). Iteratee functions may exit iteration
  15131. * early by explicitly returning `false`.
  15132. *
  15133. * @static
  15134. * @memberOf _
  15135. * @since 0.3.0
  15136. * @category Object
  15137. * @param {Object} object The object to iterate over.
  15138. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15139. * @returns {Object} Returns `object`.
  15140. * @see _.forOwnRight
  15141. * @example
  15142. *
  15143. * function Foo() {
  15144. * this.a = 1;
  15145. * this.b = 2;
  15146. * }
  15147. *
  15148. * Foo.prototype.c = 3;
  15149. *
  15150. * _.forOwn(new Foo, function(value, key) {
  15151. * console.log(key);
  15152. * });
  15153. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  15154. */
  15155. function forOwn(object, iteratee) {
  15156. return object && baseForOwn(object, castFunction(iteratee));
  15157. }
  15158. module.exports = forOwn;
  15159. /***/ }),
  15160. /***/ "../../node_modules/lodash/get.js":
  15161. /*!******************************************************!*\
  15162. !*** E:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  15163. \******************************************************/
  15164. /*! no static exports found */
  15165. /***/ (function(module, exports, __webpack_require__) {
  15166. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  15167. /**
  15168. * Gets the value at `path` of `object`. If the resolved value is
  15169. * `undefined`, the `defaultValue` is returned in its place.
  15170. *
  15171. * @static
  15172. * @memberOf _
  15173. * @since 3.7.0
  15174. * @category Object
  15175. * @param {Object} object The object to query.
  15176. * @param {Array|string} path The path of the property to get.
  15177. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  15178. * @returns {*} Returns the resolved value.
  15179. * @example
  15180. *
  15181. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  15182. *
  15183. * _.get(object, 'a[0].b.c');
  15184. * // => 3
  15185. *
  15186. * _.get(object, ['a', '0', 'b', 'c']);
  15187. * // => 3
  15188. *
  15189. * _.get(object, 'a.b.c', 'default');
  15190. * // => 'default'
  15191. */
  15192. function get(object, path, defaultValue) {
  15193. var result = object == null ? undefined : baseGet(object, path);
  15194. return result === undefined ? defaultValue : result;
  15195. }
  15196. module.exports = get;
  15197. /***/ }),
  15198. /***/ "../../node_modules/lodash/has.js":
  15199. /*!******************************************************!*\
  15200. !*** E:/Repos/Babylon.js/node_modules/lodash/has.js ***!
  15201. \******************************************************/
  15202. /*! no static exports found */
  15203. /***/ (function(module, exports, __webpack_require__) {
  15204. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  15205. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  15206. /**
  15207. * Checks if `path` is a direct property of `object`.
  15208. *
  15209. * @static
  15210. * @since 0.1.0
  15211. * @memberOf _
  15212. * @category Object
  15213. * @param {Object} object The object to query.
  15214. * @param {Array|string} path The path to check.
  15215. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  15216. * @example
  15217. *
  15218. * var object = { 'a': { 'b': 2 } };
  15219. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  15220. *
  15221. * _.has(object, 'a');
  15222. * // => true
  15223. *
  15224. * _.has(object, 'a.b');
  15225. * // => true
  15226. *
  15227. * _.has(object, ['a', 'b']);
  15228. * // => true
  15229. *
  15230. * _.has(other, 'a');
  15231. * // => false
  15232. */
  15233. function has(object, path) {
  15234. return object != null && hasPath(object, path, baseHas);
  15235. }
  15236. module.exports = has;
  15237. /***/ }),
  15238. /***/ "../../node_modules/lodash/hasIn.js":
  15239. /*!********************************************************!*\
  15240. !*** E:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  15241. \********************************************************/
  15242. /*! no static exports found */
  15243. /***/ (function(module, exports, __webpack_require__) {
  15244. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  15245. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  15246. /**
  15247. * Checks if `path` is a direct or inherited property of `object`.
  15248. *
  15249. * @static
  15250. * @memberOf _
  15251. * @since 4.0.0
  15252. * @category Object
  15253. * @param {Object} object The object to query.
  15254. * @param {Array|string} path The path to check.
  15255. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  15256. * @example
  15257. *
  15258. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  15259. *
  15260. * _.hasIn(object, 'a');
  15261. * // => true
  15262. *
  15263. * _.hasIn(object, 'a.b');
  15264. * // => true
  15265. *
  15266. * _.hasIn(object, ['a', 'b']);
  15267. * // => true
  15268. *
  15269. * _.hasIn(object, 'b');
  15270. * // => false
  15271. */
  15272. function hasIn(object, path) {
  15273. return object != null && hasPath(object, path, baseHasIn);
  15274. }
  15275. module.exports = hasIn;
  15276. /***/ }),
  15277. /***/ "../../node_modules/lodash/identity.js":
  15278. /*!***********************************************************!*\
  15279. !*** E:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  15280. \***********************************************************/
  15281. /*! no static exports found */
  15282. /***/ (function(module, exports) {
  15283. /**
  15284. * This method returns the first argument it receives.
  15285. *
  15286. * @static
  15287. * @since 0.1.0
  15288. * @memberOf _
  15289. * @category Util
  15290. * @param {*} value Any value.
  15291. * @returns {*} Returns `value`.
  15292. * @example
  15293. *
  15294. * var object = { 'a': 1 };
  15295. *
  15296. * console.log(_.identity(object) === object);
  15297. * // => true
  15298. */
  15299. function identity(value) {
  15300. return value;
  15301. }
  15302. module.exports = identity;
  15303. /***/ }),
  15304. /***/ "../../node_modules/lodash/isArguments.js":
  15305. /*!**************************************************************!*\
  15306. !*** E:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  15307. \**************************************************************/
  15308. /*! no static exports found */
  15309. /***/ (function(module, exports, __webpack_require__) {
  15310. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  15311. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15312. /** Used for built-in method references. */
  15313. var objectProto = Object.prototype;
  15314. /** Used to check objects for own properties. */
  15315. var hasOwnProperty = objectProto.hasOwnProperty;
  15316. /** Built-in value references. */
  15317. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  15318. /**
  15319. * Checks if `value` is likely an `arguments` object.
  15320. *
  15321. * @static
  15322. * @memberOf _
  15323. * @since 0.1.0
  15324. * @category Lang
  15325. * @param {*} value The value to check.
  15326. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15327. * else `false`.
  15328. * @example
  15329. *
  15330. * _.isArguments(function() { return arguments; }());
  15331. * // => true
  15332. *
  15333. * _.isArguments([1, 2, 3]);
  15334. * // => false
  15335. */
  15336. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15337. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15338. !propertyIsEnumerable.call(value, 'callee');
  15339. };
  15340. module.exports = isArguments;
  15341. /***/ }),
  15342. /***/ "../../node_modules/lodash/isArray.js":
  15343. /*!**********************************************************!*\
  15344. !*** E:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  15345. \**********************************************************/
  15346. /*! no static exports found */
  15347. /***/ (function(module, exports) {
  15348. /**
  15349. * Checks if `value` is classified as an `Array` object.
  15350. *
  15351. * @static
  15352. * @memberOf _
  15353. * @since 0.1.0
  15354. * @category Lang
  15355. * @param {*} value The value to check.
  15356. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15357. * @example
  15358. *
  15359. * _.isArray([1, 2, 3]);
  15360. * // => true
  15361. *
  15362. * _.isArray(document.body.children);
  15363. * // => false
  15364. *
  15365. * _.isArray('abc');
  15366. * // => false
  15367. *
  15368. * _.isArray(_.noop);
  15369. * // => false
  15370. */
  15371. var isArray = Array.isArray;
  15372. module.exports = isArray;
  15373. /***/ }),
  15374. /***/ "../../node_modules/lodash/isArrayLike.js":
  15375. /*!**************************************************************!*\
  15376. !*** E:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  15377. \**************************************************************/
  15378. /*! no static exports found */
  15379. /***/ (function(module, exports, __webpack_require__) {
  15380. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15381. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  15382. /**
  15383. * Checks if `value` is array-like. A value is considered array-like if it's
  15384. * not a function and has a `value.length` that's an integer greater than or
  15385. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15386. *
  15387. * @static
  15388. * @memberOf _
  15389. * @since 4.0.0
  15390. * @category Lang
  15391. * @param {*} value The value to check.
  15392. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15393. * @example
  15394. *
  15395. * _.isArrayLike([1, 2, 3]);
  15396. * // => true
  15397. *
  15398. * _.isArrayLike(document.body.children);
  15399. * // => true
  15400. *
  15401. * _.isArrayLike('abc');
  15402. * // => true
  15403. *
  15404. * _.isArrayLike(_.noop);
  15405. * // => false
  15406. */
  15407. function isArrayLike(value) {
  15408. return value != null && isLength(value.length) && !isFunction(value);
  15409. }
  15410. module.exports = isArrayLike;
  15411. /***/ }),
  15412. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  15413. /*!********************************************************************!*\
  15414. !*** E:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  15415. \********************************************************************/
  15416. /*! no static exports found */
  15417. /***/ (function(module, exports, __webpack_require__) {
  15418. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15419. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15420. /**
  15421. * This method is like `_.isArrayLike` except that it also checks if `value`
  15422. * is an object.
  15423. *
  15424. * @static
  15425. * @memberOf _
  15426. * @since 4.0.0
  15427. * @category Lang
  15428. * @param {*} value The value to check.
  15429. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15430. * else `false`.
  15431. * @example
  15432. *
  15433. * _.isArrayLikeObject([1, 2, 3]);
  15434. * // => true
  15435. *
  15436. * _.isArrayLikeObject(document.body.children);
  15437. * // => true
  15438. *
  15439. * _.isArrayLikeObject('abc');
  15440. * // => false
  15441. *
  15442. * _.isArrayLikeObject(_.noop);
  15443. * // => false
  15444. */
  15445. function isArrayLikeObject(value) {
  15446. return isObjectLike(value) && isArrayLike(value);
  15447. }
  15448. module.exports = isArrayLikeObject;
  15449. /***/ }),
  15450. /***/ "../../node_modules/lodash/isBuffer.js":
  15451. /*!***********************************************************!*\
  15452. !*** E:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  15453. \***********************************************************/
  15454. /*! no static exports found */
  15455. /***/ (function(module, exports, __webpack_require__) {
  15456. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  15457. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  15458. /** Detect free variable `exports`. */
  15459. var freeExports = true && exports && !exports.nodeType && exports;
  15460. /** Detect free variable `module`. */
  15461. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  15462. /** Detect the popular CommonJS extension `module.exports`. */
  15463. var moduleExports = freeModule && freeModule.exports === freeExports;
  15464. /** Built-in value references. */
  15465. var Buffer = moduleExports ? root.Buffer : undefined;
  15466. /* Built-in method references for those with the same name as other `lodash` methods. */
  15467. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  15468. /**
  15469. * Checks if `value` is a buffer.
  15470. *
  15471. * @static
  15472. * @memberOf _
  15473. * @since 4.3.0
  15474. * @category Lang
  15475. * @param {*} value The value to check.
  15476. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15477. * @example
  15478. *
  15479. * _.isBuffer(new Buffer(2));
  15480. * // => true
  15481. *
  15482. * _.isBuffer(new Uint8Array(2));
  15483. * // => false
  15484. */
  15485. var isBuffer = nativeIsBuffer || stubFalse;
  15486. module.exports = isBuffer;
  15487. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  15488. /***/ }),
  15489. /***/ "../../node_modules/lodash/isEmpty.js":
  15490. /*!**********************************************************!*\
  15491. !*** E:/Repos/Babylon.js/node_modules/lodash/isEmpty.js ***!
  15492. \**********************************************************/
  15493. /*! no static exports found */
  15494. /***/ (function(module, exports, __webpack_require__) {
  15495. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15496. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15497. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  15498. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15499. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15500. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15501. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15502. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  15503. /** `Object#toString` result references. */
  15504. var mapTag = '[object Map]',
  15505. setTag = '[object Set]';
  15506. /** Used for built-in method references. */
  15507. var objectProto = Object.prototype;
  15508. /** Used to check objects for own properties. */
  15509. var hasOwnProperty = objectProto.hasOwnProperty;
  15510. /**
  15511. * Checks if `value` is an empty object, collection, map, or set.
  15512. *
  15513. * Objects are considered empty if they have no own enumerable string keyed
  15514. * properties.
  15515. *
  15516. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  15517. * jQuery-like collections are considered empty if they have a `length` of `0`.
  15518. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  15519. *
  15520. * @static
  15521. * @memberOf _
  15522. * @since 0.1.0
  15523. * @category Lang
  15524. * @param {*} value The value to check.
  15525. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  15526. * @example
  15527. *
  15528. * _.isEmpty(null);
  15529. * // => true
  15530. *
  15531. * _.isEmpty(true);
  15532. * // => true
  15533. *
  15534. * _.isEmpty(1);
  15535. * // => true
  15536. *
  15537. * _.isEmpty([1, 2, 3]);
  15538. * // => false
  15539. *
  15540. * _.isEmpty({ 'a': 1 });
  15541. * // => false
  15542. */
  15543. function isEmpty(value) {
  15544. if (value == null) {
  15545. return true;
  15546. }
  15547. if (isArrayLike(value) &&
  15548. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  15549. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  15550. return !value.length;
  15551. }
  15552. var tag = getTag(value);
  15553. if (tag == mapTag || tag == setTag) {
  15554. return !value.size;
  15555. }
  15556. if (isPrototype(value)) {
  15557. return !baseKeys(value).length;
  15558. }
  15559. for (var key in value) {
  15560. if (hasOwnProperty.call(value, key)) {
  15561. return false;
  15562. }
  15563. }
  15564. return true;
  15565. }
  15566. module.exports = isEmpty;
  15567. /***/ }),
  15568. /***/ "../../node_modules/lodash/isFunction.js":
  15569. /*!*************************************************************!*\
  15570. !*** E:/Repos/Babylon.js/node_modules/lodash/isFunction.js ***!
  15571. \*************************************************************/
  15572. /*! no static exports found */
  15573. /***/ (function(module, exports, __webpack_require__) {
  15574. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15575. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  15576. /** `Object#toString` result references. */
  15577. var asyncTag = '[object AsyncFunction]',
  15578. funcTag = '[object Function]',
  15579. genTag = '[object GeneratorFunction]',
  15580. proxyTag = '[object Proxy]';
  15581. /**
  15582. * Checks if `value` is classified as a `Function` object.
  15583. *
  15584. * @static
  15585. * @memberOf _
  15586. * @since 0.1.0
  15587. * @category Lang
  15588. * @param {*} value The value to check.
  15589. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15590. * @example
  15591. *
  15592. * _.isFunction(_);
  15593. * // => true
  15594. *
  15595. * _.isFunction(/abc/);
  15596. * // => false
  15597. */
  15598. function isFunction(value) {
  15599. if (!isObject(value)) {
  15600. return false;
  15601. }
  15602. // The use of `Object#toString` avoids issues with the `typeof` operator
  15603. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15604. var tag = baseGetTag(value);
  15605. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15606. }
  15607. module.exports = isFunction;
  15608. /***/ }),
  15609. /***/ "../../node_modules/lodash/isLength.js":
  15610. /*!***********************************************************!*\
  15611. !*** E:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  15612. \***********************************************************/
  15613. /*! no static exports found */
  15614. /***/ (function(module, exports) {
  15615. /** Used as references for various `Number` constants. */
  15616. var MAX_SAFE_INTEGER = 9007199254740991;
  15617. /**
  15618. * Checks if `value` is a valid array-like length.
  15619. *
  15620. * **Note:** This method is loosely based on
  15621. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15622. *
  15623. * @static
  15624. * @memberOf _
  15625. * @since 4.0.0
  15626. * @category Lang
  15627. * @param {*} value The value to check.
  15628. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15629. * @example
  15630. *
  15631. * _.isLength(3);
  15632. * // => true
  15633. *
  15634. * _.isLength(Number.MIN_VALUE);
  15635. * // => false
  15636. *
  15637. * _.isLength(Infinity);
  15638. * // => false
  15639. *
  15640. * _.isLength('3');
  15641. * // => false
  15642. */
  15643. function isLength(value) {
  15644. return typeof value == 'number' &&
  15645. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15646. }
  15647. module.exports = isLength;
  15648. /***/ }),
  15649. /***/ "../../node_modules/lodash/isMap.js":
  15650. /*!********************************************************!*\
  15651. !*** E:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  15652. \********************************************************/
  15653. /*! no static exports found */
  15654. /***/ (function(module, exports, __webpack_require__) {
  15655. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  15656. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15657. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15658. /* Node.js helper references. */
  15659. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  15660. /**
  15661. * Checks if `value` is classified as a `Map` object.
  15662. *
  15663. * @static
  15664. * @memberOf _
  15665. * @since 4.3.0
  15666. * @category Lang
  15667. * @param {*} value The value to check.
  15668. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15669. * @example
  15670. *
  15671. * _.isMap(new Map);
  15672. * // => true
  15673. *
  15674. * _.isMap(new WeakMap);
  15675. * // => false
  15676. */
  15677. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15678. module.exports = isMap;
  15679. /***/ }),
  15680. /***/ "../../node_modules/lodash/isObject.js":
  15681. /*!***********************************************************!*\
  15682. !*** E:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  15683. \***********************************************************/
  15684. /*! no static exports found */
  15685. /***/ (function(module, exports) {
  15686. /**
  15687. * Checks if `value` is the
  15688. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15689. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15690. *
  15691. * @static
  15692. * @memberOf _
  15693. * @since 0.1.0
  15694. * @category Lang
  15695. * @param {*} value The value to check.
  15696. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15697. * @example
  15698. *
  15699. * _.isObject({});
  15700. * // => true
  15701. *
  15702. * _.isObject([1, 2, 3]);
  15703. * // => true
  15704. *
  15705. * _.isObject(_.noop);
  15706. * // => true
  15707. *
  15708. * _.isObject(null);
  15709. * // => false
  15710. */
  15711. function isObject(value) {
  15712. var type = typeof value;
  15713. return value != null && (type == 'object' || type == 'function');
  15714. }
  15715. module.exports = isObject;
  15716. /***/ }),
  15717. /***/ "../../node_modules/lodash/isObjectLike.js":
  15718. /*!***************************************************************!*\
  15719. !*** E:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  15720. \***************************************************************/
  15721. /*! no static exports found */
  15722. /***/ (function(module, exports) {
  15723. /**
  15724. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15725. * and has a `typeof` result of "object".
  15726. *
  15727. * @static
  15728. * @memberOf _
  15729. * @since 4.0.0
  15730. * @category Lang
  15731. * @param {*} value The value to check.
  15732. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15733. * @example
  15734. *
  15735. * _.isObjectLike({});
  15736. * // => true
  15737. *
  15738. * _.isObjectLike([1, 2, 3]);
  15739. * // => true
  15740. *
  15741. * _.isObjectLike(_.noop);
  15742. * // => false
  15743. *
  15744. * _.isObjectLike(null);
  15745. * // => false
  15746. */
  15747. function isObjectLike(value) {
  15748. return value != null && typeof value == 'object';
  15749. }
  15750. module.exports = isObjectLike;
  15751. /***/ }),
  15752. /***/ "../../node_modules/lodash/isPlainObject.js":
  15753. /*!****************************************************************!*\
  15754. !*** E:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  15755. \****************************************************************/
  15756. /*! no static exports found */
  15757. /***/ (function(module, exports, __webpack_require__) {
  15758. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15759. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  15760. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15761. /** `Object#toString` result references. */
  15762. var objectTag = '[object Object]';
  15763. /** Used for built-in method references. */
  15764. var funcProto = Function.prototype,
  15765. objectProto = Object.prototype;
  15766. /** Used to resolve the decompiled source of functions. */
  15767. var funcToString = funcProto.toString;
  15768. /** Used to check objects for own properties. */
  15769. var hasOwnProperty = objectProto.hasOwnProperty;
  15770. /** Used to infer the `Object` constructor. */
  15771. var objectCtorString = funcToString.call(Object);
  15772. /**
  15773. * Checks if `value` is a plain object, that is, an object created by the
  15774. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  15775. *
  15776. * @static
  15777. * @memberOf _
  15778. * @since 0.8.0
  15779. * @category Lang
  15780. * @param {*} value The value to check.
  15781. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  15782. * @example
  15783. *
  15784. * function Foo() {
  15785. * this.a = 1;
  15786. * }
  15787. *
  15788. * _.isPlainObject(new Foo);
  15789. * // => false
  15790. *
  15791. * _.isPlainObject([1, 2, 3]);
  15792. * // => false
  15793. *
  15794. * _.isPlainObject({ 'x': 0, 'y': 0 });
  15795. * // => true
  15796. *
  15797. * _.isPlainObject(Object.create(null));
  15798. * // => true
  15799. */
  15800. function isPlainObject(value) {
  15801. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  15802. return false;
  15803. }
  15804. var proto = getPrototype(value);
  15805. if (proto === null) {
  15806. return true;
  15807. }
  15808. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  15809. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  15810. funcToString.call(Ctor) == objectCtorString;
  15811. }
  15812. module.exports = isPlainObject;
  15813. /***/ }),
  15814. /***/ "../../node_modules/lodash/isSet.js":
  15815. /*!********************************************************!*\
  15816. !*** E:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  15817. \********************************************************/
  15818. /*! no static exports found */
  15819. /***/ (function(module, exports, __webpack_require__) {
  15820. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  15821. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15822. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15823. /* Node.js helper references. */
  15824. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  15825. /**
  15826. * Checks if `value` is classified as a `Set` object.
  15827. *
  15828. * @static
  15829. * @memberOf _
  15830. * @since 4.3.0
  15831. * @category Lang
  15832. * @param {*} value The value to check.
  15833. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15834. * @example
  15835. *
  15836. * _.isSet(new Set);
  15837. * // => true
  15838. *
  15839. * _.isSet(new WeakSet);
  15840. * // => false
  15841. */
  15842. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  15843. module.exports = isSet;
  15844. /***/ }),
  15845. /***/ "../../node_modules/lodash/isString.js":
  15846. /*!***********************************************************!*\
  15847. !*** E:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  15848. \***********************************************************/
  15849. /*! no static exports found */
  15850. /***/ (function(module, exports, __webpack_require__) {
  15851. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15852. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15853. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15854. /** `Object#toString` result references. */
  15855. var stringTag = '[object String]';
  15856. /**
  15857. * Checks if `value` is classified as a `String` primitive or object.
  15858. *
  15859. * @static
  15860. * @since 0.1.0
  15861. * @memberOf _
  15862. * @category Lang
  15863. * @param {*} value The value to check.
  15864. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  15865. * @example
  15866. *
  15867. * _.isString('abc');
  15868. * // => true
  15869. *
  15870. * _.isString(1);
  15871. * // => false
  15872. */
  15873. function isString(value) {
  15874. return typeof value == 'string' ||
  15875. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  15876. }
  15877. module.exports = isString;
  15878. /***/ }),
  15879. /***/ "../../node_modules/lodash/isSymbol.js":
  15880. /*!***********************************************************!*\
  15881. !*** E:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  15882. \***********************************************************/
  15883. /*! no static exports found */
  15884. /***/ (function(module, exports, __webpack_require__) {
  15885. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15886. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15887. /** `Object#toString` result references. */
  15888. var symbolTag = '[object Symbol]';
  15889. /**
  15890. * Checks if `value` is classified as a `Symbol` primitive or object.
  15891. *
  15892. * @static
  15893. * @memberOf _
  15894. * @since 4.0.0
  15895. * @category Lang
  15896. * @param {*} value The value to check.
  15897. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  15898. * @example
  15899. *
  15900. * _.isSymbol(Symbol.iterator);
  15901. * // => true
  15902. *
  15903. * _.isSymbol('abc');
  15904. * // => false
  15905. */
  15906. function isSymbol(value) {
  15907. return typeof value == 'symbol' ||
  15908. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  15909. }
  15910. module.exports = isSymbol;
  15911. /***/ }),
  15912. /***/ "../../node_modules/lodash/isTypedArray.js":
  15913. /*!***************************************************************!*\
  15914. !*** E:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  15915. \***************************************************************/
  15916. /*! no static exports found */
  15917. /***/ (function(module, exports, __webpack_require__) {
  15918. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  15919. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15920. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15921. /* Node.js helper references. */
  15922. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  15923. /**
  15924. * Checks if `value` is classified as a typed array.
  15925. *
  15926. * @static
  15927. * @memberOf _
  15928. * @since 3.0.0
  15929. * @category Lang
  15930. * @param {*} value The value to check.
  15931. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15932. * @example
  15933. *
  15934. * _.isTypedArray(new Uint8Array);
  15935. * // => true
  15936. *
  15937. * _.isTypedArray([]);
  15938. * // => false
  15939. */
  15940. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  15941. module.exports = isTypedArray;
  15942. /***/ }),
  15943. /***/ "../../node_modules/lodash/isUndefined.js":
  15944. /*!**************************************************************!*\
  15945. !*** E:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  15946. \**************************************************************/
  15947. /*! no static exports found */
  15948. /***/ (function(module, exports) {
  15949. /**
  15950. * Checks if `value` is `undefined`.
  15951. *
  15952. * @static
  15953. * @since 0.1.0
  15954. * @memberOf _
  15955. * @category Lang
  15956. * @param {*} value The value to check.
  15957. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  15958. * @example
  15959. *
  15960. * _.isUndefined(void 0);
  15961. * // => true
  15962. *
  15963. * _.isUndefined(null);
  15964. * // => false
  15965. */
  15966. function isUndefined(value) {
  15967. return value === undefined;
  15968. }
  15969. module.exports = isUndefined;
  15970. /***/ }),
  15971. /***/ "../../node_modules/lodash/keys.js":
  15972. /*!*******************************************************!*\
  15973. !*** E:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  15974. \*******************************************************/
  15975. /*! no static exports found */
  15976. /***/ (function(module, exports, __webpack_require__) {
  15977. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15978. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15979. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15980. /**
  15981. * Creates an array of the own enumerable property names of `object`.
  15982. *
  15983. * **Note:** Non-object values are coerced to objects. See the
  15984. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  15985. * for more details.
  15986. *
  15987. * @static
  15988. * @since 0.1.0
  15989. * @memberOf _
  15990. * @category Object
  15991. * @param {Object} object The object to query.
  15992. * @returns {Array} Returns the array of property names.
  15993. * @example
  15994. *
  15995. * function Foo() {
  15996. * this.a = 1;
  15997. * this.b = 2;
  15998. * }
  15999. *
  16000. * Foo.prototype.c = 3;
  16001. *
  16002. * _.keys(new Foo);
  16003. * // => ['a', 'b'] (iteration order is not guaranteed)
  16004. *
  16005. * _.keys('hi');
  16006. * // => ['0', '1']
  16007. */
  16008. function keys(object) {
  16009. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  16010. }
  16011. module.exports = keys;
  16012. /***/ }),
  16013. /***/ "../../node_modules/lodash/keysIn.js":
  16014. /*!*********************************************************!*\
  16015. !*** E:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  16016. \*********************************************************/
  16017. /*! no static exports found */
  16018. /***/ (function(module, exports, __webpack_require__) {
  16019. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  16020. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  16021. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  16022. /**
  16023. * Creates an array of the own and inherited enumerable property names of `object`.
  16024. *
  16025. * **Note:** Non-object values are coerced to objects.
  16026. *
  16027. * @static
  16028. * @memberOf _
  16029. * @since 3.0.0
  16030. * @category Object
  16031. * @param {Object} object The object to query.
  16032. * @returns {Array} Returns the array of property names.
  16033. * @example
  16034. *
  16035. * function Foo() {
  16036. * this.a = 1;
  16037. * this.b = 2;
  16038. * }
  16039. *
  16040. * Foo.prototype.c = 3;
  16041. *
  16042. * _.keysIn(new Foo);
  16043. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  16044. */
  16045. function keysIn(object) {
  16046. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  16047. }
  16048. module.exports = keysIn;
  16049. /***/ }),
  16050. /***/ "../../node_modules/lodash/last.js":
  16051. /*!*******************************************************!*\
  16052. !*** E:/Repos/Babylon.js/node_modules/lodash/last.js ***!
  16053. \*******************************************************/
  16054. /*! no static exports found */
  16055. /***/ (function(module, exports) {
  16056. /**
  16057. * Gets the last element of `array`.
  16058. *
  16059. * @static
  16060. * @memberOf _
  16061. * @since 0.1.0
  16062. * @category Array
  16063. * @param {Array} array The array to query.
  16064. * @returns {*} Returns the last element of `array`.
  16065. * @example
  16066. *
  16067. * _.last([1, 2, 3]);
  16068. * // => 3
  16069. */
  16070. function last(array) {
  16071. var length = array == null ? 0 : array.length;
  16072. return length ? array[length - 1] : undefined;
  16073. }
  16074. module.exports = last;
  16075. /***/ }),
  16076. /***/ "../../node_modules/lodash/map.js":
  16077. /*!******************************************************!*\
  16078. !*** E:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  16079. \******************************************************/
  16080. /*! no static exports found */
  16081. /***/ (function(module, exports, __webpack_require__) {
  16082. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  16083. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  16084. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  16085. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  16086. /**
  16087. * Creates an array of values by running each element in `collection` thru
  16088. * `iteratee`. The iteratee is invoked with three arguments:
  16089. * (value, index|key, collection).
  16090. *
  16091. * Many lodash methods are guarded to work as iteratees for methods like
  16092. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  16093. *
  16094. * The guarded methods are:
  16095. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  16096. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  16097. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  16098. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  16099. *
  16100. * @static
  16101. * @memberOf _
  16102. * @since 0.1.0
  16103. * @category Collection
  16104. * @param {Array|Object} collection The collection to iterate over.
  16105. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  16106. * @returns {Array} Returns the new mapped array.
  16107. * @example
  16108. *
  16109. * function square(n) {
  16110. * return n * n;
  16111. * }
  16112. *
  16113. * _.map([4, 8], square);
  16114. * // => [16, 64]
  16115. *
  16116. * _.map({ 'a': 4, 'b': 8 }, square);
  16117. * // => [16, 64] (iteration order is not guaranteed)
  16118. *
  16119. * var users = [
  16120. * { 'user': 'barney' },
  16121. * { 'user': 'fred' }
  16122. * ];
  16123. *
  16124. * // The `_.property` iteratee shorthand.
  16125. * _.map(users, 'user');
  16126. * // => ['barney', 'fred']
  16127. */
  16128. function map(collection, iteratee) {
  16129. var func = isArray(collection) ? arrayMap : baseMap;
  16130. return func(collection, baseIteratee(iteratee, 3));
  16131. }
  16132. module.exports = map;
  16133. /***/ }),
  16134. /***/ "../../node_modules/lodash/mapValues.js":
  16135. /*!************************************************************!*\
  16136. !*** E:/Repos/Babylon.js/node_modules/lodash/mapValues.js ***!
  16137. \************************************************************/
  16138. /*! no static exports found */
  16139. /***/ (function(module, exports, __webpack_require__) {
  16140. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  16141. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  16142. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  16143. /**
  16144. * Creates an object with the same keys as `object` and values generated
  16145. * by running each own enumerable string keyed property of `object` thru
  16146. * `iteratee`. The iteratee is invoked with three arguments:
  16147. * (value, key, object).
  16148. *
  16149. * @static
  16150. * @memberOf _
  16151. * @since 2.4.0
  16152. * @category Object
  16153. * @param {Object} object The object to iterate over.
  16154. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  16155. * @returns {Object} Returns the new mapped object.
  16156. * @see _.mapKeys
  16157. * @example
  16158. *
  16159. * var users = {
  16160. * 'fred': { 'user': 'fred', 'age': 40 },
  16161. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  16162. * };
  16163. *
  16164. * _.mapValues(users, function(o) { return o.age; });
  16165. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  16166. *
  16167. * // The `_.property` iteratee shorthand.
  16168. * _.mapValues(users, 'age');
  16169. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  16170. */
  16171. function mapValues(object, iteratee) {
  16172. var result = {};
  16173. iteratee = baseIteratee(iteratee, 3);
  16174. baseForOwn(object, function(value, key, object) {
  16175. baseAssignValue(result, key, iteratee(value, key, object));
  16176. });
  16177. return result;
  16178. }
  16179. module.exports = mapValues;
  16180. /***/ }),
  16181. /***/ "../../node_modules/lodash/max.js":
  16182. /*!******************************************************!*\
  16183. !*** E:/Repos/Babylon.js/node_modules/lodash/max.js ***!
  16184. \******************************************************/
  16185. /*! no static exports found */
  16186. /***/ (function(module, exports, __webpack_require__) {
  16187. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  16188. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  16189. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  16190. /**
  16191. * Computes the maximum value of `array`. If `array` is empty or falsey,
  16192. * `undefined` is returned.
  16193. *
  16194. * @static
  16195. * @since 0.1.0
  16196. * @memberOf _
  16197. * @category Math
  16198. * @param {Array} array The array to iterate over.
  16199. * @returns {*} Returns the maximum value.
  16200. * @example
  16201. *
  16202. * _.max([4, 2, 8, 6]);
  16203. * // => 8
  16204. *
  16205. * _.max([]);
  16206. * // => undefined
  16207. */
  16208. function max(array) {
  16209. return (array && array.length)
  16210. ? baseExtremum(array, identity, baseGt)
  16211. : undefined;
  16212. }
  16213. module.exports = max;
  16214. /***/ }),
  16215. /***/ "../../node_modules/lodash/memoize.js":
  16216. /*!**********************************************************!*\
  16217. !*** E:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  16218. \**********************************************************/
  16219. /*! no static exports found */
  16220. /***/ (function(module, exports, __webpack_require__) {
  16221. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  16222. /** Error message constants. */
  16223. var FUNC_ERROR_TEXT = 'Expected a function';
  16224. /**
  16225. * Creates a function that memoizes the result of `func`. If `resolver` is
  16226. * provided, it determines the cache key for storing the result based on the
  16227. * arguments provided to the memoized function. By default, the first argument
  16228. * provided to the memoized function is used as the map cache key. The `func`
  16229. * is invoked with the `this` binding of the memoized function.
  16230. *
  16231. * **Note:** The cache is exposed as the `cache` property on the memoized
  16232. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  16233. * constructor with one whose instances implement the
  16234. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  16235. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  16236. *
  16237. * @static
  16238. * @memberOf _
  16239. * @since 0.1.0
  16240. * @category Function
  16241. * @param {Function} func The function to have its output memoized.
  16242. * @param {Function} [resolver] The function to resolve the cache key.
  16243. * @returns {Function} Returns the new memoized function.
  16244. * @example
  16245. *
  16246. * var object = { 'a': 1, 'b': 2 };
  16247. * var other = { 'c': 3, 'd': 4 };
  16248. *
  16249. * var values = _.memoize(_.values);
  16250. * values(object);
  16251. * // => [1, 2]
  16252. *
  16253. * values(other);
  16254. * // => [3, 4]
  16255. *
  16256. * object.a = 2;
  16257. * values(object);
  16258. * // => [1, 2]
  16259. *
  16260. * // Modify the result cache.
  16261. * values.cache.set(object, ['a', 'b']);
  16262. * values(object);
  16263. * // => ['a', 'b']
  16264. *
  16265. * // Replace `_.memoize.Cache`.
  16266. * _.memoize.Cache = WeakMap;
  16267. */
  16268. function memoize(func, resolver) {
  16269. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  16270. throw new TypeError(FUNC_ERROR_TEXT);
  16271. }
  16272. var memoized = function() {
  16273. var args = arguments,
  16274. key = resolver ? resolver.apply(this, args) : args[0],
  16275. cache = memoized.cache;
  16276. if (cache.has(key)) {
  16277. return cache.get(key);
  16278. }
  16279. var result = func.apply(this, args);
  16280. memoized.cache = cache.set(key, result) || cache;
  16281. return result;
  16282. };
  16283. memoized.cache = new (memoize.Cache || MapCache);
  16284. return memoized;
  16285. }
  16286. // Expose `MapCache`.
  16287. memoize.Cache = MapCache;
  16288. module.exports = memoize;
  16289. /***/ }),
  16290. /***/ "../../node_modules/lodash/merge.js":
  16291. /*!********************************************************!*\
  16292. !*** E:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  16293. \********************************************************/
  16294. /*! no static exports found */
  16295. /***/ (function(module, exports, __webpack_require__) {
  16296. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  16297. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  16298. /**
  16299. * This method is like `_.assign` except that it recursively merges own and
  16300. * inherited enumerable string keyed properties of source objects into the
  16301. * destination object. Source properties that resolve to `undefined` are
  16302. * skipped if a destination value exists. Array and plain object properties
  16303. * are merged recursively. Other objects and value types are overridden by
  16304. * assignment. Source objects are applied from left to right. Subsequent
  16305. * sources overwrite property assignments of previous sources.
  16306. *
  16307. * **Note:** This method mutates `object`.
  16308. *
  16309. * @static
  16310. * @memberOf _
  16311. * @since 0.5.0
  16312. * @category Object
  16313. * @param {Object} object The destination object.
  16314. * @param {...Object} [sources] The source objects.
  16315. * @returns {Object} Returns `object`.
  16316. * @example
  16317. *
  16318. * var object = {
  16319. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  16320. * };
  16321. *
  16322. * var other = {
  16323. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  16324. * };
  16325. *
  16326. * _.merge(object, other);
  16327. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  16328. */
  16329. var merge = createAssigner(function(object, source, srcIndex) {
  16330. baseMerge(object, source, srcIndex);
  16331. });
  16332. module.exports = merge;
  16333. /***/ }),
  16334. /***/ "../../node_modules/lodash/min.js":
  16335. /*!******************************************************!*\
  16336. !*** E:/Repos/Babylon.js/node_modules/lodash/min.js ***!
  16337. \******************************************************/
  16338. /*! no static exports found */
  16339. /***/ (function(module, exports, __webpack_require__) {
  16340. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  16341. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  16342. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  16343. /**
  16344. * Computes the minimum value of `array`. If `array` is empty or falsey,
  16345. * `undefined` is returned.
  16346. *
  16347. * @static
  16348. * @since 0.1.0
  16349. * @memberOf _
  16350. * @category Math
  16351. * @param {Array} array The array to iterate over.
  16352. * @returns {*} Returns the minimum value.
  16353. * @example
  16354. *
  16355. * _.min([4, 2, 8, 6]);
  16356. * // => 2
  16357. *
  16358. * _.min([]);
  16359. * // => undefined
  16360. */
  16361. function min(array) {
  16362. return (array && array.length)
  16363. ? baseExtremum(array, identity, baseLt)
  16364. : undefined;
  16365. }
  16366. module.exports = min;
  16367. /***/ }),
  16368. /***/ "../../node_modules/lodash/minBy.js":
  16369. /*!********************************************************!*\
  16370. !*** E:/Repos/Babylon.js/node_modules/lodash/minBy.js ***!
  16371. \********************************************************/
  16372. /*! no static exports found */
  16373. /***/ (function(module, exports, __webpack_require__) {
  16374. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  16375. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  16376. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  16377. /**
  16378. * This method is like `_.min` except that it accepts `iteratee` which is
  16379. * invoked for each element in `array` to generate the criterion by which
  16380. * the value is ranked. The iteratee is invoked with one argument: (value).
  16381. *
  16382. * @static
  16383. * @memberOf _
  16384. * @since 4.0.0
  16385. * @category Math
  16386. * @param {Array} array The array to iterate over.
  16387. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  16388. * @returns {*} Returns the minimum value.
  16389. * @example
  16390. *
  16391. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  16392. *
  16393. * _.minBy(objects, function(o) { return o.n; });
  16394. * // => { 'n': 1 }
  16395. *
  16396. * // The `_.property` iteratee shorthand.
  16397. * _.minBy(objects, 'n');
  16398. * // => { 'n': 1 }
  16399. */
  16400. function minBy(array, iteratee) {
  16401. return (array && array.length)
  16402. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  16403. : undefined;
  16404. }
  16405. module.exports = minBy;
  16406. /***/ }),
  16407. /***/ "../../node_modules/lodash/noop.js":
  16408. /*!*******************************************************!*\
  16409. !*** E:/Repos/Babylon.js/node_modules/lodash/noop.js ***!
  16410. \*******************************************************/
  16411. /*! no static exports found */
  16412. /***/ (function(module, exports) {
  16413. /**
  16414. * This method returns `undefined`.
  16415. *
  16416. * @static
  16417. * @memberOf _
  16418. * @since 2.3.0
  16419. * @category Util
  16420. * @example
  16421. *
  16422. * _.times(2, _.noop);
  16423. * // => [undefined, undefined]
  16424. */
  16425. function noop() {
  16426. // No operation performed.
  16427. }
  16428. module.exports = noop;
  16429. /***/ }),
  16430. /***/ "../../node_modules/lodash/now.js":
  16431. /*!******************************************************!*\
  16432. !*** E:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  16433. \******************************************************/
  16434. /*! no static exports found */
  16435. /***/ (function(module, exports, __webpack_require__) {
  16436. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  16437. /**
  16438. * Gets the timestamp of the number of milliseconds that have elapsed since
  16439. * the Unix epoch (1 January 1970 00:00:00 UTC).
  16440. *
  16441. * @static
  16442. * @memberOf _
  16443. * @since 2.4.0
  16444. * @category Date
  16445. * @returns {number} Returns the timestamp.
  16446. * @example
  16447. *
  16448. * _.defer(function(stamp) {
  16449. * console.log(_.now() - stamp);
  16450. * }, _.now());
  16451. * // => Logs the number of milliseconds it took for the deferred invocation.
  16452. */
  16453. var now = function() {
  16454. return root.Date.now();
  16455. };
  16456. module.exports = now;
  16457. /***/ }),
  16458. /***/ "../../node_modules/lodash/pick.js":
  16459. /*!*******************************************************!*\
  16460. !*** E:/Repos/Babylon.js/node_modules/lodash/pick.js ***!
  16461. \*******************************************************/
  16462. /*! no static exports found */
  16463. /***/ (function(module, exports, __webpack_require__) {
  16464. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  16465. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  16466. /**
  16467. * Creates an object composed of the picked `object` properties.
  16468. *
  16469. * @static
  16470. * @since 0.1.0
  16471. * @memberOf _
  16472. * @category Object
  16473. * @param {Object} object The source object.
  16474. * @param {...(string|string[])} [paths] The property paths to pick.
  16475. * @returns {Object} Returns the new object.
  16476. * @example
  16477. *
  16478. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  16479. *
  16480. * _.pick(object, ['a', 'c']);
  16481. * // => { 'a': 1, 'c': 3 }
  16482. */
  16483. var pick = flatRest(function(object, paths) {
  16484. return object == null ? {} : basePick(object, paths);
  16485. });
  16486. module.exports = pick;
  16487. /***/ }),
  16488. /***/ "../../node_modules/lodash/property.js":
  16489. /*!***********************************************************!*\
  16490. !*** E:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  16491. \***********************************************************/
  16492. /*! no static exports found */
  16493. /***/ (function(module, exports, __webpack_require__) {
  16494. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  16495. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  16496. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  16497. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  16498. /**
  16499. * Creates a function that returns the value at `path` of a given object.
  16500. *
  16501. * @static
  16502. * @memberOf _
  16503. * @since 2.4.0
  16504. * @category Util
  16505. * @param {Array|string} path The path of the property to get.
  16506. * @returns {Function} Returns the new accessor function.
  16507. * @example
  16508. *
  16509. * var objects = [
  16510. * { 'a': { 'b': 2 } },
  16511. * { 'a': { 'b': 1 } }
  16512. * ];
  16513. *
  16514. * _.map(objects, _.property('a.b'));
  16515. * // => [2, 1]
  16516. *
  16517. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  16518. * // => [1, 2]
  16519. */
  16520. function property(path) {
  16521. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  16522. }
  16523. module.exports = property;
  16524. /***/ }),
  16525. /***/ "../../node_modules/lodash/range.js":
  16526. /*!********************************************************!*\
  16527. !*** E:/Repos/Babylon.js/node_modules/lodash/range.js ***!
  16528. \********************************************************/
  16529. /*! no static exports found */
  16530. /***/ (function(module, exports, __webpack_require__) {
  16531. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  16532. /**
  16533. * Creates an array of numbers (positive and/or negative) progressing from
  16534. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  16535. * `start` is specified without an `end` or `step`. If `end` is not specified,
  16536. * it's set to `start` with `start` then set to `0`.
  16537. *
  16538. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  16539. * floating-point values which can produce unexpected results.
  16540. *
  16541. * @static
  16542. * @since 0.1.0
  16543. * @memberOf _
  16544. * @category Util
  16545. * @param {number} [start=0] The start of the range.
  16546. * @param {number} end The end of the range.
  16547. * @param {number} [step=1] The value to increment or decrement by.
  16548. * @returns {Array} Returns the range of numbers.
  16549. * @see _.inRange, _.rangeRight
  16550. * @example
  16551. *
  16552. * _.range(4);
  16553. * // => [0, 1, 2, 3]
  16554. *
  16555. * _.range(-4);
  16556. * // => [0, -1, -2, -3]
  16557. *
  16558. * _.range(1, 5);
  16559. * // => [1, 2, 3, 4]
  16560. *
  16561. * _.range(0, 20, 5);
  16562. * // => [0, 5, 10, 15]
  16563. *
  16564. * _.range(0, -4, -1);
  16565. * // => [0, -1, -2, -3]
  16566. *
  16567. * _.range(1, 4, 0);
  16568. * // => [1, 1, 1]
  16569. *
  16570. * _.range(0);
  16571. * // => []
  16572. */
  16573. var range = createRange();
  16574. module.exports = range;
  16575. /***/ }),
  16576. /***/ "../../node_modules/lodash/reduce.js":
  16577. /*!*********************************************************!*\
  16578. !*** E:/Repos/Babylon.js/node_modules/lodash/reduce.js ***!
  16579. \*********************************************************/
  16580. /*! no static exports found */
  16581. /***/ (function(module, exports, __webpack_require__) {
  16582. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  16583. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  16584. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  16585. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  16586. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  16587. /**
  16588. * Reduces `collection` to a value which is the accumulated result of running
  16589. * each element in `collection` thru `iteratee`, where each successive
  16590. * invocation is supplied the return value of the previous. If `accumulator`
  16591. * is not given, the first element of `collection` is used as the initial
  16592. * value. The iteratee is invoked with four arguments:
  16593. * (accumulator, value, index|key, collection).
  16594. *
  16595. * Many lodash methods are guarded to work as iteratees for methods like
  16596. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  16597. *
  16598. * The guarded methods are:
  16599. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  16600. * and `sortBy`
  16601. *
  16602. * @static
  16603. * @memberOf _
  16604. * @since 0.1.0
  16605. * @category Collection
  16606. * @param {Array|Object} collection The collection to iterate over.
  16607. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  16608. * @param {*} [accumulator] The initial value.
  16609. * @returns {*} Returns the accumulated value.
  16610. * @see _.reduceRight
  16611. * @example
  16612. *
  16613. * _.reduce([1, 2], function(sum, n) {
  16614. * return sum + n;
  16615. * }, 0);
  16616. * // => 3
  16617. *
  16618. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  16619. * (result[value] || (result[value] = [])).push(key);
  16620. * return result;
  16621. * }, {});
  16622. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  16623. */
  16624. function reduce(collection, iteratee, accumulator) {
  16625. var func = isArray(collection) ? arrayReduce : baseReduce,
  16626. initAccum = arguments.length < 3;
  16627. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  16628. }
  16629. module.exports = reduce;
  16630. /***/ }),
  16631. /***/ "../../node_modules/lodash/size.js":
  16632. /*!*******************************************************!*\
  16633. !*** E:/Repos/Babylon.js/node_modules/lodash/size.js ***!
  16634. \*******************************************************/
  16635. /*! no static exports found */
  16636. /***/ (function(module, exports, __webpack_require__) {
  16637. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  16638. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  16639. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  16640. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  16641. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  16642. /** `Object#toString` result references. */
  16643. var mapTag = '[object Map]',
  16644. setTag = '[object Set]';
  16645. /**
  16646. * Gets the size of `collection` by returning its length for array-like
  16647. * values or the number of own enumerable string keyed properties for objects.
  16648. *
  16649. * @static
  16650. * @memberOf _
  16651. * @since 0.1.0
  16652. * @category Collection
  16653. * @param {Array|Object|string} collection The collection to inspect.
  16654. * @returns {number} Returns the collection size.
  16655. * @example
  16656. *
  16657. * _.size([1, 2, 3]);
  16658. * // => 3
  16659. *
  16660. * _.size({ 'a': 1, 'b': 2 });
  16661. * // => 2
  16662. *
  16663. * _.size('pebbles');
  16664. * // => 7
  16665. */
  16666. function size(collection) {
  16667. if (collection == null) {
  16668. return 0;
  16669. }
  16670. if (isArrayLike(collection)) {
  16671. return isString(collection) ? stringSize(collection) : collection.length;
  16672. }
  16673. var tag = getTag(collection);
  16674. if (tag == mapTag || tag == setTag) {
  16675. return collection.size;
  16676. }
  16677. return baseKeys(collection).length;
  16678. }
  16679. module.exports = size;
  16680. /***/ }),
  16681. /***/ "../../node_modules/lodash/sortBy.js":
  16682. /*!*********************************************************!*\
  16683. !*** E:/Repos/Babylon.js/node_modules/lodash/sortBy.js ***!
  16684. \*********************************************************/
  16685. /*! no static exports found */
  16686. /***/ (function(module, exports, __webpack_require__) {
  16687. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  16688. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  16689. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  16690. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  16691. /**
  16692. * Creates an array of elements, sorted in ascending order by the results of
  16693. * running each element in a collection thru each iteratee. This method
  16694. * performs a stable sort, that is, it preserves the original sort order of
  16695. * equal elements. The iteratees are invoked with one argument: (value).
  16696. *
  16697. * @static
  16698. * @memberOf _
  16699. * @since 0.1.0
  16700. * @category Collection
  16701. * @param {Array|Object} collection The collection to iterate over.
  16702. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  16703. * The iteratees to sort by.
  16704. * @returns {Array} Returns the new sorted array.
  16705. * @example
  16706. *
  16707. * var users = [
  16708. * { 'user': 'fred', 'age': 48 },
  16709. * { 'user': 'barney', 'age': 36 },
  16710. * { 'user': 'fred', 'age': 40 },
  16711. * { 'user': 'barney', 'age': 34 }
  16712. * ];
  16713. *
  16714. * _.sortBy(users, [function(o) { return o.user; }]);
  16715. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  16716. *
  16717. * _.sortBy(users, ['user', 'age']);
  16718. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  16719. */
  16720. var sortBy = baseRest(function(collection, iteratees) {
  16721. if (collection == null) {
  16722. return [];
  16723. }
  16724. var length = iteratees.length;
  16725. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  16726. iteratees = [];
  16727. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  16728. iteratees = [iteratees[0]];
  16729. }
  16730. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  16731. });
  16732. module.exports = sortBy;
  16733. /***/ }),
  16734. /***/ "../../node_modules/lodash/stubArray.js":
  16735. /*!************************************************************!*\
  16736. !*** E:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  16737. \************************************************************/
  16738. /*! no static exports found */
  16739. /***/ (function(module, exports) {
  16740. /**
  16741. * This method returns a new empty array.
  16742. *
  16743. * @static
  16744. * @memberOf _
  16745. * @since 4.13.0
  16746. * @category Util
  16747. * @returns {Array} Returns the new empty array.
  16748. * @example
  16749. *
  16750. * var arrays = _.times(2, _.stubArray);
  16751. *
  16752. * console.log(arrays);
  16753. * // => [[], []]
  16754. *
  16755. * console.log(arrays[0] === arrays[1]);
  16756. * // => false
  16757. */
  16758. function stubArray() {
  16759. return [];
  16760. }
  16761. module.exports = stubArray;
  16762. /***/ }),
  16763. /***/ "../../node_modules/lodash/stubFalse.js":
  16764. /*!************************************************************!*\
  16765. !*** E:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  16766. \************************************************************/
  16767. /*! no static exports found */
  16768. /***/ (function(module, exports) {
  16769. /**
  16770. * This method returns `false`.
  16771. *
  16772. * @static
  16773. * @memberOf _
  16774. * @since 4.13.0
  16775. * @category Util
  16776. * @returns {boolean} Returns `false`.
  16777. * @example
  16778. *
  16779. * _.times(2, _.stubFalse);
  16780. * // => [false, false]
  16781. */
  16782. function stubFalse() {
  16783. return false;
  16784. }
  16785. module.exports = stubFalse;
  16786. /***/ }),
  16787. /***/ "../../node_modules/lodash/throttle.js":
  16788. /*!***********************************************************!*\
  16789. !*** E:/Repos/Babylon.js/node_modules/lodash/throttle.js ***!
  16790. \***********************************************************/
  16791. /*! no static exports found */
  16792. /***/ (function(module, exports, __webpack_require__) {
  16793. var debounce = __webpack_require__(/*! ./debounce */ "../../node_modules/lodash/debounce.js"),
  16794. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  16795. /** Error message constants. */
  16796. var FUNC_ERROR_TEXT = 'Expected a function';
  16797. /**
  16798. * Creates a throttled function that only invokes `func` at most once per
  16799. * every `wait` milliseconds. The throttled function comes with a `cancel`
  16800. * method to cancel delayed `func` invocations and a `flush` method to
  16801. * immediately invoke them. Provide `options` to indicate whether `func`
  16802. * should be invoked on the leading and/or trailing edge of the `wait`
  16803. * timeout. The `func` is invoked with the last arguments provided to the
  16804. * throttled function. Subsequent calls to the throttled function return the
  16805. * result of the last `func` invocation.
  16806. *
  16807. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  16808. * invoked on the trailing edge of the timeout only if the throttled function
  16809. * is invoked more than once during the `wait` timeout.
  16810. *
  16811. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  16812. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  16813. *
  16814. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  16815. * for details over the differences between `_.throttle` and `_.debounce`.
  16816. *
  16817. * @static
  16818. * @memberOf _
  16819. * @since 0.1.0
  16820. * @category Function
  16821. * @param {Function} func The function to throttle.
  16822. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  16823. * @param {Object} [options={}] The options object.
  16824. * @param {boolean} [options.leading=true]
  16825. * Specify invoking on the leading edge of the timeout.
  16826. * @param {boolean} [options.trailing=true]
  16827. * Specify invoking on the trailing edge of the timeout.
  16828. * @returns {Function} Returns the new throttled function.
  16829. * @example
  16830. *
  16831. * // Avoid excessively updating the position while scrolling.
  16832. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  16833. *
  16834. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  16835. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  16836. * jQuery(element).on('click', throttled);
  16837. *
  16838. * // Cancel the trailing throttled invocation.
  16839. * jQuery(window).on('popstate', throttled.cancel);
  16840. */
  16841. function throttle(func, wait, options) {
  16842. var leading = true,
  16843. trailing = true;
  16844. if (typeof func != 'function') {
  16845. throw new TypeError(FUNC_ERROR_TEXT);
  16846. }
  16847. if (isObject(options)) {
  16848. leading = 'leading' in options ? !!options.leading : leading;
  16849. trailing = 'trailing' in options ? !!options.trailing : trailing;
  16850. }
  16851. return debounce(func, wait, {
  16852. 'leading': leading,
  16853. 'maxWait': wait,
  16854. 'trailing': trailing
  16855. });
  16856. }
  16857. module.exports = throttle;
  16858. /***/ }),
  16859. /***/ "../../node_modules/lodash/toFinite.js":
  16860. /*!***********************************************************!*\
  16861. !*** E:/Repos/Babylon.js/node_modules/lodash/toFinite.js ***!
  16862. \***********************************************************/
  16863. /*! no static exports found */
  16864. /***/ (function(module, exports, __webpack_require__) {
  16865. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  16866. /** Used as references for various `Number` constants. */
  16867. var INFINITY = 1 / 0,
  16868. MAX_INTEGER = 1.7976931348623157e+308;
  16869. /**
  16870. * Converts `value` to a finite number.
  16871. *
  16872. * @static
  16873. * @memberOf _
  16874. * @since 4.12.0
  16875. * @category Lang
  16876. * @param {*} value The value to convert.
  16877. * @returns {number} Returns the converted number.
  16878. * @example
  16879. *
  16880. * _.toFinite(3.2);
  16881. * // => 3.2
  16882. *
  16883. * _.toFinite(Number.MIN_VALUE);
  16884. * // => 5e-324
  16885. *
  16886. * _.toFinite(Infinity);
  16887. * // => 1.7976931348623157e+308
  16888. *
  16889. * _.toFinite('3.2');
  16890. * // => 3.2
  16891. */
  16892. function toFinite(value) {
  16893. if (!value) {
  16894. return value === 0 ? value : 0;
  16895. }
  16896. value = toNumber(value);
  16897. if (value === INFINITY || value === -INFINITY) {
  16898. var sign = (value < 0 ? -1 : 1);
  16899. return sign * MAX_INTEGER;
  16900. }
  16901. return value === value ? value : 0;
  16902. }
  16903. module.exports = toFinite;
  16904. /***/ }),
  16905. /***/ "../../node_modules/lodash/toInteger.js":
  16906. /*!************************************************************!*\
  16907. !*** E:/Repos/Babylon.js/node_modules/lodash/toInteger.js ***!
  16908. \************************************************************/
  16909. /*! no static exports found */
  16910. /***/ (function(module, exports, __webpack_require__) {
  16911. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  16912. /**
  16913. * Converts `value` to an integer.
  16914. *
  16915. * **Note:** This method is loosely based on
  16916. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  16917. *
  16918. * @static
  16919. * @memberOf _
  16920. * @since 4.0.0
  16921. * @category Lang
  16922. * @param {*} value The value to convert.
  16923. * @returns {number} Returns the converted integer.
  16924. * @example
  16925. *
  16926. * _.toInteger(3.2);
  16927. * // => 3
  16928. *
  16929. * _.toInteger(Number.MIN_VALUE);
  16930. * // => 0
  16931. *
  16932. * _.toInteger(Infinity);
  16933. * // => 1.7976931348623157e+308
  16934. *
  16935. * _.toInteger('3.2');
  16936. * // => 3
  16937. */
  16938. function toInteger(value) {
  16939. var result = toFinite(value),
  16940. remainder = result % 1;
  16941. return result === result ? (remainder ? result - remainder : result) : 0;
  16942. }
  16943. module.exports = toInteger;
  16944. /***/ }),
  16945. /***/ "../../node_modules/lodash/toNumber.js":
  16946. /*!***********************************************************!*\
  16947. !*** E:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  16948. \***********************************************************/
  16949. /*! no static exports found */
  16950. /***/ (function(module, exports, __webpack_require__) {
  16951. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  16952. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  16953. /** Used as references for various `Number` constants. */
  16954. var NAN = 0 / 0;
  16955. /** Used to match leading and trailing whitespace. */
  16956. var reTrim = /^\s+|\s+$/g;
  16957. /** Used to detect bad signed hexadecimal string values. */
  16958. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  16959. /** Used to detect binary string values. */
  16960. var reIsBinary = /^0b[01]+$/i;
  16961. /** Used to detect octal string values. */
  16962. var reIsOctal = /^0o[0-7]+$/i;
  16963. /** Built-in method references without a dependency on `root`. */
  16964. var freeParseInt = parseInt;
  16965. /**
  16966. * Converts `value` to a number.
  16967. *
  16968. * @static
  16969. * @memberOf _
  16970. * @since 4.0.0
  16971. * @category Lang
  16972. * @param {*} value The value to process.
  16973. * @returns {number} Returns the number.
  16974. * @example
  16975. *
  16976. * _.toNumber(3.2);
  16977. * // => 3.2
  16978. *
  16979. * _.toNumber(Number.MIN_VALUE);
  16980. * // => 5e-324
  16981. *
  16982. * _.toNumber(Infinity);
  16983. * // => Infinity
  16984. *
  16985. * _.toNumber('3.2');
  16986. * // => 3.2
  16987. */
  16988. function toNumber(value) {
  16989. if (typeof value == 'number') {
  16990. return value;
  16991. }
  16992. if (isSymbol(value)) {
  16993. return NAN;
  16994. }
  16995. if (isObject(value)) {
  16996. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  16997. value = isObject(other) ? (other + '') : other;
  16998. }
  16999. if (typeof value != 'string') {
  17000. return value === 0 ? value : +value;
  17001. }
  17002. value = value.replace(reTrim, '');
  17003. var isBinary = reIsBinary.test(value);
  17004. return (isBinary || reIsOctal.test(value))
  17005. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  17006. : (reIsBadHex.test(value) ? NAN : +value);
  17007. }
  17008. module.exports = toNumber;
  17009. /***/ }),
  17010. /***/ "../../node_modules/lodash/toPlainObject.js":
  17011. /*!****************************************************************!*\
  17012. !*** E:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  17013. \****************************************************************/
  17014. /*! no static exports found */
  17015. /***/ (function(module, exports, __webpack_require__) {
  17016. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  17017. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  17018. /**
  17019. * Converts `value` to a plain object flattening inherited enumerable string
  17020. * keyed properties of `value` to own properties of the plain object.
  17021. *
  17022. * @static
  17023. * @memberOf _
  17024. * @since 3.0.0
  17025. * @category Lang
  17026. * @param {*} value The value to convert.
  17027. * @returns {Object} Returns the converted plain object.
  17028. * @example
  17029. *
  17030. * function Foo() {
  17031. * this.b = 2;
  17032. * }
  17033. *
  17034. * Foo.prototype.c = 3;
  17035. *
  17036. * _.assign({ 'a': 1 }, new Foo);
  17037. * // => { 'a': 1, 'b': 2 }
  17038. *
  17039. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  17040. * // => { 'a': 1, 'b': 2, 'c': 3 }
  17041. */
  17042. function toPlainObject(value) {
  17043. return copyObject(value, keysIn(value));
  17044. }
  17045. module.exports = toPlainObject;
  17046. /***/ }),
  17047. /***/ "../../node_modules/lodash/toString.js":
  17048. /*!***********************************************************!*\
  17049. !*** E:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  17050. \***********************************************************/
  17051. /*! no static exports found */
  17052. /***/ (function(module, exports, __webpack_require__) {
  17053. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  17054. /**
  17055. * Converts `value` to a string. An empty string is returned for `null`
  17056. * and `undefined` values. The sign of `-0` is preserved.
  17057. *
  17058. * @static
  17059. * @memberOf _
  17060. * @since 4.0.0
  17061. * @category Lang
  17062. * @param {*} value The value to convert.
  17063. * @returns {string} Returns the converted string.
  17064. * @example
  17065. *
  17066. * _.toString(null);
  17067. * // => ''
  17068. *
  17069. * _.toString(-0);
  17070. * // => '-0'
  17071. *
  17072. * _.toString([1, 2, 3]);
  17073. * // => '1,2,3'
  17074. */
  17075. function toString(value) {
  17076. return value == null ? '' : baseToString(value);
  17077. }
  17078. module.exports = toString;
  17079. /***/ }),
  17080. /***/ "../../node_modules/lodash/transform.js":
  17081. /*!************************************************************!*\
  17082. !*** E:/Repos/Babylon.js/node_modules/lodash/transform.js ***!
  17083. \************************************************************/
  17084. /*! no static exports found */
  17085. /***/ (function(module, exports, __webpack_require__) {
  17086. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  17087. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  17088. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  17089. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  17090. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  17091. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  17092. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  17093. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  17094. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  17095. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  17096. /**
  17097. * An alternative to `_.reduce`; this method transforms `object` to a new
  17098. * `accumulator` object which is the result of running each of its own
  17099. * enumerable string keyed properties thru `iteratee`, with each invocation
  17100. * potentially mutating the `accumulator` object. If `accumulator` is not
  17101. * provided, a new object with the same `[[Prototype]]` will be used. The
  17102. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  17103. * Iteratee functions may exit iteration early by explicitly returning `false`.
  17104. *
  17105. * @static
  17106. * @memberOf _
  17107. * @since 1.3.0
  17108. * @category Object
  17109. * @param {Object} object The object to iterate over.
  17110. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17111. * @param {*} [accumulator] The custom accumulator value.
  17112. * @returns {*} Returns the accumulated value.
  17113. * @example
  17114. *
  17115. * _.transform([2, 3, 4], function(result, n) {
  17116. * result.push(n *= n);
  17117. * return n % 2 == 0;
  17118. * }, []);
  17119. * // => [4, 9]
  17120. *
  17121. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  17122. * (result[value] || (result[value] = [])).push(key);
  17123. * }, {});
  17124. * // => { '1': ['a', 'c'], '2': ['b'] }
  17125. */
  17126. function transform(object, iteratee, accumulator) {
  17127. var isArr = isArray(object),
  17128. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  17129. iteratee = baseIteratee(iteratee, 4);
  17130. if (accumulator == null) {
  17131. var Ctor = object && object.constructor;
  17132. if (isArrLike) {
  17133. accumulator = isArr ? new Ctor : [];
  17134. }
  17135. else if (isObject(object)) {
  17136. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  17137. }
  17138. else {
  17139. accumulator = {};
  17140. }
  17141. }
  17142. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  17143. return iteratee(accumulator, value, index, object);
  17144. });
  17145. return accumulator;
  17146. }
  17147. module.exports = transform;
  17148. /***/ }),
  17149. /***/ "../../node_modules/lodash/union.js":
  17150. /*!********************************************************!*\
  17151. !*** E:/Repos/Babylon.js/node_modules/lodash/union.js ***!
  17152. \********************************************************/
  17153. /*! no static exports found */
  17154. /***/ (function(module, exports, __webpack_require__) {
  17155. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  17156. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  17157. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  17158. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  17159. /**
  17160. * Creates an array of unique values, in order, from all given arrays using
  17161. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  17162. * for equality comparisons.
  17163. *
  17164. * @static
  17165. * @memberOf _
  17166. * @since 0.1.0
  17167. * @category Array
  17168. * @param {...Array} [arrays] The arrays to inspect.
  17169. * @returns {Array} Returns the new array of combined values.
  17170. * @example
  17171. *
  17172. * _.union([2], [1, 2]);
  17173. * // => [2, 1]
  17174. */
  17175. var union = baseRest(function(arrays) {
  17176. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  17177. });
  17178. module.exports = union;
  17179. /***/ }),
  17180. /***/ "../../node_modules/lodash/uniqueId.js":
  17181. /*!***********************************************************!*\
  17182. !*** E:/Repos/Babylon.js/node_modules/lodash/uniqueId.js ***!
  17183. \***********************************************************/
  17184. /*! no static exports found */
  17185. /***/ (function(module, exports, __webpack_require__) {
  17186. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  17187. /** Used to generate unique IDs. */
  17188. var idCounter = 0;
  17189. /**
  17190. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  17191. *
  17192. * @static
  17193. * @since 0.1.0
  17194. * @memberOf _
  17195. * @category Util
  17196. * @param {string} [prefix=''] The value to prefix the ID with.
  17197. * @returns {string} Returns the unique ID.
  17198. * @example
  17199. *
  17200. * _.uniqueId('contact_');
  17201. * // => 'contact_104'
  17202. *
  17203. * _.uniqueId();
  17204. * // => '105'
  17205. */
  17206. function uniqueId(prefix) {
  17207. var id = ++idCounter;
  17208. return toString(prefix) + id;
  17209. }
  17210. module.exports = uniqueId;
  17211. /***/ }),
  17212. /***/ "../../node_modules/lodash/values.js":
  17213. /*!*********************************************************!*\
  17214. !*** E:/Repos/Babylon.js/node_modules/lodash/values.js ***!
  17215. \*********************************************************/
  17216. /*! no static exports found */
  17217. /***/ (function(module, exports, __webpack_require__) {
  17218. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  17219. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  17220. /**
  17221. * Creates an array of the own enumerable string keyed property values of `object`.
  17222. *
  17223. * **Note:** Non-object values are coerced to objects.
  17224. *
  17225. * @static
  17226. * @since 0.1.0
  17227. * @memberOf _
  17228. * @category Object
  17229. * @param {Object} object The object to query.
  17230. * @returns {Array} Returns the array of property values.
  17231. * @example
  17232. *
  17233. * function Foo() {
  17234. * this.a = 1;
  17235. * this.b = 2;
  17236. * }
  17237. *
  17238. * Foo.prototype.c = 3;
  17239. *
  17240. * _.values(new Foo);
  17241. * // => [1, 2] (iteration order is not guaranteed)
  17242. *
  17243. * _.values('hi');
  17244. * // => ['h', 'i']
  17245. */
  17246. function values(object) {
  17247. return object == null ? [] : baseValues(object, keys(object));
  17248. }
  17249. module.exports = values;
  17250. /***/ }),
  17251. /***/ "../../node_modules/lodash/zipObject.js":
  17252. /*!************************************************************!*\
  17253. !*** E:/Repos/Babylon.js/node_modules/lodash/zipObject.js ***!
  17254. \************************************************************/
  17255. /*! no static exports found */
  17256. /***/ (function(module, exports, __webpack_require__) {
  17257. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  17258. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  17259. /**
  17260. * This method is like `_.fromPairs` except that it accepts two arrays,
  17261. * one of property identifiers and one of corresponding values.
  17262. *
  17263. * @static
  17264. * @memberOf _
  17265. * @since 0.4.0
  17266. * @category Array
  17267. * @param {Array} [props=[]] The property identifiers.
  17268. * @param {Array} [values=[]] The property values.
  17269. * @returns {Object} Returns the new object.
  17270. * @example
  17271. *
  17272. * _.zipObject(['a', 'b'], [1, 2]);
  17273. * // => { 'a': 1, 'b': 2 }
  17274. */
  17275. function zipObject(props, values) {
  17276. return baseZipObject(props || [], values || [], assignValue);
  17277. }
  17278. module.exports = zipObject;
  17279. /***/ }),
  17280. /***/ "../../node_modules/material-colors/dist/colors.es2015.js":
  17281. /*!******************************************************************************!*\
  17282. !*** E:/Repos/Babylon.js/node_modules/material-colors/dist/colors.es2015.js ***!
  17283. \******************************************************************************/
  17284. /*! 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 */
  17285. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17286. "use strict";
  17287. __webpack_require__.r(__webpack_exports__);
  17288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "red", function() { return red; });
  17289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pink", function() { return pink; });
  17290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "purple", function() { return purple; });
  17291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepPurple", function() { return deepPurple; });
  17292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indigo", function() { return indigo; });
  17293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blue", function() { return blue; });
  17294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightBlue", function() { return lightBlue; });
  17295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cyan", function() { return cyan; });
  17296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "teal", function() { return teal; });
  17297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "green", function() { return green; });
  17298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightGreen", function() { return lightGreen; });
  17299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lime", function() { return lime; });
  17300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yellow", function() { return yellow; });
  17301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amber", function() { return amber; });
  17302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "orange", function() { return orange; });
  17303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepOrange", function() { return deepOrange; });
  17304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brown", function() { return brown; });
  17305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "grey", function() { return grey; });
  17306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blueGrey", function() { return blueGrey; });
  17307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darkText", function() { return darkText; });
  17308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightText", function() { return lightText; });
  17309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darkIcons", function() { return darkIcons; });
  17310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightIcons", function() { return lightIcons; });
  17311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "white", function() { return white; });
  17312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "black", function() { return black; });
  17313. 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"};
  17314. 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"};
  17315. 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"};
  17316. 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"};
  17317. 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"};
  17318. 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"};
  17319. 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"};
  17320. 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"};
  17321. 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"};
  17322. 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"};
  17323. 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"};
  17324. 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"};
  17325. 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"};
  17326. 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"};
  17327. 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"};
  17328. 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"};
  17329. var brown = {"50":"#efebe9","100":"#d7ccc8","200":"#bcaaa4","300":"#a1887f","400":"#8d6e63","500":"#795548","600":"#6d4c41","700":"#5d4037","800":"#4e342e","900":"#3e2723"};
  17330. var grey = {"50":"#fafafa","100":"#f5f5f5","200":"#eeeeee","300":"#e0e0e0","400":"#bdbdbd","500":"#9e9e9e","600":"#757575","700":"#616161","800":"#424242","900":"#212121"};
  17331. var blueGrey = {"50":"#eceff1","100":"#cfd8dc","200":"#b0bec5","300":"#90a4ae","400":"#78909c","500":"#607d8b","600":"#546e7a","700":"#455a64","800":"#37474f","900":"#263238"};
  17332. 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)"};
  17333. 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)"};
  17334. var darkIcons = {"active":"rgba(0, 0, 0, 0.54)","inactive":"rgba(0, 0, 0, 0.38)"};
  17335. var lightIcons = {"active":"rgba(255, 255, 255, 1)","inactive":"rgba(255, 255, 255, 0.5)"};
  17336. var white = "#ffffff";
  17337. var black = "#000000";
  17338. /* harmony default export */ __webpack_exports__["default"] = ({
  17339. red: red,
  17340. pink: pink,
  17341. purple: purple,
  17342. deepPurple: deepPurple,
  17343. indigo: indigo,
  17344. blue: blue,
  17345. lightBlue: lightBlue,
  17346. cyan: cyan,
  17347. teal: teal,
  17348. green: green,
  17349. lightGreen: lightGreen,
  17350. lime: lime,
  17351. yellow: yellow,
  17352. amber: amber,
  17353. orange: orange,
  17354. deepOrange: deepOrange,
  17355. brown: brown,
  17356. grey: grey,
  17357. blueGrey: blueGrey,
  17358. darkText: darkText,
  17359. lightText: lightText,
  17360. darkIcons: darkIcons,
  17361. lightIcons: lightIcons,
  17362. white: white,
  17363. black: black
  17364. });
  17365. /***/ }),
  17366. /***/ "../../node_modules/object-assign/index.js":
  17367. /*!***************************************************************!*\
  17368. !*** E:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  17369. \***************************************************************/
  17370. /*! no static exports found */
  17371. /***/ (function(module, exports, __webpack_require__) {
  17372. "use strict";
  17373. /*
  17374. object-assign
  17375. (c) Sindre Sorhus
  17376. @license MIT
  17377. */
  17378. /* eslint-disable no-unused-vars */
  17379. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  17380. var hasOwnProperty = Object.prototype.hasOwnProperty;
  17381. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  17382. function toObject(val) {
  17383. if (val === null || val === undefined) {
  17384. throw new TypeError('Object.assign cannot be called with null or undefined');
  17385. }
  17386. return Object(val);
  17387. }
  17388. function shouldUseNative() {
  17389. try {
  17390. if (!Object.assign) {
  17391. return false;
  17392. }
  17393. // Detect buggy property enumeration order in older V8 versions.
  17394. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  17395. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  17396. test1[5] = 'de';
  17397. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  17398. return false;
  17399. }
  17400. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  17401. var test2 = {};
  17402. for (var i = 0; i < 10; i++) {
  17403. test2['_' + String.fromCharCode(i)] = i;
  17404. }
  17405. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  17406. return test2[n];
  17407. });
  17408. if (order2.join('') !== '0123456789') {
  17409. return false;
  17410. }
  17411. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  17412. var test3 = {};
  17413. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  17414. test3[letter] = letter;
  17415. });
  17416. if (Object.keys(Object.assign({}, test3)).join('') !==
  17417. 'abcdefghijklmnopqrst') {
  17418. return false;
  17419. }
  17420. return true;
  17421. } catch (err) {
  17422. // We don't expect any of the above to throw, but better to be safe.
  17423. return false;
  17424. }
  17425. }
  17426. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  17427. var from;
  17428. var to = toObject(target);
  17429. var symbols;
  17430. for (var s = 1; s < arguments.length; s++) {
  17431. from = Object(arguments[s]);
  17432. for (var key in from) {
  17433. if (hasOwnProperty.call(from, key)) {
  17434. to[key] = from[key];
  17435. }
  17436. }
  17437. if (getOwnPropertySymbols) {
  17438. symbols = getOwnPropertySymbols(from);
  17439. for (var i = 0; i < symbols.length; i++) {
  17440. if (propIsEnumerable.call(from, symbols[i])) {
  17441. to[symbols[i]] = from[symbols[i]];
  17442. }
  17443. }
  17444. }
  17445. }
  17446. return to;
  17447. };
  17448. /***/ }),
  17449. /***/ "../../node_modules/process/browser.js":
  17450. /*!***********************************************************!*\
  17451. !*** E:/Repos/Babylon.js/node_modules/process/browser.js ***!
  17452. \***********************************************************/
  17453. /*! no static exports found */
  17454. /***/ (function(module, exports) {
  17455. // shim for using process in browser
  17456. var process = module.exports = {};
  17457. // cached from whatever global is present so that test runners that stub it
  17458. // don't break things. But we need to wrap it in a try catch in case it is
  17459. // wrapped in strict mode code which doesn't define any globals. It's inside a
  17460. // function because try/catches deoptimize in certain engines.
  17461. var cachedSetTimeout;
  17462. var cachedClearTimeout;
  17463. function defaultSetTimout() {
  17464. throw new Error('setTimeout has not been defined');
  17465. }
  17466. function defaultClearTimeout () {
  17467. throw new Error('clearTimeout has not been defined');
  17468. }
  17469. (function () {
  17470. try {
  17471. if (typeof setTimeout === 'function') {
  17472. cachedSetTimeout = setTimeout;
  17473. } else {
  17474. cachedSetTimeout = defaultSetTimout;
  17475. }
  17476. } catch (e) {
  17477. cachedSetTimeout = defaultSetTimout;
  17478. }
  17479. try {
  17480. if (typeof clearTimeout === 'function') {
  17481. cachedClearTimeout = clearTimeout;
  17482. } else {
  17483. cachedClearTimeout = defaultClearTimeout;
  17484. }
  17485. } catch (e) {
  17486. cachedClearTimeout = defaultClearTimeout;
  17487. }
  17488. } ())
  17489. function runTimeout(fun) {
  17490. if (cachedSetTimeout === setTimeout) {
  17491. //normal enviroments in sane situations
  17492. return setTimeout(fun, 0);
  17493. }
  17494. // if setTimeout wasn't available but was latter defined
  17495. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  17496. cachedSetTimeout = setTimeout;
  17497. return setTimeout(fun, 0);
  17498. }
  17499. try {
  17500. // when when somebody has screwed with setTimeout but no I.E. maddness
  17501. return cachedSetTimeout(fun, 0);
  17502. } catch(e){
  17503. try {
  17504. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  17505. return cachedSetTimeout.call(null, fun, 0);
  17506. } catch(e){
  17507. // 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
  17508. return cachedSetTimeout.call(this, fun, 0);
  17509. }
  17510. }
  17511. }
  17512. function runClearTimeout(marker) {
  17513. if (cachedClearTimeout === clearTimeout) {
  17514. //normal enviroments in sane situations
  17515. return clearTimeout(marker);
  17516. }
  17517. // if clearTimeout wasn't available but was latter defined
  17518. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  17519. cachedClearTimeout = clearTimeout;
  17520. return clearTimeout(marker);
  17521. }
  17522. try {
  17523. // when when somebody has screwed with setTimeout but no I.E. maddness
  17524. return cachedClearTimeout(marker);
  17525. } catch (e){
  17526. try {
  17527. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  17528. return cachedClearTimeout.call(null, marker);
  17529. } catch (e){
  17530. // 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.
  17531. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  17532. return cachedClearTimeout.call(this, marker);
  17533. }
  17534. }
  17535. }
  17536. var queue = [];
  17537. var draining = false;
  17538. var currentQueue;
  17539. var queueIndex = -1;
  17540. function cleanUpNextTick() {
  17541. if (!draining || !currentQueue) {
  17542. return;
  17543. }
  17544. draining = false;
  17545. if (currentQueue.length) {
  17546. queue = currentQueue.concat(queue);
  17547. } else {
  17548. queueIndex = -1;
  17549. }
  17550. if (queue.length) {
  17551. drainQueue();
  17552. }
  17553. }
  17554. function drainQueue() {
  17555. if (draining) {
  17556. return;
  17557. }
  17558. var timeout = runTimeout(cleanUpNextTick);
  17559. draining = true;
  17560. var len = queue.length;
  17561. while(len) {
  17562. currentQueue = queue;
  17563. queue = [];
  17564. while (++queueIndex < len) {
  17565. if (currentQueue) {
  17566. currentQueue[queueIndex].run();
  17567. }
  17568. }
  17569. queueIndex = -1;
  17570. len = queue.length;
  17571. }
  17572. currentQueue = null;
  17573. draining = false;
  17574. runClearTimeout(timeout);
  17575. }
  17576. process.nextTick = function (fun) {
  17577. var args = new Array(arguments.length - 1);
  17578. if (arguments.length > 1) {
  17579. for (var i = 1; i < arguments.length; i++) {
  17580. args[i - 1] = arguments[i];
  17581. }
  17582. }
  17583. queue.push(new Item(fun, args));
  17584. if (queue.length === 1 && !draining) {
  17585. runTimeout(drainQueue);
  17586. }
  17587. };
  17588. // v8 likes predictible objects
  17589. function Item(fun, array) {
  17590. this.fun = fun;
  17591. this.array = array;
  17592. }
  17593. Item.prototype.run = function () {
  17594. this.fun.apply(null, this.array);
  17595. };
  17596. process.title = 'browser';
  17597. process.browser = true;
  17598. process.env = {};
  17599. process.argv = [];
  17600. process.version = ''; // empty string to avoid regexp issues
  17601. process.versions = {};
  17602. function noop() {}
  17603. process.on = noop;
  17604. process.addListener = noop;
  17605. process.once = noop;
  17606. process.off = noop;
  17607. process.removeListener = noop;
  17608. process.removeAllListeners = noop;
  17609. process.emit = noop;
  17610. process.prependListener = noop;
  17611. process.prependOnceListener = noop;
  17612. process.listeners = function (name) { return [] }
  17613. process.binding = function (name) {
  17614. throw new Error('process.binding is not supported');
  17615. };
  17616. process.cwd = function () { return '/' };
  17617. process.chdir = function (dir) {
  17618. throw new Error('process.chdir is not supported');
  17619. };
  17620. process.umask = function() { return 0; };
  17621. /***/ }),
  17622. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  17623. /*!*********************************************************************!*\
  17624. !*** E:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  17625. \*********************************************************************/
  17626. /*! no static exports found */
  17627. /***/ (function(module, exports, __webpack_require__) {
  17628. "use strict";
  17629. /**
  17630. * Copyright (c) 2013-present, Facebook, Inc.
  17631. *
  17632. * This source code is licensed under the MIT license found in the
  17633. * LICENSE file in the root directory of this source tree.
  17634. */
  17635. var printWarning = function() {};
  17636. if (true) {
  17637. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  17638. var loggedTypeFailures = {};
  17639. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  17640. printWarning = function(text) {
  17641. var message = 'Warning: ' + text;
  17642. if (typeof console !== 'undefined') {
  17643. console.error(message);
  17644. }
  17645. try {
  17646. // --- Welcome to debugging React ---
  17647. // This error was thrown as a convenience so that you can use this stack
  17648. // to find the callsite that caused this warning to fire.
  17649. throw new Error(message);
  17650. } catch (x) {}
  17651. };
  17652. }
  17653. /**
  17654. * Assert that the values match with the type specs.
  17655. * Error messages are memorized and will only be shown once.
  17656. *
  17657. * @param {object} typeSpecs Map of name to a ReactPropType
  17658. * @param {object} values Runtime values that need to be type-checked
  17659. * @param {string} location e.g. "prop", "context", "child context"
  17660. * @param {string} componentName Name of the component for error messages.
  17661. * @param {?Function} getStack Returns the component stack.
  17662. * @private
  17663. */
  17664. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  17665. if (true) {
  17666. for (var typeSpecName in typeSpecs) {
  17667. if (has(typeSpecs, typeSpecName)) {
  17668. var error;
  17669. // Prop type validation may throw. In case they do, we don't want to
  17670. // fail the render phase where it didn't fail before. So we log it.
  17671. // After these have been cleaned up, we'll let them throw.
  17672. try {
  17673. // This is intentionally an invariant that gets caught. It's the same
  17674. // behavior as without this statement except with a better message.
  17675. if (typeof typeSpecs[typeSpecName] !== 'function') {
  17676. var err = Error(
  17677. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  17678. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  17679. );
  17680. err.name = 'Invariant Violation';
  17681. throw err;
  17682. }
  17683. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  17684. } catch (ex) {
  17685. error = ex;
  17686. }
  17687. if (error && !(error instanceof Error)) {
  17688. printWarning(
  17689. (componentName || 'React class') + ': type specification of ' +
  17690. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  17691. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  17692. 'You may have forgotten to pass an argument to the type checker ' +
  17693. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  17694. 'shape all require an argument).'
  17695. );
  17696. }
  17697. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  17698. // Only monitor this failure once because there tends to be a lot of the
  17699. // same error.
  17700. loggedTypeFailures[error.message] = true;
  17701. var stack = getStack ? getStack() : '';
  17702. printWarning(
  17703. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  17704. );
  17705. }
  17706. }
  17707. }
  17708. }
  17709. }
  17710. /**
  17711. * Resets warning cache when testing.
  17712. *
  17713. * @private
  17714. */
  17715. checkPropTypes.resetWarningCache = function() {
  17716. if (true) {
  17717. loggedTypeFailures = {};
  17718. }
  17719. }
  17720. module.exports = checkPropTypes;
  17721. /***/ }),
  17722. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  17723. /*!******************************************************************************!*\
  17724. !*** E:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  17725. \******************************************************************************/
  17726. /*! no static exports found */
  17727. /***/ (function(module, exports, __webpack_require__) {
  17728. "use strict";
  17729. /**
  17730. * Copyright (c) 2013-present, Facebook, Inc.
  17731. *
  17732. * This source code is licensed under the MIT license found in the
  17733. * LICENSE file in the root directory of this source tree.
  17734. */
  17735. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  17736. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  17737. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  17738. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  17739. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  17740. var printWarning = function() {};
  17741. if (true) {
  17742. printWarning = function(text) {
  17743. var message = 'Warning: ' + text;
  17744. if (typeof console !== 'undefined') {
  17745. console.error(message);
  17746. }
  17747. try {
  17748. // --- Welcome to debugging React ---
  17749. // This error was thrown as a convenience so that you can use this stack
  17750. // to find the callsite that caused this warning to fire.
  17751. throw new Error(message);
  17752. } catch (x) {}
  17753. };
  17754. }
  17755. function emptyFunctionThatReturnsNull() {
  17756. return null;
  17757. }
  17758. module.exports = function(isValidElement, throwOnDirectAccess) {
  17759. /* global Symbol */
  17760. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  17761. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  17762. /**
  17763. * Returns the iterator method function contained on the iterable object.
  17764. *
  17765. * Be sure to invoke the function with the iterable as context:
  17766. *
  17767. * var iteratorFn = getIteratorFn(myIterable);
  17768. * if (iteratorFn) {
  17769. * var iterator = iteratorFn.call(myIterable);
  17770. * ...
  17771. * }
  17772. *
  17773. * @param {?object} maybeIterable
  17774. * @return {?function}
  17775. */
  17776. function getIteratorFn(maybeIterable) {
  17777. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  17778. if (typeof iteratorFn === 'function') {
  17779. return iteratorFn;
  17780. }
  17781. }
  17782. /**
  17783. * Collection of methods that allow declaration and validation of props that are
  17784. * supplied to React components. Example usage:
  17785. *
  17786. * var Props = require('ReactPropTypes');
  17787. * var MyArticle = React.createClass({
  17788. * propTypes: {
  17789. * // An optional string prop named "description".
  17790. * description: Props.string,
  17791. *
  17792. * // A required enum prop named "category".
  17793. * category: Props.oneOf(['News','Photos']).isRequired,
  17794. *
  17795. * // A prop named "dialog" that requires an instance of Dialog.
  17796. * dialog: Props.instanceOf(Dialog).isRequired
  17797. * },
  17798. * render: function() { ... }
  17799. * });
  17800. *
  17801. * A more formal specification of how these methods are used:
  17802. *
  17803. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  17804. * decl := ReactPropTypes.{type}(.isRequired)?
  17805. *
  17806. * Each and every declaration produces a function with the same signature. This
  17807. * allows the creation of custom validation functions. For example:
  17808. *
  17809. * var MyLink = React.createClass({
  17810. * propTypes: {
  17811. * // An optional string or URI prop named "href".
  17812. * href: function(props, propName, componentName) {
  17813. * var propValue = props[propName];
  17814. * if (propValue != null && typeof propValue !== 'string' &&
  17815. * !(propValue instanceof URI)) {
  17816. * return new Error(
  17817. * 'Expected a string or an URI for ' + propName + ' in ' +
  17818. * componentName
  17819. * );
  17820. * }
  17821. * }
  17822. * },
  17823. * render: function() {...}
  17824. * });
  17825. *
  17826. * @internal
  17827. */
  17828. var ANONYMOUS = '<<anonymous>>';
  17829. // Important!
  17830. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  17831. var ReactPropTypes = {
  17832. array: createPrimitiveTypeChecker('array'),
  17833. bool: createPrimitiveTypeChecker('boolean'),
  17834. func: createPrimitiveTypeChecker('function'),
  17835. number: createPrimitiveTypeChecker('number'),
  17836. object: createPrimitiveTypeChecker('object'),
  17837. string: createPrimitiveTypeChecker('string'),
  17838. symbol: createPrimitiveTypeChecker('symbol'),
  17839. any: createAnyTypeChecker(),
  17840. arrayOf: createArrayOfTypeChecker,
  17841. element: createElementTypeChecker(),
  17842. elementType: createElementTypeTypeChecker(),
  17843. instanceOf: createInstanceTypeChecker,
  17844. node: createNodeChecker(),
  17845. objectOf: createObjectOfTypeChecker,
  17846. oneOf: createEnumTypeChecker,
  17847. oneOfType: createUnionTypeChecker,
  17848. shape: createShapeTypeChecker,
  17849. exact: createStrictShapeTypeChecker,
  17850. };
  17851. /**
  17852. * inlined Object.is polyfill to avoid requiring consumers ship their own
  17853. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  17854. */
  17855. /*eslint-disable no-self-compare*/
  17856. function is(x, y) {
  17857. // SameValue algorithm
  17858. if (x === y) {
  17859. // Steps 1-5, 7-10
  17860. // Steps 6.b-6.e: +0 != -0
  17861. return x !== 0 || 1 / x === 1 / y;
  17862. } else {
  17863. // Step 6.a: NaN == NaN
  17864. return x !== x && y !== y;
  17865. }
  17866. }
  17867. /*eslint-enable no-self-compare*/
  17868. /**
  17869. * We use an Error-like object for backward compatibility as people may call
  17870. * PropTypes directly and inspect their output. However, we don't use real
  17871. * Errors anymore. We don't inspect their stack anyway, and creating them
  17872. * is prohibitively expensive if they are created too often, such as what
  17873. * happens in oneOfType() for any type before the one that matched.
  17874. */
  17875. function PropTypeError(message) {
  17876. this.message = message;
  17877. this.stack = '';
  17878. }
  17879. // Make `instanceof Error` still work for returned errors.
  17880. PropTypeError.prototype = Error.prototype;
  17881. function createChainableTypeChecker(validate) {
  17882. if (true) {
  17883. var manualPropTypeCallCache = {};
  17884. var manualPropTypeWarningCount = 0;
  17885. }
  17886. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  17887. componentName = componentName || ANONYMOUS;
  17888. propFullName = propFullName || propName;
  17889. if (secret !== ReactPropTypesSecret) {
  17890. if (throwOnDirectAccess) {
  17891. // New behavior only for users of `prop-types` package
  17892. var err = new Error(
  17893. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  17894. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  17895. 'Read more at http://fb.me/use-check-prop-types'
  17896. );
  17897. err.name = 'Invariant Violation';
  17898. throw err;
  17899. } else if ( true && typeof console !== 'undefined') {
  17900. // Old behavior for people using React.PropTypes
  17901. var cacheKey = componentName + ':' + propName;
  17902. if (
  17903. !manualPropTypeCallCache[cacheKey] &&
  17904. // Avoid spamming the console because they are often not actionable except for lib authors
  17905. manualPropTypeWarningCount < 3
  17906. ) {
  17907. printWarning(
  17908. 'You are manually calling a React.PropTypes validation ' +
  17909. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  17910. 'and will throw in the standalone `prop-types` package. ' +
  17911. 'You may be seeing this warning due to a third-party PropTypes ' +
  17912. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  17913. );
  17914. manualPropTypeCallCache[cacheKey] = true;
  17915. manualPropTypeWarningCount++;
  17916. }
  17917. }
  17918. }
  17919. if (props[propName] == null) {
  17920. if (isRequired) {
  17921. if (props[propName] === null) {
  17922. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  17923. }
  17924. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  17925. }
  17926. return null;
  17927. } else {
  17928. return validate(props, propName, componentName, location, propFullName);
  17929. }
  17930. }
  17931. var chainedCheckType = checkType.bind(null, false);
  17932. chainedCheckType.isRequired = checkType.bind(null, true);
  17933. return chainedCheckType;
  17934. }
  17935. function createPrimitiveTypeChecker(expectedType) {
  17936. function validate(props, propName, componentName, location, propFullName, secret) {
  17937. var propValue = props[propName];
  17938. var propType = getPropType(propValue);
  17939. if (propType !== expectedType) {
  17940. // `propValue` being instance of, say, date/regexp, pass the 'object'
  17941. // check, but we can offer a more precise error message here rather than
  17942. // 'of type `object`'.
  17943. var preciseType = getPreciseType(propValue);
  17944. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  17945. }
  17946. return null;
  17947. }
  17948. return createChainableTypeChecker(validate);
  17949. }
  17950. function createAnyTypeChecker() {
  17951. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  17952. }
  17953. function createArrayOfTypeChecker(typeChecker) {
  17954. function validate(props, propName, componentName, location, propFullName) {
  17955. if (typeof typeChecker !== 'function') {
  17956. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  17957. }
  17958. var propValue = props[propName];
  17959. if (!Array.isArray(propValue)) {
  17960. var propType = getPropType(propValue);
  17961. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  17962. }
  17963. for (var i = 0; i < propValue.length; i++) {
  17964. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  17965. if (error instanceof Error) {
  17966. return error;
  17967. }
  17968. }
  17969. return null;
  17970. }
  17971. return createChainableTypeChecker(validate);
  17972. }
  17973. function createElementTypeChecker() {
  17974. function validate(props, propName, componentName, location, propFullName) {
  17975. var propValue = props[propName];
  17976. if (!isValidElement(propValue)) {
  17977. var propType = getPropType(propValue);
  17978. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  17979. }
  17980. return null;
  17981. }
  17982. return createChainableTypeChecker(validate);
  17983. }
  17984. function createElementTypeTypeChecker() {
  17985. function validate(props, propName, componentName, location, propFullName) {
  17986. var propValue = props[propName];
  17987. if (!ReactIs.isValidElementType(propValue)) {
  17988. var propType = getPropType(propValue);
  17989. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
  17990. }
  17991. return null;
  17992. }
  17993. return createChainableTypeChecker(validate);
  17994. }
  17995. function createInstanceTypeChecker(expectedClass) {
  17996. function validate(props, propName, componentName, location, propFullName) {
  17997. if (!(props[propName] instanceof expectedClass)) {
  17998. var expectedClassName = expectedClass.name || ANONYMOUS;
  17999. var actualClassName = getClassName(props[propName]);
  18000. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  18001. }
  18002. return null;
  18003. }
  18004. return createChainableTypeChecker(validate);
  18005. }
  18006. function createEnumTypeChecker(expectedValues) {
  18007. if (!Array.isArray(expectedValues)) {
  18008. if (true) {
  18009. if (arguments.length > 1) {
  18010. printWarning(
  18011. 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
  18012. 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
  18013. );
  18014. } else {
  18015. printWarning('Invalid argument supplied to oneOf, expected an array.');
  18016. }
  18017. }
  18018. return emptyFunctionThatReturnsNull;
  18019. }
  18020. function validate(props, propName, componentName, location, propFullName) {
  18021. var propValue = props[propName];
  18022. for (var i = 0; i < expectedValues.length; i++) {
  18023. if (is(propValue, expectedValues[i])) {
  18024. return null;
  18025. }
  18026. }
  18027. var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
  18028. var type = getPreciseType(value);
  18029. if (type === 'symbol') {
  18030. return String(value);
  18031. }
  18032. return value;
  18033. });
  18034. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  18035. }
  18036. return createChainableTypeChecker(validate);
  18037. }
  18038. function createObjectOfTypeChecker(typeChecker) {
  18039. function validate(props, propName, componentName, location, propFullName) {
  18040. if (typeof typeChecker !== 'function') {
  18041. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  18042. }
  18043. var propValue = props[propName];
  18044. var propType = getPropType(propValue);
  18045. if (propType !== 'object') {
  18046. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  18047. }
  18048. for (var key in propValue) {
  18049. if (has(propValue, key)) {
  18050. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  18051. if (error instanceof Error) {
  18052. return error;
  18053. }
  18054. }
  18055. }
  18056. return null;
  18057. }
  18058. return createChainableTypeChecker(validate);
  18059. }
  18060. function createUnionTypeChecker(arrayOfTypeCheckers) {
  18061. if (!Array.isArray(arrayOfTypeCheckers)) {
  18062. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  18063. return emptyFunctionThatReturnsNull;
  18064. }
  18065. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  18066. var checker = arrayOfTypeCheckers[i];
  18067. if (typeof checker !== 'function') {
  18068. printWarning(
  18069. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  18070. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  18071. );
  18072. return emptyFunctionThatReturnsNull;
  18073. }
  18074. }
  18075. function validate(props, propName, componentName, location, propFullName) {
  18076. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  18077. var checker = arrayOfTypeCheckers[i];
  18078. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  18079. return null;
  18080. }
  18081. }
  18082. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  18083. }
  18084. return createChainableTypeChecker(validate);
  18085. }
  18086. function createNodeChecker() {
  18087. function validate(props, propName, componentName, location, propFullName) {
  18088. if (!isNode(props[propName])) {
  18089. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  18090. }
  18091. return null;
  18092. }
  18093. return createChainableTypeChecker(validate);
  18094. }
  18095. function createShapeTypeChecker(shapeTypes) {
  18096. function validate(props, propName, componentName, location, propFullName) {
  18097. var propValue = props[propName];
  18098. var propType = getPropType(propValue);
  18099. if (propType !== 'object') {
  18100. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  18101. }
  18102. for (var key in shapeTypes) {
  18103. var checker = shapeTypes[key];
  18104. if (!checker) {
  18105. continue;
  18106. }
  18107. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  18108. if (error) {
  18109. return error;
  18110. }
  18111. }
  18112. return null;
  18113. }
  18114. return createChainableTypeChecker(validate);
  18115. }
  18116. function createStrictShapeTypeChecker(shapeTypes) {
  18117. function validate(props, propName, componentName, location, propFullName) {
  18118. var propValue = props[propName];
  18119. var propType = getPropType(propValue);
  18120. if (propType !== 'object') {
  18121. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  18122. }
  18123. // We need to check all keys in case some are required but missing from
  18124. // props.
  18125. var allKeys = assign({}, props[propName], shapeTypes);
  18126. for (var key in allKeys) {
  18127. var checker = shapeTypes[key];
  18128. if (!checker) {
  18129. return new PropTypeError(
  18130. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  18131. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  18132. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  18133. );
  18134. }
  18135. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  18136. if (error) {
  18137. return error;
  18138. }
  18139. }
  18140. return null;
  18141. }
  18142. return createChainableTypeChecker(validate);
  18143. }
  18144. function isNode(propValue) {
  18145. switch (typeof propValue) {
  18146. case 'number':
  18147. case 'string':
  18148. case 'undefined':
  18149. return true;
  18150. case 'boolean':
  18151. return !propValue;
  18152. case 'object':
  18153. if (Array.isArray(propValue)) {
  18154. return propValue.every(isNode);
  18155. }
  18156. if (propValue === null || isValidElement(propValue)) {
  18157. return true;
  18158. }
  18159. var iteratorFn = getIteratorFn(propValue);
  18160. if (iteratorFn) {
  18161. var iterator = iteratorFn.call(propValue);
  18162. var step;
  18163. if (iteratorFn !== propValue.entries) {
  18164. while (!(step = iterator.next()).done) {
  18165. if (!isNode(step.value)) {
  18166. return false;
  18167. }
  18168. }
  18169. } else {
  18170. // Iterator will provide entry [k,v] tuples rather than values.
  18171. while (!(step = iterator.next()).done) {
  18172. var entry = step.value;
  18173. if (entry) {
  18174. if (!isNode(entry[1])) {
  18175. return false;
  18176. }
  18177. }
  18178. }
  18179. }
  18180. } else {
  18181. return false;
  18182. }
  18183. return true;
  18184. default:
  18185. return false;
  18186. }
  18187. }
  18188. function isSymbol(propType, propValue) {
  18189. // Native Symbol.
  18190. if (propType === 'symbol') {
  18191. return true;
  18192. }
  18193. // falsy value can't be a Symbol
  18194. if (!propValue) {
  18195. return false;
  18196. }
  18197. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  18198. if (propValue['@@toStringTag'] === 'Symbol') {
  18199. return true;
  18200. }
  18201. // Fallback for non-spec compliant Symbols which are polyfilled.
  18202. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  18203. return true;
  18204. }
  18205. return false;
  18206. }
  18207. // Equivalent of `typeof` but with special handling for array and regexp.
  18208. function getPropType(propValue) {
  18209. var propType = typeof propValue;
  18210. if (Array.isArray(propValue)) {
  18211. return 'array';
  18212. }
  18213. if (propValue instanceof RegExp) {
  18214. // Old webkits (at least until Android 4.0) return 'function' rather than
  18215. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  18216. // passes PropTypes.object.
  18217. return 'object';
  18218. }
  18219. if (isSymbol(propType, propValue)) {
  18220. return 'symbol';
  18221. }
  18222. return propType;
  18223. }
  18224. // This handles more types than `getPropType`. Only used for error messages.
  18225. // See `createPrimitiveTypeChecker`.
  18226. function getPreciseType(propValue) {
  18227. if (typeof propValue === 'undefined' || propValue === null) {
  18228. return '' + propValue;
  18229. }
  18230. var propType = getPropType(propValue);
  18231. if (propType === 'object') {
  18232. if (propValue instanceof Date) {
  18233. return 'date';
  18234. } else if (propValue instanceof RegExp) {
  18235. return 'regexp';
  18236. }
  18237. }
  18238. return propType;
  18239. }
  18240. // Returns a string that is postfixed to a warning about an invalid type.
  18241. // For example, "undefined" or "of type array"
  18242. function getPostfixForTypeWarning(value) {
  18243. var type = getPreciseType(value);
  18244. switch (type) {
  18245. case 'array':
  18246. case 'object':
  18247. return 'an ' + type;
  18248. case 'boolean':
  18249. case 'date':
  18250. case 'regexp':
  18251. return 'a ' + type;
  18252. default:
  18253. return type;
  18254. }
  18255. }
  18256. // Returns class name of the object, if any.
  18257. function getClassName(propValue) {
  18258. if (!propValue.constructor || !propValue.constructor.name) {
  18259. return ANONYMOUS;
  18260. }
  18261. return propValue.constructor.name;
  18262. }
  18263. ReactPropTypes.checkPropTypes = checkPropTypes;
  18264. ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  18265. ReactPropTypes.PropTypes = ReactPropTypes;
  18266. return ReactPropTypes;
  18267. };
  18268. /***/ }),
  18269. /***/ "../../node_modules/prop-types/index.js":
  18270. /*!************************************************************!*\
  18271. !*** E:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  18272. \************************************************************/
  18273. /*! no static exports found */
  18274. /***/ (function(module, exports, __webpack_require__) {
  18275. /**
  18276. * Copyright (c) 2013-present, Facebook, Inc.
  18277. *
  18278. * This source code is licensed under the MIT license found in the
  18279. * LICENSE file in the root directory of this source tree.
  18280. */
  18281. if (true) {
  18282. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  18283. // By explicitly using `prop-types` you are opting into new development behavior.
  18284. // http://fb.me/prop-types-in-prod
  18285. var throwOnDirectAccess = true;
  18286. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
  18287. } else {}
  18288. /***/ }),
  18289. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  18290. /*!*******************************************************************************!*\
  18291. !*** E:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  18292. \*******************************************************************************/
  18293. /*! no static exports found */
  18294. /***/ (function(module, exports, __webpack_require__) {
  18295. "use strict";
  18296. /**
  18297. * Copyright (c) 2013-present, Facebook, Inc.
  18298. *
  18299. * This source code is licensed under the MIT license found in the
  18300. * LICENSE file in the root directory of this source tree.
  18301. */
  18302. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  18303. module.exports = ReactPropTypesSecret;
  18304. /***/ }),
  18305. /***/ "../../node_modules/react-color/lib/components/alpha/Alpha.js":
  18306. /*!**********************************************************************************!*\
  18307. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/alpha/Alpha.js ***!
  18308. \**********************************************************************************/
  18309. /*! no static exports found */
  18310. /***/ (function(module, exports, __webpack_require__) {
  18311. "use strict";
  18312. Object.defineProperty(exports, "__esModule", {
  18313. value: true
  18314. });
  18315. exports.AlphaPicker = undefined;
  18316. 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; };
  18317. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18318. var _react2 = _interopRequireDefault(_react);
  18319. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18320. var _reactcss2 = _interopRequireDefault(_reactcss);
  18321. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18322. var _AlphaPointer = __webpack_require__(/*! ./AlphaPointer */ "../../node_modules/react-color/lib/components/alpha/AlphaPointer.js");
  18323. var _AlphaPointer2 = _interopRequireDefault(_AlphaPointer);
  18324. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18325. var AlphaPicker = exports.AlphaPicker = function AlphaPicker(_ref) {
  18326. var rgb = _ref.rgb,
  18327. hsl = _ref.hsl,
  18328. width = _ref.width,
  18329. height = _ref.height,
  18330. onChange = _ref.onChange,
  18331. direction = _ref.direction,
  18332. style = _ref.style,
  18333. renderers = _ref.renderers,
  18334. pointer = _ref.pointer,
  18335. _ref$className = _ref.className,
  18336. className = _ref$className === undefined ? '' : _ref$className;
  18337. var styles = (0, _reactcss2.default)({
  18338. 'default': {
  18339. picker: {
  18340. position: 'relative',
  18341. width: width,
  18342. height: height
  18343. },
  18344. alpha: {
  18345. radius: '2px',
  18346. style: style
  18347. }
  18348. }
  18349. });
  18350. return _react2.default.createElement(
  18351. 'div',
  18352. { style: styles.picker, className: 'alpha-picker ' + className },
  18353. _react2.default.createElement(_common.Alpha, _extends({}, styles.alpha, {
  18354. rgb: rgb,
  18355. hsl: hsl,
  18356. pointer: pointer,
  18357. renderers: renderers,
  18358. onChange: onChange,
  18359. direction: direction
  18360. }))
  18361. );
  18362. };
  18363. AlphaPicker.defaultProps = {
  18364. width: '316px',
  18365. height: '16px',
  18366. direction: 'horizontal',
  18367. pointer: _AlphaPointer2.default
  18368. };
  18369. exports.default = (0, _common.ColorWrap)(AlphaPicker);
  18370. /***/ }),
  18371. /***/ "../../node_modules/react-color/lib/components/alpha/AlphaPointer.js":
  18372. /*!*****************************************************************************************!*\
  18373. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/alpha/AlphaPointer.js ***!
  18374. \*****************************************************************************************/
  18375. /*! no static exports found */
  18376. /***/ (function(module, exports, __webpack_require__) {
  18377. "use strict";
  18378. Object.defineProperty(exports, "__esModule", {
  18379. value: true
  18380. });
  18381. exports.AlphaPointer = undefined;
  18382. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18383. var _react2 = _interopRequireDefault(_react);
  18384. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18385. var _reactcss2 = _interopRequireDefault(_reactcss);
  18386. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18387. var AlphaPointer = exports.AlphaPointer = function AlphaPointer(_ref) {
  18388. var direction = _ref.direction;
  18389. var styles = (0, _reactcss2.default)({
  18390. 'default': {
  18391. picker: {
  18392. width: '18px',
  18393. height: '18px',
  18394. borderRadius: '50%',
  18395. transform: 'translate(-9px, -1px)',
  18396. backgroundColor: 'rgb(248, 248, 248)',
  18397. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  18398. }
  18399. },
  18400. 'vertical': {
  18401. picker: {
  18402. transform: 'translate(-3px, -9px)'
  18403. }
  18404. }
  18405. }, { vertical: direction === 'vertical' });
  18406. return _react2.default.createElement('div', { style: styles.picker });
  18407. };
  18408. exports.default = AlphaPointer;
  18409. /***/ }),
  18410. /***/ "../../node_modules/react-color/lib/components/block/Block.js":
  18411. /*!**********************************************************************************!*\
  18412. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/block/Block.js ***!
  18413. \**********************************************************************************/
  18414. /*! no static exports found */
  18415. /***/ (function(module, exports, __webpack_require__) {
  18416. "use strict";
  18417. Object.defineProperty(exports, "__esModule", {
  18418. value: true
  18419. });
  18420. exports.Block = undefined;
  18421. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18422. var _react2 = _interopRequireDefault(_react);
  18423. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  18424. var _propTypes2 = _interopRequireDefault(_propTypes);
  18425. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18426. var _reactcss2 = _interopRequireDefault(_reactcss);
  18427. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  18428. var _merge2 = _interopRequireDefault(_merge);
  18429. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  18430. var _color2 = _interopRequireDefault(_color);
  18431. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18432. var _BlockSwatches = __webpack_require__(/*! ./BlockSwatches */ "../../node_modules/react-color/lib/components/block/BlockSwatches.js");
  18433. var _BlockSwatches2 = _interopRequireDefault(_BlockSwatches);
  18434. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18435. var Block = exports.Block = function Block(_ref) {
  18436. var onChange = _ref.onChange,
  18437. onSwatchHover = _ref.onSwatchHover,
  18438. hex = _ref.hex,
  18439. colors = _ref.colors,
  18440. width = _ref.width,
  18441. triangle = _ref.triangle,
  18442. _ref$styles = _ref.styles,
  18443. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  18444. _ref$className = _ref.className,
  18445. className = _ref$className === undefined ? '' : _ref$className;
  18446. var transparent = hex === 'transparent';
  18447. var handleChange = function handleChange(hexCode, e) {
  18448. _color2.default.isValidHex(hexCode) && onChange({
  18449. hex: hexCode,
  18450. source: 'hex'
  18451. }, e);
  18452. };
  18453. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  18454. 'default': {
  18455. card: {
  18456. width: width,
  18457. background: '#fff',
  18458. boxShadow: '0 1px rgba(0,0,0,.1)',
  18459. borderRadius: '6px',
  18460. position: 'relative'
  18461. },
  18462. head: {
  18463. height: '110px',
  18464. background: hex,
  18465. borderRadius: '6px 6px 0 0',
  18466. display: 'flex',
  18467. alignItems: 'center',
  18468. justifyContent: 'center',
  18469. position: 'relative'
  18470. },
  18471. body: {
  18472. padding: '10px'
  18473. },
  18474. label: {
  18475. fontSize: '18px',
  18476. color: _color2.default.getContrastingColor(hex),
  18477. position: 'relative'
  18478. },
  18479. triangle: {
  18480. width: '0px',
  18481. height: '0px',
  18482. borderStyle: 'solid',
  18483. borderWidth: '0 10px 10px 10px',
  18484. borderColor: 'transparent transparent ' + hex + ' transparent',
  18485. position: 'absolute',
  18486. top: '-10px',
  18487. left: '50%',
  18488. marginLeft: '-10px'
  18489. },
  18490. input: {
  18491. width: '100%',
  18492. fontSize: '12px',
  18493. color: '#666',
  18494. border: '0px',
  18495. outline: 'none',
  18496. height: '22px',
  18497. boxShadow: 'inset 0 0 0 1px #ddd',
  18498. borderRadius: '4px',
  18499. padding: '0 7px',
  18500. boxSizing: 'border-box'
  18501. }
  18502. },
  18503. 'hide-triangle': {
  18504. triangle: {
  18505. display: 'none'
  18506. }
  18507. }
  18508. }, passedStyles), { 'hide-triangle': triangle === 'hide' });
  18509. return _react2.default.createElement(
  18510. 'div',
  18511. { style: styles.card, className: 'block-picker ' + className },
  18512. _react2.default.createElement('div', { style: styles.triangle }),
  18513. _react2.default.createElement(
  18514. 'div',
  18515. { style: styles.head },
  18516. transparent && _react2.default.createElement(_common.Checkboard, { borderRadius: '6px 6px 0 0' }),
  18517. _react2.default.createElement(
  18518. 'div',
  18519. { style: styles.label },
  18520. hex
  18521. )
  18522. ),
  18523. _react2.default.createElement(
  18524. 'div',
  18525. { style: styles.body },
  18526. _react2.default.createElement(_BlockSwatches2.default, { colors: colors, onClick: handleChange, onSwatchHover: onSwatchHover }),
  18527. _react2.default.createElement(_common.EditableInput, {
  18528. style: { input: styles.input },
  18529. value: hex,
  18530. onChange: handleChange
  18531. })
  18532. )
  18533. );
  18534. };
  18535. Block.propTypes = {
  18536. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  18537. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  18538. triangle: _propTypes2.default.oneOf(['top', 'hide']),
  18539. styles: _propTypes2.default.object
  18540. };
  18541. Block.defaultProps = {
  18542. width: 170,
  18543. colors: ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'],
  18544. triangle: 'top',
  18545. styles: {}
  18546. };
  18547. exports.default = (0, _common.ColorWrap)(Block);
  18548. /***/ }),
  18549. /***/ "../../node_modules/react-color/lib/components/block/BlockSwatches.js":
  18550. /*!******************************************************************************************!*\
  18551. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/block/BlockSwatches.js ***!
  18552. \******************************************************************************************/
  18553. /*! no static exports found */
  18554. /***/ (function(module, exports, __webpack_require__) {
  18555. "use strict";
  18556. Object.defineProperty(exports, "__esModule", {
  18557. value: true
  18558. });
  18559. exports.BlockSwatches = undefined;
  18560. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18561. var _react2 = _interopRequireDefault(_react);
  18562. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18563. var _reactcss2 = _interopRequireDefault(_reactcss);
  18564. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  18565. var _map2 = _interopRequireDefault(_map);
  18566. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18567. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18568. var BlockSwatches = exports.BlockSwatches = function BlockSwatches(_ref) {
  18569. var colors = _ref.colors,
  18570. onClick = _ref.onClick,
  18571. onSwatchHover = _ref.onSwatchHover;
  18572. var styles = (0, _reactcss2.default)({
  18573. 'default': {
  18574. swatches: {
  18575. marginRight: '-10px'
  18576. },
  18577. swatch: {
  18578. width: '22px',
  18579. height: '22px',
  18580. float: 'left',
  18581. marginRight: '10px',
  18582. marginBottom: '10px',
  18583. borderRadius: '4px'
  18584. },
  18585. clear: {
  18586. clear: 'both'
  18587. }
  18588. }
  18589. });
  18590. return _react2.default.createElement(
  18591. 'div',
  18592. { style: styles.swatches },
  18593. (0, _map2.default)(colors, function (c) {
  18594. return _react2.default.createElement(_common.Swatch, {
  18595. key: c,
  18596. color: c,
  18597. style: styles.swatch,
  18598. onClick: onClick,
  18599. onHover: onSwatchHover,
  18600. focusStyle: {
  18601. boxShadow: '0 0 4px ' + c
  18602. }
  18603. });
  18604. }),
  18605. _react2.default.createElement('div', { style: styles.clear })
  18606. );
  18607. };
  18608. exports.default = BlockSwatches;
  18609. /***/ }),
  18610. /***/ "../../node_modules/react-color/lib/components/chrome/Chrome.js":
  18611. /*!************************************************************************************!*\
  18612. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/Chrome.js ***!
  18613. \************************************************************************************/
  18614. /*! no static exports found */
  18615. /***/ (function(module, exports, __webpack_require__) {
  18616. "use strict";
  18617. Object.defineProperty(exports, "__esModule", {
  18618. value: true
  18619. });
  18620. exports.Chrome = undefined;
  18621. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18622. var _react2 = _interopRequireDefault(_react);
  18623. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  18624. var _propTypes2 = _interopRequireDefault(_propTypes);
  18625. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18626. var _reactcss2 = _interopRequireDefault(_reactcss);
  18627. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  18628. var _merge2 = _interopRequireDefault(_merge);
  18629. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18630. var _ChromeFields = __webpack_require__(/*! ./ChromeFields */ "../../node_modules/react-color/lib/components/chrome/ChromeFields.js");
  18631. var _ChromeFields2 = _interopRequireDefault(_ChromeFields);
  18632. var _ChromePointer = __webpack_require__(/*! ./ChromePointer */ "../../node_modules/react-color/lib/components/chrome/ChromePointer.js");
  18633. var _ChromePointer2 = _interopRequireDefault(_ChromePointer);
  18634. var _ChromePointerCircle = __webpack_require__(/*! ./ChromePointerCircle */ "../../node_modules/react-color/lib/components/chrome/ChromePointerCircle.js");
  18635. var _ChromePointerCircle2 = _interopRequireDefault(_ChromePointerCircle);
  18636. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18637. var Chrome = exports.Chrome = function Chrome(_ref) {
  18638. var width = _ref.width,
  18639. onChange = _ref.onChange,
  18640. disableAlpha = _ref.disableAlpha,
  18641. rgb = _ref.rgb,
  18642. hsl = _ref.hsl,
  18643. hsv = _ref.hsv,
  18644. hex = _ref.hex,
  18645. renderers = _ref.renderers,
  18646. _ref$styles = _ref.styles,
  18647. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  18648. _ref$className = _ref.className,
  18649. className = _ref$className === undefined ? '' : _ref$className,
  18650. defaultView = _ref.defaultView;
  18651. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  18652. 'default': {
  18653. picker: {
  18654. width: width,
  18655. background: '#fff',
  18656. borderRadius: '2px',
  18657. boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)',
  18658. boxSizing: 'initial',
  18659. fontFamily: 'Menlo'
  18660. },
  18661. saturation: {
  18662. width: '100%',
  18663. paddingBottom: '55%',
  18664. position: 'relative',
  18665. borderRadius: '2px 2px 0 0',
  18666. overflow: 'hidden'
  18667. },
  18668. Saturation: {
  18669. radius: '2px 2px 0 0'
  18670. },
  18671. body: {
  18672. padding: '16px 16px 12px'
  18673. },
  18674. controls: {
  18675. display: 'flex'
  18676. },
  18677. color: {
  18678. width: '32px'
  18679. },
  18680. swatch: {
  18681. marginTop: '6px',
  18682. width: '16px',
  18683. height: '16px',
  18684. borderRadius: '8px',
  18685. position: 'relative',
  18686. overflow: 'hidden'
  18687. },
  18688. active: {
  18689. absolute: '0px 0px 0px 0px',
  18690. borderRadius: '8px',
  18691. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)',
  18692. background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')',
  18693. zIndex: '2'
  18694. },
  18695. toggles: {
  18696. flex: '1'
  18697. },
  18698. hue: {
  18699. height: '10px',
  18700. position: 'relative',
  18701. marginBottom: '8px'
  18702. },
  18703. Hue: {
  18704. radius: '2px'
  18705. },
  18706. alpha: {
  18707. height: '10px',
  18708. position: 'relative'
  18709. },
  18710. Alpha: {
  18711. radius: '2px'
  18712. }
  18713. },
  18714. 'disableAlpha': {
  18715. color: {
  18716. width: '22px'
  18717. },
  18718. alpha: {
  18719. display: 'none'
  18720. },
  18721. hue: {
  18722. marginBottom: '0px'
  18723. },
  18724. swatch: {
  18725. width: '10px',
  18726. height: '10px',
  18727. marginTop: '0px'
  18728. }
  18729. }
  18730. }, passedStyles), { disableAlpha: disableAlpha });
  18731. return _react2.default.createElement(
  18732. 'div',
  18733. { style: styles.picker, className: 'chrome-picker ' + className },
  18734. _react2.default.createElement(
  18735. 'div',
  18736. { style: styles.saturation },
  18737. _react2.default.createElement(_common.Saturation, {
  18738. style: styles.Saturation,
  18739. hsl: hsl,
  18740. hsv: hsv,
  18741. pointer: _ChromePointerCircle2.default,
  18742. onChange: onChange
  18743. })
  18744. ),
  18745. _react2.default.createElement(
  18746. 'div',
  18747. { style: styles.body },
  18748. _react2.default.createElement(
  18749. 'div',
  18750. { style: styles.controls, className: 'flexbox-fix' },
  18751. _react2.default.createElement(
  18752. 'div',
  18753. { style: styles.color },
  18754. _react2.default.createElement(
  18755. 'div',
  18756. { style: styles.swatch },
  18757. _react2.default.createElement('div', { style: styles.active }),
  18758. _react2.default.createElement(_common.Checkboard, { renderers: renderers })
  18759. )
  18760. ),
  18761. _react2.default.createElement(
  18762. 'div',
  18763. { style: styles.toggles },
  18764. _react2.default.createElement(
  18765. 'div',
  18766. { style: styles.hue },
  18767. _react2.default.createElement(_common.Hue, {
  18768. style: styles.Hue,
  18769. hsl: hsl,
  18770. pointer: _ChromePointer2.default,
  18771. onChange: onChange
  18772. })
  18773. ),
  18774. _react2.default.createElement(
  18775. 'div',
  18776. { style: styles.alpha },
  18777. _react2.default.createElement(_common.Alpha, {
  18778. style: styles.Alpha,
  18779. rgb: rgb,
  18780. hsl: hsl,
  18781. pointer: _ChromePointer2.default,
  18782. renderers: renderers,
  18783. onChange: onChange
  18784. })
  18785. )
  18786. )
  18787. ),
  18788. _react2.default.createElement(_ChromeFields2.default, {
  18789. rgb: rgb,
  18790. hsl: hsl,
  18791. hex: hex,
  18792. view: defaultView,
  18793. onChange: onChange,
  18794. disableAlpha: disableAlpha
  18795. })
  18796. )
  18797. );
  18798. };
  18799. Chrome.propTypes = {
  18800. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  18801. disableAlpha: _propTypes2.default.bool,
  18802. styles: _propTypes2.default.object,
  18803. defaultView: _propTypes2.default.oneOf(["hex", "rgb", "hsl"])
  18804. };
  18805. Chrome.defaultProps = {
  18806. width: 225,
  18807. disableAlpha: false,
  18808. styles: {}
  18809. };
  18810. exports.default = (0, _common.ColorWrap)(Chrome);
  18811. /***/ }),
  18812. /***/ "../../node_modules/react-color/lib/components/chrome/ChromeFields.js":
  18813. /*!******************************************************************************************!*\
  18814. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromeFields.js ***!
  18815. \******************************************************************************************/
  18816. /*! no static exports found */
  18817. /***/ (function(module, exports, __webpack_require__) {
  18818. "use strict";
  18819. Object.defineProperty(exports, "__esModule", {
  18820. value: true
  18821. });
  18822. exports.ChromeFields = undefined;
  18823. 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; }; }();
  18824. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18825. var _react2 = _interopRequireDefault(_react);
  18826. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18827. var _reactcss2 = _interopRequireDefault(_reactcss);
  18828. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  18829. var _color2 = _interopRequireDefault(_color);
  18830. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18831. var _UnfoldMoreHorizontalIcon = __webpack_require__(/*! @icons/material/UnfoldMoreHorizontalIcon */ "../../node_modules/@icons/material/UnfoldMoreHorizontalIcon.js");
  18832. var _UnfoldMoreHorizontalIcon2 = _interopRequireDefault(_UnfoldMoreHorizontalIcon);
  18833. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18834. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  18835. 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; }
  18836. 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 */
  18837. var ChromeFields = exports.ChromeFields = function (_React$Component) {
  18838. _inherits(ChromeFields, _React$Component);
  18839. function ChromeFields(props) {
  18840. _classCallCheck(this, ChromeFields);
  18841. var _this = _possibleConstructorReturn(this, (ChromeFields.__proto__ || Object.getPrototypeOf(ChromeFields)).call(this));
  18842. _this.toggleViews = function () {
  18843. if (_this.state.view === 'hex') {
  18844. _this.setState({ view: 'rgb' });
  18845. } else if (_this.state.view === 'rgb') {
  18846. _this.setState({ view: 'hsl' });
  18847. } else if (_this.state.view === 'hsl') {
  18848. if (_this.props.hsl.a === 1) {
  18849. _this.setState({ view: 'hex' });
  18850. } else {
  18851. _this.setState({ view: 'rgb' });
  18852. }
  18853. }
  18854. };
  18855. _this.handleChange = function (data, e) {
  18856. if (data.hex) {
  18857. _color2.default.isValidHex(data.hex) && _this.props.onChange({
  18858. hex: data.hex,
  18859. source: 'hex'
  18860. }, e);
  18861. } else if (data.r || data.g || data.b) {
  18862. _this.props.onChange({
  18863. r: data.r || _this.props.rgb.r,
  18864. g: data.g || _this.props.rgb.g,
  18865. b: data.b || _this.props.rgb.b,
  18866. source: 'rgb'
  18867. }, e);
  18868. } else if (data.a) {
  18869. if (data.a < 0) {
  18870. data.a = 0;
  18871. } else if (data.a > 1) {
  18872. data.a = 1;
  18873. }
  18874. _this.props.onChange({
  18875. h: _this.props.hsl.h,
  18876. s: _this.props.hsl.s,
  18877. l: _this.props.hsl.l,
  18878. a: Math.round(data.a * 100) / 100,
  18879. source: 'rgb'
  18880. }, e);
  18881. } else if (data.h || data.s || data.l) {
  18882. // Remove any occurances of '%'.
  18883. if (typeof data.s === 'string' && data.s.includes('%')) {
  18884. data.s = data.s.replace('%', '');
  18885. }
  18886. if (typeof data.l === 'string' && data.l.includes('%')) {
  18887. data.l = data.l.replace('%', '');
  18888. }
  18889. _this.props.onChange({
  18890. h: data.h || _this.props.hsl.h,
  18891. s: Number(data.s && data.s || _this.props.hsl.s),
  18892. l: Number(data.l && data.l || _this.props.hsl.l),
  18893. source: 'hsl'
  18894. }, e);
  18895. }
  18896. };
  18897. _this.showHighlight = function (e) {
  18898. e.currentTarget.style.background = '#eee';
  18899. };
  18900. _this.hideHighlight = function (e) {
  18901. e.currentTarget.style.background = 'transparent';
  18902. };
  18903. if (props.hsl.a !== 1 && props.view === "hex") {
  18904. _this.state = {
  18905. view: "rgb"
  18906. };
  18907. } else {
  18908. _this.state = {
  18909. view: props.view
  18910. };
  18911. }
  18912. return _this;
  18913. }
  18914. _createClass(ChromeFields, [{
  18915. key: 'render',
  18916. value: function render() {
  18917. var _this2 = this;
  18918. var styles = (0, _reactcss2.default)({
  18919. 'default': {
  18920. wrap: {
  18921. paddingTop: '16px',
  18922. display: 'flex'
  18923. },
  18924. fields: {
  18925. flex: '1',
  18926. display: 'flex',
  18927. marginLeft: '-6px'
  18928. },
  18929. field: {
  18930. paddingLeft: '6px',
  18931. width: '100%'
  18932. },
  18933. alpha: {
  18934. paddingLeft: '6px',
  18935. width: '100%'
  18936. },
  18937. toggle: {
  18938. width: '32px',
  18939. textAlign: 'right',
  18940. position: 'relative'
  18941. },
  18942. icon: {
  18943. marginRight: '-4px',
  18944. marginTop: '12px',
  18945. cursor: 'pointer',
  18946. position: 'relative'
  18947. },
  18948. iconHighlight: {
  18949. position: 'absolute',
  18950. width: '24px',
  18951. height: '28px',
  18952. background: '#eee',
  18953. borderRadius: '4px',
  18954. top: '10px',
  18955. left: '12px',
  18956. display: 'none'
  18957. },
  18958. input: {
  18959. fontSize: '11px',
  18960. color: '#333',
  18961. width: '100%',
  18962. borderRadius: '2px',
  18963. border: 'none',
  18964. boxShadow: 'inset 0 0 0 1px #dadada',
  18965. height: '21px',
  18966. textAlign: 'center'
  18967. },
  18968. label: {
  18969. textTransform: 'uppercase',
  18970. fontSize: '11px',
  18971. lineHeight: '11px',
  18972. color: '#969696',
  18973. textAlign: 'center',
  18974. display: 'block',
  18975. marginTop: '12px'
  18976. },
  18977. svg: {
  18978. fill: '#333',
  18979. width: '24px',
  18980. height: '24px',
  18981. border: '1px transparent solid',
  18982. borderRadius: '5px'
  18983. }
  18984. },
  18985. 'disableAlpha': {
  18986. alpha: {
  18987. display: 'none'
  18988. }
  18989. }
  18990. }, this.props, this.state);
  18991. var fields = void 0;
  18992. if (this.state.view === 'hex') {
  18993. fields = _react2.default.createElement(
  18994. 'div',
  18995. { style: styles.fields, className: 'flexbox-fix' },
  18996. _react2.default.createElement(
  18997. 'div',
  18998. { style: styles.field },
  18999. _react2.default.createElement(_common.EditableInput, {
  19000. style: { input: styles.input, label: styles.label },
  19001. label: 'hex', value: this.props.hex,
  19002. onChange: this.handleChange
  19003. })
  19004. )
  19005. );
  19006. } else if (this.state.view === 'rgb') {
  19007. fields = _react2.default.createElement(
  19008. 'div',
  19009. { style: styles.fields, className: 'flexbox-fix' },
  19010. _react2.default.createElement(
  19011. 'div',
  19012. { style: styles.field },
  19013. _react2.default.createElement(_common.EditableInput, {
  19014. style: { input: styles.input, label: styles.label },
  19015. label: 'r',
  19016. value: this.props.rgb.r,
  19017. onChange: this.handleChange
  19018. })
  19019. ),
  19020. _react2.default.createElement(
  19021. 'div',
  19022. { style: styles.field },
  19023. _react2.default.createElement(_common.EditableInput, {
  19024. style: { input: styles.input, label: styles.label },
  19025. label: 'g',
  19026. value: this.props.rgb.g,
  19027. onChange: this.handleChange
  19028. })
  19029. ),
  19030. _react2.default.createElement(
  19031. 'div',
  19032. { style: styles.field },
  19033. _react2.default.createElement(_common.EditableInput, {
  19034. style: { input: styles.input, label: styles.label },
  19035. label: 'b',
  19036. value: this.props.rgb.b,
  19037. onChange: this.handleChange
  19038. })
  19039. ),
  19040. _react2.default.createElement(
  19041. 'div',
  19042. { style: styles.alpha },
  19043. _react2.default.createElement(_common.EditableInput, {
  19044. style: { input: styles.input, label: styles.label },
  19045. label: 'a',
  19046. value: this.props.rgb.a,
  19047. arrowOffset: 0.01,
  19048. onChange: this.handleChange
  19049. })
  19050. )
  19051. );
  19052. } else if (this.state.view === 'hsl') {
  19053. fields = _react2.default.createElement(
  19054. 'div',
  19055. { style: styles.fields, className: 'flexbox-fix' },
  19056. _react2.default.createElement(
  19057. 'div',
  19058. { style: styles.field },
  19059. _react2.default.createElement(_common.EditableInput, {
  19060. style: { input: styles.input, label: styles.label },
  19061. label: 'h',
  19062. value: Math.round(this.props.hsl.h),
  19063. onChange: this.handleChange
  19064. })
  19065. ),
  19066. _react2.default.createElement(
  19067. 'div',
  19068. { style: styles.field },
  19069. _react2.default.createElement(_common.EditableInput, {
  19070. style: { input: styles.input, label: styles.label },
  19071. label: 's',
  19072. value: Math.round(this.props.hsl.s * 100) + '%',
  19073. onChange: this.handleChange
  19074. })
  19075. ),
  19076. _react2.default.createElement(
  19077. 'div',
  19078. { style: styles.field },
  19079. _react2.default.createElement(_common.EditableInput, {
  19080. style: { input: styles.input, label: styles.label },
  19081. label: 'l',
  19082. value: Math.round(this.props.hsl.l * 100) + '%',
  19083. onChange: this.handleChange
  19084. })
  19085. ),
  19086. _react2.default.createElement(
  19087. 'div',
  19088. { style: styles.alpha },
  19089. _react2.default.createElement(_common.EditableInput, {
  19090. style: { input: styles.input, label: styles.label },
  19091. label: 'a',
  19092. value: this.props.hsl.a,
  19093. arrowOffset: 0.01,
  19094. onChange: this.handleChange
  19095. })
  19096. )
  19097. );
  19098. }
  19099. return _react2.default.createElement(
  19100. 'div',
  19101. { style: styles.wrap, className: 'flexbox-fix' },
  19102. fields,
  19103. _react2.default.createElement(
  19104. 'div',
  19105. { style: styles.toggle },
  19106. _react2.default.createElement(
  19107. 'div',
  19108. { style: styles.icon, onClick: this.toggleViews, ref: function ref(icon) {
  19109. return _this2.icon = icon;
  19110. } },
  19111. _react2.default.createElement(_UnfoldMoreHorizontalIcon2.default, {
  19112. style: styles.svg,
  19113. onMouseOver: this.showHighlight,
  19114. onMouseEnter: this.showHighlight,
  19115. onMouseOut: this.hideHighlight
  19116. })
  19117. )
  19118. )
  19119. );
  19120. }
  19121. }], [{
  19122. key: 'getDerivedStateFromProps',
  19123. value: function getDerivedStateFromProps(nextProps, state) {
  19124. if (nextProps.hsl.a !== 1 && state.view === 'hex') {
  19125. return { view: 'rgb' };
  19126. }
  19127. return null;
  19128. }
  19129. }]);
  19130. return ChromeFields;
  19131. }(_react2.default.Component);
  19132. ChromeFields.defaultProps = {
  19133. view: "hex"
  19134. };
  19135. exports.default = ChromeFields;
  19136. /***/ }),
  19137. /***/ "../../node_modules/react-color/lib/components/chrome/ChromePointer.js":
  19138. /*!*******************************************************************************************!*\
  19139. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromePointer.js ***!
  19140. \*******************************************************************************************/
  19141. /*! no static exports found */
  19142. /***/ (function(module, exports, __webpack_require__) {
  19143. "use strict";
  19144. Object.defineProperty(exports, "__esModule", {
  19145. value: true
  19146. });
  19147. exports.ChromePointer = undefined;
  19148. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19149. var _react2 = _interopRequireDefault(_react);
  19150. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19151. var _reactcss2 = _interopRequireDefault(_reactcss);
  19152. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19153. var ChromePointer = exports.ChromePointer = function ChromePointer() {
  19154. var styles = (0, _reactcss2.default)({
  19155. 'default': {
  19156. picker: {
  19157. width: '12px',
  19158. height: '12px',
  19159. borderRadius: '6px',
  19160. transform: 'translate(-6px, -1px)',
  19161. backgroundColor: 'rgb(248, 248, 248)',
  19162. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  19163. }
  19164. }
  19165. });
  19166. return _react2.default.createElement('div', { style: styles.picker });
  19167. };
  19168. exports.default = ChromePointer;
  19169. /***/ }),
  19170. /***/ "../../node_modules/react-color/lib/components/chrome/ChromePointerCircle.js":
  19171. /*!*************************************************************************************************!*\
  19172. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromePointerCircle.js ***!
  19173. \*************************************************************************************************/
  19174. /*! no static exports found */
  19175. /***/ (function(module, exports, __webpack_require__) {
  19176. "use strict";
  19177. Object.defineProperty(exports, "__esModule", {
  19178. value: true
  19179. });
  19180. exports.ChromePointerCircle = undefined;
  19181. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19182. var _react2 = _interopRequireDefault(_react);
  19183. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19184. var _reactcss2 = _interopRequireDefault(_reactcss);
  19185. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19186. var ChromePointerCircle = exports.ChromePointerCircle = function ChromePointerCircle() {
  19187. var styles = (0, _reactcss2.default)({
  19188. 'default': {
  19189. picker: {
  19190. width: '12px',
  19191. height: '12px',
  19192. borderRadius: '6px',
  19193. boxShadow: 'inset 0 0 0 1px #fff',
  19194. transform: 'translate(-6px, -6px)'
  19195. }
  19196. }
  19197. });
  19198. return _react2.default.createElement('div', { style: styles.picker });
  19199. };
  19200. exports.default = ChromePointerCircle;
  19201. /***/ }),
  19202. /***/ "../../node_modules/react-color/lib/components/circle/Circle.js":
  19203. /*!************************************************************************************!*\
  19204. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/circle/Circle.js ***!
  19205. \************************************************************************************/
  19206. /*! no static exports found */
  19207. /***/ (function(module, exports, __webpack_require__) {
  19208. "use strict";
  19209. Object.defineProperty(exports, "__esModule", {
  19210. value: true
  19211. });
  19212. exports.Circle = undefined;
  19213. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19214. var _react2 = _interopRequireDefault(_react);
  19215. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  19216. var _propTypes2 = _interopRequireDefault(_propTypes);
  19217. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19218. var _reactcss2 = _interopRequireDefault(_reactcss);
  19219. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  19220. var _map2 = _interopRequireDefault(_map);
  19221. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  19222. var _merge2 = _interopRequireDefault(_merge);
  19223. var _materialColors = __webpack_require__(/*! material-colors */ "../../node_modules/material-colors/dist/colors.es2015.js");
  19224. var material = _interopRequireWildcard(_materialColors);
  19225. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  19226. var _CircleSwatch = __webpack_require__(/*! ./CircleSwatch */ "../../node_modules/react-color/lib/components/circle/CircleSwatch.js");
  19227. var _CircleSwatch2 = _interopRequireDefault(_CircleSwatch);
  19228. 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; } }
  19229. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19230. var Circle = exports.Circle = function Circle(_ref) {
  19231. var width = _ref.width,
  19232. onChange = _ref.onChange,
  19233. onSwatchHover = _ref.onSwatchHover,
  19234. colors = _ref.colors,
  19235. hex = _ref.hex,
  19236. circleSize = _ref.circleSize,
  19237. _ref$styles = _ref.styles,
  19238. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  19239. circleSpacing = _ref.circleSpacing,
  19240. _ref$className = _ref.className,
  19241. className = _ref$className === undefined ? '' : _ref$className;
  19242. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  19243. 'default': {
  19244. card: {
  19245. width: width,
  19246. display: 'flex',
  19247. flexWrap: 'wrap',
  19248. marginRight: -circleSpacing,
  19249. marginBottom: -circleSpacing
  19250. }
  19251. }
  19252. }, passedStyles));
  19253. var handleChange = function handleChange(hexCode, e) {
  19254. return onChange({ hex: hexCode, source: 'hex' }, e);
  19255. };
  19256. return _react2.default.createElement(
  19257. 'div',
  19258. { style: styles.card, className: 'circle-picker ' + className },
  19259. (0, _map2.default)(colors, function (c) {
  19260. return _react2.default.createElement(_CircleSwatch2.default, {
  19261. key: c,
  19262. color: c,
  19263. onClick: handleChange,
  19264. onSwatchHover: onSwatchHover,
  19265. active: hex === c.toLowerCase(),
  19266. circleSize: circleSize,
  19267. circleSpacing: circleSpacing
  19268. });
  19269. })
  19270. );
  19271. };
  19272. Circle.propTypes = {
  19273. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  19274. circleSize: _propTypes2.default.number,
  19275. circleSpacing: _propTypes2.default.number,
  19276. styles: _propTypes2.default.object
  19277. };
  19278. Circle.defaultProps = {
  19279. width: 252,
  19280. circleSize: 28,
  19281. circleSpacing: 14,
  19282. 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']],
  19283. styles: {}
  19284. };
  19285. exports.default = (0, _common.ColorWrap)(Circle);
  19286. /***/ }),
  19287. /***/ "../../node_modules/react-color/lib/components/circle/CircleSwatch.js":
  19288. /*!******************************************************************************************!*\
  19289. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/circle/CircleSwatch.js ***!
  19290. \******************************************************************************************/
  19291. /*! no static exports found */
  19292. /***/ (function(module, exports, __webpack_require__) {
  19293. "use strict";
  19294. Object.defineProperty(exports, "__esModule", {
  19295. value: true
  19296. });
  19297. exports.CircleSwatch = undefined;
  19298. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19299. var _react2 = _interopRequireDefault(_react);
  19300. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19301. var _reactcss2 = _interopRequireDefault(_reactcss);
  19302. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  19303. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19304. var CircleSwatch = exports.CircleSwatch = function CircleSwatch(_ref) {
  19305. var color = _ref.color,
  19306. onClick = _ref.onClick,
  19307. onSwatchHover = _ref.onSwatchHover,
  19308. hover = _ref.hover,
  19309. active = _ref.active,
  19310. circleSize = _ref.circleSize,
  19311. circleSpacing = _ref.circleSpacing;
  19312. var styles = (0, _reactcss2.default)({
  19313. 'default': {
  19314. swatch: {
  19315. width: circleSize,
  19316. height: circleSize,
  19317. marginRight: circleSpacing,
  19318. marginBottom: circleSpacing,
  19319. transform: 'scale(1)',
  19320. transition: '100ms transform ease'
  19321. },
  19322. Swatch: {
  19323. borderRadius: '50%',
  19324. background: 'transparent',
  19325. boxShadow: 'inset 0 0 0 ' + circleSize / 2 + 'px ' + color,
  19326. transition: '100ms box-shadow ease'
  19327. }
  19328. },
  19329. 'hover': {
  19330. swatch: {
  19331. transform: 'scale(1.2)'
  19332. }
  19333. },
  19334. 'active': {
  19335. Swatch: {
  19336. boxShadow: 'inset 0 0 0 3px ' + color
  19337. }
  19338. }
  19339. }, { hover: hover, active: active });
  19340. return _react2.default.createElement(
  19341. 'div',
  19342. { style: styles.swatch },
  19343. _react2.default.createElement(_common.Swatch, {
  19344. style: styles.Swatch,
  19345. color: color,
  19346. onClick: onClick,
  19347. onHover: onSwatchHover,
  19348. focusStyle: { boxShadow: styles.Swatch.boxShadow + ', 0 0 5px ' + color }
  19349. })
  19350. );
  19351. };
  19352. CircleSwatch.defaultProps = {
  19353. circleSize: 28,
  19354. circleSpacing: 14
  19355. };
  19356. exports.default = (0, _reactcss.handleHover)(CircleSwatch);
  19357. /***/ }),
  19358. /***/ "../../node_modules/react-color/lib/components/common/Alpha.js":
  19359. /*!***********************************************************************************!*\
  19360. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Alpha.js ***!
  19361. \***********************************************************************************/
  19362. /*! no static exports found */
  19363. /***/ (function(module, exports, __webpack_require__) {
  19364. "use strict";
  19365. Object.defineProperty(exports, "__esModule", {
  19366. value: true
  19367. });
  19368. exports.Alpha = undefined;
  19369. 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; };
  19370. 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; }; }();
  19371. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19372. var _react2 = _interopRequireDefault(_react);
  19373. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19374. var _reactcss2 = _interopRequireDefault(_reactcss);
  19375. var _alpha = __webpack_require__(/*! ../../helpers/alpha */ "../../node_modules/react-color/lib/helpers/alpha.js");
  19376. var alpha = _interopRequireWildcard(_alpha);
  19377. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  19378. var _Checkboard2 = _interopRequireDefault(_Checkboard);
  19379. 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; } }
  19380. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19381. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19382. 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; }
  19383. 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; }
  19384. var Alpha = exports.Alpha = function (_ref) {
  19385. _inherits(Alpha, _ref);
  19386. function Alpha() {
  19387. var _ref2;
  19388. var _temp, _this, _ret;
  19389. _classCallCheck(this, Alpha);
  19390. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  19391. args[_key] = arguments[_key];
  19392. }
  19393. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Alpha.__proto__ || Object.getPrototypeOf(Alpha)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
  19394. var change = alpha.calculateChange(e, _this.props.hsl, _this.props.direction, _this.props.a, _this.container);
  19395. change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
  19396. }, _this.handleMouseDown = function (e) {
  19397. _this.handleChange(e);
  19398. window.addEventListener('mousemove', _this.handleChange);
  19399. window.addEventListener('mouseup', _this.handleMouseUp);
  19400. }, _this.handleMouseUp = function () {
  19401. _this.unbindEventListeners();
  19402. }, _this.unbindEventListeners = function () {
  19403. window.removeEventListener('mousemove', _this.handleChange);
  19404. window.removeEventListener('mouseup', _this.handleMouseUp);
  19405. }, _temp), _possibleConstructorReturn(_this, _ret);
  19406. }
  19407. _createClass(Alpha, [{
  19408. key: 'componentWillUnmount',
  19409. value: function componentWillUnmount() {
  19410. this.unbindEventListeners();
  19411. }
  19412. }, {
  19413. key: 'render',
  19414. value: function render() {
  19415. var _this2 = this;
  19416. var rgb = this.props.rgb;
  19417. var styles = (0, _reactcss2.default)({
  19418. 'default': {
  19419. alpha: {
  19420. absolute: '0px 0px 0px 0px',
  19421. borderRadius: this.props.radius
  19422. },
  19423. checkboard: {
  19424. absolute: '0px 0px 0px 0px',
  19425. overflow: 'hidden',
  19426. borderRadius: this.props.radius
  19427. },
  19428. gradient: {
  19429. absolute: '0px 0px 0px 0px',
  19430. background: 'linear-gradient(to right, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)',
  19431. boxShadow: this.props.shadow,
  19432. borderRadius: this.props.radius
  19433. },
  19434. container: {
  19435. position: 'relative',
  19436. height: '100%',
  19437. margin: '0 3px'
  19438. },
  19439. pointer: {
  19440. position: 'absolute',
  19441. left: rgb.a * 100 + '%'
  19442. },
  19443. slider: {
  19444. width: '4px',
  19445. borderRadius: '1px',
  19446. height: '8px',
  19447. boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
  19448. background: '#fff',
  19449. marginTop: '1px',
  19450. transform: 'translateX(-2px)'
  19451. }
  19452. },
  19453. 'vertical': {
  19454. gradient: {
  19455. background: 'linear-gradient(to bottom, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)'
  19456. },
  19457. pointer: {
  19458. left: 0,
  19459. top: rgb.a * 100 + '%'
  19460. }
  19461. },
  19462. 'overwrite': _extends({}, this.props.style)
  19463. }, {
  19464. vertical: this.props.direction === 'vertical',
  19465. overwrite: true
  19466. });
  19467. return _react2.default.createElement(
  19468. 'div',
  19469. { style: styles.alpha },
  19470. _react2.default.createElement(
  19471. 'div',
  19472. { style: styles.checkboard },
  19473. _react2.default.createElement(_Checkboard2.default, { renderers: this.props.renderers })
  19474. ),
  19475. _react2.default.createElement('div', { style: styles.gradient }),
  19476. _react2.default.createElement(
  19477. 'div',
  19478. {
  19479. style: styles.container,
  19480. ref: function ref(container) {
  19481. return _this2.container = container;
  19482. },
  19483. onMouseDown: this.handleMouseDown,
  19484. onTouchMove: this.handleChange,
  19485. onTouchStart: this.handleChange
  19486. },
  19487. _react2.default.createElement(
  19488. 'div',
  19489. { style: styles.pointer },
  19490. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.slider })
  19491. )
  19492. )
  19493. );
  19494. }
  19495. }]);
  19496. return Alpha;
  19497. }(_react.PureComponent || _react.Component);
  19498. exports.default = Alpha;
  19499. /***/ }),
  19500. /***/ "../../node_modules/react-color/lib/components/common/Checkboard.js":
  19501. /*!****************************************************************************************!*\
  19502. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Checkboard.js ***!
  19503. \****************************************************************************************/
  19504. /*! no static exports found */
  19505. /***/ (function(module, exports, __webpack_require__) {
  19506. "use strict";
  19507. Object.defineProperty(exports, "__esModule", {
  19508. value: true
  19509. });
  19510. exports.Checkboard = undefined;
  19511. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19512. var _react2 = _interopRequireDefault(_react);
  19513. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19514. var _reactcss2 = _interopRequireDefault(_reactcss);
  19515. var _checkboard = __webpack_require__(/*! ../../helpers/checkboard */ "../../node_modules/react-color/lib/helpers/checkboard.js");
  19516. var checkboard = _interopRequireWildcard(_checkboard);
  19517. 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; } }
  19518. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19519. var Checkboard = exports.Checkboard = function Checkboard(_ref) {
  19520. var white = _ref.white,
  19521. grey = _ref.grey,
  19522. size = _ref.size,
  19523. renderers = _ref.renderers,
  19524. borderRadius = _ref.borderRadius,
  19525. boxShadow = _ref.boxShadow;
  19526. var styles = (0, _reactcss2.default)({
  19527. 'default': {
  19528. grid: {
  19529. borderRadius: borderRadius,
  19530. boxShadow: boxShadow,
  19531. absolute: '0px 0px 0px 0px',
  19532. background: 'url(' + checkboard.get(white, grey, size, renderers.canvas) + ') center left'
  19533. }
  19534. }
  19535. });
  19536. return _react2.default.createElement('div', { style: styles.grid });
  19537. };
  19538. Checkboard.defaultProps = {
  19539. size: 8,
  19540. white: 'transparent',
  19541. grey: 'rgba(0,0,0,.08)',
  19542. renderers: {}
  19543. };
  19544. exports.default = Checkboard;
  19545. /***/ }),
  19546. /***/ "../../node_modules/react-color/lib/components/common/ColorWrap.js":
  19547. /*!***************************************************************************************!*\
  19548. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/ColorWrap.js ***!
  19549. \***************************************************************************************/
  19550. /*! no static exports found */
  19551. /***/ (function(module, exports, __webpack_require__) {
  19552. "use strict";
  19553. Object.defineProperty(exports, "__esModule", {
  19554. value: true
  19555. });
  19556. exports.ColorWrap = undefined;
  19557. 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; };
  19558. 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; }; }();
  19559. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19560. var _react2 = _interopRequireDefault(_react);
  19561. var _debounce = __webpack_require__(/*! lodash/debounce */ "../../node_modules/lodash/debounce.js");
  19562. var _debounce2 = _interopRequireDefault(_debounce);
  19563. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  19564. var _color2 = _interopRequireDefault(_color);
  19565. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19566. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19567. 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; }
  19568. 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; }
  19569. var ColorWrap = exports.ColorWrap = function ColorWrap(Picker) {
  19570. var ColorPicker = function (_ref) {
  19571. _inherits(ColorPicker, _ref);
  19572. function ColorPicker(props) {
  19573. _classCallCheck(this, ColorPicker);
  19574. var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this));
  19575. _this.handleChange = function (data, event) {
  19576. var isValidColor = _color2.default.simpleCheckForValidColor(data);
  19577. if (isValidColor) {
  19578. var colors = _color2.default.toState(data, data.h || _this.state.oldHue);
  19579. _this.setState(colors);
  19580. _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event);
  19581. _this.props.onChange && _this.props.onChange(colors, event);
  19582. }
  19583. };
  19584. _this.handleSwatchHover = function (data, event) {
  19585. var isValidColor = _color2.default.simpleCheckForValidColor(data);
  19586. if (isValidColor) {
  19587. var colors = _color2.default.toState(data, data.h || _this.state.oldHue);
  19588. _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
  19589. }
  19590. };
  19591. _this.state = _extends({}, _color2.default.toState(props.color, 0));
  19592. _this.debounce = (0, _debounce2.default)(function (fn, data, event) {
  19593. fn(data, event);
  19594. }, 100);
  19595. return _this;
  19596. }
  19597. _createClass(ColorPicker, [{
  19598. key: 'render',
  19599. value: function render() {
  19600. var optionalEvents = {};
  19601. if (this.props.onSwatchHover) {
  19602. optionalEvents.onSwatchHover = this.handleSwatchHover;
  19603. }
  19604. return _react2.default.createElement(Picker, _extends({}, this.props, this.state, {
  19605. onChange: this.handleChange
  19606. }, optionalEvents));
  19607. }
  19608. }], [{
  19609. key: 'getDerivedStateFromProps',
  19610. value: function getDerivedStateFromProps(nextProps, state) {
  19611. return _extends({}, _color2.default.toState(nextProps.color, state.oldHue));
  19612. }
  19613. }]);
  19614. return ColorPicker;
  19615. }(_react.PureComponent || _react.Component);
  19616. ColorPicker.propTypes = _extends({}, Picker.propTypes);
  19617. ColorPicker.defaultProps = _extends({}, Picker.defaultProps, {
  19618. color: {
  19619. h: 250,
  19620. s: 0.50,
  19621. l: 0.20,
  19622. a: 1
  19623. }
  19624. });
  19625. return ColorPicker;
  19626. };
  19627. exports.default = ColorWrap;
  19628. /***/ }),
  19629. /***/ "../../node_modules/react-color/lib/components/common/EditableInput.js":
  19630. /*!*******************************************************************************************!*\
  19631. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/EditableInput.js ***!
  19632. \*******************************************************************************************/
  19633. /*! no static exports found */
  19634. /***/ (function(module, exports, __webpack_require__) {
  19635. "use strict";
  19636. Object.defineProperty(exports, "__esModule", {
  19637. value: true
  19638. });
  19639. exports.EditableInput = undefined;
  19640. 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; }; }();
  19641. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19642. var _react2 = _interopRequireDefault(_react);
  19643. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19644. var _reactcss2 = _interopRequireDefault(_reactcss);
  19645. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19646. 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; }
  19647. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19648. 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; }
  19649. 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; }
  19650. var DEFAULT_ARROW_OFFSET = 1;
  19651. var UP_KEY_CODE = 38;
  19652. var DOWN_KEY_CODE = 40;
  19653. var VALID_KEY_CODES = [UP_KEY_CODE, DOWN_KEY_CODE];
  19654. var isValidKeyCode = function isValidKeyCode(keyCode) {
  19655. return VALID_KEY_CODES.indexOf(keyCode) > -1;
  19656. };
  19657. var getFormattedPercentage = function getFormattedPercentage(number) {
  19658. return number + '%';
  19659. };
  19660. var getNumberValue = function getNumberValue(value) {
  19661. return Number(String(value).replace(/%/g, ''));
  19662. };
  19663. var getIsPercentage = function getIsPercentage(value) {
  19664. return String(value).indexOf('%') > -1;
  19665. };
  19666. var EditableInput = exports.EditableInput = function (_ref) {
  19667. _inherits(EditableInput, _ref);
  19668. function EditableInput(props) {
  19669. _classCallCheck(this, EditableInput);
  19670. var _this = _possibleConstructorReturn(this, (EditableInput.__proto__ || Object.getPrototypeOf(EditableInput)).call(this));
  19671. _this.handleBlur = function () {
  19672. if (_this.state.blurValue) {
  19673. _this.setState({ value: _this.state.blurValue, blurValue: null });
  19674. }
  19675. };
  19676. _this.handleChange = function (e) {
  19677. _this.setUpdatedValue(e.target.value, e);
  19678. };
  19679. _this.handleKeyDown = function (e) {
  19680. // In case `e.target.value` is a percentage remove the `%` character
  19681. // and update accordingly with a percentage
  19682. // https://github.com/casesandberg/react-color/issues/383
  19683. var value = getNumberValue(e.target.value);
  19684. if (!isNaN(value) && isValidKeyCode(e.keyCode)) {
  19685. var offset = _this.getArrowOffset();
  19686. var updatedValue = e.keyCode === UP_KEY_CODE ? value + offset : value - offset;
  19687. _this.setUpdatedValue(updatedValue, e);
  19688. }
  19689. };
  19690. _this.handleDrag = function (e) {
  19691. if (_this.props.dragLabel) {
  19692. var newValue = Math.round(_this.props.value + e.movementX);
  19693. if (newValue >= 0 && newValue <= _this.props.dragMax) {
  19694. _this.props.onChange && _this.props.onChange(_this.getValueObjectWithLabel(newValue), e);
  19695. }
  19696. }
  19697. };
  19698. _this.handleMouseDown = function (e) {
  19699. if (_this.props.dragLabel) {
  19700. e.preventDefault();
  19701. _this.handleDrag(e);
  19702. window.addEventListener('mousemove', _this.handleDrag);
  19703. window.addEventListener('mouseup', _this.handleMouseUp);
  19704. }
  19705. };
  19706. _this.handleMouseUp = function () {
  19707. _this.unbindEventListeners();
  19708. };
  19709. _this.unbindEventListeners = function () {
  19710. window.removeEventListener('mousemove', _this.handleDrag);
  19711. window.removeEventListener('mouseup', _this.handleMouseUp);
  19712. };
  19713. _this.state = {
  19714. value: String(props.value).toUpperCase(),
  19715. blurValue: String(props.value).toUpperCase()
  19716. };
  19717. return _this;
  19718. }
  19719. _createClass(EditableInput, [{
  19720. key: 'componentDidUpdate',
  19721. value: function componentDidUpdate(prevProps, prevState) {
  19722. if (this.props.value !== this.state.value && (prevProps.value !== this.props.value || prevState.value !== this.state.value)) {
  19723. if (this.input === document.activeElement) {
  19724. this.setState({ blurValue: String(this.props.value).toUpperCase() });
  19725. } else {
  19726. this.setState({ value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && String(this.props.value).toUpperCase() });
  19727. }
  19728. }
  19729. }
  19730. }, {
  19731. key: 'componentWillUnmount',
  19732. value: function componentWillUnmount() {
  19733. this.unbindEventListeners();
  19734. }
  19735. }, {
  19736. key: 'getValueObjectWithLabel',
  19737. value: function getValueObjectWithLabel(value) {
  19738. return _defineProperty({}, this.props.label, value);
  19739. }
  19740. }, {
  19741. key: 'getArrowOffset',
  19742. value: function getArrowOffset() {
  19743. return this.props.arrowOffset || DEFAULT_ARROW_OFFSET;
  19744. }
  19745. }, {
  19746. key: 'setUpdatedValue',
  19747. value: function setUpdatedValue(value, e) {
  19748. var onChangeValue = this.props.label ? this.getValueObjectWithLabel(value) : value;
  19749. this.props.onChange && this.props.onChange(onChangeValue, e);
  19750. var isPercentage = getIsPercentage(e.target.value);
  19751. this.setState({
  19752. value: isPercentage ? getFormattedPercentage(value) : value
  19753. });
  19754. }
  19755. }, {
  19756. key: 'render',
  19757. value: function render() {
  19758. var _this2 = this;
  19759. var styles = (0, _reactcss2.default)({
  19760. 'default': {
  19761. wrap: {
  19762. position: 'relative'
  19763. }
  19764. },
  19765. 'user-override': {
  19766. wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {},
  19767. input: this.props.style && this.props.style.input ? this.props.style.input : {},
  19768. label: this.props.style && this.props.style.label ? this.props.style.label : {}
  19769. },
  19770. 'dragLabel-true': {
  19771. label: {
  19772. cursor: 'ew-resize'
  19773. }
  19774. }
  19775. }, {
  19776. 'user-override': true
  19777. }, this.props);
  19778. return _react2.default.createElement(
  19779. 'div',
  19780. { style: styles.wrap },
  19781. _react2.default.createElement('input', {
  19782. style: styles.input,
  19783. ref: function ref(input) {
  19784. return _this2.input = input;
  19785. },
  19786. value: this.state.value,
  19787. onKeyDown: this.handleKeyDown,
  19788. onChange: this.handleChange,
  19789. onBlur: this.handleBlur,
  19790. placeholder: this.props.placeholder,
  19791. spellCheck: 'false'
  19792. }),
  19793. this.props.label && !this.props.hideLabel ? _react2.default.createElement(
  19794. 'span',
  19795. { style: styles.label, onMouseDown: this.handleMouseDown },
  19796. this.props.label
  19797. ) : null
  19798. );
  19799. }
  19800. }]);
  19801. return EditableInput;
  19802. }(_react.PureComponent || _react.Component);
  19803. exports.default = EditableInput;
  19804. /***/ }),
  19805. /***/ "../../node_modules/react-color/lib/components/common/Hue.js":
  19806. /*!*********************************************************************************!*\
  19807. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Hue.js ***!
  19808. \*********************************************************************************/
  19809. /*! no static exports found */
  19810. /***/ (function(module, exports, __webpack_require__) {
  19811. "use strict";
  19812. Object.defineProperty(exports, "__esModule", {
  19813. value: true
  19814. });
  19815. exports.Hue = undefined;
  19816. 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; }; }();
  19817. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19818. var _react2 = _interopRequireDefault(_react);
  19819. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19820. var _reactcss2 = _interopRequireDefault(_reactcss);
  19821. var _hue = __webpack_require__(/*! ../../helpers/hue */ "../../node_modules/react-color/lib/helpers/hue.js");
  19822. var hue = _interopRequireWildcard(_hue);
  19823. 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; } }
  19824. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19825. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19826. 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; }
  19827. 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; }
  19828. var Hue = exports.Hue = function (_ref) {
  19829. _inherits(Hue, _ref);
  19830. function Hue() {
  19831. var _ref2;
  19832. var _temp, _this, _ret;
  19833. _classCallCheck(this, Hue);
  19834. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  19835. args[_key] = arguments[_key];
  19836. }
  19837. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Hue.__proto__ || Object.getPrototypeOf(Hue)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
  19838. var change = hue.calculateChange(e, _this.props.direction, _this.props.hsl, _this.container);
  19839. change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
  19840. }, _this.handleMouseDown = function (e) {
  19841. _this.handleChange(e);
  19842. window.addEventListener('mousemove', _this.handleChange);
  19843. window.addEventListener('mouseup', _this.handleMouseUp);
  19844. }, _this.handleMouseUp = function () {
  19845. _this.unbindEventListeners();
  19846. }, _temp), _possibleConstructorReturn(_this, _ret);
  19847. }
  19848. _createClass(Hue, [{
  19849. key: 'componentWillUnmount',
  19850. value: function componentWillUnmount() {
  19851. this.unbindEventListeners();
  19852. }
  19853. }, {
  19854. key: 'unbindEventListeners',
  19855. value: function unbindEventListeners() {
  19856. window.removeEventListener('mousemove', this.handleChange);
  19857. window.removeEventListener('mouseup', this.handleMouseUp);
  19858. }
  19859. }, {
  19860. key: 'render',
  19861. value: function render() {
  19862. var _this2 = this;
  19863. var _props$direction = this.props.direction,
  19864. direction = _props$direction === undefined ? 'horizontal' : _props$direction;
  19865. var styles = (0, _reactcss2.default)({
  19866. 'default': {
  19867. hue: {
  19868. absolute: '0px 0px 0px 0px',
  19869. borderRadius: this.props.radius,
  19870. boxShadow: this.props.shadow
  19871. },
  19872. container: {
  19873. padding: '0 2px',
  19874. position: 'relative',
  19875. height: '100%',
  19876. borderRadius: this.props.radius
  19877. },
  19878. pointer: {
  19879. position: 'absolute',
  19880. left: this.props.hsl.h * 100 / 360 + '%'
  19881. },
  19882. slider: {
  19883. marginTop: '1px',
  19884. width: '4px',
  19885. borderRadius: '1px',
  19886. height: '8px',
  19887. boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
  19888. background: '#fff',
  19889. transform: 'translateX(-2px)'
  19890. }
  19891. },
  19892. 'vertical': {
  19893. pointer: {
  19894. left: '0px',
  19895. top: -(this.props.hsl.h * 100 / 360) + 100 + '%'
  19896. }
  19897. }
  19898. }, { vertical: direction === 'vertical' });
  19899. return _react2.default.createElement(
  19900. 'div',
  19901. { style: styles.hue },
  19902. _react2.default.createElement(
  19903. 'div',
  19904. {
  19905. className: 'hue-' + direction,
  19906. style: styles.container,
  19907. ref: function ref(container) {
  19908. return _this2.container = container;
  19909. },
  19910. onMouseDown: this.handleMouseDown,
  19911. onTouchMove: this.handleChange,
  19912. onTouchStart: this.handleChange
  19913. },
  19914. _react2.default.createElement(
  19915. 'style',
  19916. null,
  19917. '\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 '
  19918. ),
  19919. _react2.default.createElement(
  19920. 'div',
  19921. { style: styles.pointer },
  19922. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.slider })
  19923. )
  19924. )
  19925. );
  19926. }
  19927. }]);
  19928. return Hue;
  19929. }(_react.PureComponent || _react.Component);
  19930. exports.default = Hue;
  19931. /***/ }),
  19932. /***/ "../../node_modules/react-color/lib/components/common/Raised.js":
  19933. /*!************************************************************************************!*\
  19934. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Raised.js ***!
  19935. \************************************************************************************/
  19936. /*! no static exports found */
  19937. /***/ (function(module, exports, __webpack_require__) {
  19938. "use strict";
  19939. Object.defineProperty(exports, "__esModule", {
  19940. value: true
  19941. });
  19942. exports.Raised = undefined;
  19943. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19944. var _react2 = _interopRequireDefault(_react);
  19945. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  19946. var _propTypes2 = _interopRequireDefault(_propTypes);
  19947. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19948. var _reactcss2 = _interopRequireDefault(_reactcss);
  19949. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  19950. var _merge2 = _interopRequireDefault(_merge);
  19951. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19952. var Raised = exports.Raised = function Raised(_ref) {
  19953. var zDepth = _ref.zDepth,
  19954. radius = _ref.radius,
  19955. background = _ref.background,
  19956. children = _ref.children,
  19957. _ref$styles = _ref.styles,
  19958. passedStyles = _ref$styles === undefined ? {} : _ref$styles;
  19959. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  19960. 'default': {
  19961. wrap: {
  19962. position: 'relative',
  19963. display: 'inline-block'
  19964. },
  19965. content: {
  19966. position: 'relative'
  19967. },
  19968. bg: {
  19969. absolute: '0px 0px 0px 0px',
  19970. boxShadow: '0 ' + zDepth + 'px ' + zDepth * 4 + 'px rgba(0,0,0,.24)',
  19971. borderRadius: radius,
  19972. background: background
  19973. }
  19974. },
  19975. 'zDepth-0': {
  19976. bg: {
  19977. boxShadow: 'none'
  19978. }
  19979. },
  19980. 'zDepth-1': {
  19981. bg: {
  19982. boxShadow: '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)'
  19983. }
  19984. },
  19985. 'zDepth-2': {
  19986. bg: {
  19987. boxShadow: '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)'
  19988. }
  19989. },
  19990. 'zDepth-3': {
  19991. bg: {
  19992. boxShadow: '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)'
  19993. }
  19994. },
  19995. 'zDepth-4': {
  19996. bg: {
  19997. boxShadow: '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)'
  19998. }
  19999. },
  20000. 'zDepth-5': {
  20001. bg: {
  20002. boxShadow: '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)'
  20003. }
  20004. },
  20005. 'square': {
  20006. bg: {
  20007. borderRadius: '0'
  20008. }
  20009. },
  20010. 'circle': {
  20011. bg: {
  20012. borderRadius: '50%'
  20013. }
  20014. }
  20015. }, passedStyles), { 'zDepth-1': zDepth === 1 });
  20016. return _react2.default.createElement(
  20017. 'div',
  20018. { style: styles.wrap },
  20019. _react2.default.createElement('div', { style: styles.bg }),
  20020. _react2.default.createElement(
  20021. 'div',
  20022. { style: styles.content },
  20023. children
  20024. )
  20025. );
  20026. };
  20027. Raised.propTypes = {
  20028. background: _propTypes2.default.string,
  20029. zDepth: _propTypes2.default.oneOf([0, 1, 2, 3, 4, 5]),
  20030. radius: _propTypes2.default.number,
  20031. styles: _propTypes2.default.object
  20032. };
  20033. Raised.defaultProps = {
  20034. background: '#fff',
  20035. zDepth: 1,
  20036. radius: 2,
  20037. styles: {}
  20038. };
  20039. exports.default = Raised;
  20040. /***/ }),
  20041. /***/ "../../node_modules/react-color/lib/components/common/Saturation.js":
  20042. /*!****************************************************************************************!*\
  20043. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Saturation.js ***!
  20044. \****************************************************************************************/
  20045. /*! no static exports found */
  20046. /***/ (function(module, exports, __webpack_require__) {
  20047. "use strict";
  20048. Object.defineProperty(exports, "__esModule", {
  20049. value: true
  20050. });
  20051. exports.Saturation = undefined;
  20052. 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; }; }();
  20053. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20054. var _react2 = _interopRequireDefault(_react);
  20055. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20056. var _reactcss2 = _interopRequireDefault(_reactcss);
  20057. var _throttle = __webpack_require__(/*! lodash/throttle */ "../../node_modules/lodash/throttle.js");
  20058. var _throttle2 = _interopRequireDefault(_throttle);
  20059. var _saturation = __webpack_require__(/*! ../../helpers/saturation */ "../../node_modules/react-color/lib/helpers/saturation.js");
  20060. var saturation = _interopRequireWildcard(_saturation);
  20061. 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; } }
  20062. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20063. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20064. 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; }
  20065. 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; }
  20066. var Saturation = exports.Saturation = function (_ref) {
  20067. _inherits(Saturation, _ref);
  20068. function Saturation(props) {
  20069. _classCallCheck(this, Saturation);
  20070. var _this = _possibleConstructorReturn(this, (Saturation.__proto__ || Object.getPrototypeOf(Saturation)).call(this, props));
  20071. _this.handleChange = function (e) {
  20072. typeof _this.props.onChange === 'function' && _this.throttle(_this.props.onChange, saturation.calculateChange(e, _this.props.hsl, _this.container), e);
  20073. };
  20074. _this.handleMouseDown = function (e) {
  20075. _this.handleChange(e);
  20076. window.addEventListener('mousemove', _this.handleChange);
  20077. window.addEventListener('mouseup', _this.handleMouseUp);
  20078. };
  20079. _this.handleMouseUp = function () {
  20080. _this.unbindEventListeners();
  20081. };
  20082. _this.throttle = (0, _throttle2.default)(function (fn, data, e) {
  20083. fn(data, e);
  20084. }, 50);
  20085. return _this;
  20086. }
  20087. _createClass(Saturation, [{
  20088. key: 'componentWillUnmount',
  20089. value: function componentWillUnmount() {
  20090. this.throttle.cancel();
  20091. this.unbindEventListeners();
  20092. }
  20093. }, {
  20094. key: 'unbindEventListeners',
  20095. value: function unbindEventListeners() {
  20096. window.removeEventListener('mousemove', this.handleChange);
  20097. window.removeEventListener('mouseup', this.handleMouseUp);
  20098. }
  20099. }, {
  20100. key: 'render',
  20101. value: function render() {
  20102. var _this2 = this;
  20103. var _ref2 = this.props.style || {},
  20104. color = _ref2.color,
  20105. white = _ref2.white,
  20106. black = _ref2.black,
  20107. pointer = _ref2.pointer,
  20108. circle = _ref2.circle;
  20109. var styles = (0, _reactcss2.default)({
  20110. 'default': {
  20111. color: {
  20112. absolute: '0px 0px 0px 0px',
  20113. background: 'hsl(' + this.props.hsl.h + ',100%, 50%)',
  20114. borderRadius: this.props.radius
  20115. },
  20116. white: {
  20117. absolute: '0px 0px 0px 0px',
  20118. borderRadius: this.props.radius
  20119. },
  20120. black: {
  20121. absolute: '0px 0px 0px 0px',
  20122. boxShadow: this.props.shadow,
  20123. borderRadius: this.props.radius
  20124. },
  20125. pointer: {
  20126. position: 'absolute',
  20127. top: -(this.props.hsv.v * 100) + 100 + '%',
  20128. left: this.props.hsv.s * 100 + '%',
  20129. cursor: 'default'
  20130. },
  20131. circle: {
  20132. width: '4px',
  20133. height: '4px',
  20134. 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)',
  20135. borderRadius: '50%',
  20136. cursor: 'hand',
  20137. transform: 'translate(-2px, -2px)'
  20138. }
  20139. },
  20140. 'custom': {
  20141. color: color,
  20142. white: white,
  20143. black: black,
  20144. pointer: pointer,
  20145. circle: circle
  20146. }
  20147. }, { 'custom': !!this.props.style });
  20148. return _react2.default.createElement(
  20149. 'div',
  20150. {
  20151. style: styles.color,
  20152. ref: function ref(container) {
  20153. return _this2.container = container;
  20154. },
  20155. onMouseDown: this.handleMouseDown,
  20156. onTouchMove: this.handleChange,
  20157. onTouchStart: this.handleChange
  20158. },
  20159. _react2.default.createElement(
  20160. 'style',
  20161. null,
  20162. '\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 '
  20163. ),
  20164. _react2.default.createElement(
  20165. 'div',
  20166. { style: styles.white, className: 'saturation-white' },
  20167. _react2.default.createElement('div', { style: styles.black, className: 'saturation-black' }),
  20168. _react2.default.createElement(
  20169. 'div',
  20170. { style: styles.pointer },
  20171. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.circle })
  20172. )
  20173. )
  20174. );
  20175. }
  20176. }]);
  20177. return Saturation;
  20178. }(_react.PureComponent || _react.Component);
  20179. exports.default = Saturation;
  20180. /***/ }),
  20181. /***/ "../../node_modules/react-color/lib/components/common/Swatch.js":
  20182. /*!************************************************************************************!*\
  20183. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Swatch.js ***!
  20184. \************************************************************************************/
  20185. /*! no static exports found */
  20186. /***/ (function(module, exports, __webpack_require__) {
  20187. "use strict";
  20188. Object.defineProperty(exports, "__esModule", {
  20189. value: true
  20190. });
  20191. exports.Swatch = undefined;
  20192. 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; };
  20193. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20194. var _react2 = _interopRequireDefault(_react);
  20195. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20196. var _reactcss2 = _interopRequireDefault(_reactcss);
  20197. var _interaction = __webpack_require__(/*! ../../helpers/interaction */ "../../node_modules/react-color/lib/helpers/interaction.js");
  20198. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  20199. var _Checkboard2 = _interopRequireDefault(_Checkboard);
  20200. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20201. var ENTER = 13;
  20202. var Swatch = exports.Swatch = function Swatch(_ref) {
  20203. var color = _ref.color,
  20204. style = _ref.style,
  20205. _ref$onClick = _ref.onClick,
  20206. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  20207. onHover = _ref.onHover,
  20208. _ref$title = _ref.title,
  20209. title = _ref$title === undefined ? color : _ref$title,
  20210. children = _ref.children,
  20211. focus = _ref.focus,
  20212. _ref$focusStyle = _ref.focusStyle,
  20213. focusStyle = _ref$focusStyle === undefined ? {} : _ref$focusStyle;
  20214. var transparent = color === 'transparent';
  20215. var styles = (0, _reactcss2.default)({
  20216. default: {
  20217. swatch: _extends({
  20218. background: color,
  20219. height: '100%',
  20220. width: '100%',
  20221. cursor: 'pointer',
  20222. position: 'relative',
  20223. outline: 'none'
  20224. }, style, focus ? focusStyle : {})
  20225. }
  20226. });
  20227. var handleClick = function handleClick(e) {
  20228. return onClick(color, e);
  20229. };
  20230. var handleKeyDown = function handleKeyDown(e) {
  20231. return e.keyCode === ENTER && onClick(color, e);
  20232. };
  20233. var handleHover = function handleHover(e) {
  20234. return onHover(color, e);
  20235. };
  20236. var optionalEvents = {};
  20237. if (onHover) {
  20238. optionalEvents.onMouseOver = handleHover;
  20239. }
  20240. return _react2.default.createElement(
  20241. 'div',
  20242. _extends({
  20243. style: styles.swatch,
  20244. onClick: handleClick,
  20245. title: title,
  20246. tabIndex: 0,
  20247. onKeyDown: handleKeyDown
  20248. }, optionalEvents),
  20249. children,
  20250. transparent && _react2.default.createElement(_Checkboard2.default, {
  20251. borderRadius: styles.swatch.borderRadius,
  20252. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)'
  20253. })
  20254. );
  20255. };
  20256. exports.default = (0, _interaction.handleFocus)(Swatch);
  20257. /***/ }),
  20258. /***/ "../../node_modules/react-color/lib/components/common/index.js":
  20259. /*!***********************************************************************************!*\
  20260. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/common/index.js ***!
  20261. \***********************************************************************************/
  20262. /*! no static exports found */
  20263. /***/ (function(module, exports, __webpack_require__) {
  20264. "use strict";
  20265. Object.defineProperty(exports, "__esModule", {
  20266. value: true
  20267. });
  20268. var _Alpha = __webpack_require__(/*! ./Alpha */ "../../node_modules/react-color/lib/components/common/Alpha.js");
  20269. Object.defineProperty(exports, 'Alpha', {
  20270. enumerable: true,
  20271. get: function get() {
  20272. return _interopRequireDefault(_Alpha).default;
  20273. }
  20274. });
  20275. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  20276. Object.defineProperty(exports, 'Checkboard', {
  20277. enumerable: true,
  20278. get: function get() {
  20279. return _interopRequireDefault(_Checkboard).default;
  20280. }
  20281. });
  20282. var _EditableInput = __webpack_require__(/*! ./EditableInput */ "../../node_modules/react-color/lib/components/common/EditableInput.js");
  20283. Object.defineProperty(exports, 'EditableInput', {
  20284. enumerable: true,
  20285. get: function get() {
  20286. return _interopRequireDefault(_EditableInput).default;
  20287. }
  20288. });
  20289. var _Hue = __webpack_require__(/*! ./Hue */ "../../node_modules/react-color/lib/components/common/Hue.js");
  20290. Object.defineProperty(exports, 'Hue', {
  20291. enumerable: true,
  20292. get: function get() {
  20293. return _interopRequireDefault(_Hue).default;
  20294. }
  20295. });
  20296. var _Raised = __webpack_require__(/*! ./Raised */ "../../node_modules/react-color/lib/components/common/Raised.js");
  20297. Object.defineProperty(exports, 'Raised', {
  20298. enumerable: true,
  20299. get: function get() {
  20300. return _interopRequireDefault(_Raised).default;
  20301. }
  20302. });
  20303. var _Saturation = __webpack_require__(/*! ./Saturation */ "../../node_modules/react-color/lib/components/common/Saturation.js");
  20304. Object.defineProperty(exports, 'Saturation', {
  20305. enumerable: true,
  20306. get: function get() {
  20307. return _interopRequireDefault(_Saturation).default;
  20308. }
  20309. });
  20310. var _ColorWrap = __webpack_require__(/*! ./ColorWrap */ "../../node_modules/react-color/lib/components/common/ColorWrap.js");
  20311. Object.defineProperty(exports, 'ColorWrap', {
  20312. enumerable: true,
  20313. get: function get() {
  20314. return _interopRequireDefault(_ColorWrap).default;
  20315. }
  20316. });
  20317. var _Swatch = __webpack_require__(/*! ./Swatch */ "../../node_modules/react-color/lib/components/common/Swatch.js");
  20318. Object.defineProperty(exports, 'Swatch', {
  20319. enumerable: true,
  20320. get: function get() {
  20321. return _interopRequireDefault(_Swatch).default;
  20322. }
  20323. });
  20324. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20325. /***/ }),
  20326. /***/ "../../node_modules/react-color/lib/components/compact/Compact.js":
  20327. /*!**************************************************************************************!*\
  20328. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/Compact.js ***!
  20329. \**************************************************************************************/
  20330. /*! no static exports found */
  20331. /***/ (function(module, exports, __webpack_require__) {
  20332. "use strict";
  20333. Object.defineProperty(exports, "__esModule", {
  20334. value: true
  20335. });
  20336. exports.Compact = undefined;
  20337. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20338. var _react2 = _interopRequireDefault(_react);
  20339. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  20340. var _propTypes2 = _interopRequireDefault(_propTypes);
  20341. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20342. var _reactcss2 = _interopRequireDefault(_reactcss);
  20343. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  20344. var _map2 = _interopRequireDefault(_map);
  20345. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  20346. var _merge2 = _interopRequireDefault(_merge);
  20347. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  20348. var _color2 = _interopRequireDefault(_color);
  20349. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20350. var _CompactColor = __webpack_require__(/*! ./CompactColor */ "../../node_modules/react-color/lib/components/compact/CompactColor.js");
  20351. var _CompactColor2 = _interopRequireDefault(_CompactColor);
  20352. var _CompactFields = __webpack_require__(/*! ./CompactFields */ "../../node_modules/react-color/lib/components/compact/CompactFields.js");
  20353. var _CompactFields2 = _interopRequireDefault(_CompactFields);
  20354. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20355. var Compact = exports.Compact = function Compact(_ref) {
  20356. var onChange = _ref.onChange,
  20357. onSwatchHover = _ref.onSwatchHover,
  20358. colors = _ref.colors,
  20359. hex = _ref.hex,
  20360. rgb = _ref.rgb,
  20361. _ref$styles = _ref.styles,
  20362. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  20363. _ref$className = _ref.className,
  20364. className = _ref$className === undefined ? '' : _ref$className;
  20365. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  20366. 'default': {
  20367. Compact: {
  20368. background: '#f6f6f6',
  20369. radius: '4px'
  20370. },
  20371. compact: {
  20372. paddingTop: '5px',
  20373. paddingLeft: '5px',
  20374. boxSizing: 'initial',
  20375. width: '240px'
  20376. },
  20377. clear: {
  20378. clear: 'both'
  20379. }
  20380. }
  20381. }, passedStyles));
  20382. var handleChange = function handleChange(data, e) {
  20383. if (data.hex) {
  20384. _color2.default.isValidHex(data.hex) && onChange({
  20385. hex: data.hex,
  20386. source: 'hex'
  20387. }, e);
  20388. } else {
  20389. onChange(data, e);
  20390. }
  20391. };
  20392. return _react2.default.createElement(
  20393. _common.Raised,
  20394. { style: styles.Compact, styles: passedStyles },
  20395. _react2.default.createElement(
  20396. 'div',
  20397. { style: styles.compact, className: 'compact-picker ' + className },
  20398. _react2.default.createElement(
  20399. 'div',
  20400. null,
  20401. (0, _map2.default)(colors, function (c) {
  20402. return _react2.default.createElement(_CompactColor2.default, {
  20403. key: c,
  20404. color: c,
  20405. active: c.toLowerCase() === hex,
  20406. onClick: handleChange,
  20407. onSwatchHover: onSwatchHover
  20408. });
  20409. }),
  20410. _react2.default.createElement('div', { style: styles.clear })
  20411. ),
  20412. _react2.default.createElement(_CompactFields2.default, { hex: hex, rgb: rgb, onChange: handleChange })
  20413. )
  20414. );
  20415. };
  20416. Compact.propTypes = {
  20417. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  20418. styles: _propTypes2.default.object
  20419. };
  20420. Compact.defaultProps = {
  20421. 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'],
  20422. styles: {}
  20423. };
  20424. exports.default = (0, _common.ColorWrap)(Compact);
  20425. /***/ }),
  20426. /***/ "../../node_modules/react-color/lib/components/compact/CompactColor.js":
  20427. /*!*******************************************************************************************!*\
  20428. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/CompactColor.js ***!
  20429. \*******************************************************************************************/
  20430. /*! no static exports found */
  20431. /***/ (function(module, exports, __webpack_require__) {
  20432. "use strict";
  20433. Object.defineProperty(exports, "__esModule", {
  20434. value: true
  20435. });
  20436. exports.CompactColor = undefined;
  20437. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20438. var _react2 = _interopRequireDefault(_react);
  20439. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20440. var _reactcss2 = _interopRequireDefault(_reactcss);
  20441. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  20442. var _color2 = _interopRequireDefault(_color);
  20443. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20444. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20445. var CompactColor = exports.CompactColor = function CompactColor(_ref) {
  20446. var color = _ref.color,
  20447. _ref$onClick = _ref.onClick,
  20448. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  20449. onSwatchHover = _ref.onSwatchHover,
  20450. active = _ref.active;
  20451. var styles = (0, _reactcss2.default)({
  20452. 'default': {
  20453. color: {
  20454. background: color,
  20455. width: '15px',
  20456. height: '15px',
  20457. float: 'left',
  20458. marginRight: '5px',
  20459. marginBottom: '5px',
  20460. position: 'relative',
  20461. cursor: 'pointer'
  20462. },
  20463. dot: {
  20464. absolute: '5px 5px 5px 5px',
  20465. background: _color2.default.getContrastingColor(color),
  20466. borderRadius: '50%',
  20467. opacity: '0'
  20468. }
  20469. },
  20470. 'active': {
  20471. dot: {
  20472. opacity: '1'
  20473. }
  20474. },
  20475. 'color-#FFFFFF': {
  20476. color: {
  20477. boxShadow: 'inset 0 0 0 1px #ddd'
  20478. },
  20479. dot: {
  20480. background: '#000'
  20481. }
  20482. },
  20483. 'transparent': {
  20484. dot: {
  20485. background: '#000'
  20486. }
  20487. }
  20488. }, { active: active, 'color-#FFFFFF': color === '#FFFFFF', 'transparent': color === 'transparent' });
  20489. return _react2.default.createElement(
  20490. _common.Swatch,
  20491. {
  20492. style: styles.color,
  20493. color: color,
  20494. onClick: onClick,
  20495. onHover: onSwatchHover,
  20496. focusStyle: { boxShadow: '0 0 4px ' + color }
  20497. },
  20498. _react2.default.createElement('div', { style: styles.dot })
  20499. );
  20500. };
  20501. exports.default = CompactColor;
  20502. /***/ }),
  20503. /***/ "../../node_modules/react-color/lib/components/compact/CompactFields.js":
  20504. /*!********************************************************************************************!*\
  20505. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/CompactFields.js ***!
  20506. \********************************************************************************************/
  20507. /*! no static exports found */
  20508. /***/ (function(module, exports, __webpack_require__) {
  20509. "use strict";
  20510. Object.defineProperty(exports, "__esModule", {
  20511. value: true
  20512. });
  20513. exports.CompactFields = undefined;
  20514. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20515. var _react2 = _interopRequireDefault(_react);
  20516. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20517. var _reactcss2 = _interopRequireDefault(_reactcss);
  20518. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20519. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20520. var CompactFields = exports.CompactFields = function CompactFields(_ref) {
  20521. var hex = _ref.hex,
  20522. rgb = _ref.rgb,
  20523. onChange = _ref.onChange;
  20524. var styles = (0, _reactcss2.default)({
  20525. 'default': {
  20526. fields: {
  20527. display: 'flex',
  20528. paddingBottom: '6px',
  20529. paddingRight: '5px',
  20530. position: 'relative'
  20531. },
  20532. active: {
  20533. position: 'absolute',
  20534. top: '6px',
  20535. left: '5px',
  20536. height: '9px',
  20537. width: '9px',
  20538. background: hex
  20539. },
  20540. HEXwrap: {
  20541. flex: '6',
  20542. position: 'relative'
  20543. },
  20544. HEXinput: {
  20545. width: '80%',
  20546. padding: '0px',
  20547. paddingLeft: '20%',
  20548. border: 'none',
  20549. outline: 'none',
  20550. background: 'none',
  20551. fontSize: '12px',
  20552. color: '#333',
  20553. height: '16px'
  20554. },
  20555. HEXlabel: {
  20556. display: 'none'
  20557. },
  20558. RGBwrap: {
  20559. flex: '3',
  20560. position: 'relative'
  20561. },
  20562. RGBinput: {
  20563. width: '70%',
  20564. padding: '0px',
  20565. paddingLeft: '30%',
  20566. border: 'none',
  20567. outline: 'none',
  20568. background: 'none',
  20569. fontSize: '12px',
  20570. color: '#333',
  20571. height: '16px'
  20572. },
  20573. RGBlabel: {
  20574. position: 'absolute',
  20575. top: '3px',
  20576. left: '0px',
  20577. lineHeight: '16px',
  20578. textTransform: 'uppercase',
  20579. fontSize: '12px',
  20580. color: '#999'
  20581. }
  20582. }
  20583. });
  20584. var handleChange = function handleChange(data, e) {
  20585. if (data.r || data.g || data.b) {
  20586. onChange({
  20587. r: data.r || rgb.r,
  20588. g: data.g || rgb.g,
  20589. b: data.b || rgb.b,
  20590. source: 'rgb'
  20591. }, e);
  20592. } else {
  20593. onChange({
  20594. hex: data.hex,
  20595. source: 'hex'
  20596. }, e);
  20597. }
  20598. };
  20599. return _react2.default.createElement(
  20600. 'div',
  20601. { style: styles.fields, className: 'flexbox-fix' },
  20602. _react2.default.createElement('div', { style: styles.active }),
  20603. _react2.default.createElement(_common.EditableInput, {
  20604. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  20605. label: 'hex',
  20606. value: hex,
  20607. onChange: handleChange
  20608. }),
  20609. _react2.default.createElement(_common.EditableInput, {
  20610. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  20611. label: 'r',
  20612. value: rgb.r,
  20613. onChange: handleChange
  20614. }),
  20615. _react2.default.createElement(_common.EditableInput, {
  20616. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  20617. label: 'g',
  20618. value: rgb.g,
  20619. onChange: handleChange
  20620. }),
  20621. _react2.default.createElement(_common.EditableInput, {
  20622. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  20623. label: 'b',
  20624. value: rgb.b,
  20625. onChange: handleChange
  20626. })
  20627. );
  20628. };
  20629. exports.default = CompactFields;
  20630. /***/ }),
  20631. /***/ "../../node_modules/react-color/lib/components/github/Github.js":
  20632. /*!************************************************************************************!*\
  20633. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/github/Github.js ***!
  20634. \************************************************************************************/
  20635. /*! no static exports found */
  20636. /***/ (function(module, exports, __webpack_require__) {
  20637. "use strict";
  20638. Object.defineProperty(exports, "__esModule", {
  20639. value: true
  20640. });
  20641. exports.Github = undefined;
  20642. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20643. var _react2 = _interopRequireDefault(_react);
  20644. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  20645. var _propTypes2 = _interopRequireDefault(_propTypes);
  20646. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20647. var _reactcss2 = _interopRequireDefault(_reactcss);
  20648. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  20649. var _map2 = _interopRequireDefault(_map);
  20650. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  20651. var _merge2 = _interopRequireDefault(_merge);
  20652. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20653. var _GithubSwatch = __webpack_require__(/*! ./GithubSwatch */ "../../node_modules/react-color/lib/components/github/GithubSwatch.js");
  20654. var _GithubSwatch2 = _interopRequireDefault(_GithubSwatch);
  20655. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20656. var Github = exports.Github = function Github(_ref) {
  20657. var width = _ref.width,
  20658. colors = _ref.colors,
  20659. onChange = _ref.onChange,
  20660. onSwatchHover = _ref.onSwatchHover,
  20661. triangle = _ref.triangle,
  20662. _ref$styles = _ref.styles,
  20663. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  20664. _ref$className = _ref.className,
  20665. className = _ref$className === undefined ? '' : _ref$className;
  20666. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  20667. 'default': {
  20668. card: {
  20669. width: width,
  20670. background: '#fff',
  20671. border: '1px solid rgba(0,0,0,0.2)',
  20672. boxShadow: '0 3px 12px rgba(0,0,0,0.15)',
  20673. borderRadius: '4px',
  20674. position: 'relative',
  20675. padding: '5px',
  20676. display: 'flex',
  20677. flexWrap: 'wrap'
  20678. },
  20679. triangle: {
  20680. position: 'absolute',
  20681. border: '7px solid transparent',
  20682. borderBottomColor: '#fff'
  20683. },
  20684. triangleShadow: {
  20685. position: 'absolute',
  20686. border: '8px solid transparent',
  20687. borderBottomColor: 'rgba(0,0,0,0.15)'
  20688. }
  20689. },
  20690. 'hide-triangle': {
  20691. triangle: {
  20692. display: 'none'
  20693. },
  20694. triangleShadow: {
  20695. display: 'none'
  20696. }
  20697. },
  20698. 'top-left-triangle': {
  20699. triangle: {
  20700. top: '-14px',
  20701. left: '10px'
  20702. },
  20703. triangleShadow: {
  20704. top: '-16px',
  20705. left: '9px'
  20706. }
  20707. },
  20708. 'top-right-triangle': {
  20709. triangle: {
  20710. top: '-14px',
  20711. right: '10px'
  20712. },
  20713. triangleShadow: {
  20714. top: '-16px',
  20715. right: '9px'
  20716. }
  20717. },
  20718. 'bottom-left-triangle': {
  20719. triangle: {
  20720. top: '35px',
  20721. left: '10px',
  20722. transform: 'rotate(180deg)'
  20723. },
  20724. triangleShadow: {
  20725. top: '37px',
  20726. left: '9px',
  20727. transform: 'rotate(180deg)'
  20728. }
  20729. },
  20730. 'bottom-right-triangle': {
  20731. triangle: {
  20732. top: '35px',
  20733. right: '10px',
  20734. transform: 'rotate(180deg)'
  20735. },
  20736. triangleShadow: {
  20737. top: '37px',
  20738. right: '9px',
  20739. transform: 'rotate(180deg)'
  20740. }
  20741. }
  20742. }, passedStyles), {
  20743. 'hide-triangle': triangle === 'hide',
  20744. 'top-left-triangle': triangle === 'top-left',
  20745. 'top-right-triangle': triangle === 'top-right',
  20746. 'bottom-left-triangle': triangle === 'bottom-left',
  20747. 'bottom-right-triangle': triangle === 'bottom-right'
  20748. });
  20749. var handleChange = function handleChange(hex, e) {
  20750. return onChange({ hex: hex, source: 'hex' }, e);
  20751. };
  20752. return _react2.default.createElement(
  20753. 'div',
  20754. { style: styles.card, className: 'github-picker ' + className },
  20755. _react2.default.createElement('div', { style: styles.triangleShadow }),
  20756. _react2.default.createElement('div', { style: styles.triangle }),
  20757. (0, _map2.default)(colors, function (c) {
  20758. return _react2.default.createElement(_GithubSwatch2.default, {
  20759. color: c,
  20760. key: c,
  20761. onClick: handleChange,
  20762. onSwatchHover: onSwatchHover
  20763. });
  20764. })
  20765. );
  20766. };
  20767. Github.propTypes = {
  20768. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  20769. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  20770. triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right', 'bottom-left', 'bottom-right']),
  20771. styles: _propTypes2.default.object
  20772. };
  20773. Github.defaultProps = {
  20774. width: 200,
  20775. colors: ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'],
  20776. triangle: 'top-left',
  20777. styles: {}
  20778. };
  20779. exports.default = (0, _common.ColorWrap)(Github);
  20780. /***/ }),
  20781. /***/ "../../node_modules/react-color/lib/components/github/GithubSwatch.js":
  20782. /*!******************************************************************************************!*\
  20783. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/github/GithubSwatch.js ***!
  20784. \******************************************************************************************/
  20785. /*! no static exports found */
  20786. /***/ (function(module, exports, __webpack_require__) {
  20787. "use strict";
  20788. Object.defineProperty(exports, "__esModule", {
  20789. value: true
  20790. });
  20791. exports.GithubSwatch = undefined;
  20792. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20793. var _react2 = _interopRequireDefault(_react);
  20794. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20795. var _reactcss2 = _interopRequireDefault(_reactcss);
  20796. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20797. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20798. var GithubSwatch = exports.GithubSwatch = function GithubSwatch(_ref) {
  20799. var hover = _ref.hover,
  20800. color = _ref.color,
  20801. onClick = _ref.onClick,
  20802. onSwatchHover = _ref.onSwatchHover;
  20803. var hoverSwatch = {
  20804. position: 'relative',
  20805. zIndex: '2',
  20806. outline: '2px solid #fff',
  20807. boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)'
  20808. };
  20809. var styles = (0, _reactcss2.default)({
  20810. 'default': {
  20811. swatch: {
  20812. width: '25px',
  20813. height: '25px',
  20814. fontSize: '0'
  20815. }
  20816. },
  20817. 'hover': {
  20818. swatch: hoverSwatch
  20819. }
  20820. }, { hover: hover });
  20821. return _react2.default.createElement(
  20822. 'div',
  20823. { style: styles.swatch },
  20824. _react2.default.createElement(_common.Swatch, {
  20825. color: color,
  20826. onClick: onClick,
  20827. onHover: onSwatchHover,
  20828. focusStyle: hoverSwatch
  20829. })
  20830. );
  20831. };
  20832. exports.default = (0, _reactcss.handleHover)(GithubSwatch);
  20833. /***/ }),
  20834. /***/ "../../node_modules/react-color/lib/components/hue/Hue.js":
  20835. /*!******************************************************************************!*\
  20836. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/hue/Hue.js ***!
  20837. \******************************************************************************/
  20838. /*! no static exports found */
  20839. /***/ (function(module, exports, __webpack_require__) {
  20840. "use strict";
  20841. Object.defineProperty(exports, "__esModule", {
  20842. value: true
  20843. });
  20844. exports.HuePicker = undefined;
  20845. 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; };
  20846. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20847. var _react2 = _interopRequireDefault(_react);
  20848. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  20849. var _propTypes2 = _interopRequireDefault(_propTypes);
  20850. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20851. var _reactcss2 = _interopRequireDefault(_reactcss);
  20852. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  20853. var _merge2 = _interopRequireDefault(_merge);
  20854. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20855. var _HuePointer = __webpack_require__(/*! ./HuePointer */ "../../node_modules/react-color/lib/components/hue/HuePointer.js");
  20856. var _HuePointer2 = _interopRequireDefault(_HuePointer);
  20857. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20858. var HuePicker = exports.HuePicker = function HuePicker(_ref) {
  20859. var width = _ref.width,
  20860. height = _ref.height,
  20861. onChange = _ref.onChange,
  20862. hsl = _ref.hsl,
  20863. direction = _ref.direction,
  20864. pointer = _ref.pointer,
  20865. _ref$styles = _ref.styles,
  20866. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  20867. _ref$className = _ref.className,
  20868. className = _ref$className === undefined ? '' : _ref$className;
  20869. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  20870. 'default': {
  20871. picker: {
  20872. position: 'relative',
  20873. width: width,
  20874. height: height
  20875. },
  20876. hue: {
  20877. radius: '2px'
  20878. }
  20879. }
  20880. }, passedStyles));
  20881. // Overwrite to provide pure hue color
  20882. var handleChange = function handleChange(data) {
  20883. return onChange({ a: 1, h: data.h, l: 0.5, s: 1 });
  20884. };
  20885. return _react2.default.createElement(
  20886. 'div',
  20887. { style: styles.picker, className: 'hue-picker ' + className },
  20888. _react2.default.createElement(_common.Hue, _extends({}, styles.hue, {
  20889. hsl: hsl,
  20890. pointer: pointer,
  20891. onChange: handleChange,
  20892. direction: direction
  20893. }))
  20894. );
  20895. };
  20896. HuePicker.propTypes = {
  20897. styles: _propTypes2.default.object
  20898. };
  20899. HuePicker.defaultProps = {
  20900. width: '316px',
  20901. height: '16px',
  20902. direction: 'horizontal',
  20903. pointer: _HuePointer2.default,
  20904. styles: {}
  20905. };
  20906. exports.default = (0, _common.ColorWrap)(HuePicker);
  20907. /***/ }),
  20908. /***/ "../../node_modules/react-color/lib/components/hue/HuePointer.js":
  20909. /*!*************************************************************************************!*\
  20910. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/hue/HuePointer.js ***!
  20911. \*************************************************************************************/
  20912. /*! no static exports found */
  20913. /***/ (function(module, exports, __webpack_require__) {
  20914. "use strict";
  20915. Object.defineProperty(exports, "__esModule", {
  20916. value: true
  20917. });
  20918. exports.SliderPointer = undefined;
  20919. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20920. var _react2 = _interopRequireDefault(_react);
  20921. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20922. var _reactcss2 = _interopRequireDefault(_reactcss);
  20923. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20924. var SliderPointer = exports.SliderPointer = function SliderPointer(_ref) {
  20925. var direction = _ref.direction;
  20926. var styles = (0, _reactcss2.default)({
  20927. 'default': {
  20928. picker: {
  20929. width: '18px',
  20930. height: '18px',
  20931. borderRadius: '50%',
  20932. transform: 'translate(-9px, -1px)',
  20933. backgroundColor: 'rgb(248, 248, 248)',
  20934. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  20935. }
  20936. },
  20937. 'vertical': {
  20938. picker: {
  20939. transform: 'translate(-3px, -9px)'
  20940. }
  20941. }
  20942. }, { vertical: direction === 'vertical' });
  20943. return _react2.default.createElement('div', { style: styles.picker });
  20944. };
  20945. exports.default = SliderPointer;
  20946. /***/ }),
  20947. /***/ "../../node_modules/react-color/lib/components/material/Material.js":
  20948. /*!****************************************************************************************!*\
  20949. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/material/Material.js ***!
  20950. \****************************************************************************************/
  20951. /*! no static exports found */
  20952. /***/ (function(module, exports, __webpack_require__) {
  20953. "use strict";
  20954. Object.defineProperty(exports, "__esModule", {
  20955. value: true
  20956. });
  20957. exports.Material = undefined;
  20958. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20959. var _react2 = _interopRequireDefault(_react);
  20960. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20961. var _reactcss2 = _interopRequireDefault(_reactcss);
  20962. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  20963. var _merge2 = _interopRequireDefault(_merge);
  20964. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  20965. var _color2 = _interopRequireDefault(_color);
  20966. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20967. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20968. var Material = exports.Material = function Material(_ref) {
  20969. var onChange = _ref.onChange,
  20970. hex = _ref.hex,
  20971. rgb = _ref.rgb,
  20972. _ref$styles = _ref.styles,
  20973. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  20974. _ref$className = _ref.className,
  20975. className = _ref$className === undefined ? '' : _ref$className;
  20976. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  20977. 'default': {
  20978. material: {
  20979. width: '98px',
  20980. height: '98px',
  20981. padding: '16px',
  20982. fontFamily: 'Roboto'
  20983. },
  20984. HEXwrap: {
  20985. position: 'relative'
  20986. },
  20987. HEXinput: {
  20988. width: '100%',
  20989. marginTop: '12px',
  20990. fontSize: '15px',
  20991. color: '#333',
  20992. padding: '0px',
  20993. border: '0px',
  20994. borderBottom: '2px solid ' + hex,
  20995. outline: 'none',
  20996. height: '30px'
  20997. },
  20998. HEXlabel: {
  20999. position: 'absolute',
  21000. top: '0px',
  21001. left: '0px',
  21002. fontSize: '11px',
  21003. color: '#999999',
  21004. textTransform: 'capitalize'
  21005. },
  21006. Hex: {
  21007. style: {}
  21008. },
  21009. RGBwrap: {
  21010. position: 'relative'
  21011. },
  21012. RGBinput: {
  21013. width: '100%',
  21014. marginTop: '12px',
  21015. fontSize: '15px',
  21016. color: '#333',
  21017. padding: '0px',
  21018. border: '0px',
  21019. borderBottom: '1px solid #eee',
  21020. outline: 'none',
  21021. height: '30px'
  21022. },
  21023. RGBlabel: {
  21024. position: 'absolute',
  21025. top: '0px',
  21026. left: '0px',
  21027. fontSize: '11px',
  21028. color: '#999999',
  21029. textTransform: 'capitalize'
  21030. },
  21031. split: {
  21032. display: 'flex',
  21033. marginRight: '-10px',
  21034. paddingTop: '11px'
  21035. },
  21036. third: {
  21037. flex: '1',
  21038. paddingRight: '10px'
  21039. }
  21040. }
  21041. }, passedStyles));
  21042. var handleChange = function handleChange(data, e) {
  21043. if (data.hex) {
  21044. _color2.default.isValidHex(data.hex) && onChange({
  21045. hex: data.hex,
  21046. source: 'hex'
  21047. }, e);
  21048. } else if (data.r || data.g || data.b) {
  21049. onChange({
  21050. r: data.r || rgb.r,
  21051. g: data.g || rgb.g,
  21052. b: data.b || rgb.b,
  21053. source: 'rgb'
  21054. }, e);
  21055. }
  21056. };
  21057. return _react2.default.createElement(
  21058. _common.Raised,
  21059. { styles: passedStyles },
  21060. _react2.default.createElement(
  21061. 'div',
  21062. { style: styles.material, className: 'material-picker ' + className },
  21063. _react2.default.createElement(_common.EditableInput, {
  21064. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  21065. label: 'hex',
  21066. value: hex,
  21067. onChange: handleChange
  21068. }),
  21069. _react2.default.createElement(
  21070. 'div',
  21071. { style: styles.split, className: 'flexbox-fix' },
  21072. _react2.default.createElement(
  21073. 'div',
  21074. { style: styles.third },
  21075. _react2.default.createElement(_common.EditableInput, {
  21076. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21077. label: 'r', value: rgb.r,
  21078. onChange: handleChange
  21079. })
  21080. ),
  21081. _react2.default.createElement(
  21082. 'div',
  21083. { style: styles.third },
  21084. _react2.default.createElement(_common.EditableInput, {
  21085. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21086. label: 'g',
  21087. value: rgb.g,
  21088. onChange: handleChange
  21089. })
  21090. ),
  21091. _react2.default.createElement(
  21092. 'div',
  21093. { style: styles.third },
  21094. _react2.default.createElement(_common.EditableInput, {
  21095. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21096. label: 'b',
  21097. value: rgb.b,
  21098. onChange: handleChange
  21099. })
  21100. )
  21101. )
  21102. )
  21103. );
  21104. };
  21105. exports.default = (0, _common.ColorWrap)(Material);
  21106. /***/ }),
  21107. /***/ "../../node_modules/react-color/lib/components/photoshop/Photoshop.js":
  21108. /*!******************************************************************************************!*\
  21109. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/Photoshop.js ***!
  21110. \******************************************************************************************/
  21111. /*! no static exports found */
  21112. /***/ (function(module, exports, __webpack_require__) {
  21113. "use strict";
  21114. Object.defineProperty(exports, "__esModule", {
  21115. value: true
  21116. });
  21117. exports.Photoshop = undefined;
  21118. 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; }; }();
  21119. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21120. var _react2 = _interopRequireDefault(_react);
  21121. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  21122. var _propTypes2 = _interopRequireDefault(_propTypes);
  21123. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21124. var _reactcss2 = _interopRequireDefault(_reactcss);
  21125. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  21126. var _merge2 = _interopRequireDefault(_merge);
  21127. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21128. var _PhotoshopFields = __webpack_require__(/*! ./PhotoshopFields */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopFields.js");
  21129. var _PhotoshopFields2 = _interopRequireDefault(_PhotoshopFields);
  21130. var _PhotoshopPointerCircle = __webpack_require__(/*! ./PhotoshopPointerCircle */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js");
  21131. var _PhotoshopPointerCircle2 = _interopRequireDefault(_PhotoshopPointerCircle);
  21132. var _PhotoshopPointer = __webpack_require__(/*! ./PhotoshopPointer */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js");
  21133. var _PhotoshopPointer2 = _interopRequireDefault(_PhotoshopPointer);
  21134. var _PhotoshopButton = __webpack_require__(/*! ./PhotoshopButton */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopButton.js");
  21135. var _PhotoshopButton2 = _interopRequireDefault(_PhotoshopButton);
  21136. var _PhotoshopPreviews = __webpack_require__(/*! ./PhotoshopPreviews */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js");
  21137. var _PhotoshopPreviews2 = _interopRequireDefault(_PhotoshopPreviews);
  21138. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21139. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  21140. 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; }
  21141. 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; }
  21142. var Photoshop = exports.Photoshop = function (_React$Component) {
  21143. _inherits(Photoshop, _React$Component);
  21144. function Photoshop(props) {
  21145. _classCallCheck(this, Photoshop);
  21146. var _this = _possibleConstructorReturn(this, (Photoshop.__proto__ || Object.getPrototypeOf(Photoshop)).call(this));
  21147. _this.state = {
  21148. currentColor: props.hex
  21149. };
  21150. return _this;
  21151. }
  21152. _createClass(Photoshop, [{
  21153. key: 'render',
  21154. value: function render() {
  21155. var _props = this.props,
  21156. _props$styles = _props.styles,
  21157. passedStyles = _props$styles === undefined ? {} : _props$styles,
  21158. _props$className = _props.className,
  21159. className = _props$className === undefined ? '' : _props$className;
  21160. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  21161. 'default': {
  21162. picker: {
  21163. background: '#DCDCDC',
  21164. borderRadius: '4px',
  21165. boxShadow: '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)',
  21166. boxSizing: 'initial',
  21167. width: '513px'
  21168. },
  21169. head: {
  21170. backgroundImage: 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)',
  21171. borderBottom: '1px solid #B1B1B1',
  21172. boxShadow: 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)',
  21173. height: '23px',
  21174. lineHeight: '24px',
  21175. borderRadius: '4px 4px 0 0',
  21176. fontSize: '13px',
  21177. color: '#4D4D4D',
  21178. textAlign: 'center'
  21179. },
  21180. body: {
  21181. padding: '15px 15px 0',
  21182. display: 'flex'
  21183. },
  21184. saturation: {
  21185. width: '256px',
  21186. height: '256px',
  21187. position: 'relative',
  21188. border: '2px solid #B3B3B3',
  21189. borderBottom: '2px solid #F0F0F0',
  21190. overflow: 'hidden'
  21191. },
  21192. hue: {
  21193. position: 'relative',
  21194. height: '256px',
  21195. width: '19px',
  21196. marginLeft: '10px',
  21197. border: '2px solid #B3B3B3',
  21198. borderBottom: '2px solid #F0F0F0'
  21199. },
  21200. controls: {
  21201. width: '180px',
  21202. marginLeft: '10px'
  21203. },
  21204. top: {
  21205. display: 'flex'
  21206. },
  21207. previews: {
  21208. width: '60px'
  21209. },
  21210. actions: {
  21211. flex: '1',
  21212. marginLeft: '20px'
  21213. }
  21214. }
  21215. }, passedStyles));
  21216. return _react2.default.createElement(
  21217. 'div',
  21218. { style: styles.picker, className: 'photoshop-picker ' + className },
  21219. _react2.default.createElement(
  21220. 'div',
  21221. { style: styles.head },
  21222. this.props.header
  21223. ),
  21224. _react2.default.createElement(
  21225. 'div',
  21226. { style: styles.body, className: 'flexbox-fix' },
  21227. _react2.default.createElement(
  21228. 'div',
  21229. { style: styles.saturation },
  21230. _react2.default.createElement(_common.Saturation, {
  21231. hsl: this.props.hsl,
  21232. hsv: this.props.hsv,
  21233. pointer: _PhotoshopPointerCircle2.default,
  21234. onChange: this.props.onChange
  21235. })
  21236. ),
  21237. _react2.default.createElement(
  21238. 'div',
  21239. { style: styles.hue },
  21240. _react2.default.createElement(_common.Hue, {
  21241. direction: 'vertical',
  21242. hsl: this.props.hsl,
  21243. pointer: _PhotoshopPointer2.default,
  21244. onChange: this.props.onChange
  21245. })
  21246. ),
  21247. _react2.default.createElement(
  21248. 'div',
  21249. { style: styles.controls },
  21250. _react2.default.createElement(
  21251. 'div',
  21252. { style: styles.top, className: 'flexbox-fix' },
  21253. _react2.default.createElement(
  21254. 'div',
  21255. { style: styles.previews },
  21256. _react2.default.createElement(_PhotoshopPreviews2.default, {
  21257. rgb: this.props.rgb,
  21258. currentColor: this.state.currentColor
  21259. })
  21260. ),
  21261. _react2.default.createElement(
  21262. 'div',
  21263. { style: styles.actions },
  21264. _react2.default.createElement(_PhotoshopButton2.default, { label: 'OK', onClick: this.props.onAccept, active: true }),
  21265. _react2.default.createElement(_PhotoshopButton2.default, { label: 'Cancel', onClick: this.props.onCancel }),
  21266. _react2.default.createElement(_PhotoshopFields2.default, {
  21267. onChange: this.props.onChange,
  21268. rgb: this.props.rgb,
  21269. hsv: this.props.hsv,
  21270. hex: this.props.hex
  21271. })
  21272. )
  21273. )
  21274. )
  21275. )
  21276. );
  21277. }
  21278. }]);
  21279. return Photoshop;
  21280. }(_react2.default.Component);
  21281. Photoshop.propTypes = {
  21282. header: _propTypes2.default.string,
  21283. styles: _propTypes2.default.object
  21284. };
  21285. Photoshop.defaultProps = {
  21286. header: 'Color Picker',
  21287. styles: {}
  21288. };
  21289. exports.default = (0, _common.ColorWrap)(Photoshop);
  21290. /***/ }),
  21291. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopButton.js":
  21292. /*!************************************************************************************************!*\
  21293. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopButton.js ***!
  21294. \************************************************************************************************/
  21295. /*! no static exports found */
  21296. /***/ (function(module, exports, __webpack_require__) {
  21297. "use strict";
  21298. Object.defineProperty(exports, "__esModule", {
  21299. value: true
  21300. });
  21301. exports.PhotoshopButton = undefined;
  21302. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21303. var _react2 = _interopRequireDefault(_react);
  21304. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21305. var _reactcss2 = _interopRequireDefault(_reactcss);
  21306. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21307. var PhotoshopButton = exports.PhotoshopButton = function PhotoshopButton(_ref) {
  21308. var onClick = _ref.onClick,
  21309. label = _ref.label,
  21310. children = _ref.children,
  21311. active = _ref.active;
  21312. var styles = (0, _reactcss2.default)({
  21313. 'default': {
  21314. button: {
  21315. backgroundImage: 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)',
  21316. border: '1px solid #878787',
  21317. borderRadius: '2px',
  21318. height: '20px',
  21319. boxShadow: '0 1px 0 0 #EAEAEA',
  21320. fontSize: '14px',
  21321. color: '#000',
  21322. lineHeight: '20px',
  21323. textAlign: 'center',
  21324. marginBottom: '10px',
  21325. cursor: 'pointer'
  21326. }
  21327. },
  21328. 'active': {
  21329. button: {
  21330. boxShadow: '0 0 0 1px #878787'
  21331. }
  21332. }
  21333. }, { active: active });
  21334. return _react2.default.createElement(
  21335. 'div',
  21336. { style: styles.button, onClick: onClick },
  21337. label || children
  21338. );
  21339. };
  21340. exports.default = PhotoshopButton;
  21341. /***/ }),
  21342. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopFields.js":
  21343. /*!************************************************************************************************!*\
  21344. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopFields.js ***!
  21345. \************************************************************************************************/
  21346. /*! no static exports found */
  21347. /***/ (function(module, exports, __webpack_require__) {
  21348. "use strict";
  21349. Object.defineProperty(exports, "__esModule", {
  21350. value: true
  21351. });
  21352. exports.PhotoshopPicker = undefined;
  21353. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21354. var _react2 = _interopRequireDefault(_react);
  21355. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21356. var _reactcss2 = _interopRequireDefault(_reactcss);
  21357. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  21358. var _color2 = _interopRequireDefault(_color);
  21359. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21360. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21361. var PhotoshopPicker = exports.PhotoshopPicker = function PhotoshopPicker(_ref) {
  21362. var onChange = _ref.onChange,
  21363. rgb = _ref.rgb,
  21364. hsv = _ref.hsv,
  21365. hex = _ref.hex;
  21366. var styles = (0, _reactcss2.default)({
  21367. 'default': {
  21368. fields: {
  21369. paddingTop: '5px',
  21370. paddingBottom: '9px',
  21371. width: '80px',
  21372. position: 'relative'
  21373. },
  21374. divider: {
  21375. height: '5px'
  21376. },
  21377. RGBwrap: {
  21378. position: 'relative'
  21379. },
  21380. RGBinput: {
  21381. marginLeft: '40%',
  21382. width: '40%',
  21383. height: '18px',
  21384. border: '1px solid #888888',
  21385. boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
  21386. marginBottom: '5px',
  21387. fontSize: '13px',
  21388. paddingLeft: '3px',
  21389. marginRight: '10px'
  21390. },
  21391. RGBlabel: {
  21392. left: '0px',
  21393. width: '34px',
  21394. textTransform: 'uppercase',
  21395. fontSize: '13px',
  21396. height: '18px',
  21397. lineHeight: '22px',
  21398. position: 'absolute'
  21399. },
  21400. HEXwrap: {
  21401. position: 'relative'
  21402. },
  21403. HEXinput: {
  21404. marginLeft: '20%',
  21405. width: '80%',
  21406. height: '18px',
  21407. border: '1px solid #888888',
  21408. boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
  21409. marginBottom: '6px',
  21410. fontSize: '13px',
  21411. paddingLeft: '3px'
  21412. },
  21413. HEXlabel: {
  21414. position: 'absolute',
  21415. top: '0px',
  21416. left: '0px',
  21417. width: '14px',
  21418. textTransform: 'uppercase',
  21419. fontSize: '13px',
  21420. height: '18px',
  21421. lineHeight: '22px'
  21422. },
  21423. fieldSymbols: {
  21424. position: 'absolute',
  21425. top: '5px',
  21426. right: '-7px',
  21427. fontSize: '13px'
  21428. },
  21429. symbol: {
  21430. height: '20px',
  21431. lineHeight: '22px',
  21432. paddingBottom: '7px'
  21433. }
  21434. }
  21435. });
  21436. var handleChange = function handleChange(data, e) {
  21437. if (data['#']) {
  21438. _color2.default.isValidHex(data['#']) && onChange({
  21439. hex: data['#'],
  21440. source: 'hex'
  21441. }, e);
  21442. } else if (data.r || data.g || data.b) {
  21443. onChange({
  21444. r: data.r || rgb.r,
  21445. g: data.g || rgb.g,
  21446. b: data.b || rgb.b,
  21447. source: 'rgb'
  21448. }, e);
  21449. } else if (data.h || data.s || data.v) {
  21450. onChange({
  21451. h: data.h || hsv.h,
  21452. s: data.s || hsv.s,
  21453. v: data.v || hsv.v,
  21454. source: 'hsv'
  21455. }, e);
  21456. }
  21457. };
  21458. return _react2.default.createElement(
  21459. 'div',
  21460. { style: styles.fields },
  21461. _react2.default.createElement(_common.EditableInput, {
  21462. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21463. label: 'h',
  21464. value: Math.round(hsv.h),
  21465. onChange: handleChange
  21466. }),
  21467. _react2.default.createElement(_common.EditableInput, {
  21468. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21469. label: 's',
  21470. value: Math.round(hsv.s * 100),
  21471. onChange: handleChange
  21472. }),
  21473. _react2.default.createElement(_common.EditableInput, {
  21474. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21475. label: 'v',
  21476. value: Math.round(hsv.v * 100),
  21477. onChange: handleChange
  21478. }),
  21479. _react2.default.createElement('div', { style: styles.divider }),
  21480. _react2.default.createElement(_common.EditableInput, {
  21481. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21482. label: 'r',
  21483. value: rgb.r,
  21484. onChange: handleChange
  21485. }),
  21486. _react2.default.createElement(_common.EditableInput, {
  21487. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21488. label: 'g',
  21489. value: rgb.g,
  21490. onChange: handleChange
  21491. }),
  21492. _react2.default.createElement(_common.EditableInput, {
  21493. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21494. label: 'b',
  21495. value: rgb.b,
  21496. onChange: handleChange
  21497. }),
  21498. _react2.default.createElement('div', { style: styles.divider }),
  21499. _react2.default.createElement(_common.EditableInput, {
  21500. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  21501. label: '#',
  21502. value: hex.replace('#', ''),
  21503. onChange: handleChange
  21504. }),
  21505. _react2.default.createElement(
  21506. 'div',
  21507. { style: styles.fieldSymbols },
  21508. _react2.default.createElement(
  21509. 'div',
  21510. { style: styles.symbol },
  21511. '\xB0'
  21512. ),
  21513. _react2.default.createElement(
  21514. 'div',
  21515. { style: styles.symbol },
  21516. '%'
  21517. ),
  21518. _react2.default.createElement(
  21519. 'div',
  21520. { style: styles.symbol },
  21521. '%'
  21522. )
  21523. )
  21524. );
  21525. };
  21526. exports.default = PhotoshopPicker;
  21527. /***/ }),
  21528. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js":
  21529. /*!*************************************************************************************************!*\
  21530. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js ***!
  21531. \*************************************************************************************************/
  21532. /*! no static exports found */
  21533. /***/ (function(module, exports, __webpack_require__) {
  21534. "use strict";
  21535. Object.defineProperty(exports, "__esModule", {
  21536. value: true
  21537. });
  21538. exports.PhotoshopPointerCircle = undefined;
  21539. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21540. var _react2 = _interopRequireDefault(_react);
  21541. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21542. var _reactcss2 = _interopRequireDefault(_reactcss);
  21543. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21544. var PhotoshopPointerCircle = exports.PhotoshopPointerCircle = function PhotoshopPointerCircle() {
  21545. var styles = (0, _reactcss2.default)({
  21546. 'default': {
  21547. triangle: {
  21548. width: 0,
  21549. height: 0,
  21550. borderStyle: 'solid',
  21551. borderWidth: '4px 0 4px 6px',
  21552. borderColor: 'transparent transparent transparent #fff',
  21553. position: 'absolute',
  21554. top: '1px',
  21555. left: '1px'
  21556. },
  21557. triangleBorder: {
  21558. width: 0,
  21559. height: 0,
  21560. borderStyle: 'solid',
  21561. borderWidth: '5px 0 5px 8px',
  21562. borderColor: 'transparent transparent transparent #555'
  21563. },
  21564. left: {
  21565. Extend: 'triangleBorder',
  21566. transform: 'translate(-13px, -4px)'
  21567. },
  21568. leftInside: {
  21569. Extend: 'triangle',
  21570. transform: 'translate(-8px, -5px)'
  21571. },
  21572. right: {
  21573. Extend: 'triangleBorder',
  21574. transform: 'translate(20px, -14px) rotate(180deg)'
  21575. },
  21576. rightInside: {
  21577. Extend: 'triangle',
  21578. transform: 'translate(-8px, -5px)'
  21579. }
  21580. }
  21581. });
  21582. return _react2.default.createElement(
  21583. 'div',
  21584. { style: styles.pointer },
  21585. _react2.default.createElement(
  21586. 'div',
  21587. { style: styles.left },
  21588. _react2.default.createElement('div', { style: styles.leftInside })
  21589. ),
  21590. _react2.default.createElement(
  21591. 'div',
  21592. { style: styles.right },
  21593. _react2.default.createElement('div', { style: styles.rightInside })
  21594. )
  21595. );
  21596. };
  21597. exports.default = PhotoshopPointerCircle;
  21598. /***/ }),
  21599. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js":
  21600. /*!*******************************************************************************************************!*\
  21601. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js ***!
  21602. \*******************************************************************************************************/
  21603. /*! no static exports found */
  21604. /***/ (function(module, exports, __webpack_require__) {
  21605. "use strict";
  21606. Object.defineProperty(exports, "__esModule", {
  21607. value: true
  21608. });
  21609. exports.PhotoshopPointerCircle = undefined;
  21610. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21611. var _react2 = _interopRequireDefault(_react);
  21612. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21613. var _reactcss2 = _interopRequireDefault(_reactcss);
  21614. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21615. var PhotoshopPointerCircle = exports.PhotoshopPointerCircle = function PhotoshopPointerCircle(_ref) {
  21616. var hsl = _ref.hsl;
  21617. var styles = (0, _reactcss2.default)({
  21618. 'default': {
  21619. picker: {
  21620. width: '12px',
  21621. height: '12px',
  21622. borderRadius: '6px',
  21623. boxShadow: 'inset 0 0 0 1px #fff',
  21624. transform: 'translate(-6px, -6px)'
  21625. }
  21626. },
  21627. 'black-outline': {
  21628. picker: {
  21629. boxShadow: 'inset 0 0 0 1px #000'
  21630. }
  21631. }
  21632. }, { 'black-outline': hsl.l > 0.5 });
  21633. return _react2.default.createElement('div', { style: styles.picker });
  21634. };
  21635. exports.default = PhotoshopPointerCircle;
  21636. /***/ }),
  21637. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js":
  21638. /*!**************************************************************************************************!*\
  21639. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js ***!
  21640. \**************************************************************************************************/
  21641. /*! no static exports found */
  21642. /***/ (function(module, exports, __webpack_require__) {
  21643. "use strict";
  21644. Object.defineProperty(exports, "__esModule", {
  21645. value: true
  21646. });
  21647. exports.PhotoshopPreviews = undefined;
  21648. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21649. var _react2 = _interopRequireDefault(_react);
  21650. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21651. var _reactcss2 = _interopRequireDefault(_reactcss);
  21652. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21653. var PhotoshopPreviews = exports.PhotoshopPreviews = function PhotoshopPreviews(_ref) {
  21654. var rgb = _ref.rgb,
  21655. currentColor = _ref.currentColor;
  21656. var styles = (0, _reactcss2.default)({
  21657. 'default': {
  21658. swatches: {
  21659. border: '1px solid #B3B3B3',
  21660. borderBottom: '1px solid #F0F0F0',
  21661. marginBottom: '2px',
  21662. marginTop: '1px'
  21663. },
  21664. new: {
  21665. height: '34px',
  21666. background: 'rgb(' + rgb.r + ',' + rgb.g + ', ' + rgb.b + ')',
  21667. boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000'
  21668. },
  21669. current: {
  21670. height: '34px',
  21671. background: currentColor,
  21672. boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000'
  21673. },
  21674. label: {
  21675. fontSize: '14px',
  21676. color: '#000',
  21677. textAlign: 'center'
  21678. }
  21679. }
  21680. });
  21681. return _react2.default.createElement(
  21682. 'div',
  21683. null,
  21684. _react2.default.createElement(
  21685. 'div',
  21686. { style: styles.label },
  21687. 'new'
  21688. ),
  21689. _react2.default.createElement(
  21690. 'div',
  21691. { style: styles.swatches },
  21692. _react2.default.createElement('div', { style: styles.new }),
  21693. _react2.default.createElement('div', { style: styles.current })
  21694. ),
  21695. _react2.default.createElement(
  21696. 'div',
  21697. { style: styles.label },
  21698. 'current'
  21699. )
  21700. );
  21701. };
  21702. exports.default = PhotoshopPreviews;
  21703. /***/ }),
  21704. /***/ "../../node_modules/react-color/lib/components/sketch/Sketch.js":
  21705. /*!************************************************************************************!*\
  21706. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/Sketch.js ***!
  21707. \************************************************************************************/
  21708. /*! no static exports found */
  21709. /***/ (function(module, exports, __webpack_require__) {
  21710. "use strict";
  21711. Object.defineProperty(exports, "__esModule", {
  21712. value: true
  21713. });
  21714. exports.Sketch = undefined;
  21715. 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; };
  21716. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21717. var _react2 = _interopRequireDefault(_react);
  21718. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  21719. var _propTypes2 = _interopRequireDefault(_propTypes);
  21720. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21721. var _reactcss2 = _interopRequireDefault(_reactcss);
  21722. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  21723. var _merge2 = _interopRequireDefault(_merge);
  21724. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21725. var _SketchFields = __webpack_require__(/*! ./SketchFields */ "../../node_modules/react-color/lib/components/sketch/SketchFields.js");
  21726. var _SketchFields2 = _interopRequireDefault(_SketchFields);
  21727. var _SketchPresetColors = __webpack_require__(/*! ./SketchPresetColors */ "../../node_modules/react-color/lib/components/sketch/SketchPresetColors.js");
  21728. var _SketchPresetColors2 = _interopRequireDefault(_SketchPresetColors);
  21729. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21730. var Sketch = exports.Sketch = function Sketch(_ref) {
  21731. var width = _ref.width,
  21732. rgb = _ref.rgb,
  21733. hex = _ref.hex,
  21734. hsv = _ref.hsv,
  21735. hsl = _ref.hsl,
  21736. onChange = _ref.onChange,
  21737. onSwatchHover = _ref.onSwatchHover,
  21738. disableAlpha = _ref.disableAlpha,
  21739. presetColors = _ref.presetColors,
  21740. renderers = _ref.renderers,
  21741. _ref$styles = _ref.styles,
  21742. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  21743. _ref$className = _ref.className,
  21744. className = _ref$className === undefined ? '' : _ref$className;
  21745. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  21746. 'default': _extends({
  21747. picker: {
  21748. width: width,
  21749. padding: '10px 10px 0',
  21750. boxSizing: 'initial',
  21751. background: '#fff',
  21752. borderRadius: '4px',
  21753. boxShadow: '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)'
  21754. },
  21755. saturation: {
  21756. width: '100%',
  21757. paddingBottom: '75%',
  21758. position: 'relative',
  21759. overflow: 'hidden'
  21760. },
  21761. Saturation: {
  21762. radius: '3px',
  21763. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  21764. },
  21765. controls: {
  21766. display: 'flex'
  21767. },
  21768. sliders: {
  21769. padding: '4px 0',
  21770. flex: '1'
  21771. },
  21772. color: {
  21773. width: '24px',
  21774. height: '24px',
  21775. position: 'relative',
  21776. marginTop: '4px',
  21777. marginLeft: '4px',
  21778. borderRadius: '3px'
  21779. },
  21780. activeColor: {
  21781. absolute: '0px 0px 0px 0px',
  21782. borderRadius: '2px',
  21783. background: 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')',
  21784. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  21785. },
  21786. hue: {
  21787. position: 'relative',
  21788. height: '10px',
  21789. overflow: 'hidden'
  21790. },
  21791. Hue: {
  21792. radius: '2px',
  21793. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  21794. },
  21795. alpha: {
  21796. position: 'relative',
  21797. height: '10px',
  21798. marginTop: '4px',
  21799. overflow: 'hidden'
  21800. },
  21801. Alpha: {
  21802. radius: '2px',
  21803. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  21804. }
  21805. }, passedStyles),
  21806. 'disableAlpha': {
  21807. color: {
  21808. height: '10px'
  21809. },
  21810. hue: {
  21811. height: '10px'
  21812. },
  21813. alpha: {
  21814. display: 'none'
  21815. }
  21816. }
  21817. }, passedStyles), { disableAlpha: disableAlpha });
  21818. return _react2.default.createElement(
  21819. 'div',
  21820. { style: styles.picker, className: 'sketch-picker ' + className },
  21821. _react2.default.createElement(
  21822. 'div',
  21823. { style: styles.saturation },
  21824. _react2.default.createElement(_common.Saturation, {
  21825. style: styles.Saturation,
  21826. hsl: hsl,
  21827. hsv: hsv,
  21828. onChange: onChange
  21829. })
  21830. ),
  21831. _react2.default.createElement(
  21832. 'div',
  21833. { style: styles.controls, className: 'flexbox-fix' },
  21834. _react2.default.createElement(
  21835. 'div',
  21836. { style: styles.sliders },
  21837. _react2.default.createElement(
  21838. 'div',
  21839. { style: styles.hue },
  21840. _react2.default.createElement(_common.Hue, {
  21841. style: styles.Hue,
  21842. hsl: hsl,
  21843. onChange: onChange
  21844. })
  21845. ),
  21846. _react2.default.createElement(
  21847. 'div',
  21848. { style: styles.alpha },
  21849. _react2.default.createElement(_common.Alpha, {
  21850. style: styles.Alpha,
  21851. rgb: rgb,
  21852. hsl: hsl,
  21853. renderers: renderers,
  21854. onChange: onChange
  21855. })
  21856. )
  21857. ),
  21858. _react2.default.createElement(
  21859. 'div',
  21860. { style: styles.color },
  21861. _react2.default.createElement(_common.Checkboard, null),
  21862. _react2.default.createElement('div', { style: styles.activeColor })
  21863. )
  21864. ),
  21865. _react2.default.createElement(_SketchFields2.default, {
  21866. rgb: rgb,
  21867. hsl: hsl,
  21868. hex: hex,
  21869. onChange: onChange,
  21870. disableAlpha: disableAlpha
  21871. }),
  21872. _react2.default.createElement(_SketchPresetColors2.default, {
  21873. colors: presetColors,
  21874. onClick: onChange,
  21875. onSwatchHover: onSwatchHover
  21876. })
  21877. );
  21878. };
  21879. Sketch.propTypes = {
  21880. disableAlpha: _propTypes2.default.bool,
  21881. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  21882. styles: _propTypes2.default.object
  21883. };
  21884. Sketch.defaultProps = {
  21885. disableAlpha: false,
  21886. width: 200,
  21887. styles: {},
  21888. presetColors: ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF']
  21889. };
  21890. exports.default = (0, _common.ColorWrap)(Sketch);
  21891. /***/ }),
  21892. /***/ "../../node_modules/react-color/lib/components/sketch/SketchFields.js":
  21893. /*!******************************************************************************************!*\
  21894. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/SketchFields.js ***!
  21895. \******************************************************************************************/
  21896. /*! no static exports found */
  21897. /***/ (function(module, exports, __webpack_require__) {
  21898. "use strict";
  21899. Object.defineProperty(exports, "__esModule", {
  21900. value: true
  21901. });
  21902. exports.SketchFields = undefined;
  21903. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21904. var _react2 = _interopRequireDefault(_react);
  21905. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21906. var _reactcss2 = _interopRequireDefault(_reactcss);
  21907. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  21908. var _color2 = _interopRequireDefault(_color);
  21909. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21910. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21911. /* eslint-disable no-param-reassign */
  21912. var SketchFields = exports.SketchFields = function SketchFields(_ref) {
  21913. var onChange = _ref.onChange,
  21914. rgb = _ref.rgb,
  21915. hsl = _ref.hsl,
  21916. hex = _ref.hex,
  21917. disableAlpha = _ref.disableAlpha;
  21918. var styles = (0, _reactcss2.default)({
  21919. 'default': {
  21920. fields: {
  21921. display: 'flex',
  21922. paddingTop: '4px'
  21923. },
  21924. single: {
  21925. flex: '1',
  21926. paddingLeft: '6px'
  21927. },
  21928. alpha: {
  21929. flex: '1',
  21930. paddingLeft: '6px'
  21931. },
  21932. double: {
  21933. flex: '2'
  21934. },
  21935. input: {
  21936. width: '80%',
  21937. padding: '4px 10% 3px',
  21938. border: 'none',
  21939. boxShadow: 'inset 0 0 0 1px #ccc',
  21940. fontSize: '11px'
  21941. },
  21942. label: {
  21943. display: 'block',
  21944. textAlign: 'center',
  21945. fontSize: '11px',
  21946. color: '#222',
  21947. paddingTop: '3px',
  21948. paddingBottom: '4px',
  21949. textTransform: 'capitalize'
  21950. }
  21951. },
  21952. 'disableAlpha': {
  21953. alpha: {
  21954. display: 'none'
  21955. }
  21956. }
  21957. }, { disableAlpha: disableAlpha });
  21958. var handleChange = function handleChange(data, e) {
  21959. if (data.hex) {
  21960. _color2.default.isValidHex(data.hex) && onChange({
  21961. hex: data.hex,
  21962. source: 'hex'
  21963. }, e);
  21964. } else if (data.r || data.g || data.b) {
  21965. onChange({
  21966. r: data.r || rgb.r,
  21967. g: data.g || rgb.g,
  21968. b: data.b || rgb.b,
  21969. a: rgb.a,
  21970. source: 'rgb'
  21971. }, e);
  21972. } else if (data.a) {
  21973. if (data.a < 0) {
  21974. data.a = 0;
  21975. } else if (data.a > 100) {
  21976. data.a = 100;
  21977. }
  21978. data.a /= 100;
  21979. onChange({
  21980. h: hsl.h,
  21981. s: hsl.s,
  21982. l: hsl.l,
  21983. a: data.a,
  21984. source: 'rgb'
  21985. }, e);
  21986. }
  21987. };
  21988. return _react2.default.createElement(
  21989. 'div',
  21990. { style: styles.fields, className: 'flexbox-fix' },
  21991. _react2.default.createElement(
  21992. 'div',
  21993. { style: styles.double },
  21994. _react2.default.createElement(_common.EditableInput, {
  21995. style: { input: styles.input, label: styles.label },
  21996. label: 'hex',
  21997. value: hex.replace('#', ''),
  21998. onChange: handleChange
  21999. })
  22000. ),
  22001. _react2.default.createElement(
  22002. 'div',
  22003. { style: styles.single },
  22004. _react2.default.createElement(_common.EditableInput, {
  22005. style: { input: styles.input, label: styles.label },
  22006. label: 'r',
  22007. value: rgb.r,
  22008. onChange: handleChange,
  22009. dragLabel: 'true',
  22010. dragMax: '255'
  22011. })
  22012. ),
  22013. _react2.default.createElement(
  22014. 'div',
  22015. { style: styles.single },
  22016. _react2.default.createElement(_common.EditableInput, {
  22017. style: { input: styles.input, label: styles.label },
  22018. label: 'g',
  22019. value: rgb.g,
  22020. onChange: handleChange,
  22021. dragLabel: 'true',
  22022. dragMax: '255'
  22023. })
  22024. ),
  22025. _react2.default.createElement(
  22026. 'div',
  22027. { style: styles.single },
  22028. _react2.default.createElement(_common.EditableInput, {
  22029. style: { input: styles.input, label: styles.label },
  22030. label: 'b',
  22031. value: rgb.b,
  22032. onChange: handleChange,
  22033. dragLabel: 'true',
  22034. dragMax: '255'
  22035. })
  22036. ),
  22037. _react2.default.createElement(
  22038. 'div',
  22039. { style: styles.alpha },
  22040. _react2.default.createElement(_common.EditableInput, {
  22041. style: { input: styles.input, label: styles.label },
  22042. label: 'a',
  22043. value: Math.round(rgb.a * 100),
  22044. onChange: handleChange,
  22045. dragLabel: 'true',
  22046. dragMax: '100'
  22047. })
  22048. )
  22049. );
  22050. };
  22051. exports.default = SketchFields;
  22052. /***/ }),
  22053. /***/ "../../node_modules/react-color/lib/components/sketch/SketchPresetColors.js":
  22054. /*!************************************************************************************************!*\
  22055. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/SketchPresetColors.js ***!
  22056. \************************************************************************************************/
  22057. /*! no static exports found */
  22058. /***/ (function(module, exports, __webpack_require__) {
  22059. "use strict";
  22060. Object.defineProperty(exports, "__esModule", {
  22061. value: true
  22062. });
  22063. exports.SketchPresetColors = undefined;
  22064. 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; };
  22065. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22066. var _react2 = _interopRequireDefault(_react);
  22067. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22068. var _propTypes2 = _interopRequireDefault(_propTypes);
  22069. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22070. var _reactcss2 = _interopRequireDefault(_reactcss);
  22071. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22072. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22073. var SketchPresetColors = exports.SketchPresetColors = function SketchPresetColors(_ref) {
  22074. var colors = _ref.colors,
  22075. _ref$onClick = _ref.onClick,
  22076. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  22077. onSwatchHover = _ref.onSwatchHover;
  22078. var styles = (0, _reactcss2.default)({
  22079. 'default': {
  22080. colors: {
  22081. margin: '0 -10px',
  22082. padding: '10px 0 0 10px',
  22083. borderTop: '1px solid #eee',
  22084. display: 'flex',
  22085. flexWrap: 'wrap',
  22086. position: 'relative'
  22087. },
  22088. swatchWrap: {
  22089. width: '16px',
  22090. height: '16px',
  22091. margin: '0 10px 10px 0'
  22092. },
  22093. swatch: {
  22094. borderRadius: '3px',
  22095. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)'
  22096. }
  22097. },
  22098. 'no-presets': {
  22099. colors: {
  22100. display: 'none'
  22101. }
  22102. }
  22103. }, {
  22104. 'no-presets': !colors || !colors.length
  22105. });
  22106. var handleClick = function handleClick(hex, e) {
  22107. onClick({
  22108. hex: hex,
  22109. source: 'hex'
  22110. }, e);
  22111. };
  22112. return _react2.default.createElement(
  22113. 'div',
  22114. { style: styles.colors, className: 'flexbox-fix' },
  22115. colors.map(function (colorObjOrString) {
  22116. var c = typeof colorObjOrString === 'string' ? { color: colorObjOrString } : colorObjOrString;
  22117. var key = '' + c.color + (c.title || '');
  22118. return _react2.default.createElement(
  22119. 'div',
  22120. { key: key, style: styles.swatchWrap },
  22121. _react2.default.createElement(_common.Swatch, _extends({}, c, {
  22122. style: styles.swatch,
  22123. onClick: handleClick,
  22124. onHover: onSwatchHover,
  22125. focusStyle: {
  22126. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + c.color
  22127. }
  22128. }))
  22129. );
  22130. })
  22131. );
  22132. };
  22133. SketchPresetColors.propTypes = {
  22134. colors: _propTypes2.default.arrayOf(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({
  22135. color: _propTypes2.default.string,
  22136. title: _propTypes2.default.string
  22137. })])).isRequired
  22138. };
  22139. exports.default = SketchPresetColors;
  22140. /***/ }),
  22141. /***/ "../../node_modules/react-color/lib/components/slider/Slider.js":
  22142. /*!************************************************************************************!*\
  22143. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/Slider.js ***!
  22144. \************************************************************************************/
  22145. /*! no static exports found */
  22146. /***/ (function(module, exports, __webpack_require__) {
  22147. "use strict";
  22148. Object.defineProperty(exports, "__esModule", {
  22149. value: true
  22150. });
  22151. exports.Slider = undefined;
  22152. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22153. var _react2 = _interopRequireDefault(_react);
  22154. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22155. var _propTypes2 = _interopRequireDefault(_propTypes);
  22156. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22157. var _reactcss2 = _interopRequireDefault(_reactcss);
  22158. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  22159. var _merge2 = _interopRequireDefault(_merge);
  22160. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22161. var _SliderSwatches = __webpack_require__(/*! ./SliderSwatches */ "../../node_modules/react-color/lib/components/slider/SliderSwatches.js");
  22162. var _SliderSwatches2 = _interopRequireDefault(_SliderSwatches);
  22163. var _SliderPointer = __webpack_require__(/*! ./SliderPointer */ "../../node_modules/react-color/lib/components/slider/SliderPointer.js");
  22164. var _SliderPointer2 = _interopRequireDefault(_SliderPointer);
  22165. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22166. var Slider = exports.Slider = function Slider(_ref) {
  22167. var hsl = _ref.hsl,
  22168. onChange = _ref.onChange,
  22169. pointer = _ref.pointer,
  22170. _ref$styles = _ref.styles,
  22171. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  22172. _ref$className = _ref.className,
  22173. className = _ref$className === undefined ? '' : _ref$className;
  22174. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  22175. 'default': {
  22176. hue: {
  22177. height: '12px',
  22178. position: 'relative'
  22179. },
  22180. Hue: {
  22181. radius: '2px'
  22182. }
  22183. }
  22184. }, passedStyles));
  22185. return _react2.default.createElement(
  22186. 'div',
  22187. { style: styles.wrap || {}, className: 'slider-picker ' + className },
  22188. _react2.default.createElement(
  22189. 'div',
  22190. { style: styles.hue },
  22191. _react2.default.createElement(_common.Hue, {
  22192. style: styles.Hue,
  22193. hsl: hsl,
  22194. pointer: pointer,
  22195. onChange: onChange
  22196. })
  22197. ),
  22198. _react2.default.createElement(
  22199. 'div',
  22200. { style: styles.swatches },
  22201. _react2.default.createElement(_SliderSwatches2.default, { hsl: hsl, onClick: onChange })
  22202. )
  22203. );
  22204. };
  22205. Slider.propTypes = {
  22206. styles: _propTypes2.default.object
  22207. };
  22208. Slider.defaultProps = {
  22209. pointer: _SliderPointer2.default,
  22210. styles: {}
  22211. };
  22212. exports.default = (0, _common.ColorWrap)(Slider);
  22213. /***/ }),
  22214. /***/ "../../node_modules/react-color/lib/components/slider/SliderPointer.js":
  22215. /*!*******************************************************************************************!*\
  22216. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderPointer.js ***!
  22217. \*******************************************************************************************/
  22218. /*! no static exports found */
  22219. /***/ (function(module, exports, __webpack_require__) {
  22220. "use strict";
  22221. Object.defineProperty(exports, "__esModule", {
  22222. value: true
  22223. });
  22224. exports.SliderPointer = undefined;
  22225. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22226. var _react2 = _interopRequireDefault(_react);
  22227. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22228. var _reactcss2 = _interopRequireDefault(_reactcss);
  22229. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22230. var SliderPointer = exports.SliderPointer = function SliderPointer() {
  22231. var styles = (0, _reactcss2.default)({
  22232. 'default': {
  22233. picker: {
  22234. width: '14px',
  22235. height: '14px',
  22236. borderRadius: '6px',
  22237. transform: 'translate(-7px, -1px)',
  22238. backgroundColor: 'rgb(248, 248, 248)',
  22239. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  22240. }
  22241. }
  22242. });
  22243. return _react2.default.createElement('div', { style: styles.picker });
  22244. };
  22245. exports.default = SliderPointer;
  22246. /***/ }),
  22247. /***/ "../../node_modules/react-color/lib/components/slider/SliderSwatch.js":
  22248. /*!******************************************************************************************!*\
  22249. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderSwatch.js ***!
  22250. \******************************************************************************************/
  22251. /*! no static exports found */
  22252. /***/ (function(module, exports, __webpack_require__) {
  22253. "use strict";
  22254. Object.defineProperty(exports, "__esModule", {
  22255. value: true
  22256. });
  22257. exports.SliderSwatch = undefined;
  22258. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22259. var _react2 = _interopRequireDefault(_react);
  22260. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22261. var _reactcss2 = _interopRequireDefault(_reactcss);
  22262. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22263. var SliderSwatch = exports.SliderSwatch = function SliderSwatch(_ref) {
  22264. var hsl = _ref.hsl,
  22265. offset = _ref.offset,
  22266. _ref$onClick = _ref.onClick,
  22267. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  22268. active = _ref.active,
  22269. first = _ref.first,
  22270. last = _ref.last;
  22271. var styles = (0, _reactcss2.default)({
  22272. 'default': {
  22273. swatch: {
  22274. height: '12px',
  22275. background: 'hsl(' + hsl.h + ', 50%, ' + offset * 100 + '%)',
  22276. cursor: 'pointer'
  22277. }
  22278. },
  22279. 'first': {
  22280. swatch: {
  22281. borderRadius: '2px 0 0 2px'
  22282. }
  22283. },
  22284. 'last': {
  22285. swatch: {
  22286. borderRadius: '0 2px 2px 0'
  22287. }
  22288. },
  22289. 'active': {
  22290. swatch: {
  22291. transform: 'scaleY(1.8)',
  22292. borderRadius: '3.6px/2px'
  22293. }
  22294. }
  22295. }, { active: active, first: first, last: last });
  22296. var handleClick = function handleClick(e) {
  22297. return onClick({
  22298. h: hsl.h,
  22299. s: 0.5,
  22300. l: offset,
  22301. source: 'hsl'
  22302. }, e);
  22303. };
  22304. return _react2.default.createElement('div', { style: styles.swatch, onClick: handleClick });
  22305. };
  22306. exports.default = SliderSwatch;
  22307. /***/ }),
  22308. /***/ "../../node_modules/react-color/lib/components/slider/SliderSwatches.js":
  22309. /*!********************************************************************************************!*\
  22310. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderSwatches.js ***!
  22311. \********************************************************************************************/
  22312. /*! no static exports found */
  22313. /***/ (function(module, exports, __webpack_require__) {
  22314. "use strict";
  22315. Object.defineProperty(exports, "__esModule", {
  22316. value: true
  22317. });
  22318. exports.SliderSwatches = undefined;
  22319. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22320. var _react2 = _interopRequireDefault(_react);
  22321. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22322. var _reactcss2 = _interopRequireDefault(_reactcss);
  22323. var _SliderSwatch = __webpack_require__(/*! ./SliderSwatch */ "../../node_modules/react-color/lib/components/slider/SliderSwatch.js");
  22324. var _SliderSwatch2 = _interopRequireDefault(_SliderSwatch);
  22325. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22326. var SliderSwatches = exports.SliderSwatches = function SliderSwatches(_ref) {
  22327. var onClick = _ref.onClick,
  22328. hsl = _ref.hsl;
  22329. var styles = (0, _reactcss2.default)({
  22330. 'default': {
  22331. swatches: {
  22332. marginTop: '20px'
  22333. },
  22334. swatch: {
  22335. boxSizing: 'border-box',
  22336. width: '20%',
  22337. paddingRight: '1px',
  22338. float: 'left'
  22339. },
  22340. clear: {
  22341. clear: 'both'
  22342. }
  22343. }
  22344. });
  22345. // Acceptible difference in floating point equality
  22346. var epsilon = 0.1;
  22347. return _react2.default.createElement(
  22348. 'div',
  22349. { style: styles.swatches },
  22350. _react2.default.createElement(
  22351. 'div',
  22352. { style: styles.swatch },
  22353. _react2.default.createElement(_SliderSwatch2.default, {
  22354. hsl: hsl,
  22355. offset: '.80',
  22356. active: Math.abs(hsl.l - 0.80) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22357. onClick: onClick,
  22358. first: true
  22359. })
  22360. ),
  22361. _react2.default.createElement(
  22362. 'div',
  22363. { style: styles.swatch },
  22364. _react2.default.createElement(_SliderSwatch2.default, {
  22365. hsl: hsl,
  22366. offset: '.65',
  22367. active: Math.abs(hsl.l - 0.65) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22368. onClick: onClick
  22369. })
  22370. ),
  22371. _react2.default.createElement(
  22372. 'div',
  22373. { style: styles.swatch },
  22374. _react2.default.createElement(_SliderSwatch2.default, {
  22375. hsl: hsl,
  22376. offset: '.50',
  22377. active: Math.abs(hsl.l - 0.50) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22378. onClick: onClick
  22379. })
  22380. ),
  22381. _react2.default.createElement(
  22382. 'div',
  22383. { style: styles.swatch },
  22384. _react2.default.createElement(_SliderSwatch2.default, {
  22385. hsl: hsl,
  22386. offset: '.35',
  22387. active: Math.abs(hsl.l - 0.35) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22388. onClick: onClick
  22389. })
  22390. ),
  22391. _react2.default.createElement(
  22392. 'div',
  22393. { style: styles.swatch },
  22394. _react2.default.createElement(_SliderSwatch2.default, {
  22395. hsl: hsl,
  22396. offset: '.20',
  22397. active: Math.abs(hsl.l - 0.20) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22398. onClick: onClick,
  22399. last: true
  22400. })
  22401. ),
  22402. _react2.default.createElement('div', { style: styles.clear })
  22403. );
  22404. };
  22405. exports.default = SliderSwatches;
  22406. /***/ }),
  22407. /***/ "../../node_modules/react-color/lib/components/swatches/Swatches.js":
  22408. /*!****************************************************************************************!*\
  22409. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/Swatches.js ***!
  22410. \****************************************************************************************/
  22411. /*! no static exports found */
  22412. /***/ (function(module, exports, __webpack_require__) {
  22413. "use strict";
  22414. Object.defineProperty(exports, "__esModule", {
  22415. value: true
  22416. });
  22417. exports.Swatches = undefined;
  22418. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22419. var _react2 = _interopRequireDefault(_react);
  22420. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22421. var _propTypes2 = _interopRequireDefault(_propTypes);
  22422. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22423. var _reactcss2 = _interopRequireDefault(_reactcss);
  22424. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  22425. var _map2 = _interopRequireDefault(_map);
  22426. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  22427. var _merge2 = _interopRequireDefault(_merge);
  22428. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  22429. var _color2 = _interopRequireDefault(_color);
  22430. var _materialColors = __webpack_require__(/*! material-colors */ "../../node_modules/material-colors/dist/colors.es2015.js");
  22431. var material = _interopRequireWildcard(_materialColors);
  22432. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22433. var _SwatchesGroup = __webpack_require__(/*! ./SwatchesGroup */ "../../node_modules/react-color/lib/components/swatches/SwatchesGroup.js");
  22434. var _SwatchesGroup2 = _interopRequireDefault(_SwatchesGroup);
  22435. 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; } }
  22436. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22437. var Swatches = exports.Swatches = function Swatches(_ref) {
  22438. var width = _ref.width,
  22439. height = _ref.height,
  22440. onChange = _ref.onChange,
  22441. onSwatchHover = _ref.onSwatchHover,
  22442. colors = _ref.colors,
  22443. hex = _ref.hex,
  22444. _ref$styles = _ref.styles,
  22445. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  22446. _ref$className = _ref.className,
  22447. className = _ref$className === undefined ? '' : _ref$className;
  22448. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  22449. 'default': {
  22450. picker: {
  22451. width: width,
  22452. height: height
  22453. },
  22454. overflow: {
  22455. height: height,
  22456. overflowY: 'scroll'
  22457. },
  22458. body: {
  22459. padding: '16px 0 6px 16px'
  22460. },
  22461. clear: {
  22462. clear: 'both'
  22463. }
  22464. }
  22465. }, passedStyles));
  22466. var handleChange = function handleChange(data, e) {
  22467. _color2.default.isValidHex(data) && onChange({
  22468. hex: data,
  22469. source: 'hex'
  22470. }, e);
  22471. };
  22472. return _react2.default.createElement(
  22473. 'div',
  22474. { style: styles.picker, className: 'swatches-picker ' + className },
  22475. _react2.default.createElement(
  22476. _common.Raised,
  22477. null,
  22478. _react2.default.createElement(
  22479. 'div',
  22480. { style: styles.overflow },
  22481. _react2.default.createElement(
  22482. 'div',
  22483. { style: styles.body },
  22484. (0, _map2.default)(colors, function (group) {
  22485. return _react2.default.createElement(_SwatchesGroup2.default, {
  22486. key: group.toString(),
  22487. group: group,
  22488. active: hex,
  22489. onClick: handleChange,
  22490. onSwatchHover: onSwatchHover
  22491. });
  22492. }),
  22493. _react2.default.createElement('div', { style: styles.clear })
  22494. )
  22495. )
  22496. )
  22497. );
  22498. };
  22499. Swatches.propTypes = {
  22500. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  22501. height: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  22502. colors: _propTypes2.default.arrayOf(_propTypes2.default.arrayOf(_propTypes2.default.string)),
  22503. styles: _propTypes2.default.object
  22504. /* eslint-disable max-len */
  22505. };Swatches.defaultProps = {
  22506. width: 320,
  22507. height: 240,
  22508. 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']],
  22509. styles: {}
  22510. };
  22511. exports.default = (0, _common.ColorWrap)(Swatches);
  22512. /***/ }),
  22513. /***/ "../../node_modules/react-color/lib/components/swatches/SwatchesColor.js":
  22514. /*!*********************************************************************************************!*\
  22515. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/SwatchesColor.js ***!
  22516. \*********************************************************************************************/
  22517. /*! no static exports found */
  22518. /***/ (function(module, exports, __webpack_require__) {
  22519. "use strict";
  22520. Object.defineProperty(exports, "__esModule", {
  22521. value: true
  22522. });
  22523. exports.SwatchesColor = undefined;
  22524. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22525. var _react2 = _interopRequireDefault(_react);
  22526. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22527. var _reactcss2 = _interopRequireDefault(_reactcss);
  22528. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  22529. var _color2 = _interopRequireDefault(_color);
  22530. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22531. var _CheckIcon = __webpack_require__(/*! @icons/material/CheckIcon */ "../../node_modules/@icons/material/CheckIcon.js");
  22532. var _CheckIcon2 = _interopRequireDefault(_CheckIcon);
  22533. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22534. var SwatchesColor = exports.SwatchesColor = function SwatchesColor(_ref) {
  22535. var color = _ref.color,
  22536. _ref$onClick = _ref.onClick,
  22537. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  22538. onSwatchHover = _ref.onSwatchHover,
  22539. first = _ref.first,
  22540. last = _ref.last,
  22541. active = _ref.active;
  22542. var styles = (0, _reactcss2.default)({
  22543. 'default': {
  22544. color: {
  22545. width: '40px',
  22546. height: '24px',
  22547. cursor: 'pointer',
  22548. background: color,
  22549. marginBottom: '1px'
  22550. },
  22551. check: {
  22552. color: _color2.default.getContrastingColor(color),
  22553. marginLeft: '8px',
  22554. display: 'none'
  22555. }
  22556. },
  22557. 'first': {
  22558. color: {
  22559. overflow: 'hidden',
  22560. borderRadius: '2px 2px 0 0'
  22561. }
  22562. },
  22563. 'last': {
  22564. color: {
  22565. overflow: 'hidden',
  22566. borderRadius: '0 0 2px 2px'
  22567. }
  22568. },
  22569. 'active': {
  22570. check: {
  22571. display: 'block'
  22572. }
  22573. },
  22574. 'color-#FFFFFF': {
  22575. color: {
  22576. boxShadow: 'inset 0 0 0 1px #ddd'
  22577. },
  22578. check: {
  22579. color: '#333'
  22580. }
  22581. },
  22582. 'transparent': {
  22583. check: {
  22584. color: '#333'
  22585. }
  22586. }
  22587. }, {
  22588. first: first,
  22589. last: last,
  22590. active: active,
  22591. 'color-#FFFFFF': color === '#FFFFFF',
  22592. 'transparent': color === 'transparent'
  22593. });
  22594. return _react2.default.createElement(
  22595. _common.Swatch,
  22596. {
  22597. color: color,
  22598. style: styles.color,
  22599. onClick: onClick,
  22600. onHover: onSwatchHover,
  22601. focusStyle: { boxShadow: '0 0 4px ' + color }
  22602. },
  22603. _react2.default.createElement(
  22604. 'div',
  22605. { style: styles.check },
  22606. _react2.default.createElement(_CheckIcon2.default, null)
  22607. )
  22608. );
  22609. };
  22610. exports.default = SwatchesColor;
  22611. /***/ }),
  22612. /***/ "../../node_modules/react-color/lib/components/swatches/SwatchesGroup.js":
  22613. /*!*********************************************************************************************!*\
  22614. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/SwatchesGroup.js ***!
  22615. \*********************************************************************************************/
  22616. /*! no static exports found */
  22617. /***/ (function(module, exports, __webpack_require__) {
  22618. "use strict";
  22619. Object.defineProperty(exports, "__esModule", {
  22620. value: true
  22621. });
  22622. exports.SwatchesGroup = undefined;
  22623. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22624. var _react2 = _interopRequireDefault(_react);
  22625. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22626. var _reactcss2 = _interopRequireDefault(_reactcss);
  22627. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  22628. var _map2 = _interopRequireDefault(_map);
  22629. var _SwatchesColor = __webpack_require__(/*! ./SwatchesColor */ "../../node_modules/react-color/lib/components/swatches/SwatchesColor.js");
  22630. var _SwatchesColor2 = _interopRequireDefault(_SwatchesColor);
  22631. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22632. var SwatchesGroup = exports.SwatchesGroup = function SwatchesGroup(_ref) {
  22633. var onClick = _ref.onClick,
  22634. onSwatchHover = _ref.onSwatchHover,
  22635. group = _ref.group,
  22636. active = _ref.active;
  22637. var styles = (0, _reactcss2.default)({
  22638. 'default': {
  22639. group: {
  22640. paddingBottom: '10px',
  22641. width: '40px',
  22642. float: 'left',
  22643. marginRight: '10px'
  22644. }
  22645. }
  22646. });
  22647. return _react2.default.createElement(
  22648. 'div',
  22649. { style: styles.group },
  22650. (0, _map2.default)(group, function (color, i) {
  22651. return _react2.default.createElement(_SwatchesColor2.default, {
  22652. key: color,
  22653. color: color,
  22654. active: color.toLowerCase() === active,
  22655. first: i === 0,
  22656. last: i === group.length - 1,
  22657. onClick: onClick,
  22658. onSwatchHover: onSwatchHover
  22659. });
  22660. })
  22661. );
  22662. };
  22663. exports.default = SwatchesGroup;
  22664. /***/ }),
  22665. /***/ "../../node_modules/react-color/lib/components/twitter/Twitter.js":
  22666. /*!**************************************************************************************!*\
  22667. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/components/twitter/Twitter.js ***!
  22668. \**************************************************************************************/
  22669. /*! no static exports found */
  22670. /***/ (function(module, exports, __webpack_require__) {
  22671. "use strict";
  22672. Object.defineProperty(exports, "__esModule", {
  22673. value: true
  22674. });
  22675. exports.Twitter = undefined;
  22676. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22677. var _react2 = _interopRequireDefault(_react);
  22678. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22679. var _propTypes2 = _interopRequireDefault(_propTypes);
  22680. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22681. var _reactcss2 = _interopRequireDefault(_reactcss);
  22682. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  22683. var _map2 = _interopRequireDefault(_map);
  22684. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  22685. var _merge2 = _interopRequireDefault(_merge);
  22686. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  22687. var _color2 = _interopRequireDefault(_color);
  22688. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22689. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22690. var Twitter = exports.Twitter = function Twitter(_ref) {
  22691. var onChange = _ref.onChange,
  22692. onSwatchHover = _ref.onSwatchHover,
  22693. hex = _ref.hex,
  22694. colors = _ref.colors,
  22695. width = _ref.width,
  22696. triangle = _ref.triangle,
  22697. _ref$styles = _ref.styles,
  22698. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  22699. _ref$className = _ref.className,
  22700. className = _ref$className === undefined ? '' : _ref$className;
  22701. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  22702. 'default': {
  22703. card: {
  22704. width: width,
  22705. background: '#fff',
  22706. border: '0 solid rgba(0,0,0,0.25)',
  22707. boxShadow: '0 1px 4px rgba(0,0,0,0.25)',
  22708. borderRadius: '4px',
  22709. position: 'relative'
  22710. },
  22711. body: {
  22712. padding: '15px 9px 9px 15px'
  22713. },
  22714. label: {
  22715. fontSize: '18px',
  22716. color: '#fff'
  22717. },
  22718. triangle: {
  22719. width: '0px',
  22720. height: '0px',
  22721. borderStyle: 'solid',
  22722. borderWidth: '0 9px 10px 9px',
  22723. borderColor: 'transparent transparent #fff transparent',
  22724. position: 'absolute'
  22725. },
  22726. triangleShadow: {
  22727. width: '0px',
  22728. height: '0px',
  22729. borderStyle: 'solid',
  22730. borderWidth: '0 9px 10px 9px',
  22731. borderColor: 'transparent transparent rgba(0,0,0,.1) transparent',
  22732. position: 'absolute'
  22733. },
  22734. hash: {
  22735. background: '#F0F0F0',
  22736. height: '30px',
  22737. width: '30px',
  22738. borderRadius: '4px 0 0 4px',
  22739. float: 'left',
  22740. color: '#98A1A4',
  22741. display: 'flex',
  22742. alignItems: 'center',
  22743. justifyContent: 'center'
  22744. },
  22745. input: {
  22746. width: '100px',
  22747. fontSize: '14px',
  22748. color: '#666',
  22749. border: '0px',
  22750. outline: 'none',
  22751. height: '28px',
  22752. boxShadow: 'inset 0 0 0 1px #F0F0F0',
  22753. boxSizing: 'content-box',
  22754. borderRadius: '0 4px 4px 0',
  22755. float: 'left',
  22756. paddingLeft: '8px'
  22757. },
  22758. swatch: {
  22759. width: '30px',
  22760. height: '30px',
  22761. float: 'left',
  22762. borderRadius: '4px',
  22763. margin: '0 6px 6px 0'
  22764. },
  22765. clear: {
  22766. clear: 'both'
  22767. }
  22768. },
  22769. 'hide-triangle': {
  22770. triangle: {
  22771. display: 'none'
  22772. },
  22773. triangleShadow: {
  22774. display: 'none'
  22775. }
  22776. },
  22777. 'top-left-triangle': {
  22778. triangle: {
  22779. top: '-10px',
  22780. left: '12px'
  22781. },
  22782. triangleShadow: {
  22783. top: '-11px',
  22784. left: '12px'
  22785. }
  22786. },
  22787. 'top-right-triangle': {
  22788. triangle: {
  22789. top: '-10px',
  22790. right: '12px'
  22791. },
  22792. triangleShadow: {
  22793. top: '-11px',
  22794. right: '12px'
  22795. }
  22796. }
  22797. }, passedStyles), {
  22798. 'hide-triangle': triangle === 'hide',
  22799. 'top-left-triangle': triangle === 'top-left',
  22800. 'top-right-triangle': triangle === 'top-right'
  22801. });
  22802. var handleChange = function handleChange(hexcode, e) {
  22803. _color2.default.isValidHex(hexcode) && onChange({
  22804. hex: hexcode,
  22805. source: 'hex'
  22806. }, e);
  22807. };
  22808. return _react2.default.createElement(
  22809. 'div',
  22810. { style: styles.card, className: 'twitter-picker ' + className },
  22811. _react2.default.createElement('div', { style: styles.triangleShadow }),
  22812. _react2.default.createElement('div', { style: styles.triangle }),
  22813. _react2.default.createElement(
  22814. 'div',
  22815. { style: styles.body },
  22816. (0, _map2.default)(colors, function (c, i) {
  22817. return _react2.default.createElement(_common.Swatch, {
  22818. key: i,
  22819. color: c,
  22820. hex: c,
  22821. style: styles.swatch,
  22822. onClick: handleChange,
  22823. onHover: onSwatchHover,
  22824. focusStyle: {
  22825. boxShadow: '0 0 4px ' + c
  22826. }
  22827. });
  22828. }),
  22829. _react2.default.createElement(
  22830. 'div',
  22831. { style: styles.hash },
  22832. '#'
  22833. ),
  22834. _react2.default.createElement(_common.EditableInput, {
  22835. label: null,
  22836. style: { input: styles.input },
  22837. value: hex.replace('#', ''),
  22838. onChange: handleChange
  22839. }),
  22840. _react2.default.createElement('div', { style: styles.clear })
  22841. )
  22842. );
  22843. };
  22844. Twitter.propTypes = {
  22845. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  22846. triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right']),
  22847. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  22848. styles: _propTypes2.default.object
  22849. };
  22850. Twitter.defaultProps = {
  22851. width: 276,
  22852. colors: ['#FF6900', '#FCB900', '#7BDCB5', '#00D084', '#8ED1FC', '#0693E3', '#ABB8C3', '#EB144C', '#F78DA7', '#9900EF'],
  22853. triangle: 'top-left',
  22854. styles: {}
  22855. };
  22856. exports.default = (0, _common.ColorWrap)(Twitter);
  22857. /***/ }),
  22858. /***/ "../../node_modules/react-color/lib/helpers/alpha.js":
  22859. /*!*************************************************************************!*\
  22860. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/helpers/alpha.js ***!
  22861. \*************************************************************************/
  22862. /*! no static exports found */
  22863. /***/ (function(module, exports, __webpack_require__) {
  22864. "use strict";
  22865. Object.defineProperty(exports, "__esModule", {
  22866. value: true
  22867. });
  22868. var calculateChange = exports.calculateChange = function calculateChange(e, hsl, direction, initialA, container) {
  22869. var containerWidth = container.clientWidth;
  22870. var containerHeight = container.clientHeight;
  22871. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  22872. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  22873. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  22874. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  22875. if (direction === 'vertical') {
  22876. var a = void 0;
  22877. if (top < 0) {
  22878. a = 0;
  22879. } else if (top > containerHeight) {
  22880. a = 1;
  22881. } else {
  22882. a = Math.round(top * 100 / containerHeight) / 100;
  22883. }
  22884. if (hsl.a !== a) {
  22885. return {
  22886. h: hsl.h,
  22887. s: hsl.s,
  22888. l: hsl.l,
  22889. a: a,
  22890. source: 'rgb'
  22891. };
  22892. }
  22893. } else {
  22894. var _a = void 0;
  22895. if (left < 0) {
  22896. _a = 0;
  22897. } else if (left > containerWidth) {
  22898. _a = 1;
  22899. } else {
  22900. _a = Math.round(left * 100 / containerWidth) / 100;
  22901. }
  22902. if (initialA !== _a) {
  22903. return {
  22904. h: hsl.h,
  22905. s: hsl.s,
  22906. l: hsl.l,
  22907. a: _a,
  22908. source: 'rgb'
  22909. };
  22910. }
  22911. }
  22912. return null;
  22913. };
  22914. /***/ }),
  22915. /***/ "../../node_modules/react-color/lib/helpers/checkboard.js":
  22916. /*!******************************************************************************!*\
  22917. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/helpers/checkboard.js ***!
  22918. \******************************************************************************/
  22919. /*! no static exports found */
  22920. /***/ (function(module, exports, __webpack_require__) {
  22921. "use strict";
  22922. Object.defineProperty(exports, "__esModule", {
  22923. value: true
  22924. });
  22925. var checkboardCache = {};
  22926. var render = exports.render = function render(c1, c2, size, serverCanvas) {
  22927. if (typeof document === 'undefined' && !serverCanvas) {
  22928. return null;
  22929. }
  22930. var canvas = serverCanvas ? new serverCanvas() : document.createElement('canvas');
  22931. canvas.width = size * 2;
  22932. canvas.height = size * 2;
  22933. var ctx = canvas.getContext('2d');
  22934. if (!ctx) {
  22935. return null;
  22936. } // If no context can be found, return early.
  22937. ctx.fillStyle = c1;
  22938. ctx.fillRect(0, 0, canvas.width, canvas.height);
  22939. ctx.fillStyle = c2;
  22940. ctx.fillRect(0, 0, size, size);
  22941. ctx.translate(size, size);
  22942. ctx.fillRect(0, 0, size, size);
  22943. return canvas.toDataURL();
  22944. };
  22945. var get = exports.get = function get(c1, c2, size, serverCanvas) {
  22946. var key = c1 + '-' + c2 + '-' + size + (serverCanvas ? '-server' : '');
  22947. if (checkboardCache[key]) {
  22948. return checkboardCache[key];
  22949. }
  22950. var checkboard = render(c1, c2, size, serverCanvas);
  22951. checkboardCache[key] = checkboard;
  22952. return checkboard;
  22953. };
  22954. /***/ }),
  22955. /***/ "../../node_modules/react-color/lib/helpers/color.js":
  22956. /*!*************************************************************************!*\
  22957. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/helpers/color.js ***!
  22958. \*************************************************************************/
  22959. /*! no static exports found */
  22960. /***/ (function(module, exports, __webpack_require__) {
  22961. "use strict";
  22962. Object.defineProperty(exports, "__esModule", {
  22963. value: true
  22964. });
  22965. exports.red = exports.getContrastingColor = exports.isValidHex = exports.toState = exports.simpleCheckForValidColor = undefined;
  22966. var _each = __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js");
  22967. var _each2 = _interopRequireDefault(_each);
  22968. var _tinycolor = __webpack_require__(/*! tinycolor2 */ "../../node_modules/tinycolor2/tinycolor.js");
  22969. var _tinycolor2 = _interopRequireDefault(_tinycolor);
  22970. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22971. var simpleCheckForValidColor = exports.simpleCheckForValidColor = function simpleCheckForValidColor(data) {
  22972. var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
  22973. var checked = 0;
  22974. var passed = 0;
  22975. (0, _each2.default)(keysToCheck, function (letter) {
  22976. if (data[letter]) {
  22977. checked += 1;
  22978. if (!isNaN(data[letter])) {
  22979. passed += 1;
  22980. }
  22981. if (letter === 's' || letter === 'l') {
  22982. var percentPatt = /^\d+%$/;
  22983. if (percentPatt.test(data[letter])) {
  22984. passed += 1;
  22985. }
  22986. }
  22987. }
  22988. });
  22989. return checked === passed ? data : false;
  22990. };
  22991. var toState = exports.toState = function toState(data, oldHue) {
  22992. var color = data.hex ? (0, _tinycolor2.default)(data.hex) : (0, _tinycolor2.default)(data);
  22993. var hsl = color.toHsl();
  22994. var hsv = color.toHsv();
  22995. var rgb = color.toRgb();
  22996. var hex = color.toHex();
  22997. if (hsl.s === 0) {
  22998. hsl.h = oldHue || 0;
  22999. hsv.h = oldHue || 0;
  23000. }
  23001. var transparent = hex === '000000' && rgb.a === 0;
  23002. return {
  23003. hsl: hsl,
  23004. hex: transparent ? 'transparent' : '#' + hex,
  23005. rgb: rgb,
  23006. hsv: hsv,
  23007. oldHue: data.h || oldHue || hsl.h,
  23008. source: data.source
  23009. };
  23010. };
  23011. var isValidHex = exports.isValidHex = function isValidHex(hex) {
  23012. // disable hex4 and hex8
  23013. var lh = String(hex).charAt(0) === '#' ? 1 : 0;
  23014. return hex.length !== 4 + lh && hex.length < 7 + lh && (0, _tinycolor2.default)(hex).isValid();
  23015. };
  23016. var getContrastingColor = exports.getContrastingColor = function getContrastingColor(data) {
  23017. if (!data) {
  23018. return '#fff';
  23019. }
  23020. var col = toState(data);
  23021. if (col.hex === 'transparent') {
  23022. return 'rgba(0,0,0,0.4)';
  23023. }
  23024. var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
  23025. return yiq >= 128 ? '#000' : '#fff';
  23026. };
  23027. var red = exports.red = {
  23028. hsl: { a: 1, h: 0, l: 0.5, s: 1 },
  23029. hex: '#ff0000',
  23030. rgb: { r: 255, g: 0, b: 0, a: 1 },
  23031. hsv: { h: 0, s: 1, v: 1, a: 1 }
  23032. };
  23033. exports.default = exports;
  23034. /***/ }),
  23035. /***/ "../../node_modules/react-color/lib/helpers/hue.js":
  23036. /*!***********************************************************************!*\
  23037. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/helpers/hue.js ***!
  23038. \***********************************************************************/
  23039. /*! no static exports found */
  23040. /***/ (function(module, exports, __webpack_require__) {
  23041. "use strict";
  23042. Object.defineProperty(exports, "__esModule", {
  23043. value: true
  23044. });
  23045. var calculateChange = exports.calculateChange = function calculateChange(e, direction, hsl, container) {
  23046. var containerWidth = container.clientWidth;
  23047. var containerHeight = container.clientHeight;
  23048. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  23049. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  23050. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  23051. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  23052. if (direction === 'vertical') {
  23053. var h = void 0;
  23054. if (top < 0) {
  23055. h = 359;
  23056. } else if (top > containerHeight) {
  23057. h = 0;
  23058. } else {
  23059. var percent = -(top * 100 / containerHeight) + 100;
  23060. h = 360 * percent / 100;
  23061. }
  23062. if (hsl.h !== h) {
  23063. return {
  23064. h: h,
  23065. s: hsl.s,
  23066. l: hsl.l,
  23067. a: hsl.a,
  23068. source: 'rgb'
  23069. };
  23070. }
  23071. } else {
  23072. var _h = void 0;
  23073. if (left < 0) {
  23074. _h = 0;
  23075. } else if (left > containerWidth) {
  23076. _h = 359;
  23077. } else {
  23078. var _percent = left * 100 / containerWidth;
  23079. _h = 360 * _percent / 100;
  23080. }
  23081. if (hsl.h !== _h) {
  23082. return {
  23083. h: _h,
  23084. s: hsl.s,
  23085. l: hsl.l,
  23086. a: hsl.a,
  23087. source: 'rgb'
  23088. };
  23089. }
  23090. }
  23091. return null;
  23092. };
  23093. /***/ }),
  23094. /***/ "../../node_modules/react-color/lib/helpers/interaction.js":
  23095. /*!*******************************************************************************!*\
  23096. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/helpers/interaction.js ***!
  23097. \*******************************************************************************/
  23098. /*! no static exports found */
  23099. /***/ (function(module, exports, __webpack_require__) {
  23100. "use strict";
  23101. Object.defineProperty(exports, "__esModule", {
  23102. value: true
  23103. });
  23104. exports.handleFocus = undefined;
  23105. 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; };
  23106. 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; }; }();
  23107. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23108. var _react2 = _interopRequireDefault(_react);
  23109. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23110. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23111. 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; }
  23112. 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 */
  23113. var handleFocus = exports.handleFocus = function handleFocus(Component) {
  23114. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  23115. return function (_React$Component) {
  23116. _inherits(Focus, _React$Component);
  23117. function Focus() {
  23118. var _ref;
  23119. var _temp, _this, _ret;
  23120. _classCallCheck(this, Focus);
  23121. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  23122. args[_key] = arguments[_key];
  23123. }
  23124. 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 () {
  23125. return _this.setState({ focus: true });
  23126. }, _this.handleBlur = function () {
  23127. return _this.setState({ focus: false });
  23128. }, _temp), _possibleConstructorReturn(_this, _ret);
  23129. }
  23130. _createClass(Focus, [{
  23131. key: 'render',
  23132. value: function render() {
  23133. return _react2.default.createElement(
  23134. Span,
  23135. { onFocus: this.handleFocus, onBlur: this.handleBlur },
  23136. _react2.default.createElement(Component, _extends({}, this.props, this.state))
  23137. );
  23138. }
  23139. }]);
  23140. return Focus;
  23141. }(_react2.default.Component);
  23142. };
  23143. /***/ }),
  23144. /***/ "../../node_modules/react-color/lib/helpers/saturation.js":
  23145. /*!******************************************************************************!*\
  23146. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/helpers/saturation.js ***!
  23147. \******************************************************************************/
  23148. /*! no static exports found */
  23149. /***/ (function(module, exports, __webpack_require__) {
  23150. "use strict";
  23151. Object.defineProperty(exports, "__esModule", {
  23152. value: true
  23153. });
  23154. var calculateChange = exports.calculateChange = function calculateChange(e, hsl, container) {
  23155. var _container$getBoundin = container.getBoundingClientRect(),
  23156. containerWidth = _container$getBoundin.width,
  23157. containerHeight = _container$getBoundin.height;
  23158. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  23159. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  23160. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  23161. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  23162. if (left < 0) {
  23163. left = 0;
  23164. } else if (left > containerWidth) {
  23165. left = containerWidth;
  23166. }
  23167. if (top < 0) {
  23168. top = 0;
  23169. } else if (top > containerHeight) {
  23170. top = containerHeight;
  23171. }
  23172. var saturation = left / containerWidth;
  23173. var bright = 1 - top / containerHeight;
  23174. return {
  23175. h: hsl.h,
  23176. s: saturation,
  23177. v: bright,
  23178. a: hsl.a,
  23179. source: 'rgb'
  23180. };
  23181. };
  23182. /***/ }),
  23183. /***/ "../../node_modules/react-color/lib/index.js":
  23184. /*!*****************************************************************!*\
  23185. !*** E:/Repos/Babylon.js/node_modules/react-color/lib/index.js ***!
  23186. \*****************************************************************/
  23187. /*! no static exports found */
  23188. /***/ (function(module, exports, __webpack_require__) {
  23189. "use strict";
  23190. Object.defineProperty(exports, "__esModule", {
  23191. value: true
  23192. });
  23193. 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;
  23194. var _Alpha = __webpack_require__(/*! ./components/alpha/Alpha */ "../../node_modules/react-color/lib/components/alpha/Alpha.js");
  23195. Object.defineProperty(exports, 'AlphaPicker', {
  23196. enumerable: true,
  23197. get: function get() {
  23198. return _interopRequireDefault(_Alpha).default;
  23199. }
  23200. });
  23201. var _Block = __webpack_require__(/*! ./components/block/Block */ "../../node_modules/react-color/lib/components/block/Block.js");
  23202. Object.defineProperty(exports, 'BlockPicker', {
  23203. enumerable: true,
  23204. get: function get() {
  23205. return _interopRequireDefault(_Block).default;
  23206. }
  23207. });
  23208. var _Circle = __webpack_require__(/*! ./components/circle/Circle */ "../../node_modules/react-color/lib/components/circle/Circle.js");
  23209. Object.defineProperty(exports, 'CirclePicker', {
  23210. enumerable: true,
  23211. get: function get() {
  23212. return _interopRequireDefault(_Circle).default;
  23213. }
  23214. });
  23215. var _Chrome = __webpack_require__(/*! ./components/chrome/Chrome */ "../../node_modules/react-color/lib/components/chrome/Chrome.js");
  23216. Object.defineProperty(exports, 'ChromePicker', {
  23217. enumerable: true,
  23218. get: function get() {
  23219. return _interopRequireDefault(_Chrome).default;
  23220. }
  23221. });
  23222. var _Compact = __webpack_require__(/*! ./components/compact/Compact */ "../../node_modules/react-color/lib/components/compact/Compact.js");
  23223. Object.defineProperty(exports, 'CompactPicker', {
  23224. enumerable: true,
  23225. get: function get() {
  23226. return _interopRequireDefault(_Compact).default;
  23227. }
  23228. });
  23229. var _Github = __webpack_require__(/*! ./components/github/Github */ "../../node_modules/react-color/lib/components/github/Github.js");
  23230. Object.defineProperty(exports, 'GithubPicker', {
  23231. enumerable: true,
  23232. get: function get() {
  23233. return _interopRequireDefault(_Github).default;
  23234. }
  23235. });
  23236. var _Hue = __webpack_require__(/*! ./components/hue/Hue */ "../../node_modules/react-color/lib/components/hue/Hue.js");
  23237. Object.defineProperty(exports, 'HuePicker', {
  23238. enumerable: true,
  23239. get: function get() {
  23240. return _interopRequireDefault(_Hue).default;
  23241. }
  23242. });
  23243. var _Material = __webpack_require__(/*! ./components/material/Material */ "../../node_modules/react-color/lib/components/material/Material.js");
  23244. Object.defineProperty(exports, 'MaterialPicker', {
  23245. enumerable: true,
  23246. get: function get() {
  23247. return _interopRequireDefault(_Material).default;
  23248. }
  23249. });
  23250. var _Photoshop = __webpack_require__(/*! ./components/photoshop/Photoshop */ "../../node_modules/react-color/lib/components/photoshop/Photoshop.js");
  23251. Object.defineProperty(exports, 'PhotoshopPicker', {
  23252. enumerable: true,
  23253. get: function get() {
  23254. return _interopRequireDefault(_Photoshop).default;
  23255. }
  23256. });
  23257. var _Sketch = __webpack_require__(/*! ./components/sketch/Sketch */ "../../node_modules/react-color/lib/components/sketch/Sketch.js");
  23258. Object.defineProperty(exports, 'SketchPicker', {
  23259. enumerable: true,
  23260. get: function get() {
  23261. return _interopRequireDefault(_Sketch).default;
  23262. }
  23263. });
  23264. var _Slider = __webpack_require__(/*! ./components/slider/Slider */ "../../node_modules/react-color/lib/components/slider/Slider.js");
  23265. Object.defineProperty(exports, 'SliderPicker', {
  23266. enumerable: true,
  23267. get: function get() {
  23268. return _interopRequireDefault(_Slider).default;
  23269. }
  23270. });
  23271. var _Swatches = __webpack_require__(/*! ./components/swatches/Swatches */ "../../node_modules/react-color/lib/components/swatches/Swatches.js");
  23272. Object.defineProperty(exports, 'SwatchesPicker', {
  23273. enumerable: true,
  23274. get: function get() {
  23275. return _interopRequireDefault(_Swatches).default;
  23276. }
  23277. });
  23278. var _Twitter = __webpack_require__(/*! ./components/twitter/Twitter */ "../../node_modules/react-color/lib/components/twitter/Twitter.js");
  23279. Object.defineProperty(exports, 'TwitterPicker', {
  23280. enumerable: true,
  23281. get: function get() {
  23282. return _interopRequireDefault(_Twitter).default;
  23283. }
  23284. });
  23285. var _ColorWrap = __webpack_require__(/*! ./components/common/ColorWrap */ "../../node_modules/react-color/lib/components/common/ColorWrap.js");
  23286. Object.defineProperty(exports, 'CustomPicker', {
  23287. enumerable: true,
  23288. get: function get() {
  23289. return _interopRequireDefault(_ColorWrap).default;
  23290. }
  23291. });
  23292. var _Chrome2 = _interopRequireDefault(_Chrome);
  23293. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23294. exports.default = _Chrome2.default;
  23295. /***/ }),
  23296. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  23297. /*!*******************************************************************************!*\
  23298. !*** E:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  23299. \*******************************************************************************/
  23300. /*! no static exports found */
  23301. /***/ (function(module, exports, __webpack_require__) {
  23302. "use strict";
  23303. /** @license React v16.9.0
  23304. * react-dom.development.js
  23305. *
  23306. * Copyright (c) Facebook, Inc. and its affiliates.
  23307. *
  23308. * This source code is licensed under the MIT license found in the
  23309. * LICENSE file in the root directory of this source tree.
  23310. */
  23311. if (true) {
  23312. (function() {
  23313. 'use strict';
  23314. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23315. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  23316. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  23317. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  23318. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  23319. // Do not require this module directly! Use normal `invariant` calls with
  23320. // template literal strings. The messages will be converted to ReactError during
  23321. // build, and in production they will be minified.
  23322. // Do not require this module directly! Use normal `invariant` calls with
  23323. // template literal strings. The messages will be converted to ReactError during
  23324. // build, and in production they will be minified.
  23325. function ReactError(error) {
  23326. error.name = 'Invariant Violation';
  23327. return error;
  23328. }
  23329. /**
  23330. * Use invariant() to assert state which your program assumes to be true.
  23331. *
  23332. * Provide sprintf-style format (only %s is supported) and arguments
  23333. * to provide information about what broke and what you were
  23334. * expecting.
  23335. *
  23336. * The invariant message will be stripped in production, but the invariant
  23337. * will remain to ensure logic does not differ in production.
  23338. */
  23339. (function () {
  23340. if (!React) {
  23341. {
  23342. throw ReactError(Error('ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.'));
  23343. }
  23344. }
  23345. })();
  23346. /**
  23347. * Injectable ordering of event plugins.
  23348. */
  23349. var eventPluginOrder = null;
  23350. /**
  23351. * Injectable mapping from names to event plugin modules.
  23352. */
  23353. var namesToPlugins = {};
  23354. /**
  23355. * Recomputes the plugin list using the injected plugins and plugin ordering.
  23356. *
  23357. * @private
  23358. */
  23359. function recomputePluginOrdering() {
  23360. if (!eventPluginOrder) {
  23361. // Wait until an `eventPluginOrder` is injected.
  23362. return;
  23363. }
  23364. for (var pluginName in namesToPlugins) {
  23365. var pluginModule = namesToPlugins[pluginName];
  23366. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  23367. (function () {
  23368. if (!(pluginIndex > -1)) {
  23369. {
  23370. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `' + pluginName + '`.'));
  23371. }
  23372. }
  23373. })();
  23374. if (plugins[pluginIndex]) {
  23375. continue;
  23376. }
  23377. (function () {
  23378. if (!pluginModule.extractEvents) {
  23379. {
  23380. throw ReactError(Error('EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `' + pluginName + '` does not.'));
  23381. }
  23382. }
  23383. })();
  23384. plugins[pluginIndex] = pluginModule;
  23385. var publishedEvents = pluginModule.eventTypes;
  23386. for (var eventName in publishedEvents) {
  23387. (function () {
  23388. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  23389. {
  23390. throw ReactError(Error('EventPluginRegistry: Failed to publish event `' + eventName + '` for plugin `' + pluginName + '`.'));
  23391. }
  23392. }
  23393. })();
  23394. }
  23395. }
  23396. }
  23397. /**
  23398. * Publishes an event so that it can be dispatched by the supplied plugin.
  23399. *
  23400. * @param {object} dispatchConfig Dispatch configuration for the event.
  23401. * @param {object} PluginModule Plugin publishing the event.
  23402. * @return {boolean} True if the event was successfully published.
  23403. * @private
  23404. */
  23405. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  23406. (function () {
  23407. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  23408. {
  23409. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same event name, `' + eventName + '`.'));
  23410. }
  23411. }
  23412. })();
  23413. eventNameDispatchConfigs[eventName] = dispatchConfig;
  23414. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  23415. if (phasedRegistrationNames) {
  23416. for (var phaseName in phasedRegistrationNames) {
  23417. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  23418. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  23419. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  23420. }
  23421. }
  23422. return true;
  23423. } else if (dispatchConfig.registrationName) {
  23424. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  23425. return true;
  23426. }
  23427. return false;
  23428. }
  23429. /**
  23430. * Publishes a registration name that is used to identify dispatched events.
  23431. *
  23432. * @param {string} registrationName Registration name to add.
  23433. * @param {object} PluginModule Plugin publishing the event.
  23434. * @private
  23435. */
  23436. function publishRegistrationName(registrationName, pluginModule, eventName) {
  23437. (function () {
  23438. if (!!registrationNameModules[registrationName]) {
  23439. {
  23440. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same registration name, `' + registrationName + '`.'));
  23441. }
  23442. }
  23443. })();
  23444. registrationNameModules[registrationName] = pluginModule;
  23445. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  23446. {
  23447. var lowerCasedName = registrationName.toLowerCase();
  23448. possibleRegistrationNames[lowerCasedName] = registrationName;
  23449. if (registrationName === 'onDoubleClick') {
  23450. possibleRegistrationNames.ondblclick = registrationName;
  23451. }
  23452. }
  23453. }
  23454. /**
  23455. * Registers plugins so that they can extract and dispatch events.
  23456. *
  23457. * @see {EventPluginHub}
  23458. */
  23459. /**
  23460. * Ordered list of injected plugins.
  23461. */
  23462. var plugins = [];
  23463. /**
  23464. * Mapping from event name to dispatch config
  23465. */
  23466. var eventNameDispatchConfigs = {};
  23467. /**
  23468. * Mapping from registration name to plugin module
  23469. */
  23470. var registrationNameModules = {};
  23471. /**
  23472. * Mapping from registration name to event name
  23473. */
  23474. var registrationNameDependencies = {};
  23475. /**
  23476. * Mapping from lowercase registration names to the properly cased version,
  23477. * used to warn in the case of missing event handlers. Available
  23478. * only in true.
  23479. * @type {Object}
  23480. */
  23481. var possibleRegistrationNames = {};
  23482. // Trust the developer to only use possibleRegistrationNames in true
  23483. /**
  23484. * Injects an ordering of plugins (by plugin name). This allows the ordering
  23485. * to be decoupled from injection of the actual plugins so that ordering is
  23486. * always deterministic regardless of packaging, on-the-fly injection, etc.
  23487. *
  23488. * @param {array} InjectedEventPluginOrder
  23489. * @internal
  23490. * @see {EventPluginHub.injection.injectEventPluginOrder}
  23491. */
  23492. function injectEventPluginOrder(injectedEventPluginOrder) {
  23493. (function () {
  23494. if (!!eventPluginOrder) {
  23495. {
  23496. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.'));
  23497. }
  23498. }
  23499. })();
  23500. // Clone the ordering so it cannot be dynamically mutated.
  23501. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  23502. recomputePluginOrdering();
  23503. }
  23504. /**
  23505. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  23506. * in the ordering injected by `injectEventPluginOrder`.
  23507. *
  23508. * Plugins can be injected as part of page initialization or on-the-fly.
  23509. *
  23510. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  23511. * @internal
  23512. * @see {EventPluginHub.injection.injectEventPluginsByName}
  23513. */
  23514. function injectEventPluginsByName(injectedNamesToPlugins) {
  23515. var isOrderingDirty = false;
  23516. for (var pluginName in injectedNamesToPlugins) {
  23517. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  23518. continue;
  23519. }
  23520. var pluginModule = injectedNamesToPlugins[pluginName];
  23521. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  23522. (function () {
  23523. if (!!namesToPlugins[pluginName]) {
  23524. {
  23525. throw ReactError(Error('EventPluginRegistry: Cannot inject two different event plugins using the same name, `' + pluginName + '`.'));
  23526. }
  23527. }
  23528. })();
  23529. namesToPlugins[pluginName] = pluginModule;
  23530. isOrderingDirty = true;
  23531. }
  23532. }
  23533. if (isOrderingDirty) {
  23534. recomputePluginOrdering();
  23535. }
  23536. }
  23537. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  23538. var funcArgs = Array.prototype.slice.call(arguments, 3);
  23539. try {
  23540. func.apply(context, funcArgs);
  23541. } catch (error) {
  23542. this.onError(error);
  23543. }
  23544. };
  23545. {
  23546. // In DEV mode, we swap out invokeGuardedCallback for a special version
  23547. // that plays more nicely with the browser's DevTools. The idea is to preserve
  23548. // "Pause on exceptions" behavior. Because React wraps all user-provided
  23549. // functions in invokeGuardedCallback, and the production version of
  23550. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  23551. // like caught exceptions, and the DevTools won't pause unless the developer
  23552. // takes the extra step of enabling pause on caught exceptions. This is
  23553. // unintuitive, though, because even though React has caught the error, from
  23554. // the developer's perspective, the error is uncaught.
  23555. //
  23556. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  23557. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  23558. // DOM node, and call the user-provided callback from inside an event handler
  23559. // for that fake event. If the callback throws, the error is "captured" using
  23560. // a global event handler. But because the error happens in a different
  23561. // event loop context, it does not interrupt the normal program flow.
  23562. // Effectively, this gives us try-catch behavior without actually using
  23563. // try-catch. Neat!
  23564. // Check that the browser supports the APIs we need to implement our special
  23565. // DEV version of invokeGuardedCallback
  23566. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  23567. var fakeNode = document.createElement('react');
  23568. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  23569. // If document doesn't exist we know for sure we will crash in this method
  23570. // when we call document.createEvent(). However this can cause confusing
  23571. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  23572. // So we preemptively throw with a better message instead.
  23573. (function () {
  23574. if (!(typeof document !== 'undefined')) {
  23575. {
  23576. throw ReactError(Error('The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.'));
  23577. }
  23578. }
  23579. })();
  23580. var evt = document.createEvent('Event');
  23581. // Keeps track of whether the user-provided callback threw an error. We
  23582. // set this to true at the beginning, then set it to false right after
  23583. // calling the function. If the function errors, `didError` will never be
  23584. // set to false. This strategy works even if the browser is flaky and
  23585. // fails to call our global error handler, because it doesn't rely on
  23586. // the error event at all.
  23587. var didError = true;
  23588. // Keeps track of the value of window.event so that we can reset it
  23589. // during the callback to let user code access window.event in the
  23590. // browsers that support it.
  23591. var windowEvent = window.event;
  23592. // Keeps track of the descriptor of window.event to restore it after event
  23593. // dispatching: https://github.com/facebook/react/issues/13688
  23594. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  23595. // Create an event handler for our fake event. We will synchronously
  23596. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  23597. // call the user-provided callback.
  23598. var funcArgs = Array.prototype.slice.call(arguments, 3);
  23599. function callCallback() {
  23600. // We immediately remove the callback from event listeners so that
  23601. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  23602. // nested call would trigger the fake event handlers of any call higher
  23603. // in the stack.
  23604. fakeNode.removeEventListener(evtType, callCallback, false);
  23605. // We check for window.hasOwnProperty('event') to prevent the
  23606. // window.event assignment in both IE <= 10 as they throw an error
  23607. // "Member not found" in strict mode, and in Firefox which does not
  23608. // support window.event.
  23609. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  23610. window.event = windowEvent;
  23611. }
  23612. func.apply(context, funcArgs);
  23613. didError = false;
  23614. }
  23615. // Create a global error event handler. We use this to capture the value
  23616. // that was thrown. It's possible that this error handler will fire more
  23617. // than once; for example, if non-React code also calls `dispatchEvent`
  23618. // and a handler for that event throws. We should be resilient to most of
  23619. // those cases. Even if our error event handler fires more than once, the
  23620. // last error event is always used. If the callback actually does error,
  23621. // we know that the last error event is the correct one, because it's not
  23622. // possible for anything else to have happened in between our callback
  23623. // erroring and the code that follows the `dispatchEvent` call below. If
  23624. // the callback doesn't error, but the error event was fired, we know to
  23625. // ignore it because `didError` will be false, as described above.
  23626. var error = void 0;
  23627. // Use this to track whether the error event is ever called.
  23628. var didSetError = false;
  23629. var isCrossOriginError = false;
  23630. function handleWindowError(event) {
  23631. error = event.error;
  23632. didSetError = true;
  23633. if (error === null && event.colno === 0 && event.lineno === 0) {
  23634. isCrossOriginError = true;
  23635. }
  23636. if (event.defaultPrevented) {
  23637. // Some other error handler has prevented default.
  23638. // Browsers silence the error report if this happens.
  23639. // We'll remember this to later decide whether to log it or not.
  23640. if (error != null && typeof error === 'object') {
  23641. try {
  23642. error._suppressLogging = true;
  23643. } catch (inner) {
  23644. // Ignore.
  23645. }
  23646. }
  23647. }
  23648. }
  23649. // Create a fake event type.
  23650. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  23651. // Attach our event handlers
  23652. window.addEventListener('error', handleWindowError);
  23653. fakeNode.addEventListener(evtType, callCallback, false);
  23654. // Synchronously dispatch our fake event. If the user-provided function
  23655. // errors, it will trigger our global error handler.
  23656. evt.initEvent(evtType, false, false);
  23657. fakeNode.dispatchEvent(evt);
  23658. if (windowEventDescriptor) {
  23659. Object.defineProperty(window, 'event', windowEventDescriptor);
  23660. }
  23661. if (didError) {
  23662. if (!didSetError) {
  23663. // The callback errored, but the error event never fired.
  23664. 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.');
  23665. } else if (isCrossOriginError) {
  23666. 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.');
  23667. }
  23668. this.onError(error);
  23669. }
  23670. // Remove our event listeners
  23671. window.removeEventListener('error', handleWindowError);
  23672. };
  23673. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  23674. }
  23675. }
  23676. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  23677. // Used by Fiber to simulate a try-catch.
  23678. var hasError = false;
  23679. var caughtError = null;
  23680. // Used by event system to capture/rethrow the first error.
  23681. var hasRethrowError = false;
  23682. var rethrowError = null;
  23683. var reporter = {
  23684. onError: function (error) {
  23685. hasError = true;
  23686. caughtError = error;
  23687. }
  23688. };
  23689. /**
  23690. * Call a function while guarding against errors that happens within it.
  23691. * Returns an error if it throws, otherwise null.
  23692. *
  23693. * In production, this is implemented using a try-catch. The reason we don't
  23694. * use a try-catch directly is so that we can swap out a different
  23695. * implementation in DEV mode.
  23696. *
  23697. * @param {String} name of the guard to use for logging or debugging
  23698. * @param {Function} func The function to invoke
  23699. * @param {*} context The context to use when calling the function
  23700. * @param {...*} args Arguments for function
  23701. */
  23702. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  23703. hasError = false;
  23704. caughtError = null;
  23705. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  23706. }
  23707. /**
  23708. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  23709. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  23710. * TODO: See if caughtError and rethrowError can be unified.
  23711. *
  23712. * @param {String} name of the guard to use for logging or debugging
  23713. * @param {Function} func The function to invoke
  23714. * @param {*} context The context to use when calling the function
  23715. * @param {...*} args Arguments for function
  23716. */
  23717. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  23718. invokeGuardedCallback.apply(this, arguments);
  23719. if (hasError) {
  23720. var error = clearCaughtError();
  23721. if (!hasRethrowError) {
  23722. hasRethrowError = true;
  23723. rethrowError = error;
  23724. }
  23725. }
  23726. }
  23727. /**
  23728. * During execution of guarded functions we will capture the first error which
  23729. * we will rethrow to be handled by the top level error handler.
  23730. */
  23731. function rethrowCaughtError() {
  23732. if (hasRethrowError) {
  23733. var error = rethrowError;
  23734. hasRethrowError = false;
  23735. rethrowError = null;
  23736. throw error;
  23737. }
  23738. }
  23739. function hasCaughtError() {
  23740. return hasError;
  23741. }
  23742. function clearCaughtError() {
  23743. if (hasError) {
  23744. var error = caughtError;
  23745. hasError = false;
  23746. caughtError = null;
  23747. return error;
  23748. } else {
  23749. (function () {
  23750. {
  23751. {
  23752. throw ReactError(Error('clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.'));
  23753. }
  23754. }
  23755. })();
  23756. }
  23757. }
  23758. /**
  23759. * Similar to invariant but only logs a warning if the condition is not met.
  23760. * This can be used to log issues in development environments in critical
  23761. * paths. Removing the logging code for production environments will keep the
  23762. * same logic and follow the same code paths.
  23763. */
  23764. var warningWithoutStack = function () {};
  23765. {
  23766. warningWithoutStack = function (condition, format) {
  23767. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  23768. args[_key - 2] = arguments[_key];
  23769. }
  23770. if (format === undefined) {
  23771. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  23772. }
  23773. if (args.length > 8) {
  23774. // Check before the condition to catch violations early.
  23775. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  23776. }
  23777. if (condition) {
  23778. return;
  23779. }
  23780. if (typeof console !== 'undefined') {
  23781. var argsWithFormat = args.map(function (item) {
  23782. return '' + item;
  23783. });
  23784. argsWithFormat.unshift('Warning: ' + format);
  23785. // We intentionally don't use spread (or .apply) directly because it
  23786. // breaks IE9: https://github.com/facebook/react/issues/13610
  23787. Function.prototype.apply.call(console.error, console, argsWithFormat);
  23788. }
  23789. try {
  23790. // --- Welcome to debugging React ---
  23791. // This error was thrown as a convenience so that you can use this stack
  23792. // to find the callsite that caused this warning to fire.
  23793. var argIndex = 0;
  23794. var message = 'Warning: ' + format.replace(/%s/g, function () {
  23795. return args[argIndex++];
  23796. });
  23797. throw new Error(message);
  23798. } catch (x) {}
  23799. };
  23800. }
  23801. var warningWithoutStack$1 = warningWithoutStack;
  23802. var getFiberCurrentPropsFromNode = null;
  23803. var getInstanceFromNode = null;
  23804. var getNodeFromInstance = null;
  23805. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  23806. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  23807. getInstanceFromNode = getInstanceFromNodeImpl;
  23808. getNodeFromInstance = getNodeFromInstanceImpl;
  23809. {
  23810. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  23811. }
  23812. }
  23813. var validateEventDispatches = void 0;
  23814. {
  23815. validateEventDispatches = function (event) {
  23816. var dispatchListeners = event._dispatchListeners;
  23817. var dispatchInstances = event._dispatchInstances;
  23818. var listenersIsArr = Array.isArray(dispatchListeners);
  23819. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  23820. var instancesIsArr = Array.isArray(dispatchInstances);
  23821. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  23822. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  23823. };
  23824. }
  23825. /**
  23826. * Dispatch the event to the listener.
  23827. * @param {SyntheticEvent} event SyntheticEvent to handle
  23828. * @param {function} listener Application-level callback
  23829. * @param {*} inst Internal component instance
  23830. */
  23831. function executeDispatch(event, listener, inst) {
  23832. var type = event.type || 'unknown-event';
  23833. event.currentTarget = getNodeFromInstance(inst);
  23834. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  23835. event.currentTarget = null;
  23836. }
  23837. /**
  23838. * Standard/simple iteration through an event's collected dispatches.
  23839. */
  23840. function executeDispatchesInOrder(event) {
  23841. var dispatchListeners = event._dispatchListeners;
  23842. var dispatchInstances = event._dispatchInstances;
  23843. {
  23844. validateEventDispatches(event);
  23845. }
  23846. if (Array.isArray(dispatchListeners)) {
  23847. for (var i = 0; i < dispatchListeners.length; i++) {
  23848. if (event.isPropagationStopped()) {
  23849. break;
  23850. }
  23851. // Listeners and Instances are two parallel arrays that are always in sync.
  23852. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  23853. }
  23854. } else if (dispatchListeners) {
  23855. executeDispatch(event, dispatchListeners, dispatchInstances);
  23856. }
  23857. event._dispatchListeners = null;
  23858. event._dispatchInstances = null;
  23859. }
  23860. /**
  23861. * @see executeDispatchesInOrderStopAtTrueImpl
  23862. */
  23863. /**
  23864. * Execution of a "direct" dispatch - there must be at most one dispatch
  23865. * accumulated on the event or it is considered an error. It doesn't really make
  23866. * sense for an event with multiple dispatches (bubbled) to keep track of the
  23867. * return values at each dispatch execution, but it does tend to make sense when
  23868. * dealing with "direct" dispatches.
  23869. *
  23870. * @return {*} The return value of executing the single dispatch.
  23871. */
  23872. /**
  23873. * @param {SyntheticEvent} event
  23874. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  23875. */
  23876. /**
  23877. * Accumulates items that must not be null or undefined into the first one. This
  23878. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  23879. * API cleanness. Since `current` can be null before being passed in and not
  23880. * null after this function, make sure to assign it back to `current`:
  23881. *
  23882. * `a = accumulateInto(a, b);`
  23883. *
  23884. * This API should be sparingly used. Try `accumulate` for something cleaner.
  23885. *
  23886. * @return {*|array<*>} An accumulation of items.
  23887. */
  23888. function accumulateInto(current, next) {
  23889. (function () {
  23890. if (!(next != null)) {
  23891. {
  23892. throw ReactError(Error('accumulateInto(...): Accumulated items must not be null or undefined.'));
  23893. }
  23894. }
  23895. })();
  23896. if (current == null) {
  23897. return next;
  23898. }
  23899. // Both are not empty. Warning: Never call x.concat(y) when you are not
  23900. // certain that x is an Array (x could be a string with concat method).
  23901. if (Array.isArray(current)) {
  23902. if (Array.isArray(next)) {
  23903. current.push.apply(current, next);
  23904. return current;
  23905. }
  23906. current.push(next);
  23907. return current;
  23908. }
  23909. if (Array.isArray(next)) {
  23910. // A bit too dangerous to mutate `next`.
  23911. return [current].concat(next);
  23912. }
  23913. return [current, next];
  23914. }
  23915. /**
  23916. * @param {array} arr an "accumulation" of items which is either an Array or
  23917. * a single item. Useful when paired with the `accumulate` module. This is a
  23918. * simple utility that allows us to reason about a collection of items, but
  23919. * handling the case when there is exactly one item (and we do not need to
  23920. * allocate an array).
  23921. * @param {function} cb Callback invoked with each element or a collection.
  23922. * @param {?} [scope] Scope used as `this` in a callback.
  23923. */
  23924. function forEachAccumulated(arr, cb, scope) {
  23925. if (Array.isArray(arr)) {
  23926. arr.forEach(cb, scope);
  23927. } else if (arr) {
  23928. cb.call(scope, arr);
  23929. }
  23930. }
  23931. /**
  23932. * Internal queue of events that have accumulated their dispatches and are
  23933. * waiting to have their dispatches executed.
  23934. */
  23935. var eventQueue = null;
  23936. /**
  23937. * Dispatches an event and releases it back into the pool, unless persistent.
  23938. *
  23939. * @param {?object} event Synthetic event to be dispatched.
  23940. * @private
  23941. */
  23942. var executeDispatchesAndRelease = function (event) {
  23943. if (event) {
  23944. executeDispatchesInOrder(event);
  23945. if (!event.isPersistent()) {
  23946. event.constructor.release(event);
  23947. }
  23948. }
  23949. };
  23950. var executeDispatchesAndReleaseTopLevel = function (e) {
  23951. return executeDispatchesAndRelease(e);
  23952. };
  23953. function runEventsInBatch(events) {
  23954. if (events !== null) {
  23955. eventQueue = accumulateInto(eventQueue, events);
  23956. }
  23957. // Set `eventQueue` to null before processing it so that we can tell if more
  23958. // events get enqueued while processing.
  23959. var processingEventQueue = eventQueue;
  23960. eventQueue = null;
  23961. if (!processingEventQueue) {
  23962. return;
  23963. }
  23964. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  23965. (function () {
  23966. if (!!eventQueue) {
  23967. {
  23968. throw ReactError(Error('processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.'));
  23969. }
  23970. }
  23971. })();
  23972. // This would be a good time to rethrow if any of the event handlers threw.
  23973. rethrowCaughtError();
  23974. }
  23975. function isInteractive(tag) {
  23976. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  23977. }
  23978. function shouldPreventMouseEvent(name, type, props) {
  23979. switch (name) {
  23980. case 'onClick':
  23981. case 'onClickCapture':
  23982. case 'onDoubleClick':
  23983. case 'onDoubleClickCapture':
  23984. case 'onMouseDown':
  23985. case 'onMouseDownCapture':
  23986. case 'onMouseMove':
  23987. case 'onMouseMoveCapture':
  23988. case 'onMouseUp':
  23989. case 'onMouseUpCapture':
  23990. return !!(props.disabled && isInteractive(type));
  23991. default:
  23992. return false;
  23993. }
  23994. }
  23995. /**
  23996. * This is a unified interface for event plugins to be installed and configured.
  23997. *
  23998. * Event plugins can implement the following properties:
  23999. *
  24000. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  24001. * Required. When a top-level event is fired, this method is expected to
  24002. * extract synthetic events that will in turn be queued and dispatched.
  24003. *
  24004. * `eventTypes` {object}
  24005. * Optional, plugins that fire events must publish a mapping of registration
  24006. * names that are used to register listeners. Values of this mapping must
  24007. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  24008. *
  24009. * `executeDispatch` {function(object, function, string)}
  24010. * Optional, allows plugins to override how an event gets dispatched. By
  24011. * default, the listener is simply invoked.
  24012. *
  24013. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  24014. *
  24015. * @public
  24016. */
  24017. /**
  24018. * Methods for injecting dependencies.
  24019. */
  24020. var injection = {
  24021. /**
  24022. * @param {array} InjectedEventPluginOrder
  24023. * @public
  24024. */
  24025. injectEventPluginOrder: injectEventPluginOrder,
  24026. /**
  24027. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  24028. */
  24029. injectEventPluginsByName: injectEventPluginsByName
  24030. };
  24031. /**
  24032. * @param {object} inst The instance, which is the source of events.
  24033. * @param {string} registrationName Name of listener (e.g. `onClick`).
  24034. * @return {?function} The stored callback.
  24035. */
  24036. function getListener(inst, registrationName) {
  24037. var listener = void 0;
  24038. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  24039. // live here; needs to be moved to a better place soon
  24040. var stateNode = inst.stateNode;
  24041. if (!stateNode) {
  24042. // Work in progress (ex: onload events in incremental mode).
  24043. return null;
  24044. }
  24045. var props = getFiberCurrentPropsFromNode(stateNode);
  24046. if (!props) {
  24047. // Work in progress.
  24048. return null;
  24049. }
  24050. listener = props[registrationName];
  24051. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  24052. return null;
  24053. }
  24054. (function () {
  24055. if (!(!listener || typeof listener === 'function')) {
  24056. {
  24057. throw ReactError(Error('Expected `' + registrationName + '` listener to be a function, instead got a value of `' + typeof listener + '` type.'));
  24058. }
  24059. }
  24060. })();
  24061. return listener;
  24062. }
  24063. /**
  24064. * Allows registered plugins an opportunity to extract events from top-level
  24065. * native browser events.
  24066. *
  24067. * @return {*} An accumulation of synthetic events.
  24068. * @internal
  24069. */
  24070. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  24071. var events = null;
  24072. for (var i = 0; i < plugins.length; i++) {
  24073. // Not every plugin in the ordering may be loaded at runtime.
  24074. var possiblePlugin = plugins[i];
  24075. if (possiblePlugin) {
  24076. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  24077. if (extractedEvents) {
  24078. events = accumulateInto(events, extractedEvents);
  24079. }
  24080. }
  24081. }
  24082. return events;
  24083. }
  24084. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  24085. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  24086. runEventsInBatch(events);
  24087. }
  24088. var FunctionComponent = 0;
  24089. var ClassComponent = 1;
  24090. var IndeterminateComponent = 2; // Before we know whether it is function or class
  24091. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  24092. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  24093. var HostComponent = 5;
  24094. var HostText = 6;
  24095. var Fragment = 7;
  24096. var Mode = 8;
  24097. var ContextConsumer = 9;
  24098. var ContextProvider = 10;
  24099. var ForwardRef = 11;
  24100. var Profiler = 12;
  24101. var SuspenseComponent = 13;
  24102. var MemoComponent = 14;
  24103. var SimpleMemoComponent = 15;
  24104. var LazyComponent = 16;
  24105. var IncompleteClassComponent = 17;
  24106. var DehydratedSuspenseComponent = 18;
  24107. var SuspenseListComponent = 19;
  24108. var FundamentalComponent = 20;
  24109. var randomKey = Math.random().toString(36).slice(2);
  24110. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  24111. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  24112. function precacheFiberNode(hostInst, node) {
  24113. node[internalInstanceKey] = hostInst;
  24114. }
  24115. /**
  24116. * Given a DOM node, return the closest ReactDOMComponent or
  24117. * ReactDOMTextComponent instance ancestor.
  24118. */
  24119. function getClosestInstanceFromNode(node) {
  24120. if (node[internalInstanceKey]) {
  24121. return node[internalInstanceKey];
  24122. }
  24123. while (!node[internalInstanceKey]) {
  24124. if (node.parentNode) {
  24125. node = node.parentNode;
  24126. } else {
  24127. // Top of the tree. This node must not be part of a React tree (or is
  24128. // unmounted, potentially).
  24129. return null;
  24130. }
  24131. }
  24132. var inst = node[internalInstanceKey];
  24133. if (inst.tag === HostComponent || inst.tag === HostText) {
  24134. // In Fiber, this will always be the deepest root.
  24135. return inst;
  24136. }
  24137. return null;
  24138. }
  24139. /**
  24140. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  24141. * instance, or null if the node was not rendered by this React.
  24142. */
  24143. function getInstanceFromNode$1(node) {
  24144. var inst = node[internalInstanceKey];
  24145. if (inst) {
  24146. if (inst.tag === HostComponent || inst.tag === HostText) {
  24147. return inst;
  24148. } else {
  24149. return null;
  24150. }
  24151. }
  24152. return null;
  24153. }
  24154. /**
  24155. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  24156. * DOM node.
  24157. */
  24158. function getNodeFromInstance$1(inst) {
  24159. if (inst.tag === HostComponent || inst.tag === HostText) {
  24160. // In Fiber this, is just the state node right now. We assume it will be
  24161. // a host component or host text.
  24162. return inst.stateNode;
  24163. }
  24164. // Without this first invariant, passing a non-DOM-component triggers the next
  24165. // invariant for a missing parent, which is super confusing.
  24166. (function () {
  24167. {
  24168. {
  24169. throw ReactError(Error('getNodeFromInstance: Invalid argument.'));
  24170. }
  24171. }
  24172. })();
  24173. }
  24174. function getFiberCurrentPropsFromNode$1(node) {
  24175. return node[internalEventHandlersKey] || null;
  24176. }
  24177. function updateFiberProps(node, props) {
  24178. node[internalEventHandlersKey] = props;
  24179. }
  24180. function getParent(inst) {
  24181. do {
  24182. inst = inst.return;
  24183. // TODO: If this is a HostRoot we might want to bail out.
  24184. // That is depending on if we want nested subtrees (layers) to bubble
  24185. // events to their parent. We could also go through parentNode on the
  24186. // host node but that wouldn't work for React Native and doesn't let us
  24187. // do the portal feature.
  24188. } while (inst && inst.tag !== HostComponent);
  24189. if (inst) {
  24190. return inst;
  24191. }
  24192. return null;
  24193. }
  24194. /**
  24195. * Return the lowest common ancestor of A and B, or null if they are in
  24196. * different trees.
  24197. */
  24198. function getLowestCommonAncestor(instA, instB) {
  24199. var depthA = 0;
  24200. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  24201. depthA++;
  24202. }
  24203. var depthB = 0;
  24204. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  24205. depthB++;
  24206. }
  24207. // If A is deeper, crawl up.
  24208. while (depthA - depthB > 0) {
  24209. instA = getParent(instA);
  24210. depthA--;
  24211. }
  24212. // If B is deeper, crawl up.
  24213. while (depthB - depthA > 0) {
  24214. instB = getParent(instB);
  24215. depthB--;
  24216. }
  24217. // Walk in lockstep until we find a match.
  24218. var depth = depthA;
  24219. while (depth--) {
  24220. if (instA === instB || instA === instB.alternate) {
  24221. return instA;
  24222. }
  24223. instA = getParent(instA);
  24224. instB = getParent(instB);
  24225. }
  24226. return null;
  24227. }
  24228. /**
  24229. * Return if A is an ancestor of B.
  24230. */
  24231. /**
  24232. * Return the parent instance of the passed-in instance.
  24233. */
  24234. /**
  24235. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  24236. */
  24237. function traverseTwoPhase(inst, fn, arg) {
  24238. var path = [];
  24239. while (inst) {
  24240. path.push(inst);
  24241. inst = getParent(inst);
  24242. }
  24243. var i = void 0;
  24244. for (i = path.length; i-- > 0;) {
  24245. fn(path[i], 'captured', arg);
  24246. }
  24247. for (i = 0; i < path.length; i++) {
  24248. fn(path[i], 'bubbled', arg);
  24249. }
  24250. }
  24251. /**
  24252. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  24253. * should would receive a `mouseEnter` or `mouseLeave` event.
  24254. *
  24255. * Does not invoke the callback on the nearest common ancestor because nothing
  24256. * "entered" or "left" that element.
  24257. */
  24258. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  24259. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  24260. var pathFrom = [];
  24261. while (true) {
  24262. if (!from) {
  24263. break;
  24264. }
  24265. if (from === common) {
  24266. break;
  24267. }
  24268. var alternate = from.alternate;
  24269. if (alternate !== null && alternate === common) {
  24270. break;
  24271. }
  24272. pathFrom.push(from);
  24273. from = getParent(from);
  24274. }
  24275. var pathTo = [];
  24276. while (true) {
  24277. if (!to) {
  24278. break;
  24279. }
  24280. if (to === common) {
  24281. break;
  24282. }
  24283. var _alternate = to.alternate;
  24284. if (_alternate !== null && _alternate === common) {
  24285. break;
  24286. }
  24287. pathTo.push(to);
  24288. to = getParent(to);
  24289. }
  24290. for (var i = 0; i < pathFrom.length; i++) {
  24291. fn(pathFrom[i], 'bubbled', argFrom);
  24292. }
  24293. for (var _i = pathTo.length; _i-- > 0;) {
  24294. fn(pathTo[_i], 'captured', argTo);
  24295. }
  24296. }
  24297. /**
  24298. * Some event types have a notion of different registration names for different
  24299. * "phases" of propagation. This finds listeners by a given phase.
  24300. */
  24301. function listenerAtPhase(inst, event, propagationPhase) {
  24302. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  24303. return getListener(inst, registrationName);
  24304. }
  24305. /**
  24306. * A small set of propagation patterns, each of which will accept a small amount
  24307. * of information, and generate a set of "dispatch ready event objects" - which
  24308. * are sets of events that have already been annotated with a set of dispatched
  24309. * listener functions/ids. The API is designed this way to discourage these
  24310. * propagation strategies from actually executing the dispatches, since we
  24311. * always want to collect the entire set of dispatches before executing even a
  24312. * single one.
  24313. */
  24314. /**
  24315. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  24316. * here, allows us to not have to bind or create functions for each event.
  24317. * Mutating the event's members allows us to not have to create a wrapping
  24318. * "dispatch" object that pairs the event with the listener.
  24319. */
  24320. function accumulateDirectionalDispatches(inst, phase, event) {
  24321. {
  24322. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  24323. }
  24324. var listener = listenerAtPhase(inst, event, phase);
  24325. if (listener) {
  24326. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  24327. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  24328. }
  24329. }
  24330. /**
  24331. * Collect dispatches (must be entirely collected before dispatching - see unit
  24332. * tests). Lazily allocate the array to conserve memory. We must loop through
  24333. * each event and perform the traversal for each one. We cannot perform a
  24334. * single traversal for the entire collection of events because each event may
  24335. * have a different target.
  24336. */
  24337. function accumulateTwoPhaseDispatchesSingle(event) {
  24338. if (event && event.dispatchConfig.phasedRegistrationNames) {
  24339. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  24340. }
  24341. }
  24342. /**
  24343. * Accumulates without regard to direction, does not look for phased
  24344. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  24345. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  24346. */
  24347. function accumulateDispatches(inst, ignoredDirection, event) {
  24348. if (inst && event && event.dispatchConfig.registrationName) {
  24349. var registrationName = event.dispatchConfig.registrationName;
  24350. var listener = getListener(inst, registrationName);
  24351. if (listener) {
  24352. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  24353. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  24354. }
  24355. }
  24356. }
  24357. /**
  24358. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  24359. * `dispatchMarker`.
  24360. * @param {SyntheticEvent} event
  24361. */
  24362. function accumulateDirectDispatchesSingle(event) {
  24363. if (event && event.dispatchConfig.registrationName) {
  24364. accumulateDispatches(event._targetInst, null, event);
  24365. }
  24366. }
  24367. function accumulateTwoPhaseDispatches(events) {
  24368. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  24369. }
  24370. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  24371. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  24372. }
  24373. function accumulateDirectDispatches(events) {
  24374. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  24375. }
  24376. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  24377. // Do not use the below two methods directly!
  24378. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  24379. // (It is the only module that is allowed to access these methods.)
  24380. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  24381. return topLevelType;
  24382. }
  24383. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  24384. return topLevelType;
  24385. }
  24386. /**
  24387. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  24388. *
  24389. * @param {string} styleProp
  24390. * @param {string} eventName
  24391. * @returns {object}
  24392. */
  24393. function makePrefixMap(styleProp, eventName) {
  24394. var prefixes = {};
  24395. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  24396. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  24397. prefixes['Moz' + styleProp] = 'moz' + eventName;
  24398. return prefixes;
  24399. }
  24400. /**
  24401. * A list of event names to a configurable list of vendor prefixes.
  24402. */
  24403. var vendorPrefixes = {
  24404. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  24405. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  24406. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  24407. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  24408. };
  24409. /**
  24410. * Event names that have already been detected and prefixed (if applicable).
  24411. */
  24412. var prefixedEventNames = {};
  24413. /**
  24414. * Element to check for prefixes on.
  24415. */
  24416. var style = {};
  24417. /**
  24418. * Bootstrap if a DOM exists.
  24419. */
  24420. if (canUseDOM) {
  24421. style = document.createElement('div').style;
  24422. // On some platforms, in particular some releases of Android 4.x,
  24423. // the un-prefixed "animation" and "transition" properties are defined on the
  24424. // style object but the events that fire will still be prefixed, so we need
  24425. // to check if the un-prefixed events are usable, and if not remove them from the map.
  24426. if (!('AnimationEvent' in window)) {
  24427. delete vendorPrefixes.animationend.animation;
  24428. delete vendorPrefixes.animationiteration.animation;
  24429. delete vendorPrefixes.animationstart.animation;
  24430. }
  24431. // Same as above
  24432. if (!('TransitionEvent' in window)) {
  24433. delete vendorPrefixes.transitionend.transition;
  24434. }
  24435. }
  24436. /**
  24437. * Attempts to determine the correct vendor prefixed event name.
  24438. *
  24439. * @param {string} eventName
  24440. * @returns {string}
  24441. */
  24442. function getVendorPrefixedEventName(eventName) {
  24443. if (prefixedEventNames[eventName]) {
  24444. return prefixedEventNames[eventName];
  24445. } else if (!vendorPrefixes[eventName]) {
  24446. return eventName;
  24447. }
  24448. var prefixMap = vendorPrefixes[eventName];
  24449. for (var styleProp in prefixMap) {
  24450. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  24451. return prefixedEventNames[eventName] = prefixMap[styleProp];
  24452. }
  24453. }
  24454. return eventName;
  24455. }
  24456. /**
  24457. * To identify top level events in ReactDOM, we use constants defined by this
  24458. * module. This is the only module that uses the unsafe* methods to express
  24459. * that the constants actually correspond to the browser event names. This lets
  24460. * us save some bundle size by avoiding a top level type -> event name map.
  24461. * The rest of ReactDOM code should import top level types from this file.
  24462. */
  24463. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  24464. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  24465. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  24466. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  24467. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  24468. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  24469. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  24470. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  24471. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  24472. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  24473. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  24474. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  24475. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  24476. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  24477. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  24478. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  24479. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  24480. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  24481. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  24482. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  24483. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  24484. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  24485. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  24486. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  24487. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  24488. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  24489. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  24490. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  24491. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  24492. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  24493. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  24494. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  24495. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  24496. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  24497. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  24498. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  24499. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  24500. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  24501. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  24502. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  24503. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  24504. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  24505. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  24506. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  24507. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  24508. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  24509. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  24510. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  24511. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  24512. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  24513. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  24514. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  24515. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  24516. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  24517. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  24518. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  24519. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  24520. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  24521. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  24522. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  24523. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  24524. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  24525. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  24526. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  24527. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  24528. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  24529. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  24530. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  24531. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  24532. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  24533. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  24534. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  24535. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  24536. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  24537. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  24538. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  24539. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  24540. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  24541. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  24542. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  24543. // List of events that need to be individually attached to media elements.
  24544. // Note that events in this list will *not* be listened to at the top level
  24545. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  24546. 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];
  24547. function getRawEventName(topLevelType) {
  24548. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  24549. }
  24550. /**
  24551. * These variables store information about text content of a target node,
  24552. * allowing comparison of content before and after a given event.
  24553. *
  24554. * Identify the node where selection currently begins, then observe
  24555. * both its text content and its current position in the DOM. Since the
  24556. * browser may natively replace the target node during composition, we can
  24557. * use its position to find its replacement.
  24558. *
  24559. *
  24560. */
  24561. var root = null;
  24562. var startText = null;
  24563. var fallbackText = null;
  24564. function initialize(nativeEventTarget) {
  24565. root = nativeEventTarget;
  24566. startText = getText();
  24567. return true;
  24568. }
  24569. function reset() {
  24570. root = null;
  24571. startText = null;
  24572. fallbackText = null;
  24573. }
  24574. function getData() {
  24575. if (fallbackText) {
  24576. return fallbackText;
  24577. }
  24578. var start = void 0;
  24579. var startValue = startText;
  24580. var startLength = startValue.length;
  24581. var end = void 0;
  24582. var endValue = getText();
  24583. var endLength = endValue.length;
  24584. for (start = 0; start < startLength; start++) {
  24585. if (startValue[start] !== endValue[start]) {
  24586. break;
  24587. }
  24588. }
  24589. var minEnd = startLength - start;
  24590. for (end = 1; end <= minEnd; end++) {
  24591. if (startValue[startLength - end] !== endValue[endLength - end]) {
  24592. break;
  24593. }
  24594. }
  24595. var sliceTail = end > 1 ? 1 - end : undefined;
  24596. fallbackText = endValue.slice(start, sliceTail);
  24597. return fallbackText;
  24598. }
  24599. function getText() {
  24600. if ('value' in root) {
  24601. return root.value;
  24602. }
  24603. return root.textContent;
  24604. }
  24605. /* eslint valid-typeof: 0 */
  24606. var EVENT_POOL_SIZE = 10;
  24607. /**
  24608. * @interface Event
  24609. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  24610. */
  24611. var EventInterface = {
  24612. type: null,
  24613. target: null,
  24614. // currentTarget is set when dispatching; no use in copying it here
  24615. currentTarget: function () {
  24616. return null;
  24617. },
  24618. eventPhase: null,
  24619. bubbles: null,
  24620. cancelable: null,
  24621. timeStamp: function (event) {
  24622. return event.timeStamp || Date.now();
  24623. },
  24624. defaultPrevented: null,
  24625. isTrusted: null
  24626. };
  24627. function functionThatReturnsTrue() {
  24628. return true;
  24629. }
  24630. function functionThatReturnsFalse() {
  24631. return false;
  24632. }
  24633. /**
  24634. * Synthetic events are dispatched by event plugins, typically in response to a
  24635. * top-level event delegation handler.
  24636. *
  24637. * These systems should generally use pooling to reduce the frequency of garbage
  24638. * collection. The system should check `isPersistent` to determine whether the
  24639. * event should be released into the pool after being dispatched. Users that
  24640. * need a persisted event should invoke `persist`.
  24641. *
  24642. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  24643. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  24644. * DOM interface; custom application-specific events can also subclass this.
  24645. *
  24646. * @param {object} dispatchConfig Configuration used to dispatch this event.
  24647. * @param {*} targetInst Marker identifying the event target.
  24648. * @param {object} nativeEvent Native browser event.
  24649. * @param {DOMEventTarget} nativeEventTarget Target node.
  24650. */
  24651. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  24652. {
  24653. // these have a getter/setter for warnings
  24654. delete this.nativeEvent;
  24655. delete this.preventDefault;
  24656. delete this.stopPropagation;
  24657. delete this.isDefaultPrevented;
  24658. delete this.isPropagationStopped;
  24659. }
  24660. this.dispatchConfig = dispatchConfig;
  24661. this._targetInst = targetInst;
  24662. this.nativeEvent = nativeEvent;
  24663. var Interface = this.constructor.Interface;
  24664. for (var propName in Interface) {
  24665. if (!Interface.hasOwnProperty(propName)) {
  24666. continue;
  24667. }
  24668. {
  24669. delete this[propName]; // this has a getter/setter for warnings
  24670. }
  24671. var normalize = Interface[propName];
  24672. if (normalize) {
  24673. this[propName] = normalize(nativeEvent);
  24674. } else {
  24675. if (propName === 'target') {
  24676. this.target = nativeEventTarget;
  24677. } else {
  24678. this[propName] = nativeEvent[propName];
  24679. }
  24680. }
  24681. }
  24682. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  24683. if (defaultPrevented) {
  24684. this.isDefaultPrevented = functionThatReturnsTrue;
  24685. } else {
  24686. this.isDefaultPrevented = functionThatReturnsFalse;
  24687. }
  24688. this.isPropagationStopped = functionThatReturnsFalse;
  24689. return this;
  24690. }
  24691. _assign(SyntheticEvent.prototype, {
  24692. preventDefault: function () {
  24693. this.defaultPrevented = true;
  24694. var event = this.nativeEvent;
  24695. if (!event) {
  24696. return;
  24697. }
  24698. if (event.preventDefault) {
  24699. event.preventDefault();
  24700. } else if (typeof event.returnValue !== 'unknown') {
  24701. event.returnValue = false;
  24702. }
  24703. this.isDefaultPrevented = functionThatReturnsTrue;
  24704. },
  24705. stopPropagation: function () {
  24706. var event = this.nativeEvent;
  24707. if (!event) {
  24708. return;
  24709. }
  24710. if (event.stopPropagation) {
  24711. event.stopPropagation();
  24712. } else if (typeof event.cancelBubble !== 'unknown') {
  24713. // The ChangeEventPlugin registers a "propertychange" event for
  24714. // IE. This event does not support bubbling or cancelling, and
  24715. // any references to cancelBubble throw "Member not found". A
  24716. // typeof check of "unknown" circumvents this issue (and is also
  24717. // IE specific).
  24718. event.cancelBubble = true;
  24719. }
  24720. this.isPropagationStopped = functionThatReturnsTrue;
  24721. },
  24722. /**
  24723. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  24724. * them back into the pool. This allows a way to hold onto a reference that
  24725. * won't be added back into the pool.
  24726. */
  24727. persist: function () {
  24728. this.isPersistent = functionThatReturnsTrue;
  24729. },
  24730. /**
  24731. * Checks if this event should be released back into the pool.
  24732. *
  24733. * @return {boolean} True if this should not be released, false otherwise.
  24734. */
  24735. isPersistent: functionThatReturnsFalse,
  24736. /**
  24737. * `PooledClass` looks for `destructor` on each instance it releases.
  24738. */
  24739. destructor: function () {
  24740. var Interface = this.constructor.Interface;
  24741. for (var propName in Interface) {
  24742. {
  24743. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  24744. }
  24745. }
  24746. this.dispatchConfig = null;
  24747. this._targetInst = null;
  24748. this.nativeEvent = null;
  24749. this.isDefaultPrevented = functionThatReturnsFalse;
  24750. this.isPropagationStopped = functionThatReturnsFalse;
  24751. this._dispatchListeners = null;
  24752. this._dispatchInstances = null;
  24753. {
  24754. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  24755. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  24756. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  24757. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  24758. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  24759. }
  24760. }
  24761. });
  24762. SyntheticEvent.Interface = EventInterface;
  24763. /**
  24764. * Helper to reduce boilerplate when creating subclasses.
  24765. */
  24766. SyntheticEvent.extend = function (Interface) {
  24767. var Super = this;
  24768. var E = function () {};
  24769. E.prototype = Super.prototype;
  24770. var prototype = new E();
  24771. function Class() {
  24772. return Super.apply(this, arguments);
  24773. }
  24774. _assign(prototype, Class.prototype);
  24775. Class.prototype = prototype;
  24776. Class.prototype.constructor = Class;
  24777. Class.Interface = _assign({}, Super.Interface, Interface);
  24778. Class.extend = Super.extend;
  24779. addEventPoolingTo(Class);
  24780. return Class;
  24781. };
  24782. addEventPoolingTo(SyntheticEvent);
  24783. /**
  24784. * Helper to nullify syntheticEvent instance properties when destructing
  24785. *
  24786. * @param {String} propName
  24787. * @param {?object} getVal
  24788. * @return {object} defineProperty object
  24789. */
  24790. function getPooledWarningPropertyDefinition(propName, getVal) {
  24791. var isFunction = typeof getVal === 'function';
  24792. return {
  24793. configurable: true,
  24794. set: set,
  24795. get: get
  24796. };
  24797. function set(val) {
  24798. var action = isFunction ? 'setting the method' : 'setting the property';
  24799. warn(action, 'This is effectively a no-op');
  24800. return val;
  24801. }
  24802. function get() {
  24803. var action = isFunction ? 'accessing the method' : 'accessing the property';
  24804. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  24805. warn(action, result);
  24806. return getVal;
  24807. }
  24808. function warn(action, result) {
  24809. var warningCondition = false;
  24810. !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
  24811. }
  24812. }
  24813. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  24814. var EventConstructor = this;
  24815. if (EventConstructor.eventPool.length) {
  24816. var instance = EventConstructor.eventPool.pop();
  24817. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  24818. return instance;
  24819. }
  24820. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  24821. }
  24822. function releasePooledEvent(event) {
  24823. var EventConstructor = this;
  24824. (function () {
  24825. if (!(event instanceof EventConstructor)) {
  24826. {
  24827. throw ReactError(Error('Trying to release an event instance into a pool of a different type.'));
  24828. }
  24829. }
  24830. })();
  24831. event.destructor();
  24832. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  24833. EventConstructor.eventPool.push(event);
  24834. }
  24835. }
  24836. function addEventPoolingTo(EventConstructor) {
  24837. EventConstructor.eventPool = [];
  24838. EventConstructor.getPooled = getPooledEvent;
  24839. EventConstructor.release = releasePooledEvent;
  24840. }
  24841. /**
  24842. * @interface Event
  24843. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  24844. */
  24845. var SyntheticCompositionEvent = SyntheticEvent.extend({
  24846. data: null
  24847. });
  24848. /**
  24849. * @interface Event
  24850. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  24851. * /#events-inputevents
  24852. */
  24853. var SyntheticInputEvent = SyntheticEvent.extend({
  24854. data: null
  24855. });
  24856. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  24857. var START_KEYCODE = 229;
  24858. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  24859. var documentMode = null;
  24860. if (canUseDOM && 'documentMode' in document) {
  24861. documentMode = document.documentMode;
  24862. }
  24863. // Webkit offers a very useful `textInput` event that can be used to
  24864. // directly represent `beforeInput`. The IE `textinput` event is not as
  24865. // useful, so we don't use it.
  24866. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  24867. // In IE9+, we have access to composition events, but the data supplied
  24868. // by the native compositionend event may be incorrect. Japanese ideographic
  24869. // spaces, for instance (\u3000) are not recorded correctly.
  24870. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  24871. var SPACEBAR_CODE = 32;
  24872. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  24873. // Events and their corresponding property names.
  24874. var eventTypes = {
  24875. beforeInput: {
  24876. phasedRegistrationNames: {
  24877. bubbled: 'onBeforeInput',
  24878. captured: 'onBeforeInputCapture'
  24879. },
  24880. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  24881. },
  24882. compositionEnd: {
  24883. phasedRegistrationNames: {
  24884. bubbled: 'onCompositionEnd',
  24885. captured: 'onCompositionEndCapture'
  24886. },
  24887. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  24888. },
  24889. compositionStart: {
  24890. phasedRegistrationNames: {
  24891. bubbled: 'onCompositionStart',
  24892. captured: 'onCompositionStartCapture'
  24893. },
  24894. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  24895. },
  24896. compositionUpdate: {
  24897. phasedRegistrationNames: {
  24898. bubbled: 'onCompositionUpdate',
  24899. captured: 'onCompositionUpdateCapture'
  24900. },
  24901. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  24902. }
  24903. };
  24904. // Track whether we've ever handled a keypress on the space key.
  24905. var hasSpaceKeypress = false;
  24906. /**
  24907. * Return whether a native keypress event is assumed to be a command.
  24908. * This is required because Firefox fires `keypress` events for key commands
  24909. * (cut, copy, select-all, etc.) even though no character is inserted.
  24910. */
  24911. function isKeypressCommand(nativeEvent) {
  24912. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  24913. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  24914. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  24915. }
  24916. /**
  24917. * Translate native top level events into event types.
  24918. *
  24919. * @param {string} topLevelType
  24920. * @return {object}
  24921. */
  24922. function getCompositionEventType(topLevelType) {
  24923. switch (topLevelType) {
  24924. case TOP_COMPOSITION_START:
  24925. return eventTypes.compositionStart;
  24926. case TOP_COMPOSITION_END:
  24927. return eventTypes.compositionEnd;
  24928. case TOP_COMPOSITION_UPDATE:
  24929. return eventTypes.compositionUpdate;
  24930. }
  24931. }
  24932. /**
  24933. * Does our fallback best-guess model think this event signifies that
  24934. * composition has begun?
  24935. *
  24936. * @param {string} topLevelType
  24937. * @param {object} nativeEvent
  24938. * @return {boolean}
  24939. */
  24940. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  24941. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  24942. }
  24943. /**
  24944. * Does our fallback mode think that this event is the end of composition?
  24945. *
  24946. * @param {string} topLevelType
  24947. * @param {object} nativeEvent
  24948. * @return {boolean}
  24949. */
  24950. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  24951. switch (topLevelType) {
  24952. case TOP_KEY_UP:
  24953. // Command keys insert or clear IME input.
  24954. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  24955. case TOP_KEY_DOWN:
  24956. // Expect IME keyCode on each keydown. If we get any other
  24957. // code we must have exited earlier.
  24958. return nativeEvent.keyCode !== START_KEYCODE;
  24959. case TOP_KEY_PRESS:
  24960. case TOP_MOUSE_DOWN:
  24961. case TOP_BLUR:
  24962. // Events are not possible without cancelling IME.
  24963. return true;
  24964. default:
  24965. return false;
  24966. }
  24967. }
  24968. /**
  24969. * Google Input Tools provides composition data via a CustomEvent,
  24970. * with the `data` property populated in the `detail` object. If this
  24971. * is available on the event object, use it. If not, this is a plain
  24972. * composition event and we have nothing special to extract.
  24973. *
  24974. * @param {object} nativeEvent
  24975. * @return {?string}
  24976. */
  24977. function getDataFromCustomEvent(nativeEvent) {
  24978. var detail = nativeEvent.detail;
  24979. if (typeof detail === 'object' && 'data' in detail) {
  24980. return detail.data;
  24981. }
  24982. return null;
  24983. }
  24984. /**
  24985. * Check if a composition event was triggered by Korean IME.
  24986. * Our fallback mode does not work well with IE's Korean IME,
  24987. * so just use native composition events when Korean IME is used.
  24988. * Although CompositionEvent.locale property is deprecated,
  24989. * it is available in IE, where our fallback mode is enabled.
  24990. *
  24991. * @param {object} nativeEvent
  24992. * @return {boolean}
  24993. */
  24994. function isUsingKoreanIME(nativeEvent) {
  24995. return nativeEvent.locale === 'ko';
  24996. }
  24997. // Track the current IME composition status, if any.
  24998. var isComposing = false;
  24999. /**
  25000. * @return {?object} A SyntheticCompositionEvent.
  25001. */
  25002. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  25003. var eventType = void 0;
  25004. var fallbackData = void 0;
  25005. if (canUseCompositionEvent) {
  25006. eventType = getCompositionEventType(topLevelType);
  25007. } else if (!isComposing) {
  25008. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  25009. eventType = eventTypes.compositionStart;
  25010. }
  25011. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  25012. eventType = eventTypes.compositionEnd;
  25013. }
  25014. if (!eventType) {
  25015. return null;
  25016. }
  25017. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  25018. // The current composition is stored statically and must not be
  25019. // overwritten while composition continues.
  25020. if (!isComposing && eventType === eventTypes.compositionStart) {
  25021. isComposing = initialize(nativeEventTarget);
  25022. } else if (eventType === eventTypes.compositionEnd) {
  25023. if (isComposing) {
  25024. fallbackData = getData();
  25025. }
  25026. }
  25027. }
  25028. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  25029. if (fallbackData) {
  25030. // Inject data generated from fallback path into the synthetic event.
  25031. // This matches the property of native CompositionEventInterface.
  25032. event.data = fallbackData;
  25033. } else {
  25034. var customData = getDataFromCustomEvent(nativeEvent);
  25035. if (customData !== null) {
  25036. event.data = customData;
  25037. }
  25038. }
  25039. accumulateTwoPhaseDispatches(event);
  25040. return event;
  25041. }
  25042. /**
  25043. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  25044. * @param {object} nativeEvent Native browser event.
  25045. * @return {?string} The string corresponding to this `beforeInput` event.
  25046. */
  25047. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  25048. switch (topLevelType) {
  25049. case TOP_COMPOSITION_END:
  25050. return getDataFromCustomEvent(nativeEvent);
  25051. case TOP_KEY_PRESS:
  25052. /**
  25053. * If native `textInput` events are available, our goal is to make
  25054. * use of them. However, there is a special case: the spacebar key.
  25055. * In Webkit, preventing default on a spacebar `textInput` event
  25056. * cancels character insertion, but it *also* causes the browser
  25057. * to fall back to its default spacebar behavior of scrolling the
  25058. * page.
  25059. *
  25060. * Tracking at:
  25061. * https://code.google.com/p/chromium/issues/detail?id=355103
  25062. *
  25063. * To avoid this issue, use the keypress event as if no `textInput`
  25064. * event is available.
  25065. */
  25066. var which = nativeEvent.which;
  25067. if (which !== SPACEBAR_CODE) {
  25068. return null;
  25069. }
  25070. hasSpaceKeypress = true;
  25071. return SPACEBAR_CHAR;
  25072. case TOP_TEXT_INPUT:
  25073. // Record the characters to be added to the DOM.
  25074. var chars = nativeEvent.data;
  25075. // If it's a spacebar character, assume that we have already handled
  25076. // it at the keypress level and bail immediately. Android Chrome
  25077. // doesn't give us keycodes, so we need to ignore it.
  25078. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  25079. return null;
  25080. }
  25081. return chars;
  25082. default:
  25083. // For other native event types, do nothing.
  25084. return null;
  25085. }
  25086. }
  25087. /**
  25088. * For browsers that do not provide the `textInput` event, extract the
  25089. * appropriate string to use for SyntheticInputEvent.
  25090. *
  25091. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  25092. * @param {object} nativeEvent Native browser event.
  25093. * @return {?string} The fallback string for this `beforeInput` event.
  25094. */
  25095. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  25096. // If we are currently composing (IME) and using a fallback to do so,
  25097. // try to extract the composed characters from the fallback object.
  25098. // If composition event is available, we extract a string only at
  25099. // compositionevent, otherwise extract it at fallback events.
  25100. if (isComposing) {
  25101. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  25102. var chars = getData();
  25103. reset();
  25104. isComposing = false;
  25105. return chars;
  25106. }
  25107. return null;
  25108. }
  25109. switch (topLevelType) {
  25110. case TOP_PASTE:
  25111. // If a paste event occurs after a keypress, throw out the input
  25112. // chars. Paste events should not lead to BeforeInput events.
  25113. return null;
  25114. case TOP_KEY_PRESS:
  25115. /**
  25116. * As of v27, Firefox may fire keypress events even when no character
  25117. * will be inserted. A few possibilities:
  25118. *
  25119. * - `which` is `0`. Arrow keys, Esc key, etc.
  25120. *
  25121. * - `which` is the pressed key code, but no char is available.
  25122. * Ex: 'AltGr + d` in Polish. There is no modified character for
  25123. * this key combination and no character is inserted into the
  25124. * document, but FF fires the keypress for char code `100` anyway.
  25125. * No `input` event will occur.
  25126. *
  25127. * - `which` is the pressed key code, but a command combination is
  25128. * being used. Ex: `Cmd+C`. No character is inserted, and no
  25129. * `input` event will occur.
  25130. */
  25131. if (!isKeypressCommand(nativeEvent)) {
  25132. // IE fires the `keypress` event when a user types an emoji via
  25133. // Touch keyboard of Windows. In such a case, the `char` property
  25134. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  25135. // is 2, the property `which` does not represent an emoji correctly.
  25136. // In such a case, we directly return the `char` property instead of
  25137. // using `which`.
  25138. if (nativeEvent.char && nativeEvent.char.length > 1) {
  25139. return nativeEvent.char;
  25140. } else if (nativeEvent.which) {
  25141. return String.fromCharCode(nativeEvent.which);
  25142. }
  25143. }
  25144. return null;
  25145. case TOP_COMPOSITION_END:
  25146. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  25147. default:
  25148. return null;
  25149. }
  25150. }
  25151. /**
  25152. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  25153. * `textInput` or fallback behavior.
  25154. *
  25155. * @return {?object} A SyntheticInputEvent.
  25156. */
  25157. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  25158. var chars = void 0;
  25159. if (canUseTextInputEvent) {
  25160. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  25161. } else {
  25162. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  25163. }
  25164. // If no characters are being inserted, no BeforeInput event should
  25165. // be fired.
  25166. if (!chars) {
  25167. return null;
  25168. }
  25169. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  25170. event.data = chars;
  25171. accumulateTwoPhaseDispatches(event);
  25172. return event;
  25173. }
  25174. /**
  25175. * Create an `onBeforeInput` event to match
  25176. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  25177. *
  25178. * This event plugin is based on the native `textInput` event
  25179. * available in Chrome, Safari, Opera, and IE. This event fires after
  25180. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  25181. *
  25182. * `beforeInput` is spec'd but not implemented in any browsers, and
  25183. * the `input` event does not provide any useful information about what has
  25184. * actually been added, contrary to the spec. Thus, `textInput` is the best
  25185. * available event to identify the characters that have actually been inserted
  25186. * into the target node.
  25187. *
  25188. * This plugin is also responsible for emitting `composition` events, thus
  25189. * allowing us to share composition fallback code for both `beforeInput` and
  25190. * `composition` event types.
  25191. */
  25192. var BeforeInputEventPlugin = {
  25193. eventTypes: eventTypes,
  25194. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  25195. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  25196. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  25197. if (composition === null) {
  25198. return beforeInput;
  25199. }
  25200. if (beforeInput === null) {
  25201. return composition;
  25202. }
  25203. return [composition, beforeInput];
  25204. }
  25205. };
  25206. // Use to restore controlled state after a change event has fired.
  25207. var restoreImpl = null;
  25208. var restoreTarget = null;
  25209. var restoreQueue = null;
  25210. function restoreStateOfTarget(target) {
  25211. // We perform this translation at the end of the event loop so that we
  25212. // always receive the correct fiber here
  25213. var internalInstance = getInstanceFromNode(target);
  25214. if (!internalInstance) {
  25215. // Unmounted
  25216. return;
  25217. }
  25218. (function () {
  25219. if (!(typeof restoreImpl === 'function')) {
  25220. {
  25221. throw ReactError(Error('setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.'));
  25222. }
  25223. }
  25224. })();
  25225. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  25226. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  25227. }
  25228. function setRestoreImplementation(impl) {
  25229. restoreImpl = impl;
  25230. }
  25231. function enqueueStateRestore(target) {
  25232. if (restoreTarget) {
  25233. if (restoreQueue) {
  25234. restoreQueue.push(target);
  25235. } else {
  25236. restoreQueue = [target];
  25237. }
  25238. } else {
  25239. restoreTarget = target;
  25240. }
  25241. }
  25242. function needsStateRestore() {
  25243. return restoreTarget !== null || restoreQueue !== null;
  25244. }
  25245. function restoreStateIfNeeded() {
  25246. if (!restoreTarget) {
  25247. return;
  25248. }
  25249. var target = restoreTarget;
  25250. var queuedTargets = restoreQueue;
  25251. restoreTarget = null;
  25252. restoreQueue = null;
  25253. restoreStateOfTarget(target);
  25254. if (queuedTargets) {
  25255. for (var i = 0; i < queuedTargets.length; i++) {
  25256. restoreStateOfTarget(queuedTargets[i]);
  25257. }
  25258. }
  25259. }
  25260. var enableUserTimingAPI = true;
  25261. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  25262. var debugRenderPhaseSideEffects = false;
  25263. // In some cases, StrictMode should also double-render lifecycles.
  25264. // This can be confusing for tests though,
  25265. // And it can be bad for performance in production.
  25266. // This feature flag can be used to control the behavior:
  25267. var debugRenderPhaseSideEffectsForStrictMode = true;
  25268. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  25269. // replay the begin phase of a failed component inside invokeGuardedCallback.
  25270. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  25271. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  25272. var warnAboutDeprecatedLifecycles = true;
  25273. // Gather advanced timing metrics for Profiler subtrees.
  25274. var enableProfilerTimer = true;
  25275. // Trace which interactions trigger each commit.
  25276. var enableSchedulerTracing = true;
  25277. // Only used in www builds.
  25278. var enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.
  25279. // Only used in www builds.
  25280. // Only used in www builds.
  25281. // Disable javascript: URL strings in href for XSS protection.
  25282. var disableJavaScriptURLs = false;
  25283. // React Fire: prevent the value and checked attributes from syncing
  25284. // with their related DOM properties
  25285. var disableInputAttributeSyncing = false;
  25286. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  25287. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  25288. var enableStableConcurrentModeAPIs = false;
  25289. var warnAboutShorthandPropertyCollision = false;
  25290. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  25291. // This is a flag so we can fix warnings in RN core before turning it on
  25292. // Experimental React Flare event system and event components support.
  25293. var enableFlareAPI = false;
  25294. // Experimental Host Component support.
  25295. var enableFundamentalAPI = false;
  25296. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  25297. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  25298. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  25299. var warnAboutUnmockedScheduler = false;
  25300. // Temporary flag to revert the fix in #15650
  25301. var revertPassiveEffectsChange = false;
  25302. // For tests, we flush suspense fallbacks in an act scope;
  25303. // *except* in some of our own tests, where we test incremental loading states.
  25304. var flushSuspenseFallbacksInTests = true;
  25305. // Changes priority of some events like mousemove to user-blocking priority,
  25306. // but without making them discrete. The flag exists in case it causes
  25307. // starvation problems.
  25308. var enableUserBlockingEvents = false;
  25309. // Add a callback property to suspense to notify which promises are currently
  25310. // in the update queue. This allows reporting and tracing of what is causing
  25311. // the user to see a loading state.
  25312. var enableSuspenseCallback = false;
  25313. // Part of the simplification of React.createElement so we can eventually move
  25314. // from React.createElement to React.jsx
  25315. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  25316. var warnAboutDefaultPropsOnFunctionComponents = false;
  25317. var disableLegacyContext = false;
  25318. var disableSchedulerTimeoutBasedOnReactExpirationTime = false;
  25319. // Used as a way to call batchedUpdates when we don't have a reference to
  25320. // the renderer. Such as when we're dispatching events or if third party
  25321. // libraries need to call batchedUpdates. Eventually, this API will go away when
  25322. // everything is batched by default. We'll then have a similar API to opt-out of
  25323. // scheduled work and instead do synchronous work.
  25324. // Defaults
  25325. var batchedUpdatesImpl = function (fn, bookkeeping) {
  25326. return fn(bookkeeping);
  25327. };
  25328. var discreteUpdatesImpl = function (fn, a, b, c) {
  25329. return fn(a, b, c);
  25330. };
  25331. var flushDiscreteUpdatesImpl = function () {};
  25332. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  25333. var isInsideEventHandler = false;
  25334. function finishEventHandler() {
  25335. // Here we wait until all updates have propagated, which is important
  25336. // when using controlled components within layers:
  25337. // https://github.com/facebook/react/issues/1698
  25338. // Then we restore state of any controlled component.
  25339. var controlledComponentsHavePendingUpdates = needsStateRestore();
  25340. if (controlledComponentsHavePendingUpdates) {
  25341. // If a controlled event was fired, we may need to restore the state of
  25342. // the DOM node back to the controlled value. This is necessary when React
  25343. // bails out of the update without touching the DOM.
  25344. flushDiscreteUpdatesImpl();
  25345. restoreStateIfNeeded();
  25346. }
  25347. }
  25348. function batchedUpdates(fn, bookkeeping) {
  25349. if (isInsideEventHandler) {
  25350. // If we are currently inside another batch, we need to wait until it
  25351. // fully completes before restoring state.
  25352. return fn(bookkeeping);
  25353. }
  25354. isInsideEventHandler = true;
  25355. try {
  25356. return batchedUpdatesImpl(fn, bookkeeping);
  25357. } finally {
  25358. isInsideEventHandler = false;
  25359. finishEventHandler();
  25360. }
  25361. }
  25362. function batchedEventUpdates(fn, a, b) {
  25363. if (isInsideEventHandler) {
  25364. // If we are currently inside another batch, we need to wait until it
  25365. // fully completes before restoring state.
  25366. return fn(a, b);
  25367. }
  25368. isInsideEventHandler = true;
  25369. try {
  25370. return batchedEventUpdatesImpl(fn, a, b);
  25371. } finally {
  25372. isInsideEventHandler = false;
  25373. finishEventHandler();
  25374. }
  25375. }
  25376. function discreteUpdates(fn, a, b, c) {
  25377. var prevIsInsideEventHandler = isInsideEventHandler;
  25378. isInsideEventHandler = true;
  25379. try {
  25380. return discreteUpdatesImpl(fn, a, b, c);
  25381. } finally {
  25382. isInsideEventHandler = prevIsInsideEventHandler;
  25383. if (!isInsideEventHandler) {
  25384. finishEventHandler();
  25385. }
  25386. }
  25387. }
  25388. var lastFlushedEventTimeStamp = 0;
  25389. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  25390. // event.timeStamp isn't overly reliable due to inconsistencies in
  25391. // how different browsers have historically provided the time stamp.
  25392. // Some browsers provide high-resolution time stamps for all events,
  25393. // some provide low-resolution time stamps for all events. FF < 52
  25394. // even mixes both time stamps together. Some browsers even report
  25395. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  25396. // Given we are only comparing two time stamps with equality (!==),
  25397. // we are safe from the resolution differences. If the time stamp is 0
  25398. // we bail-out of preventing the flush, which can affect semantics,
  25399. // such as if an earlier flush removes or adds event listeners that
  25400. // are fired in the subsequent flush. However, this is the same
  25401. // behaviour as we had before this change, so the risks are low.
  25402. if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) {
  25403. lastFlushedEventTimeStamp = timeStamp;
  25404. flushDiscreteUpdatesImpl();
  25405. }
  25406. }
  25407. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  25408. batchedUpdatesImpl = _batchedUpdatesImpl;
  25409. discreteUpdatesImpl = _discreteUpdatesImpl;
  25410. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  25411. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  25412. }
  25413. /**
  25414. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  25415. */
  25416. var supportedInputTypes = {
  25417. color: true,
  25418. date: true,
  25419. datetime: true,
  25420. 'datetime-local': true,
  25421. email: true,
  25422. month: true,
  25423. number: true,
  25424. password: true,
  25425. range: true,
  25426. search: true,
  25427. tel: true,
  25428. text: true,
  25429. time: true,
  25430. url: true,
  25431. week: true
  25432. };
  25433. function isTextInputElement(elem) {
  25434. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  25435. if (nodeName === 'input') {
  25436. return !!supportedInputTypes[elem.type];
  25437. }
  25438. if (nodeName === 'textarea') {
  25439. return true;
  25440. }
  25441. return false;
  25442. }
  25443. /**
  25444. * HTML nodeType values that represent the type of the node
  25445. */
  25446. var ELEMENT_NODE = 1;
  25447. var TEXT_NODE = 3;
  25448. var COMMENT_NODE = 8;
  25449. var DOCUMENT_NODE = 9;
  25450. var DOCUMENT_FRAGMENT_NODE = 11;
  25451. /**
  25452. * Gets the target node from a native browser event by accounting for
  25453. * inconsistencies in browser DOM APIs.
  25454. *
  25455. * @param {object} nativeEvent Native browser event.
  25456. * @return {DOMEventTarget} Target node.
  25457. */
  25458. function getEventTarget(nativeEvent) {
  25459. // Fallback to nativeEvent.srcElement for IE9
  25460. // https://github.com/facebook/react/issues/12506
  25461. var target = nativeEvent.target || nativeEvent.srcElement || window;
  25462. // Normalize SVG <use> element events #4963
  25463. if (target.correspondingUseElement) {
  25464. target = target.correspondingUseElement;
  25465. }
  25466. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  25467. // @see http://www.quirksmode.org/js/events_properties.html
  25468. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  25469. }
  25470. /**
  25471. * Checks if an event is supported in the current execution environment.
  25472. *
  25473. * NOTE: This will not work correctly for non-generic events such as `change`,
  25474. * `reset`, `load`, `error`, and `select`.
  25475. *
  25476. * Borrows from Modernizr.
  25477. *
  25478. * @param {string} eventNameSuffix Event name, e.g. "click".
  25479. * @return {boolean} True if the event is supported.
  25480. * @internal
  25481. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  25482. */
  25483. function isEventSupported(eventNameSuffix) {
  25484. if (!canUseDOM) {
  25485. return false;
  25486. }
  25487. var eventName = 'on' + eventNameSuffix;
  25488. var isSupported = eventName in document;
  25489. if (!isSupported) {
  25490. var element = document.createElement('div');
  25491. element.setAttribute(eventName, 'return;');
  25492. isSupported = typeof element[eventName] === 'function';
  25493. }
  25494. return isSupported;
  25495. }
  25496. function isCheckable(elem) {
  25497. var type = elem.type;
  25498. var nodeName = elem.nodeName;
  25499. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  25500. }
  25501. function getTracker(node) {
  25502. return node._valueTracker;
  25503. }
  25504. function detachTracker(node) {
  25505. node._valueTracker = null;
  25506. }
  25507. function getValueFromNode(node) {
  25508. var value = '';
  25509. if (!node) {
  25510. return value;
  25511. }
  25512. if (isCheckable(node)) {
  25513. value = node.checked ? 'true' : 'false';
  25514. } else {
  25515. value = node.value;
  25516. }
  25517. return value;
  25518. }
  25519. function trackValueOnNode(node) {
  25520. var valueField = isCheckable(node) ? 'checked' : 'value';
  25521. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  25522. var currentValue = '' + node[valueField];
  25523. // if someone has already defined a value or Safari, then bail
  25524. // and don't track value will cause over reporting of changes,
  25525. // but it's better then a hard failure
  25526. // (needed for certain tests that spyOn input values and Safari)
  25527. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  25528. return;
  25529. }
  25530. var get = descriptor.get,
  25531. set = descriptor.set;
  25532. Object.defineProperty(node, valueField, {
  25533. configurable: true,
  25534. get: function () {
  25535. return get.call(this);
  25536. },
  25537. set: function (value) {
  25538. currentValue = '' + value;
  25539. set.call(this, value);
  25540. }
  25541. });
  25542. // We could've passed this the first time
  25543. // but it triggers a bug in IE11 and Edge 14/15.
  25544. // Calling defineProperty() again should be equivalent.
  25545. // https://github.com/facebook/react/issues/11768
  25546. Object.defineProperty(node, valueField, {
  25547. enumerable: descriptor.enumerable
  25548. });
  25549. var tracker = {
  25550. getValue: function () {
  25551. return currentValue;
  25552. },
  25553. setValue: function (value) {
  25554. currentValue = '' + value;
  25555. },
  25556. stopTracking: function () {
  25557. detachTracker(node);
  25558. delete node[valueField];
  25559. }
  25560. };
  25561. return tracker;
  25562. }
  25563. function track(node) {
  25564. if (getTracker(node)) {
  25565. return;
  25566. }
  25567. // TODO: Once it's just Fiber we can move this to node._wrapperState
  25568. node._valueTracker = trackValueOnNode(node);
  25569. }
  25570. function updateValueIfChanged(node) {
  25571. if (!node) {
  25572. return false;
  25573. }
  25574. var tracker = getTracker(node);
  25575. // if there is no tracker at this point it's unlikely
  25576. // that trying again will succeed
  25577. if (!tracker) {
  25578. return true;
  25579. }
  25580. var lastValue = tracker.getValue();
  25581. var nextValue = getValueFromNode(node);
  25582. if (nextValue !== lastValue) {
  25583. tracker.setValue(nextValue);
  25584. return true;
  25585. }
  25586. return false;
  25587. }
  25588. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  25589. // Prevent newer renderers from RTE when used with older react package versions.
  25590. // Current owner and dispatcher used to share the same ref,
  25591. // but PR #14548 split them out to better support the react-debug-tools package.
  25592. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  25593. ReactSharedInternals.ReactCurrentDispatcher = {
  25594. current: null
  25595. };
  25596. }
  25597. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  25598. ReactSharedInternals.ReactCurrentBatchConfig = {
  25599. suspense: null
  25600. };
  25601. }
  25602. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  25603. var describeComponentFrame = function (name, source, ownerName) {
  25604. var sourceInfo = '';
  25605. if (source) {
  25606. var path = source.fileName;
  25607. var fileName = path.replace(BEFORE_SLASH_RE, '');
  25608. {
  25609. // In DEV, include code for a common special case:
  25610. // prefer "folder/index.js" instead of just "index.js".
  25611. if (/^index\./.test(fileName)) {
  25612. var match = path.match(BEFORE_SLASH_RE);
  25613. if (match) {
  25614. var pathBeforeSlash = match[1];
  25615. if (pathBeforeSlash) {
  25616. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  25617. fileName = folderName + '/' + fileName;
  25618. }
  25619. }
  25620. }
  25621. }
  25622. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  25623. } else if (ownerName) {
  25624. sourceInfo = ' (created by ' + ownerName + ')';
  25625. }
  25626. return '\n in ' + (name || 'Unknown') + sourceInfo;
  25627. };
  25628. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  25629. // nor polyfill, then a plain number is used for performance.
  25630. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  25631. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  25632. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  25633. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  25634. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  25635. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  25636. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  25637. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  25638. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  25639. // (unstable) APIs that have been removed. Can we remove the symbols?
  25640. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  25641. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  25642. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  25643. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  25644. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  25645. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  25646. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  25647. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  25648. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  25649. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  25650. function getIteratorFn(maybeIterable) {
  25651. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  25652. return null;
  25653. }
  25654. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  25655. if (typeof maybeIterator === 'function') {
  25656. return maybeIterator;
  25657. }
  25658. return null;
  25659. }
  25660. var Pending = 0;
  25661. var Resolved = 1;
  25662. var Rejected = 2;
  25663. function refineResolvedLazyComponent(lazyComponent) {
  25664. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  25665. }
  25666. function getWrappedName(outerType, innerType, wrapperName) {
  25667. var functionName = innerType.displayName || innerType.name || '';
  25668. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  25669. }
  25670. function getComponentName(type) {
  25671. if (type == null) {
  25672. // Host root, text node or just invalid type.
  25673. return null;
  25674. }
  25675. {
  25676. if (typeof type.tag === 'number') {
  25677. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  25678. }
  25679. }
  25680. if (typeof type === 'function') {
  25681. return type.displayName || type.name || null;
  25682. }
  25683. if (typeof type === 'string') {
  25684. return type;
  25685. }
  25686. switch (type) {
  25687. case REACT_FRAGMENT_TYPE:
  25688. return 'Fragment';
  25689. case REACT_PORTAL_TYPE:
  25690. return 'Portal';
  25691. case REACT_PROFILER_TYPE:
  25692. return 'Profiler';
  25693. case REACT_STRICT_MODE_TYPE:
  25694. return 'StrictMode';
  25695. case REACT_SUSPENSE_TYPE:
  25696. return 'Suspense';
  25697. case REACT_SUSPENSE_LIST_TYPE:
  25698. return 'SuspenseList';
  25699. }
  25700. if (typeof type === 'object') {
  25701. switch (type.$$typeof) {
  25702. case REACT_CONTEXT_TYPE:
  25703. return 'Context.Consumer';
  25704. case REACT_PROVIDER_TYPE:
  25705. return 'Context.Provider';
  25706. case REACT_FORWARD_REF_TYPE:
  25707. return getWrappedName(type, type.render, 'ForwardRef');
  25708. case REACT_MEMO_TYPE:
  25709. return getComponentName(type.type);
  25710. case REACT_LAZY_TYPE:
  25711. {
  25712. var thenable = type;
  25713. var resolvedThenable = refineResolvedLazyComponent(thenable);
  25714. if (resolvedThenable) {
  25715. return getComponentName(resolvedThenable);
  25716. }
  25717. break;
  25718. }
  25719. }
  25720. }
  25721. return null;
  25722. }
  25723. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  25724. function describeFiber(fiber) {
  25725. switch (fiber.tag) {
  25726. case HostRoot:
  25727. case HostPortal:
  25728. case HostText:
  25729. case Fragment:
  25730. case ContextProvider:
  25731. case ContextConsumer:
  25732. return '';
  25733. default:
  25734. var owner = fiber._debugOwner;
  25735. var source = fiber._debugSource;
  25736. var name = getComponentName(fiber.type);
  25737. var ownerName = null;
  25738. if (owner) {
  25739. ownerName = getComponentName(owner.type);
  25740. }
  25741. return describeComponentFrame(name, source, ownerName);
  25742. }
  25743. }
  25744. function getStackByFiberInDevAndProd(workInProgress) {
  25745. var info = '';
  25746. var node = workInProgress;
  25747. do {
  25748. info += describeFiber(node);
  25749. node = node.return;
  25750. } while (node);
  25751. return info;
  25752. }
  25753. var current = null;
  25754. var phase = null;
  25755. function getCurrentFiberOwnerNameInDevOrNull() {
  25756. {
  25757. if (current === null) {
  25758. return null;
  25759. }
  25760. var owner = current._debugOwner;
  25761. if (owner !== null && typeof owner !== 'undefined') {
  25762. return getComponentName(owner.type);
  25763. }
  25764. }
  25765. return null;
  25766. }
  25767. function getCurrentFiberStackInDev() {
  25768. {
  25769. if (current === null) {
  25770. return '';
  25771. }
  25772. // Safe because if current fiber exists, we are reconciling,
  25773. // and it is guaranteed to be the work-in-progress version.
  25774. return getStackByFiberInDevAndProd(current);
  25775. }
  25776. return '';
  25777. }
  25778. function resetCurrentFiber() {
  25779. {
  25780. ReactDebugCurrentFrame.getCurrentStack = null;
  25781. current = null;
  25782. phase = null;
  25783. }
  25784. }
  25785. function setCurrentFiber(fiber) {
  25786. {
  25787. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  25788. current = fiber;
  25789. phase = null;
  25790. }
  25791. }
  25792. function setCurrentPhase(lifeCyclePhase) {
  25793. {
  25794. phase = lifeCyclePhase;
  25795. }
  25796. }
  25797. /**
  25798. * Similar to invariant but only logs a warning if the condition is not met.
  25799. * This can be used to log issues in development environments in critical
  25800. * paths. Removing the logging code for production environments will keep the
  25801. * same logic and follow the same code paths.
  25802. */
  25803. var warning = warningWithoutStack$1;
  25804. {
  25805. warning = function (condition, format) {
  25806. if (condition) {
  25807. return;
  25808. }
  25809. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  25810. var stack = ReactDebugCurrentFrame.getStackAddendum();
  25811. // eslint-disable-next-line react-internal/warning-and-invariant-args
  25812. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  25813. args[_key - 2] = arguments[_key];
  25814. }
  25815. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  25816. };
  25817. }
  25818. var warning$1 = warning;
  25819. // A reserved attribute.
  25820. // It is handled by React separately and shouldn't be written to the DOM.
  25821. var RESERVED = 0;
  25822. // A simple string attribute.
  25823. // Attributes that aren't in the whitelist are presumed to have this type.
  25824. var STRING = 1;
  25825. // A string attribute that accepts booleans in React. In HTML, these are called
  25826. // "enumerated" attributes with "true" and "false" as possible values.
  25827. // When true, it should be set to a "true" string.
  25828. // When false, it should be set to a "false" string.
  25829. var BOOLEANISH_STRING = 2;
  25830. // A real boolean attribute.
  25831. // When true, it should be present (set either to an empty string or its name).
  25832. // When false, it should be omitted.
  25833. var BOOLEAN = 3;
  25834. // An attribute that can be used as a flag as well as with a value.
  25835. // When true, it should be present (set either to an empty string or its name).
  25836. // When false, it should be omitted.
  25837. // For any other value, should be present with that value.
  25838. var OVERLOADED_BOOLEAN = 4;
  25839. // An attribute that must be numeric or parse as a numeric.
  25840. // When falsy, it should be removed.
  25841. var NUMERIC = 5;
  25842. // An attribute that must be positive numeric or parse as a positive numeric.
  25843. // When falsy, it should be removed.
  25844. var POSITIVE_NUMERIC = 6;
  25845. /* eslint-disable max-len */
  25846. 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';
  25847. /* eslint-enable max-len */
  25848. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  25849. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  25850. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  25851. var hasOwnProperty = Object.prototype.hasOwnProperty;
  25852. var illegalAttributeNameCache = {};
  25853. var validatedAttributeNameCache = {};
  25854. function isAttributeNameSafe(attributeName) {
  25855. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  25856. return true;
  25857. }
  25858. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  25859. return false;
  25860. }
  25861. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  25862. validatedAttributeNameCache[attributeName] = true;
  25863. return true;
  25864. }
  25865. illegalAttributeNameCache[attributeName] = true;
  25866. {
  25867. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  25868. }
  25869. return false;
  25870. }
  25871. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  25872. if (propertyInfo !== null) {
  25873. return propertyInfo.type === RESERVED;
  25874. }
  25875. if (isCustomComponentTag) {
  25876. return false;
  25877. }
  25878. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  25879. return true;
  25880. }
  25881. return false;
  25882. }
  25883. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  25884. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  25885. return false;
  25886. }
  25887. switch (typeof value) {
  25888. case 'function':
  25889. // $FlowIssue symbol is perfectly valid here
  25890. case 'symbol':
  25891. // eslint-disable-line
  25892. return true;
  25893. case 'boolean':
  25894. {
  25895. if (isCustomComponentTag) {
  25896. return false;
  25897. }
  25898. if (propertyInfo !== null) {
  25899. return !propertyInfo.acceptsBooleans;
  25900. } else {
  25901. var prefix = name.toLowerCase().slice(0, 5);
  25902. return prefix !== 'data-' && prefix !== 'aria-';
  25903. }
  25904. }
  25905. default:
  25906. return false;
  25907. }
  25908. }
  25909. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  25910. if (value === null || typeof value === 'undefined') {
  25911. return true;
  25912. }
  25913. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  25914. return true;
  25915. }
  25916. if (isCustomComponentTag) {
  25917. return false;
  25918. }
  25919. if (propertyInfo !== null) {
  25920. switch (propertyInfo.type) {
  25921. case BOOLEAN:
  25922. return !value;
  25923. case OVERLOADED_BOOLEAN:
  25924. return value === false;
  25925. case NUMERIC:
  25926. return isNaN(value);
  25927. case POSITIVE_NUMERIC:
  25928. return isNaN(value) || value < 1;
  25929. }
  25930. }
  25931. return false;
  25932. }
  25933. function getPropertyInfo(name) {
  25934. return properties.hasOwnProperty(name) ? properties[name] : null;
  25935. }
  25936. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  25937. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  25938. this.attributeName = attributeName;
  25939. this.attributeNamespace = attributeNamespace;
  25940. this.mustUseProperty = mustUseProperty;
  25941. this.propertyName = name;
  25942. this.type = type;
  25943. this.sanitizeURL = sanitizeURL;
  25944. }
  25945. // When adding attributes to this list, be sure to also add them to
  25946. // the `possibleStandardNames` module to ensure casing and incorrect
  25947. // name warnings.
  25948. var properties = {};
  25949. // These props are reserved by React. They shouldn't be written to the DOM.
  25950. ['children', 'dangerouslySetInnerHTML',
  25951. // TODO: This prevents the assignment of defaultValue to regular
  25952. // elements (not just inputs). Now that ReactDOMInput assigns to the
  25953. // defaultValue property -- do we need this?
  25954. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  25955. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  25956. name, // attributeName
  25957. null, // attributeNamespace
  25958. false);
  25959. } // sanitizeURL
  25960. );
  25961. // A few React string attributes have a different name.
  25962. // This is a mapping from React prop names to the attribute names.
  25963. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  25964. var name = _ref[0],
  25965. attributeName = _ref[1];
  25966. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  25967. attributeName, // attributeName
  25968. null, // attributeNamespace
  25969. false);
  25970. } // sanitizeURL
  25971. );
  25972. // These are "enumerated" HTML attributes that accept "true" and "false".
  25973. // In React, we let users pass `true` and `false` even though technically
  25974. // these aren't boolean attributes (they are coerced to strings).
  25975. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  25976. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  25977. name.toLowerCase(), // attributeName
  25978. null, // attributeNamespace
  25979. false);
  25980. } // sanitizeURL
  25981. );
  25982. // These are "enumerated" SVG attributes that accept "true" and "false".
  25983. // In React, we let users pass `true` and `false` even though technically
  25984. // these aren't boolean attributes (they are coerced to strings).
  25985. // Since these are SVG attributes, their attribute names are case-sensitive.
  25986. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  25987. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  25988. name, // attributeName
  25989. null, // attributeNamespace
  25990. false);
  25991. } // sanitizeURL
  25992. );
  25993. // These are HTML boolean attributes.
  25994. ['allowFullScreen', 'async',
  25995. // Note: there is a special case that prevents it from being written to the DOM
  25996. // on the client side because the browsers are inconsistent. Instead we call focus().
  25997. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  25998. // Microdata
  25999. 'itemScope'].forEach(function (name) {
  26000. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  26001. name.toLowerCase(), // attributeName
  26002. null, // attributeNamespace
  26003. false);
  26004. } // sanitizeURL
  26005. );
  26006. // These are the few React props that we set as DOM properties
  26007. // rather than attributes. These are all booleans.
  26008. ['checked',
  26009. // Note: `option.selected` is not updated if `select.multiple` is
  26010. // disabled with `removeAttribute`. We have special logic for handling this.
  26011. 'multiple', 'muted', 'selected'].forEach(function (name) {
  26012. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  26013. name, // attributeName
  26014. null, // attributeNamespace
  26015. false);
  26016. } // sanitizeURL
  26017. );
  26018. // These are HTML attributes that are "overloaded booleans": they behave like
  26019. // booleans, but can also accept a string value.
  26020. ['capture', 'download'].forEach(function (name) {
  26021. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  26022. name, // attributeName
  26023. null, // attributeNamespace
  26024. false);
  26025. } // sanitizeURL
  26026. );
  26027. // These are HTML attributes that must be positive numbers.
  26028. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  26029. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  26030. name, // attributeName
  26031. null, // attributeNamespace
  26032. false);
  26033. } // sanitizeURL
  26034. );
  26035. // These are HTML attributes that must be numbers.
  26036. ['rowSpan', 'start'].forEach(function (name) {
  26037. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  26038. name.toLowerCase(), // attributeName
  26039. null, // attributeNamespace
  26040. false);
  26041. } // sanitizeURL
  26042. );
  26043. var CAMELIZE = /[\-\:]([a-z])/g;
  26044. var capitalize = function (token) {
  26045. return token[1].toUpperCase();
  26046. };
  26047. // This is a list of all SVG attributes that need special casing, namespacing,
  26048. // or boolean value assignment. Regular attributes that just accept strings
  26049. // and have the same names are omitted, just like in the HTML whitelist.
  26050. // Some of these attributes can be hard to find. This list was created by
  26051. // scrapping the MDN documentation.
  26052. ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
  26053. var name = attributeName.replace(CAMELIZE, capitalize);
  26054. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  26055. attributeName, null, // attributeNamespace
  26056. false);
  26057. } // sanitizeURL
  26058. );
  26059. // String SVG attributes with the xlink namespace.
  26060. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  26061. var name = attributeName.replace(CAMELIZE, capitalize);
  26062. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  26063. attributeName, 'http://www.w3.org/1999/xlink', false);
  26064. } // sanitizeURL
  26065. );
  26066. // String SVG attributes with the xml namespace.
  26067. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  26068. var name = attributeName.replace(CAMELIZE, capitalize);
  26069. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  26070. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  26071. } // sanitizeURL
  26072. );
  26073. // These attribute exists both in HTML and SVG.
  26074. // The attribute name is case-sensitive in SVG so we can't just use
  26075. // the React name like we do for attributes that exist only in HTML.
  26076. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  26077. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  26078. attributeName.toLowerCase(), // attributeName
  26079. null, // attributeNamespace
  26080. false);
  26081. } // sanitizeURL
  26082. );
  26083. // These attributes accept URLs. These must not allow javascript: URLS.
  26084. // These will also need to accept Trusted Types object in the future.
  26085. var xlinkHref = 'xlinkHref';
  26086. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  26087. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  26088. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  26089. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  26090. attributeName.toLowerCase(), // attributeName
  26091. null, // attributeNamespace
  26092. true);
  26093. } // sanitizeURL
  26094. );
  26095. var ReactDebugCurrentFrame$1 = null;
  26096. {
  26097. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  26098. }
  26099. // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  26100. // and any newline or tab are filtered out as if they're not part of the URL.
  26101. // https://url.spec.whatwg.org/#url-parsing
  26102. // Tab or newline are defined as \r\n\t:
  26103. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  26104. // A C0 control is a code point in the range \u0000 NULL to \u001F
  26105. // INFORMATION SEPARATOR ONE, inclusive:
  26106. // https://infra.spec.whatwg.org/#c0-control-or-space
  26107. /* eslint-disable max-len */
  26108. 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;
  26109. var didWarn = false;
  26110. function sanitizeURL(url) {
  26111. if (disableJavaScriptURLs) {
  26112. (function () {
  26113. if (!!isJavaScriptProtocol.test(url)) {
  26114. {
  26115. throw ReactError(Error('React has blocked a javascript: URL as a security precaution.' + (ReactDebugCurrentFrame$1.getStackAddendum())));
  26116. }
  26117. }
  26118. })();
  26119. } else if ( true && !didWarn && isJavaScriptProtocol.test(url)) {
  26120. didWarn = true;
  26121. warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
  26122. }
  26123. }
  26124. /**
  26125. * Get the value for a property on a node. Only used in DEV for SSR validation.
  26126. * The "expected" argument is used as a hint of what the expected value is.
  26127. * Some properties have multiple equivalent values.
  26128. */
  26129. function getValueForProperty(node, name, expected, propertyInfo) {
  26130. {
  26131. if (propertyInfo.mustUseProperty) {
  26132. var propertyName = propertyInfo.propertyName;
  26133. return node[propertyName];
  26134. } else {
  26135. if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) {
  26136. // If we haven't fully disabled javascript: URLs, and if
  26137. // the hydration is successful of a javascript: URL, we
  26138. // still want to warn on the client.
  26139. sanitizeURL('' + expected);
  26140. }
  26141. var attributeName = propertyInfo.attributeName;
  26142. var stringValue = null;
  26143. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  26144. if (node.hasAttribute(attributeName)) {
  26145. var value = node.getAttribute(attributeName);
  26146. if (value === '') {
  26147. return true;
  26148. }
  26149. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  26150. return value;
  26151. }
  26152. if (value === '' + expected) {
  26153. return expected;
  26154. }
  26155. return value;
  26156. }
  26157. } else if (node.hasAttribute(attributeName)) {
  26158. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  26159. // We had an attribute but shouldn't have had one, so read it
  26160. // for the error message.
  26161. return node.getAttribute(attributeName);
  26162. }
  26163. if (propertyInfo.type === BOOLEAN) {
  26164. // If this was a boolean, it doesn't matter what the value is
  26165. // the fact that we have it is the same as the expected.
  26166. return expected;
  26167. }
  26168. // Even if this property uses a namespace we use getAttribute
  26169. // because we assume its namespaced name is the same as our config.
  26170. // To use getAttributeNS we need the local name which we don't have
  26171. // in our config atm.
  26172. stringValue = node.getAttribute(attributeName);
  26173. }
  26174. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  26175. return stringValue === null ? expected : stringValue;
  26176. } else if (stringValue === '' + expected) {
  26177. return expected;
  26178. } else {
  26179. return stringValue;
  26180. }
  26181. }
  26182. }
  26183. }
  26184. /**
  26185. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  26186. * The third argument is used as a hint of what the expected value is. Some
  26187. * attributes have multiple equivalent values.
  26188. */
  26189. function getValueForAttribute(node, name, expected) {
  26190. {
  26191. if (!isAttributeNameSafe(name)) {
  26192. return;
  26193. }
  26194. if (!node.hasAttribute(name)) {
  26195. return expected === undefined ? undefined : null;
  26196. }
  26197. var value = node.getAttribute(name);
  26198. if (value === '' + expected) {
  26199. return expected;
  26200. }
  26201. return value;
  26202. }
  26203. }
  26204. /**
  26205. * Sets the value for a property on a node.
  26206. *
  26207. * @param {DOMElement} node
  26208. * @param {string} name
  26209. * @param {*} value
  26210. */
  26211. function setValueForProperty(node, name, value, isCustomComponentTag) {
  26212. var propertyInfo = getPropertyInfo(name);
  26213. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  26214. return;
  26215. }
  26216. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  26217. value = null;
  26218. }
  26219. // If the prop isn't in the special list, treat it as a simple attribute.
  26220. if (isCustomComponentTag || propertyInfo === null) {
  26221. if (isAttributeNameSafe(name)) {
  26222. var _attributeName = name;
  26223. if (value === null) {
  26224. node.removeAttribute(_attributeName);
  26225. } else {
  26226. node.setAttribute(_attributeName, '' + value);
  26227. }
  26228. }
  26229. return;
  26230. }
  26231. var mustUseProperty = propertyInfo.mustUseProperty;
  26232. if (mustUseProperty) {
  26233. var propertyName = propertyInfo.propertyName;
  26234. if (value === null) {
  26235. var type = propertyInfo.type;
  26236. node[propertyName] = type === BOOLEAN ? false : '';
  26237. } else {
  26238. // Contrary to `setAttribute`, object properties are properly
  26239. // `toString`ed by IE8/9.
  26240. node[propertyName] = value;
  26241. }
  26242. return;
  26243. }
  26244. // The rest are treated as attributes with special cases.
  26245. var attributeName = propertyInfo.attributeName,
  26246. attributeNamespace = propertyInfo.attributeNamespace;
  26247. if (value === null) {
  26248. node.removeAttribute(attributeName);
  26249. } else {
  26250. var _type = propertyInfo.type;
  26251. var attributeValue = void 0;
  26252. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  26253. attributeValue = '';
  26254. } else {
  26255. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  26256. // ('' + value) makes it output the correct toString()-value.
  26257. attributeValue = '' + value;
  26258. if (propertyInfo.sanitizeURL) {
  26259. sanitizeURL(attributeValue);
  26260. }
  26261. }
  26262. if (attributeNamespace) {
  26263. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  26264. } else {
  26265. node.setAttribute(attributeName, attributeValue);
  26266. }
  26267. }
  26268. }
  26269. // Flow does not allow string concatenation of most non-string types. To work
  26270. // around this limitation, we use an opaque type that can only be obtained by
  26271. // passing the value through getToStringValue first.
  26272. function toString(value) {
  26273. return '' + value;
  26274. }
  26275. function getToStringValue(value) {
  26276. switch (typeof value) {
  26277. case 'boolean':
  26278. case 'number':
  26279. case 'object':
  26280. case 'string':
  26281. case 'undefined':
  26282. return value;
  26283. default:
  26284. // function, symbol are assigned as empty strings
  26285. return '';
  26286. }
  26287. }
  26288. var ReactDebugCurrentFrame$2 = null;
  26289. var ReactControlledValuePropTypes = {
  26290. checkPropTypes: null
  26291. };
  26292. {
  26293. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  26294. var hasReadOnlyValue = {
  26295. button: true,
  26296. checkbox: true,
  26297. image: true,
  26298. hidden: true,
  26299. radio: true,
  26300. reset: true,
  26301. submit: true
  26302. };
  26303. var propTypes = {
  26304. value: function (props, propName, componentName) {
  26305. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  26306. return null;
  26307. }
  26308. 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`.');
  26309. },
  26310. checked: function (props, propName, componentName) {
  26311. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  26312. return null;
  26313. }
  26314. 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`.');
  26315. }
  26316. };
  26317. /**
  26318. * Provide a linked `value` attribute for controlled forms. You should not use
  26319. * this outside of the ReactDOM controlled form components.
  26320. */
  26321. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  26322. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  26323. };
  26324. }
  26325. // TODO: direct imports like some-package/src/* are bad. Fix me.
  26326. var didWarnValueDefaultValue = false;
  26327. var didWarnCheckedDefaultChecked = false;
  26328. var didWarnControlledToUncontrolled = false;
  26329. var didWarnUncontrolledToControlled = false;
  26330. function isControlled(props) {
  26331. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  26332. return usesChecked ? props.checked != null : props.value != null;
  26333. }
  26334. /**
  26335. * Implements an <input> host component that allows setting these optional
  26336. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  26337. *
  26338. * If `checked` or `value` are not supplied (or null/undefined), user actions
  26339. * that affect the checked state or value will trigger updates to the element.
  26340. *
  26341. * If they are supplied (and not null/undefined), the rendered element will not
  26342. * trigger updates to the element. Instead, the props must change in order for
  26343. * the rendered element to be updated.
  26344. *
  26345. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  26346. * with an empty value (or `defaultValue`).
  26347. *
  26348. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  26349. */
  26350. function getHostProps(element, props) {
  26351. var node = element;
  26352. var checked = props.checked;
  26353. var hostProps = _assign({}, props, {
  26354. defaultChecked: undefined,
  26355. defaultValue: undefined,
  26356. value: undefined,
  26357. checked: checked != null ? checked : node._wrapperState.initialChecked
  26358. });
  26359. return hostProps;
  26360. }
  26361. function initWrapperState(element, props) {
  26362. {
  26363. ReactControlledValuePropTypes.checkPropTypes('input', props);
  26364. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  26365. warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  26366. didWarnCheckedDefaultChecked = true;
  26367. }
  26368. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  26369. warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  26370. didWarnValueDefaultValue = true;
  26371. }
  26372. }
  26373. var node = element;
  26374. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  26375. node._wrapperState = {
  26376. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  26377. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  26378. controlled: isControlled(props)
  26379. };
  26380. }
  26381. function updateChecked(element, props) {
  26382. var node = element;
  26383. var checked = props.checked;
  26384. if (checked != null) {
  26385. setValueForProperty(node, 'checked', checked, false);
  26386. }
  26387. }
  26388. function updateWrapper(element, props) {
  26389. var node = element;
  26390. {
  26391. var _controlled = isControlled(props);
  26392. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  26393. warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  26394. didWarnUncontrolledToControlled = true;
  26395. }
  26396. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  26397. warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  26398. didWarnControlledToUncontrolled = true;
  26399. }
  26400. }
  26401. updateChecked(element, props);
  26402. var value = getToStringValue(props.value);
  26403. var type = props.type;
  26404. if (value != null) {
  26405. if (type === 'number') {
  26406. if (value === 0 && node.value === '' ||
  26407. // We explicitly want to coerce to number here if possible.
  26408. // eslint-disable-next-line
  26409. node.value != value) {
  26410. node.value = toString(value);
  26411. }
  26412. } else if (node.value !== toString(value)) {
  26413. node.value = toString(value);
  26414. }
  26415. } else if (type === 'submit' || type === 'reset') {
  26416. // Submit/reset inputs need the attribute removed completely to avoid
  26417. // blank-text buttons.
  26418. node.removeAttribute('value');
  26419. return;
  26420. }
  26421. if (disableInputAttributeSyncing) {
  26422. // When not syncing the value attribute, React only assigns a new value
  26423. // whenever the defaultValue React prop has changed. When not present,
  26424. // React does nothing
  26425. if (props.hasOwnProperty('defaultValue')) {
  26426. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  26427. }
  26428. } else {
  26429. // When syncing the value attribute, the value comes from a cascade of
  26430. // properties:
  26431. // 1. The value React property
  26432. // 2. The defaultValue React property
  26433. // 3. Otherwise there should be no change
  26434. if (props.hasOwnProperty('value')) {
  26435. setDefaultValue(node, props.type, value);
  26436. } else if (props.hasOwnProperty('defaultValue')) {
  26437. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  26438. }
  26439. }
  26440. if (disableInputAttributeSyncing) {
  26441. // When not syncing the checked attribute, the attribute is directly
  26442. // controllable from the defaultValue React property. It needs to be
  26443. // updated as new props come in.
  26444. if (props.defaultChecked == null) {
  26445. node.removeAttribute('checked');
  26446. } else {
  26447. node.defaultChecked = !!props.defaultChecked;
  26448. }
  26449. } else {
  26450. // When syncing the checked attribute, it only changes when it needs
  26451. // to be removed, such as transitioning from a checkbox into a text input
  26452. if (props.checked == null && props.defaultChecked != null) {
  26453. node.defaultChecked = !!props.defaultChecked;
  26454. }
  26455. }
  26456. }
  26457. function postMountWrapper(element, props, isHydrating) {
  26458. var node = element;
  26459. // Do not assign value if it is already set. This prevents user text input
  26460. // from being lost during SSR hydration.
  26461. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  26462. var type = props.type;
  26463. var isButton = type === 'submit' || type === 'reset';
  26464. // Avoid setting value attribute on submit/reset inputs as it overrides the
  26465. // default value provided by the browser. See: #12872
  26466. if (isButton && (props.value === undefined || props.value === null)) {
  26467. return;
  26468. }
  26469. var _initialValue = toString(node._wrapperState.initialValue);
  26470. // Do not assign value if it is already set. This prevents user text input
  26471. // from being lost during SSR hydration.
  26472. if (!isHydrating) {
  26473. if (disableInputAttributeSyncing) {
  26474. var value = getToStringValue(props.value);
  26475. // When not syncing the value attribute, the value property points
  26476. // directly to the React prop. Only assign it if it exists.
  26477. if (value != null) {
  26478. // Always assign on buttons so that it is possible to assign an
  26479. // empty string to clear button text.
  26480. //
  26481. // Otherwise, do not re-assign the value property if is empty. This
  26482. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  26483. // prematurely marking required inputs as invalid. Equality is compared
  26484. // to the current value in case the browser provided value is not an
  26485. // empty string.
  26486. if (isButton || value !== node.value) {
  26487. node.value = toString(value);
  26488. }
  26489. }
  26490. } else {
  26491. // When syncing the value attribute, the value property should use
  26492. // the wrapperState._initialValue property. This uses:
  26493. //
  26494. // 1. The value React property when present
  26495. // 2. The defaultValue React property when present
  26496. // 3. An empty string
  26497. if (_initialValue !== node.value) {
  26498. node.value = _initialValue;
  26499. }
  26500. }
  26501. }
  26502. if (disableInputAttributeSyncing) {
  26503. // When not syncing the value attribute, assign the value attribute
  26504. // directly from the defaultValue React property (when present)
  26505. var defaultValue = getToStringValue(props.defaultValue);
  26506. if (defaultValue != null) {
  26507. node.defaultValue = toString(defaultValue);
  26508. }
  26509. } else {
  26510. // Otherwise, the value attribute is synchronized to the property,
  26511. // so we assign defaultValue to the same thing as the value property
  26512. // assignment step above.
  26513. node.defaultValue = _initialValue;
  26514. }
  26515. }
  26516. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  26517. // this is needed to work around a chrome bug where setting defaultChecked
  26518. // will sometimes influence the value of checked (even after detachment).
  26519. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  26520. // We need to temporarily unset name to avoid disrupting radio button groups.
  26521. var name = node.name;
  26522. if (name !== '') {
  26523. node.name = '';
  26524. }
  26525. if (disableInputAttributeSyncing) {
  26526. // When not syncing the checked attribute, the checked property
  26527. // never gets assigned. It must be manually set. We don't want
  26528. // to do this when hydrating so that existing user input isn't
  26529. // modified
  26530. if (!isHydrating) {
  26531. updateChecked(element, props);
  26532. }
  26533. // Only assign the checked attribute if it is defined. This saves
  26534. // a DOM write when controlling the checked attribute isn't needed
  26535. // (text inputs, submit/reset)
  26536. if (props.hasOwnProperty('defaultChecked')) {
  26537. node.defaultChecked = !node.defaultChecked;
  26538. node.defaultChecked = !!props.defaultChecked;
  26539. }
  26540. } else {
  26541. // When syncing the checked attribute, both the checked property and
  26542. // attribute are assigned at the same time using defaultChecked. This uses:
  26543. //
  26544. // 1. The checked React property when present
  26545. // 2. The defaultChecked React property when present
  26546. // 3. Otherwise, false
  26547. node.defaultChecked = !node.defaultChecked;
  26548. node.defaultChecked = !!node._wrapperState.initialChecked;
  26549. }
  26550. if (name !== '') {
  26551. node.name = name;
  26552. }
  26553. }
  26554. function restoreControlledState(element, props) {
  26555. var node = element;
  26556. updateWrapper(node, props);
  26557. updateNamedCousins(node, props);
  26558. }
  26559. function updateNamedCousins(rootNode, props) {
  26560. var name = props.name;
  26561. if (props.type === 'radio' && name != null) {
  26562. var queryRoot = rootNode;
  26563. while (queryRoot.parentNode) {
  26564. queryRoot = queryRoot.parentNode;
  26565. }
  26566. // If `rootNode.form` was non-null, then we could try `form.elements`,
  26567. // but that sometimes behaves strangely in IE8. We could also try using
  26568. // `form.getElementsByName`, but that will only return direct children
  26569. // and won't include inputs that use the HTML5 `form=` attribute. Since
  26570. // the input might not even be in a form. It might not even be in the
  26571. // document. Let's just use the local `querySelectorAll` to ensure we don't
  26572. // miss anything.
  26573. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  26574. for (var i = 0; i < group.length; i++) {
  26575. var otherNode = group[i];
  26576. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  26577. continue;
  26578. }
  26579. // This will throw if radio buttons rendered by different copies of React
  26580. // and the same name are rendered into the same form (same as #1939).
  26581. // That's probably okay; we don't support it just as we don't support
  26582. // mixing React radio buttons with non-React ones.
  26583. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  26584. (function () {
  26585. if (!otherProps) {
  26586. {
  26587. throw ReactError(Error('ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.'));
  26588. }
  26589. }
  26590. })();
  26591. // We need update the tracked value on the named cousin since the value
  26592. // was changed but the input saw no event or value set
  26593. updateValueIfChanged(otherNode);
  26594. // If this is a controlled radio button group, forcing the input that
  26595. // was previously checked to update will cause it to be come re-checked
  26596. // as appropriate.
  26597. updateWrapper(otherNode, otherProps);
  26598. }
  26599. }
  26600. }
  26601. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  26602. // For number inputs, the display value loses trailing decimal points. For email inputs,
  26603. // Chrome raises "The specified value <x> is not a valid email address".
  26604. //
  26605. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  26606. // when the user is inputting text
  26607. //
  26608. // https://github.com/facebook/react/issues/7253
  26609. function setDefaultValue(node, type, value) {
  26610. if (
  26611. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  26612. type !== 'number' || node.ownerDocument.activeElement !== node) {
  26613. if (value == null) {
  26614. node.defaultValue = toString(node._wrapperState.initialValue);
  26615. } else if (node.defaultValue !== toString(value)) {
  26616. node.defaultValue = toString(value);
  26617. }
  26618. }
  26619. }
  26620. var eventTypes$1 = {
  26621. change: {
  26622. phasedRegistrationNames: {
  26623. bubbled: 'onChange',
  26624. captured: 'onChangeCapture'
  26625. },
  26626. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  26627. }
  26628. };
  26629. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  26630. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  26631. event.type = 'change';
  26632. // Flag this event loop as needing state restore.
  26633. enqueueStateRestore(target);
  26634. accumulateTwoPhaseDispatches(event);
  26635. return event;
  26636. }
  26637. /**
  26638. * For IE shims
  26639. */
  26640. var activeElement = null;
  26641. var activeElementInst = null;
  26642. /**
  26643. * SECTION: handle `change` event
  26644. */
  26645. function shouldUseChangeEvent(elem) {
  26646. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  26647. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  26648. }
  26649. function manualDispatchChangeEvent(nativeEvent) {
  26650. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  26651. // If change and propertychange bubbled, we'd just bind to it like all the
  26652. // other events and have it go through ReactBrowserEventEmitter. Since it
  26653. // doesn't, we manually listen for the events and so we have to enqueue and
  26654. // process the abstract event manually.
  26655. //
  26656. // Batching is necessary here in order to ensure that all event handlers run
  26657. // before the next rerender (including event handlers attached to ancestor
  26658. // elements instead of directly on the input). Without this, controlled
  26659. // components don't work properly in conjunction with event bubbling because
  26660. // the component is rerendered and the value reverted before all the event
  26661. // handlers can run. See https://github.com/facebook/react/issues/708.
  26662. batchedUpdates(runEventInBatch, event);
  26663. }
  26664. function runEventInBatch(event) {
  26665. runEventsInBatch(event);
  26666. }
  26667. function getInstIfValueChanged(targetInst) {
  26668. var targetNode = getNodeFromInstance$1(targetInst);
  26669. if (updateValueIfChanged(targetNode)) {
  26670. return targetInst;
  26671. }
  26672. }
  26673. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  26674. if (topLevelType === TOP_CHANGE) {
  26675. return targetInst;
  26676. }
  26677. }
  26678. /**
  26679. * SECTION: handle `input` event
  26680. */
  26681. var isInputEventSupported = false;
  26682. if (canUseDOM) {
  26683. // IE9 claims to support the input event but fails to trigger it when
  26684. // deleting text, so we ignore its input events.
  26685. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  26686. }
  26687. /**
  26688. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  26689. * and override the value property so that we can distinguish user events from
  26690. * value changes in JS.
  26691. */
  26692. function startWatchingForValueChange(target, targetInst) {
  26693. activeElement = target;
  26694. activeElementInst = targetInst;
  26695. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  26696. }
  26697. /**
  26698. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  26699. * if any exists.
  26700. */
  26701. function stopWatchingForValueChange() {
  26702. if (!activeElement) {
  26703. return;
  26704. }
  26705. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  26706. activeElement = null;
  26707. activeElementInst = null;
  26708. }
  26709. /**
  26710. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  26711. * the value of the active element has changed.
  26712. */
  26713. function handlePropertyChange(nativeEvent) {
  26714. if (nativeEvent.propertyName !== 'value') {
  26715. return;
  26716. }
  26717. if (getInstIfValueChanged(activeElementInst)) {
  26718. manualDispatchChangeEvent(nativeEvent);
  26719. }
  26720. }
  26721. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  26722. if (topLevelType === TOP_FOCUS) {
  26723. // In IE9, propertychange fires for most input events but is buggy and
  26724. // doesn't fire when text is deleted, but conveniently, selectionchange
  26725. // appears to fire in all of the remaining cases so we catch those and
  26726. // forward the event if the value has changed
  26727. // In either case, we don't want to call the event handler if the value
  26728. // is changed from JS so we redefine a setter for `.value` that updates
  26729. // our activeElementValue variable, allowing us to ignore those changes
  26730. //
  26731. // stopWatching() should be a noop here but we call it just in case we
  26732. // missed a blur event somehow.
  26733. stopWatchingForValueChange();
  26734. startWatchingForValueChange(target, targetInst);
  26735. } else if (topLevelType === TOP_BLUR) {
  26736. stopWatchingForValueChange();
  26737. }
  26738. }
  26739. // For IE8 and IE9.
  26740. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  26741. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  26742. // On the selectionchange event, the target is just document which isn't
  26743. // helpful for us so just check activeElement instead.
  26744. //
  26745. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  26746. // propertychange on the first input event after setting `value` from a
  26747. // script and fires only keydown, keypress, keyup. Catching keyup usually
  26748. // gets it and catching keydown lets us fire an event for the first
  26749. // keystroke if user does a key repeat (it'll be a little delayed: right
  26750. // before the second keystroke). Other input methods (e.g., paste) seem to
  26751. // fire selectionchange normally.
  26752. return getInstIfValueChanged(activeElementInst);
  26753. }
  26754. }
  26755. /**
  26756. * SECTION: handle `click` event
  26757. */
  26758. function shouldUseClickEvent(elem) {
  26759. // Use the `click` event to detect changes to checkbox and radio inputs.
  26760. // This approach works across all browsers, whereas `change` does not fire
  26761. // until `blur` in IE8.
  26762. var nodeName = elem.nodeName;
  26763. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  26764. }
  26765. function getTargetInstForClickEvent(topLevelType, targetInst) {
  26766. if (topLevelType === TOP_CLICK) {
  26767. return getInstIfValueChanged(targetInst);
  26768. }
  26769. }
  26770. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  26771. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  26772. return getInstIfValueChanged(targetInst);
  26773. }
  26774. }
  26775. function handleControlledInputBlur(node) {
  26776. var state = node._wrapperState;
  26777. if (!state || !state.controlled || node.type !== 'number') {
  26778. return;
  26779. }
  26780. if (!disableInputAttributeSyncing) {
  26781. // If controlled, assign the value attribute to the current value on blur
  26782. setDefaultValue(node, 'number', node.value);
  26783. }
  26784. }
  26785. /**
  26786. * This plugin creates an `onChange` event that normalizes change events
  26787. * across form elements. This event fires at a time when it's possible to
  26788. * change the element's value without seeing a flicker.
  26789. *
  26790. * Supported elements are:
  26791. * - input (see `isTextInputElement`)
  26792. * - textarea
  26793. * - select
  26794. */
  26795. var ChangeEventPlugin = {
  26796. eventTypes: eventTypes$1,
  26797. _isInputEventSupported: isInputEventSupported,
  26798. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  26799. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  26800. var getTargetInstFunc = void 0,
  26801. handleEventFunc = void 0;
  26802. if (shouldUseChangeEvent(targetNode)) {
  26803. getTargetInstFunc = getTargetInstForChangeEvent;
  26804. } else if (isTextInputElement(targetNode)) {
  26805. if (isInputEventSupported) {
  26806. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  26807. } else {
  26808. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  26809. handleEventFunc = handleEventsForInputEventPolyfill;
  26810. }
  26811. } else if (shouldUseClickEvent(targetNode)) {
  26812. getTargetInstFunc = getTargetInstForClickEvent;
  26813. }
  26814. if (getTargetInstFunc) {
  26815. var inst = getTargetInstFunc(topLevelType, targetInst);
  26816. if (inst) {
  26817. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  26818. return event;
  26819. }
  26820. }
  26821. if (handleEventFunc) {
  26822. handleEventFunc(topLevelType, targetNode, targetInst);
  26823. }
  26824. // When blurring, set the value attribute for number inputs
  26825. if (topLevelType === TOP_BLUR) {
  26826. handleControlledInputBlur(targetNode);
  26827. }
  26828. }
  26829. };
  26830. /**
  26831. * Module that is injectable into `EventPluginHub`, that specifies a
  26832. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  26833. * plugins, without having to package every one of them. This is better than
  26834. * having plugins be ordered in the same order that they are injected because
  26835. * that ordering would be influenced by the packaging order.
  26836. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  26837. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  26838. */
  26839. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  26840. var SyntheticUIEvent = SyntheticEvent.extend({
  26841. view: null,
  26842. detail: null
  26843. });
  26844. var modifierKeyToProp = {
  26845. Alt: 'altKey',
  26846. Control: 'ctrlKey',
  26847. Meta: 'metaKey',
  26848. Shift: 'shiftKey'
  26849. };
  26850. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  26851. // getModifierState. If getModifierState is not supported, we map it to a set of
  26852. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  26853. /**
  26854. * Translation from modifier key to the associated property in the event.
  26855. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  26856. */
  26857. function modifierStateGetter(keyArg) {
  26858. var syntheticEvent = this;
  26859. var nativeEvent = syntheticEvent.nativeEvent;
  26860. if (nativeEvent.getModifierState) {
  26861. return nativeEvent.getModifierState(keyArg);
  26862. }
  26863. var keyProp = modifierKeyToProp[keyArg];
  26864. return keyProp ? !!nativeEvent[keyProp] : false;
  26865. }
  26866. function getEventModifierState(nativeEvent) {
  26867. return modifierStateGetter;
  26868. }
  26869. var previousScreenX = 0;
  26870. var previousScreenY = 0;
  26871. // Use flags to signal movementX/Y has already been set
  26872. var isMovementXSet = false;
  26873. var isMovementYSet = false;
  26874. /**
  26875. * @interface MouseEvent
  26876. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  26877. */
  26878. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  26879. screenX: null,
  26880. screenY: null,
  26881. clientX: null,
  26882. clientY: null,
  26883. pageX: null,
  26884. pageY: null,
  26885. ctrlKey: null,
  26886. shiftKey: null,
  26887. altKey: null,
  26888. metaKey: null,
  26889. getModifierState: getEventModifierState,
  26890. button: null,
  26891. buttons: null,
  26892. relatedTarget: function (event) {
  26893. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  26894. },
  26895. movementX: function (event) {
  26896. if ('movementX' in event) {
  26897. return event.movementX;
  26898. }
  26899. var screenX = previousScreenX;
  26900. previousScreenX = event.screenX;
  26901. if (!isMovementXSet) {
  26902. isMovementXSet = true;
  26903. return 0;
  26904. }
  26905. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  26906. },
  26907. movementY: function (event) {
  26908. if ('movementY' in event) {
  26909. return event.movementY;
  26910. }
  26911. var screenY = previousScreenY;
  26912. previousScreenY = event.screenY;
  26913. if (!isMovementYSet) {
  26914. isMovementYSet = true;
  26915. return 0;
  26916. }
  26917. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  26918. }
  26919. });
  26920. /**
  26921. * @interface PointerEvent
  26922. * @see http://www.w3.org/TR/pointerevents/
  26923. */
  26924. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  26925. pointerId: null,
  26926. width: null,
  26927. height: null,
  26928. pressure: null,
  26929. tangentialPressure: null,
  26930. tiltX: null,
  26931. tiltY: null,
  26932. twist: null,
  26933. pointerType: null,
  26934. isPrimary: null
  26935. });
  26936. var eventTypes$2 = {
  26937. mouseEnter: {
  26938. registrationName: 'onMouseEnter',
  26939. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  26940. },
  26941. mouseLeave: {
  26942. registrationName: 'onMouseLeave',
  26943. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  26944. },
  26945. pointerEnter: {
  26946. registrationName: 'onPointerEnter',
  26947. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  26948. },
  26949. pointerLeave: {
  26950. registrationName: 'onPointerLeave',
  26951. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  26952. }
  26953. };
  26954. var EnterLeaveEventPlugin = {
  26955. eventTypes: eventTypes$2,
  26956. /**
  26957. * For almost every interaction we care about, there will be both a top-level
  26958. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  26959. * we do not extract duplicate events. However, moving the mouse into the
  26960. * browser from outside will not fire a `mouseout` event. In this case, we use
  26961. * the `mouseover` top-level event.
  26962. */
  26963. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  26964. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  26965. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  26966. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  26967. return null;
  26968. }
  26969. if (!isOutEvent && !isOverEvent) {
  26970. // Must not be a mouse or pointer in or out - ignoring.
  26971. return null;
  26972. }
  26973. var win = void 0;
  26974. if (nativeEventTarget.window === nativeEventTarget) {
  26975. // `nativeEventTarget` is probably a window object.
  26976. win = nativeEventTarget;
  26977. } else {
  26978. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  26979. var doc = nativeEventTarget.ownerDocument;
  26980. if (doc) {
  26981. win = doc.defaultView || doc.parentWindow;
  26982. } else {
  26983. win = window;
  26984. }
  26985. }
  26986. var from = void 0;
  26987. var to = void 0;
  26988. if (isOutEvent) {
  26989. from = targetInst;
  26990. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  26991. to = related ? getClosestInstanceFromNode(related) : null;
  26992. } else {
  26993. // Moving to a node from outside the window.
  26994. from = null;
  26995. to = targetInst;
  26996. }
  26997. if (from === to) {
  26998. // Nothing pertains to our managed components.
  26999. return null;
  27000. }
  27001. var eventInterface = void 0,
  27002. leaveEventType = void 0,
  27003. enterEventType = void 0,
  27004. eventTypePrefix = void 0;
  27005. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  27006. eventInterface = SyntheticMouseEvent;
  27007. leaveEventType = eventTypes$2.mouseLeave;
  27008. enterEventType = eventTypes$2.mouseEnter;
  27009. eventTypePrefix = 'mouse';
  27010. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  27011. eventInterface = SyntheticPointerEvent;
  27012. leaveEventType = eventTypes$2.pointerLeave;
  27013. enterEventType = eventTypes$2.pointerEnter;
  27014. eventTypePrefix = 'pointer';
  27015. }
  27016. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  27017. var toNode = to == null ? win : getNodeFromInstance$1(to);
  27018. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  27019. leave.type = eventTypePrefix + 'leave';
  27020. leave.target = fromNode;
  27021. leave.relatedTarget = toNode;
  27022. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  27023. enter.type = eventTypePrefix + 'enter';
  27024. enter.target = toNode;
  27025. enter.relatedTarget = fromNode;
  27026. accumulateEnterLeaveDispatches(leave, enter, from, to);
  27027. return [leave, enter];
  27028. }
  27029. };
  27030. /**
  27031. * inlined Object.is polyfill to avoid requiring consumers ship their own
  27032. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  27033. */
  27034. function is(x, y) {
  27035. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  27036. ;
  27037. }
  27038. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  27039. /**
  27040. * Performs equality by iterating through keys on an object and returning false
  27041. * when any key has values which are not strictly equal between the arguments.
  27042. * Returns true when the values of all keys are strictly equal.
  27043. */
  27044. function shallowEqual(objA, objB) {
  27045. if (is(objA, objB)) {
  27046. return true;
  27047. }
  27048. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  27049. return false;
  27050. }
  27051. var keysA = Object.keys(objA);
  27052. var keysB = Object.keys(objB);
  27053. if (keysA.length !== keysB.length) {
  27054. return false;
  27055. }
  27056. // Test for A's keys different from B.
  27057. for (var i = 0; i < keysA.length; i++) {
  27058. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  27059. return false;
  27060. }
  27061. }
  27062. return true;
  27063. }
  27064. var PLUGIN_EVENT_SYSTEM = 1;
  27065. var RESPONDER_EVENT_SYSTEM = 1 << 1;
  27066. var IS_PASSIVE = 1 << 2;
  27067. var IS_ACTIVE = 1 << 3;
  27068. var PASSIVE_NOT_SUPPORTED = 1 << 4;
  27069. function createResponderListener(responder, props) {
  27070. var eventResponderListener = {
  27071. responder: responder,
  27072. props: props
  27073. };
  27074. {
  27075. Object.freeze(eventResponderListener);
  27076. }
  27077. return eventResponderListener;
  27078. }
  27079. function isFiberSuspenseAndTimedOut(fiber) {
  27080. return fiber.tag === SuspenseComponent && fiber.memoizedState !== null;
  27081. }
  27082. function getSuspenseFallbackChild(fiber) {
  27083. return fiber.child.sibling.child;
  27084. }
  27085. function createResponderInstance(responder, responderProps, responderState, target, fiber) {
  27086. return {
  27087. fiber: fiber,
  27088. props: responderProps,
  27089. responder: responder,
  27090. rootEventTypes: null,
  27091. state: responderState,
  27092. target: target
  27093. };
  27094. }
  27095. var DiscreteEvent = 0;
  27096. var UserBlockingEvent = 1;
  27097. var ContinuousEvent = 2;
  27098. // Intentionally not named imports because Rollup would use dynamic dispatch for
  27099. // CommonJS interop named imports.
  27100. var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority;
  27101. var runWithPriority$1 = Scheduler.unstable_runWithPriority;
  27102. var listenToResponderEventTypesImpl = void 0;
  27103. function setListenToResponderEventTypes(_listenToResponderEventTypesImpl) {
  27104. listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl;
  27105. }
  27106. var activeTimeouts = new Map();
  27107. var rootEventTypesToEventResponderInstances = new Map();
  27108. var ownershipChangeListeners = new Set();
  27109. var globalOwner = null;
  27110. var currentTimeStamp = 0;
  27111. var currentTimers = new Map();
  27112. var currentInstance = null;
  27113. var currentEventQueue = null;
  27114. var currentEventQueuePriority = ContinuousEvent;
  27115. var currentTimerIDCounter = 0;
  27116. var currentDocument = null;
  27117. var eventResponderContext = {
  27118. dispatchEvent: function (eventValue, eventListener, eventPriority) {
  27119. validateResponderContext();
  27120. validateEventValue(eventValue);
  27121. if (eventPriority < currentEventQueuePriority) {
  27122. currentEventQueuePriority = eventPriority;
  27123. }
  27124. currentEventQueue.push(createEventQueueItem(eventValue, eventListener));
  27125. },
  27126. isTargetWithinResponder: function (target) {
  27127. validateResponderContext();
  27128. if (target != null) {
  27129. var fiber = getClosestInstanceFromNode(target);
  27130. var responderFiber = currentInstance.fiber;
  27131. while (fiber !== null) {
  27132. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  27133. return true;
  27134. }
  27135. fiber = fiber.return;
  27136. }
  27137. }
  27138. return false;
  27139. },
  27140. isTargetWithinResponderScope: function (target) {
  27141. validateResponderContext();
  27142. var componentInstance = currentInstance;
  27143. var responder = componentInstance.responder;
  27144. if (target != null) {
  27145. var fiber = getClosestInstanceFromNode(target);
  27146. var responderFiber = currentInstance.fiber;
  27147. while (fiber !== null) {
  27148. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  27149. return true;
  27150. }
  27151. if (doesFiberHaveResponder(fiber, responder)) {
  27152. return false;
  27153. }
  27154. fiber = fiber.return;
  27155. }
  27156. }
  27157. return false;
  27158. },
  27159. isTargetWithinNode: function (childTarget, parentTarget) {
  27160. validateResponderContext();
  27161. var childFiber = getClosestInstanceFromNode(childTarget);
  27162. var parentFiber = getClosestInstanceFromNode(parentTarget);
  27163. var parentAlternateFiber = parentFiber.alternate;
  27164. var node = childFiber;
  27165. while (node !== null) {
  27166. if (node === parentFiber || node === parentAlternateFiber) {
  27167. return true;
  27168. }
  27169. node = node.return;
  27170. }
  27171. return false;
  27172. },
  27173. addRootEventTypes: function (rootEventTypes) {
  27174. validateResponderContext();
  27175. var activeDocument = getActiveDocument();
  27176. listenToResponderEventTypesImpl(rootEventTypes, activeDocument);
  27177. for (var i = 0; i < rootEventTypes.length; i++) {
  27178. var rootEventType = rootEventTypes[i];
  27179. var eventResponderInstance = currentInstance;
  27180. registerRootEventType(rootEventType, eventResponderInstance);
  27181. }
  27182. },
  27183. removeRootEventTypes: function (rootEventTypes) {
  27184. validateResponderContext();
  27185. for (var i = 0; i < rootEventTypes.length; i++) {
  27186. var rootEventType = rootEventTypes[i];
  27187. var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType);
  27188. var rootEventTypesSet = currentInstance.rootEventTypes;
  27189. if (rootEventTypesSet !== null) {
  27190. rootEventTypesSet.delete(rootEventType);
  27191. }
  27192. if (rootEventResponders !== undefined) {
  27193. rootEventResponders.delete(currentInstance);
  27194. }
  27195. }
  27196. },
  27197. hasOwnership: function () {
  27198. validateResponderContext();
  27199. return globalOwner === currentInstance;
  27200. },
  27201. requestGlobalOwnership: function () {
  27202. validateResponderContext();
  27203. if (globalOwner !== null) {
  27204. return false;
  27205. }
  27206. globalOwner = currentInstance;
  27207. triggerOwnershipListeners();
  27208. return true;
  27209. },
  27210. releaseOwnership: function () {
  27211. validateResponderContext();
  27212. return releaseOwnershipForEventResponderInstance(currentInstance);
  27213. },
  27214. setTimeout: function (func, delay) {
  27215. validateResponderContext();
  27216. if (currentTimers === null) {
  27217. currentTimers = new Map();
  27218. }
  27219. var timeout = currentTimers.get(delay);
  27220. var timerId = currentTimerIDCounter++;
  27221. if (timeout === undefined) {
  27222. var _timers = new Map();
  27223. var _id = setTimeout(function () {
  27224. processTimers(_timers, delay);
  27225. }, delay);
  27226. timeout = {
  27227. id: _id,
  27228. timers: _timers
  27229. };
  27230. currentTimers.set(delay, timeout);
  27231. }
  27232. timeout.timers.set(timerId, {
  27233. instance: currentInstance,
  27234. func: func,
  27235. id: timerId,
  27236. timeStamp: currentTimeStamp
  27237. });
  27238. activeTimeouts.set(timerId, timeout);
  27239. return timerId;
  27240. },
  27241. clearTimeout: function (timerId) {
  27242. validateResponderContext();
  27243. var timeout = activeTimeouts.get(timerId);
  27244. if (timeout !== undefined) {
  27245. var _timers2 = timeout.timers;
  27246. _timers2.delete(timerId);
  27247. if (_timers2.size === 0) {
  27248. clearTimeout(timeout.id);
  27249. }
  27250. }
  27251. },
  27252. getFocusableElementsInScope: function (deep) {
  27253. validateResponderContext();
  27254. var focusableElements = [];
  27255. var eventResponderInstance = currentInstance;
  27256. var currentResponder = eventResponderInstance.responder;
  27257. var focusScopeFiber = eventResponderInstance.fiber;
  27258. if (deep) {
  27259. var deepNode = focusScopeFiber.return;
  27260. while (deepNode !== null) {
  27261. if (doesFiberHaveResponder(deepNode, currentResponder)) {
  27262. focusScopeFiber = deepNode;
  27263. }
  27264. deepNode = deepNode.return;
  27265. }
  27266. }
  27267. var child = focusScopeFiber.child;
  27268. if (child !== null) {
  27269. collectFocusableElements(child, focusableElements);
  27270. }
  27271. return focusableElements;
  27272. },
  27273. getActiveDocument: getActiveDocument,
  27274. objectAssign: _assign,
  27275. getTimeStamp: function () {
  27276. validateResponderContext();
  27277. return currentTimeStamp;
  27278. },
  27279. isTargetWithinHostComponent: function (target, elementType) {
  27280. validateResponderContext();
  27281. var fiber = getClosestInstanceFromNode(target);
  27282. while (fiber !== null) {
  27283. if (fiber.tag === HostComponent && fiber.type === elementType) {
  27284. return true;
  27285. }
  27286. fiber = fiber.return;
  27287. }
  27288. return false;
  27289. },
  27290. enqueueStateRestore: enqueueStateRestore
  27291. };
  27292. function validateEventValue(eventValue) {
  27293. if (typeof eventValue === 'object' && eventValue !== null) {
  27294. var target = eventValue.target,
  27295. type = eventValue.type,
  27296. _timeStamp = eventValue.timeStamp;
  27297. if (target == null || type == null || _timeStamp == null) {
  27298. throw new Error('context.dispatchEvent: "target", "timeStamp", and "type" fields on event object are required.');
  27299. }
  27300. var showWarning = function (name) {
  27301. {
  27302. warning$1(false, '%s is not available on event objects created from event responder modules (React Flare). ' + 'Try wrapping in a conditional, i.e. `if (event.type !== "press") { event.%s }`', name, name);
  27303. }
  27304. };
  27305. eventValue.preventDefault = function () {
  27306. {
  27307. showWarning('preventDefault()');
  27308. }
  27309. };
  27310. eventValue.stopPropagation = function () {
  27311. {
  27312. showWarning('stopPropagation()');
  27313. }
  27314. };
  27315. eventValue.isDefaultPrevented = function () {
  27316. {
  27317. showWarning('isDefaultPrevented()');
  27318. }
  27319. };
  27320. eventValue.isPropagationStopped = function () {
  27321. {
  27322. showWarning('isPropagationStopped()');
  27323. }
  27324. };
  27325. // $FlowFixMe: we don't need value, Flow thinks we do
  27326. Object.defineProperty(eventValue, 'nativeEvent', {
  27327. get: function () {
  27328. {
  27329. showWarning('nativeEvent');
  27330. }
  27331. }
  27332. });
  27333. }
  27334. }
  27335. function collectFocusableElements(node, focusableElements) {
  27336. if (isFiberSuspenseAndTimedOut(node)) {
  27337. var fallbackChild = getSuspenseFallbackChild(node);
  27338. if (fallbackChild !== null) {
  27339. collectFocusableElements(fallbackChild, focusableElements);
  27340. }
  27341. } else {
  27342. if (isFiberHostComponentFocusable(node)) {
  27343. focusableElements.push(node.stateNode);
  27344. } else {
  27345. var child = node.child;
  27346. if (child !== null) {
  27347. collectFocusableElements(child, focusableElements);
  27348. }
  27349. }
  27350. }
  27351. var sibling = node.sibling;
  27352. if (sibling !== null) {
  27353. collectFocusableElements(sibling, focusableElements);
  27354. }
  27355. }
  27356. function createEventQueueItem(value, listener) {
  27357. return {
  27358. value: value,
  27359. listener: listener
  27360. };
  27361. }
  27362. function doesFiberHaveResponder(fiber, responder) {
  27363. if (fiber.tag === HostComponent) {
  27364. var dependencies = fiber.dependencies;
  27365. if (dependencies !== null) {
  27366. var respondersMap = dependencies.responders;
  27367. if (respondersMap !== null && respondersMap.has(responder)) {
  27368. return true;
  27369. }
  27370. }
  27371. }
  27372. return false;
  27373. }
  27374. function getActiveDocument() {
  27375. return currentDocument;
  27376. }
  27377. function releaseOwnershipForEventResponderInstance(eventResponderInstance) {
  27378. if (globalOwner === eventResponderInstance) {
  27379. globalOwner = null;
  27380. triggerOwnershipListeners();
  27381. return true;
  27382. }
  27383. return false;
  27384. }
  27385. function isFiberHostComponentFocusable(fiber) {
  27386. if (fiber.tag !== HostComponent) {
  27387. return false;
  27388. }
  27389. var type = fiber.type,
  27390. memoizedProps = fiber.memoizedProps;
  27391. if (memoizedProps.tabIndex === -1 || memoizedProps.disabled) {
  27392. return false;
  27393. }
  27394. if (memoizedProps.tabIndex === 0 || memoizedProps.contentEditable === true) {
  27395. return true;
  27396. }
  27397. if (type === 'a' || type === 'area') {
  27398. return !!memoizedProps.href && memoizedProps.rel !== 'ignore';
  27399. }
  27400. if (type === 'input') {
  27401. return memoizedProps.type !== 'hidden' && memoizedProps.type !== 'file';
  27402. }
  27403. return type === 'button' || type === 'textarea' || type === 'object' || type === 'select' || type === 'iframe' || type === 'embed';
  27404. }
  27405. function processTimers(timers, delay) {
  27406. var timersArr = Array.from(timers.values());
  27407. currentEventQueuePriority = ContinuousEvent;
  27408. try {
  27409. for (var i = 0; i < timersArr.length; i++) {
  27410. var _timersArr$i = timersArr[i],
  27411. _instance = _timersArr$i.instance,
  27412. _func = _timersArr$i.func,
  27413. _id2 = _timersArr$i.id,
  27414. _timeStamp2 = _timersArr$i.timeStamp;
  27415. currentInstance = _instance;
  27416. currentEventQueue = [];
  27417. currentTimeStamp = _timeStamp2 + delay;
  27418. try {
  27419. _func();
  27420. } finally {
  27421. activeTimeouts.delete(_id2);
  27422. }
  27423. }
  27424. processEventQueue();
  27425. } finally {
  27426. currentTimers = null;
  27427. currentInstance = null;
  27428. currentEventQueue = null;
  27429. currentTimeStamp = 0;
  27430. }
  27431. }
  27432. function createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) {
  27433. var _ref = nativeEvent,
  27434. pointerType = _ref.pointerType;
  27435. var eventPointerType = '';
  27436. var pointerId = null;
  27437. if (pointerType !== undefined) {
  27438. eventPointerType = pointerType;
  27439. pointerId = nativeEvent.pointerId;
  27440. } else if (nativeEvent.key !== undefined) {
  27441. eventPointerType = 'keyboard';
  27442. } else if (nativeEvent.button !== undefined) {
  27443. eventPointerType = 'mouse';
  27444. } else if (nativeEvent.changedTouches !== undefined) {
  27445. eventPointerType = 'touch';
  27446. }
  27447. return {
  27448. nativeEvent: nativeEvent,
  27449. passive: passive,
  27450. passiveSupported: passiveSupported,
  27451. pointerId: pointerId,
  27452. pointerType: eventPointerType,
  27453. responderTarget: null,
  27454. target: nativeEventTarget,
  27455. type: topLevelType
  27456. };
  27457. }
  27458. function processEvents(eventQueue) {
  27459. for (var i = 0, length = eventQueue.length; i < length; i++) {
  27460. var _eventQueue$i = eventQueue[i],
  27461. _value = _eventQueue$i.value,
  27462. _listener = _eventQueue$i.listener;
  27463. var type = typeof _value === 'object' && _value !== null ? _value.type : '';
  27464. invokeGuardedCallbackAndCatchFirstError(type, _listener, undefined, _value);
  27465. }
  27466. }
  27467. function processEventQueue() {
  27468. var eventQueue = currentEventQueue;
  27469. if (eventQueue.length === 0) {
  27470. return;
  27471. }
  27472. switch (currentEventQueuePriority) {
  27473. case DiscreteEvent:
  27474. {
  27475. flushDiscreteUpdatesIfNeeded(currentTimeStamp);
  27476. discreteUpdates(function () {
  27477. batchedEventUpdates(processEvents, eventQueue);
  27478. });
  27479. break;
  27480. }
  27481. case UserBlockingEvent:
  27482. {
  27483. if (enableUserBlockingEvents) {
  27484. runWithPriority$1(UserBlockingPriority$1, batchedEventUpdates.bind(null, processEvents, eventQueue));
  27485. } else {
  27486. batchedEventUpdates(processEvents, eventQueue);
  27487. }
  27488. break;
  27489. }
  27490. case ContinuousEvent:
  27491. {
  27492. batchedEventUpdates(processEvents, eventQueue);
  27493. break;
  27494. }
  27495. }
  27496. }
  27497. function responderEventTypesContainType(eventTypes, type) {
  27498. for (var i = 0, len = eventTypes.length; i < len; i++) {
  27499. if (eventTypes[i] === type) {
  27500. return true;
  27501. }
  27502. }
  27503. return false;
  27504. }
  27505. function validateResponderTargetEventTypes(eventType, responder) {
  27506. var targetEventTypes = responder.targetEventTypes;
  27507. // Validate the target event type exists on the responder
  27508. if (targetEventTypes !== null) {
  27509. return responderEventTypesContainType(targetEventTypes, eventType);
  27510. }
  27511. return false;
  27512. }
  27513. function validateOwnership(responderInstance) {
  27514. return globalOwner === null || globalOwner === responderInstance;
  27515. }
  27516. function traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  27517. var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0;
  27518. var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0;
  27519. var isPassive = isPassiveEvent || !isPassiveSupported;
  27520. var eventType = isPassive ? topLevelType : topLevelType + '_active';
  27521. // Trigger event responders in this order:
  27522. // - Bubble target responder phase
  27523. // - Root responder phase
  27524. var visitedResponders = new Set();
  27525. var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported);
  27526. var node = targetFiber;
  27527. while (node !== null) {
  27528. var _node = node,
  27529. dependencies = _node.dependencies,
  27530. tag = _node.tag;
  27531. if (tag === HostComponent && dependencies !== null) {
  27532. var respondersMap = dependencies.responders;
  27533. if (respondersMap !== null) {
  27534. var responderInstances = Array.from(respondersMap.values());
  27535. for (var i = 0, length = responderInstances.length; i < length; i++) {
  27536. var responderInstance = responderInstances[i];
  27537. if (validateOwnership(responderInstance)) {
  27538. var props = responderInstance.props,
  27539. responder = responderInstance.responder,
  27540. state = responderInstance.state,
  27541. target = responderInstance.target;
  27542. if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder)) {
  27543. visitedResponders.add(responder);
  27544. var onEvent = responder.onEvent;
  27545. if (onEvent !== null) {
  27546. currentInstance = responderInstance;
  27547. responderEvent.responderTarget = target;
  27548. onEvent(responderEvent, eventResponderContext, props, state);
  27549. }
  27550. }
  27551. }
  27552. }
  27553. }
  27554. }
  27555. node = node.return;
  27556. }
  27557. // Root phase
  27558. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType);
  27559. if (rootEventResponderInstances !== undefined) {
  27560. var _responderInstances = Array.from(rootEventResponderInstances);
  27561. for (var _i = 0; _i < _responderInstances.length; _i++) {
  27562. var _responderInstance = _responderInstances[_i];
  27563. if (!validateOwnership(_responderInstance)) {
  27564. continue;
  27565. }
  27566. var _props = _responderInstance.props,
  27567. _responder = _responderInstance.responder,
  27568. _state = _responderInstance.state,
  27569. _target = _responderInstance.target;
  27570. var onRootEvent = _responder.onRootEvent;
  27571. if (onRootEvent !== null) {
  27572. currentInstance = _responderInstance;
  27573. responderEvent.responderTarget = _target;
  27574. onRootEvent(responderEvent, eventResponderContext, _props, _state);
  27575. }
  27576. }
  27577. }
  27578. }
  27579. function triggerOwnershipListeners() {
  27580. var listeningInstances = Array.from(ownershipChangeListeners);
  27581. var previousInstance = currentInstance;
  27582. var previousEventQueuePriority = currentEventQueuePriority;
  27583. var previousEventQueue = currentEventQueue;
  27584. try {
  27585. for (var i = 0; i < listeningInstances.length; i++) {
  27586. var _instance2 = listeningInstances[i];
  27587. var props = _instance2.props,
  27588. responder = _instance2.responder,
  27589. state = _instance2.state;
  27590. currentInstance = _instance2;
  27591. currentEventQueuePriority = ContinuousEvent;
  27592. currentEventQueue = [];
  27593. var onOwnershipChange = responder.onOwnershipChange;
  27594. if (onOwnershipChange !== null) {
  27595. onOwnershipChange(eventResponderContext, props, state);
  27596. }
  27597. }
  27598. processEventQueue();
  27599. } finally {
  27600. currentInstance = previousInstance;
  27601. currentEventQueue = previousEventQueue;
  27602. currentEventQueuePriority = previousEventQueuePriority;
  27603. }
  27604. }
  27605. function mountEventResponder(responder, responderInstance, props, state) {
  27606. if (responder.onOwnershipChange !== null) {
  27607. ownershipChangeListeners.add(responderInstance);
  27608. }
  27609. var onMount = responder.onMount;
  27610. if (onMount !== null) {
  27611. currentEventQueuePriority = ContinuousEvent;
  27612. currentInstance = responderInstance;
  27613. currentEventQueue = [];
  27614. try {
  27615. onMount(eventResponderContext, props, state);
  27616. processEventQueue();
  27617. } finally {
  27618. currentEventQueue = null;
  27619. currentInstance = null;
  27620. currentTimers = null;
  27621. }
  27622. }
  27623. }
  27624. function unmountEventResponder(responderInstance) {
  27625. var responder = responderInstance.responder;
  27626. var onUnmount = responder.onUnmount;
  27627. if (onUnmount !== null) {
  27628. var props = responderInstance.props,
  27629. state = responderInstance.state;
  27630. currentEventQueue = [];
  27631. currentEventQueuePriority = ContinuousEvent;
  27632. currentInstance = responderInstance;
  27633. try {
  27634. onUnmount(eventResponderContext, props, state);
  27635. processEventQueue();
  27636. } finally {
  27637. currentEventQueue = null;
  27638. currentInstance = null;
  27639. currentTimers = null;
  27640. }
  27641. }
  27642. releaseOwnershipForEventResponderInstance(responderInstance);
  27643. if (responder.onOwnershipChange !== null) {
  27644. ownershipChangeListeners.delete(responderInstance);
  27645. }
  27646. var rootEventTypesSet = responderInstance.rootEventTypes;
  27647. if (rootEventTypesSet !== null) {
  27648. var rootEventTypes = Array.from(rootEventTypesSet);
  27649. for (var i = 0; i < rootEventTypes.length; i++) {
  27650. var topLevelEventType = rootEventTypes[i];
  27651. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType);
  27652. if (rootEventResponderInstances !== undefined) {
  27653. rootEventResponderInstances.delete(responderInstance);
  27654. }
  27655. }
  27656. }
  27657. }
  27658. function validateResponderContext() {
  27659. (function () {
  27660. if (!(currentInstance !== null)) {
  27661. {
  27662. throw ReactError(Error('An event responder context was used outside of an event cycle. Use context.setTimeout() to use asynchronous responder context outside of event cycle .'));
  27663. }
  27664. }
  27665. })();
  27666. }
  27667. function dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  27668. if (enableFlareAPI) {
  27669. var previousEventQueue = currentEventQueue;
  27670. var previousInstance = currentInstance;
  27671. var previousTimers = currentTimers;
  27672. var previousTimeStamp = currentTimeStamp;
  27673. var previousDocument = currentDocument;
  27674. var previousEventQueuePriority = currentEventQueuePriority;
  27675. currentTimers = null;
  27676. currentEventQueue = [];
  27677. currentEventQueuePriority = ContinuousEvent;
  27678. // nodeType 9 is DOCUMENT_NODE
  27679. currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument;
  27680. // We might want to control timeStamp another way here
  27681. currentTimeStamp = nativeEvent.timeStamp;
  27682. try {
  27683. traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags);
  27684. processEventQueue();
  27685. } finally {
  27686. currentTimers = previousTimers;
  27687. currentInstance = previousInstance;
  27688. currentEventQueue = previousEventQueue;
  27689. currentTimeStamp = previousTimeStamp;
  27690. currentDocument = previousDocument;
  27691. currentEventQueuePriority = previousEventQueuePriority;
  27692. }
  27693. }
  27694. }
  27695. function addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) {
  27696. for (var i = 0; i < rootEventTypes.length; i++) {
  27697. var rootEventType = rootEventTypes[i];
  27698. registerRootEventType(rootEventType, responderInstance);
  27699. }
  27700. }
  27701. function registerRootEventType(rootEventType, eventResponderInstance) {
  27702. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType);
  27703. if (rootEventResponderInstances === undefined) {
  27704. rootEventResponderInstances = new Set();
  27705. rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances);
  27706. }
  27707. var rootEventTypesSet = eventResponderInstance.rootEventTypes;
  27708. if (rootEventTypesSet === null) {
  27709. rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set();
  27710. }
  27711. (function () {
  27712. if (!!rootEventTypesSet.has(rootEventType)) {
  27713. {
  27714. throw ReactError(Error('addRootEventTypes() found a duplicate root event type of "' + rootEventType + '". This might be because the event type exists in the event responder "rootEventTypes" array or because of a previous addRootEventTypes() using this root event type.'));
  27715. }
  27716. }
  27717. })();
  27718. rootEventTypesSet.add(rootEventType);
  27719. rootEventResponderInstances.add(eventResponderInstance);
  27720. }
  27721. /**
  27722. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  27723. * instance (key) and the internal representation (value). This allows public
  27724. * methods to accept the user facing instance as an argument and map them back
  27725. * to internal methods.
  27726. *
  27727. * Note that this module is currently shared and assumed to be stateless.
  27728. * If this becomes an actual Map, that will break.
  27729. */
  27730. /**
  27731. * This API should be called `delete` but we'd have to make sure to always
  27732. * transform these to strings for IE support. When this transform is fully
  27733. * supported we can rename it.
  27734. */
  27735. function get(key) {
  27736. return key._reactInternalFiber;
  27737. }
  27738. function has(key) {
  27739. return key._reactInternalFiber !== undefined;
  27740. }
  27741. function set(key, value) {
  27742. key._reactInternalFiber = value;
  27743. }
  27744. // Don't change these two values. They're used by React Dev Tools.
  27745. var NoEffect = /* */0;
  27746. var PerformedWork = /* */1;
  27747. // You can change the rest (and add more).
  27748. var Placement = /* */2;
  27749. var Update = /* */4;
  27750. var PlacementAndUpdate = /* */6;
  27751. var Deletion = /* */8;
  27752. var ContentReset = /* */16;
  27753. var Callback = /* */32;
  27754. var DidCapture = /* */64;
  27755. var Ref = /* */128;
  27756. var Snapshot = /* */256;
  27757. var Passive = /* */512;
  27758. // Passive & Update & Callback & Ref & Snapshot
  27759. var LifecycleEffectMask = /* */932;
  27760. // Union of all host effects
  27761. var HostEffectMask = /* */1023;
  27762. var Incomplete = /* */1024;
  27763. var ShouldCapture = /* */2048;
  27764. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  27765. var MOUNTING = 1;
  27766. var MOUNTED = 2;
  27767. var UNMOUNTED = 3;
  27768. function isFiberMountedImpl(fiber) {
  27769. var node = fiber;
  27770. if (!fiber.alternate) {
  27771. // If there is no alternate, this might be a new tree that isn't inserted
  27772. // yet. If it is, then it will have a pending insertion effect on it.
  27773. if ((node.effectTag & Placement) !== NoEffect) {
  27774. return MOUNTING;
  27775. }
  27776. while (node.return) {
  27777. node = node.return;
  27778. if ((node.effectTag & Placement) !== NoEffect) {
  27779. return MOUNTING;
  27780. }
  27781. }
  27782. } else {
  27783. while (node.return) {
  27784. node = node.return;
  27785. }
  27786. }
  27787. if (node.tag === HostRoot) {
  27788. // TODO: Check if this was a nested HostRoot when used with
  27789. // renderContainerIntoSubtree.
  27790. return MOUNTED;
  27791. }
  27792. // If we didn't hit the root, that means that we're in an disconnected tree
  27793. // that has been unmounted.
  27794. return UNMOUNTED;
  27795. }
  27796. function isFiberMounted(fiber) {
  27797. return isFiberMountedImpl(fiber) === MOUNTED;
  27798. }
  27799. function isMounted(component) {
  27800. {
  27801. var owner = ReactCurrentOwner$1.current;
  27802. if (owner !== null && owner.tag === ClassComponent) {
  27803. var ownerFiber = owner;
  27804. var instance = ownerFiber.stateNode;
  27805. !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;
  27806. instance._warnedAboutRefsInRender = true;
  27807. }
  27808. }
  27809. var fiber = get(component);
  27810. if (!fiber) {
  27811. return false;
  27812. }
  27813. return isFiberMountedImpl(fiber) === MOUNTED;
  27814. }
  27815. function assertIsMounted(fiber) {
  27816. (function () {
  27817. if (!(isFiberMountedImpl(fiber) === MOUNTED)) {
  27818. {
  27819. throw ReactError(Error('Unable to find node on an unmounted component.'));
  27820. }
  27821. }
  27822. })();
  27823. }
  27824. function findCurrentFiberUsingSlowPath(fiber) {
  27825. var alternate = fiber.alternate;
  27826. if (!alternate) {
  27827. // If there is no alternate, then we only need to check if it is mounted.
  27828. var state = isFiberMountedImpl(fiber);
  27829. (function () {
  27830. if (!(state !== UNMOUNTED)) {
  27831. {
  27832. throw ReactError(Error('Unable to find node on an unmounted component.'));
  27833. }
  27834. }
  27835. })();
  27836. if (state === MOUNTING) {
  27837. return null;
  27838. }
  27839. return fiber;
  27840. }
  27841. // If we have two possible branches, we'll walk backwards up to the root
  27842. // to see what path the root points to. On the way we may hit one of the
  27843. // special cases and we'll deal with them.
  27844. var a = fiber;
  27845. var b = alternate;
  27846. while (true) {
  27847. var parentA = a.return;
  27848. if (parentA === null) {
  27849. // We're at the root.
  27850. break;
  27851. }
  27852. var parentB = parentA.alternate;
  27853. if (parentB === null) {
  27854. // There is no alternate. This is an unusual case. Currently, it only
  27855. // happens when a Suspense component is hidden. An extra fragment fiber
  27856. // is inserted in between the Suspense fiber and its children. Skip
  27857. // over this extra fragment fiber and proceed to the next parent.
  27858. var nextParent = parentA.return;
  27859. if (nextParent !== null) {
  27860. a = b = nextParent;
  27861. continue;
  27862. }
  27863. // If there's no parent, we're at the root.
  27864. break;
  27865. }
  27866. // If both copies of the parent fiber point to the same child, we can
  27867. // assume that the child is current. This happens when we bailout on low
  27868. // priority: the bailed out fiber's child reuses the current child.
  27869. if (parentA.child === parentB.child) {
  27870. var child = parentA.child;
  27871. while (child) {
  27872. if (child === a) {
  27873. // We've determined that A is the current branch.
  27874. assertIsMounted(parentA);
  27875. return fiber;
  27876. }
  27877. if (child === b) {
  27878. // We've determined that B is the current branch.
  27879. assertIsMounted(parentA);
  27880. return alternate;
  27881. }
  27882. child = child.sibling;
  27883. }
  27884. // We should never have an alternate for any mounting node. So the only
  27885. // way this could possibly happen is if this was unmounted, if at all.
  27886. (function () {
  27887. {
  27888. {
  27889. throw ReactError(Error('Unable to find node on an unmounted component.'));
  27890. }
  27891. }
  27892. })();
  27893. }
  27894. if (a.return !== b.return) {
  27895. // The return pointer of A and the return pointer of B point to different
  27896. // fibers. We assume that return pointers never criss-cross, so A must
  27897. // belong to the child set of A.return, and B must belong to the child
  27898. // set of B.return.
  27899. a = parentA;
  27900. b = parentB;
  27901. } else {
  27902. // The return pointers point to the same fiber. We'll have to use the
  27903. // default, slow path: scan the child sets of each parent alternate to see
  27904. // which child belongs to which set.
  27905. //
  27906. // Search parent A's child set
  27907. var didFindChild = false;
  27908. var _child = parentA.child;
  27909. while (_child) {
  27910. if (_child === a) {
  27911. didFindChild = true;
  27912. a = parentA;
  27913. b = parentB;
  27914. break;
  27915. }
  27916. if (_child === b) {
  27917. didFindChild = true;
  27918. b = parentA;
  27919. a = parentB;
  27920. break;
  27921. }
  27922. _child = _child.sibling;
  27923. }
  27924. if (!didFindChild) {
  27925. // Search parent B's child set
  27926. _child = parentB.child;
  27927. while (_child) {
  27928. if (_child === a) {
  27929. didFindChild = true;
  27930. a = parentB;
  27931. b = parentA;
  27932. break;
  27933. }
  27934. if (_child === b) {
  27935. didFindChild = true;
  27936. b = parentB;
  27937. a = parentA;
  27938. break;
  27939. }
  27940. _child = _child.sibling;
  27941. }
  27942. (function () {
  27943. if (!didFindChild) {
  27944. {
  27945. throw ReactError(Error('Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.'));
  27946. }
  27947. }
  27948. })();
  27949. }
  27950. }
  27951. (function () {
  27952. if (!(a.alternate === b)) {
  27953. {
  27954. throw ReactError(Error('Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.'));
  27955. }
  27956. }
  27957. })();
  27958. }
  27959. // If the root is not a host container, we're in a disconnected tree. I.e.
  27960. // unmounted.
  27961. (function () {
  27962. if (!(a.tag === HostRoot)) {
  27963. {
  27964. throw ReactError(Error('Unable to find node on an unmounted component.'));
  27965. }
  27966. }
  27967. })();
  27968. if (a.stateNode.current === a) {
  27969. // We've determined that A is the current branch.
  27970. return fiber;
  27971. }
  27972. // Otherwise B has to be current branch.
  27973. return alternate;
  27974. }
  27975. function findCurrentHostFiber(parent) {
  27976. var currentParent = findCurrentFiberUsingSlowPath(parent);
  27977. if (!currentParent) {
  27978. return null;
  27979. }
  27980. // Next we'll drill down this component to find the first HostComponent/Text.
  27981. var node = currentParent;
  27982. while (true) {
  27983. if (node.tag === HostComponent || node.tag === HostText) {
  27984. return node;
  27985. } else if (node.child) {
  27986. node.child.return = node;
  27987. node = node.child;
  27988. continue;
  27989. }
  27990. if (node === currentParent) {
  27991. return null;
  27992. }
  27993. while (!node.sibling) {
  27994. if (!node.return || node.return === currentParent) {
  27995. return null;
  27996. }
  27997. node = node.return;
  27998. }
  27999. node.sibling.return = node.return;
  28000. node = node.sibling;
  28001. }
  28002. // Flow needs the return null here, but ESLint complains about it.
  28003. // eslint-disable-next-line no-unreachable
  28004. return null;
  28005. }
  28006. function findCurrentHostFiberWithNoPortals(parent) {
  28007. var currentParent = findCurrentFiberUsingSlowPath(parent);
  28008. if (!currentParent) {
  28009. return null;
  28010. }
  28011. // Next we'll drill down this component to find the first HostComponent/Text.
  28012. var node = currentParent;
  28013. while (true) {
  28014. if (node.tag === HostComponent || node.tag === HostText || node.tag === FundamentalComponent) {
  28015. return node;
  28016. } else if (node.child && node.tag !== HostPortal) {
  28017. node.child.return = node;
  28018. node = node.child;
  28019. continue;
  28020. }
  28021. if (node === currentParent) {
  28022. return null;
  28023. }
  28024. while (!node.sibling) {
  28025. if (!node.return || node.return === currentParent) {
  28026. return null;
  28027. }
  28028. node = node.return;
  28029. }
  28030. node.sibling.return = node.return;
  28031. node = node.sibling;
  28032. }
  28033. // Flow needs the return null here, but ESLint complains about it.
  28034. // eslint-disable-next-line no-unreachable
  28035. return null;
  28036. }
  28037. function addEventBubbleListener(element, eventType, listener) {
  28038. element.addEventListener(eventType, listener, false);
  28039. }
  28040. function addEventCaptureListener(element, eventType, listener) {
  28041. element.addEventListener(eventType, listener, true);
  28042. }
  28043. function addEventCaptureListenerWithPassiveFlag(element, eventType, listener, passive) {
  28044. element.addEventListener(eventType, listener, {
  28045. capture: true,
  28046. passive: passive
  28047. });
  28048. }
  28049. /**
  28050. * @interface Event
  28051. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  28052. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  28053. */
  28054. var SyntheticAnimationEvent = SyntheticEvent.extend({
  28055. animationName: null,
  28056. elapsedTime: null,
  28057. pseudoElement: null
  28058. });
  28059. /**
  28060. * @interface Event
  28061. * @see http://www.w3.org/TR/clipboard-apis/
  28062. */
  28063. var SyntheticClipboardEvent = SyntheticEvent.extend({
  28064. clipboardData: function (event) {
  28065. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  28066. }
  28067. });
  28068. /**
  28069. * @interface FocusEvent
  28070. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  28071. */
  28072. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  28073. relatedTarget: null
  28074. });
  28075. /**
  28076. * `charCode` represents the actual "character code" and is safe to use with
  28077. * `String.fromCharCode`. As such, only keys that correspond to printable
  28078. * characters produce a valid `charCode`, the only exception to this is Enter.
  28079. * The Tab-key is considered non-printable and does not have a `charCode`,
  28080. * presumably because it does not produce a tab-character in browsers.
  28081. *
  28082. * @param {object} nativeEvent Native browser event.
  28083. * @return {number} Normalized `charCode` property.
  28084. */
  28085. function getEventCharCode(nativeEvent) {
  28086. var charCode = void 0;
  28087. var keyCode = nativeEvent.keyCode;
  28088. if ('charCode' in nativeEvent) {
  28089. charCode = nativeEvent.charCode;
  28090. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  28091. if (charCode === 0 && keyCode === 13) {
  28092. charCode = 13;
  28093. }
  28094. } else {
  28095. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  28096. charCode = keyCode;
  28097. }
  28098. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  28099. // report Enter as charCode 10 when ctrl is pressed.
  28100. if (charCode === 10) {
  28101. charCode = 13;
  28102. }
  28103. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  28104. // Must not discard the (non-)printable Enter-key.
  28105. if (charCode >= 32 || charCode === 13) {
  28106. return charCode;
  28107. }
  28108. return 0;
  28109. }
  28110. /**
  28111. * Normalization of deprecated HTML5 `key` values
  28112. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  28113. */
  28114. var normalizeKey = {
  28115. Esc: 'Escape',
  28116. Spacebar: ' ',
  28117. Left: 'ArrowLeft',
  28118. Up: 'ArrowUp',
  28119. Right: 'ArrowRight',
  28120. Down: 'ArrowDown',
  28121. Del: 'Delete',
  28122. Win: 'OS',
  28123. Menu: 'ContextMenu',
  28124. Apps: 'ContextMenu',
  28125. Scroll: 'ScrollLock',
  28126. MozPrintableKey: 'Unidentified'
  28127. };
  28128. /**
  28129. * Translation from legacy `keyCode` to HTML5 `key`
  28130. * Only special keys supported, all others depend on keyboard layout or browser
  28131. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  28132. */
  28133. var translateToKey = {
  28134. '8': 'Backspace',
  28135. '9': 'Tab',
  28136. '12': 'Clear',
  28137. '13': 'Enter',
  28138. '16': 'Shift',
  28139. '17': 'Control',
  28140. '18': 'Alt',
  28141. '19': 'Pause',
  28142. '20': 'CapsLock',
  28143. '27': 'Escape',
  28144. '32': ' ',
  28145. '33': 'PageUp',
  28146. '34': 'PageDown',
  28147. '35': 'End',
  28148. '36': 'Home',
  28149. '37': 'ArrowLeft',
  28150. '38': 'ArrowUp',
  28151. '39': 'ArrowRight',
  28152. '40': 'ArrowDown',
  28153. '45': 'Insert',
  28154. '46': 'Delete',
  28155. '112': 'F1',
  28156. '113': 'F2',
  28157. '114': 'F3',
  28158. '115': 'F4',
  28159. '116': 'F5',
  28160. '117': 'F6',
  28161. '118': 'F7',
  28162. '119': 'F8',
  28163. '120': 'F9',
  28164. '121': 'F10',
  28165. '122': 'F11',
  28166. '123': 'F12',
  28167. '144': 'NumLock',
  28168. '145': 'ScrollLock',
  28169. '224': 'Meta'
  28170. };
  28171. /**
  28172. * @param {object} nativeEvent Native browser event.
  28173. * @return {string} Normalized `key` property.
  28174. */
  28175. function getEventKey(nativeEvent) {
  28176. if (nativeEvent.key) {
  28177. // Normalize inconsistent values reported by browsers due to
  28178. // implementations of a working draft specification.
  28179. // FireFox implements `key` but returns `MozPrintableKey` for all
  28180. // printable characters (normalized to `Unidentified`), ignore it.
  28181. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  28182. if (key !== 'Unidentified') {
  28183. return key;
  28184. }
  28185. }
  28186. // Browser does not implement `key`, polyfill as much of it as we can.
  28187. if (nativeEvent.type === 'keypress') {
  28188. var charCode = getEventCharCode(nativeEvent);
  28189. // The enter-key is technically both printable and non-printable and can
  28190. // thus be captured by `keypress`, no other non-printable key should.
  28191. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  28192. }
  28193. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  28194. // While user keyboard layout determines the actual meaning of each
  28195. // `keyCode` value, almost all function keys have a universal value.
  28196. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  28197. }
  28198. return '';
  28199. }
  28200. /**
  28201. * @interface KeyboardEvent
  28202. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  28203. */
  28204. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  28205. key: getEventKey,
  28206. location: null,
  28207. ctrlKey: null,
  28208. shiftKey: null,
  28209. altKey: null,
  28210. metaKey: null,
  28211. repeat: null,
  28212. locale: null,
  28213. getModifierState: getEventModifierState,
  28214. // Legacy Interface
  28215. charCode: function (event) {
  28216. // `charCode` is the result of a KeyPress event and represents the value of
  28217. // the actual printable character.
  28218. // KeyPress is deprecated, but its replacement is not yet final and not
  28219. // implemented in any major browser. Only KeyPress has charCode.
  28220. if (event.type === 'keypress') {
  28221. return getEventCharCode(event);
  28222. }
  28223. return 0;
  28224. },
  28225. keyCode: function (event) {
  28226. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  28227. // physical keyboard key.
  28228. // The actual meaning of the value depends on the users' keyboard layout
  28229. // which cannot be detected. Assuming that it is a US keyboard layout
  28230. // provides a surprisingly accurate mapping for US and European users.
  28231. // Due to this, it is left to the user to implement at this time.
  28232. if (event.type === 'keydown' || event.type === 'keyup') {
  28233. return event.keyCode;
  28234. }
  28235. return 0;
  28236. },
  28237. which: function (event) {
  28238. // `which` is an alias for either `keyCode` or `charCode` depending on the
  28239. // type of the event.
  28240. if (event.type === 'keypress') {
  28241. return getEventCharCode(event);
  28242. }
  28243. if (event.type === 'keydown' || event.type === 'keyup') {
  28244. return event.keyCode;
  28245. }
  28246. return 0;
  28247. }
  28248. });
  28249. /**
  28250. * @interface DragEvent
  28251. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  28252. */
  28253. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  28254. dataTransfer: null
  28255. });
  28256. /**
  28257. * @interface TouchEvent
  28258. * @see http://www.w3.org/TR/touch-events/
  28259. */
  28260. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  28261. touches: null,
  28262. targetTouches: null,
  28263. changedTouches: null,
  28264. altKey: null,
  28265. metaKey: null,
  28266. ctrlKey: null,
  28267. shiftKey: null,
  28268. getModifierState: getEventModifierState
  28269. });
  28270. /**
  28271. * @interface Event
  28272. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  28273. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  28274. */
  28275. var SyntheticTransitionEvent = SyntheticEvent.extend({
  28276. propertyName: null,
  28277. elapsedTime: null,
  28278. pseudoElement: null
  28279. });
  28280. /**
  28281. * @interface WheelEvent
  28282. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  28283. */
  28284. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  28285. deltaX: function (event) {
  28286. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  28287. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  28288. },
  28289. deltaY: function (event) {
  28290. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  28291. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  28292. 'wheelDelta' in event ? -event.wheelDelta : 0;
  28293. },
  28294. deltaZ: null,
  28295. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  28296. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  28297. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  28298. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  28299. deltaMode: null
  28300. });
  28301. /**
  28302. * Turns
  28303. * ['abort', ...]
  28304. * into
  28305. * eventTypes = {
  28306. * 'abort': {
  28307. * phasedRegistrationNames: {
  28308. * bubbled: 'onAbort',
  28309. * captured: 'onAbortCapture',
  28310. * },
  28311. * dependencies: [TOP_ABORT],
  28312. * },
  28313. * ...
  28314. * };
  28315. * topLevelEventsToDispatchConfig = new Map([
  28316. * [TOP_ABORT, { sameConfig }],
  28317. * ]);
  28318. */
  28319. var eventTuples = [
  28320. // Discrete events
  28321. [TOP_BLUR, 'blur', DiscreteEvent], [TOP_CANCEL, 'cancel', DiscreteEvent], [TOP_CLICK, 'click', DiscreteEvent], [TOP_CLOSE, 'close', DiscreteEvent], [TOP_CONTEXT_MENU, 'contextMenu', DiscreteEvent], [TOP_COPY, 'copy', DiscreteEvent], [TOP_CUT, 'cut', DiscreteEvent], [TOP_AUX_CLICK, 'auxClick', DiscreteEvent], [TOP_DOUBLE_CLICK, 'doubleClick', DiscreteEvent], [TOP_DRAG_END, 'dragEnd', DiscreteEvent], [TOP_DRAG_START, 'dragStart', DiscreteEvent], [TOP_DROP, 'drop', DiscreteEvent], [TOP_FOCUS, 'focus', DiscreteEvent], [TOP_INPUT, 'input', DiscreteEvent], [TOP_INVALID, 'invalid', DiscreteEvent], [TOP_KEY_DOWN, 'keyDown', DiscreteEvent], [TOP_KEY_PRESS, 'keyPress', DiscreteEvent], [TOP_KEY_UP, 'keyUp', DiscreteEvent], [TOP_MOUSE_DOWN, 'mouseDown', DiscreteEvent], [TOP_MOUSE_UP, 'mouseUp', DiscreteEvent], [TOP_PASTE, 'paste', DiscreteEvent], [TOP_PAUSE, 'pause', DiscreteEvent], [TOP_PLAY, 'play', DiscreteEvent], [TOP_POINTER_CANCEL, 'pointerCancel', DiscreteEvent], [TOP_POINTER_DOWN, 'pointerDown', DiscreteEvent], [TOP_POINTER_UP, 'pointerUp', DiscreteEvent], [TOP_RATE_CHANGE, 'rateChange', DiscreteEvent], [TOP_RESET, 'reset', DiscreteEvent], [TOP_SEEKED, 'seeked', DiscreteEvent], [TOP_SUBMIT, 'submit', DiscreteEvent], [TOP_TOUCH_CANCEL, 'touchCancel', DiscreteEvent], [TOP_TOUCH_END, 'touchEnd', DiscreteEvent], [TOP_TOUCH_START, 'touchStart', DiscreteEvent], [TOP_VOLUME_CHANGE, 'volumeChange', DiscreteEvent],
  28322. // User-blocking events
  28323. [TOP_DRAG, 'drag', UserBlockingEvent], [TOP_DRAG_ENTER, 'dragEnter', UserBlockingEvent], [TOP_DRAG_EXIT, 'dragExit', UserBlockingEvent], [TOP_DRAG_LEAVE, 'dragLeave', UserBlockingEvent], [TOP_DRAG_OVER, 'dragOver', UserBlockingEvent], [TOP_MOUSE_MOVE, 'mouseMove', UserBlockingEvent], [TOP_MOUSE_OUT, 'mouseOut', UserBlockingEvent], [TOP_MOUSE_OVER, 'mouseOver', UserBlockingEvent], [TOP_POINTER_MOVE, 'pointerMove', UserBlockingEvent], [TOP_POINTER_OUT, 'pointerOut', UserBlockingEvent], [TOP_POINTER_OVER, 'pointerOver', UserBlockingEvent], [TOP_SCROLL, 'scroll', UserBlockingEvent], [TOP_TOGGLE, 'toggle', UserBlockingEvent], [TOP_TOUCH_MOVE, 'touchMove', UserBlockingEvent], [TOP_WHEEL, 'wheel', UserBlockingEvent],
  28324. // Continuous events
  28325. [TOP_ABORT, 'abort', ContinuousEvent], [TOP_ANIMATION_END, 'animationEnd', ContinuousEvent], [TOP_ANIMATION_ITERATION, 'animationIteration', ContinuousEvent], [TOP_ANIMATION_START, 'animationStart', ContinuousEvent], [TOP_CAN_PLAY, 'canPlay', ContinuousEvent], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough', ContinuousEvent], [TOP_DURATION_CHANGE, 'durationChange', ContinuousEvent], [TOP_EMPTIED, 'emptied', ContinuousEvent], [TOP_ENCRYPTED, 'encrypted', ContinuousEvent], [TOP_ENDED, 'ended', ContinuousEvent], [TOP_ERROR, 'error', ContinuousEvent], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', ContinuousEvent], [TOP_LOAD, 'load', ContinuousEvent], [TOP_LOADED_DATA, 'loadedData', ContinuousEvent], [TOP_LOADED_METADATA, 'loadedMetadata', ContinuousEvent], [TOP_LOAD_START, 'loadStart', ContinuousEvent], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', ContinuousEvent], [TOP_PLAYING, 'playing', ContinuousEvent], [TOP_PROGRESS, 'progress', ContinuousEvent], [TOP_SEEKING, 'seeking', ContinuousEvent], [TOP_STALLED, 'stalled', ContinuousEvent], [TOP_SUSPEND, 'suspend', ContinuousEvent], [TOP_TIME_UPDATE, 'timeUpdate', ContinuousEvent], [TOP_TRANSITION_END, 'transitionEnd', ContinuousEvent], [TOP_WAITING, 'waiting', ContinuousEvent]];
  28326. var eventTypes$4 = {};
  28327. var topLevelEventsToDispatchConfig = {};
  28328. for (var i = 0; i < eventTuples.length; i++) {
  28329. var eventTuple = eventTuples[i];
  28330. var topEvent = eventTuple[0];
  28331. var event = eventTuple[1];
  28332. var eventPriority = eventTuple[2];
  28333. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  28334. var onEvent = 'on' + capitalizedEvent;
  28335. var config = {
  28336. phasedRegistrationNames: {
  28337. bubbled: onEvent,
  28338. captured: onEvent + 'Capture'
  28339. },
  28340. dependencies: [topEvent],
  28341. eventPriority: eventPriority
  28342. };
  28343. eventTypes$4[event] = config;
  28344. topLevelEventsToDispatchConfig[topEvent] = config;
  28345. }
  28346. // Only used in DEV for exhaustiveness validation.
  28347. 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];
  28348. var SimpleEventPlugin = {
  28349. eventTypes: eventTypes$4,
  28350. getEventPriority: function (topLevelType) {
  28351. var config = topLevelEventsToDispatchConfig[topLevelType];
  28352. return config !== undefined ? config.eventPriority : ContinuousEvent;
  28353. },
  28354. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  28355. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  28356. if (!dispatchConfig) {
  28357. return null;
  28358. }
  28359. var EventConstructor = void 0;
  28360. switch (topLevelType) {
  28361. case TOP_KEY_PRESS:
  28362. // Firefox creates a keypress event for function keys too. This removes
  28363. // the unwanted keypress events. Enter is however both printable and
  28364. // non-printable. One would expect Tab to be as well (but it isn't).
  28365. if (getEventCharCode(nativeEvent) === 0) {
  28366. return null;
  28367. }
  28368. /* falls through */
  28369. case TOP_KEY_DOWN:
  28370. case TOP_KEY_UP:
  28371. EventConstructor = SyntheticKeyboardEvent;
  28372. break;
  28373. case TOP_BLUR:
  28374. case TOP_FOCUS:
  28375. EventConstructor = SyntheticFocusEvent;
  28376. break;
  28377. case TOP_CLICK:
  28378. // Firefox creates a click event on right mouse clicks. This removes the
  28379. // unwanted click events.
  28380. if (nativeEvent.button === 2) {
  28381. return null;
  28382. }
  28383. /* falls through */
  28384. case TOP_AUX_CLICK:
  28385. case TOP_DOUBLE_CLICK:
  28386. case TOP_MOUSE_DOWN:
  28387. case TOP_MOUSE_MOVE:
  28388. case TOP_MOUSE_UP:
  28389. // TODO: Disabled elements should not respond to mouse events
  28390. /* falls through */
  28391. case TOP_MOUSE_OUT:
  28392. case TOP_MOUSE_OVER:
  28393. case TOP_CONTEXT_MENU:
  28394. EventConstructor = SyntheticMouseEvent;
  28395. break;
  28396. case TOP_DRAG:
  28397. case TOP_DRAG_END:
  28398. case TOP_DRAG_ENTER:
  28399. case TOP_DRAG_EXIT:
  28400. case TOP_DRAG_LEAVE:
  28401. case TOP_DRAG_OVER:
  28402. case TOP_DRAG_START:
  28403. case TOP_DROP:
  28404. EventConstructor = SyntheticDragEvent;
  28405. break;
  28406. case TOP_TOUCH_CANCEL:
  28407. case TOP_TOUCH_END:
  28408. case TOP_TOUCH_MOVE:
  28409. case TOP_TOUCH_START:
  28410. EventConstructor = SyntheticTouchEvent;
  28411. break;
  28412. case TOP_ANIMATION_END:
  28413. case TOP_ANIMATION_ITERATION:
  28414. case TOP_ANIMATION_START:
  28415. EventConstructor = SyntheticAnimationEvent;
  28416. break;
  28417. case TOP_TRANSITION_END:
  28418. EventConstructor = SyntheticTransitionEvent;
  28419. break;
  28420. case TOP_SCROLL:
  28421. EventConstructor = SyntheticUIEvent;
  28422. break;
  28423. case TOP_WHEEL:
  28424. EventConstructor = SyntheticWheelEvent;
  28425. break;
  28426. case TOP_COPY:
  28427. case TOP_CUT:
  28428. case TOP_PASTE:
  28429. EventConstructor = SyntheticClipboardEvent;
  28430. break;
  28431. case TOP_GOT_POINTER_CAPTURE:
  28432. case TOP_LOST_POINTER_CAPTURE:
  28433. case TOP_POINTER_CANCEL:
  28434. case TOP_POINTER_DOWN:
  28435. case TOP_POINTER_MOVE:
  28436. case TOP_POINTER_OUT:
  28437. case TOP_POINTER_OVER:
  28438. case TOP_POINTER_UP:
  28439. EventConstructor = SyntheticPointerEvent;
  28440. break;
  28441. default:
  28442. {
  28443. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  28444. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  28445. }
  28446. }
  28447. // HTML Events
  28448. // @see http://www.w3.org/TR/html5/index.html#events-0
  28449. EventConstructor = SyntheticEvent;
  28450. break;
  28451. }
  28452. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  28453. accumulateTwoPhaseDispatches(event);
  28454. return event;
  28455. }
  28456. };
  28457. var passiveBrowserEventsSupported = false;
  28458. // Check if browser support events with passive listeners
  28459. // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
  28460. if (enableFlareAPI && canUseDOM) {
  28461. try {
  28462. var options = {};
  28463. // $FlowFixMe: Ignore Flow complaining about needing a value
  28464. Object.defineProperty(options, 'passive', {
  28465. get: function () {
  28466. passiveBrowserEventsSupported = true;
  28467. }
  28468. });
  28469. window.addEventListener('test', options, options);
  28470. window.removeEventListener('test', options, options);
  28471. } catch (e) {
  28472. passiveBrowserEventsSupported = false;
  28473. }
  28474. }
  28475. // Intentionally not named imports because Rollup would use dynamic dispatch for
  28476. // CommonJS interop named imports.
  28477. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  28478. var runWithPriority = Scheduler.unstable_runWithPriority;
  28479. var getEventPriority = SimpleEventPlugin.getEventPriority;
  28480. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  28481. var callbackBookkeepingPool = [];
  28482. /**
  28483. * Find the deepest React component completely containing the root of the
  28484. * passed-in instance (for use when entire React trees are nested within each
  28485. * other). If React trees are not nested, returns null.
  28486. */
  28487. function findRootContainerNode(inst) {
  28488. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  28489. // traversal, but caching is difficult to do correctly without using a
  28490. // mutation observer to listen for all DOM changes.
  28491. while (inst.return) {
  28492. inst = inst.return;
  28493. }
  28494. if (inst.tag !== HostRoot) {
  28495. // This can happen if we're in a detached tree.
  28496. return null;
  28497. }
  28498. return inst.stateNode.containerInfo;
  28499. }
  28500. // Used to store ancestor hierarchy in top level callback
  28501. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  28502. if (callbackBookkeepingPool.length) {
  28503. var instance = callbackBookkeepingPool.pop();
  28504. instance.topLevelType = topLevelType;
  28505. instance.nativeEvent = nativeEvent;
  28506. instance.targetInst = targetInst;
  28507. return instance;
  28508. }
  28509. return {
  28510. topLevelType: topLevelType,
  28511. nativeEvent: nativeEvent,
  28512. targetInst: targetInst,
  28513. ancestors: []
  28514. };
  28515. }
  28516. function releaseTopLevelCallbackBookKeeping(instance) {
  28517. instance.topLevelType = null;
  28518. instance.nativeEvent = null;
  28519. instance.targetInst = null;
  28520. instance.ancestors.length = 0;
  28521. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  28522. callbackBookkeepingPool.push(instance);
  28523. }
  28524. }
  28525. function handleTopLevel(bookKeeping) {
  28526. var targetInst = bookKeeping.targetInst;
  28527. // Loop through the hierarchy, in case there's any nested components.
  28528. // It's important that we build the array of ancestors before calling any
  28529. // event handlers, because event handlers can modify the DOM, leading to
  28530. // inconsistencies with ReactMount's node cache. See #1105.
  28531. var ancestor = targetInst;
  28532. do {
  28533. if (!ancestor) {
  28534. var _ancestors = bookKeeping.ancestors;
  28535. _ancestors.push(ancestor);
  28536. break;
  28537. }
  28538. var root = findRootContainerNode(ancestor);
  28539. if (!root) {
  28540. break;
  28541. }
  28542. bookKeeping.ancestors.push(ancestor);
  28543. ancestor = getClosestInstanceFromNode(root);
  28544. } while (ancestor);
  28545. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  28546. targetInst = bookKeeping.ancestors[i];
  28547. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  28548. var _topLevelType = bookKeeping.topLevelType;
  28549. var _nativeEvent = bookKeeping.nativeEvent;
  28550. runExtractedPluginEventsInBatch(_topLevelType, targetInst, _nativeEvent, eventTarget);
  28551. }
  28552. }
  28553. // TODO: can we stop exporting these?
  28554. var _enabled = true;
  28555. function setEnabled(enabled) {
  28556. _enabled = !!enabled;
  28557. }
  28558. function isEnabled() {
  28559. return _enabled;
  28560. }
  28561. function trapBubbledEvent(topLevelType, element) {
  28562. trapEventForPluginEventSystem(element, topLevelType, false);
  28563. }
  28564. function trapCapturedEvent(topLevelType, element) {
  28565. trapEventForPluginEventSystem(element, topLevelType, true);
  28566. }
  28567. function trapEventForResponderEventSystem(element, topLevelType, passive) {
  28568. if (enableFlareAPI) {
  28569. var rawEventName = getRawEventName(topLevelType);
  28570. var eventFlags = RESPONDER_EVENT_SYSTEM;
  28571. // If passive option is not supported, then the event will be
  28572. // active and not passive, but we flag it as using not being
  28573. // supported too. This way the responder event plugins know,
  28574. // and can provide polyfills if needed.
  28575. if (passive) {
  28576. if (passiveBrowserEventsSupported) {
  28577. eventFlags |= IS_PASSIVE;
  28578. } else {
  28579. eventFlags |= IS_ACTIVE;
  28580. eventFlags |= PASSIVE_NOT_SUPPORTED;
  28581. passive = false;
  28582. }
  28583. } else {
  28584. eventFlags |= IS_ACTIVE;
  28585. }
  28586. // Check if interactive and wrap in discreteUpdates
  28587. var listener = dispatchEvent.bind(null, topLevelType, eventFlags);
  28588. if (passiveBrowserEventsSupported) {
  28589. addEventCaptureListenerWithPassiveFlag(element, rawEventName, listener, passive);
  28590. } else {
  28591. addEventCaptureListener(element, rawEventName, listener);
  28592. }
  28593. }
  28594. }
  28595. function trapEventForPluginEventSystem(element, topLevelType, capture) {
  28596. var listener = void 0;
  28597. switch (getEventPriority(topLevelType)) {
  28598. case DiscreteEvent:
  28599. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  28600. break;
  28601. case UserBlockingEvent:
  28602. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  28603. break;
  28604. case ContinuousEvent:
  28605. default:
  28606. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  28607. break;
  28608. }
  28609. var rawEventName = getRawEventName(topLevelType);
  28610. if (capture) {
  28611. addEventCaptureListener(element, rawEventName, listener);
  28612. } else {
  28613. addEventBubbleListener(element, rawEventName, listener);
  28614. }
  28615. }
  28616. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, nativeEvent) {
  28617. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  28618. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, nativeEvent);
  28619. }
  28620. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, nativeEvent) {
  28621. if (enableUserBlockingEvents) {
  28622. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, nativeEvent));
  28623. } else {
  28624. dispatchEvent(topLevelType, eventSystemFlags, nativeEvent);
  28625. }
  28626. }
  28627. function dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  28628. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  28629. try {
  28630. // Event queue being processed in the same cycle allows
  28631. // `preventDefault`.
  28632. batchedEventUpdates(handleTopLevel, bookKeeping);
  28633. } finally {
  28634. releaseTopLevelCallbackBookKeeping(bookKeeping);
  28635. }
  28636. }
  28637. function dispatchEvent(topLevelType, eventSystemFlags, nativeEvent) {
  28638. if (!_enabled) {
  28639. return;
  28640. }
  28641. var nativeEventTarget = getEventTarget(nativeEvent);
  28642. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  28643. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  28644. // If we get an event (ex: img onload) before committing that
  28645. // component's mount, ignore it for now (that is, treat it as if it was an
  28646. // event on a non-React tree). We might also consider queueing events and
  28647. // dispatching them after the mount.
  28648. targetInst = null;
  28649. }
  28650. if (enableFlareAPI) {
  28651. if (eventSystemFlags === PLUGIN_EVENT_SYSTEM) {
  28652. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  28653. } else {
  28654. // React Flare event system
  28655. dispatchEventForResponderEventSystem(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  28656. }
  28657. } else {
  28658. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  28659. }
  28660. }
  28661. /**
  28662. * Summary of `ReactBrowserEventEmitter` event handling:
  28663. *
  28664. * - Top-level delegation is used to trap most native browser events. This
  28665. * may only occur in the main thread and is the responsibility of
  28666. * ReactDOMEventListener, which is injected and can therefore support
  28667. * pluggable event sources. This is the only work that occurs in the main
  28668. * thread.
  28669. *
  28670. * - We normalize and de-duplicate events to account for browser quirks. This
  28671. * may be done in the worker thread.
  28672. *
  28673. * - Forward these native events (with the associated top-level type used to
  28674. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  28675. * to extract any synthetic events.
  28676. *
  28677. * - The `EventPluginHub` will then process each event by annotating them with
  28678. * "dispatches", a sequence of listeners and IDs that care about that event.
  28679. *
  28680. * - The `EventPluginHub` then dispatches the events.
  28681. *
  28682. * Overview of React and the event system:
  28683. *
  28684. * +------------+ .
  28685. * | DOM | .
  28686. * +------------+ .
  28687. * | .
  28688. * v .
  28689. * +------------+ .
  28690. * | ReactEvent | .
  28691. * | Listener | .
  28692. * +------------+ . +-----------+
  28693. * | . +--------+|SimpleEvent|
  28694. * | . | |Plugin |
  28695. * +-----|------+ . v +-----------+
  28696. * | | | . +--------------+ +------------+
  28697. * | +-----------.--->|EventPluginHub| | Event |
  28698. * | | . | | +-----------+ | Propagators|
  28699. * | ReactEvent | . | | |TapEvent | |------------|
  28700. * | Emitter | . | |<---+|Plugin | |other plugin|
  28701. * | | . | | +-----------+ | utilities |
  28702. * | +-----------.--->| | +------------+
  28703. * | | | . +--------------+
  28704. * +-----|------+ . ^ +-----------+
  28705. * | . | |Enter/Leave|
  28706. * + . +-------+|Plugin |
  28707. * +-------------+ . +-----------+
  28708. * | application | .
  28709. * |-------------| .
  28710. * | | .
  28711. * | | .
  28712. * +-------------+ .
  28713. * .
  28714. * React Core . General Purpose Event Plugin System
  28715. */
  28716. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  28717. var elementListeningSets = new PossiblyWeakMap();
  28718. function getListeningSetForElement(element) {
  28719. var listeningSet = elementListeningSets.get(element);
  28720. if (listeningSet === undefined) {
  28721. listeningSet = new Set();
  28722. elementListeningSets.set(element, listeningSet);
  28723. }
  28724. return listeningSet;
  28725. }
  28726. /**
  28727. * We listen for bubbled touch events on the document object.
  28728. *
  28729. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  28730. * mounting `onmousemove` events at some node that was not the document
  28731. * element. The symptoms were that if your mouse is not moving over something
  28732. * contained within that mount point (for example on the background) the
  28733. * top-level listeners for `onmousemove` won't be called. However, if you
  28734. * register the `mousemove` on the document object, then it will of course
  28735. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  28736. * top-level listeners to the document object only, at least for these
  28737. * movement types of events and possibly all events.
  28738. *
  28739. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  28740. *
  28741. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  28742. * they bubble to document.
  28743. *
  28744. * @param {string} registrationName Name of listener (e.g. `onClick`).
  28745. * @param {object} mountAt Container where to mount the listener
  28746. */
  28747. function listenTo(registrationName, mountAt) {
  28748. var listeningSet = getListeningSetForElement(mountAt);
  28749. var dependencies = registrationNameDependencies[registrationName];
  28750. for (var i = 0; i < dependencies.length; i++) {
  28751. var dependency = dependencies[i];
  28752. if (!listeningSet.has(dependency)) {
  28753. switch (dependency) {
  28754. case TOP_SCROLL:
  28755. trapCapturedEvent(TOP_SCROLL, mountAt);
  28756. break;
  28757. case TOP_FOCUS:
  28758. case TOP_BLUR:
  28759. trapCapturedEvent(TOP_FOCUS, mountAt);
  28760. trapCapturedEvent(TOP_BLUR, mountAt);
  28761. // We set the flag for a single dependency later in this function,
  28762. // but this ensures we mark both as attached rather than just one.
  28763. listeningSet.add(TOP_BLUR);
  28764. listeningSet.add(TOP_FOCUS);
  28765. break;
  28766. case TOP_CANCEL:
  28767. case TOP_CLOSE:
  28768. if (isEventSupported(getRawEventName(dependency))) {
  28769. trapCapturedEvent(dependency, mountAt);
  28770. }
  28771. break;
  28772. case TOP_INVALID:
  28773. case TOP_SUBMIT:
  28774. case TOP_RESET:
  28775. // We listen to them on the target DOM elements.
  28776. // Some of them bubble so we don't want them to fire twice.
  28777. break;
  28778. default:
  28779. // By default, listen on the top level to all non-media events.
  28780. // Media events don't bubble so adding the listener wouldn't do anything.
  28781. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  28782. if (!isMediaEvent) {
  28783. trapBubbledEvent(dependency, mountAt);
  28784. }
  28785. break;
  28786. }
  28787. listeningSet.add(dependency);
  28788. }
  28789. }
  28790. }
  28791. function isListeningToAllDependencies(registrationName, mountAt) {
  28792. var listeningSet = getListeningSetForElement(mountAt);
  28793. var dependencies = registrationNameDependencies[registrationName];
  28794. for (var i = 0; i < dependencies.length; i++) {
  28795. var dependency = dependencies[i];
  28796. if (!listeningSet.has(dependency)) {
  28797. return false;
  28798. }
  28799. }
  28800. return true;
  28801. }
  28802. function getActiveElement(doc) {
  28803. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  28804. if (typeof doc === 'undefined') {
  28805. return null;
  28806. }
  28807. try {
  28808. return doc.activeElement || doc.body;
  28809. } catch (e) {
  28810. return doc.body;
  28811. }
  28812. }
  28813. /**
  28814. * Given any node return the first leaf node without children.
  28815. *
  28816. * @param {DOMElement|DOMTextNode} node
  28817. * @return {DOMElement|DOMTextNode}
  28818. */
  28819. function getLeafNode(node) {
  28820. while (node && node.firstChild) {
  28821. node = node.firstChild;
  28822. }
  28823. return node;
  28824. }
  28825. /**
  28826. * Get the next sibling within a container. This will walk up the
  28827. * DOM if a node's siblings have been exhausted.
  28828. *
  28829. * @param {DOMElement|DOMTextNode} node
  28830. * @return {?DOMElement|DOMTextNode}
  28831. */
  28832. function getSiblingNode(node) {
  28833. while (node) {
  28834. if (node.nextSibling) {
  28835. return node.nextSibling;
  28836. }
  28837. node = node.parentNode;
  28838. }
  28839. }
  28840. /**
  28841. * Get object describing the nodes which contain characters at offset.
  28842. *
  28843. * @param {DOMElement|DOMTextNode} root
  28844. * @param {number} offset
  28845. * @return {?object}
  28846. */
  28847. function getNodeForCharacterOffset(root, offset) {
  28848. var node = getLeafNode(root);
  28849. var nodeStart = 0;
  28850. var nodeEnd = 0;
  28851. while (node) {
  28852. if (node.nodeType === TEXT_NODE) {
  28853. nodeEnd = nodeStart + node.textContent.length;
  28854. if (nodeStart <= offset && nodeEnd >= offset) {
  28855. return {
  28856. node: node,
  28857. offset: offset - nodeStart
  28858. };
  28859. }
  28860. nodeStart = nodeEnd;
  28861. }
  28862. node = getLeafNode(getSiblingNode(node));
  28863. }
  28864. }
  28865. /**
  28866. * @param {DOMElement} outerNode
  28867. * @return {?object}
  28868. */
  28869. function getOffsets(outerNode) {
  28870. var ownerDocument = outerNode.ownerDocument;
  28871. var win = ownerDocument && ownerDocument.defaultView || window;
  28872. var selection = win.getSelection && win.getSelection();
  28873. if (!selection || selection.rangeCount === 0) {
  28874. return null;
  28875. }
  28876. var anchorNode = selection.anchorNode,
  28877. anchorOffset = selection.anchorOffset,
  28878. focusNode = selection.focusNode,
  28879. focusOffset = selection.focusOffset;
  28880. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  28881. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  28882. // expose properties, triggering a "Permission denied error" if any of its
  28883. // properties are accessed. The only seemingly possible way to avoid erroring
  28884. // is to access a property that typically works for non-anonymous divs and
  28885. // catch any error that may otherwise arise. See
  28886. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  28887. try {
  28888. /* eslint-disable no-unused-expressions */
  28889. anchorNode.nodeType;
  28890. focusNode.nodeType;
  28891. /* eslint-enable no-unused-expressions */
  28892. } catch (e) {
  28893. return null;
  28894. }
  28895. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  28896. }
  28897. /**
  28898. * Returns {start, end} where `start` is the character/codepoint index of
  28899. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  28900. * `end` is the index of (focusNode, focusOffset).
  28901. *
  28902. * Returns null if you pass in garbage input but we should probably just crash.
  28903. *
  28904. * Exported only for testing.
  28905. */
  28906. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  28907. var length = 0;
  28908. var start = -1;
  28909. var end = -1;
  28910. var indexWithinAnchor = 0;
  28911. var indexWithinFocus = 0;
  28912. var node = outerNode;
  28913. var parentNode = null;
  28914. outer: while (true) {
  28915. var next = null;
  28916. while (true) {
  28917. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  28918. start = length + anchorOffset;
  28919. }
  28920. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  28921. end = length + focusOffset;
  28922. }
  28923. if (node.nodeType === TEXT_NODE) {
  28924. length += node.nodeValue.length;
  28925. }
  28926. if ((next = node.firstChild) === null) {
  28927. break;
  28928. }
  28929. // Moving from `node` to its first child `next`.
  28930. parentNode = node;
  28931. node = next;
  28932. }
  28933. while (true) {
  28934. if (node === outerNode) {
  28935. // If `outerNode` has children, this is always the second time visiting
  28936. // it. If it has no children, this is still the first loop, and the only
  28937. // valid selection is anchorNode and focusNode both equal to this node
  28938. // and both offsets 0, in which case we will have handled above.
  28939. break outer;
  28940. }
  28941. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  28942. start = length;
  28943. }
  28944. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  28945. end = length;
  28946. }
  28947. if ((next = node.nextSibling) !== null) {
  28948. break;
  28949. }
  28950. node = parentNode;
  28951. parentNode = node.parentNode;
  28952. }
  28953. // Moving from `node` to its next sibling `next`.
  28954. node = next;
  28955. }
  28956. if (start === -1 || end === -1) {
  28957. // This should never happen. (Would happen if the anchor/focus nodes aren't
  28958. // actually inside the passed-in node.)
  28959. return null;
  28960. }
  28961. return {
  28962. start: start,
  28963. end: end
  28964. };
  28965. }
  28966. /**
  28967. * In modern non-IE browsers, we can support both forward and backward
  28968. * selections.
  28969. *
  28970. * Note: IE10+ supports the Selection object, but it does not support
  28971. * the `extend` method, which means that even in modern IE, it's not possible
  28972. * to programmatically create a backward selection. Thus, for all IE
  28973. * versions, we use the old IE API to create our selections.
  28974. *
  28975. * @param {DOMElement|DOMTextNode} node
  28976. * @param {object} offsets
  28977. */
  28978. function setOffsets(node, offsets) {
  28979. var doc = node.ownerDocument || document;
  28980. var win = doc && doc.defaultView || window;
  28981. // Edge fails with "Object expected" in some scenarios.
  28982. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  28983. // fails when pasting 100+ items)
  28984. if (!win.getSelection) {
  28985. return;
  28986. }
  28987. var selection = win.getSelection();
  28988. var length = node.textContent.length;
  28989. var start = Math.min(offsets.start, length);
  28990. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  28991. // IE 11 uses modern selection, but doesn't support the extend method.
  28992. // Flip backward selections, so we can set with a single range.
  28993. if (!selection.extend && start > end) {
  28994. var temp = end;
  28995. end = start;
  28996. start = temp;
  28997. }
  28998. var startMarker = getNodeForCharacterOffset(node, start);
  28999. var endMarker = getNodeForCharacterOffset(node, end);
  29000. if (startMarker && endMarker) {
  29001. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  29002. return;
  29003. }
  29004. var range = doc.createRange();
  29005. range.setStart(startMarker.node, startMarker.offset);
  29006. selection.removeAllRanges();
  29007. if (start > end) {
  29008. selection.addRange(range);
  29009. selection.extend(endMarker.node, endMarker.offset);
  29010. } else {
  29011. range.setEnd(endMarker.node, endMarker.offset);
  29012. selection.addRange(range);
  29013. }
  29014. }
  29015. }
  29016. function isTextNode(node) {
  29017. return node && node.nodeType === TEXT_NODE;
  29018. }
  29019. function containsNode(outerNode, innerNode) {
  29020. if (!outerNode || !innerNode) {
  29021. return false;
  29022. } else if (outerNode === innerNode) {
  29023. return true;
  29024. } else if (isTextNode(outerNode)) {
  29025. return false;
  29026. } else if (isTextNode(innerNode)) {
  29027. return containsNode(outerNode, innerNode.parentNode);
  29028. } else if ('contains' in outerNode) {
  29029. return outerNode.contains(innerNode);
  29030. } else if (outerNode.compareDocumentPosition) {
  29031. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  29032. } else {
  29033. return false;
  29034. }
  29035. }
  29036. function isInDocument(node) {
  29037. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  29038. }
  29039. function isSameOriginFrame(iframe) {
  29040. try {
  29041. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  29042. // to throw, e.g. if it has a cross-origin src attribute.
  29043. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  29044. // iframe.contentDocument.defaultView;
  29045. // A safety way is to access one of the cross origin properties: Window or Location
  29046. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  29047. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  29048. return typeof iframe.contentWindow.location.href === 'string';
  29049. } catch (err) {
  29050. return false;
  29051. }
  29052. }
  29053. function getActiveElementDeep() {
  29054. var win = window;
  29055. var element = getActiveElement();
  29056. while (element instanceof win.HTMLIFrameElement) {
  29057. if (isSameOriginFrame(element)) {
  29058. win = element.contentWindow;
  29059. } else {
  29060. return element;
  29061. }
  29062. element = getActiveElement(win.document);
  29063. }
  29064. return element;
  29065. }
  29066. /**
  29067. * @ReactInputSelection: React input selection module. Based on Selection.js,
  29068. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  29069. * assume buttons have range selections allowed).
  29070. * Input selection module for React.
  29071. */
  29072. /**
  29073. * @hasSelectionCapabilities: we get the element types that support selection
  29074. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  29075. * and `selectionEnd` rows.
  29076. */
  29077. function hasSelectionCapabilities(elem) {
  29078. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  29079. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  29080. }
  29081. function getSelectionInformation() {
  29082. var focusedElem = getActiveElementDeep();
  29083. return {
  29084. focusedElem: focusedElem,
  29085. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  29086. };
  29087. }
  29088. /**
  29089. * @restoreSelection: If any selection information was potentially lost,
  29090. * restore it. This is useful when performing operations that could remove dom
  29091. * nodes and place them back in, resulting in focus being lost.
  29092. */
  29093. function restoreSelection(priorSelectionInformation) {
  29094. var curFocusedElem = getActiveElementDeep();
  29095. var priorFocusedElem = priorSelectionInformation.focusedElem;
  29096. var priorSelectionRange = priorSelectionInformation.selectionRange;
  29097. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  29098. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  29099. setSelection(priorFocusedElem, priorSelectionRange);
  29100. }
  29101. // Focusing a node can change the scroll position, which is undesirable
  29102. var ancestors = [];
  29103. var ancestor = priorFocusedElem;
  29104. while (ancestor = ancestor.parentNode) {
  29105. if (ancestor.nodeType === ELEMENT_NODE) {
  29106. ancestors.push({
  29107. element: ancestor,
  29108. left: ancestor.scrollLeft,
  29109. top: ancestor.scrollTop
  29110. });
  29111. }
  29112. }
  29113. if (typeof priorFocusedElem.focus === 'function') {
  29114. priorFocusedElem.focus();
  29115. }
  29116. for (var i = 0; i < ancestors.length; i++) {
  29117. var info = ancestors[i];
  29118. info.element.scrollLeft = info.left;
  29119. info.element.scrollTop = info.top;
  29120. }
  29121. }
  29122. }
  29123. /**
  29124. * @getSelection: Gets the selection bounds of a focused textarea, input or
  29125. * contentEditable node.
  29126. * -@input: Look up selection bounds of this input
  29127. * -@return {start: selectionStart, end: selectionEnd}
  29128. */
  29129. function getSelection$1(input) {
  29130. var selection = void 0;
  29131. if ('selectionStart' in input) {
  29132. // Modern browser with input or textarea.
  29133. selection = {
  29134. start: input.selectionStart,
  29135. end: input.selectionEnd
  29136. };
  29137. } else {
  29138. // Content editable or old IE textarea.
  29139. selection = getOffsets(input);
  29140. }
  29141. return selection || { start: 0, end: 0 };
  29142. }
  29143. /**
  29144. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  29145. * the input.
  29146. * -@input Set selection bounds of this input or textarea
  29147. * -@offsets Object of same form that is returned from get*
  29148. */
  29149. function setSelection(input, offsets) {
  29150. var start = offsets.start,
  29151. end = offsets.end;
  29152. if (end === undefined) {
  29153. end = start;
  29154. }
  29155. if ('selectionStart' in input) {
  29156. input.selectionStart = start;
  29157. input.selectionEnd = Math.min(end, input.value.length);
  29158. } else {
  29159. setOffsets(input, offsets);
  29160. }
  29161. }
  29162. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  29163. var eventTypes$3 = {
  29164. select: {
  29165. phasedRegistrationNames: {
  29166. bubbled: 'onSelect',
  29167. captured: 'onSelectCapture'
  29168. },
  29169. 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]
  29170. }
  29171. };
  29172. var activeElement$1 = null;
  29173. var activeElementInst$1 = null;
  29174. var lastSelection = null;
  29175. var mouseDown = false;
  29176. /**
  29177. * Get an object which is a unique representation of the current selection.
  29178. *
  29179. * The return value will not be consistent across nodes or browsers, but
  29180. * two identical selections on the same node will return identical objects.
  29181. *
  29182. * @param {DOMElement} node
  29183. * @return {object}
  29184. */
  29185. function getSelection(node) {
  29186. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  29187. return {
  29188. start: node.selectionStart,
  29189. end: node.selectionEnd
  29190. };
  29191. } else {
  29192. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  29193. var selection = win.getSelection();
  29194. return {
  29195. anchorNode: selection.anchorNode,
  29196. anchorOffset: selection.anchorOffset,
  29197. focusNode: selection.focusNode,
  29198. focusOffset: selection.focusOffset
  29199. };
  29200. }
  29201. }
  29202. /**
  29203. * Get document associated with the event target.
  29204. *
  29205. * @param {object} nativeEventTarget
  29206. * @return {Document}
  29207. */
  29208. function getEventTargetDocument(eventTarget) {
  29209. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  29210. }
  29211. /**
  29212. * Poll selection to see whether it's changed.
  29213. *
  29214. * @param {object} nativeEvent
  29215. * @param {object} nativeEventTarget
  29216. * @return {?SyntheticEvent}
  29217. */
  29218. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  29219. // Ensure we have the right element, and that the user is not dragging a
  29220. // selection (this matches native `select` event behavior). In HTML5, select
  29221. // fires only on input and textarea thus if there's no focused element we
  29222. // won't dispatch.
  29223. var doc = getEventTargetDocument(nativeEventTarget);
  29224. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  29225. return null;
  29226. }
  29227. // Only fire when selection has actually changed.
  29228. var currentSelection = getSelection(activeElement$1);
  29229. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  29230. lastSelection = currentSelection;
  29231. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  29232. syntheticEvent.type = 'select';
  29233. syntheticEvent.target = activeElement$1;
  29234. accumulateTwoPhaseDispatches(syntheticEvent);
  29235. return syntheticEvent;
  29236. }
  29237. return null;
  29238. }
  29239. /**
  29240. * This plugin creates an `onSelect` event that normalizes select events
  29241. * across form elements.
  29242. *
  29243. * Supported elements are:
  29244. * - input (see `isTextInputElement`)
  29245. * - textarea
  29246. * - contentEditable
  29247. *
  29248. * This differs from native browser implementations in the following ways:
  29249. * - Fires on contentEditable fields as well as inputs.
  29250. * - Fires for collapsed selection.
  29251. * - Fires after user input.
  29252. */
  29253. var SelectEventPlugin = {
  29254. eventTypes: eventTypes$3,
  29255. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  29256. var doc = getEventTargetDocument(nativeEventTarget);
  29257. // Track whether all listeners exists for this plugin. If none exist, we do
  29258. // not extract events. See #3639.
  29259. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  29260. return null;
  29261. }
  29262. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  29263. switch (topLevelType) {
  29264. // Track the input node that has focus.
  29265. case TOP_FOCUS:
  29266. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  29267. activeElement$1 = targetNode;
  29268. activeElementInst$1 = targetInst;
  29269. lastSelection = null;
  29270. }
  29271. break;
  29272. case TOP_BLUR:
  29273. activeElement$1 = null;
  29274. activeElementInst$1 = null;
  29275. lastSelection = null;
  29276. break;
  29277. // Don't fire the event while the user is dragging. This matches the
  29278. // semantics of the native select event.
  29279. case TOP_MOUSE_DOWN:
  29280. mouseDown = true;
  29281. break;
  29282. case TOP_CONTEXT_MENU:
  29283. case TOP_MOUSE_UP:
  29284. case TOP_DRAG_END:
  29285. mouseDown = false;
  29286. return constructSelectEvent(nativeEvent, nativeEventTarget);
  29287. // Chrome and IE fire non-standard event when selection is changed (and
  29288. // sometimes when it hasn't). IE's event fires out of order with respect
  29289. // to key and input events on deletion, so we discard it.
  29290. //
  29291. // Firefox doesn't support selectionchange, so check selection status
  29292. // after each key entry. The selection changes after keydown and before
  29293. // keyup, but we check on keydown as well in the case of holding down a
  29294. // key, when multiple keydown events are fired but only one keyup is.
  29295. // This is also our approach for IE handling, for the reason above.
  29296. case TOP_SELECTION_CHANGE:
  29297. if (skipSelectionChangeEvent) {
  29298. break;
  29299. }
  29300. // falls through
  29301. case TOP_KEY_DOWN:
  29302. case TOP_KEY_UP:
  29303. return constructSelectEvent(nativeEvent, nativeEventTarget);
  29304. }
  29305. return null;
  29306. }
  29307. };
  29308. /**
  29309. * Inject modules for resolving DOM hierarchy and plugin ordering.
  29310. */
  29311. injection.injectEventPluginOrder(DOMEventPluginOrder);
  29312. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  29313. /**
  29314. * Some important event plugins included by default (without having to require
  29315. * them).
  29316. */
  29317. injection.injectEventPluginsByName({
  29318. SimpleEventPlugin: SimpleEventPlugin,
  29319. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  29320. ChangeEventPlugin: ChangeEventPlugin,
  29321. SelectEventPlugin: SelectEventPlugin,
  29322. BeforeInputEventPlugin: BeforeInputEventPlugin
  29323. });
  29324. function endsWith(subject, search) {
  29325. var length = subject.length;
  29326. return subject.substring(length - search.length, length) === search;
  29327. }
  29328. var didWarnSelectedSetOnOption = false;
  29329. var didWarnInvalidChild = false;
  29330. function flattenChildren(children) {
  29331. var content = '';
  29332. // Flatten children. We'll warn if they are invalid
  29333. // during validateProps() which runs for hydration too.
  29334. // Note that this would throw on non-element objects.
  29335. // Elements are stringified (which is normally irrelevant
  29336. // but matters for <fbt>).
  29337. React.Children.forEach(children, function (child) {
  29338. if (child == null) {
  29339. return;
  29340. }
  29341. content += child;
  29342. // Note: we don't warn about invalid children here.
  29343. // Instead, this is done separately below so that
  29344. // it happens during the hydration codepath too.
  29345. });
  29346. return content;
  29347. }
  29348. /**
  29349. * Implements an <option> host component that warns when `selected` is set.
  29350. */
  29351. function validateProps(element, props) {
  29352. {
  29353. // This mirrors the codepath above, but runs for hydration too.
  29354. // Warn about invalid children here so that client and hydration are consistent.
  29355. // TODO: this seems like it could cause a DEV-only throw for hydration
  29356. // if children contains a non-element object. We should try to avoid that.
  29357. if (typeof props.children === 'object' && props.children !== null) {
  29358. React.Children.forEach(props.children, function (child) {
  29359. if (child == null) {
  29360. return;
  29361. }
  29362. if (typeof child === 'string' || typeof child === 'number') {
  29363. return;
  29364. }
  29365. if (typeof child.type !== 'string') {
  29366. return;
  29367. }
  29368. if (!didWarnInvalidChild) {
  29369. didWarnInvalidChild = true;
  29370. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  29371. }
  29372. });
  29373. }
  29374. // TODO: Remove support for `selected` in <option>.
  29375. if (props.selected != null && !didWarnSelectedSetOnOption) {
  29376. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  29377. didWarnSelectedSetOnOption = true;
  29378. }
  29379. }
  29380. }
  29381. function postMountWrapper$1(element, props) {
  29382. // value="" should make a value attribute (#6219)
  29383. if (props.value != null) {
  29384. element.setAttribute('value', toString(getToStringValue(props.value)));
  29385. }
  29386. }
  29387. function getHostProps$1(element, props) {
  29388. var hostProps = _assign({ children: undefined }, props);
  29389. var content = flattenChildren(props.children);
  29390. if (content) {
  29391. hostProps.children = content;
  29392. }
  29393. return hostProps;
  29394. }
  29395. // TODO: direct imports like some-package/src/* are bad. Fix me.
  29396. var didWarnValueDefaultValue$1 = void 0;
  29397. {
  29398. didWarnValueDefaultValue$1 = false;
  29399. }
  29400. function getDeclarationErrorAddendum() {
  29401. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  29402. if (ownerName) {
  29403. return '\n\nCheck the render method of `' + ownerName + '`.';
  29404. }
  29405. return '';
  29406. }
  29407. var valuePropNames = ['value', 'defaultValue'];
  29408. /**
  29409. * Validation function for `value` and `defaultValue`.
  29410. */
  29411. function checkSelectPropTypes(props) {
  29412. ReactControlledValuePropTypes.checkPropTypes('select', props);
  29413. for (var i = 0; i < valuePropNames.length; i++) {
  29414. var propName = valuePropNames[i];
  29415. if (props[propName] == null) {
  29416. continue;
  29417. }
  29418. var isArray = Array.isArray(props[propName]);
  29419. if (props.multiple && !isArray) {
  29420. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  29421. } else if (!props.multiple && isArray) {
  29422. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  29423. }
  29424. }
  29425. }
  29426. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  29427. var options = node.options;
  29428. if (multiple) {
  29429. var selectedValues = propValue;
  29430. var selectedValue = {};
  29431. for (var i = 0; i < selectedValues.length; i++) {
  29432. // Prefix to avoid chaos with special keys.
  29433. selectedValue['$' + selectedValues[i]] = true;
  29434. }
  29435. for (var _i = 0; _i < options.length; _i++) {
  29436. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  29437. if (options[_i].selected !== selected) {
  29438. options[_i].selected = selected;
  29439. }
  29440. if (selected && setDefaultSelected) {
  29441. options[_i].defaultSelected = true;
  29442. }
  29443. }
  29444. } else {
  29445. // Do not set `select.value` as exact behavior isn't consistent across all
  29446. // browsers for all cases.
  29447. var _selectedValue = toString(getToStringValue(propValue));
  29448. var defaultSelected = null;
  29449. for (var _i2 = 0; _i2 < options.length; _i2++) {
  29450. if (options[_i2].value === _selectedValue) {
  29451. options[_i2].selected = true;
  29452. if (setDefaultSelected) {
  29453. options[_i2].defaultSelected = true;
  29454. }
  29455. return;
  29456. }
  29457. if (defaultSelected === null && !options[_i2].disabled) {
  29458. defaultSelected = options[_i2];
  29459. }
  29460. }
  29461. if (defaultSelected !== null) {
  29462. defaultSelected.selected = true;
  29463. }
  29464. }
  29465. }
  29466. /**
  29467. * Implements a <select> host component that allows optionally setting the
  29468. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  29469. * stringable. If `multiple` is true, the prop must be an array of stringables.
  29470. *
  29471. * If `value` is not supplied (or null/undefined), user actions that change the
  29472. * selected option will trigger updates to the rendered options.
  29473. *
  29474. * If it is supplied (and not null/undefined), the rendered options will not
  29475. * update in response to user actions. Instead, the `value` prop must change in
  29476. * order for the rendered options to update.
  29477. *
  29478. * If `defaultValue` is provided, any options with the supplied values will be
  29479. * selected.
  29480. */
  29481. function getHostProps$2(element, props) {
  29482. return _assign({}, props, {
  29483. value: undefined
  29484. });
  29485. }
  29486. function initWrapperState$1(element, props) {
  29487. var node = element;
  29488. {
  29489. checkSelectPropTypes(props);
  29490. }
  29491. node._wrapperState = {
  29492. wasMultiple: !!props.multiple
  29493. };
  29494. {
  29495. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  29496. warning$1(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
  29497. didWarnValueDefaultValue$1 = true;
  29498. }
  29499. }
  29500. }
  29501. function postMountWrapper$2(element, props) {
  29502. var node = element;
  29503. node.multiple = !!props.multiple;
  29504. var value = props.value;
  29505. if (value != null) {
  29506. updateOptions(node, !!props.multiple, value, false);
  29507. } else if (props.defaultValue != null) {
  29508. updateOptions(node, !!props.multiple, props.defaultValue, true);
  29509. }
  29510. }
  29511. function postUpdateWrapper(element, props) {
  29512. var node = element;
  29513. var wasMultiple = node._wrapperState.wasMultiple;
  29514. node._wrapperState.wasMultiple = !!props.multiple;
  29515. var value = props.value;
  29516. if (value != null) {
  29517. updateOptions(node, !!props.multiple, value, false);
  29518. } else if (wasMultiple !== !!props.multiple) {
  29519. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  29520. if (props.defaultValue != null) {
  29521. updateOptions(node, !!props.multiple, props.defaultValue, true);
  29522. } else {
  29523. // Revert the select back to its default unselected state.
  29524. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  29525. }
  29526. }
  29527. }
  29528. function restoreControlledState$2(element, props) {
  29529. var node = element;
  29530. var value = props.value;
  29531. if (value != null) {
  29532. updateOptions(node, !!props.multiple, value, false);
  29533. }
  29534. }
  29535. var didWarnValDefaultVal = false;
  29536. /**
  29537. * Implements a <textarea> host component that allows setting `value`, and
  29538. * `defaultValue`. This differs from the traditional DOM API because value is
  29539. * usually set as PCDATA children.
  29540. *
  29541. * If `value` is not supplied (or null/undefined), user actions that affect the
  29542. * value will trigger updates to the element.
  29543. *
  29544. * If `value` is supplied (and not null/undefined), the rendered element will
  29545. * not trigger updates to the element. Instead, the `value` prop must change in
  29546. * order for the rendered element to be updated.
  29547. *
  29548. * The rendered element will be initialized with an empty value, the prop
  29549. * `defaultValue` if specified, or the children content (deprecated).
  29550. */
  29551. function getHostProps$3(element, props) {
  29552. var node = element;
  29553. (function () {
  29554. if (!(props.dangerouslySetInnerHTML == null)) {
  29555. {
  29556. throw ReactError(Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.'));
  29557. }
  29558. }
  29559. })();
  29560. // Always set children to the same thing. In IE9, the selection range will
  29561. // get reset if `textContent` is mutated. We could add a check in setTextContent
  29562. // to only set the value if/when the value differs from the node value (which would
  29563. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  29564. // solution. The value can be a boolean or object so that's why it's forced
  29565. // to be a string.
  29566. var hostProps = _assign({}, props, {
  29567. value: undefined,
  29568. defaultValue: undefined,
  29569. children: toString(node._wrapperState.initialValue)
  29570. });
  29571. return hostProps;
  29572. }
  29573. function initWrapperState$2(element, props) {
  29574. var node = element;
  29575. {
  29576. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  29577. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  29578. warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  29579. didWarnValDefaultVal = true;
  29580. }
  29581. }
  29582. var initialValue = props.value;
  29583. // Only bother fetching default value if we're going to use it
  29584. if (initialValue == null) {
  29585. var defaultValue = props.defaultValue;
  29586. // TODO (yungsters): Remove support for children content in <textarea>.
  29587. var children = props.children;
  29588. if (children != null) {
  29589. {
  29590. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  29591. }
  29592. (function () {
  29593. if (!(defaultValue == null)) {
  29594. {
  29595. throw ReactError(Error('If you supply `defaultValue` on a <textarea>, do not pass children.'));
  29596. }
  29597. }
  29598. })();
  29599. if (Array.isArray(children)) {
  29600. (function () {
  29601. if (!(children.length <= 1)) {
  29602. {
  29603. throw ReactError(Error('<textarea> can only have at most one child.'));
  29604. }
  29605. }
  29606. })();
  29607. children = children[0];
  29608. }
  29609. defaultValue = children;
  29610. }
  29611. if (defaultValue == null) {
  29612. defaultValue = '';
  29613. }
  29614. initialValue = defaultValue;
  29615. }
  29616. node._wrapperState = {
  29617. initialValue: getToStringValue(initialValue)
  29618. };
  29619. }
  29620. function updateWrapper$1(element, props) {
  29621. var node = element;
  29622. var value = getToStringValue(props.value);
  29623. var defaultValue = getToStringValue(props.defaultValue);
  29624. if (value != null) {
  29625. // Cast `value` to a string to ensure the value is set correctly. While
  29626. // browsers typically do this as necessary, jsdom doesn't.
  29627. var newValue = toString(value);
  29628. // To avoid side effects (such as losing text selection), only set value if changed
  29629. if (newValue !== node.value) {
  29630. node.value = newValue;
  29631. }
  29632. if (props.defaultValue == null && node.defaultValue !== newValue) {
  29633. node.defaultValue = newValue;
  29634. }
  29635. }
  29636. if (defaultValue != null) {
  29637. node.defaultValue = toString(defaultValue);
  29638. }
  29639. }
  29640. function postMountWrapper$3(element, props) {
  29641. var node = element;
  29642. // This is in postMount because we need access to the DOM node, which is not
  29643. // available until after the component has mounted.
  29644. var textContent = node.textContent;
  29645. // Only set node.value if textContent is equal to the expected
  29646. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  29647. // will populate textContent as well.
  29648. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  29649. if (textContent === node._wrapperState.initialValue) {
  29650. node.value = textContent;
  29651. }
  29652. }
  29653. function restoreControlledState$3(element, props) {
  29654. // DOM component is still mounted; update
  29655. updateWrapper$1(element, props);
  29656. }
  29657. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  29658. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  29659. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  29660. var Namespaces = {
  29661. html: HTML_NAMESPACE$1,
  29662. mathml: MATH_NAMESPACE,
  29663. svg: SVG_NAMESPACE
  29664. };
  29665. // Assumes there is no parent namespace.
  29666. function getIntrinsicNamespace(type) {
  29667. switch (type) {
  29668. case 'svg':
  29669. return SVG_NAMESPACE;
  29670. case 'math':
  29671. return MATH_NAMESPACE;
  29672. default:
  29673. return HTML_NAMESPACE$1;
  29674. }
  29675. }
  29676. function getChildNamespace(parentNamespace, type) {
  29677. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  29678. // No (or default) parent namespace: potential entry point.
  29679. return getIntrinsicNamespace(type);
  29680. }
  29681. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  29682. // We're leaving SVG.
  29683. return HTML_NAMESPACE$1;
  29684. }
  29685. // By default, pass namespace below.
  29686. return parentNamespace;
  29687. }
  29688. /* globals MSApp */
  29689. /**
  29690. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  29691. */
  29692. var createMicrosoftUnsafeLocalFunction = function (func) {
  29693. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  29694. return function (arg0, arg1, arg2, arg3) {
  29695. MSApp.execUnsafeLocalFunction(function () {
  29696. return func(arg0, arg1, arg2, arg3);
  29697. });
  29698. };
  29699. } else {
  29700. return func;
  29701. }
  29702. };
  29703. // SVG temp container for IE lacking innerHTML
  29704. var reusableSVGContainer = void 0;
  29705. /**
  29706. * Set the innerHTML property of a node
  29707. *
  29708. * @param {DOMElement} node
  29709. * @param {string} html
  29710. * @internal
  29711. */
  29712. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  29713. // IE does not have innerHTML for SVG nodes, so instead we inject the
  29714. // new markup in a temp node and then move the child nodes across into
  29715. // the target node
  29716. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  29717. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  29718. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  29719. var svgNode = reusableSVGContainer.firstChild;
  29720. while (node.firstChild) {
  29721. node.removeChild(node.firstChild);
  29722. }
  29723. while (svgNode.firstChild) {
  29724. node.appendChild(svgNode.firstChild);
  29725. }
  29726. } else {
  29727. node.innerHTML = html;
  29728. }
  29729. });
  29730. /**
  29731. * Set the textContent property of a node. For text updates, it's faster
  29732. * to set the `nodeValue` of the Text node directly instead of using
  29733. * `.textContent` which will remove the existing node and create a new one.
  29734. *
  29735. * @param {DOMElement} node
  29736. * @param {string} text
  29737. * @internal
  29738. */
  29739. var setTextContent = function (node, text) {
  29740. if (text) {
  29741. var firstChild = node.firstChild;
  29742. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  29743. firstChild.nodeValue = text;
  29744. return;
  29745. }
  29746. }
  29747. node.textContent = text;
  29748. };
  29749. // List derived from Gecko source code:
  29750. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  29751. var shorthandToLonghand = {
  29752. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  29753. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  29754. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  29755. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  29756. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  29757. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  29758. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  29759. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  29760. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  29761. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  29762. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  29763. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  29764. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  29765. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  29766. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  29767. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  29768. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  29769. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  29770. columns: ['columnCount', 'columnWidth'],
  29771. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  29772. flexFlow: ['flexDirection', 'flexWrap'],
  29773. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  29774. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  29775. gap: ['columnGap', 'rowGap'],
  29776. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  29777. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  29778. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  29779. gridColumnGap: ['columnGap'],
  29780. gridGap: ['columnGap', 'rowGap'],
  29781. gridRow: ['gridRowEnd', 'gridRowStart'],
  29782. gridRowGap: ['rowGap'],
  29783. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  29784. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  29785. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  29786. marker: ['markerEnd', 'markerMid', 'markerStart'],
  29787. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  29788. maskPosition: ['maskPositionX', 'maskPositionY'],
  29789. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  29790. overflow: ['overflowX', 'overflowY'],
  29791. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  29792. placeContent: ['alignContent', 'justifyContent'],
  29793. placeItems: ['alignItems', 'justifyItems'],
  29794. placeSelf: ['alignSelf', 'justifySelf'],
  29795. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  29796. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  29797. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  29798. wordWrap: ['overflowWrap']
  29799. };
  29800. /**
  29801. * CSS properties which accept numbers but are not in units of "px".
  29802. */
  29803. var isUnitlessNumber = {
  29804. animationIterationCount: true,
  29805. borderImageOutset: true,
  29806. borderImageSlice: true,
  29807. borderImageWidth: true,
  29808. boxFlex: true,
  29809. boxFlexGroup: true,
  29810. boxOrdinalGroup: true,
  29811. columnCount: true,
  29812. columns: true,
  29813. flex: true,
  29814. flexGrow: true,
  29815. flexPositive: true,
  29816. flexShrink: true,
  29817. flexNegative: true,
  29818. flexOrder: true,
  29819. gridArea: true,
  29820. gridRow: true,
  29821. gridRowEnd: true,
  29822. gridRowSpan: true,
  29823. gridRowStart: true,
  29824. gridColumn: true,
  29825. gridColumnEnd: true,
  29826. gridColumnSpan: true,
  29827. gridColumnStart: true,
  29828. fontWeight: true,
  29829. lineClamp: true,
  29830. lineHeight: true,
  29831. opacity: true,
  29832. order: true,
  29833. orphans: true,
  29834. tabSize: true,
  29835. widows: true,
  29836. zIndex: true,
  29837. zoom: true,
  29838. // SVG-related properties
  29839. fillOpacity: true,
  29840. floodOpacity: true,
  29841. stopOpacity: true,
  29842. strokeDasharray: true,
  29843. strokeDashoffset: true,
  29844. strokeMiterlimit: true,
  29845. strokeOpacity: true,
  29846. strokeWidth: true
  29847. };
  29848. /**
  29849. * @param {string} prefix vendor-specific prefix, eg: Webkit
  29850. * @param {string} key style name, eg: transitionDuration
  29851. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  29852. * WebkitTransitionDuration
  29853. */
  29854. function prefixKey(prefix, key) {
  29855. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  29856. }
  29857. /**
  29858. * Support style names that may come passed in prefixed by adding permutations
  29859. * of vendor prefixes.
  29860. */
  29861. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  29862. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  29863. // infinite loop, because it iterates over the newly added props too.
  29864. Object.keys(isUnitlessNumber).forEach(function (prop) {
  29865. prefixes.forEach(function (prefix) {
  29866. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  29867. });
  29868. });
  29869. /**
  29870. * Convert a value into the proper css writable value. The style name `name`
  29871. * should be logical (no hyphens), as specified
  29872. * in `CSSProperty.isUnitlessNumber`.
  29873. *
  29874. * @param {string} name CSS property name such as `topMargin`.
  29875. * @param {*} value CSS property value such as `10px`.
  29876. * @return {string} Normalized style value with dimensions applied.
  29877. */
  29878. function dangerousStyleValue(name, value, isCustomProperty) {
  29879. // Note that we've removed escapeTextForBrowser() calls here since the
  29880. // whole string will be escaped when the attribute is injected into
  29881. // the markup. If you provide unsafe user data here they can inject
  29882. // arbitrary CSS which may be problematic (I couldn't repro this):
  29883. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  29884. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  29885. // This is not an XSS hole but instead a potential CSS injection issue
  29886. // which has lead to a greater discussion about how we're going to
  29887. // trust URLs moving forward. See #2115901
  29888. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  29889. if (isEmpty) {
  29890. return '';
  29891. }
  29892. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  29893. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  29894. }
  29895. return ('' + value).trim();
  29896. }
  29897. var uppercasePattern = /([A-Z])/g;
  29898. var msPattern = /^ms-/;
  29899. /**
  29900. * Hyphenates a camelcased CSS property name, for example:
  29901. *
  29902. * > hyphenateStyleName('backgroundColor')
  29903. * < "background-color"
  29904. * > hyphenateStyleName('MozTransition')
  29905. * < "-moz-transition"
  29906. * > hyphenateStyleName('msTransition')
  29907. * < "-ms-transition"
  29908. *
  29909. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  29910. * is converted to `-ms-`.
  29911. */
  29912. function hyphenateStyleName(name) {
  29913. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  29914. }
  29915. var warnValidStyle = function () {};
  29916. {
  29917. // 'msTransform' is correct, but the other prefixes should be capitalized
  29918. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  29919. var msPattern$1 = /^-ms-/;
  29920. var hyphenPattern = /-(.)/g;
  29921. // style values shouldn't contain a semicolon
  29922. var badStyleValueWithSemicolonPattern = /;\s*$/;
  29923. var warnedStyleNames = {};
  29924. var warnedStyleValues = {};
  29925. var warnedForNaNValue = false;
  29926. var warnedForInfinityValue = false;
  29927. var camelize = function (string) {
  29928. return string.replace(hyphenPattern, function (_, character) {
  29929. return character.toUpperCase();
  29930. });
  29931. };
  29932. var warnHyphenatedStyleName = function (name) {
  29933. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  29934. return;
  29935. }
  29936. warnedStyleNames[name] = true;
  29937. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  29938. // As Andi Smith suggests
  29939. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  29940. // is converted to lowercase `ms`.
  29941. camelize(name.replace(msPattern$1, 'ms-')));
  29942. };
  29943. var warnBadVendoredStyleName = function (name) {
  29944. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  29945. return;
  29946. }
  29947. warnedStyleNames[name] = true;
  29948. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  29949. };
  29950. var warnStyleValueWithSemicolon = function (name, value) {
  29951. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  29952. return;
  29953. }
  29954. warnedStyleValues[value] = true;
  29955. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  29956. };
  29957. var warnStyleValueIsNaN = function (name, value) {
  29958. if (warnedForNaNValue) {
  29959. return;
  29960. }
  29961. warnedForNaNValue = true;
  29962. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  29963. };
  29964. var warnStyleValueIsInfinity = function (name, value) {
  29965. if (warnedForInfinityValue) {
  29966. return;
  29967. }
  29968. warnedForInfinityValue = true;
  29969. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  29970. };
  29971. warnValidStyle = function (name, value) {
  29972. if (name.indexOf('-') > -1) {
  29973. warnHyphenatedStyleName(name);
  29974. } else if (badVendoredStyleNamePattern.test(name)) {
  29975. warnBadVendoredStyleName(name);
  29976. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  29977. warnStyleValueWithSemicolon(name, value);
  29978. }
  29979. if (typeof value === 'number') {
  29980. if (isNaN(value)) {
  29981. warnStyleValueIsNaN(name, value);
  29982. } else if (!isFinite(value)) {
  29983. warnStyleValueIsInfinity(name, value);
  29984. }
  29985. }
  29986. };
  29987. }
  29988. var warnValidStyle$1 = warnValidStyle;
  29989. /**
  29990. * Operations for dealing with CSS properties.
  29991. */
  29992. /**
  29993. * This creates a string that is expected to be equivalent to the style
  29994. * attribute generated by server-side rendering. It by-passes warnings and
  29995. * security checks so it's not safe to use this value for anything other than
  29996. * comparison. It is only used in DEV for SSR validation.
  29997. */
  29998. function createDangerousStringForStyles(styles) {
  29999. {
  30000. var serialized = '';
  30001. var delimiter = '';
  30002. for (var styleName in styles) {
  30003. if (!styles.hasOwnProperty(styleName)) {
  30004. continue;
  30005. }
  30006. var styleValue = styles[styleName];
  30007. if (styleValue != null) {
  30008. var isCustomProperty = styleName.indexOf('--') === 0;
  30009. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  30010. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  30011. delimiter = ';';
  30012. }
  30013. }
  30014. return serialized || null;
  30015. }
  30016. }
  30017. /**
  30018. * Sets the value for multiple styles on a node. If a value is specified as
  30019. * '' (empty string), the corresponding style property will be unset.
  30020. *
  30021. * @param {DOMElement} node
  30022. * @param {object} styles
  30023. */
  30024. function setValueForStyles(node, styles) {
  30025. var style = node.style;
  30026. for (var styleName in styles) {
  30027. if (!styles.hasOwnProperty(styleName)) {
  30028. continue;
  30029. }
  30030. var isCustomProperty = styleName.indexOf('--') === 0;
  30031. {
  30032. if (!isCustomProperty) {
  30033. warnValidStyle$1(styleName, styles[styleName]);
  30034. }
  30035. }
  30036. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  30037. if (styleName === 'float') {
  30038. styleName = 'cssFloat';
  30039. }
  30040. if (isCustomProperty) {
  30041. style.setProperty(styleName, styleValue);
  30042. } else {
  30043. style[styleName] = styleValue;
  30044. }
  30045. }
  30046. }
  30047. function isValueEmpty(value) {
  30048. return value == null || typeof value === 'boolean' || value === '';
  30049. }
  30050. /**
  30051. * Given {color: 'red', overflow: 'hidden'} returns {
  30052. * color: 'color',
  30053. * overflowX: 'overflow',
  30054. * overflowY: 'overflow',
  30055. * }. This can be read as "the overflowY property was set by the overflow
  30056. * shorthand". That is, the values are the property that each was derived from.
  30057. */
  30058. function expandShorthandMap(styles) {
  30059. var expanded = {};
  30060. for (var key in styles) {
  30061. var longhands = shorthandToLonghand[key] || [key];
  30062. for (var i = 0; i < longhands.length; i++) {
  30063. expanded[longhands[i]] = key;
  30064. }
  30065. }
  30066. return expanded;
  30067. }
  30068. /**
  30069. * When mixing shorthand and longhand property names, we warn during updates if
  30070. * we expect an incorrect result to occur. In particular, we warn for:
  30071. *
  30072. * Updating a shorthand property (longhand gets overwritten):
  30073. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  30074. * becomes .style.font = 'baz'
  30075. * Removing a shorthand property (longhand gets lost too):
  30076. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  30077. * becomes .style.font = ''
  30078. * Removing a longhand property (should revert to shorthand; doesn't):
  30079. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  30080. * becomes .style.fontVariant = ''
  30081. */
  30082. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  30083. if (!warnAboutShorthandPropertyCollision) {
  30084. return;
  30085. }
  30086. if (!nextStyles) {
  30087. return;
  30088. }
  30089. var expandedUpdates = expandShorthandMap(styleUpdates);
  30090. var expandedStyles = expandShorthandMap(nextStyles);
  30091. var warnedAbout = {};
  30092. for (var key in expandedUpdates) {
  30093. var originalKey = expandedUpdates[key];
  30094. var correctOriginalKey = expandedStyles[key];
  30095. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  30096. var warningKey = originalKey + ',' + correctOriginalKey;
  30097. if (warnedAbout[warningKey]) {
  30098. continue;
  30099. }
  30100. warnedAbout[warningKey] = true;
  30101. warning$1(false, '%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
  30102. }
  30103. }
  30104. }
  30105. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  30106. // those special-case tags.
  30107. var omittedCloseTags = {
  30108. area: true,
  30109. base: true,
  30110. br: true,
  30111. col: true,
  30112. embed: true,
  30113. hr: true,
  30114. img: true,
  30115. input: true,
  30116. keygen: true,
  30117. link: true,
  30118. meta: true,
  30119. param: true,
  30120. source: true,
  30121. track: true,
  30122. wbr: true
  30123. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  30124. };
  30125. // For HTML, certain tags cannot have children. This has the same purpose as
  30126. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  30127. var voidElementTags = _assign({
  30128. menuitem: true
  30129. }, omittedCloseTags);
  30130. // TODO: We can remove this if we add invariantWithStack()
  30131. // or add stack by default to invariants where possible.
  30132. var HTML$1 = '__html';
  30133. var ReactDebugCurrentFrame$3 = null;
  30134. {
  30135. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  30136. }
  30137. function assertValidProps(tag, props) {
  30138. if (!props) {
  30139. return;
  30140. }
  30141. // Note the use of `==` which checks for null or undefined.
  30142. if (voidElementTags[tag]) {
  30143. (function () {
  30144. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  30145. {
  30146. throw ReactError(Error(tag + ' is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  30147. }
  30148. }
  30149. })();
  30150. }
  30151. if (props.dangerouslySetInnerHTML != null) {
  30152. (function () {
  30153. if (!(props.children == null)) {
  30154. {
  30155. throw ReactError(Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.'));
  30156. }
  30157. }
  30158. })();
  30159. (function () {
  30160. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML)) {
  30161. {
  30162. throw ReactError(Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.'));
  30163. }
  30164. }
  30165. })();
  30166. }
  30167. {
  30168. !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
  30169. }
  30170. (function () {
  30171. if (!(props.style == null || typeof props.style === 'object')) {
  30172. {
  30173. throw ReactError(Error('The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  30174. }
  30175. }
  30176. })();
  30177. }
  30178. function isCustomComponent(tagName, props) {
  30179. if (tagName.indexOf('-') === -1) {
  30180. return typeof props.is === 'string';
  30181. }
  30182. switch (tagName) {
  30183. // These are reserved SVG and MathML elements.
  30184. // We don't mind this whitelist too much because we expect it to never grow.
  30185. // The alternative is to track the namespace in a few places which is convoluted.
  30186. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  30187. case 'annotation-xml':
  30188. case 'color-profile':
  30189. case 'font-face':
  30190. case 'font-face-src':
  30191. case 'font-face-uri':
  30192. case 'font-face-format':
  30193. case 'font-face-name':
  30194. case 'missing-glyph':
  30195. return false;
  30196. default:
  30197. return true;
  30198. }
  30199. }
  30200. // When adding attributes to the HTML or SVG whitelist, be sure to
  30201. // also add them to this module to ensure casing and incorrect name
  30202. // warnings.
  30203. var possibleStandardNames = {
  30204. // HTML
  30205. accept: 'accept',
  30206. acceptcharset: 'acceptCharset',
  30207. 'accept-charset': 'acceptCharset',
  30208. accesskey: 'accessKey',
  30209. action: 'action',
  30210. allowfullscreen: 'allowFullScreen',
  30211. alt: 'alt',
  30212. as: 'as',
  30213. async: 'async',
  30214. autocapitalize: 'autoCapitalize',
  30215. autocomplete: 'autoComplete',
  30216. autocorrect: 'autoCorrect',
  30217. autofocus: 'autoFocus',
  30218. autoplay: 'autoPlay',
  30219. autosave: 'autoSave',
  30220. capture: 'capture',
  30221. cellpadding: 'cellPadding',
  30222. cellspacing: 'cellSpacing',
  30223. challenge: 'challenge',
  30224. charset: 'charSet',
  30225. checked: 'checked',
  30226. children: 'children',
  30227. cite: 'cite',
  30228. class: 'className',
  30229. classid: 'classID',
  30230. classname: 'className',
  30231. cols: 'cols',
  30232. colspan: 'colSpan',
  30233. content: 'content',
  30234. contenteditable: 'contentEditable',
  30235. contextmenu: 'contextMenu',
  30236. controls: 'controls',
  30237. controlslist: 'controlsList',
  30238. coords: 'coords',
  30239. crossorigin: 'crossOrigin',
  30240. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  30241. data: 'data',
  30242. datetime: 'dateTime',
  30243. default: 'default',
  30244. defaultchecked: 'defaultChecked',
  30245. defaultvalue: 'defaultValue',
  30246. defer: 'defer',
  30247. dir: 'dir',
  30248. disabled: 'disabled',
  30249. disablepictureinpicture: 'disablePictureInPicture',
  30250. download: 'download',
  30251. draggable: 'draggable',
  30252. enctype: 'encType',
  30253. for: 'htmlFor',
  30254. form: 'form',
  30255. formmethod: 'formMethod',
  30256. formaction: 'formAction',
  30257. formenctype: 'formEncType',
  30258. formnovalidate: 'formNoValidate',
  30259. formtarget: 'formTarget',
  30260. frameborder: 'frameBorder',
  30261. headers: 'headers',
  30262. height: 'height',
  30263. hidden: 'hidden',
  30264. high: 'high',
  30265. href: 'href',
  30266. hreflang: 'hrefLang',
  30267. htmlfor: 'htmlFor',
  30268. httpequiv: 'httpEquiv',
  30269. 'http-equiv': 'httpEquiv',
  30270. icon: 'icon',
  30271. id: 'id',
  30272. innerhtml: 'innerHTML',
  30273. inputmode: 'inputMode',
  30274. integrity: 'integrity',
  30275. is: 'is',
  30276. itemid: 'itemID',
  30277. itemprop: 'itemProp',
  30278. itemref: 'itemRef',
  30279. itemscope: 'itemScope',
  30280. itemtype: 'itemType',
  30281. keyparams: 'keyParams',
  30282. keytype: 'keyType',
  30283. kind: 'kind',
  30284. label: 'label',
  30285. lang: 'lang',
  30286. list: 'list',
  30287. loop: 'loop',
  30288. low: 'low',
  30289. manifest: 'manifest',
  30290. marginwidth: 'marginWidth',
  30291. marginheight: 'marginHeight',
  30292. max: 'max',
  30293. maxlength: 'maxLength',
  30294. media: 'media',
  30295. mediagroup: 'mediaGroup',
  30296. method: 'method',
  30297. min: 'min',
  30298. minlength: 'minLength',
  30299. multiple: 'multiple',
  30300. muted: 'muted',
  30301. name: 'name',
  30302. nomodule: 'noModule',
  30303. nonce: 'nonce',
  30304. novalidate: 'noValidate',
  30305. open: 'open',
  30306. optimum: 'optimum',
  30307. pattern: 'pattern',
  30308. placeholder: 'placeholder',
  30309. playsinline: 'playsInline',
  30310. poster: 'poster',
  30311. preload: 'preload',
  30312. profile: 'profile',
  30313. radiogroup: 'radioGroup',
  30314. readonly: 'readOnly',
  30315. referrerpolicy: 'referrerPolicy',
  30316. rel: 'rel',
  30317. required: 'required',
  30318. reversed: 'reversed',
  30319. role: 'role',
  30320. rows: 'rows',
  30321. rowspan: 'rowSpan',
  30322. sandbox: 'sandbox',
  30323. scope: 'scope',
  30324. scoped: 'scoped',
  30325. scrolling: 'scrolling',
  30326. seamless: 'seamless',
  30327. selected: 'selected',
  30328. shape: 'shape',
  30329. size: 'size',
  30330. sizes: 'sizes',
  30331. span: 'span',
  30332. spellcheck: 'spellCheck',
  30333. src: 'src',
  30334. srcdoc: 'srcDoc',
  30335. srclang: 'srcLang',
  30336. srcset: 'srcSet',
  30337. start: 'start',
  30338. step: 'step',
  30339. style: 'style',
  30340. summary: 'summary',
  30341. tabindex: 'tabIndex',
  30342. target: 'target',
  30343. title: 'title',
  30344. type: 'type',
  30345. usemap: 'useMap',
  30346. value: 'value',
  30347. width: 'width',
  30348. wmode: 'wmode',
  30349. wrap: 'wrap',
  30350. // SVG
  30351. about: 'about',
  30352. accentheight: 'accentHeight',
  30353. 'accent-height': 'accentHeight',
  30354. accumulate: 'accumulate',
  30355. additive: 'additive',
  30356. alignmentbaseline: 'alignmentBaseline',
  30357. 'alignment-baseline': 'alignmentBaseline',
  30358. allowreorder: 'allowReorder',
  30359. alphabetic: 'alphabetic',
  30360. amplitude: 'amplitude',
  30361. arabicform: 'arabicForm',
  30362. 'arabic-form': 'arabicForm',
  30363. ascent: 'ascent',
  30364. attributename: 'attributeName',
  30365. attributetype: 'attributeType',
  30366. autoreverse: 'autoReverse',
  30367. azimuth: 'azimuth',
  30368. basefrequency: 'baseFrequency',
  30369. baselineshift: 'baselineShift',
  30370. 'baseline-shift': 'baselineShift',
  30371. baseprofile: 'baseProfile',
  30372. bbox: 'bbox',
  30373. begin: 'begin',
  30374. bias: 'bias',
  30375. by: 'by',
  30376. calcmode: 'calcMode',
  30377. capheight: 'capHeight',
  30378. 'cap-height': 'capHeight',
  30379. clip: 'clip',
  30380. clippath: 'clipPath',
  30381. 'clip-path': 'clipPath',
  30382. clippathunits: 'clipPathUnits',
  30383. cliprule: 'clipRule',
  30384. 'clip-rule': 'clipRule',
  30385. color: 'color',
  30386. colorinterpolation: 'colorInterpolation',
  30387. 'color-interpolation': 'colorInterpolation',
  30388. colorinterpolationfilters: 'colorInterpolationFilters',
  30389. 'color-interpolation-filters': 'colorInterpolationFilters',
  30390. colorprofile: 'colorProfile',
  30391. 'color-profile': 'colorProfile',
  30392. colorrendering: 'colorRendering',
  30393. 'color-rendering': 'colorRendering',
  30394. contentscripttype: 'contentScriptType',
  30395. contentstyletype: 'contentStyleType',
  30396. cursor: 'cursor',
  30397. cx: 'cx',
  30398. cy: 'cy',
  30399. d: 'd',
  30400. datatype: 'datatype',
  30401. decelerate: 'decelerate',
  30402. descent: 'descent',
  30403. diffuseconstant: 'diffuseConstant',
  30404. direction: 'direction',
  30405. display: 'display',
  30406. divisor: 'divisor',
  30407. dominantbaseline: 'dominantBaseline',
  30408. 'dominant-baseline': 'dominantBaseline',
  30409. dur: 'dur',
  30410. dx: 'dx',
  30411. dy: 'dy',
  30412. edgemode: 'edgeMode',
  30413. elevation: 'elevation',
  30414. enablebackground: 'enableBackground',
  30415. 'enable-background': 'enableBackground',
  30416. end: 'end',
  30417. exponent: 'exponent',
  30418. externalresourcesrequired: 'externalResourcesRequired',
  30419. fill: 'fill',
  30420. fillopacity: 'fillOpacity',
  30421. 'fill-opacity': 'fillOpacity',
  30422. fillrule: 'fillRule',
  30423. 'fill-rule': 'fillRule',
  30424. filter: 'filter',
  30425. filterres: 'filterRes',
  30426. filterunits: 'filterUnits',
  30427. floodopacity: 'floodOpacity',
  30428. 'flood-opacity': 'floodOpacity',
  30429. floodcolor: 'floodColor',
  30430. 'flood-color': 'floodColor',
  30431. focusable: 'focusable',
  30432. fontfamily: 'fontFamily',
  30433. 'font-family': 'fontFamily',
  30434. fontsize: 'fontSize',
  30435. 'font-size': 'fontSize',
  30436. fontsizeadjust: 'fontSizeAdjust',
  30437. 'font-size-adjust': 'fontSizeAdjust',
  30438. fontstretch: 'fontStretch',
  30439. 'font-stretch': 'fontStretch',
  30440. fontstyle: 'fontStyle',
  30441. 'font-style': 'fontStyle',
  30442. fontvariant: 'fontVariant',
  30443. 'font-variant': 'fontVariant',
  30444. fontweight: 'fontWeight',
  30445. 'font-weight': 'fontWeight',
  30446. format: 'format',
  30447. from: 'from',
  30448. fx: 'fx',
  30449. fy: 'fy',
  30450. g1: 'g1',
  30451. g2: 'g2',
  30452. glyphname: 'glyphName',
  30453. 'glyph-name': 'glyphName',
  30454. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  30455. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  30456. glyphorientationvertical: 'glyphOrientationVertical',
  30457. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  30458. glyphref: 'glyphRef',
  30459. gradienttransform: 'gradientTransform',
  30460. gradientunits: 'gradientUnits',
  30461. hanging: 'hanging',
  30462. horizadvx: 'horizAdvX',
  30463. 'horiz-adv-x': 'horizAdvX',
  30464. horizoriginx: 'horizOriginX',
  30465. 'horiz-origin-x': 'horizOriginX',
  30466. ideographic: 'ideographic',
  30467. imagerendering: 'imageRendering',
  30468. 'image-rendering': 'imageRendering',
  30469. in2: 'in2',
  30470. in: 'in',
  30471. inlist: 'inlist',
  30472. intercept: 'intercept',
  30473. k1: 'k1',
  30474. k2: 'k2',
  30475. k3: 'k3',
  30476. k4: 'k4',
  30477. k: 'k',
  30478. kernelmatrix: 'kernelMatrix',
  30479. kernelunitlength: 'kernelUnitLength',
  30480. kerning: 'kerning',
  30481. keypoints: 'keyPoints',
  30482. keysplines: 'keySplines',
  30483. keytimes: 'keyTimes',
  30484. lengthadjust: 'lengthAdjust',
  30485. letterspacing: 'letterSpacing',
  30486. 'letter-spacing': 'letterSpacing',
  30487. lightingcolor: 'lightingColor',
  30488. 'lighting-color': 'lightingColor',
  30489. limitingconeangle: 'limitingConeAngle',
  30490. local: 'local',
  30491. markerend: 'markerEnd',
  30492. 'marker-end': 'markerEnd',
  30493. markerheight: 'markerHeight',
  30494. markermid: 'markerMid',
  30495. 'marker-mid': 'markerMid',
  30496. markerstart: 'markerStart',
  30497. 'marker-start': 'markerStart',
  30498. markerunits: 'markerUnits',
  30499. markerwidth: 'markerWidth',
  30500. mask: 'mask',
  30501. maskcontentunits: 'maskContentUnits',
  30502. maskunits: 'maskUnits',
  30503. mathematical: 'mathematical',
  30504. mode: 'mode',
  30505. numoctaves: 'numOctaves',
  30506. offset: 'offset',
  30507. opacity: 'opacity',
  30508. operator: 'operator',
  30509. order: 'order',
  30510. orient: 'orient',
  30511. orientation: 'orientation',
  30512. origin: 'origin',
  30513. overflow: 'overflow',
  30514. overlineposition: 'overlinePosition',
  30515. 'overline-position': 'overlinePosition',
  30516. overlinethickness: 'overlineThickness',
  30517. 'overline-thickness': 'overlineThickness',
  30518. paintorder: 'paintOrder',
  30519. 'paint-order': 'paintOrder',
  30520. panose1: 'panose1',
  30521. 'panose-1': 'panose1',
  30522. pathlength: 'pathLength',
  30523. patterncontentunits: 'patternContentUnits',
  30524. patterntransform: 'patternTransform',
  30525. patternunits: 'patternUnits',
  30526. pointerevents: 'pointerEvents',
  30527. 'pointer-events': 'pointerEvents',
  30528. points: 'points',
  30529. pointsatx: 'pointsAtX',
  30530. pointsaty: 'pointsAtY',
  30531. pointsatz: 'pointsAtZ',
  30532. prefix: 'prefix',
  30533. preservealpha: 'preserveAlpha',
  30534. preserveaspectratio: 'preserveAspectRatio',
  30535. primitiveunits: 'primitiveUnits',
  30536. property: 'property',
  30537. r: 'r',
  30538. radius: 'radius',
  30539. refx: 'refX',
  30540. refy: 'refY',
  30541. renderingintent: 'renderingIntent',
  30542. 'rendering-intent': 'renderingIntent',
  30543. repeatcount: 'repeatCount',
  30544. repeatdur: 'repeatDur',
  30545. requiredextensions: 'requiredExtensions',
  30546. requiredfeatures: 'requiredFeatures',
  30547. resource: 'resource',
  30548. restart: 'restart',
  30549. result: 'result',
  30550. results: 'results',
  30551. rotate: 'rotate',
  30552. rx: 'rx',
  30553. ry: 'ry',
  30554. scale: 'scale',
  30555. security: 'security',
  30556. seed: 'seed',
  30557. shaperendering: 'shapeRendering',
  30558. 'shape-rendering': 'shapeRendering',
  30559. slope: 'slope',
  30560. spacing: 'spacing',
  30561. specularconstant: 'specularConstant',
  30562. specularexponent: 'specularExponent',
  30563. speed: 'speed',
  30564. spreadmethod: 'spreadMethod',
  30565. startoffset: 'startOffset',
  30566. stddeviation: 'stdDeviation',
  30567. stemh: 'stemh',
  30568. stemv: 'stemv',
  30569. stitchtiles: 'stitchTiles',
  30570. stopcolor: 'stopColor',
  30571. 'stop-color': 'stopColor',
  30572. stopopacity: 'stopOpacity',
  30573. 'stop-opacity': 'stopOpacity',
  30574. strikethroughposition: 'strikethroughPosition',
  30575. 'strikethrough-position': 'strikethroughPosition',
  30576. strikethroughthickness: 'strikethroughThickness',
  30577. 'strikethrough-thickness': 'strikethroughThickness',
  30578. string: 'string',
  30579. stroke: 'stroke',
  30580. strokedasharray: 'strokeDasharray',
  30581. 'stroke-dasharray': 'strokeDasharray',
  30582. strokedashoffset: 'strokeDashoffset',
  30583. 'stroke-dashoffset': 'strokeDashoffset',
  30584. strokelinecap: 'strokeLinecap',
  30585. 'stroke-linecap': 'strokeLinecap',
  30586. strokelinejoin: 'strokeLinejoin',
  30587. 'stroke-linejoin': 'strokeLinejoin',
  30588. strokemiterlimit: 'strokeMiterlimit',
  30589. 'stroke-miterlimit': 'strokeMiterlimit',
  30590. strokewidth: 'strokeWidth',
  30591. 'stroke-width': 'strokeWidth',
  30592. strokeopacity: 'strokeOpacity',
  30593. 'stroke-opacity': 'strokeOpacity',
  30594. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  30595. suppresshydrationwarning: 'suppressHydrationWarning',
  30596. surfacescale: 'surfaceScale',
  30597. systemlanguage: 'systemLanguage',
  30598. tablevalues: 'tableValues',
  30599. targetx: 'targetX',
  30600. targety: 'targetY',
  30601. textanchor: 'textAnchor',
  30602. 'text-anchor': 'textAnchor',
  30603. textdecoration: 'textDecoration',
  30604. 'text-decoration': 'textDecoration',
  30605. textlength: 'textLength',
  30606. textrendering: 'textRendering',
  30607. 'text-rendering': 'textRendering',
  30608. to: 'to',
  30609. transform: 'transform',
  30610. typeof: 'typeof',
  30611. u1: 'u1',
  30612. u2: 'u2',
  30613. underlineposition: 'underlinePosition',
  30614. 'underline-position': 'underlinePosition',
  30615. underlinethickness: 'underlineThickness',
  30616. 'underline-thickness': 'underlineThickness',
  30617. unicode: 'unicode',
  30618. unicodebidi: 'unicodeBidi',
  30619. 'unicode-bidi': 'unicodeBidi',
  30620. unicoderange: 'unicodeRange',
  30621. 'unicode-range': 'unicodeRange',
  30622. unitsperem: 'unitsPerEm',
  30623. 'units-per-em': 'unitsPerEm',
  30624. unselectable: 'unselectable',
  30625. valphabetic: 'vAlphabetic',
  30626. 'v-alphabetic': 'vAlphabetic',
  30627. values: 'values',
  30628. vectoreffect: 'vectorEffect',
  30629. 'vector-effect': 'vectorEffect',
  30630. version: 'version',
  30631. vertadvy: 'vertAdvY',
  30632. 'vert-adv-y': 'vertAdvY',
  30633. vertoriginx: 'vertOriginX',
  30634. 'vert-origin-x': 'vertOriginX',
  30635. vertoriginy: 'vertOriginY',
  30636. 'vert-origin-y': 'vertOriginY',
  30637. vhanging: 'vHanging',
  30638. 'v-hanging': 'vHanging',
  30639. videographic: 'vIdeographic',
  30640. 'v-ideographic': 'vIdeographic',
  30641. viewbox: 'viewBox',
  30642. viewtarget: 'viewTarget',
  30643. visibility: 'visibility',
  30644. vmathematical: 'vMathematical',
  30645. 'v-mathematical': 'vMathematical',
  30646. vocab: 'vocab',
  30647. widths: 'widths',
  30648. wordspacing: 'wordSpacing',
  30649. 'word-spacing': 'wordSpacing',
  30650. writingmode: 'writingMode',
  30651. 'writing-mode': 'writingMode',
  30652. x1: 'x1',
  30653. x2: 'x2',
  30654. x: 'x',
  30655. xchannelselector: 'xChannelSelector',
  30656. xheight: 'xHeight',
  30657. 'x-height': 'xHeight',
  30658. xlinkactuate: 'xlinkActuate',
  30659. 'xlink:actuate': 'xlinkActuate',
  30660. xlinkarcrole: 'xlinkArcrole',
  30661. 'xlink:arcrole': 'xlinkArcrole',
  30662. xlinkhref: 'xlinkHref',
  30663. 'xlink:href': 'xlinkHref',
  30664. xlinkrole: 'xlinkRole',
  30665. 'xlink:role': 'xlinkRole',
  30666. xlinkshow: 'xlinkShow',
  30667. 'xlink:show': 'xlinkShow',
  30668. xlinktitle: 'xlinkTitle',
  30669. 'xlink:title': 'xlinkTitle',
  30670. xlinktype: 'xlinkType',
  30671. 'xlink:type': 'xlinkType',
  30672. xmlbase: 'xmlBase',
  30673. 'xml:base': 'xmlBase',
  30674. xmllang: 'xmlLang',
  30675. 'xml:lang': 'xmlLang',
  30676. xmlns: 'xmlns',
  30677. 'xml:space': 'xmlSpace',
  30678. xmlnsxlink: 'xmlnsXlink',
  30679. 'xmlns:xlink': 'xmlnsXlink',
  30680. xmlspace: 'xmlSpace',
  30681. y1: 'y1',
  30682. y2: 'y2',
  30683. y: 'y',
  30684. ychannelselector: 'yChannelSelector',
  30685. z: 'z',
  30686. zoomandpan: 'zoomAndPan'
  30687. };
  30688. var ariaProperties = {
  30689. 'aria-current': 0, // state
  30690. 'aria-details': 0,
  30691. 'aria-disabled': 0, // state
  30692. 'aria-hidden': 0, // state
  30693. 'aria-invalid': 0, // state
  30694. 'aria-keyshortcuts': 0,
  30695. 'aria-label': 0,
  30696. 'aria-roledescription': 0,
  30697. // Widget Attributes
  30698. 'aria-autocomplete': 0,
  30699. 'aria-checked': 0,
  30700. 'aria-expanded': 0,
  30701. 'aria-haspopup': 0,
  30702. 'aria-level': 0,
  30703. 'aria-modal': 0,
  30704. 'aria-multiline': 0,
  30705. 'aria-multiselectable': 0,
  30706. 'aria-orientation': 0,
  30707. 'aria-placeholder': 0,
  30708. 'aria-pressed': 0,
  30709. 'aria-readonly': 0,
  30710. 'aria-required': 0,
  30711. 'aria-selected': 0,
  30712. 'aria-sort': 0,
  30713. 'aria-valuemax': 0,
  30714. 'aria-valuemin': 0,
  30715. 'aria-valuenow': 0,
  30716. 'aria-valuetext': 0,
  30717. // Live Region Attributes
  30718. 'aria-atomic': 0,
  30719. 'aria-busy': 0,
  30720. 'aria-live': 0,
  30721. 'aria-relevant': 0,
  30722. // Drag-and-Drop Attributes
  30723. 'aria-dropeffect': 0,
  30724. 'aria-grabbed': 0,
  30725. // Relationship Attributes
  30726. 'aria-activedescendant': 0,
  30727. 'aria-colcount': 0,
  30728. 'aria-colindex': 0,
  30729. 'aria-colspan': 0,
  30730. 'aria-controls': 0,
  30731. 'aria-describedby': 0,
  30732. 'aria-errormessage': 0,
  30733. 'aria-flowto': 0,
  30734. 'aria-labelledby': 0,
  30735. 'aria-owns': 0,
  30736. 'aria-posinset': 0,
  30737. 'aria-rowcount': 0,
  30738. 'aria-rowindex': 0,
  30739. 'aria-rowspan': 0,
  30740. 'aria-setsize': 0
  30741. };
  30742. var warnedProperties = {};
  30743. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  30744. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  30745. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  30746. function validateProperty(tagName, name) {
  30747. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  30748. return true;
  30749. }
  30750. if (rARIACamel.test(name)) {
  30751. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  30752. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  30753. // If this is an aria-* attribute, but is not listed in the known DOM
  30754. // DOM properties, then it is an invalid aria-* attribute.
  30755. if (correctName == null) {
  30756. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  30757. warnedProperties[name] = true;
  30758. return true;
  30759. }
  30760. // aria-* attributes should be lowercase; suggest the lowercase version.
  30761. if (name !== correctName) {
  30762. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  30763. warnedProperties[name] = true;
  30764. return true;
  30765. }
  30766. }
  30767. if (rARIA.test(name)) {
  30768. var lowerCasedName = name.toLowerCase();
  30769. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  30770. // If this is an aria-* attribute, but is not listed in the known DOM
  30771. // DOM properties, then it is an invalid aria-* attribute.
  30772. if (standardName == null) {
  30773. warnedProperties[name] = true;
  30774. return false;
  30775. }
  30776. // aria-* attributes should be lowercase; suggest the lowercase version.
  30777. if (name !== standardName) {
  30778. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  30779. warnedProperties[name] = true;
  30780. return true;
  30781. }
  30782. }
  30783. return true;
  30784. }
  30785. function warnInvalidARIAProps(type, props) {
  30786. var invalidProps = [];
  30787. for (var key in props) {
  30788. var isValid = validateProperty(type, key);
  30789. if (!isValid) {
  30790. invalidProps.push(key);
  30791. }
  30792. }
  30793. var unknownPropString = invalidProps.map(function (prop) {
  30794. return '`' + prop + '`';
  30795. }).join(', ');
  30796. if (invalidProps.length === 1) {
  30797. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  30798. } else if (invalidProps.length > 1) {
  30799. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  30800. }
  30801. }
  30802. function validateProperties(type, props) {
  30803. if (isCustomComponent(type, props)) {
  30804. return;
  30805. }
  30806. warnInvalidARIAProps(type, props);
  30807. }
  30808. var didWarnValueNull = false;
  30809. function validateProperties$1(type, props) {
  30810. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  30811. return;
  30812. }
  30813. if (props != null && props.value === null && !didWarnValueNull) {
  30814. didWarnValueNull = true;
  30815. if (type === 'select' && props.multiple) {
  30816. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
  30817. } else {
  30818. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  30819. }
  30820. }
  30821. }
  30822. var validateProperty$1 = function () {};
  30823. {
  30824. var warnedProperties$1 = {};
  30825. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  30826. var EVENT_NAME_REGEX = /^on./;
  30827. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  30828. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  30829. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  30830. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  30831. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  30832. return true;
  30833. }
  30834. var lowerCasedName = name.toLowerCase();
  30835. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  30836. warning$1(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
  30837. warnedProperties$1[name] = true;
  30838. return true;
  30839. }
  30840. // We can't rely on the event system being injected on the server.
  30841. if (canUseEventSystem) {
  30842. if (registrationNameModules.hasOwnProperty(name)) {
  30843. return true;
  30844. }
  30845. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  30846. if (registrationName != null) {
  30847. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  30848. warnedProperties$1[name] = true;
  30849. return true;
  30850. }
  30851. if (EVENT_NAME_REGEX.test(name)) {
  30852. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  30853. warnedProperties$1[name] = true;
  30854. return true;
  30855. }
  30856. } else if (EVENT_NAME_REGEX.test(name)) {
  30857. // If no event plugins have been injected, we are in a server environment.
  30858. // So we can't tell if the event name is correct for sure, but we can filter
  30859. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  30860. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  30861. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  30862. }
  30863. warnedProperties$1[name] = true;
  30864. return true;
  30865. }
  30866. // Let the ARIA attribute hook validate ARIA attributes
  30867. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  30868. return true;
  30869. }
  30870. if (lowerCasedName === 'innerhtml') {
  30871. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  30872. warnedProperties$1[name] = true;
  30873. return true;
  30874. }
  30875. if (lowerCasedName === 'aria') {
  30876. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  30877. warnedProperties$1[name] = true;
  30878. return true;
  30879. }
  30880. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  30881. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  30882. warnedProperties$1[name] = true;
  30883. return true;
  30884. }
  30885. if (typeof value === 'number' && isNaN(value)) {
  30886. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  30887. warnedProperties$1[name] = true;
  30888. return true;
  30889. }
  30890. var propertyInfo = getPropertyInfo(name);
  30891. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  30892. // Known attributes should match the casing specified in the property config.
  30893. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  30894. var standardName = possibleStandardNames[lowerCasedName];
  30895. if (standardName !== name) {
  30896. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  30897. warnedProperties$1[name] = true;
  30898. return true;
  30899. }
  30900. } else if (!isReserved && name !== lowerCasedName) {
  30901. // Unknown attributes should have lowercase casing since that's how they
  30902. // will be cased anyway with server rendering.
  30903. warning$1(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
  30904. warnedProperties$1[name] = true;
  30905. return true;
  30906. }
  30907. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  30908. if (value) {
  30909. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
  30910. } else {
  30911. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
  30912. }
  30913. warnedProperties$1[name] = true;
  30914. return true;
  30915. }
  30916. // Now that we've validated casing, do not validate
  30917. // data types for reserved props
  30918. if (isReserved) {
  30919. return true;
  30920. }
  30921. // Warn when a known attribute is a bad type
  30922. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  30923. warnedProperties$1[name] = true;
  30924. return false;
  30925. }
  30926. // Warn when passing the strings 'false' or 'true' into a boolean prop
  30927. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  30928. warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
  30929. warnedProperties$1[name] = true;
  30930. return true;
  30931. }
  30932. return true;
  30933. };
  30934. }
  30935. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  30936. var unknownProps = [];
  30937. for (var key in props) {
  30938. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  30939. if (!isValid) {
  30940. unknownProps.push(key);
  30941. }
  30942. }
  30943. var unknownPropString = unknownProps.map(function (prop) {
  30944. return '`' + prop + '`';
  30945. }).join(', ');
  30946. if (unknownProps.length === 1) {
  30947. warning$1(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  30948. } else if (unknownProps.length > 1) {
  30949. warning$1(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  30950. }
  30951. };
  30952. function validateProperties$2(type, props, canUseEventSystem) {
  30953. if (isCustomComponent(type, props)) {
  30954. return;
  30955. }
  30956. warnUnknownProperties(type, props, canUseEventSystem);
  30957. }
  30958. // TODO: direct imports like some-package/src/* are bad. Fix me.
  30959. var didWarnInvalidHydration = false;
  30960. var didWarnShadyDOM = false;
  30961. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  30962. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  30963. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  30964. var AUTOFOCUS = 'autoFocus';
  30965. var CHILDREN = 'children';
  30966. var STYLE$1 = 'style';
  30967. var HTML = '__html';
  30968. var LISTENERS = 'listeners';
  30969. var HTML_NAMESPACE = Namespaces.html;
  30970. var warnedUnknownTags = void 0;
  30971. var suppressHydrationWarning = void 0;
  30972. var validatePropertiesInDevelopment = void 0;
  30973. var warnForTextDifference = void 0;
  30974. var warnForPropDifference = void 0;
  30975. var warnForExtraAttributes = void 0;
  30976. var warnForInvalidEventListener = void 0;
  30977. var canDiffStyleForHydrationWarning = void 0;
  30978. var normalizeMarkupForTextOrAttribute = void 0;
  30979. var normalizeHTML = void 0;
  30980. {
  30981. warnedUnknownTags = {
  30982. // Chrome is the only major browser not shipping <time>. But as of July
  30983. // 2017 it intends to ship it due to widespread usage. We intentionally
  30984. // *don't* warn for <time> even if it's unrecognized by Chrome because
  30985. // it soon will be, and many apps have been using it anyway.
  30986. time: true,
  30987. // There are working polyfills for <dialog>. Let people use it.
  30988. dialog: true,
  30989. // Electron ships a custom <webview> tag to display external web content in
  30990. // an isolated frame and process.
  30991. // This tag is not present in non Electron environments such as JSDom which
  30992. // is often used for testing purposes.
  30993. // @see https://electronjs.org/docs/api/webview-tag
  30994. webview: true
  30995. };
  30996. validatePropertiesInDevelopment = function (type, props) {
  30997. validateProperties(type, props);
  30998. validateProperties$1(type, props);
  30999. validateProperties$2(type, props, /* canUseEventSystem */true);
  31000. };
  31001. // IE 11 parses & normalizes the style attribute as opposed to other
  31002. // browsers. It adds spaces and sorts the properties in some
  31003. // non-alphabetical order. Handling that would require sorting CSS
  31004. // properties in the client & server versions or applying
  31005. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  31006. // normalized. Since it only affects IE, we're skipping style warnings
  31007. // in that browser completely in favor of doing all that work.
  31008. // See https://github.com/facebook/react/issues/11807
  31009. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  31010. // HTML parsing normalizes CR and CRLF to LF.
  31011. // It also can turn \u0000 into \uFFFD inside attributes.
  31012. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  31013. // If we have a mismatch, it might be caused by that.
  31014. // We will still patch up in this case but not fire the warning.
  31015. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  31016. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  31017. normalizeMarkupForTextOrAttribute = function (markup) {
  31018. var markupString = typeof markup === 'string' ? markup : '' + markup;
  31019. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  31020. };
  31021. warnForTextDifference = function (serverText, clientText) {
  31022. if (didWarnInvalidHydration) {
  31023. return;
  31024. }
  31025. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  31026. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  31027. if (normalizedServerText === normalizedClientText) {
  31028. return;
  31029. }
  31030. didWarnInvalidHydration = true;
  31031. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  31032. };
  31033. warnForPropDifference = function (propName, serverValue, clientValue) {
  31034. if (didWarnInvalidHydration) {
  31035. return;
  31036. }
  31037. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  31038. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  31039. if (normalizedServerValue === normalizedClientValue) {
  31040. return;
  31041. }
  31042. didWarnInvalidHydration = true;
  31043. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  31044. };
  31045. warnForExtraAttributes = function (attributeNames) {
  31046. if (didWarnInvalidHydration) {
  31047. return;
  31048. }
  31049. didWarnInvalidHydration = true;
  31050. var names = [];
  31051. attributeNames.forEach(function (name) {
  31052. names.push(name);
  31053. });
  31054. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  31055. };
  31056. warnForInvalidEventListener = function (registrationName, listener) {
  31057. if (listener === false) {
  31058. warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
  31059. } else {
  31060. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  31061. }
  31062. };
  31063. // Parse the HTML and read it back to normalize the HTML string so that it
  31064. // can be used for comparison.
  31065. normalizeHTML = function (parent, html) {
  31066. // We could have created a separate document here to avoid
  31067. // re-initializing custom elements if they exist. But this breaks
  31068. // how <noscript> is being handled. So we use the same document.
  31069. // See the discussion in https://github.com/facebook/react/pull/11157.
  31070. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  31071. testElement.innerHTML = html;
  31072. return testElement.innerHTML;
  31073. };
  31074. }
  31075. function ensureListeningTo(rootContainerElement, registrationName) {
  31076. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  31077. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  31078. listenTo(registrationName, doc);
  31079. }
  31080. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  31081. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  31082. }
  31083. function noop() {}
  31084. function trapClickOnNonInteractiveElement(node) {
  31085. // Mobile Safari does not fire properly bubble click events on
  31086. // non-interactive elements, which means delegated click listeners do not
  31087. // fire. The workaround for this bug involves attaching an empty click
  31088. // listener on the target node.
  31089. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  31090. // Just set it using the onclick property so that we don't have to manage any
  31091. // bookkeeping for it. Not sure if we need to clear it when the listener is
  31092. // removed.
  31093. // TODO: Only do this for the relevant Safaris maybe?
  31094. node.onclick = noop;
  31095. }
  31096. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  31097. for (var propKey in nextProps) {
  31098. if (!nextProps.hasOwnProperty(propKey)) {
  31099. continue;
  31100. }
  31101. var nextProp = nextProps[propKey];
  31102. if (propKey === STYLE$1) {
  31103. {
  31104. if (nextProp) {
  31105. // Freeze the next style object so that we can assume it won't be
  31106. // mutated. We have already warned for this in the past.
  31107. Object.freeze(nextProp);
  31108. }
  31109. }
  31110. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  31111. setValueForStyles(domElement, nextProp);
  31112. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  31113. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  31114. if (nextHtml != null) {
  31115. setInnerHTML(domElement, nextHtml);
  31116. }
  31117. } else if (propKey === CHILDREN) {
  31118. if (typeof nextProp === 'string') {
  31119. // Avoid setting initial textContent when the text is empty. In IE11 setting
  31120. // textContent on a <textarea> will cause the placeholder to not
  31121. // show within the <textarea> until it has been focused and blurred again.
  31122. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  31123. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  31124. if (canSetTextContent) {
  31125. setTextContent(domElement, nextProp);
  31126. }
  31127. } else if (typeof nextProp === 'number') {
  31128. setTextContent(domElement, '' + nextProp);
  31129. }
  31130. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  31131. // Noop
  31132. } else if (propKey === AUTOFOCUS) {
  31133. // We polyfill it separately on the client during commit.
  31134. // We could have excluded it in the property list instead of
  31135. // adding a special case here, but then it wouldn't be emitted
  31136. // on server rendering (but we *do* want to emit it in SSR).
  31137. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  31138. if (nextProp != null) {
  31139. if ( true && typeof nextProp !== 'function') {
  31140. warnForInvalidEventListener(propKey, nextProp);
  31141. }
  31142. ensureListeningTo(rootContainerElement, propKey);
  31143. }
  31144. } else if (nextProp != null) {
  31145. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  31146. }
  31147. }
  31148. }
  31149. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  31150. // TODO: Handle wasCustomComponentTag
  31151. for (var i = 0; i < updatePayload.length; i += 2) {
  31152. var propKey = updatePayload[i];
  31153. var propValue = updatePayload[i + 1];
  31154. if (propKey === STYLE$1) {
  31155. setValueForStyles(domElement, propValue);
  31156. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  31157. setInnerHTML(domElement, propValue);
  31158. } else if (propKey === CHILDREN) {
  31159. setTextContent(domElement, propValue);
  31160. } else {
  31161. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  31162. }
  31163. }
  31164. }
  31165. function createElement(type, props, rootContainerElement, parentNamespace) {
  31166. var isCustomComponentTag = void 0;
  31167. // We create tags in the namespace of their parent container, except HTML
  31168. // tags get no namespace.
  31169. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  31170. var domElement = void 0;
  31171. var namespaceURI = parentNamespace;
  31172. if (namespaceURI === HTML_NAMESPACE) {
  31173. namespaceURI = getIntrinsicNamespace(type);
  31174. }
  31175. if (namespaceURI === HTML_NAMESPACE) {
  31176. {
  31177. isCustomComponentTag = isCustomComponent(type, props);
  31178. // Should this check be gated by parent namespace? Not sure we want to
  31179. // allow <SVG> or <mATH>.
  31180. !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;
  31181. }
  31182. if (type === 'script') {
  31183. // Create the script via .innerHTML so its "parser-inserted" flag is
  31184. // set to true and it does not execute
  31185. var div = ownerDocument.createElement('div');
  31186. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  31187. // This is guaranteed to yield a script element.
  31188. var firstChild = div.firstChild;
  31189. domElement = div.removeChild(firstChild);
  31190. } else if (typeof props.is === 'string') {
  31191. // $FlowIssue `createElement` should be updated for Web Components
  31192. domElement = ownerDocument.createElement(type, { is: props.is });
  31193. } else {
  31194. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  31195. // See discussion in https://github.com/facebook/react/pull/6896
  31196. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  31197. domElement = ownerDocument.createElement(type);
  31198. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  31199. // attributes on `select`s needs to be added before `option`s are inserted.
  31200. // This prevents:
  31201. // - a bug where the `select` does not scroll to the correct option because singular
  31202. // `select` elements automatically pick the first item #13222
  31203. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  31204. // See https://github.com/facebook/react/issues/13222
  31205. // and https://github.com/facebook/react/issues/14239
  31206. if (type === 'select') {
  31207. var node = domElement;
  31208. if (props.multiple) {
  31209. node.multiple = true;
  31210. } else if (props.size) {
  31211. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  31212. // it is possible that no option is selected.
  31213. //
  31214. // This is only necessary when a select in "single selection mode".
  31215. node.size = props.size;
  31216. }
  31217. }
  31218. }
  31219. } else {
  31220. domElement = ownerDocument.createElementNS(namespaceURI, type);
  31221. }
  31222. {
  31223. if (namespaceURI === HTML_NAMESPACE) {
  31224. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  31225. warnedUnknownTags[type] = true;
  31226. warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
  31227. }
  31228. }
  31229. }
  31230. return domElement;
  31231. }
  31232. function createTextNode(text, rootContainerElement) {
  31233. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  31234. }
  31235. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  31236. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  31237. {
  31238. validatePropertiesInDevelopment(tag, rawProps);
  31239. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  31240. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  31241. didWarnShadyDOM = true;
  31242. }
  31243. }
  31244. // TODO: Make sure that we check isMounted before firing any of these events.
  31245. var props = void 0;
  31246. switch (tag) {
  31247. case 'iframe':
  31248. case 'object':
  31249. case 'embed':
  31250. trapBubbledEvent(TOP_LOAD, domElement);
  31251. props = rawProps;
  31252. break;
  31253. case 'video':
  31254. case 'audio':
  31255. // Create listener for each media event
  31256. for (var i = 0; i < mediaEventTypes.length; i++) {
  31257. trapBubbledEvent(mediaEventTypes[i], domElement);
  31258. }
  31259. props = rawProps;
  31260. break;
  31261. case 'source':
  31262. trapBubbledEvent(TOP_ERROR, domElement);
  31263. props = rawProps;
  31264. break;
  31265. case 'img':
  31266. case 'image':
  31267. case 'link':
  31268. trapBubbledEvent(TOP_ERROR, domElement);
  31269. trapBubbledEvent(TOP_LOAD, domElement);
  31270. props = rawProps;
  31271. break;
  31272. case 'form':
  31273. trapBubbledEvent(TOP_RESET, domElement);
  31274. trapBubbledEvent(TOP_SUBMIT, domElement);
  31275. props = rawProps;
  31276. break;
  31277. case 'details':
  31278. trapBubbledEvent(TOP_TOGGLE, domElement);
  31279. props = rawProps;
  31280. break;
  31281. case 'input':
  31282. initWrapperState(domElement, rawProps);
  31283. props = getHostProps(domElement, rawProps);
  31284. trapBubbledEvent(TOP_INVALID, domElement);
  31285. // For controlled components we always need to ensure we're listening
  31286. // to onChange. Even if there is no listener.
  31287. ensureListeningTo(rootContainerElement, 'onChange');
  31288. break;
  31289. case 'option':
  31290. validateProps(domElement, rawProps);
  31291. props = getHostProps$1(domElement, rawProps);
  31292. break;
  31293. case 'select':
  31294. initWrapperState$1(domElement, rawProps);
  31295. props = getHostProps$2(domElement, rawProps);
  31296. trapBubbledEvent(TOP_INVALID, domElement);
  31297. // For controlled components we always need to ensure we're listening
  31298. // to onChange. Even if there is no listener.
  31299. ensureListeningTo(rootContainerElement, 'onChange');
  31300. break;
  31301. case 'textarea':
  31302. initWrapperState$2(domElement, rawProps);
  31303. props = getHostProps$3(domElement, rawProps);
  31304. trapBubbledEvent(TOP_INVALID, domElement);
  31305. // For controlled components we always need to ensure we're listening
  31306. // to onChange. Even if there is no listener.
  31307. ensureListeningTo(rootContainerElement, 'onChange');
  31308. break;
  31309. default:
  31310. props = rawProps;
  31311. }
  31312. assertValidProps(tag, props);
  31313. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  31314. switch (tag) {
  31315. case 'input':
  31316. // TODO: Make sure we check if this is still unmounted or do any clean
  31317. // up necessary since we never stop tracking anymore.
  31318. track(domElement);
  31319. postMountWrapper(domElement, rawProps, false);
  31320. break;
  31321. case 'textarea':
  31322. // TODO: Make sure we check if this is still unmounted or do any clean
  31323. // up necessary since we never stop tracking anymore.
  31324. track(domElement);
  31325. postMountWrapper$3(domElement, rawProps);
  31326. break;
  31327. case 'option':
  31328. postMountWrapper$1(domElement, rawProps);
  31329. break;
  31330. case 'select':
  31331. postMountWrapper$2(domElement, rawProps);
  31332. break;
  31333. default:
  31334. if (typeof props.onClick === 'function') {
  31335. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  31336. trapClickOnNonInteractiveElement(domElement);
  31337. }
  31338. break;
  31339. }
  31340. }
  31341. // Calculate the diff between the two objects.
  31342. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  31343. {
  31344. validatePropertiesInDevelopment(tag, nextRawProps);
  31345. }
  31346. var updatePayload = null;
  31347. var lastProps = void 0;
  31348. var nextProps = void 0;
  31349. switch (tag) {
  31350. case 'input':
  31351. lastProps = getHostProps(domElement, lastRawProps);
  31352. nextProps = getHostProps(domElement, nextRawProps);
  31353. updatePayload = [];
  31354. break;
  31355. case 'option':
  31356. lastProps = getHostProps$1(domElement, lastRawProps);
  31357. nextProps = getHostProps$1(domElement, nextRawProps);
  31358. updatePayload = [];
  31359. break;
  31360. case 'select':
  31361. lastProps = getHostProps$2(domElement, lastRawProps);
  31362. nextProps = getHostProps$2(domElement, nextRawProps);
  31363. updatePayload = [];
  31364. break;
  31365. case 'textarea':
  31366. lastProps = getHostProps$3(domElement, lastRawProps);
  31367. nextProps = getHostProps$3(domElement, nextRawProps);
  31368. updatePayload = [];
  31369. break;
  31370. default:
  31371. lastProps = lastRawProps;
  31372. nextProps = nextRawProps;
  31373. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  31374. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  31375. trapClickOnNonInteractiveElement(domElement);
  31376. }
  31377. break;
  31378. }
  31379. assertValidProps(tag, nextProps);
  31380. var propKey = void 0;
  31381. var styleName = void 0;
  31382. var styleUpdates = null;
  31383. for (propKey in lastProps) {
  31384. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  31385. continue;
  31386. }
  31387. if (propKey === STYLE$1) {
  31388. var lastStyle = lastProps[propKey];
  31389. for (styleName in lastStyle) {
  31390. if (lastStyle.hasOwnProperty(styleName)) {
  31391. if (!styleUpdates) {
  31392. styleUpdates = {};
  31393. }
  31394. styleUpdates[styleName] = '';
  31395. }
  31396. }
  31397. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  31398. // Noop. This is handled by the clear text mechanism.
  31399. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  31400. // Noop
  31401. } else if (propKey === AUTOFOCUS) {
  31402. // Noop. It doesn't work on updates anyway.
  31403. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  31404. // This is a special case. If any listener updates we need to ensure
  31405. // that the "current" fiber pointer gets updated so we need a commit
  31406. // to update this element.
  31407. if (!updatePayload) {
  31408. updatePayload = [];
  31409. }
  31410. } else {
  31411. // For all other deleted properties we add it to the queue. We use
  31412. // the whitelist in the commit phase instead.
  31413. (updatePayload = updatePayload || []).push(propKey, null);
  31414. }
  31415. }
  31416. for (propKey in nextProps) {
  31417. var nextProp = nextProps[propKey];
  31418. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  31419. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  31420. continue;
  31421. }
  31422. if (propKey === STYLE$1) {
  31423. {
  31424. if (nextProp) {
  31425. // Freeze the next style object so that we can assume it won't be
  31426. // mutated. We have already warned for this in the past.
  31427. Object.freeze(nextProp);
  31428. }
  31429. }
  31430. if (lastProp) {
  31431. // Unset styles on `lastProp` but not on `nextProp`.
  31432. for (styleName in lastProp) {
  31433. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  31434. if (!styleUpdates) {
  31435. styleUpdates = {};
  31436. }
  31437. styleUpdates[styleName] = '';
  31438. }
  31439. }
  31440. // Update styles that changed since `lastProp`.
  31441. for (styleName in nextProp) {
  31442. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  31443. if (!styleUpdates) {
  31444. styleUpdates = {};
  31445. }
  31446. styleUpdates[styleName] = nextProp[styleName];
  31447. }
  31448. }
  31449. } else {
  31450. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  31451. if (!styleUpdates) {
  31452. if (!updatePayload) {
  31453. updatePayload = [];
  31454. }
  31455. updatePayload.push(propKey, styleUpdates);
  31456. }
  31457. styleUpdates = nextProp;
  31458. }
  31459. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  31460. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  31461. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  31462. if (nextHtml != null) {
  31463. if (lastHtml !== nextHtml) {
  31464. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  31465. }
  31466. } else {
  31467. // TODO: It might be too late to clear this if we have children
  31468. // inserted already.
  31469. }
  31470. } else if (propKey === CHILDREN) {
  31471. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  31472. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  31473. }
  31474. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  31475. // Noop
  31476. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  31477. if (nextProp != null) {
  31478. // We eagerly listen to this even though we haven't committed yet.
  31479. if ( true && typeof nextProp !== 'function') {
  31480. warnForInvalidEventListener(propKey, nextProp);
  31481. }
  31482. ensureListeningTo(rootContainerElement, propKey);
  31483. }
  31484. if (!updatePayload && lastProp !== nextProp) {
  31485. // This is a special case. If any listener updates we need to ensure
  31486. // that the "current" props pointer gets updated so we need a commit
  31487. // to update this element.
  31488. updatePayload = [];
  31489. }
  31490. } else {
  31491. // For any other property we always add it to the queue and then we
  31492. // filter it out using the whitelist during the commit.
  31493. (updatePayload = updatePayload || []).push(propKey, nextProp);
  31494. }
  31495. }
  31496. if (styleUpdates) {
  31497. {
  31498. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]);
  31499. }
  31500. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  31501. }
  31502. return updatePayload;
  31503. }
  31504. // Apply the diff.
  31505. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  31506. // Update checked *before* name.
  31507. // In the middle of an update, it is possible to have multiple checked.
  31508. // When a checked radio tries to change name, browser makes another radio's checked false.
  31509. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  31510. updateChecked(domElement, nextRawProps);
  31511. }
  31512. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  31513. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  31514. // Apply the diff.
  31515. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  31516. // TODO: Ensure that an update gets scheduled if any of the special props
  31517. // changed.
  31518. switch (tag) {
  31519. case 'input':
  31520. // Update the wrapper around inputs *after* updating props. This has to
  31521. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  31522. // raise warnings and prevent the new value from being assigned.
  31523. updateWrapper(domElement, nextRawProps);
  31524. break;
  31525. case 'textarea':
  31526. updateWrapper$1(domElement, nextRawProps);
  31527. break;
  31528. case 'select':
  31529. // <select> value update needs to occur after <option> children
  31530. // reconciliation
  31531. postUpdateWrapper(domElement, nextRawProps);
  31532. break;
  31533. }
  31534. }
  31535. function getPossibleStandardName(propName) {
  31536. {
  31537. var lowerCasedName = propName.toLowerCase();
  31538. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  31539. return null;
  31540. }
  31541. return possibleStandardNames[lowerCasedName] || null;
  31542. }
  31543. return null;
  31544. }
  31545. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  31546. var isCustomComponentTag = void 0;
  31547. var extraAttributeNames = void 0;
  31548. {
  31549. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  31550. isCustomComponentTag = isCustomComponent(tag, rawProps);
  31551. validatePropertiesInDevelopment(tag, rawProps);
  31552. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  31553. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  31554. didWarnShadyDOM = true;
  31555. }
  31556. }
  31557. // TODO: Make sure that we check isMounted before firing any of these events.
  31558. switch (tag) {
  31559. case 'iframe':
  31560. case 'object':
  31561. case 'embed':
  31562. trapBubbledEvent(TOP_LOAD, domElement);
  31563. break;
  31564. case 'video':
  31565. case 'audio':
  31566. // Create listener for each media event
  31567. for (var i = 0; i < mediaEventTypes.length; i++) {
  31568. trapBubbledEvent(mediaEventTypes[i], domElement);
  31569. }
  31570. break;
  31571. case 'source':
  31572. trapBubbledEvent(TOP_ERROR, domElement);
  31573. break;
  31574. case 'img':
  31575. case 'image':
  31576. case 'link':
  31577. trapBubbledEvent(TOP_ERROR, domElement);
  31578. trapBubbledEvent(TOP_LOAD, domElement);
  31579. break;
  31580. case 'form':
  31581. trapBubbledEvent(TOP_RESET, domElement);
  31582. trapBubbledEvent(TOP_SUBMIT, domElement);
  31583. break;
  31584. case 'details':
  31585. trapBubbledEvent(TOP_TOGGLE, domElement);
  31586. break;
  31587. case 'input':
  31588. initWrapperState(domElement, rawProps);
  31589. trapBubbledEvent(TOP_INVALID, domElement);
  31590. // For controlled components we always need to ensure we're listening
  31591. // to onChange. Even if there is no listener.
  31592. ensureListeningTo(rootContainerElement, 'onChange');
  31593. break;
  31594. case 'option':
  31595. validateProps(domElement, rawProps);
  31596. break;
  31597. case 'select':
  31598. initWrapperState$1(domElement, rawProps);
  31599. trapBubbledEvent(TOP_INVALID, domElement);
  31600. // For controlled components we always need to ensure we're listening
  31601. // to onChange. Even if there is no listener.
  31602. ensureListeningTo(rootContainerElement, 'onChange');
  31603. break;
  31604. case 'textarea':
  31605. initWrapperState$2(domElement, rawProps);
  31606. trapBubbledEvent(TOP_INVALID, domElement);
  31607. // For controlled components we always need to ensure we're listening
  31608. // to onChange. Even if there is no listener.
  31609. ensureListeningTo(rootContainerElement, 'onChange');
  31610. break;
  31611. }
  31612. assertValidProps(tag, rawProps);
  31613. {
  31614. extraAttributeNames = new Set();
  31615. var attributes = domElement.attributes;
  31616. for (var _i = 0; _i < attributes.length; _i++) {
  31617. var name = attributes[_i].name.toLowerCase();
  31618. switch (name) {
  31619. // Built-in SSR attribute is whitelisted
  31620. case 'data-reactroot':
  31621. break;
  31622. // Controlled attributes are not validated
  31623. // TODO: Only ignore them on controlled tags.
  31624. case 'value':
  31625. break;
  31626. case 'checked':
  31627. break;
  31628. case 'selected':
  31629. break;
  31630. default:
  31631. // Intentionally use the original name.
  31632. // See discussion in https://github.com/facebook/react/pull/10676.
  31633. extraAttributeNames.add(attributes[_i].name);
  31634. }
  31635. }
  31636. }
  31637. var updatePayload = null;
  31638. for (var propKey in rawProps) {
  31639. if (!rawProps.hasOwnProperty(propKey)) {
  31640. continue;
  31641. }
  31642. var nextProp = rawProps[propKey];
  31643. if (propKey === CHILDREN) {
  31644. // For text content children we compare against textContent. This
  31645. // might match additional HTML that is hidden when we read it using
  31646. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  31647. // satisfies our requirement. Our requirement is not to produce perfect
  31648. // HTML and attributes. Ideally we should preserve structure but it's
  31649. // ok not to if the visible content is still enough to indicate what
  31650. // even listeners these nodes might be wired up to.
  31651. // TODO: Warn if there is more than a single textNode as a child.
  31652. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  31653. if (typeof nextProp === 'string') {
  31654. if (domElement.textContent !== nextProp) {
  31655. if ( true && !suppressHydrationWarning) {
  31656. warnForTextDifference(domElement.textContent, nextProp);
  31657. }
  31658. updatePayload = [CHILDREN, nextProp];
  31659. }
  31660. } else if (typeof nextProp === 'number') {
  31661. if (domElement.textContent !== '' + nextProp) {
  31662. if ( true && !suppressHydrationWarning) {
  31663. warnForTextDifference(domElement.textContent, nextProp);
  31664. }
  31665. updatePayload = [CHILDREN, '' + nextProp];
  31666. }
  31667. }
  31668. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  31669. if (nextProp != null) {
  31670. if ( true && typeof nextProp !== 'function') {
  31671. warnForInvalidEventListener(propKey, nextProp);
  31672. }
  31673. ensureListeningTo(rootContainerElement, propKey);
  31674. }
  31675. } else if ( true &&
  31676. // Convince Flow we've calculated it (it's DEV-only in this method.)
  31677. typeof isCustomComponentTag === 'boolean') {
  31678. // Validate that the properties correspond to their expected values.
  31679. var serverValue = void 0;
  31680. var propertyInfo = getPropertyInfo(propKey);
  31681. if (suppressHydrationWarning) {
  31682. // Don't bother comparing. We're ignoring all these warnings.
  31683. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  31684. // Controlled attributes are not validated
  31685. // TODO: Only ignore them on controlled tags.
  31686. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  31687. // Noop
  31688. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  31689. var serverHTML = domElement.innerHTML;
  31690. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  31691. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  31692. if (expectedHTML !== serverHTML) {
  31693. warnForPropDifference(propKey, serverHTML, expectedHTML);
  31694. }
  31695. } else if (propKey === STYLE$1) {
  31696. // $FlowFixMe - Should be inferred as not undefined.
  31697. extraAttributeNames.delete(propKey);
  31698. if (canDiffStyleForHydrationWarning) {
  31699. var expectedStyle = createDangerousStringForStyles(nextProp);
  31700. serverValue = domElement.getAttribute('style');
  31701. if (expectedStyle !== serverValue) {
  31702. warnForPropDifference(propKey, serverValue, expectedStyle);
  31703. }
  31704. }
  31705. } else if (isCustomComponentTag) {
  31706. // $FlowFixMe - Should be inferred as not undefined.
  31707. extraAttributeNames.delete(propKey.toLowerCase());
  31708. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  31709. if (nextProp !== serverValue) {
  31710. warnForPropDifference(propKey, serverValue, nextProp);
  31711. }
  31712. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  31713. var isMismatchDueToBadCasing = false;
  31714. if (propertyInfo !== null) {
  31715. // $FlowFixMe - Should be inferred as not undefined.
  31716. extraAttributeNames.delete(propertyInfo.attributeName);
  31717. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  31718. } else {
  31719. var ownNamespace = parentNamespace;
  31720. if (ownNamespace === HTML_NAMESPACE) {
  31721. ownNamespace = getIntrinsicNamespace(tag);
  31722. }
  31723. if (ownNamespace === HTML_NAMESPACE) {
  31724. // $FlowFixMe - Should be inferred as not undefined.
  31725. extraAttributeNames.delete(propKey.toLowerCase());
  31726. } else {
  31727. var standardName = getPossibleStandardName(propKey);
  31728. if (standardName !== null && standardName !== propKey) {
  31729. // If an SVG prop is supplied with bad casing, it will
  31730. // be successfully parsed from HTML, but will produce a mismatch
  31731. // (and would be incorrectly rendered on the client).
  31732. // However, we already warn about bad casing elsewhere.
  31733. // So we'll skip the misleading extra mismatch warning in this case.
  31734. isMismatchDueToBadCasing = true;
  31735. // $FlowFixMe - Should be inferred as not undefined.
  31736. extraAttributeNames.delete(standardName);
  31737. }
  31738. // $FlowFixMe - Should be inferred as not undefined.
  31739. extraAttributeNames.delete(propKey);
  31740. }
  31741. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  31742. }
  31743. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  31744. warnForPropDifference(propKey, serverValue, nextProp);
  31745. }
  31746. }
  31747. }
  31748. }
  31749. {
  31750. // $FlowFixMe - Should be inferred as not undefined.
  31751. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  31752. // $FlowFixMe - Should be inferred as not undefined.
  31753. warnForExtraAttributes(extraAttributeNames);
  31754. }
  31755. }
  31756. switch (tag) {
  31757. case 'input':
  31758. // TODO: Make sure we check if this is still unmounted or do any clean
  31759. // up necessary since we never stop tracking anymore.
  31760. track(domElement);
  31761. postMountWrapper(domElement, rawProps, true);
  31762. break;
  31763. case 'textarea':
  31764. // TODO: Make sure we check if this is still unmounted or do any clean
  31765. // up necessary since we never stop tracking anymore.
  31766. track(domElement);
  31767. postMountWrapper$3(domElement, rawProps);
  31768. break;
  31769. case 'select':
  31770. case 'option':
  31771. // For input and textarea we current always set the value property at
  31772. // post mount to force it to diverge from attributes. However, for
  31773. // option and select we don't quite do the same thing and select
  31774. // is not resilient to the DOM state changing so we don't do that here.
  31775. // TODO: Consider not doing this for input and textarea.
  31776. break;
  31777. default:
  31778. if (typeof rawProps.onClick === 'function') {
  31779. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  31780. trapClickOnNonInteractiveElement(domElement);
  31781. }
  31782. break;
  31783. }
  31784. return updatePayload;
  31785. }
  31786. function diffHydratedText(textNode, text) {
  31787. var isDifferent = textNode.nodeValue !== text;
  31788. return isDifferent;
  31789. }
  31790. function warnForUnmatchedText(textNode, text) {
  31791. {
  31792. warnForTextDifference(textNode.nodeValue, text);
  31793. }
  31794. }
  31795. function warnForDeletedHydratableElement(parentNode, child) {
  31796. {
  31797. if (didWarnInvalidHydration) {
  31798. return;
  31799. }
  31800. didWarnInvalidHydration = true;
  31801. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  31802. }
  31803. }
  31804. function warnForDeletedHydratableText(parentNode, child) {
  31805. {
  31806. if (didWarnInvalidHydration) {
  31807. return;
  31808. }
  31809. didWarnInvalidHydration = true;
  31810. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  31811. }
  31812. }
  31813. function warnForInsertedHydratedElement(parentNode, tag, props) {
  31814. {
  31815. if (didWarnInvalidHydration) {
  31816. return;
  31817. }
  31818. didWarnInvalidHydration = true;
  31819. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  31820. }
  31821. }
  31822. function warnForInsertedHydratedText(parentNode, text) {
  31823. {
  31824. if (text === '') {
  31825. // We expect to insert empty text nodes since they're not represented in
  31826. // the HTML.
  31827. // TODO: Remove this special case if we can just avoid inserting empty
  31828. // text nodes.
  31829. return;
  31830. }
  31831. if (didWarnInvalidHydration) {
  31832. return;
  31833. }
  31834. didWarnInvalidHydration = true;
  31835. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  31836. }
  31837. }
  31838. function restoreControlledState$1(domElement, tag, props) {
  31839. switch (tag) {
  31840. case 'input':
  31841. restoreControlledState(domElement, props);
  31842. return;
  31843. case 'textarea':
  31844. restoreControlledState$3(domElement, props);
  31845. return;
  31846. case 'select':
  31847. restoreControlledState$2(domElement, props);
  31848. return;
  31849. }
  31850. }
  31851. function listenToEventResponderEventTypes(eventTypes, element) {
  31852. if (enableFlareAPI) {
  31853. // Get the listening Set for this element. We use this to track
  31854. // what events we're listening to.
  31855. var listeningSet = getListeningSetForElement(element);
  31856. // Go through each target event type of the event responder
  31857. for (var i = 0, length = eventTypes.length; i < length; ++i) {
  31858. var eventType = eventTypes[i];
  31859. var isPassive = !endsWith(eventType, '_active');
  31860. var eventKey = isPassive ? eventType + '_passive' : eventType;
  31861. var targetEventType = isPassive ? eventType : eventType.substring(0, eventType.length - 7);
  31862. if (!listeningSet.has(eventKey)) {
  31863. trapEventForResponderEventSystem(element, targetEventType, isPassive);
  31864. listeningSet.add(eventKey);
  31865. }
  31866. }
  31867. }
  31868. }
  31869. // We can remove this once the event API is stable and out of a flag
  31870. if (enableFlareAPI) {
  31871. setListenToResponderEventTypes(listenToEventResponderEventTypes);
  31872. }
  31873. // TODO: direct imports like some-package/src/* are bad. Fix me.
  31874. var validateDOMNesting = function () {};
  31875. var updatedAncestorInfo = function () {};
  31876. {
  31877. // This validation code was written based on the HTML5 parsing spec:
  31878. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  31879. //
  31880. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  31881. // not clear what practical benefit doing so provides); instead, we warn only
  31882. // for cases where the parser will give a parse tree differing from what React
  31883. // intended. For example, <b><div></div></b> is invalid but we don't warn
  31884. // because it still parses correctly; we do warn for other cases like nested
  31885. // <p> tags where the beginning of the second element implicitly closes the
  31886. // first, causing a confusing mess.
  31887. // https://html.spec.whatwg.org/multipage/syntax.html#special
  31888. 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'];
  31889. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  31890. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  31891. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  31892. // TODO: Distinguish by namespace here -- for <title>, including it here
  31893. // errs on the side of fewer warnings
  31894. 'foreignObject', 'desc', 'title'];
  31895. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  31896. var buttonScopeTags = inScopeTags.concat(['button']);
  31897. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  31898. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  31899. var emptyAncestorInfo = {
  31900. current: null,
  31901. formTag: null,
  31902. aTagInScope: null,
  31903. buttonTagInScope: null,
  31904. nobrTagInScope: null,
  31905. pTagInButtonScope: null,
  31906. listItemTagAutoclosing: null,
  31907. dlItemTagAutoclosing: null
  31908. };
  31909. updatedAncestorInfo = function (oldInfo, tag) {
  31910. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  31911. var info = { tag: tag };
  31912. if (inScopeTags.indexOf(tag) !== -1) {
  31913. ancestorInfo.aTagInScope = null;
  31914. ancestorInfo.buttonTagInScope = null;
  31915. ancestorInfo.nobrTagInScope = null;
  31916. }
  31917. if (buttonScopeTags.indexOf(tag) !== -1) {
  31918. ancestorInfo.pTagInButtonScope = null;
  31919. }
  31920. // See rules for 'li', 'dd', 'dt' start tags in
  31921. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  31922. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  31923. ancestorInfo.listItemTagAutoclosing = null;
  31924. ancestorInfo.dlItemTagAutoclosing = null;
  31925. }
  31926. ancestorInfo.current = info;
  31927. if (tag === 'form') {
  31928. ancestorInfo.formTag = info;
  31929. }
  31930. if (tag === 'a') {
  31931. ancestorInfo.aTagInScope = info;
  31932. }
  31933. if (tag === 'button') {
  31934. ancestorInfo.buttonTagInScope = info;
  31935. }
  31936. if (tag === 'nobr') {
  31937. ancestorInfo.nobrTagInScope = info;
  31938. }
  31939. if (tag === 'p') {
  31940. ancestorInfo.pTagInButtonScope = info;
  31941. }
  31942. if (tag === 'li') {
  31943. ancestorInfo.listItemTagAutoclosing = info;
  31944. }
  31945. if (tag === 'dd' || tag === 'dt') {
  31946. ancestorInfo.dlItemTagAutoclosing = info;
  31947. }
  31948. return ancestorInfo;
  31949. };
  31950. /**
  31951. * Returns whether
  31952. */
  31953. var isTagValidWithParent = function (tag, parentTag) {
  31954. // First, let's check if we're in an unusual parsing mode...
  31955. switch (parentTag) {
  31956. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  31957. case 'select':
  31958. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  31959. case 'optgroup':
  31960. return tag === 'option' || tag === '#text';
  31961. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  31962. // but
  31963. case 'option':
  31964. return tag === '#text';
  31965. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  31966. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  31967. // No special behavior since these rules fall back to "in body" mode for
  31968. // all except special table nodes which cause bad parsing behavior anyway.
  31969. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  31970. case 'tr':
  31971. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  31972. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  31973. case 'tbody':
  31974. case 'thead':
  31975. case 'tfoot':
  31976. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  31977. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  31978. case 'colgroup':
  31979. return tag === 'col' || tag === 'template';
  31980. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  31981. case 'table':
  31982. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  31983. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  31984. case 'head':
  31985. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  31986. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  31987. case 'html':
  31988. return tag === 'head' || tag === 'body' || tag === 'frameset';
  31989. case 'frameset':
  31990. return tag === 'frame';
  31991. case '#document':
  31992. return tag === 'html';
  31993. }
  31994. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  31995. // where the parsing rules cause implicit opens or closes to be added.
  31996. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  31997. switch (tag) {
  31998. case 'h1':
  31999. case 'h2':
  32000. case 'h3':
  32001. case 'h4':
  32002. case 'h5':
  32003. case 'h6':
  32004. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  32005. case 'rp':
  32006. case 'rt':
  32007. return impliedEndTags.indexOf(parentTag) === -1;
  32008. case 'body':
  32009. case 'caption':
  32010. case 'col':
  32011. case 'colgroup':
  32012. case 'frameset':
  32013. case 'frame':
  32014. case 'head':
  32015. case 'html':
  32016. case 'tbody':
  32017. case 'td':
  32018. case 'tfoot':
  32019. case 'th':
  32020. case 'thead':
  32021. case 'tr':
  32022. // These tags are only valid with a few parents that have special child
  32023. // parsing rules -- if we're down here, then none of those matched and
  32024. // so we allow it only if we don't know what the parent is, as all other
  32025. // cases are invalid.
  32026. return parentTag == null;
  32027. }
  32028. return true;
  32029. };
  32030. /**
  32031. * Returns whether
  32032. */
  32033. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  32034. switch (tag) {
  32035. case 'address':
  32036. case 'article':
  32037. case 'aside':
  32038. case 'blockquote':
  32039. case 'center':
  32040. case 'details':
  32041. case 'dialog':
  32042. case 'dir':
  32043. case 'div':
  32044. case 'dl':
  32045. case 'fieldset':
  32046. case 'figcaption':
  32047. case 'figure':
  32048. case 'footer':
  32049. case 'header':
  32050. case 'hgroup':
  32051. case 'main':
  32052. case 'menu':
  32053. case 'nav':
  32054. case 'ol':
  32055. case 'p':
  32056. case 'section':
  32057. case 'summary':
  32058. case 'ul':
  32059. case 'pre':
  32060. case 'listing':
  32061. case 'table':
  32062. case 'hr':
  32063. case 'xmp':
  32064. case 'h1':
  32065. case 'h2':
  32066. case 'h3':
  32067. case 'h4':
  32068. case 'h5':
  32069. case 'h6':
  32070. return ancestorInfo.pTagInButtonScope;
  32071. case 'form':
  32072. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  32073. case 'li':
  32074. return ancestorInfo.listItemTagAutoclosing;
  32075. case 'dd':
  32076. case 'dt':
  32077. return ancestorInfo.dlItemTagAutoclosing;
  32078. case 'button':
  32079. return ancestorInfo.buttonTagInScope;
  32080. case 'a':
  32081. // Spec says something about storing a list of markers, but it sounds
  32082. // equivalent to this check.
  32083. return ancestorInfo.aTagInScope;
  32084. case 'nobr':
  32085. return ancestorInfo.nobrTagInScope;
  32086. }
  32087. return null;
  32088. };
  32089. var didWarn$1 = {};
  32090. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  32091. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  32092. var parentInfo = ancestorInfo.current;
  32093. var parentTag = parentInfo && parentInfo.tag;
  32094. if (childText != null) {
  32095. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  32096. childTag = '#text';
  32097. }
  32098. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  32099. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  32100. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  32101. if (!invalidParentOrAncestor) {
  32102. return;
  32103. }
  32104. var ancestorTag = invalidParentOrAncestor.tag;
  32105. var addendum = getCurrentFiberStackInDev();
  32106. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  32107. if (didWarn$1[warnKey]) {
  32108. return;
  32109. }
  32110. didWarn$1[warnKey] = true;
  32111. var tagDisplayName = childTag;
  32112. var whitespaceInfo = '';
  32113. if (childTag === '#text') {
  32114. if (/\S/.test(childText)) {
  32115. tagDisplayName = 'Text nodes';
  32116. } else {
  32117. tagDisplayName = 'Whitespace text nodes';
  32118. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  32119. }
  32120. } else {
  32121. tagDisplayName = '<' + childTag + '>';
  32122. }
  32123. if (invalidParent) {
  32124. var info = '';
  32125. if (ancestorTag === 'table' && childTag === 'tr') {
  32126. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  32127. }
  32128. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  32129. } else {
  32130. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  32131. }
  32132. };
  32133. }
  32134. // Renderers that don't support persistence
  32135. // can re-export everything from this module.
  32136. function shim() {
  32137. (function () {
  32138. {
  32139. {
  32140. throw ReactError(Error('The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.'));
  32141. }
  32142. }
  32143. })();
  32144. }
  32145. // Persistence (when unsupported)
  32146. var supportsPersistence = false;
  32147. var cloneInstance = shim;
  32148. var cloneFundamentalInstance = shim;
  32149. var createContainerChildSet = shim;
  32150. var appendChildToContainerChildSet = shim;
  32151. var finalizeContainerChildren = shim;
  32152. var replaceContainerChildren = shim;
  32153. var cloneHiddenInstance = shim;
  32154. var cloneHiddenTextInstance = shim;
  32155. var SUPPRESS_HYDRATION_WARNING = void 0;
  32156. {
  32157. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  32158. }
  32159. var SUSPENSE_START_DATA = '$';
  32160. var SUSPENSE_END_DATA = '/$';
  32161. var SUSPENSE_PENDING_START_DATA = '$?';
  32162. var SUSPENSE_FALLBACK_START_DATA = '$!';
  32163. var STYLE = 'style';
  32164. var eventsEnabled = null;
  32165. var selectionInformation = null;
  32166. function shouldAutoFocusHostComponent(type, props) {
  32167. switch (type) {
  32168. case 'button':
  32169. case 'input':
  32170. case 'select':
  32171. case 'textarea':
  32172. return !!props.autoFocus;
  32173. }
  32174. return false;
  32175. }
  32176. function getRootHostContext(rootContainerInstance) {
  32177. var type = void 0;
  32178. var namespace = void 0;
  32179. var nodeType = rootContainerInstance.nodeType;
  32180. switch (nodeType) {
  32181. case DOCUMENT_NODE:
  32182. case DOCUMENT_FRAGMENT_NODE:
  32183. {
  32184. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  32185. var root = rootContainerInstance.documentElement;
  32186. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  32187. break;
  32188. }
  32189. default:
  32190. {
  32191. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  32192. var ownNamespace = container.namespaceURI || null;
  32193. type = container.tagName;
  32194. namespace = getChildNamespace(ownNamespace, type);
  32195. break;
  32196. }
  32197. }
  32198. {
  32199. var validatedTag = type.toLowerCase();
  32200. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  32201. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  32202. }
  32203. return namespace;
  32204. }
  32205. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  32206. {
  32207. var parentHostContextDev = parentHostContext;
  32208. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  32209. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  32210. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  32211. }
  32212. var parentNamespace = parentHostContext;
  32213. return getChildNamespace(parentNamespace, type);
  32214. }
  32215. function getPublicInstance(instance) {
  32216. return instance;
  32217. }
  32218. function prepareForCommit(containerInfo) {
  32219. eventsEnabled = isEnabled();
  32220. selectionInformation = getSelectionInformation();
  32221. setEnabled(false);
  32222. }
  32223. function resetAfterCommit(containerInfo) {
  32224. restoreSelection(selectionInformation);
  32225. selectionInformation = null;
  32226. setEnabled(eventsEnabled);
  32227. eventsEnabled = null;
  32228. }
  32229. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  32230. var parentNamespace = void 0;
  32231. {
  32232. // TODO: take namespace into account when validating.
  32233. var hostContextDev = hostContext;
  32234. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  32235. if (typeof props.children === 'string' || typeof props.children === 'number') {
  32236. var string = '' + props.children;
  32237. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  32238. validateDOMNesting(null, string, ownAncestorInfo);
  32239. }
  32240. parentNamespace = hostContextDev.namespace;
  32241. }
  32242. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  32243. precacheFiberNode(internalInstanceHandle, domElement);
  32244. updateFiberProps(domElement, props);
  32245. return domElement;
  32246. }
  32247. function appendInitialChild(parentInstance, child) {
  32248. parentInstance.appendChild(child);
  32249. }
  32250. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  32251. setInitialProperties(domElement, type, props, rootContainerInstance);
  32252. return shouldAutoFocusHostComponent(type, props);
  32253. }
  32254. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  32255. {
  32256. var hostContextDev = hostContext;
  32257. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  32258. var string = '' + newProps.children;
  32259. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  32260. validateDOMNesting(null, string, ownAncestorInfo);
  32261. }
  32262. }
  32263. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  32264. }
  32265. function shouldSetTextContent(type, props) {
  32266. 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;
  32267. }
  32268. function shouldDeprioritizeSubtree(type, props) {
  32269. return !!props.hidden;
  32270. }
  32271. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  32272. {
  32273. var hostContextDev = hostContext;
  32274. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  32275. }
  32276. var textNode = createTextNode(text, rootContainerInstance);
  32277. precacheFiberNode(internalInstanceHandle, textNode);
  32278. return textNode;
  32279. }
  32280. var isPrimaryRenderer = true;
  32281. var warnsIfNotActing = true;
  32282. // This initialization code may run even on server environments
  32283. // if a component just imports ReactDOM (e.g. for findDOMNode).
  32284. // Some environments might not have setTimeout or clearTimeout.
  32285. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  32286. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  32287. var noTimeout = -1;
  32288. // -------------------
  32289. // Mutation
  32290. // -------------------
  32291. var supportsMutation = true;
  32292. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  32293. // Despite the naming that might imply otherwise, this method only
  32294. // fires if there is an `Update` effect scheduled during mounting.
  32295. // This happens if `finalizeInitialChildren` returns `true` (which it
  32296. // does to implement the `autoFocus` attribute on the client). But
  32297. // there are also other cases when this might happen (such as patching
  32298. // up text content during hydration mismatch). So we'll check this again.
  32299. if (shouldAutoFocusHostComponent(type, newProps)) {
  32300. domElement.focus();
  32301. }
  32302. }
  32303. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  32304. // Update the props handle so that we know which props are the ones with
  32305. // with current event handlers.
  32306. updateFiberProps(domElement, newProps);
  32307. // Apply the diff to the DOM node.
  32308. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  32309. }
  32310. function resetTextContent(domElement) {
  32311. setTextContent(domElement, '');
  32312. }
  32313. function commitTextUpdate(textInstance, oldText, newText) {
  32314. textInstance.nodeValue = newText;
  32315. }
  32316. function appendChild(parentInstance, child) {
  32317. parentInstance.appendChild(child);
  32318. }
  32319. function appendChildToContainer(container, child) {
  32320. var parentNode = void 0;
  32321. if (container.nodeType === COMMENT_NODE) {
  32322. parentNode = container.parentNode;
  32323. parentNode.insertBefore(child, container);
  32324. } else {
  32325. parentNode = container;
  32326. parentNode.appendChild(child);
  32327. }
  32328. // This container might be used for a portal.
  32329. // If something inside a portal is clicked, that click should bubble
  32330. // through the React tree. However, on Mobile Safari the click would
  32331. // never bubble through the *DOM* tree unless an ancestor with onclick
  32332. // event exists. So we wouldn't see it and dispatch it.
  32333. // This is why we ensure that non React root containers have inline onclick
  32334. // defined.
  32335. // https://github.com/facebook/react/issues/11918
  32336. var reactRootContainer = container._reactRootContainer;
  32337. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  32338. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  32339. trapClickOnNonInteractiveElement(parentNode);
  32340. }
  32341. }
  32342. function insertBefore(parentInstance, child, beforeChild) {
  32343. parentInstance.insertBefore(child, beforeChild);
  32344. }
  32345. function insertInContainerBefore(container, child, beforeChild) {
  32346. if (container.nodeType === COMMENT_NODE) {
  32347. container.parentNode.insertBefore(child, beforeChild);
  32348. } else {
  32349. container.insertBefore(child, beforeChild);
  32350. }
  32351. }
  32352. function removeChild(parentInstance, child) {
  32353. parentInstance.removeChild(child);
  32354. }
  32355. function removeChildFromContainer(container, child) {
  32356. if (container.nodeType === COMMENT_NODE) {
  32357. container.parentNode.removeChild(child);
  32358. } else {
  32359. container.removeChild(child);
  32360. }
  32361. }
  32362. function clearSuspenseBoundary(parentInstance, suspenseInstance) {
  32363. var node = suspenseInstance;
  32364. // Delete all nodes within this suspense boundary.
  32365. // There might be nested nodes so we need to keep track of how
  32366. // deep we are and only break out when we're back on top.
  32367. var depth = 0;
  32368. do {
  32369. var nextNode = node.nextSibling;
  32370. parentInstance.removeChild(node);
  32371. if (nextNode && nextNode.nodeType === COMMENT_NODE) {
  32372. var data = nextNode.data;
  32373. if (data === SUSPENSE_END_DATA) {
  32374. if (depth === 0) {
  32375. parentInstance.removeChild(nextNode);
  32376. return;
  32377. } else {
  32378. depth--;
  32379. }
  32380. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {
  32381. depth++;
  32382. }
  32383. }
  32384. node = nextNode;
  32385. } while (node);
  32386. // TODO: Warn, we didn't find the end comment boundary.
  32387. }
  32388. function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
  32389. if (container.nodeType === COMMENT_NODE) {
  32390. clearSuspenseBoundary(container.parentNode, suspenseInstance);
  32391. } else if (container.nodeType === ELEMENT_NODE) {
  32392. clearSuspenseBoundary(container, suspenseInstance);
  32393. } else {
  32394. // Document nodes should never contain suspense boundaries.
  32395. }
  32396. }
  32397. function hideInstance(instance) {
  32398. // TODO: Does this work for all element types? What about MathML? Should we
  32399. // pass host context to this method?
  32400. instance = instance;
  32401. var style = instance.style;
  32402. if (typeof style.setProperty === 'function') {
  32403. style.setProperty('display', 'none', 'important');
  32404. } else {
  32405. style.display = 'none';
  32406. }
  32407. }
  32408. function hideTextInstance(textInstance) {
  32409. textInstance.nodeValue = '';
  32410. }
  32411. function unhideInstance(instance, props) {
  32412. instance = instance;
  32413. var styleProp = props[STYLE];
  32414. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  32415. instance.style.display = dangerousStyleValue('display', display);
  32416. }
  32417. function unhideTextInstance(textInstance, text) {
  32418. textInstance.nodeValue = text;
  32419. }
  32420. // -------------------
  32421. // Hydration
  32422. // -------------------
  32423. var supportsHydration = true;
  32424. function canHydrateInstance(instance, type, props) {
  32425. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  32426. return null;
  32427. }
  32428. // This has now been refined to an element node.
  32429. return instance;
  32430. }
  32431. function canHydrateTextInstance(instance, text) {
  32432. if (text === '' || instance.nodeType !== TEXT_NODE) {
  32433. // Empty strings are not parsed by HTML so there won't be a correct match here.
  32434. return null;
  32435. }
  32436. // This has now been refined to a text node.
  32437. return instance;
  32438. }
  32439. function canHydrateSuspenseInstance(instance) {
  32440. if (instance.nodeType !== COMMENT_NODE) {
  32441. // Empty strings are not parsed by HTML so there won't be a correct match here.
  32442. return null;
  32443. }
  32444. // This has now been refined to a suspense node.
  32445. return instance;
  32446. }
  32447. function isSuspenseInstancePending(instance) {
  32448. return instance.data === SUSPENSE_PENDING_START_DATA;
  32449. }
  32450. function isSuspenseInstanceFallback(instance) {
  32451. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  32452. }
  32453. function registerSuspenseInstanceRetry(instance, callback) {
  32454. instance._reactRetry = callback;
  32455. }
  32456. function getNextHydratable(node) {
  32457. // Skip non-hydratable nodes.
  32458. for (; node != null; node = node.nextSibling) {
  32459. var nodeType = node.nodeType;
  32460. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  32461. break;
  32462. }
  32463. if (enableSuspenseServerRenderer) {
  32464. if (nodeType === COMMENT_NODE) {
  32465. break;
  32466. }
  32467. var nodeData = node.data;
  32468. if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {
  32469. break;
  32470. }
  32471. }
  32472. }
  32473. return node;
  32474. }
  32475. function getNextHydratableSibling(instance) {
  32476. return getNextHydratable(instance.nextSibling);
  32477. }
  32478. function getFirstHydratableChild(parentInstance) {
  32479. return getNextHydratable(parentInstance.firstChild);
  32480. }
  32481. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  32482. precacheFiberNode(internalInstanceHandle, instance);
  32483. // TODO: Possibly defer this until the commit phase where all the events
  32484. // get attached.
  32485. updateFiberProps(instance, props);
  32486. var parentNamespace = void 0;
  32487. {
  32488. var hostContextDev = hostContext;
  32489. parentNamespace = hostContextDev.namespace;
  32490. }
  32491. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  32492. }
  32493. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  32494. precacheFiberNode(internalInstanceHandle, textInstance);
  32495. return diffHydratedText(textInstance, text);
  32496. }
  32497. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  32498. var node = suspenseInstance.nextSibling;
  32499. // Skip past all nodes within this suspense boundary.
  32500. // There might be nested nodes so we need to keep track of how
  32501. // deep we are and only break out when we're back on top.
  32502. var depth = 0;
  32503. while (node) {
  32504. if (node.nodeType === COMMENT_NODE) {
  32505. var data = node.data;
  32506. if (data === SUSPENSE_END_DATA) {
  32507. if (depth === 0) {
  32508. return getNextHydratableSibling(node);
  32509. } else {
  32510. depth--;
  32511. }
  32512. } else if (data === SUSPENSE_START_DATA) {
  32513. depth++;
  32514. }
  32515. }
  32516. node = node.nextSibling;
  32517. }
  32518. // TODO: Warn, we didn't find the end comment boundary.
  32519. return null;
  32520. }
  32521. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  32522. {
  32523. warnForUnmatchedText(textInstance, text);
  32524. }
  32525. }
  32526. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  32527. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  32528. warnForUnmatchedText(textInstance, text);
  32529. }
  32530. }
  32531. function didNotHydrateContainerInstance(parentContainer, instance) {
  32532. {
  32533. if (instance.nodeType === ELEMENT_NODE) {
  32534. warnForDeletedHydratableElement(parentContainer, instance);
  32535. } else if (instance.nodeType === COMMENT_NODE) {
  32536. // TODO: warnForDeletedHydratableSuspenseBoundary
  32537. } else {
  32538. warnForDeletedHydratableText(parentContainer, instance);
  32539. }
  32540. }
  32541. }
  32542. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  32543. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  32544. if (instance.nodeType === ELEMENT_NODE) {
  32545. warnForDeletedHydratableElement(parentInstance, instance);
  32546. } else if (instance.nodeType === COMMENT_NODE) {
  32547. // TODO: warnForDeletedHydratableSuspenseBoundary
  32548. } else {
  32549. warnForDeletedHydratableText(parentInstance, instance);
  32550. }
  32551. }
  32552. }
  32553. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  32554. {
  32555. warnForInsertedHydratedElement(parentContainer, type, props);
  32556. }
  32557. }
  32558. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  32559. {
  32560. warnForInsertedHydratedText(parentContainer, text);
  32561. }
  32562. }
  32563. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  32564. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  32565. warnForInsertedHydratedElement(parentInstance, type, props);
  32566. }
  32567. }
  32568. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  32569. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  32570. warnForInsertedHydratedText(parentInstance, text);
  32571. }
  32572. }
  32573. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  32574. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  32575. // TODO: warnForInsertedHydratedSuspense(parentInstance);
  32576. }
  32577. }
  32578. function mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance) {
  32579. // Listen to events
  32580. var doc = rootContainerInstance.ownerDocument;
  32581. var documentBody = doc.body || doc;
  32582. var _ref = responder,
  32583. rootEventTypes = _ref.rootEventTypes,
  32584. targetEventTypes = _ref.targetEventTypes;
  32585. if (targetEventTypes !== null) {
  32586. listenToEventResponderEventTypes(targetEventTypes, documentBody);
  32587. }
  32588. if (rootEventTypes !== null) {
  32589. addRootEventTypesForResponderInstance(responderInstance, rootEventTypes);
  32590. listenToEventResponderEventTypes(rootEventTypes, documentBody);
  32591. }
  32592. mountEventResponder(responder, responderInstance, responderProps, responderState);
  32593. return responderInstance;
  32594. }
  32595. function unmountResponderInstance(responderInstance) {
  32596. if (enableFlareAPI) {
  32597. // TODO stop listening to targetEventTypes
  32598. unmountEventResponder(responderInstance);
  32599. }
  32600. }
  32601. function getFundamentalComponentInstance(fundamentalInstance) {
  32602. if (enableFundamentalAPI) {
  32603. var currentFiber = fundamentalInstance.currentFiber,
  32604. impl = fundamentalInstance.impl,
  32605. _props = fundamentalInstance.props,
  32606. state = fundamentalInstance.state;
  32607. var instance = impl.getInstance(null, _props, state);
  32608. precacheFiberNode(currentFiber, instance);
  32609. return instance;
  32610. }
  32611. // Because of the flag above, this gets around the Flow error;
  32612. return null;
  32613. }
  32614. function mountFundamentalComponent(fundamentalInstance) {
  32615. if (enableFundamentalAPI) {
  32616. var impl = fundamentalInstance.impl,
  32617. instance = fundamentalInstance.instance,
  32618. _props2 = fundamentalInstance.props,
  32619. state = fundamentalInstance.state;
  32620. var onMount = impl.onMount;
  32621. if (onMount !== undefined) {
  32622. onMount(null, instance, _props2, state);
  32623. }
  32624. }
  32625. }
  32626. function shouldUpdateFundamentalComponent(fundamentalInstance) {
  32627. if (enableFundamentalAPI) {
  32628. var impl = fundamentalInstance.impl,
  32629. prevProps = fundamentalInstance.prevProps,
  32630. _props3 = fundamentalInstance.props,
  32631. state = fundamentalInstance.state;
  32632. var shouldUpdate = impl.shouldUpdate;
  32633. if (shouldUpdate !== undefined) {
  32634. return shouldUpdate(null, prevProps, _props3, state);
  32635. }
  32636. }
  32637. return true;
  32638. }
  32639. function updateFundamentalComponent(fundamentalInstance) {
  32640. if (enableFundamentalAPI) {
  32641. var impl = fundamentalInstance.impl,
  32642. instance = fundamentalInstance.instance,
  32643. prevProps = fundamentalInstance.prevProps,
  32644. _props4 = fundamentalInstance.props,
  32645. state = fundamentalInstance.state;
  32646. var onUpdate = impl.onUpdate;
  32647. if (onUpdate !== undefined) {
  32648. onUpdate(null, instance, prevProps, _props4, state);
  32649. }
  32650. }
  32651. }
  32652. function unmountFundamentalComponent(fundamentalInstance) {
  32653. if (enableFundamentalAPI) {
  32654. var impl = fundamentalInstance.impl,
  32655. instance = fundamentalInstance.instance,
  32656. _props5 = fundamentalInstance.props,
  32657. state = fundamentalInstance.state;
  32658. var onUnmount = impl.onUnmount;
  32659. if (onUnmount !== undefined) {
  32660. onUnmount(null, instance, _props5, state);
  32661. }
  32662. }
  32663. }
  32664. // Prefix measurements so that it's possible to filter them.
  32665. // Longer prefixes are hard to read in DevTools.
  32666. var reactEmoji = '\u269B';
  32667. var warningEmoji = '\u26D4';
  32668. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  32669. // Keep track of current fiber so that we know the path to unwind on pause.
  32670. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  32671. var currentFiber = null;
  32672. // If we're in the middle of user code, which fiber and method is it?
  32673. // Reusing `currentFiber` would be confusing for this because user code fiber
  32674. // can change during commit phase too, but we don't need to unwind it (since
  32675. // lifecycles in the commit phase don't resemble a tree).
  32676. var currentPhase = null;
  32677. var currentPhaseFiber = null;
  32678. // Did lifecycle hook schedule an update? This is often a performance problem,
  32679. // so we will keep track of it, and include it in the report.
  32680. // Track commits caused by cascading updates.
  32681. var isCommitting = false;
  32682. var hasScheduledUpdateInCurrentCommit = false;
  32683. var hasScheduledUpdateInCurrentPhase = false;
  32684. var commitCountInCurrentWorkLoop = 0;
  32685. var effectCountInCurrentCommit = 0;
  32686. var isWaitingForCallback = false;
  32687. // During commits, we only show a measurement once per method name
  32688. // to avoid stretch the commit phase with measurement overhead.
  32689. var labelsInCurrentCommit = new Set();
  32690. var formatMarkName = function (markName) {
  32691. return reactEmoji + ' ' + markName;
  32692. };
  32693. var formatLabel = function (label, warning) {
  32694. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  32695. var suffix = warning ? ' Warning: ' + warning : '';
  32696. return '' + prefix + label + suffix;
  32697. };
  32698. var beginMark = function (markName) {
  32699. performance.mark(formatMarkName(markName));
  32700. };
  32701. var clearMark = function (markName) {
  32702. performance.clearMarks(formatMarkName(markName));
  32703. };
  32704. var endMark = function (label, markName, warning) {
  32705. var formattedMarkName = formatMarkName(markName);
  32706. var formattedLabel = formatLabel(label, warning);
  32707. try {
  32708. performance.measure(formattedLabel, formattedMarkName);
  32709. } catch (err) {}
  32710. // If previous mark was missing for some reason, this will throw.
  32711. // This could only happen if React crashed in an unexpected place earlier.
  32712. // Don't pile on with more errors.
  32713. // Clear marks immediately to avoid growing buffer.
  32714. performance.clearMarks(formattedMarkName);
  32715. performance.clearMeasures(formattedLabel);
  32716. };
  32717. var getFiberMarkName = function (label, debugID) {
  32718. return label + ' (#' + debugID + ')';
  32719. };
  32720. var getFiberLabel = function (componentName, isMounted, phase) {
  32721. if (phase === null) {
  32722. // These are composite component total time measurements.
  32723. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  32724. } else {
  32725. // Composite component methods.
  32726. return componentName + '.' + phase;
  32727. }
  32728. };
  32729. var beginFiberMark = function (fiber, phase) {
  32730. var componentName = getComponentName(fiber.type) || 'Unknown';
  32731. var debugID = fiber._debugID;
  32732. var isMounted = fiber.alternate !== null;
  32733. var label = getFiberLabel(componentName, isMounted, phase);
  32734. if (isCommitting && labelsInCurrentCommit.has(label)) {
  32735. // During the commit phase, we don't show duplicate labels because
  32736. // there is a fixed overhead for every measurement, and we don't
  32737. // want to stretch the commit phase beyond necessary.
  32738. return false;
  32739. }
  32740. labelsInCurrentCommit.add(label);
  32741. var markName = getFiberMarkName(label, debugID);
  32742. beginMark(markName);
  32743. return true;
  32744. };
  32745. var clearFiberMark = function (fiber, phase) {
  32746. var componentName = getComponentName(fiber.type) || 'Unknown';
  32747. var debugID = fiber._debugID;
  32748. var isMounted = fiber.alternate !== null;
  32749. var label = getFiberLabel(componentName, isMounted, phase);
  32750. var markName = getFiberMarkName(label, debugID);
  32751. clearMark(markName);
  32752. };
  32753. var endFiberMark = function (fiber, phase, warning) {
  32754. var componentName = getComponentName(fiber.type) || 'Unknown';
  32755. var debugID = fiber._debugID;
  32756. var isMounted = fiber.alternate !== null;
  32757. var label = getFiberLabel(componentName, isMounted, phase);
  32758. var markName = getFiberMarkName(label, debugID);
  32759. endMark(label, markName, warning);
  32760. };
  32761. var shouldIgnoreFiber = function (fiber) {
  32762. // Host components should be skipped in the timeline.
  32763. // We could check typeof fiber.type, but does this work with RN?
  32764. switch (fiber.tag) {
  32765. case HostRoot:
  32766. case HostComponent:
  32767. case HostText:
  32768. case HostPortal:
  32769. case Fragment:
  32770. case ContextProvider:
  32771. case ContextConsumer:
  32772. case Mode:
  32773. return true;
  32774. default:
  32775. return false;
  32776. }
  32777. };
  32778. var clearPendingPhaseMeasurement = function () {
  32779. if (currentPhase !== null && currentPhaseFiber !== null) {
  32780. clearFiberMark(currentPhaseFiber, currentPhase);
  32781. }
  32782. currentPhaseFiber = null;
  32783. currentPhase = null;
  32784. hasScheduledUpdateInCurrentPhase = false;
  32785. };
  32786. var pauseTimers = function () {
  32787. // Stops all currently active measurements so that they can be resumed
  32788. // if we continue in a later deferred loop from the same unit of work.
  32789. var fiber = currentFiber;
  32790. while (fiber) {
  32791. if (fiber._debugIsCurrentlyTiming) {
  32792. endFiberMark(fiber, null, null);
  32793. }
  32794. fiber = fiber.return;
  32795. }
  32796. };
  32797. var resumeTimersRecursively = function (fiber) {
  32798. if (fiber.return !== null) {
  32799. resumeTimersRecursively(fiber.return);
  32800. }
  32801. if (fiber._debugIsCurrentlyTiming) {
  32802. beginFiberMark(fiber, null);
  32803. }
  32804. };
  32805. var resumeTimers = function () {
  32806. // Resumes all measurements that were active during the last deferred loop.
  32807. if (currentFiber !== null) {
  32808. resumeTimersRecursively(currentFiber);
  32809. }
  32810. };
  32811. function recordEffect() {
  32812. if (enableUserTimingAPI) {
  32813. effectCountInCurrentCommit++;
  32814. }
  32815. }
  32816. function recordScheduleUpdate() {
  32817. if (enableUserTimingAPI) {
  32818. if (isCommitting) {
  32819. hasScheduledUpdateInCurrentCommit = true;
  32820. }
  32821. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  32822. hasScheduledUpdateInCurrentPhase = true;
  32823. }
  32824. }
  32825. }
  32826. function startRequestCallbackTimer() {
  32827. if (enableUserTimingAPI) {
  32828. if (supportsUserTiming && !isWaitingForCallback) {
  32829. isWaitingForCallback = true;
  32830. beginMark('(Waiting for async callback...)');
  32831. }
  32832. }
  32833. }
  32834. function stopRequestCallbackTimer(didExpire) {
  32835. if (enableUserTimingAPI) {
  32836. if (supportsUserTiming) {
  32837. isWaitingForCallback = false;
  32838. var warning = didExpire ? 'Update expired; will flush synchronously' : null;
  32839. endMark('(Waiting for async callback...)', '(Waiting for async callback...)', warning);
  32840. }
  32841. }
  32842. }
  32843. function startWorkTimer(fiber) {
  32844. if (enableUserTimingAPI) {
  32845. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  32846. return;
  32847. }
  32848. // If we pause, this is the fiber to unwind from.
  32849. currentFiber = fiber;
  32850. if (!beginFiberMark(fiber, null)) {
  32851. return;
  32852. }
  32853. fiber._debugIsCurrentlyTiming = true;
  32854. }
  32855. }
  32856. function cancelWorkTimer(fiber) {
  32857. if (enableUserTimingAPI) {
  32858. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  32859. return;
  32860. }
  32861. // Remember we shouldn't complete measurement for this fiber.
  32862. // Otherwise flamechart will be deep even for small updates.
  32863. fiber._debugIsCurrentlyTiming = false;
  32864. clearFiberMark(fiber, null);
  32865. }
  32866. }
  32867. function stopWorkTimer(fiber) {
  32868. if (enableUserTimingAPI) {
  32869. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  32870. return;
  32871. }
  32872. // If we pause, its parent is the fiber to unwind from.
  32873. currentFiber = fiber.return;
  32874. if (!fiber._debugIsCurrentlyTiming) {
  32875. return;
  32876. }
  32877. fiber._debugIsCurrentlyTiming = false;
  32878. endFiberMark(fiber, null, null);
  32879. }
  32880. }
  32881. function stopFailedWorkTimer(fiber) {
  32882. if (enableUserTimingAPI) {
  32883. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  32884. return;
  32885. }
  32886. // If we pause, its parent is the fiber to unwind from.
  32887. currentFiber = fiber.return;
  32888. if (!fiber._debugIsCurrentlyTiming) {
  32889. return;
  32890. }
  32891. fiber._debugIsCurrentlyTiming = false;
  32892. var warning = fiber.tag === SuspenseComponent || fiber.tag === DehydratedSuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  32893. endFiberMark(fiber, null, warning);
  32894. }
  32895. }
  32896. function startPhaseTimer(fiber, phase) {
  32897. if (enableUserTimingAPI) {
  32898. if (!supportsUserTiming) {
  32899. return;
  32900. }
  32901. clearPendingPhaseMeasurement();
  32902. if (!beginFiberMark(fiber, phase)) {
  32903. return;
  32904. }
  32905. currentPhaseFiber = fiber;
  32906. currentPhase = phase;
  32907. }
  32908. }
  32909. function stopPhaseTimer() {
  32910. if (enableUserTimingAPI) {
  32911. if (!supportsUserTiming) {
  32912. return;
  32913. }
  32914. if (currentPhase !== null && currentPhaseFiber !== null) {
  32915. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  32916. endFiberMark(currentPhaseFiber, currentPhase, warning);
  32917. }
  32918. currentPhase = null;
  32919. currentPhaseFiber = null;
  32920. }
  32921. }
  32922. function startWorkLoopTimer(nextUnitOfWork) {
  32923. if (enableUserTimingAPI) {
  32924. currentFiber = nextUnitOfWork;
  32925. if (!supportsUserTiming) {
  32926. return;
  32927. }
  32928. commitCountInCurrentWorkLoop = 0;
  32929. // This is top level call.
  32930. // Any other measurements are performed within.
  32931. beginMark('(React Tree Reconciliation)');
  32932. // Resume any measurements that were in progress during the last loop.
  32933. resumeTimers();
  32934. }
  32935. }
  32936. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  32937. if (enableUserTimingAPI) {
  32938. if (!supportsUserTiming) {
  32939. return;
  32940. }
  32941. var warning = null;
  32942. if (interruptedBy !== null) {
  32943. if (interruptedBy.tag === HostRoot) {
  32944. warning = 'A top-level update interrupted the previous render';
  32945. } else {
  32946. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  32947. warning = 'An update to ' + componentName + ' interrupted the previous render';
  32948. }
  32949. } else if (commitCountInCurrentWorkLoop > 1) {
  32950. warning = 'There were cascading updates';
  32951. }
  32952. commitCountInCurrentWorkLoop = 0;
  32953. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  32954. // Pause any measurements until the next loop.
  32955. pauseTimers();
  32956. endMark(label, '(React Tree Reconciliation)', warning);
  32957. }
  32958. }
  32959. function startCommitTimer() {
  32960. if (enableUserTimingAPI) {
  32961. if (!supportsUserTiming) {
  32962. return;
  32963. }
  32964. isCommitting = true;
  32965. hasScheduledUpdateInCurrentCommit = false;
  32966. labelsInCurrentCommit.clear();
  32967. beginMark('(Committing Changes)');
  32968. }
  32969. }
  32970. function stopCommitTimer() {
  32971. if (enableUserTimingAPI) {
  32972. if (!supportsUserTiming) {
  32973. return;
  32974. }
  32975. var warning = null;
  32976. if (hasScheduledUpdateInCurrentCommit) {
  32977. warning = 'Lifecycle hook scheduled a cascading update';
  32978. } else if (commitCountInCurrentWorkLoop > 0) {
  32979. warning = 'Caused by a cascading update in earlier commit';
  32980. }
  32981. hasScheduledUpdateInCurrentCommit = false;
  32982. commitCountInCurrentWorkLoop++;
  32983. isCommitting = false;
  32984. labelsInCurrentCommit.clear();
  32985. endMark('(Committing Changes)', '(Committing Changes)', warning);
  32986. }
  32987. }
  32988. function startCommitSnapshotEffectsTimer() {
  32989. if (enableUserTimingAPI) {
  32990. if (!supportsUserTiming) {
  32991. return;
  32992. }
  32993. effectCountInCurrentCommit = 0;
  32994. beginMark('(Committing Snapshot Effects)');
  32995. }
  32996. }
  32997. function stopCommitSnapshotEffectsTimer() {
  32998. if (enableUserTimingAPI) {
  32999. if (!supportsUserTiming) {
  33000. return;
  33001. }
  33002. var count = effectCountInCurrentCommit;
  33003. effectCountInCurrentCommit = 0;
  33004. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  33005. }
  33006. }
  33007. function startCommitHostEffectsTimer() {
  33008. if (enableUserTimingAPI) {
  33009. if (!supportsUserTiming) {
  33010. return;
  33011. }
  33012. effectCountInCurrentCommit = 0;
  33013. beginMark('(Committing Host Effects)');
  33014. }
  33015. }
  33016. function stopCommitHostEffectsTimer() {
  33017. if (enableUserTimingAPI) {
  33018. if (!supportsUserTiming) {
  33019. return;
  33020. }
  33021. var count = effectCountInCurrentCommit;
  33022. effectCountInCurrentCommit = 0;
  33023. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  33024. }
  33025. }
  33026. function startCommitLifeCyclesTimer() {
  33027. if (enableUserTimingAPI) {
  33028. if (!supportsUserTiming) {
  33029. return;
  33030. }
  33031. effectCountInCurrentCommit = 0;
  33032. beginMark('(Calling Lifecycle Methods)');
  33033. }
  33034. }
  33035. function stopCommitLifeCyclesTimer() {
  33036. if (enableUserTimingAPI) {
  33037. if (!supportsUserTiming) {
  33038. return;
  33039. }
  33040. var count = effectCountInCurrentCommit;
  33041. effectCountInCurrentCommit = 0;
  33042. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  33043. }
  33044. }
  33045. var valueStack = [];
  33046. var fiberStack = void 0;
  33047. {
  33048. fiberStack = [];
  33049. }
  33050. var index = -1;
  33051. function createCursor(defaultValue) {
  33052. return {
  33053. current: defaultValue
  33054. };
  33055. }
  33056. function pop(cursor, fiber) {
  33057. if (index < 0) {
  33058. {
  33059. warningWithoutStack$1(false, 'Unexpected pop.');
  33060. }
  33061. return;
  33062. }
  33063. {
  33064. if (fiber !== fiberStack[index]) {
  33065. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  33066. }
  33067. }
  33068. cursor.current = valueStack[index];
  33069. valueStack[index] = null;
  33070. {
  33071. fiberStack[index] = null;
  33072. }
  33073. index--;
  33074. }
  33075. function push(cursor, value, fiber) {
  33076. index++;
  33077. valueStack[index] = cursor.current;
  33078. {
  33079. fiberStack[index] = fiber;
  33080. }
  33081. cursor.current = value;
  33082. }
  33083. var warnedAboutMissingGetChildContext = void 0;
  33084. {
  33085. warnedAboutMissingGetChildContext = {};
  33086. }
  33087. var emptyContextObject = {};
  33088. {
  33089. Object.freeze(emptyContextObject);
  33090. }
  33091. // A cursor to the current merged context object on the stack.
  33092. var contextStackCursor = createCursor(emptyContextObject);
  33093. // A cursor to a boolean indicating whether the context has changed.
  33094. var didPerformWorkStackCursor = createCursor(false);
  33095. // Keep track of the previous context object that was on the stack.
  33096. // We use this to get access to the parent context after we have already
  33097. // pushed the next context provider, and now need to merge their contexts.
  33098. var previousContext = emptyContextObject;
  33099. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  33100. if (disableLegacyContext) {
  33101. return emptyContextObject;
  33102. } else {
  33103. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  33104. // If the fiber is a context provider itself, when we read its context
  33105. // we may have already pushed its own child context on the stack. A context
  33106. // provider should not "see" its own child context. Therefore we read the
  33107. // previous (parent) context instead for a context provider.
  33108. return previousContext;
  33109. }
  33110. return contextStackCursor.current;
  33111. }
  33112. }
  33113. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  33114. if (disableLegacyContext) {
  33115. return;
  33116. } else {
  33117. var instance = workInProgress.stateNode;
  33118. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  33119. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  33120. }
  33121. }
  33122. function getMaskedContext(workInProgress, unmaskedContext) {
  33123. if (disableLegacyContext) {
  33124. return emptyContextObject;
  33125. } else {
  33126. var type = workInProgress.type;
  33127. var contextTypes = type.contextTypes;
  33128. if (!contextTypes) {
  33129. return emptyContextObject;
  33130. }
  33131. // Avoid recreating masked context unless unmasked context has changed.
  33132. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  33133. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  33134. var instance = workInProgress.stateNode;
  33135. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  33136. return instance.__reactInternalMemoizedMaskedChildContext;
  33137. }
  33138. var context = {};
  33139. for (var key in contextTypes) {
  33140. context[key] = unmaskedContext[key];
  33141. }
  33142. {
  33143. var name = getComponentName(type) || 'Unknown';
  33144. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  33145. }
  33146. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  33147. // Context is created before the class component is instantiated so check for instance.
  33148. if (instance) {
  33149. cacheContext(workInProgress, unmaskedContext, context);
  33150. }
  33151. return context;
  33152. }
  33153. }
  33154. function hasContextChanged() {
  33155. if (disableLegacyContext) {
  33156. return false;
  33157. } else {
  33158. return didPerformWorkStackCursor.current;
  33159. }
  33160. }
  33161. function isContextProvider(type) {
  33162. if (disableLegacyContext) {
  33163. return false;
  33164. } else {
  33165. var childContextTypes = type.childContextTypes;
  33166. return childContextTypes !== null && childContextTypes !== undefined;
  33167. }
  33168. }
  33169. function popContext(fiber) {
  33170. if (disableLegacyContext) {
  33171. return;
  33172. } else {
  33173. pop(didPerformWorkStackCursor, fiber);
  33174. pop(contextStackCursor, fiber);
  33175. }
  33176. }
  33177. function popTopLevelContextObject(fiber) {
  33178. if (disableLegacyContext) {
  33179. return;
  33180. } else {
  33181. pop(didPerformWorkStackCursor, fiber);
  33182. pop(contextStackCursor, fiber);
  33183. }
  33184. }
  33185. function pushTopLevelContextObject(fiber, context, didChange) {
  33186. if (disableLegacyContext) {
  33187. return;
  33188. } else {
  33189. (function () {
  33190. if (!(contextStackCursor.current === emptyContextObject)) {
  33191. {
  33192. throw ReactError(Error('Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.'));
  33193. }
  33194. }
  33195. })();
  33196. push(contextStackCursor, context, fiber);
  33197. push(didPerformWorkStackCursor, didChange, fiber);
  33198. }
  33199. }
  33200. function processChildContext(fiber, type, parentContext) {
  33201. if (disableLegacyContext) {
  33202. return parentContext;
  33203. } else {
  33204. var instance = fiber.stateNode;
  33205. var childContextTypes = type.childContextTypes;
  33206. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  33207. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  33208. if (typeof instance.getChildContext !== 'function') {
  33209. {
  33210. var componentName = getComponentName(type) || 'Unknown';
  33211. if (!warnedAboutMissingGetChildContext[componentName]) {
  33212. warnedAboutMissingGetChildContext[componentName] = true;
  33213. warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
  33214. }
  33215. }
  33216. return parentContext;
  33217. }
  33218. var childContext = void 0;
  33219. {
  33220. setCurrentPhase('getChildContext');
  33221. }
  33222. startPhaseTimer(fiber, 'getChildContext');
  33223. childContext = instance.getChildContext();
  33224. stopPhaseTimer();
  33225. {
  33226. setCurrentPhase(null);
  33227. }
  33228. for (var contextKey in childContext) {
  33229. (function () {
  33230. if (!(contextKey in childContextTypes)) {
  33231. {
  33232. throw ReactError(Error((getComponentName(type) || 'Unknown') + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'));
  33233. }
  33234. }
  33235. })();
  33236. }
  33237. {
  33238. var name = getComponentName(type) || 'Unknown';
  33239. checkPropTypes(childContextTypes, childContext, 'child context', name,
  33240. // In practice, there is one case in which we won't get a stack. It's when
  33241. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  33242. // context from the parent component instance. The stack will be missing
  33243. // because it's outside of the reconciliation, and so the pointer has not
  33244. // been set. This is rare and doesn't matter. We'll also remove that API.
  33245. getCurrentFiberStackInDev);
  33246. }
  33247. return _assign({}, parentContext, childContext);
  33248. }
  33249. }
  33250. function pushContextProvider(workInProgress) {
  33251. if (disableLegacyContext) {
  33252. return false;
  33253. } else {
  33254. var instance = workInProgress.stateNode;
  33255. // We push the context as early as possible to ensure stack integrity.
  33256. // If the instance does not exist yet, we will push null at first,
  33257. // and replace it on the stack later when invalidating the context.
  33258. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  33259. // Remember the parent context so we can merge with it later.
  33260. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  33261. previousContext = contextStackCursor.current;
  33262. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  33263. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  33264. return true;
  33265. }
  33266. }
  33267. function invalidateContextProvider(workInProgress, type, didChange) {
  33268. if (disableLegacyContext) {
  33269. return;
  33270. } else {
  33271. var instance = workInProgress.stateNode;
  33272. (function () {
  33273. if (!instance) {
  33274. {
  33275. throw ReactError(Error('Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.'));
  33276. }
  33277. }
  33278. })();
  33279. if (didChange) {
  33280. // Merge parent and own context.
  33281. // Skip this if we're not updating due to sCU.
  33282. // This avoids unnecessarily recomputing memoized values.
  33283. var mergedContext = processChildContext(workInProgress, type, previousContext);
  33284. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  33285. // Replace the old (or empty) context with the new one.
  33286. // It is important to unwind the context in the reverse order.
  33287. pop(didPerformWorkStackCursor, workInProgress);
  33288. pop(contextStackCursor, workInProgress);
  33289. // Now push the new context and mark that it has changed.
  33290. push(contextStackCursor, mergedContext, workInProgress);
  33291. push(didPerformWorkStackCursor, didChange, workInProgress);
  33292. } else {
  33293. pop(didPerformWorkStackCursor, workInProgress);
  33294. push(didPerformWorkStackCursor, didChange, workInProgress);
  33295. }
  33296. }
  33297. }
  33298. function findCurrentUnmaskedContext(fiber) {
  33299. if (disableLegacyContext) {
  33300. return emptyContextObject;
  33301. } else {
  33302. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  33303. // makes sense elsewhere
  33304. (function () {
  33305. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  33306. {
  33307. throw ReactError(Error('Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.'));
  33308. }
  33309. }
  33310. })();
  33311. var node = fiber;
  33312. do {
  33313. switch (node.tag) {
  33314. case HostRoot:
  33315. return node.stateNode.context;
  33316. case ClassComponent:
  33317. {
  33318. var Component = node.type;
  33319. if (isContextProvider(Component)) {
  33320. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  33321. }
  33322. break;
  33323. }
  33324. }
  33325. node = node.return;
  33326. } while (node !== null);
  33327. (function () {
  33328. {
  33329. {
  33330. throw ReactError(Error('Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.'));
  33331. }
  33332. }
  33333. })();
  33334. }
  33335. }
  33336. var LegacyRoot = 0;
  33337. var BatchedRoot = 1;
  33338. var ConcurrentRoot = 2;
  33339. // Intentionally not named imports because Rollup would use dynamic dispatch for
  33340. // CommonJS interop named imports.
  33341. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority;
  33342. var Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback;
  33343. var Scheduler_cancelCallback = Scheduler.unstable_cancelCallback;
  33344. var Scheduler_shouldYield = Scheduler.unstable_shouldYield;
  33345. var Scheduler_requestPaint = Scheduler.unstable_requestPaint;
  33346. var Scheduler_now = Scheduler.unstable_now;
  33347. var Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;
  33348. var Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority;
  33349. var Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  33350. var Scheduler_NormalPriority = Scheduler.unstable_NormalPriority;
  33351. var Scheduler_LowPriority = Scheduler.unstable_LowPriority;
  33352. var Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  33353. if (enableSchedulerTracing) {
  33354. // Provide explicit error message when production+profiling bundle of e.g.
  33355. // react-dom is used with production (non-profiling) bundle of
  33356. // scheduler/tracing
  33357. (function () {
  33358. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  33359. {
  33360. throw ReactError(Error('It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling'));
  33361. }
  33362. }
  33363. })();
  33364. }
  33365. var fakeCallbackNode = {};
  33366. // Except for NoPriority, these correspond to Scheduler priorities. We use
  33367. // ascending numbers so we can compare them like numbers. They start at 90 to
  33368. // avoid clashing with Scheduler's priorities.
  33369. var ImmediatePriority = 99;
  33370. var UserBlockingPriority$2 = 98;
  33371. var NormalPriority = 97;
  33372. var LowPriority = 96;
  33373. var IdlePriority = 95;
  33374. // NoPriority is the absence of priority. Also React-only.
  33375. var NoPriority = 90;
  33376. var shouldYield = Scheduler_shouldYield;
  33377. var requestPaint =
  33378. // Fall back gracefully if we're running an older version of Scheduler.
  33379. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  33380. var syncQueue = null;
  33381. var immediateQueueCallbackNode = null;
  33382. var isFlushingSyncQueue = false;
  33383. var initialTimeMs = Scheduler_now();
  33384. // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  33385. // This will be the case for modern browsers that support `performance.now`. In
  33386. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  33387. // timestamp. In that case, subtract the module initialization time to simulate
  33388. // the behavior of performance.now and keep our times small enough to fit
  33389. // within 32 bits.
  33390. // TODO: Consider lifting this into Scheduler.
  33391. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  33392. return Scheduler_now() - initialTimeMs;
  33393. };
  33394. function getCurrentPriorityLevel() {
  33395. switch (Scheduler_getCurrentPriorityLevel()) {
  33396. case Scheduler_ImmediatePriority:
  33397. return ImmediatePriority;
  33398. case Scheduler_UserBlockingPriority:
  33399. return UserBlockingPriority$2;
  33400. case Scheduler_NormalPriority:
  33401. return NormalPriority;
  33402. case Scheduler_LowPriority:
  33403. return LowPriority;
  33404. case Scheduler_IdlePriority:
  33405. return IdlePriority;
  33406. default:
  33407. (function () {
  33408. {
  33409. {
  33410. throw ReactError(Error('Unknown priority level.'));
  33411. }
  33412. }
  33413. })();
  33414. }
  33415. }
  33416. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  33417. switch (reactPriorityLevel) {
  33418. case ImmediatePriority:
  33419. return Scheduler_ImmediatePriority;
  33420. case UserBlockingPriority$2:
  33421. return Scheduler_UserBlockingPriority;
  33422. case NormalPriority:
  33423. return Scheduler_NormalPriority;
  33424. case LowPriority:
  33425. return Scheduler_LowPriority;
  33426. case IdlePriority:
  33427. return Scheduler_IdlePriority;
  33428. default:
  33429. (function () {
  33430. {
  33431. {
  33432. throw ReactError(Error('Unknown priority level.'));
  33433. }
  33434. }
  33435. })();
  33436. }
  33437. }
  33438. function runWithPriority$2(reactPriorityLevel, fn) {
  33439. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  33440. return Scheduler_runWithPriority(priorityLevel, fn);
  33441. }
  33442. function scheduleCallback(reactPriorityLevel, callback, options) {
  33443. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  33444. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  33445. }
  33446. function scheduleSyncCallback(callback) {
  33447. // Push this callback into an internal queue. We'll flush these either in
  33448. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  33449. if (syncQueue === null) {
  33450. syncQueue = [callback];
  33451. // Flush the queue in the next tick, at the earliest.
  33452. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  33453. } else {
  33454. // Push onto existing queue. Don't need to schedule a callback because
  33455. // we already scheduled one when we created the queue.
  33456. syncQueue.push(callback);
  33457. }
  33458. return fakeCallbackNode;
  33459. }
  33460. function cancelCallback(callbackNode) {
  33461. if (callbackNode !== fakeCallbackNode) {
  33462. Scheduler_cancelCallback(callbackNode);
  33463. }
  33464. }
  33465. function flushSyncCallbackQueue() {
  33466. if (immediateQueueCallbackNode !== null) {
  33467. Scheduler_cancelCallback(immediateQueueCallbackNode);
  33468. }
  33469. flushSyncCallbackQueueImpl();
  33470. }
  33471. function flushSyncCallbackQueueImpl() {
  33472. if (!isFlushingSyncQueue && syncQueue !== null) {
  33473. // Prevent re-entrancy.
  33474. isFlushingSyncQueue = true;
  33475. var i = 0;
  33476. try {
  33477. var _isSync = true;
  33478. var queue = syncQueue;
  33479. runWithPriority$2(ImmediatePriority, function () {
  33480. for (; i < queue.length; i++) {
  33481. var callback = queue[i];
  33482. do {
  33483. callback = callback(_isSync);
  33484. } while (callback !== null);
  33485. }
  33486. });
  33487. syncQueue = null;
  33488. } catch (error) {
  33489. // If something throws, leave the remaining callbacks on the queue.
  33490. if (syncQueue !== null) {
  33491. syncQueue = syncQueue.slice(i + 1);
  33492. }
  33493. // Resume flushing in the next tick
  33494. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  33495. throw error;
  33496. } finally {
  33497. isFlushingSyncQueue = false;
  33498. }
  33499. }
  33500. }
  33501. var NoMode = 0;
  33502. var StrictMode = 1;
  33503. // TODO: Remove BatchedMode and ConcurrentMode by reading from the root
  33504. // tag instead
  33505. var BatchedMode = 2;
  33506. var ConcurrentMode = 4;
  33507. var ProfileMode = 8;
  33508. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  33509. // Math.pow(2, 30) - 1
  33510. // 0b111111111111111111111111111111
  33511. var MAX_SIGNED_31_BIT_INT = 1073741823;
  33512. var NoWork = 0;
  33513. var Never = 1;
  33514. var Sync = MAX_SIGNED_31_BIT_INT;
  33515. var Batched = Sync - 1;
  33516. var UNIT_SIZE = 10;
  33517. var MAGIC_NUMBER_OFFSET = Batched - 1;
  33518. // 1 unit of expiration time represents 10ms.
  33519. function msToExpirationTime(ms) {
  33520. // Always add an offset so that we don't clash with the magic number for NoWork.
  33521. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  33522. }
  33523. function expirationTimeToMs(expirationTime) {
  33524. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  33525. }
  33526. function ceiling(num, precision) {
  33527. return ((num / precision | 0) + 1) * precision;
  33528. }
  33529. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  33530. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  33531. }
  33532. // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  33533. // the names to reflect.
  33534. var LOW_PRIORITY_EXPIRATION = 5000;
  33535. var LOW_PRIORITY_BATCH_SIZE = 250;
  33536. function computeAsyncExpiration(currentTime) {
  33537. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  33538. }
  33539. function computeSuspenseExpiration(currentTime, timeoutMs) {
  33540. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  33541. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  33542. }
  33543. // We intentionally set a higher expiration time for interactive updates in
  33544. // dev than in production.
  33545. //
  33546. // If the main thread is being blocked so long that you hit the expiration,
  33547. // it's a problem that could be solved with better scheduling.
  33548. //
  33549. // People will be more likely to notice this and fix it with the long
  33550. // expiration time in development.
  33551. //
  33552. // In production we opt for better UX at the risk of masking scheduling
  33553. // problems, by expiring fast.
  33554. var HIGH_PRIORITY_EXPIRATION = 500;
  33555. var HIGH_PRIORITY_BATCH_SIZE = 100;
  33556. function computeInteractiveExpiration(currentTime) {
  33557. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  33558. }
  33559. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  33560. if (expirationTime === Sync) {
  33561. return ImmediatePriority;
  33562. }
  33563. if (expirationTime === Never) {
  33564. return IdlePriority;
  33565. }
  33566. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  33567. if (msUntil <= 0) {
  33568. return ImmediatePriority;
  33569. }
  33570. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  33571. return UserBlockingPriority$2;
  33572. }
  33573. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  33574. return NormalPriority;
  33575. }
  33576. // TODO: Handle LowPriority
  33577. // Assume anything lower has idle priority
  33578. return IdlePriority;
  33579. }
  33580. /**
  33581. * Forked from fbjs/warning:
  33582. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  33583. *
  33584. * Only change is we use console.warn instead of console.error,
  33585. * and do nothing when 'console' is not supported.
  33586. * This really simplifies the code.
  33587. * ---
  33588. * Similar to invariant but only logs a warning if the condition is not met.
  33589. * This can be used to log issues in development environments in critical
  33590. * paths. Removing the logging code for production environments will keep the
  33591. * same logic and follow the same code paths.
  33592. */
  33593. var lowPriorityWarning = function () {};
  33594. {
  33595. var printWarning = function (format) {
  33596. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  33597. args[_key - 1] = arguments[_key];
  33598. }
  33599. var argIndex = 0;
  33600. var message = 'Warning: ' + format.replace(/%s/g, function () {
  33601. return args[argIndex++];
  33602. });
  33603. if (typeof console !== 'undefined') {
  33604. console.warn(message);
  33605. }
  33606. try {
  33607. // --- Welcome to debugging React ---
  33608. // This error was thrown as a convenience so that you can use this stack
  33609. // to find the callsite that caused this warning to fire.
  33610. throw new Error(message);
  33611. } catch (x) {}
  33612. };
  33613. lowPriorityWarning = function (condition, format) {
  33614. if (format === undefined) {
  33615. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  33616. }
  33617. if (!condition) {
  33618. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  33619. args[_key2 - 2] = arguments[_key2];
  33620. }
  33621. printWarning.apply(undefined, [format].concat(args));
  33622. }
  33623. };
  33624. }
  33625. var lowPriorityWarning$1 = lowPriorityWarning;
  33626. var ReactStrictModeWarnings = {
  33627. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  33628. flushPendingUnsafeLifecycleWarnings: function () {},
  33629. recordLegacyContextWarning: function (fiber, instance) {},
  33630. flushLegacyContextWarning: function () {},
  33631. discardPendingWarnings: function () {}
  33632. };
  33633. {
  33634. var findStrictRoot = function (fiber) {
  33635. var maybeStrictRoot = null;
  33636. var node = fiber;
  33637. while (node !== null) {
  33638. if (node.mode & StrictMode) {
  33639. maybeStrictRoot = node;
  33640. }
  33641. node = node.return;
  33642. }
  33643. return maybeStrictRoot;
  33644. };
  33645. var setToSortedString = function (set) {
  33646. var array = [];
  33647. set.forEach(function (value) {
  33648. array.push(value);
  33649. });
  33650. return array.sort().join(', ');
  33651. };
  33652. var pendingComponentWillMountWarnings = [];
  33653. var pendingUNSAFE_ComponentWillMountWarnings = [];
  33654. var pendingComponentWillReceivePropsWarnings = [];
  33655. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  33656. var pendingComponentWillUpdateWarnings = [];
  33657. var pendingUNSAFE_ComponentWillUpdateWarnings = [];
  33658. // Tracks components we have already warned about.
  33659. var didWarnAboutUnsafeLifecycles = new Set();
  33660. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  33661. // Dedup strategy: Warn once per component.
  33662. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  33663. return;
  33664. }
  33665. if (typeof instance.componentWillMount === 'function' &&
  33666. // Don't warn about react-lifecycles-compat polyfilled components.
  33667. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  33668. pendingComponentWillMountWarnings.push(fiber);
  33669. }
  33670. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  33671. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  33672. }
  33673. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  33674. pendingComponentWillReceivePropsWarnings.push(fiber);
  33675. }
  33676. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  33677. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  33678. }
  33679. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  33680. pendingComponentWillUpdateWarnings.push(fiber);
  33681. }
  33682. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  33683. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  33684. }
  33685. };
  33686. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  33687. // We do an initial pass to gather component names
  33688. var componentWillMountUniqueNames = new Set();
  33689. if (pendingComponentWillMountWarnings.length > 0) {
  33690. pendingComponentWillMountWarnings.forEach(function (fiber) {
  33691. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  33692. didWarnAboutUnsafeLifecycles.add(fiber.type);
  33693. });
  33694. pendingComponentWillMountWarnings = [];
  33695. }
  33696. var UNSAFE_componentWillMountUniqueNames = new Set();
  33697. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  33698. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  33699. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  33700. didWarnAboutUnsafeLifecycles.add(fiber.type);
  33701. });
  33702. pendingUNSAFE_ComponentWillMountWarnings = [];
  33703. }
  33704. var componentWillReceivePropsUniqueNames = new Set();
  33705. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  33706. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  33707. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  33708. didWarnAboutUnsafeLifecycles.add(fiber.type);
  33709. });
  33710. pendingComponentWillReceivePropsWarnings = [];
  33711. }
  33712. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  33713. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  33714. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  33715. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  33716. didWarnAboutUnsafeLifecycles.add(fiber.type);
  33717. });
  33718. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  33719. }
  33720. var componentWillUpdateUniqueNames = new Set();
  33721. if (pendingComponentWillUpdateWarnings.length > 0) {
  33722. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  33723. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  33724. didWarnAboutUnsafeLifecycles.add(fiber.type);
  33725. });
  33726. pendingComponentWillUpdateWarnings = [];
  33727. }
  33728. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  33729. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  33730. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  33731. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  33732. didWarnAboutUnsafeLifecycles.add(fiber.type);
  33733. });
  33734. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  33735. }
  33736. // Finally, we flush all the warnings
  33737. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  33738. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  33739. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  33740. warningWithoutStack$1(false, 'Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
  33741. }
  33742. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  33743. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  33744. warningWithoutStack$1(false, 'Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
  33745. }
  33746. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  33747. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  33748. warningWithoutStack$1(false, 'Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
  33749. }
  33750. if (componentWillMountUniqueNames.size > 0) {
  33751. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  33752. lowPriorityWarning$1(false, 'componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
  33753. }
  33754. if (componentWillReceivePropsUniqueNames.size > 0) {
  33755. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  33756. lowPriorityWarning$1(false, 'componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
  33757. }
  33758. if (componentWillUpdateUniqueNames.size > 0) {
  33759. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  33760. lowPriorityWarning$1(false, 'componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
  33761. }
  33762. };
  33763. var pendingLegacyContextWarning = new Map();
  33764. // Tracks components we have already warned about.
  33765. var didWarnAboutLegacyContext = new Set();
  33766. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  33767. var strictRoot = findStrictRoot(fiber);
  33768. if (strictRoot === null) {
  33769. warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  33770. return;
  33771. }
  33772. // Dedup strategy: Warn once per component.
  33773. if (didWarnAboutLegacyContext.has(fiber.type)) {
  33774. return;
  33775. }
  33776. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  33777. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  33778. if (warningsForRoot === undefined) {
  33779. warningsForRoot = [];
  33780. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  33781. }
  33782. warningsForRoot.push(fiber);
  33783. }
  33784. };
  33785. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  33786. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  33787. var uniqueNames = new Set();
  33788. fiberArray.forEach(function (fiber) {
  33789. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  33790. didWarnAboutLegacyContext.add(fiber.type);
  33791. });
  33792. var sortedNames = setToSortedString(uniqueNames);
  33793. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  33794. warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-legacy-context', strictRootComponentStack, sortedNames);
  33795. });
  33796. };
  33797. ReactStrictModeWarnings.discardPendingWarnings = function () {
  33798. pendingComponentWillMountWarnings = [];
  33799. pendingUNSAFE_ComponentWillMountWarnings = [];
  33800. pendingComponentWillReceivePropsWarnings = [];
  33801. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  33802. pendingComponentWillUpdateWarnings = [];
  33803. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  33804. pendingLegacyContextWarning = new Map();
  33805. };
  33806. }
  33807. // Resolves type to a family.
  33808. // Used by React Refresh runtime through DevTools Global Hook.
  33809. var resolveFamily = null;
  33810. // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  33811. var failedBoundaries = null;
  33812. var setRefreshHandler = function (handler) {
  33813. {
  33814. resolveFamily = handler;
  33815. }
  33816. };
  33817. function resolveFunctionForHotReloading(type) {
  33818. {
  33819. if (resolveFamily === null) {
  33820. // Hot reloading is disabled.
  33821. return type;
  33822. }
  33823. var family = resolveFamily(type);
  33824. if (family === undefined) {
  33825. return type;
  33826. }
  33827. // Use the latest known implementation.
  33828. return family.current;
  33829. }
  33830. }
  33831. function resolveClassForHotReloading(type) {
  33832. // No implementation differences.
  33833. return resolveFunctionForHotReloading(type);
  33834. }
  33835. function resolveForwardRefForHotReloading(type) {
  33836. {
  33837. if (resolveFamily === null) {
  33838. // Hot reloading is disabled.
  33839. return type;
  33840. }
  33841. var family = resolveFamily(type);
  33842. if (family === undefined) {
  33843. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  33844. if (type !== null && type !== undefined && typeof type.render === 'function') {
  33845. // ForwardRef is special because its resolved .type is an object,
  33846. // but it's possible that we only have its inner render function in the map.
  33847. // If that inner render function is different, we'll build a new forwardRef type.
  33848. var currentRender = resolveFunctionForHotReloading(type.render);
  33849. if (type.render !== currentRender) {
  33850. var syntheticType = {
  33851. $$typeof: REACT_FORWARD_REF_TYPE,
  33852. render: currentRender
  33853. };
  33854. if (type.displayName !== undefined) {
  33855. syntheticType.displayName = type.displayName;
  33856. }
  33857. return syntheticType;
  33858. }
  33859. }
  33860. return type;
  33861. }
  33862. // Use the latest known implementation.
  33863. return family.current;
  33864. }
  33865. }
  33866. function isCompatibleFamilyForHotReloading(fiber, element) {
  33867. {
  33868. if (resolveFamily === null) {
  33869. // Hot reloading is disabled.
  33870. return false;
  33871. }
  33872. var prevType = fiber.elementType;
  33873. var nextType = element.type;
  33874. // If we got here, we know types aren't === equal.
  33875. var needsCompareFamilies = false;
  33876. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  33877. switch (fiber.tag) {
  33878. case ClassComponent:
  33879. {
  33880. if (typeof nextType === 'function') {
  33881. needsCompareFamilies = true;
  33882. }
  33883. break;
  33884. }
  33885. case FunctionComponent:
  33886. {
  33887. if (typeof nextType === 'function') {
  33888. needsCompareFamilies = true;
  33889. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  33890. // We don't know the inner type yet.
  33891. // We're going to assume that the lazy inner type is stable,
  33892. // and so it is sufficient to avoid reconciling it away.
  33893. // We're not going to unwrap or actually use the new lazy type.
  33894. needsCompareFamilies = true;
  33895. }
  33896. break;
  33897. }
  33898. case ForwardRef:
  33899. {
  33900. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  33901. needsCompareFamilies = true;
  33902. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  33903. needsCompareFamilies = true;
  33904. }
  33905. break;
  33906. }
  33907. case MemoComponent:
  33908. case SimpleMemoComponent:
  33909. {
  33910. if ($$typeofNextType === REACT_MEMO_TYPE) {
  33911. // TODO: if it was but can no longer be simple,
  33912. // we shouldn't set this.
  33913. needsCompareFamilies = true;
  33914. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  33915. needsCompareFamilies = true;
  33916. }
  33917. break;
  33918. }
  33919. default:
  33920. return false;
  33921. }
  33922. // Check if both types have a family and it's the same one.
  33923. if (needsCompareFamilies) {
  33924. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  33925. // This means both of them need to be registered to preserve state.
  33926. // If we unwrapped and compared the inner types for wrappers instead,
  33927. // then we would risk falsely saying two separate memo(Foo)
  33928. // calls are equivalent because they wrap the same Foo function.
  33929. var prevFamily = resolveFamily(prevType);
  33930. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  33931. return true;
  33932. }
  33933. }
  33934. return false;
  33935. }
  33936. }
  33937. function markFailedErrorBoundaryForHotReloading(fiber) {
  33938. {
  33939. if (resolveFamily === null) {
  33940. // Hot reloading is disabled.
  33941. return;
  33942. }
  33943. if (typeof WeakSet !== 'function') {
  33944. return;
  33945. }
  33946. if (failedBoundaries === null) {
  33947. failedBoundaries = new WeakSet();
  33948. }
  33949. failedBoundaries.add(fiber);
  33950. }
  33951. }
  33952. var scheduleRefresh = function (root, update) {
  33953. {
  33954. if (resolveFamily === null) {
  33955. // Hot reloading is disabled.
  33956. return;
  33957. }
  33958. var _staleFamilies = update.staleFamilies,
  33959. _updatedFamilies = update.updatedFamilies;
  33960. flushPassiveEffects();
  33961. flushSync(function () {
  33962. scheduleFibersWithFamiliesRecursively(root.current, _updatedFamilies, _staleFamilies);
  33963. });
  33964. }
  33965. };
  33966. var scheduleRoot = function (root, element) {
  33967. {
  33968. if (root.context !== emptyContextObject) {
  33969. // Super edge case: root has a legacy _renderSubtree context
  33970. // but we don't know the parentComponent so we can't pass it.
  33971. // Just ignore. We'll delete this with _renderSubtree code path later.
  33972. return;
  33973. }
  33974. flushPassiveEffects();
  33975. updateContainerAtExpirationTime(element, root, null, Sync, null);
  33976. }
  33977. };
  33978. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  33979. {
  33980. var alternate = fiber.alternate,
  33981. child = fiber.child,
  33982. sibling = fiber.sibling,
  33983. tag = fiber.tag,
  33984. type = fiber.type;
  33985. var candidateType = null;
  33986. switch (tag) {
  33987. case FunctionComponent:
  33988. case SimpleMemoComponent:
  33989. case ClassComponent:
  33990. candidateType = type;
  33991. break;
  33992. case ForwardRef:
  33993. candidateType = type.render;
  33994. break;
  33995. default:
  33996. break;
  33997. }
  33998. if (resolveFamily === null) {
  33999. throw new Error('Expected resolveFamily to be set during hot reload.');
  34000. }
  34001. var needsRender = false;
  34002. var needsRemount = false;
  34003. if (candidateType !== null) {
  34004. var family = resolveFamily(candidateType);
  34005. if (family !== undefined) {
  34006. if (staleFamilies.has(family)) {
  34007. needsRemount = true;
  34008. } else if (updatedFamilies.has(family)) {
  34009. needsRender = true;
  34010. }
  34011. }
  34012. }
  34013. if (failedBoundaries !== null) {
  34014. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  34015. needsRemount = true;
  34016. }
  34017. }
  34018. if (needsRemount) {
  34019. fiber._debugNeedsRemount = true;
  34020. }
  34021. if (needsRemount || needsRender) {
  34022. scheduleWork(fiber, Sync);
  34023. }
  34024. if (child !== null && !needsRemount) {
  34025. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  34026. }
  34027. if (sibling !== null) {
  34028. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  34029. }
  34030. }
  34031. }
  34032. var findHostInstancesForRefresh = function (root, families) {
  34033. {
  34034. var hostInstances = new Set();
  34035. var types = new Set(families.map(function (family) {
  34036. return family.current;
  34037. }));
  34038. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  34039. return hostInstances;
  34040. }
  34041. };
  34042. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  34043. {
  34044. var child = fiber.child,
  34045. sibling = fiber.sibling,
  34046. tag = fiber.tag,
  34047. type = fiber.type;
  34048. var candidateType = null;
  34049. switch (tag) {
  34050. case FunctionComponent:
  34051. case SimpleMemoComponent:
  34052. case ClassComponent:
  34053. candidateType = type;
  34054. break;
  34055. case ForwardRef:
  34056. candidateType = type.render;
  34057. break;
  34058. default:
  34059. break;
  34060. }
  34061. var didMatch = false;
  34062. if (candidateType !== null) {
  34063. if (types.has(candidateType)) {
  34064. didMatch = true;
  34065. }
  34066. }
  34067. if (didMatch) {
  34068. // We have a match. This only drills down to the closest host components.
  34069. // There's no need to search deeper because for the purpose of giving
  34070. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  34071. findHostInstancesForFiberShallowly(fiber, hostInstances);
  34072. } else {
  34073. // If there's no match, maybe there will be one further down in the child tree.
  34074. if (child !== null) {
  34075. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  34076. }
  34077. }
  34078. if (sibling !== null) {
  34079. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  34080. }
  34081. }
  34082. }
  34083. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  34084. {
  34085. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  34086. if (foundHostInstances) {
  34087. return;
  34088. }
  34089. // If we didn't find any host children, fallback to closest host parent.
  34090. var node = fiber;
  34091. while (true) {
  34092. switch (node.tag) {
  34093. case HostComponent:
  34094. hostInstances.add(node.stateNode);
  34095. return;
  34096. case HostPortal:
  34097. hostInstances.add(node.stateNode.containerInfo);
  34098. return;
  34099. case HostRoot:
  34100. hostInstances.add(node.stateNode.containerInfo);
  34101. return;
  34102. }
  34103. if (node.return === null) {
  34104. throw new Error('Expected to reach root first.');
  34105. }
  34106. node = node.return;
  34107. }
  34108. }
  34109. }
  34110. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  34111. {
  34112. var node = fiber;
  34113. var foundHostInstances = false;
  34114. while (true) {
  34115. if (node.tag === HostComponent) {
  34116. // We got a match.
  34117. foundHostInstances = true;
  34118. hostInstances.add(node.stateNode);
  34119. // There may still be more, so keep searching.
  34120. } else if (node.child !== null) {
  34121. node.child.return = node;
  34122. node = node.child;
  34123. continue;
  34124. }
  34125. if (node === fiber) {
  34126. return foundHostInstances;
  34127. }
  34128. while (node.sibling === null) {
  34129. if (node.return === null || node.return === fiber) {
  34130. return foundHostInstances;
  34131. }
  34132. node = node.return;
  34133. }
  34134. node.sibling.return = node.return;
  34135. node = node.sibling;
  34136. }
  34137. }
  34138. return false;
  34139. }
  34140. function resolveDefaultProps(Component, baseProps) {
  34141. if (Component && Component.defaultProps) {
  34142. // Resolve default props. Taken from ReactElement
  34143. var props = _assign({}, baseProps);
  34144. var defaultProps = Component.defaultProps;
  34145. for (var propName in defaultProps) {
  34146. if (props[propName] === undefined) {
  34147. props[propName] = defaultProps[propName];
  34148. }
  34149. }
  34150. return props;
  34151. }
  34152. return baseProps;
  34153. }
  34154. function readLazyComponentType(lazyComponent) {
  34155. var status = lazyComponent._status;
  34156. var result = lazyComponent._result;
  34157. switch (status) {
  34158. case Resolved:
  34159. {
  34160. var Component = result;
  34161. return Component;
  34162. }
  34163. case Rejected:
  34164. {
  34165. var error = result;
  34166. throw error;
  34167. }
  34168. case Pending:
  34169. {
  34170. var thenable = result;
  34171. throw thenable;
  34172. }
  34173. default:
  34174. {
  34175. lazyComponent._status = Pending;
  34176. var ctor = lazyComponent._ctor;
  34177. var _thenable = ctor();
  34178. _thenable.then(function (moduleObject) {
  34179. if (lazyComponent._status === Pending) {
  34180. var defaultExport = moduleObject.default;
  34181. {
  34182. if (defaultExport === undefined) {
  34183. warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
  34184. }
  34185. }
  34186. lazyComponent._status = Resolved;
  34187. lazyComponent._result = defaultExport;
  34188. }
  34189. }, function (error) {
  34190. if (lazyComponent._status === Pending) {
  34191. lazyComponent._status = Rejected;
  34192. lazyComponent._result = error;
  34193. }
  34194. });
  34195. // Handle synchronous thenables.
  34196. switch (lazyComponent._status) {
  34197. case Resolved:
  34198. return lazyComponent._result;
  34199. case Rejected:
  34200. throw lazyComponent._result;
  34201. }
  34202. lazyComponent._result = _thenable;
  34203. throw _thenable;
  34204. }
  34205. }
  34206. }
  34207. var valueCursor = createCursor(null);
  34208. var rendererSigil = void 0;
  34209. {
  34210. // Use this to detect multiple renderers using the same context
  34211. rendererSigil = {};
  34212. }
  34213. var currentlyRenderingFiber = null;
  34214. var lastContextDependency = null;
  34215. var lastContextWithAllBitsObserved = null;
  34216. var isDisallowedContextReadInDEV = false;
  34217. function resetContextDependencies() {
  34218. // This is called right before React yields execution, to ensure `readContext`
  34219. // cannot be called outside the render phase.
  34220. currentlyRenderingFiber = null;
  34221. lastContextDependency = null;
  34222. lastContextWithAllBitsObserved = null;
  34223. {
  34224. isDisallowedContextReadInDEV = false;
  34225. }
  34226. }
  34227. function enterDisallowedContextReadInDEV() {
  34228. {
  34229. isDisallowedContextReadInDEV = true;
  34230. }
  34231. }
  34232. function exitDisallowedContextReadInDEV() {
  34233. {
  34234. isDisallowedContextReadInDEV = false;
  34235. }
  34236. }
  34237. function pushProvider(providerFiber, nextValue) {
  34238. var context = providerFiber.type._context;
  34239. if (isPrimaryRenderer) {
  34240. push(valueCursor, context._currentValue, providerFiber);
  34241. context._currentValue = nextValue;
  34242. {
  34243. !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  34244. context._currentRenderer = rendererSigil;
  34245. }
  34246. } else {
  34247. push(valueCursor, context._currentValue2, providerFiber);
  34248. context._currentValue2 = nextValue;
  34249. {
  34250. !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  34251. context._currentRenderer2 = rendererSigil;
  34252. }
  34253. }
  34254. }
  34255. function popProvider(providerFiber) {
  34256. var currentValue = valueCursor.current;
  34257. pop(valueCursor, providerFiber);
  34258. var context = providerFiber.type._context;
  34259. if (isPrimaryRenderer) {
  34260. context._currentValue = currentValue;
  34261. } else {
  34262. context._currentValue2 = currentValue;
  34263. }
  34264. }
  34265. function calculateChangedBits(context, newValue, oldValue) {
  34266. if (is(oldValue, newValue)) {
  34267. // No change
  34268. return 0;
  34269. } else {
  34270. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  34271. {
  34272. !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  34273. }
  34274. return changedBits | 0;
  34275. }
  34276. }
  34277. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  34278. // Update the child expiration time of all the ancestors, including
  34279. // the alternates.
  34280. var node = parent;
  34281. while (node !== null) {
  34282. var alternate = node.alternate;
  34283. if (node.childExpirationTime < renderExpirationTime) {
  34284. node.childExpirationTime = renderExpirationTime;
  34285. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  34286. alternate.childExpirationTime = renderExpirationTime;
  34287. }
  34288. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  34289. alternate.childExpirationTime = renderExpirationTime;
  34290. } else {
  34291. // Neither alternate was updated, which means the rest of the
  34292. // ancestor path already has sufficient priority.
  34293. break;
  34294. }
  34295. node = node.return;
  34296. }
  34297. }
  34298. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  34299. var fiber = workInProgress.child;
  34300. if (fiber !== null) {
  34301. // Set the return pointer of the child to the work-in-progress fiber.
  34302. fiber.return = workInProgress;
  34303. }
  34304. while (fiber !== null) {
  34305. var nextFiber = void 0;
  34306. // Visit this fiber.
  34307. var list = fiber.dependencies;
  34308. if (list !== null) {
  34309. nextFiber = fiber.child;
  34310. var dependency = list.firstContext;
  34311. while (dependency !== null) {
  34312. // Check if the context matches.
  34313. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  34314. // Match! Schedule an update on this fiber.
  34315. if (fiber.tag === ClassComponent) {
  34316. // Schedule a force update on the work-in-progress.
  34317. var update = createUpdate(renderExpirationTime, null);
  34318. update.tag = ForceUpdate;
  34319. // TODO: Because we don't have a work-in-progress, this will add the
  34320. // update to the current fiber, too, which means it will persist even if
  34321. // this render is thrown away. Since it's a race condition, not sure it's
  34322. // worth fixing.
  34323. enqueueUpdate(fiber, update);
  34324. }
  34325. if (fiber.expirationTime < renderExpirationTime) {
  34326. fiber.expirationTime = renderExpirationTime;
  34327. }
  34328. var alternate = fiber.alternate;
  34329. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  34330. alternate.expirationTime = renderExpirationTime;
  34331. }
  34332. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  34333. // Mark the expiration time on the list, too.
  34334. if (list.expirationTime < renderExpirationTime) {
  34335. list.expirationTime = renderExpirationTime;
  34336. }
  34337. // Since we already found a match, we can stop traversing the
  34338. // dependency list.
  34339. break;
  34340. }
  34341. dependency = dependency.next;
  34342. }
  34343. } else if (fiber.tag === ContextProvider) {
  34344. // Don't scan deeper if this is a matching provider
  34345. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  34346. } else if (enableSuspenseServerRenderer && fiber.tag === DehydratedSuspenseComponent) {
  34347. // If a dehydrated suspense component is in this subtree, we don't know
  34348. // if it will have any context consumers in it. The best we can do is
  34349. // mark it as having updates on its children.
  34350. if (fiber.expirationTime < renderExpirationTime) {
  34351. fiber.expirationTime = renderExpirationTime;
  34352. }
  34353. var _alternate = fiber.alternate;
  34354. if (_alternate !== null && _alternate.expirationTime < renderExpirationTime) {
  34355. _alternate.expirationTime = renderExpirationTime;
  34356. }
  34357. // This is intentionally passing this fiber as the parent
  34358. // because we want to schedule this fiber as having work
  34359. // on its children. We'll use the childExpirationTime on
  34360. // this fiber to indicate that a context has changed.
  34361. scheduleWorkOnParentPath(fiber, renderExpirationTime);
  34362. nextFiber = fiber.sibling;
  34363. } else {
  34364. // Traverse down.
  34365. nextFiber = fiber.child;
  34366. }
  34367. if (nextFiber !== null) {
  34368. // Set the return pointer of the child to the work-in-progress fiber.
  34369. nextFiber.return = fiber;
  34370. } else {
  34371. // No child. Traverse to next sibling.
  34372. nextFiber = fiber;
  34373. while (nextFiber !== null) {
  34374. if (nextFiber === workInProgress) {
  34375. // We're back to the root of this subtree. Exit.
  34376. nextFiber = null;
  34377. break;
  34378. }
  34379. var sibling = nextFiber.sibling;
  34380. if (sibling !== null) {
  34381. // Set the return pointer of the sibling to the work-in-progress fiber.
  34382. sibling.return = nextFiber.return;
  34383. nextFiber = sibling;
  34384. break;
  34385. }
  34386. // No more siblings. Traverse up.
  34387. nextFiber = nextFiber.return;
  34388. }
  34389. }
  34390. fiber = nextFiber;
  34391. }
  34392. }
  34393. function prepareToReadContext(workInProgress, renderExpirationTime) {
  34394. currentlyRenderingFiber = workInProgress;
  34395. lastContextDependency = null;
  34396. lastContextWithAllBitsObserved = null;
  34397. var dependencies = workInProgress.dependencies;
  34398. if (dependencies !== null) {
  34399. var firstContext = dependencies.firstContext;
  34400. if (firstContext !== null) {
  34401. if (dependencies.expirationTime >= renderExpirationTime) {
  34402. // Context list has a pending update. Mark that this fiber performed work.
  34403. markWorkInProgressReceivedUpdate();
  34404. }
  34405. // Reset the work-in-progress list
  34406. dependencies.firstContext = null;
  34407. }
  34408. }
  34409. }
  34410. function readContext(context, observedBits) {
  34411. {
  34412. // This warning would fire if you read context inside a Hook like useMemo.
  34413. // Unlike the class check below, it's not enforced in production for perf.
  34414. !!isDisallowedContextReadInDEV ? warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().') : void 0;
  34415. }
  34416. if (lastContextWithAllBitsObserved === context) {
  34417. // Nothing to do. We already observe everything in this context.
  34418. } else if (observedBits === false || observedBits === 0) {
  34419. // Do not observe any updates.
  34420. } else {
  34421. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  34422. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  34423. // Observe all updates.
  34424. lastContextWithAllBitsObserved = context;
  34425. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  34426. } else {
  34427. resolvedObservedBits = observedBits;
  34428. }
  34429. var contextItem = {
  34430. context: context,
  34431. observedBits: resolvedObservedBits,
  34432. next: null
  34433. };
  34434. if (lastContextDependency === null) {
  34435. (function () {
  34436. if (!(currentlyRenderingFiber !== null)) {
  34437. {
  34438. throw ReactError(Error('Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().'));
  34439. }
  34440. }
  34441. })();
  34442. // This is the first dependency for this component. Create a new list.
  34443. lastContextDependency = contextItem;
  34444. currentlyRenderingFiber.dependencies = {
  34445. expirationTime: NoWork,
  34446. firstContext: contextItem,
  34447. responders: null
  34448. };
  34449. } else {
  34450. // Append a new context item.
  34451. lastContextDependency = lastContextDependency.next = contextItem;
  34452. }
  34453. }
  34454. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  34455. }
  34456. // UpdateQueue is a linked list of prioritized updates.
  34457. //
  34458. // Like fibers, update queues come in pairs: a current queue, which represents
  34459. // the visible state of the screen, and a work-in-progress queue, which can be
  34460. // mutated and processed asynchronously before it is committed — a form of
  34461. // double buffering. If a work-in-progress render is discarded before finishing,
  34462. // we create a new work-in-progress by cloning the current queue.
  34463. //
  34464. // Both queues share a persistent, singly-linked list structure. To schedule an
  34465. // update, we append it to the end of both queues. Each queue maintains a
  34466. // pointer to first update in the persistent list that hasn't been processed.
  34467. // The work-in-progress pointer always has a position equal to or greater than
  34468. // the current queue, since we always work on that one. The current queue's
  34469. // pointer is only updated during the commit phase, when we swap in the
  34470. // work-in-progress.
  34471. //
  34472. // For example:
  34473. //
  34474. // Current pointer: A - B - C - D - E - F
  34475. // Work-in-progress pointer: D - E - F
  34476. // ^
  34477. // The work-in-progress queue has
  34478. // processed more updates than current.
  34479. //
  34480. // The reason we append to both queues is because otherwise we might drop
  34481. // updates without ever processing them. For example, if we only add updates to
  34482. // the work-in-progress queue, some updates could be lost whenever a work-in
  34483. // -progress render restarts by cloning from current. Similarly, if we only add
  34484. // updates to the current queue, the updates will be lost whenever an already
  34485. // in-progress queue commits and swaps with the current queue. However, by
  34486. // adding to both queues, we guarantee that the update will be part of the next
  34487. // work-in-progress. (And because the work-in-progress queue becomes the
  34488. // current queue once it commits, there's no danger of applying the same
  34489. // update twice.)
  34490. //
  34491. // Prioritization
  34492. // --------------
  34493. //
  34494. // Updates are not sorted by priority, but by insertion; new updates are always
  34495. // appended to the end of the list.
  34496. //
  34497. // The priority is still important, though. When processing the update queue
  34498. // during the render phase, only the updates with sufficient priority are
  34499. // included in the result. If we skip an update because it has insufficient
  34500. // priority, it remains in the queue to be processed later, during a lower
  34501. // priority render. Crucially, all updates subsequent to a skipped update also
  34502. // remain in the queue *regardless of their priority*. That means high priority
  34503. // updates are sometimes processed twice, at two separate priorities. We also
  34504. // keep track of a base state, that represents the state before the first
  34505. // update in the queue is applied.
  34506. //
  34507. // For example:
  34508. //
  34509. // Given a base state of '', and the following queue of updates
  34510. //
  34511. // A1 - B2 - C1 - D2
  34512. //
  34513. // where the number indicates the priority, and the update is applied to the
  34514. // previous state by appending a letter, React will process these updates as
  34515. // two separate renders, one per distinct priority level:
  34516. //
  34517. // First render, at priority 1:
  34518. // Base state: ''
  34519. // Updates: [A1, C1]
  34520. // Result state: 'AC'
  34521. //
  34522. // Second render, at priority 2:
  34523. // Base state: 'A' <- The base state does not include C1,
  34524. // because B2 was skipped.
  34525. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  34526. // Result state: 'ABCD'
  34527. //
  34528. // Because we process updates in insertion order, and rebase high priority
  34529. // updates when preceding updates are skipped, the final result is deterministic
  34530. // regardless of priority. Intermediate state may vary according to system
  34531. // resources, but the final state is always the same.
  34532. var UpdateState = 0;
  34533. var ReplaceState = 1;
  34534. var ForceUpdate = 2;
  34535. var CaptureUpdate = 3;
  34536. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  34537. // It should only be read right after calling `processUpdateQueue`, via
  34538. // `checkHasForceUpdateAfterProcessing`.
  34539. var hasForceUpdate = false;
  34540. var didWarnUpdateInsideUpdate = void 0;
  34541. var currentlyProcessingQueue = void 0;
  34542. {
  34543. didWarnUpdateInsideUpdate = false;
  34544. currentlyProcessingQueue = null;
  34545. }
  34546. function createUpdateQueue(baseState) {
  34547. var queue = {
  34548. baseState: baseState,
  34549. firstUpdate: null,
  34550. lastUpdate: null,
  34551. firstCapturedUpdate: null,
  34552. lastCapturedUpdate: null,
  34553. firstEffect: null,
  34554. lastEffect: null,
  34555. firstCapturedEffect: null,
  34556. lastCapturedEffect: null
  34557. };
  34558. return queue;
  34559. }
  34560. function cloneUpdateQueue(currentQueue) {
  34561. var queue = {
  34562. baseState: currentQueue.baseState,
  34563. firstUpdate: currentQueue.firstUpdate,
  34564. lastUpdate: currentQueue.lastUpdate,
  34565. // TODO: With resuming, if we bail out and resuse the child tree, we should
  34566. // keep these effects.
  34567. firstCapturedUpdate: null,
  34568. lastCapturedUpdate: null,
  34569. firstEffect: null,
  34570. lastEffect: null,
  34571. firstCapturedEffect: null,
  34572. lastCapturedEffect: null
  34573. };
  34574. return queue;
  34575. }
  34576. function createUpdate(expirationTime, suspenseConfig) {
  34577. var update = {
  34578. expirationTime: expirationTime,
  34579. suspenseConfig: suspenseConfig,
  34580. tag: UpdateState,
  34581. payload: null,
  34582. callback: null,
  34583. next: null,
  34584. nextEffect: null
  34585. };
  34586. {
  34587. update.priority = getCurrentPriorityLevel();
  34588. }
  34589. return update;
  34590. }
  34591. function appendUpdateToQueue(queue, update) {
  34592. // Append the update to the end of the list.
  34593. if (queue.lastUpdate === null) {
  34594. // Queue is empty
  34595. queue.firstUpdate = queue.lastUpdate = update;
  34596. } else {
  34597. queue.lastUpdate.next = update;
  34598. queue.lastUpdate = update;
  34599. }
  34600. }
  34601. function enqueueUpdate(fiber, update) {
  34602. // Update queues are created lazily.
  34603. var alternate = fiber.alternate;
  34604. var queue1 = void 0;
  34605. var queue2 = void 0;
  34606. if (alternate === null) {
  34607. // There's only one fiber.
  34608. queue1 = fiber.updateQueue;
  34609. queue2 = null;
  34610. if (queue1 === null) {
  34611. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  34612. }
  34613. } else {
  34614. // There are two owners.
  34615. queue1 = fiber.updateQueue;
  34616. queue2 = alternate.updateQueue;
  34617. if (queue1 === null) {
  34618. if (queue2 === null) {
  34619. // Neither fiber has an update queue. Create new ones.
  34620. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  34621. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  34622. } else {
  34623. // Only one fiber has an update queue. Clone to create a new one.
  34624. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  34625. }
  34626. } else {
  34627. if (queue2 === null) {
  34628. // Only one fiber has an update queue. Clone to create a new one.
  34629. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  34630. } else {
  34631. // Both owners have an update queue.
  34632. }
  34633. }
  34634. }
  34635. if (queue2 === null || queue1 === queue2) {
  34636. // There's only a single queue.
  34637. appendUpdateToQueue(queue1, update);
  34638. } else {
  34639. // There are two queues. We need to append the update to both queues,
  34640. // while accounting for the persistent structure of the list — we don't
  34641. // want the same update to be added multiple times.
  34642. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  34643. // One of the queues is not empty. We must add the update to both queues.
  34644. appendUpdateToQueue(queue1, update);
  34645. appendUpdateToQueue(queue2, update);
  34646. } else {
  34647. // Both queues are non-empty. The last update is the same in both lists,
  34648. // because of structural sharing. So, only append to one of the lists.
  34649. appendUpdateToQueue(queue1, update);
  34650. // But we still need to update the `lastUpdate` pointer of queue2.
  34651. queue2.lastUpdate = update;
  34652. }
  34653. }
  34654. {
  34655. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  34656. warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
  34657. didWarnUpdateInsideUpdate = true;
  34658. }
  34659. }
  34660. }
  34661. function enqueueCapturedUpdate(workInProgress, update) {
  34662. // Captured updates go into a separate list, and only on the work-in-
  34663. // progress queue.
  34664. var workInProgressQueue = workInProgress.updateQueue;
  34665. if (workInProgressQueue === null) {
  34666. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  34667. } else {
  34668. // TODO: I put this here rather than createWorkInProgress so that we don't
  34669. // clone the queue unnecessarily. There's probably a better way to
  34670. // structure this.
  34671. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  34672. }
  34673. // Append the update to the end of the list.
  34674. if (workInProgressQueue.lastCapturedUpdate === null) {
  34675. // This is the first render phase update
  34676. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  34677. } else {
  34678. workInProgressQueue.lastCapturedUpdate.next = update;
  34679. workInProgressQueue.lastCapturedUpdate = update;
  34680. }
  34681. }
  34682. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  34683. var current = workInProgress.alternate;
  34684. if (current !== null) {
  34685. // If the work-in-progress queue is equal to the current queue,
  34686. // we need to clone it first.
  34687. if (queue === current.updateQueue) {
  34688. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  34689. }
  34690. }
  34691. return queue;
  34692. }
  34693. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  34694. switch (update.tag) {
  34695. case ReplaceState:
  34696. {
  34697. var _payload = update.payload;
  34698. if (typeof _payload === 'function') {
  34699. // Updater function
  34700. {
  34701. enterDisallowedContextReadInDEV();
  34702. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  34703. _payload.call(instance, prevState, nextProps);
  34704. }
  34705. }
  34706. var nextState = _payload.call(instance, prevState, nextProps);
  34707. {
  34708. exitDisallowedContextReadInDEV();
  34709. }
  34710. return nextState;
  34711. }
  34712. // State object
  34713. return _payload;
  34714. }
  34715. case CaptureUpdate:
  34716. {
  34717. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  34718. }
  34719. // Intentional fallthrough
  34720. case UpdateState:
  34721. {
  34722. var _payload2 = update.payload;
  34723. var partialState = void 0;
  34724. if (typeof _payload2 === 'function') {
  34725. // Updater function
  34726. {
  34727. enterDisallowedContextReadInDEV();
  34728. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  34729. _payload2.call(instance, prevState, nextProps);
  34730. }
  34731. }
  34732. partialState = _payload2.call(instance, prevState, nextProps);
  34733. {
  34734. exitDisallowedContextReadInDEV();
  34735. }
  34736. } else {
  34737. // Partial state object
  34738. partialState = _payload2;
  34739. }
  34740. if (partialState === null || partialState === undefined) {
  34741. // Null and undefined are treated as no-ops.
  34742. return prevState;
  34743. }
  34744. // Merge the partial state and the previous state.
  34745. return _assign({}, prevState, partialState);
  34746. }
  34747. case ForceUpdate:
  34748. {
  34749. hasForceUpdate = true;
  34750. return prevState;
  34751. }
  34752. }
  34753. return prevState;
  34754. }
  34755. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  34756. hasForceUpdate = false;
  34757. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  34758. {
  34759. currentlyProcessingQueue = queue;
  34760. }
  34761. // These values may change as we process the queue.
  34762. var newBaseState = queue.baseState;
  34763. var newFirstUpdate = null;
  34764. var newExpirationTime = NoWork;
  34765. // Iterate through the list of updates to compute the result.
  34766. var update = queue.firstUpdate;
  34767. var resultState = newBaseState;
  34768. while (update !== null) {
  34769. var updateExpirationTime = update.expirationTime;
  34770. if (updateExpirationTime < renderExpirationTime) {
  34771. // This update does not have sufficient priority. Skip it.
  34772. if (newFirstUpdate === null) {
  34773. // This is the first skipped update. It will be the first update in
  34774. // the new list.
  34775. newFirstUpdate = update;
  34776. // Since this is the first update that was skipped, the current result
  34777. // is the new base state.
  34778. newBaseState = resultState;
  34779. }
  34780. // Since this update will remain in the list, update the remaining
  34781. // expiration time.
  34782. if (newExpirationTime < updateExpirationTime) {
  34783. newExpirationTime = updateExpirationTime;
  34784. }
  34785. } else {
  34786. // This update does have sufficient priority.
  34787. // Mark the event time of this update as relevant to this render pass.
  34788. // TODO: This should ideally use the true event time of this update rather than
  34789. // its priority which is a derived and not reverseable value.
  34790. // TODO: We should skip this update if it was already committed but currently
  34791. // we have no way of detecting the difference between a committed and suspended
  34792. // update here.
  34793. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig);
  34794. // Process it and compute a new result.
  34795. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  34796. var _callback = update.callback;
  34797. if (_callback !== null) {
  34798. workInProgress.effectTag |= Callback;
  34799. // Set this to null, in case it was mutated during an aborted render.
  34800. update.nextEffect = null;
  34801. if (queue.lastEffect === null) {
  34802. queue.firstEffect = queue.lastEffect = update;
  34803. } else {
  34804. queue.lastEffect.nextEffect = update;
  34805. queue.lastEffect = update;
  34806. }
  34807. }
  34808. }
  34809. // Continue to the next update.
  34810. update = update.next;
  34811. }
  34812. // Separately, iterate though the list of captured updates.
  34813. var newFirstCapturedUpdate = null;
  34814. update = queue.firstCapturedUpdate;
  34815. while (update !== null) {
  34816. var _updateExpirationTime = update.expirationTime;
  34817. if (_updateExpirationTime < renderExpirationTime) {
  34818. // This update does not have sufficient priority. Skip it.
  34819. if (newFirstCapturedUpdate === null) {
  34820. // This is the first skipped captured update. It will be the first
  34821. // update in the new list.
  34822. newFirstCapturedUpdate = update;
  34823. // If this is the first update that was skipped, the current result is
  34824. // the new base state.
  34825. if (newFirstUpdate === null) {
  34826. newBaseState = resultState;
  34827. }
  34828. }
  34829. // Since this update will remain in the list, update the remaining
  34830. // expiration time.
  34831. if (newExpirationTime < _updateExpirationTime) {
  34832. newExpirationTime = _updateExpirationTime;
  34833. }
  34834. } else {
  34835. // This update does have sufficient priority. Process it and compute
  34836. // a new result.
  34837. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  34838. var _callback2 = update.callback;
  34839. if (_callback2 !== null) {
  34840. workInProgress.effectTag |= Callback;
  34841. // Set this to null, in case it was mutated during an aborted render.
  34842. update.nextEffect = null;
  34843. if (queue.lastCapturedEffect === null) {
  34844. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  34845. } else {
  34846. queue.lastCapturedEffect.nextEffect = update;
  34847. queue.lastCapturedEffect = update;
  34848. }
  34849. }
  34850. }
  34851. update = update.next;
  34852. }
  34853. if (newFirstUpdate === null) {
  34854. queue.lastUpdate = null;
  34855. }
  34856. if (newFirstCapturedUpdate === null) {
  34857. queue.lastCapturedUpdate = null;
  34858. } else {
  34859. workInProgress.effectTag |= Callback;
  34860. }
  34861. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  34862. // We processed every update, without skipping. That means the new base
  34863. // state is the same as the result state.
  34864. newBaseState = resultState;
  34865. }
  34866. queue.baseState = newBaseState;
  34867. queue.firstUpdate = newFirstUpdate;
  34868. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  34869. // Set the remaining expiration time to be whatever is remaining in the queue.
  34870. // This should be fine because the only two other things that contribute to
  34871. // expiration time are props and context. We're already in the middle of the
  34872. // begin phase by the time we start processing the queue, so we've already
  34873. // dealt with the props. Context in components that specify
  34874. // shouldComponentUpdate is tricky; but we'll have to account for
  34875. // that regardless.
  34876. workInProgress.expirationTime = newExpirationTime;
  34877. workInProgress.memoizedState = resultState;
  34878. {
  34879. currentlyProcessingQueue = null;
  34880. }
  34881. }
  34882. function callCallback(callback, context) {
  34883. (function () {
  34884. if (!(typeof callback === 'function')) {
  34885. {
  34886. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + callback));
  34887. }
  34888. }
  34889. })();
  34890. callback.call(context);
  34891. }
  34892. function resetHasForceUpdateBeforeProcessing() {
  34893. hasForceUpdate = false;
  34894. }
  34895. function checkHasForceUpdateAfterProcessing() {
  34896. return hasForceUpdate;
  34897. }
  34898. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  34899. // If the finished render included captured updates, and there are still
  34900. // lower priority updates left over, we need to keep the captured updates
  34901. // in the queue so that they are rebased and not dropped once we process the
  34902. // queue again at the lower priority.
  34903. if (finishedQueue.firstCapturedUpdate !== null) {
  34904. // Join the captured update list to the end of the normal list.
  34905. if (finishedQueue.lastUpdate !== null) {
  34906. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  34907. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  34908. }
  34909. // Clear the list of captured updates.
  34910. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  34911. }
  34912. // Commit the effects
  34913. commitUpdateEffects(finishedQueue.firstEffect, instance);
  34914. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  34915. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  34916. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  34917. }
  34918. function commitUpdateEffects(effect, instance) {
  34919. while (effect !== null) {
  34920. var _callback3 = effect.callback;
  34921. if (_callback3 !== null) {
  34922. effect.callback = null;
  34923. callCallback(_callback3, instance);
  34924. }
  34925. effect = effect.nextEffect;
  34926. }
  34927. }
  34928. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  34929. function requestCurrentSuspenseConfig() {
  34930. return ReactCurrentBatchConfig.suspense;
  34931. }
  34932. var fakeInternalInstance = {};
  34933. var isArray$1 = Array.isArray;
  34934. // React.Component uses a shared frozen object by default.
  34935. // We'll use it to determine whether we need to initialize legacy refs.
  34936. var emptyRefsObject = new React.Component().refs;
  34937. var didWarnAboutStateAssignmentForComponent = void 0;
  34938. var didWarnAboutUninitializedState = void 0;
  34939. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  34940. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  34941. var didWarnAboutUndefinedDerivedState = void 0;
  34942. var warnOnUndefinedDerivedState = void 0;
  34943. var warnOnInvalidCallback$1 = void 0;
  34944. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  34945. var didWarnAboutContextTypeAndContextTypes = void 0;
  34946. var didWarnAboutInvalidateContextType = void 0;
  34947. {
  34948. didWarnAboutStateAssignmentForComponent = new Set();
  34949. didWarnAboutUninitializedState = new Set();
  34950. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  34951. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  34952. didWarnAboutDirectlyAssigningPropsToState = new Set();
  34953. didWarnAboutUndefinedDerivedState = new Set();
  34954. didWarnAboutContextTypeAndContextTypes = new Set();
  34955. didWarnAboutInvalidateContextType = new Set();
  34956. var didWarnOnInvalidCallback = new Set();
  34957. warnOnInvalidCallback$1 = function (callback, callerName) {
  34958. if (callback === null || typeof callback === 'function') {
  34959. return;
  34960. }
  34961. var key = callerName + '_' + callback;
  34962. if (!didWarnOnInvalidCallback.has(key)) {
  34963. didWarnOnInvalidCallback.add(key);
  34964. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  34965. }
  34966. };
  34967. warnOnUndefinedDerivedState = function (type, partialState) {
  34968. if (partialState === undefined) {
  34969. var componentName = getComponentName(type) || 'Component';
  34970. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  34971. didWarnAboutUndefinedDerivedState.add(componentName);
  34972. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  34973. }
  34974. }
  34975. };
  34976. // This is so gross but it's at least non-critical and can be removed if
  34977. // it causes problems. This is meant to give a nicer error message for
  34978. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  34979. // ...)) which otherwise throws a "_processChildContext is not a function"
  34980. // exception.
  34981. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  34982. enumerable: false,
  34983. value: function () {
  34984. (function () {
  34985. {
  34986. {
  34987. throw ReactError(Error('_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).'));
  34988. }
  34989. }
  34990. })();
  34991. }
  34992. });
  34993. Object.freeze(fakeInternalInstance);
  34994. }
  34995. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  34996. var prevState = workInProgress.memoizedState;
  34997. {
  34998. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  34999. // Invoke the function an extra time to help detect side-effects.
  35000. getDerivedStateFromProps(nextProps, prevState);
  35001. }
  35002. }
  35003. var partialState = getDerivedStateFromProps(nextProps, prevState);
  35004. {
  35005. warnOnUndefinedDerivedState(ctor, partialState);
  35006. }
  35007. // Merge the partial state and the previous state.
  35008. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  35009. workInProgress.memoizedState = memoizedState;
  35010. // Once the update queue is empty, persist the derived state onto the
  35011. // base state.
  35012. var updateQueue = workInProgress.updateQueue;
  35013. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  35014. updateQueue.baseState = memoizedState;
  35015. }
  35016. }
  35017. var classComponentUpdater = {
  35018. isMounted: isMounted,
  35019. enqueueSetState: function (inst, payload, callback) {
  35020. var fiber = get(inst);
  35021. var currentTime = requestCurrentTime();
  35022. var suspenseConfig = requestCurrentSuspenseConfig();
  35023. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  35024. var update = createUpdate(expirationTime, suspenseConfig);
  35025. update.payload = payload;
  35026. if (callback !== undefined && callback !== null) {
  35027. {
  35028. warnOnInvalidCallback$1(callback, 'setState');
  35029. }
  35030. update.callback = callback;
  35031. }
  35032. if (revertPassiveEffectsChange) {
  35033. flushPassiveEffects();
  35034. }
  35035. enqueueUpdate(fiber, update);
  35036. scheduleWork(fiber, expirationTime);
  35037. },
  35038. enqueueReplaceState: function (inst, payload, callback) {
  35039. var fiber = get(inst);
  35040. var currentTime = requestCurrentTime();
  35041. var suspenseConfig = requestCurrentSuspenseConfig();
  35042. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  35043. var update = createUpdate(expirationTime, suspenseConfig);
  35044. update.tag = ReplaceState;
  35045. update.payload = payload;
  35046. if (callback !== undefined && callback !== null) {
  35047. {
  35048. warnOnInvalidCallback$1(callback, 'replaceState');
  35049. }
  35050. update.callback = callback;
  35051. }
  35052. if (revertPassiveEffectsChange) {
  35053. flushPassiveEffects();
  35054. }
  35055. enqueueUpdate(fiber, update);
  35056. scheduleWork(fiber, expirationTime);
  35057. },
  35058. enqueueForceUpdate: function (inst, callback) {
  35059. var fiber = get(inst);
  35060. var currentTime = requestCurrentTime();
  35061. var suspenseConfig = requestCurrentSuspenseConfig();
  35062. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  35063. var update = createUpdate(expirationTime, suspenseConfig);
  35064. update.tag = ForceUpdate;
  35065. if (callback !== undefined && callback !== null) {
  35066. {
  35067. warnOnInvalidCallback$1(callback, 'forceUpdate');
  35068. }
  35069. update.callback = callback;
  35070. }
  35071. if (revertPassiveEffectsChange) {
  35072. flushPassiveEffects();
  35073. }
  35074. enqueueUpdate(fiber, update);
  35075. scheduleWork(fiber, expirationTime);
  35076. }
  35077. };
  35078. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  35079. var instance = workInProgress.stateNode;
  35080. if (typeof instance.shouldComponentUpdate === 'function') {
  35081. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  35082. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  35083. stopPhaseTimer();
  35084. {
  35085. !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;
  35086. }
  35087. return shouldUpdate;
  35088. }
  35089. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  35090. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  35091. }
  35092. return true;
  35093. }
  35094. function checkClassInstance(workInProgress, ctor, newProps) {
  35095. var instance = workInProgress.stateNode;
  35096. {
  35097. var name = getComponentName(ctor) || 'Component';
  35098. var renderPresent = instance.render;
  35099. if (!renderPresent) {
  35100. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  35101. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  35102. } else {
  35103. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  35104. }
  35105. }
  35106. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  35107. !noGetInitialStateOnES6 ? warningWithoutStack$1(false, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name) : void 0;
  35108. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  35109. !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name) : void 0;
  35110. var noInstancePropTypes = !instance.propTypes;
  35111. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  35112. var noInstanceContextType = !instance.contextType;
  35113. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  35114. if (disableLegacyContext) {
  35115. if (ctor.childContextTypes) {
  35116. warningWithoutStack$1(false, '%s uses the legacy childContextTypes API which is no longer supported. ' + 'Use React.createContext() instead.', name);
  35117. }
  35118. if (ctor.contextTypes) {
  35119. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with static contextType instead.', name);
  35120. }
  35121. } else {
  35122. var noInstanceContextTypes = !instance.contextTypes;
  35123. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  35124. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  35125. didWarnAboutContextTypeAndContextTypes.add(ctor);
  35126. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  35127. }
  35128. }
  35129. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  35130. !noComponentShouldUpdate ? warningWithoutStack$1(false, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name) : void 0;
  35131. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  35132. warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
  35133. }
  35134. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  35135. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  35136. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  35137. !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name) : void 0;
  35138. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  35139. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  35140. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  35141. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  35142. var hasMutatedProps = instance.props !== newProps;
  35143. !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name) : void 0;
  35144. var noInstanceDefaultProps = !instance.defaultProps;
  35145. !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;
  35146. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  35147. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  35148. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  35149. }
  35150. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  35151. !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  35152. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  35153. !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  35154. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  35155. !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;
  35156. var _state = instance.state;
  35157. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  35158. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  35159. }
  35160. if (typeof instance.getChildContext === 'function') {
  35161. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  35162. }
  35163. }
  35164. }
  35165. function adoptClassInstance(workInProgress, instance) {
  35166. instance.updater = classComponentUpdater;
  35167. workInProgress.stateNode = instance;
  35168. // The instance needs access to the fiber so that it can schedule updates
  35169. set(instance, workInProgress);
  35170. {
  35171. instance._reactInternalInstance = fakeInternalInstance;
  35172. }
  35173. }
  35174. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  35175. var isLegacyContextConsumer = false;
  35176. var unmaskedContext = emptyContextObject;
  35177. var context = emptyContextObject;
  35178. var contextType = ctor.contextType;
  35179. {
  35180. if ('contextType' in ctor) {
  35181. var isValid =
  35182. // Allow null for conditional declaration
  35183. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  35184. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  35185. didWarnAboutInvalidateContextType.add(ctor);
  35186. var addendum = '';
  35187. if (contextType === undefined) {
  35188. 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.';
  35189. } else if (typeof contextType !== 'object') {
  35190. addendum = ' However, it is set to a ' + typeof contextType + '.';
  35191. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  35192. addendum = ' Did you accidentally pass the Context.Provider instead?';
  35193. } else if (contextType._context !== undefined) {
  35194. // <Context.Consumer>
  35195. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  35196. } else {
  35197. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  35198. }
  35199. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  35200. }
  35201. }
  35202. }
  35203. if (typeof contextType === 'object' && contextType !== null) {
  35204. context = readContext(contextType);
  35205. } else if (!disableLegacyContext) {
  35206. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35207. var contextTypes = ctor.contextTypes;
  35208. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  35209. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  35210. }
  35211. // Instantiate twice to help detect side-effects.
  35212. {
  35213. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  35214. new ctor(props, context); // eslint-disable-line no-new
  35215. }
  35216. }
  35217. var instance = new ctor(props, context);
  35218. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  35219. adoptClassInstance(workInProgress, instance);
  35220. {
  35221. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  35222. var componentName = getComponentName(ctor) || 'Component';
  35223. if (!didWarnAboutUninitializedState.has(componentName)) {
  35224. didWarnAboutUninitializedState.add(componentName);
  35225. warningWithoutStack$1(false, '`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
  35226. }
  35227. }
  35228. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  35229. // Warn about these lifecycles if they are present.
  35230. // Don't warn about react-lifecycles-compat polyfilled methods though.
  35231. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  35232. var foundWillMountName = null;
  35233. var foundWillReceivePropsName = null;
  35234. var foundWillUpdateName = null;
  35235. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  35236. foundWillMountName = 'componentWillMount';
  35237. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  35238. foundWillMountName = 'UNSAFE_componentWillMount';
  35239. }
  35240. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  35241. foundWillReceivePropsName = 'componentWillReceiveProps';
  35242. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  35243. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  35244. }
  35245. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  35246. foundWillUpdateName = 'componentWillUpdate';
  35247. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  35248. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  35249. }
  35250. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  35251. var _componentName = getComponentName(ctor) || 'Component';
  35252. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  35253. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  35254. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  35255. warningWithoutStack$1(false, 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\n ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '');
  35256. }
  35257. }
  35258. }
  35259. }
  35260. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  35261. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  35262. if (isLegacyContextConsumer) {
  35263. cacheContext(workInProgress, unmaskedContext, context);
  35264. }
  35265. return instance;
  35266. }
  35267. function callComponentWillMount(workInProgress, instance) {
  35268. startPhaseTimer(workInProgress, 'componentWillMount');
  35269. var oldState = instance.state;
  35270. if (typeof instance.componentWillMount === 'function') {
  35271. instance.componentWillMount();
  35272. }
  35273. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  35274. instance.UNSAFE_componentWillMount();
  35275. }
  35276. stopPhaseTimer();
  35277. if (oldState !== instance.state) {
  35278. {
  35279. warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  35280. }
  35281. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  35282. }
  35283. }
  35284. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  35285. var oldState = instance.state;
  35286. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  35287. if (typeof instance.componentWillReceiveProps === 'function') {
  35288. instance.componentWillReceiveProps(newProps, nextContext);
  35289. }
  35290. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  35291. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  35292. }
  35293. stopPhaseTimer();
  35294. if (instance.state !== oldState) {
  35295. {
  35296. var componentName = getComponentName(workInProgress.type) || 'Component';
  35297. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  35298. didWarnAboutStateAssignmentForComponent.add(componentName);
  35299. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  35300. }
  35301. }
  35302. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  35303. }
  35304. }
  35305. // Invokes the mount life-cycles on a previously never rendered instance.
  35306. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  35307. {
  35308. checkClassInstance(workInProgress, ctor, newProps);
  35309. }
  35310. var instance = workInProgress.stateNode;
  35311. instance.props = newProps;
  35312. instance.state = workInProgress.memoizedState;
  35313. instance.refs = emptyRefsObject;
  35314. var contextType = ctor.contextType;
  35315. if (typeof contextType === 'object' && contextType !== null) {
  35316. instance.context = readContext(contextType);
  35317. } else if (disableLegacyContext) {
  35318. instance.context = emptyContextObject;
  35319. } else {
  35320. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35321. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  35322. }
  35323. {
  35324. if (instance.state === newProps) {
  35325. var componentName = getComponentName(ctor) || 'Component';
  35326. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  35327. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  35328. warningWithoutStack$1(false, '%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
  35329. }
  35330. }
  35331. if (workInProgress.mode & StrictMode) {
  35332. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  35333. }
  35334. if (warnAboutDeprecatedLifecycles) {
  35335. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  35336. }
  35337. }
  35338. var updateQueue = workInProgress.updateQueue;
  35339. if (updateQueue !== null) {
  35340. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  35341. instance.state = workInProgress.memoizedState;
  35342. }
  35343. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  35344. if (typeof getDerivedStateFromProps === 'function') {
  35345. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  35346. instance.state = workInProgress.memoizedState;
  35347. }
  35348. // In order to support react-lifecycles-compat polyfilled components,
  35349. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35350. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  35351. callComponentWillMount(workInProgress, instance);
  35352. // If we had additional state updates during this life-cycle, let's
  35353. // process them now.
  35354. updateQueue = workInProgress.updateQueue;
  35355. if (updateQueue !== null) {
  35356. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  35357. instance.state = workInProgress.memoizedState;
  35358. }
  35359. }
  35360. if (typeof instance.componentDidMount === 'function') {
  35361. workInProgress.effectTag |= Update;
  35362. }
  35363. }
  35364. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  35365. var instance = workInProgress.stateNode;
  35366. var oldProps = workInProgress.memoizedProps;
  35367. instance.props = oldProps;
  35368. var oldContext = instance.context;
  35369. var contextType = ctor.contextType;
  35370. var nextContext = emptyContextObject;
  35371. if (typeof contextType === 'object' && contextType !== null) {
  35372. nextContext = readContext(contextType);
  35373. } else if (!disableLegacyContext) {
  35374. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35375. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  35376. }
  35377. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  35378. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  35379. // Note: During these life-cycles, instance.props/instance.state are what
  35380. // ever the previously attempted to render - not the "current". However,
  35381. // during componentDidUpdate we pass the "current" props.
  35382. // In order to support react-lifecycles-compat polyfilled components,
  35383. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35384. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  35385. if (oldProps !== newProps || oldContext !== nextContext) {
  35386. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  35387. }
  35388. }
  35389. resetHasForceUpdateBeforeProcessing();
  35390. var oldState = workInProgress.memoizedState;
  35391. var newState = instance.state = oldState;
  35392. var updateQueue = workInProgress.updateQueue;
  35393. if (updateQueue !== null) {
  35394. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  35395. newState = workInProgress.memoizedState;
  35396. }
  35397. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  35398. // If an update was already in progress, we should schedule an Update
  35399. // effect even though we're bailing out, so that cWU/cDU are called.
  35400. if (typeof instance.componentDidMount === 'function') {
  35401. workInProgress.effectTag |= Update;
  35402. }
  35403. return false;
  35404. }
  35405. if (typeof getDerivedStateFromProps === 'function') {
  35406. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  35407. newState = workInProgress.memoizedState;
  35408. }
  35409. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  35410. if (shouldUpdate) {
  35411. // In order to support react-lifecycles-compat polyfilled components,
  35412. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35413. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  35414. startPhaseTimer(workInProgress, 'componentWillMount');
  35415. if (typeof instance.componentWillMount === 'function') {
  35416. instance.componentWillMount();
  35417. }
  35418. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  35419. instance.UNSAFE_componentWillMount();
  35420. }
  35421. stopPhaseTimer();
  35422. }
  35423. if (typeof instance.componentDidMount === 'function') {
  35424. workInProgress.effectTag |= Update;
  35425. }
  35426. } else {
  35427. // If an update was already in progress, we should schedule an Update
  35428. // effect even though we're bailing out, so that cWU/cDU are called.
  35429. if (typeof instance.componentDidMount === 'function') {
  35430. workInProgress.effectTag |= Update;
  35431. }
  35432. // If shouldComponentUpdate returned false, we should still update the
  35433. // memoized state to indicate that this work can be reused.
  35434. workInProgress.memoizedProps = newProps;
  35435. workInProgress.memoizedState = newState;
  35436. }
  35437. // Update the existing instance's state, props, and context pointers even
  35438. // if shouldComponentUpdate returns false.
  35439. instance.props = newProps;
  35440. instance.state = newState;
  35441. instance.context = nextContext;
  35442. return shouldUpdate;
  35443. }
  35444. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  35445. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  35446. var instance = workInProgress.stateNode;
  35447. var oldProps = workInProgress.memoizedProps;
  35448. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  35449. var oldContext = instance.context;
  35450. var contextType = ctor.contextType;
  35451. var nextContext = emptyContextObject;
  35452. if (typeof contextType === 'object' && contextType !== null) {
  35453. nextContext = readContext(contextType);
  35454. } else if (!disableLegacyContext) {
  35455. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35456. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  35457. }
  35458. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  35459. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  35460. // Note: During these life-cycles, instance.props/instance.state are what
  35461. // ever the previously attempted to render - not the "current". However,
  35462. // during componentDidUpdate we pass the "current" props.
  35463. // In order to support react-lifecycles-compat polyfilled components,
  35464. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35465. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  35466. if (oldProps !== newProps || oldContext !== nextContext) {
  35467. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  35468. }
  35469. }
  35470. resetHasForceUpdateBeforeProcessing();
  35471. var oldState = workInProgress.memoizedState;
  35472. var newState = instance.state = oldState;
  35473. var updateQueue = workInProgress.updateQueue;
  35474. if (updateQueue !== null) {
  35475. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  35476. newState = workInProgress.memoizedState;
  35477. }
  35478. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  35479. // If an update was already in progress, we should schedule an Update
  35480. // effect even though we're bailing out, so that cWU/cDU are called.
  35481. if (typeof instance.componentDidUpdate === 'function') {
  35482. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35483. workInProgress.effectTag |= Update;
  35484. }
  35485. }
  35486. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  35487. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35488. workInProgress.effectTag |= Snapshot;
  35489. }
  35490. }
  35491. return false;
  35492. }
  35493. if (typeof getDerivedStateFromProps === 'function') {
  35494. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  35495. newState = workInProgress.memoizedState;
  35496. }
  35497. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  35498. if (shouldUpdate) {
  35499. // In order to support react-lifecycles-compat polyfilled components,
  35500. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35501. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  35502. startPhaseTimer(workInProgress, 'componentWillUpdate');
  35503. if (typeof instance.componentWillUpdate === 'function') {
  35504. instance.componentWillUpdate(newProps, newState, nextContext);
  35505. }
  35506. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  35507. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  35508. }
  35509. stopPhaseTimer();
  35510. }
  35511. if (typeof instance.componentDidUpdate === 'function') {
  35512. workInProgress.effectTag |= Update;
  35513. }
  35514. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  35515. workInProgress.effectTag |= Snapshot;
  35516. }
  35517. } else {
  35518. // If an update was already in progress, we should schedule an Update
  35519. // effect even though we're bailing out, so that cWU/cDU are called.
  35520. if (typeof instance.componentDidUpdate === 'function') {
  35521. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35522. workInProgress.effectTag |= Update;
  35523. }
  35524. }
  35525. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  35526. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35527. workInProgress.effectTag |= Snapshot;
  35528. }
  35529. }
  35530. // If shouldComponentUpdate returned false, we should still update the
  35531. // memoized props/state to indicate that this work can be reused.
  35532. workInProgress.memoizedProps = newProps;
  35533. workInProgress.memoizedState = newState;
  35534. }
  35535. // Update the existing instance's state, props, and context pointers even
  35536. // if shouldComponentUpdate returns false.
  35537. instance.props = newProps;
  35538. instance.state = newState;
  35539. instance.context = nextContext;
  35540. return shouldUpdate;
  35541. }
  35542. var didWarnAboutMaps = void 0;
  35543. var didWarnAboutGenerators = void 0;
  35544. var didWarnAboutStringRefInStrictMode = void 0;
  35545. var ownerHasKeyUseWarning = void 0;
  35546. var ownerHasFunctionTypeWarning = void 0;
  35547. var warnForMissingKey = function (child) {};
  35548. {
  35549. didWarnAboutMaps = false;
  35550. didWarnAboutGenerators = false;
  35551. didWarnAboutStringRefInStrictMode = {};
  35552. /**
  35553. * Warn if there's no key explicitly set on dynamic arrays of children or
  35554. * object keys are not valid. This allows us to keep track of children between
  35555. * updates.
  35556. */
  35557. ownerHasKeyUseWarning = {};
  35558. ownerHasFunctionTypeWarning = {};
  35559. warnForMissingKey = function (child) {
  35560. if (child === null || typeof child !== 'object') {
  35561. return;
  35562. }
  35563. if (!child._store || child._store.validated || child.key != null) {
  35564. return;
  35565. }
  35566. (function () {
  35567. if (!(typeof child._store === 'object')) {
  35568. {
  35569. throw ReactError(Error('React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.'));
  35570. }
  35571. }
  35572. })();
  35573. child._store.validated = true;
  35574. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  35575. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  35576. return;
  35577. }
  35578. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  35579. warning$1(false, 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  35580. };
  35581. }
  35582. var isArray = Array.isArray;
  35583. function coerceRef(returnFiber, current$$1, element) {
  35584. var mixedRef = element.ref;
  35585. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  35586. {
  35587. if (returnFiber.mode & StrictMode) {
  35588. var componentName = getComponentName(returnFiber.type) || 'Component';
  35589. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  35590. warningWithoutStack$1(false, 'A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));
  35591. didWarnAboutStringRefInStrictMode[componentName] = true;
  35592. }
  35593. }
  35594. }
  35595. if (element._owner) {
  35596. var owner = element._owner;
  35597. var inst = void 0;
  35598. if (owner) {
  35599. var ownerFiber = owner;
  35600. (function () {
  35601. if (!(ownerFiber.tag === ClassComponent)) {
  35602. {
  35603. throw ReactError(Error('Function components cannot have refs. Did you mean to use React.forwardRef()?'));
  35604. }
  35605. }
  35606. })();
  35607. inst = ownerFiber.stateNode;
  35608. }
  35609. (function () {
  35610. if (!inst) {
  35611. {
  35612. throw ReactError(Error('Missing owner for string ref ' + mixedRef + '. This error is likely caused by a bug in React. Please file an issue.'));
  35613. }
  35614. }
  35615. })();
  35616. var stringRef = '' + mixedRef;
  35617. // Check if previous string ref matches new string ref
  35618. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  35619. return current$$1.ref;
  35620. }
  35621. var ref = function (value) {
  35622. var refs = inst.refs;
  35623. if (refs === emptyRefsObject) {
  35624. // This is a lazy pooled frozen object, so we need to initialize.
  35625. refs = inst.refs = {};
  35626. }
  35627. if (value === null) {
  35628. delete refs[stringRef];
  35629. } else {
  35630. refs[stringRef] = value;
  35631. }
  35632. };
  35633. ref._stringRef = stringRef;
  35634. return ref;
  35635. } else {
  35636. (function () {
  35637. if (!(typeof mixedRef === 'string')) {
  35638. {
  35639. throw ReactError(Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.'));
  35640. }
  35641. }
  35642. })();
  35643. (function () {
  35644. if (!element._owner) {
  35645. {
  35646. throw ReactError(Error('Element ref was specified as a string (' + mixedRef + ') but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component\'s render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.'));
  35647. }
  35648. }
  35649. })();
  35650. }
  35651. }
  35652. return mixedRef;
  35653. }
  35654. function throwOnInvalidObjectType(returnFiber, newChild) {
  35655. if (returnFiber.type !== 'textarea') {
  35656. var addendum = '';
  35657. {
  35658. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  35659. }
  35660. (function () {
  35661. {
  35662. {
  35663. throw ReactError(Error('Objects are not valid as a React child (found: ' + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + ').' + addendum));
  35664. }
  35665. }
  35666. })();
  35667. }
  35668. }
  35669. function warnOnFunctionType() {
  35670. 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();
  35671. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  35672. return;
  35673. }
  35674. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  35675. warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
  35676. }
  35677. // This wrapper function exists because I expect to clone the code in each path
  35678. // to be able to optimize each path individually by branching early. This needs
  35679. // a compiler or we can do it manually. Helpers that don't need this branching
  35680. // live outside of this function.
  35681. function ChildReconciler(shouldTrackSideEffects) {
  35682. function deleteChild(returnFiber, childToDelete) {
  35683. if (!shouldTrackSideEffects) {
  35684. // Noop.
  35685. return;
  35686. }
  35687. // Deletions are added in reversed order so we add it to the front.
  35688. // At this point, the return fiber's effect list is empty except for
  35689. // deletions, so we can just append the deletion to the list. The remaining
  35690. // effects aren't added until the complete phase. Once we implement
  35691. // resuming, this may not be true.
  35692. var last = returnFiber.lastEffect;
  35693. if (last !== null) {
  35694. last.nextEffect = childToDelete;
  35695. returnFiber.lastEffect = childToDelete;
  35696. } else {
  35697. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  35698. }
  35699. childToDelete.nextEffect = null;
  35700. childToDelete.effectTag = Deletion;
  35701. }
  35702. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  35703. if (!shouldTrackSideEffects) {
  35704. // Noop.
  35705. return null;
  35706. }
  35707. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  35708. // assuming that after the first child we've already added everything.
  35709. var childToDelete = currentFirstChild;
  35710. while (childToDelete !== null) {
  35711. deleteChild(returnFiber, childToDelete);
  35712. childToDelete = childToDelete.sibling;
  35713. }
  35714. return null;
  35715. }
  35716. function mapRemainingChildren(returnFiber, currentFirstChild) {
  35717. // Add the remaining children to a temporary map so that we can find them by
  35718. // keys quickly. Implicit (null) keys get added to this set with their index
  35719. var existingChildren = new Map();
  35720. var existingChild = currentFirstChild;
  35721. while (existingChild !== null) {
  35722. if (existingChild.key !== null) {
  35723. existingChildren.set(existingChild.key, existingChild);
  35724. } else {
  35725. existingChildren.set(existingChild.index, existingChild);
  35726. }
  35727. existingChild = existingChild.sibling;
  35728. }
  35729. return existingChildren;
  35730. }
  35731. function useFiber(fiber, pendingProps, expirationTime) {
  35732. // We currently set sibling to null and index to 0 here because it is easy
  35733. // to forget to do before returning it. E.g. for the single child case.
  35734. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  35735. clone.index = 0;
  35736. clone.sibling = null;
  35737. return clone;
  35738. }
  35739. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  35740. newFiber.index = newIndex;
  35741. if (!shouldTrackSideEffects) {
  35742. // Noop.
  35743. return lastPlacedIndex;
  35744. }
  35745. var current$$1 = newFiber.alternate;
  35746. if (current$$1 !== null) {
  35747. var oldIndex = current$$1.index;
  35748. if (oldIndex < lastPlacedIndex) {
  35749. // This is a move.
  35750. newFiber.effectTag = Placement;
  35751. return lastPlacedIndex;
  35752. } else {
  35753. // This item can stay in place.
  35754. return oldIndex;
  35755. }
  35756. } else {
  35757. // This is an insertion.
  35758. newFiber.effectTag = Placement;
  35759. return lastPlacedIndex;
  35760. }
  35761. }
  35762. function placeSingleChild(newFiber) {
  35763. // This is simpler for the single child case. We only need to do a
  35764. // placement for inserting new children.
  35765. if (shouldTrackSideEffects && newFiber.alternate === null) {
  35766. newFiber.effectTag = Placement;
  35767. }
  35768. return newFiber;
  35769. }
  35770. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  35771. if (current$$1 === null || current$$1.tag !== HostText) {
  35772. // Insert
  35773. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  35774. created.return = returnFiber;
  35775. return created;
  35776. } else {
  35777. // Update
  35778. var existing = useFiber(current$$1, textContent, expirationTime);
  35779. existing.return = returnFiber;
  35780. return existing;
  35781. }
  35782. }
  35783. function updateElement(returnFiber, current$$1, element, expirationTime) {
  35784. if (current$$1 !== null && (current$$1.elementType === element.type || (
  35785. // Keep this check inline so it only runs on the false path:
  35786. isCompatibleFamilyForHotReloading(current$$1, element)))) {
  35787. // Move based on index
  35788. var existing = useFiber(current$$1, element.props, expirationTime);
  35789. existing.ref = coerceRef(returnFiber, current$$1, element);
  35790. existing.return = returnFiber;
  35791. {
  35792. existing._debugSource = element._source;
  35793. existing._debugOwner = element._owner;
  35794. }
  35795. return existing;
  35796. } else {
  35797. // Insert
  35798. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  35799. created.ref = coerceRef(returnFiber, current$$1, element);
  35800. created.return = returnFiber;
  35801. return created;
  35802. }
  35803. }
  35804. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  35805. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  35806. // Insert
  35807. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  35808. created.return = returnFiber;
  35809. return created;
  35810. } else {
  35811. // Update
  35812. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  35813. existing.return = returnFiber;
  35814. return existing;
  35815. }
  35816. }
  35817. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  35818. if (current$$1 === null || current$$1.tag !== Fragment) {
  35819. // Insert
  35820. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  35821. created.return = returnFiber;
  35822. return created;
  35823. } else {
  35824. // Update
  35825. var existing = useFiber(current$$1, fragment, expirationTime);
  35826. existing.return = returnFiber;
  35827. return existing;
  35828. }
  35829. }
  35830. function createChild(returnFiber, newChild, expirationTime) {
  35831. if (typeof newChild === 'string' || typeof newChild === 'number') {
  35832. // Text nodes don't have keys. If the previous node is implicitly keyed
  35833. // we can continue to replace it without aborting even if it is not a text
  35834. // node.
  35835. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  35836. created.return = returnFiber;
  35837. return created;
  35838. }
  35839. if (typeof newChild === 'object' && newChild !== null) {
  35840. switch (newChild.$$typeof) {
  35841. case REACT_ELEMENT_TYPE:
  35842. {
  35843. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  35844. _created.ref = coerceRef(returnFiber, null, newChild);
  35845. _created.return = returnFiber;
  35846. return _created;
  35847. }
  35848. case REACT_PORTAL_TYPE:
  35849. {
  35850. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  35851. _created2.return = returnFiber;
  35852. return _created2;
  35853. }
  35854. }
  35855. if (isArray(newChild) || getIteratorFn(newChild)) {
  35856. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  35857. _created3.return = returnFiber;
  35858. return _created3;
  35859. }
  35860. throwOnInvalidObjectType(returnFiber, newChild);
  35861. }
  35862. {
  35863. if (typeof newChild === 'function') {
  35864. warnOnFunctionType();
  35865. }
  35866. }
  35867. return null;
  35868. }
  35869. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  35870. // Update the fiber if the keys match, otherwise return null.
  35871. var key = oldFiber !== null ? oldFiber.key : null;
  35872. if (typeof newChild === 'string' || typeof newChild === 'number') {
  35873. // Text nodes don't have keys. If the previous node is implicitly keyed
  35874. // we can continue to replace it without aborting even if it is not a text
  35875. // node.
  35876. if (key !== null) {
  35877. return null;
  35878. }
  35879. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  35880. }
  35881. if (typeof newChild === 'object' && newChild !== null) {
  35882. switch (newChild.$$typeof) {
  35883. case REACT_ELEMENT_TYPE:
  35884. {
  35885. if (newChild.key === key) {
  35886. if (newChild.type === REACT_FRAGMENT_TYPE) {
  35887. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  35888. }
  35889. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  35890. } else {
  35891. return null;
  35892. }
  35893. }
  35894. case REACT_PORTAL_TYPE:
  35895. {
  35896. if (newChild.key === key) {
  35897. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  35898. } else {
  35899. return null;
  35900. }
  35901. }
  35902. }
  35903. if (isArray(newChild) || getIteratorFn(newChild)) {
  35904. if (key !== null) {
  35905. return null;
  35906. }
  35907. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  35908. }
  35909. throwOnInvalidObjectType(returnFiber, newChild);
  35910. }
  35911. {
  35912. if (typeof newChild === 'function') {
  35913. warnOnFunctionType();
  35914. }
  35915. }
  35916. return null;
  35917. }
  35918. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  35919. if (typeof newChild === 'string' || typeof newChild === 'number') {
  35920. // Text nodes don't have keys, so we neither have to check the old nor
  35921. // new node for the key. If both are text nodes, they match.
  35922. var matchedFiber = existingChildren.get(newIdx) || null;
  35923. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  35924. }
  35925. if (typeof newChild === 'object' && newChild !== null) {
  35926. switch (newChild.$$typeof) {
  35927. case REACT_ELEMENT_TYPE:
  35928. {
  35929. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  35930. if (newChild.type === REACT_FRAGMENT_TYPE) {
  35931. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  35932. }
  35933. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  35934. }
  35935. case REACT_PORTAL_TYPE:
  35936. {
  35937. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  35938. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  35939. }
  35940. }
  35941. if (isArray(newChild) || getIteratorFn(newChild)) {
  35942. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  35943. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  35944. }
  35945. throwOnInvalidObjectType(returnFiber, newChild);
  35946. }
  35947. {
  35948. if (typeof newChild === 'function') {
  35949. warnOnFunctionType();
  35950. }
  35951. }
  35952. return null;
  35953. }
  35954. /**
  35955. * Warns if there is a duplicate or missing key
  35956. */
  35957. function warnOnInvalidKey(child, knownKeys) {
  35958. {
  35959. if (typeof child !== 'object' || child === null) {
  35960. return knownKeys;
  35961. }
  35962. switch (child.$$typeof) {
  35963. case REACT_ELEMENT_TYPE:
  35964. case REACT_PORTAL_TYPE:
  35965. warnForMissingKey(child);
  35966. var key = child.key;
  35967. if (typeof key !== 'string') {
  35968. break;
  35969. }
  35970. if (knownKeys === null) {
  35971. knownKeys = new Set();
  35972. knownKeys.add(key);
  35973. break;
  35974. }
  35975. if (!knownKeys.has(key)) {
  35976. knownKeys.add(key);
  35977. break;
  35978. }
  35979. warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
  35980. break;
  35981. default:
  35982. break;
  35983. }
  35984. }
  35985. return knownKeys;
  35986. }
  35987. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  35988. // This algorithm can't optimize by searching from both ends since we
  35989. // don't have backpointers on fibers. I'm trying to see how far we can get
  35990. // with that model. If it ends up not being worth the tradeoffs, we can
  35991. // add it later.
  35992. // Even with a two ended optimization, we'd want to optimize for the case
  35993. // where there are few changes and brute force the comparison instead of
  35994. // going for the Map. It'd like to explore hitting that path first in
  35995. // forward-only mode and only go for the Map once we notice that we need
  35996. // lots of look ahead. This doesn't handle reversal as well as two ended
  35997. // search but that's unusual. Besides, for the two ended optimization to
  35998. // work on Iterables, we'd need to copy the whole set.
  35999. // In this first iteration, we'll just live with hitting the bad case
  36000. // (adding everything to a Map) in for every insert/move.
  36001. // If you change this code, also update reconcileChildrenIterator() which
  36002. // uses the same algorithm.
  36003. {
  36004. // First, validate keys.
  36005. var knownKeys = null;
  36006. for (var i = 0; i < newChildren.length; i++) {
  36007. var child = newChildren[i];
  36008. knownKeys = warnOnInvalidKey(child, knownKeys);
  36009. }
  36010. }
  36011. var resultingFirstChild = null;
  36012. var previousNewFiber = null;
  36013. var oldFiber = currentFirstChild;
  36014. var lastPlacedIndex = 0;
  36015. var newIdx = 0;
  36016. var nextOldFiber = null;
  36017. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  36018. if (oldFiber.index > newIdx) {
  36019. nextOldFiber = oldFiber;
  36020. oldFiber = null;
  36021. } else {
  36022. nextOldFiber = oldFiber.sibling;
  36023. }
  36024. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  36025. if (newFiber === null) {
  36026. // TODO: This breaks on empty slots like null children. That's
  36027. // unfortunate because it triggers the slow path all the time. We need
  36028. // a better way to communicate whether this was a miss or null,
  36029. // boolean, undefined, etc.
  36030. if (oldFiber === null) {
  36031. oldFiber = nextOldFiber;
  36032. }
  36033. break;
  36034. }
  36035. if (shouldTrackSideEffects) {
  36036. if (oldFiber && newFiber.alternate === null) {
  36037. // We matched the slot, but we didn't reuse the existing fiber, so we
  36038. // need to delete the existing child.
  36039. deleteChild(returnFiber, oldFiber);
  36040. }
  36041. }
  36042. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  36043. if (previousNewFiber === null) {
  36044. // TODO: Move out of the loop. This only happens for the first run.
  36045. resultingFirstChild = newFiber;
  36046. } else {
  36047. // TODO: Defer siblings if we're not at the right index for this slot.
  36048. // I.e. if we had null values before, then we want to defer this
  36049. // for each null value. However, we also don't want to call updateSlot
  36050. // with the previous one.
  36051. previousNewFiber.sibling = newFiber;
  36052. }
  36053. previousNewFiber = newFiber;
  36054. oldFiber = nextOldFiber;
  36055. }
  36056. if (newIdx === newChildren.length) {
  36057. // We've reached the end of the new children. We can delete the rest.
  36058. deleteRemainingChildren(returnFiber, oldFiber);
  36059. return resultingFirstChild;
  36060. }
  36061. if (oldFiber === null) {
  36062. // If we don't have any more existing children we can choose a fast path
  36063. // since the rest will all be insertions.
  36064. for (; newIdx < newChildren.length; newIdx++) {
  36065. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  36066. if (_newFiber === null) {
  36067. continue;
  36068. }
  36069. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  36070. if (previousNewFiber === null) {
  36071. // TODO: Move out of the loop. This only happens for the first run.
  36072. resultingFirstChild = _newFiber;
  36073. } else {
  36074. previousNewFiber.sibling = _newFiber;
  36075. }
  36076. previousNewFiber = _newFiber;
  36077. }
  36078. return resultingFirstChild;
  36079. }
  36080. // Add all children to a key map for quick lookups.
  36081. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  36082. // Keep scanning and use the map to restore deleted items as moves.
  36083. for (; newIdx < newChildren.length; newIdx++) {
  36084. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  36085. if (_newFiber2 !== null) {
  36086. if (shouldTrackSideEffects) {
  36087. if (_newFiber2.alternate !== null) {
  36088. // The new fiber is a work in progress, but if there exists a
  36089. // current, that means that we reused the fiber. We need to delete
  36090. // it from the child list so that we don't add it to the deletion
  36091. // list.
  36092. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  36093. }
  36094. }
  36095. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  36096. if (previousNewFiber === null) {
  36097. resultingFirstChild = _newFiber2;
  36098. } else {
  36099. previousNewFiber.sibling = _newFiber2;
  36100. }
  36101. previousNewFiber = _newFiber2;
  36102. }
  36103. }
  36104. if (shouldTrackSideEffects) {
  36105. // Any existing children that weren't consumed above were deleted. We need
  36106. // to add them to the deletion list.
  36107. existingChildren.forEach(function (child) {
  36108. return deleteChild(returnFiber, child);
  36109. });
  36110. }
  36111. return resultingFirstChild;
  36112. }
  36113. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  36114. // This is the same implementation as reconcileChildrenArray(),
  36115. // but using the iterator instead.
  36116. var iteratorFn = getIteratorFn(newChildrenIterable);
  36117. (function () {
  36118. if (!(typeof iteratorFn === 'function')) {
  36119. {
  36120. throw ReactError(Error('An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.'));
  36121. }
  36122. }
  36123. })();
  36124. {
  36125. // We don't support rendering Generators because it's a mutation.
  36126. // See https://github.com/facebook/react/issues/12995
  36127. if (typeof Symbol === 'function' &&
  36128. // $FlowFixMe Flow doesn't know about toStringTag
  36129. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  36130. !didWarnAboutGenerators ? warning$1(false, 'Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;
  36131. didWarnAboutGenerators = true;
  36132. }
  36133. // Warn about using Maps as children
  36134. if (newChildrenIterable.entries === iteratorFn) {
  36135. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  36136. didWarnAboutMaps = true;
  36137. }
  36138. // First, validate keys.
  36139. // We'll get a different iterator later for the main pass.
  36140. var _newChildren = iteratorFn.call(newChildrenIterable);
  36141. if (_newChildren) {
  36142. var knownKeys = null;
  36143. var _step = _newChildren.next();
  36144. for (; !_step.done; _step = _newChildren.next()) {
  36145. var child = _step.value;
  36146. knownKeys = warnOnInvalidKey(child, knownKeys);
  36147. }
  36148. }
  36149. }
  36150. var newChildren = iteratorFn.call(newChildrenIterable);
  36151. (function () {
  36152. if (!(newChildren != null)) {
  36153. {
  36154. throw ReactError(Error('An iterable object provided no iterator.'));
  36155. }
  36156. }
  36157. })();
  36158. var resultingFirstChild = null;
  36159. var previousNewFiber = null;
  36160. var oldFiber = currentFirstChild;
  36161. var lastPlacedIndex = 0;
  36162. var newIdx = 0;
  36163. var nextOldFiber = null;
  36164. var step = newChildren.next();
  36165. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  36166. if (oldFiber.index > newIdx) {
  36167. nextOldFiber = oldFiber;
  36168. oldFiber = null;
  36169. } else {
  36170. nextOldFiber = oldFiber.sibling;
  36171. }
  36172. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  36173. if (newFiber === null) {
  36174. // TODO: This breaks on empty slots like null children. That's
  36175. // unfortunate because it triggers the slow path all the time. We need
  36176. // a better way to communicate whether this was a miss or null,
  36177. // boolean, undefined, etc.
  36178. if (oldFiber === null) {
  36179. oldFiber = nextOldFiber;
  36180. }
  36181. break;
  36182. }
  36183. if (shouldTrackSideEffects) {
  36184. if (oldFiber && newFiber.alternate === null) {
  36185. // We matched the slot, but we didn't reuse the existing fiber, so we
  36186. // need to delete the existing child.
  36187. deleteChild(returnFiber, oldFiber);
  36188. }
  36189. }
  36190. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  36191. if (previousNewFiber === null) {
  36192. // TODO: Move out of the loop. This only happens for the first run.
  36193. resultingFirstChild = newFiber;
  36194. } else {
  36195. // TODO: Defer siblings if we're not at the right index for this slot.
  36196. // I.e. if we had null values before, then we want to defer this
  36197. // for each null value. However, we also don't want to call updateSlot
  36198. // with the previous one.
  36199. previousNewFiber.sibling = newFiber;
  36200. }
  36201. previousNewFiber = newFiber;
  36202. oldFiber = nextOldFiber;
  36203. }
  36204. if (step.done) {
  36205. // We've reached the end of the new children. We can delete the rest.
  36206. deleteRemainingChildren(returnFiber, oldFiber);
  36207. return resultingFirstChild;
  36208. }
  36209. if (oldFiber === null) {
  36210. // If we don't have any more existing children we can choose a fast path
  36211. // since the rest will all be insertions.
  36212. for (; !step.done; newIdx++, step = newChildren.next()) {
  36213. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  36214. if (_newFiber3 === null) {
  36215. continue;
  36216. }
  36217. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  36218. if (previousNewFiber === null) {
  36219. // TODO: Move out of the loop. This only happens for the first run.
  36220. resultingFirstChild = _newFiber3;
  36221. } else {
  36222. previousNewFiber.sibling = _newFiber3;
  36223. }
  36224. previousNewFiber = _newFiber3;
  36225. }
  36226. return resultingFirstChild;
  36227. }
  36228. // Add all children to a key map for quick lookups.
  36229. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  36230. // Keep scanning and use the map to restore deleted items as moves.
  36231. for (; !step.done; newIdx++, step = newChildren.next()) {
  36232. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  36233. if (_newFiber4 !== null) {
  36234. if (shouldTrackSideEffects) {
  36235. if (_newFiber4.alternate !== null) {
  36236. // The new fiber is a work in progress, but if there exists a
  36237. // current, that means that we reused the fiber. We need to delete
  36238. // it from the child list so that we don't add it to the deletion
  36239. // list.
  36240. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  36241. }
  36242. }
  36243. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  36244. if (previousNewFiber === null) {
  36245. resultingFirstChild = _newFiber4;
  36246. } else {
  36247. previousNewFiber.sibling = _newFiber4;
  36248. }
  36249. previousNewFiber = _newFiber4;
  36250. }
  36251. }
  36252. if (shouldTrackSideEffects) {
  36253. // Any existing children that weren't consumed above were deleted. We need
  36254. // to add them to the deletion list.
  36255. existingChildren.forEach(function (child) {
  36256. return deleteChild(returnFiber, child);
  36257. });
  36258. }
  36259. return resultingFirstChild;
  36260. }
  36261. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  36262. // There's no need to check for keys on text nodes since we don't have a
  36263. // way to define them.
  36264. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  36265. // We already have an existing node so let's just update it and delete
  36266. // the rest.
  36267. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  36268. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  36269. existing.return = returnFiber;
  36270. return existing;
  36271. }
  36272. // The existing first child is not a text node so we need to create one
  36273. // and delete the existing ones.
  36274. deleteRemainingChildren(returnFiber, currentFirstChild);
  36275. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  36276. created.return = returnFiber;
  36277. return created;
  36278. }
  36279. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  36280. var key = element.key;
  36281. var child = currentFirstChild;
  36282. while (child !== null) {
  36283. // TODO: If key === null and child.key === null, then this only applies to
  36284. // the first item in the list.
  36285. if (child.key === key) {
  36286. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type || (
  36287. // Keep this check inline so it only runs on the false path:
  36288. isCompatibleFamilyForHotReloading(child, element))) {
  36289. deleteRemainingChildren(returnFiber, child.sibling);
  36290. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  36291. existing.ref = coerceRef(returnFiber, child, element);
  36292. existing.return = returnFiber;
  36293. {
  36294. existing._debugSource = element._source;
  36295. existing._debugOwner = element._owner;
  36296. }
  36297. return existing;
  36298. } else {
  36299. deleteRemainingChildren(returnFiber, child);
  36300. break;
  36301. }
  36302. } else {
  36303. deleteChild(returnFiber, child);
  36304. }
  36305. child = child.sibling;
  36306. }
  36307. if (element.type === REACT_FRAGMENT_TYPE) {
  36308. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  36309. created.return = returnFiber;
  36310. return created;
  36311. } else {
  36312. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  36313. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  36314. _created4.return = returnFiber;
  36315. return _created4;
  36316. }
  36317. }
  36318. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  36319. var key = portal.key;
  36320. var child = currentFirstChild;
  36321. while (child !== null) {
  36322. // TODO: If key === null and child.key === null, then this only applies to
  36323. // the first item in the list.
  36324. if (child.key === key) {
  36325. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  36326. deleteRemainingChildren(returnFiber, child.sibling);
  36327. var existing = useFiber(child, portal.children || [], expirationTime);
  36328. existing.return = returnFiber;
  36329. return existing;
  36330. } else {
  36331. deleteRemainingChildren(returnFiber, child);
  36332. break;
  36333. }
  36334. } else {
  36335. deleteChild(returnFiber, child);
  36336. }
  36337. child = child.sibling;
  36338. }
  36339. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  36340. created.return = returnFiber;
  36341. return created;
  36342. }
  36343. // This API will tag the children with the side-effect of the reconciliation
  36344. // itself. They will be added to the side-effect list as we pass through the
  36345. // children and the parent.
  36346. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  36347. // This function is not recursive.
  36348. // If the top level item is an array, we treat it as a set of children,
  36349. // not as a fragment. Nested arrays on the other hand will be treated as
  36350. // fragment nodes. Recursion happens at the normal flow.
  36351. // Handle top level unkeyed fragments as if they were arrays.
  36352. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  36353. // We treat the ambiguous cases above the same.
  36354. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  36355. if (isUnkeyedTopLevelFragment) {
  36356. newChild = newChild.props.children;
  36357. }
  36358. // Handle object types
  36359. var isObject = typeof newChild === 'object' && newChild !== null;
  36360. if (isObject) {
  36361. switch (newChild.$$typeof) {
  36362. case REACT_ELEMENT_TYPE:
  36363. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  36364. case REACT_PORTAL_TYPE:
  36365. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  36366. }
  36367. }
  36368. if (typeof newChild === 'string' || typeof newChild === 'number') {
  36369. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  36370. }
  36371. if (isArray(newChild)) {
  36372. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  36373. }
  36374. if (getIteratorFn(newChild)) {
  36375. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  36376. }
  36377. if (isObject) {
  36378. throwOnInvalidObjectType(returnFiber, newChild);
  36379. }
  36380. {
  36381. if (typeof newChild === 'function') {
  36382. warnOnFunctionType();
  36383. }
  36384. }
  36385. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  36386. // If the new child is undefined, and the return fiber is a composite
  36387. // component, throw an error. If Fiber return types are disabled,
  36388. // we already threw above.
  36389. switch (returnFiber.tag) {
  36390. case ClassComponent:
  36391. {
  36392. {
  36393. var instance = returnFiber.stateNode;
  36394. if (instance.render._isMockFunction) {
  36395. // We allow auto-mocks to proceed as if they're returning null.
  36396. break;
  36397. }
  36398. }
  36399. }
  36400. // Intentionally fall through to the next case, which handles both
  36401. // functions and classes
  36402. // eslint-disable-next-lined no-fallthrough
  36403. case FunctionComponent:
  36404. {
  36405. var Component = returnFiber.type;
  36406. (function () {
  36407. {
  36408. {
  36409. throw ReactError(Error((Component.displayName || Component.name || 'Component') + '(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.'));
  36410. }
  36411. }
  36412. })();
  36413. }
  36414. }
  36415. }
  36416. // Remaining cases are all treated as empty.
  36417. return deleteRemainingChildren(returnFiber, currentFirstChild);
  36418. }
  36419. return reconcileChildFibers;
  36420. }
  36421. var reconcileChildFibers = ChildReconciler(true);
  36422. var mountChildFibers = ChildReconciler(false);
  36423. function cloneChildFibers(current$$1, workInProgress) {
  36424. (function () {
  36425. if (!(current$$1 === null || workInProgress.child === current$$1.child)) {
  36426. {
  36427. throw ReactError(Error('Resuming work not yet implemented.'));
  36428. }
  36429. }
  36430. })();
  36431. if (workInProgress.child === null) {
  36432. return;
  36433. }
  36434. var currentChild = workInProgress.child;
  36435. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  36436. workInProgress.child = newChild;
  36437. newChild.return = workInProgress;
  36438. while (currentChild.sibling !== null) {
  36439. currentChild = currentChild.sibling;
  36440. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  36441. newChild.return = workInProgress;
  36442. }
  36443. newChild.sibling = null;
  36444. }
  36445. // Reset a workInProgress child set to prepare it for a second pass.
  36446. function resetChildFibers(workInProgress, renderExpirationTime) {
  36447. var child = workInProgress.child;
  36448. while (child !== null) {
  36449. resetWorkInProgress(child, renderExpirationTime);
  36450. child = child.sibling;
  36451. }
  36452. }
  36453. var NO_CONTEXT = {};
  36454. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  36455. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  36456. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  36457. function requiredContext(c) {
  36458. (function () {
  36459. if (!(c !== NO_CONTEXT)) {
  36460. {
  36461. throw ReactError(Error('Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.'));
  36462. }
  36463. }
  36464. })();
  36465. return c;
  36466. }
  36467. function getRootHostContainer() {
  36468. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  36469. return rootInstance;
  36470. }
  36471. function pushHostContainer(fiber, nextRootInstance) {
  36472. // Push current root instance onto the stack;
  36473. // This allows us to reset root when portals are popped.
  36474. push(rootInstanceStackCursor, nextRootInstance, fiber);
  36475. // Track the context and the Fiber that provided it.
  36476. // This enables us to pop only Fibers that provide unique contexts.
  36477. push(contextFiberStackCursor, fiber, fiber);
  36478. // Finally, we need to push the host context to the stack.
  36479. // However, we can't just call getRootHostContext() and push it because
  36480. // we'd have a different number of entries on the stack depending on
  36481. // whether getRootHostContext() throws somewhere in renderer code or not.
  36482. // So we push an empty value first. This lets us safely unwind on errors.
  36483. push(contextStackCursor$1, NO_CONTEXT, fiber);
  36484. var nextRootContext = getRootHostContext(nextRootInstance);
  36485. // Now that we know this function doesn't throw, replace it.
  36486. pop(contextStackCursor$1, fiber);
  36487. push(contextStackCursor$1, nextRootContext, fiber);
  36488. }
  36489. function popHostContainer(fiber) {
  36490. pop(contextStackCursor$1, fiber);
  36491. pop(contextFiberStackCursor, fiber);
  36492. pop(rootInstanceStackCursor, fiber);
  36493. }
  36494. function getHostContext() {
  36495. var context = requiredContext(contextStackCursor$1.current);
  36496. return context;
  36497. }
  36498. function pushHostContext(fiber) {
  36499. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  36500. var context = requiredContext(contextStackCursor$1.current);
  36501. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  36502. // Don't push this Fiber's context unless it's unique.
  36503. if (context === nextContext) {
  36504. return;
  36505. }
  36506. // Track the context and the Fiber that provided it.
  36507. // This enables us to pop only Fibers that provide unique contexts.
  36508. push(contextFiberStackCursor, fiber, fiber);
  36509. push(contextStackCursor$1, nextContext, fiber);
  36510. }
  36511. function popHostContext(fiber) {
  36512. // Do not pop unless this Fiber provided the current context.
  36513. // pushHostContext() only pushes Fibers that provide unique contexts.
  36514. if (contextFiberStackCursor.current !== fiber) {
  36515. return;
  36516. }
  36517. pop(contextStackCursor$1, fiber);
  36518. pop(contextFiberStackCursor, fiber);
  36519. }
  36520. var DefaultSuspenseContext = 0;
  36521. // The Suspense Context is split into two parts. The lower bits is
  36522. // inherited deeply down the subtree. The upper bits only affect
  36523. // this immediate suspense boundary and gets reset each new
  36524. // boundary or suspense list.
  36525. var SubtreeSuspenseContextMask = 1;
  36526. // Subtree Flags:
  36527. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  36528. // boundaries is not currently showing visible main content.
  36529. // Either because it is already showing a fallback or is not mounted at all.
  36530. // We can use this to determine if it is desirable to trigger a fallback at
  36531. // the parent. If not, then we might need to trigger undesirable boundaries
  36532. // and/or suspend the commit to avoid hiding the parent content.
  36533. var InvisibleParentSuspenseContext = 1;
  36534. // Shallow Flags:
  36535. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  36536. // items into their fallback state during one of the render passes.
  36537. var ForceSuspenseFallback = 2;
  36538. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  36539. function hasSuspenseContext(parentContext, flag) {
  36540. return (parentContext & flag) !== 0;
  36541. }
  36542. function setDefaultShallowSuspenseContext(parentContext) {
  36543. return parentContext & SubtreeSuspenseContextMask;
  36544. }
  36545. function setShallowSuspenseContext(parentContext, shallowContext) {
  36546. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  36547. }
  36548. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  36549. return parentContext | subtreeContext;
  36550. }
  36551. function pushSuspenseContext(fiber, newContext) {
  36552. push(suspenseStackCursor, newContext, fiber);
  36553. }
  36554. function popSuspenseContext(fiber) {
  36555. pop(suspenseStackCursor, fiber);
  36556. }
  36557. // TODO: This is now an empty object. Should we switch this to a boolean?
  36558. // Alternatively we can make this use an effect tag similar to SuspenseList.
  36559. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  36560. // If it was the primary children that just suspended, capture and render the
  36561. var nextState = workInProgress.memoizedState;
  36562. if (nextState !== null) {
  36563. return false;
  36564. }
  36565. var props = workInProgress.memoizedProps;
  36566. // In order to capture, the Suspense component must have a fallback prop.
  36567. if (props.fallback === undefined) {
  36568. return false;
  36569. }
  36570. // Regular boundaries always capture.
  36571. if (props.unstable_avoidThisFallback !== true) {
  36572. return true;
  36573. }
  36574. // If it's a boundary we should avoid, then we prefer to bubble up to the
  36575. // parent boundary if it is currently invisible.
  36576. if (hasInvisibleParent) {
  36577. return false;
  36578. }
  36579. // If the parent is not able to handle it, we must handle it.
  36580. return true;
  36581. }
  36582. function findFirstSuspended(row) {
  36583. var node = row;
  36584. while (node !== null) {
  36585. if (node.tag === SuspenseComponent) {
  36586. var state = node.memoizedState;
  36587. if (state !== null) {
  36588. return node;
  36589. }
  36590. } else if (node.tag === SuspenseListComponent &&
  36591. // revealOrder undefined can't be trusted because it don't
  36592. // keep track of whether it suspended or not.
  36593. node.memoizedProps.revealOrder !== undefined) {
  36594. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  36595. if (didSuspend) {
  36596. return node;
  36597. }
  36598. } else if (node.child !== null) {
  36599. node.child.return = node;
  36600. node = node.child;
  36601. continue;
  36602. }
  36603. if (node === row) {
  36604. return null;
  36605. }
  36606. while (node.sibling === null) {
  36607. if (node.return === null || node.return === row) {
  36608. return null;
  36609. }
  36610. node = node.return;
  36611. }
  36612. node.sibling.return = node.return;
  36613. node = node.sibling;
  36614. }
  36615. return null;
  36616. }
  36617. var NoEffect$1 = /* */0;
  36618. var UnmountSnapshot = /* */2;
  36619. var UnmountMutation = /* */4;
  36620. var MountMutation = /* */8;
  36621. var UnmountLayout = /* */16;
  36622. var MountLayout = /* */32;
  36623. var MountPassive = /* */64;
  36624. var UnmountPassive = /* */128;
  36625. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
  36626. var didWarnAboutMismatchedHooksForComponent = void 0;
  36627. {
  36628. didWarnAboutMismatchedHooksForComponent = new Set();
  36629. }
  36630. // These are set right before calling the component.
  36631. var renderExpirationTime$1 = NoWork;
  36632. // The work-in-progress fiber. I've named it differently to distinguish it from
  36633. // the work-in-progress hook.
  36634. var currentlyRenderingFiber$1 = null;
  36635. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  36636. // current hook list is the list that belongs to the current fiber. The
  36637. // work-in-progress hook list is a new list that will be added to the
  36638. // work-in-progress fiber.
  36639. var currentHook = null;
  36640. var nextCurrentHook = null;
  36641. var firstWorkInProgressHook = null;
  36642. var workInProgressHook = null;
  36643. var nextWorkInProgressHook = null;
  36644. var remainingExpirationTime = NoWork;
  36645. var componentUpdateQueue = null;
  36646. var sideEffectTag = 0;
  36647. // Updates scheduled during render will trigger an immediate re-render at the
  36648. // end of the current pass. We can't store these updates on the normal queue,
  36649. // because if the work is aborted, they should be discarded. Because this is
  36650. // a relatively rare case, we also don't want to add an additional field to
  36651. // either the hook or queue object types. So we store them in a lazily create
  36652. // map of queue -> render-phase updates, which are discarded once the component
  36653. // completes without re-rendering.
  36654. // Whether an update was scheduled during the currently executing render pass.
  36655. var didScheduleRenderPhaseUpdate = false;
  36656. // Lazily created map of render-phase updates
  36657. var renderPhaseUpdates = null;
  36658. // Counter to prevent infinite loops.
  36659. var numberOfReRenders = 0;
  36660. var RE_RENDER_LIMIT = 25;
  36661. // In DEV, this is the name of the currently executing primitive hook
  36662. var currentHookNameInDev = null;
  36663. // In DEV, this list ensures that hooks are called in the same order between renders.
  36664. // The list stores the order of hooks used during the initial render (mount).
  36665. // Subsequent renders (updates) reference this list.
  36666. var hookTypesDev = null;
  36667. var hookTypesUpdateIndexDev = -1;
  36668. // In DEV, this tracks whether currently rendering component needs to ignore
  36669. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  36670. // When true, such Hooks will always be "remounted". Only used during hot reload.
  36671. var ignorePreviousDependencies = false;
  36672. function mountHookTypesDev() {
  36673. {
  36674. var hookName = currentHookNameInDev;
  36675. if (hookTypesDev === null) {
  36676. hookTypesDev = [hookName];
  36677. } else {
  36678. hookTypesDev.push(hookName);
  36679. }
  36680. }
  36681. }
  36682. function updateHookTypesDev() {
  36683. {
  36684. var hookName = currentHookNameInDev;
  36685. if (hookTypesDev !== null) {
  36686. hookTypesUpdateIndexDev++;
  36687. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  36688. warnOnHookMismatchInDev(hookName);
  36689. }
  36690. }
  36691. }
  36692. }
  36693. function checkDepsAreArrayDev(deps) {
  36694. {
  36695. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  36696. // Verify deps, but only on mount to avoid extra checks.
  36697. // It's unlikely their type would change as usually you define them inline.
  36698. warning$1(false, '%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
  36699. }
  36700. }
  36701. }
  36702. function warnOnHookMismatchInDev(currentHookName) {
  36703. {
  36704. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  36705. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  36706. didWarnAboutMismatchedHooksForComponent.add(componentName);
  36707. if (hookTypesDev !== null) {
  36708. var table = '';
  36709. var secondColumnStart = 30;
  36710. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  36711. var oldHookName = hookTypesDev[i];
  36712. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  36713. var row = i + 1 + '. ' + oldHookName;
  36714. // Extra space so second column lines up
  36715. // lol @ IE not supporting String#repeat
  36716. while (row.length < secondColumnStart) {
  36717. row += ' ';
  36718. }
  36719. row += newHookName + '\n';
  36720. table += row;
  36721. }
  36722. warning$1(false, 'React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
  36723. }
  36724. }
  36725. }
  36726. }
  36727. function throwInvalidHookError() {
  36728. (function () {
  36729. {
  36730. {
  36731. throw ReactError(Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  36732. }
  36733. }
  36734. })();
  36735. }
  36736. function areHookInputsEqual(nextDeps, prevDeps) {
  36737. {
  36738. if (ignorePreviousDependencies) {
  36739. // Only true when this component is being hot reloaded.
  36740. return false;
  36741. }
  36742. }
  36743. if (prevDeps === null) {
  36744. {
  36745. warning$1(false, '%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
  36746. }
  36747. return false;
  36748. }
  36749. {
  36750. // Don't bother comparing lengths in prod because these arrays should be
  36751. // passed inline.
  36752. if (nextDeps.length !== prevDeps.length) {
  36753. warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, '[' + prevDeps.join(', ') + ']', '[' + nextDeps.join(', ') + ']');
  36754. }
  36755. }
  36756. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  36757. if (is(nextDeps[i], prevDeps[i])) {
  36758. continue;
  36759. }
  36760. return false;
  36761. }
  36762. return true;
  36763. }
  36764. function renderWithHooks(current, workInProgress, Component, props, refOrContext, nextRenderExpirationTime) {
  36765. renderExpirationTime$1 = nextRenderExpirationTime;
  36766. currentlyRenderingFiber$1 = workInProgress;
  36767. nextCurrentHook = current !== null ? current.memoizedState : null;
  36768. {
  36769. hookTypesDev = current !== null ? current._debugHookTypes : null;
  36770. hookTypesUpdateIndexDev = -1;
  36771. // Used for hot reloading:
  36772. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  36773. }
  36774. // The following should have already been reset
  36775. // currentHook = null;
  36776. // workInProgressHook = null;
  36777. // remainingExpirationTime = NoWork;
  36778. // componentUpdateQueue = null;
  36779. // didScheduleRenderPhaseUpdate = false;
  36780. // renderPhaseUpdates = null;
  36781. // numberOfReRenders = 0;
  36782. // sideEffectTag = 0;
  36783. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  36784. // Currently we will identify the update render as a mount because nextCurrentHook === null.
  36785. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  36786. // Using nextCurrentHook to differentiate between mount/update only works if at least one stateful hook is used.
  36787. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  36788. // so nextCurrentHook would be null during updates and mounts.
  36789. {
  36790. if (nextCurrentHook !== null) {
  36791. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  36792. } else if (hookTypesDev !== null) {
  36793. // This dispatcher handles an edge case where a component is updating,
  36794. // but no stateful hooks have been used.
  36795. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  36796. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  36797. // This dispatcher does that.
  36798. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
  36799. } else {
  36800. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
  36801. }
  36802. }
  36803. var children = Component(props, refOrContext);
  36804. if (didScheduleRenderPhaseUpdate) {
  36805. do {
  36806. didScheduleRenderPhaseUpdate = false;
  36807. numberOfReRenders += 1;
  36808. // Start over from the beginning of the list
  36809. nextCurrentHook = current !== null ? current.memoizedState : null;
  36810. nextWorkInProgressHook = firstWorkInProgressHook;
  36811. currentHook = null;
  36812. workInProgressHook = null;
  36813. componentUpdateQueue = null;
  36814. {
  36815. // Also validate hook order for cascading updates.
  36816. hookTypesUpdateIndexDev = -1;
  36817. }
  36818. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  36819. children = Component(props, refOrContext);
  36820. } while (didScheduleRenderPhaseUpdate);
  36821. renderPhaseUpdates = null;
  36822. numberOfReRenders = 0;
  36823. }
  36824. // We can assume the previous dispatcher is always this one, since we set it
  36825. // at the beginning of the render phase and there's no re-entrancy.
  36826. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  36827. var renderedWork = currentlyRenderingFiber$1;
  36828. renderedWork.memoizedState = firstWorkInProgressHook;
  36829. renderedWork.expirationTime = remainingExpirationTime;
  36830. renderedWork.updateQueue = componentUpdateQueue;
  36831. renderedWork.effectTag |= sideEffectTag;
  36832. {
  36833. renderedWork._debugHookTypes = hookTypesDev;
  36834. }
  36835. // This check uses currentHook so that it works the same in DEV and prod bundles.
  36836. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  36837. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  36838. renderExpirationTime$1 = NoWork;
  36839. currentlyRenderingFiber$1 = null;
  36840. currentHook = null;
  36841. nextCurrentHook = null;
  36842. firstWorkInProgressHook = null;
  36843. workInProgressHook = null;
  36844. nextWorkInProgressHook = null;
  36845. {
  36846. currentHookNameInDev = null;
  36847. hookTypesDev = null;
  36848. hookTypesUpdateIndexDev = -1;
  36849. }
  36850. remainingExpirationTime = NoWork;
  36851. componentUpdateQueue = null;
  36852. sideEffectTag = 0;
  36853. // These were reset above
  36854. // didScheduleRenderPhaseUpdate = false;
  36855. // renderPhaseUpdates = null;
  36856. // numberOfReRenders = 0;
  36857. (function () {
  36858. if (!!didRenderTooFewHooks) {
  36859. {
  36860. throw ReactError(Error('Rendered fewer hooks than expected. This may be caused by an accidental early return statement.'));
  36861. }
  36862. }
  36863. })();
  36864. return children;
  36865. }
  36866. function bailoutHooks(current, workInProgress, expirationTime) {
  36867. workInProgress.updateQueue = current.updateQueue;
  36868. workInProgress.effectTag &= ~(Passive | Update);
  36869. if (current.expirationTime <= expirationTime) {
  36870. current.expirationTime = NoWork;
  36871. }
  36872. }
  36873. function resetHooks() {
  36874. // We can assume the previous dispatcher is always this one, since we set it
  36875. // at the beginning of the render phase and there's no re-entrancy.
  36876. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  36877. // This is used to reset the state of this module when a component throws.
  36878. // It's also called inside mountIndeterminateComponent if we determine the
  36879. // component is a module-style component.
  36880. renderExpirationTime$1 = NoWork;
  36881. currentlyRenderingFiber$1 = null;
  36882. currentHook = null;
  36883. nextCurrentHook = null;
  36884. firstWorkInProgressHook = null;
  36885. workInProgressHook = null;
  36886. nextWorkInProgressHook = null;
  36887. {
  36888. hookTypesDev = null;
  36889. hookTypesUpdateIndexDev = -1;
  36890. currentHookNameInDev = null;
  36891. }
  36892. remainingExpirationTime = NoWork;
  36893. componentUpdateQueue = null;
  36894. sideEffectTag = 0;
  36895. didScheduleRenderPhaseUpdate = false;
  36896. renderPhaseUpdates = null;
  36897. numberOfReRenders = 0;
  36898. }
  36899. function mountWorkInProgressHook() {
  36900. var hook = {
  36901. memoizedState: null,
  36902. baseState: null,
  36903. queue: null,
  36904. baseUpdate: null,
  36905. next: null
  36906. };
  36907. if (workInProgressHook === null) {
  36908. // This is the first hook in the list
  36909. firstWorkInProgressHook = workInProgressHook = hook;
  36910. } else {
  36911. // Append to the end of the list
  36912. workInProgressHook = workInProgressHook.next = hook;
  36913. }
  36914. return workInProgressHook;
  36915. }
  36916. function updateWorkInProgressHook() {
  36917. // This function is used both for updates and for re-renders triggered by a
  36918. // render phase update. It assumes there is either a current hook we can
  36919. // clone, or a work-in-progress hook from a previous render pass that we can
  36920. // use as a base. When we reach the end of the base list, we must switch to
  36921. // the dispatcher used for mounts.
  36922. if (nextWorkInProgressHook !== null) {
  36923. // There's already a work-in-progress. Reuse it.
  36924. workInProgressHook = nextWorkInProgressHook;
  36925. nextWorkInProgressHook = workInProgressHook.next;
  36926. currentHook = nextCurrentHook;
  36927. nextCurrentHook = currentHook !== null ? currentHook.next : null;
  36928. } else {
  36929. // Clone from the current hook.
  36930. (function () {
  36931. if (!(nextCurrentHook !== null)) {
  36932. {
  36933. throw ReactError(Error('Rendered more hooks than during the previous render.'));
  36934. }
  36935. }
  36936. })();
  36937. currentHook = nextCurrentHook;
  36938. var newHook = {
  36939. memoizedState: currentHook.memoizedState,
  36940. baseState: currentHook.baseState,
  36941. queue: currentHook.queue,
  36942. baseUpdate: currentHook.baseUpdate,
  36943. next: null
  36944. };
  36945. if (workInProgressHook === null) {
  36946. // This is the first hook in the list.
  36947. workInProgressHook = firstWorkInProgressHook = newHook;
  36948. } else {
  36949. // Append to the end of the list.
  36950. workInProgressHook = workInProgressHook.next = newHook;
  36951. }
  36952. nextCurrentHook = currentHook.next;
  36953. }
  36954. return workInProgressHook;
  36955. }
  36956. function createFunctionComponentUpdateQueue() {
  36957. return {
  36958. lastEffect: null
  36959. };
  36960. }
  36961. function basicStateReducer(state, action) {
  36962. return typeof action === 'function' ? action(state) : action;
  36963. }
  36964. function mountReducer(reducer, initialArg, init) {
  36965. var hook = mountWorkInProgressHook();
  36966. var initialState = void 0;
  36967. if (init !== undefined) {
  36968. initialState = init(initialArg);
  36969. } else {
  36970. initialState = initialArg;
  36971. }
  36972. hook.memoizedState = hook.baseState = initialState;
  36973. var queue = hook.queue = {
  36974. last: null,
  36975. dispatch: null,
  36976. lastRenderedReducer: reducer,
  36977. lastRenderedState: initialState
  36978. };
  36979. var dispatch = queue.dispatch = dispatchAction.bind(null,
  36980. // Flow doesn't know this is non-null, but we do.
  36981. currentlyRenderingFiber$1, queue);
  36982. return [hook.memoizedState, dispatch];
  36983. }
  36984. function updateReducer(reducer, initialArg, init) {
  36985. var hook = updateWorkInProgressHook();
  36986. var queue = hook.queue;
  36987. (function () {
  36988. if (!(queue !== null)) {
  36989. {
  36990. throw ReactError(Error('Should have a queue. This is likely a bug in React. Please file an issue.'));
  36991. }
  36992. }
  36993. })();
  36994. queue.lastRenderedReducer = reducer;
  36995. if (numberOfReRenders > 0) {
  36996. // This is a re-render. Apply the new render phase updates to the previous
  36997. var _dispatch = queue.dispatch;
  36998. if (renderPhaseUpdates !== null) {
  36999. // Render phase updates are stored in a map of queue -> linked list
  37000. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  37001. if (firstRenderPhaseUpdate !== undefined) {
  37002. renderPhaseUpdates.delete(queue);
  37003. var newState = hook.memoizedState;
  37004. var update = firstRenderPhaseUpdate;
  37005. do {
  37006. // Process this render phase update. We don't have to check the
  37007. // priority because it will always be the same as the current
  37008. // render's.
  37009. var _action = update.action;
  37010. newState = reducer(newState, _action);
  37011. update = update.next;
  37012. } while (update !== null);
  37013. // Mark that the fiber performed work, but only if the new state is
  37014. // different from the current state.
  37015. if (!is(newState, hook.memoizedState)) {
  37016. markWorkInProgressReceivedUpdate();
  37017. }
  37018. hook.memoizedState = newState;
  37019. // Don't persist the state accumulated from the render phase updates to
  37020. // the base state unless the queue is empty.
  37021. // TODO: Not sure if this is the desired semantics, but it's what we
  37022. // do for gDSFP. I can't remember why.
  37023. if (hook.baseUpdate === queue.last) {
  37024. hook.baseState = newState;
  37025. }
  37026. queue.lastRenderedState = newState;
  37027. return [newState, _dispatch];
  37028. }
  37029. }
  37030. return [hook.memoizedState, _dispatch];
  37031. }
  37032. // The last update in the entire queue
  37033. var last = queue.last;
  37034. // The last update that is part of the base state.
  37035. var baseUpdate = hook.baseUpdate;
  37036. var baseState = hook.baseState;
  37037. // Find the first unprocessed update.
  37038. var first = void 0;
  37039. if (baseUpdate !== null) {
  37040. if (last !== null) {
  37041. // For the first update, the queue is a circular linked list where
  37042. // `queue.last.next = queue.first`. Once the first update commits, and
  37043. // the `baseUpdate` is no longer empty, we can unravel the list.
  37044. last.next = null;
  37045. }
  37046. first = baseUpdate.next;
  37047. } else {
  37048. first = last !== null ? last.next : null;
  37049. }
  37050. if (first !== null) {
  37051. var _newState = baseState;
  37052. var newBaseState = null;
  37053. var newBaseUpdate = null;
  37054. var prevUpdate = baseUpdate;
  37055. var _update = first;
  37056. var didSkip = false;
  37057. do {
  37058. var updateExpirationTime = _update.expirationTime;
  37059. if (updateExpirationTime < renderExpirationTime$1) {
  37060. // Priority is insufficient. Skip this update. If this is the first
  37061. // skipped update, the previous update/state is the new base
  37062. // update/state.
  37063. if (!didSkip) {
  37064. didSkip = true;
  37065. newBaseUpdate = prevUpdate;
  37066. newBaseState = _newState;
  37067. }
  37068. // Update the remaining priority in the queue.
  37069. if (updateExpirationTime > remainingExpirationTime) {
  37070. remainingExpirationTime = updateExpirationTime;
  37071. }
  37072. } else {
  37073. // This update does have sufficient priority.
  37074. // Mark the event time of this update as relevant to this render pass.
  37075. // TODO: This should ideally use the true event time of this update rather than
  37076. // its priority which is a derived and not reverseable value.
  37077. // TODO: We should skip this update if it was already committed but currently
  37078. // we have no way of detecting the difference between a committed and suspended
  37079. // update here.
  37080. markRenderEventTimeAndConfig(updateExpirationTime, _update.suspenseConfig);
  37081. // Process this update.
  37082. if (_update.eagerReducer === reducer) {
  37083. // If this update was processed eagerly, and its reducer matches the
  37084. // current reducer, we can use the eagerly computed state.
  37085. _newState = _update.eagerState;
  37086. } else {
  37087. var _action2 = _update.action;
  37088. _newState = reducer(_newState, _action2);
  37089. }
  37090. }
  37091. prevUpdate = _update;
  37092. _update = _update.next;
  37093. } while (_update !== null && _update !== first);
  37094. if (!didSkip) {
  37095. newBaseUpdate = prevUpdate;
  37096. newBaseState = _newState;
  37097. }
  37098. // Mark that the fiber performed work, but only if the new state is
  37099. // different from the current state.
  37100. if (!is(_newState, hook.memoizedState)) {
  37101. markWorkInProgressReceivedUpdate();
  37102. }
  37103. hook.memoizedState = _newState;
  37104. hook.baseUpdate = newBaseUpdate;
  37105. hook.baseState = newBaseState;
  37106. queue.lastRenderedState = _newState;
  37107. }
  37108. var dispatch = queue.dispatch;
  37109. return [hook.memoizedState, dispatch];
  37110. }
  37111. function mountState(initialState) {
  37112. var hook = mountWorkInProgressHook();
  37113. if (typeof initialState === 'function') {
  37114. initialState = initialState();
  37115. }
  37116. hook.memoizedState = hook.baseState = initialState;
  37117. var queue = hook.queue = {
  37118. last: null,
  37119. dispatch: null,
  37120. lastRenderedReducer: basicStateReducer,
  37121. lastRenderedState: initialState
  37122. };
  37123. var dispatch = queue.dispatch = dispatchAction.bind(null,
  37124. // Flow doesn't know this is non-null, but we do.
  37125. currentlyRenderingFiber$1, queue);
  37126. return [hook.memoizedState, dispatch];
  37127. }
  37128. function updateState(initialState) {
  37129. return updateReducer(basicStateReducer, initialState);
  37130. }
  37131. function pushEffect(tag, create, destroy, deps) {
  37132. var effect = {
  37133. tag: tag,
  37134. create: create,
  37135. destroy: destroy,
  37136. deps: deps,
  37137. // Circular
  37138. next: null
  37139. };
  37140. if (componentUpdateQueue === null) {
  37141. componentUpdateQueue = createFunctionComponentUpdateQueue();
  37142. componentUpdateQueue.lastEffect = effect.next = effect;
  37143. } else {
  37144. var _lastEffect = componentUpdateQueue.lastEffect;
  37145. if (_lastEffect === null) {
  37146. componentUpdateQueue.lastEffect = effect.next = effect;
  37147. } else {
  37148. var firstEffect = _lastEffect.next;
  37149. _lastEffect.next = effect;
  37150. effect.next = firstEffect;
  37151. componentUpdateQueue.lastEffect = effect;
  37152. }
  37153. }
  37154. return effect;
  37155. }
  37156. function mountRef(initialValue) {
  37157. var hook = mountWorkInProgressHook();
  37158. var ref = { current: initialValue };
  37159. {
  37160. Object.seal(ref);
  37161. }
  37162. hook.memoizedState = ref;
  37163. return ref;
  37164. }
  37165. function updateRef(initialValue) {
  37166. var hook = updateWorkInProgressHook();
  37167. return hook.memoizedState;
  37168. }
  37169. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  37170. var hook = mountWorkInProgressHook();
  37171. var nextDeps = deps === undefined ? null : deps;
  37172. sideEffectTag |= fiberEffectTag;
  37173. hook.memoizedState = pushEffect(hookEffectTag, create, undefined, nextDeps);
  37174. }
  37175. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  37176. var hook = updateWorkInProgressHook();
  37177. var nextDeps = deps === undefined ? null : deps;
  37178. var destroy = undefined;
  37179. if (currentHook !== null) {
  37180. var prevEffect = currentHook.memoizedState;
  37181. destroy = prevEffect.destroy;
  37182. if (nextDeps !== null) {
  37183. var prevDeps = prevEffect.deps;
  37184. if (areHookInputsEqual(nextDeps, prevDeps)) {
  37185. pushEffect(NoEffect$1, create, destroy, nextDeps);
  37186. return;
  37187. }
  37188. }
  37189. }
  37190. sideEffectTag |= fiberEffectTag;
  37191. hook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextDeps);
  37192. }
  37193. function mountEffect(create, deps) {
  37194. {
  37195. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  37196. if ('undefined' !== typeof jest) {
  37197. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  37198. }
  37199. }
  37200. return mountEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  37201. }
  37202. function updateEffect(create, deps) {
  37203. {
  37204. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  37205. if ('undefined' !== typeof jest) {
  37206. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  37207. }
  37208. }
  37209. return updateEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  37210. }
  37211. function mountLayoutEffect(create, deps) {
  37212. return mountEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  37213. }
  37214. function updateLayoutEffect(create, deps) {
  37215. return updateEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  37216. }
  37217. function imperativeHandleEffect(create, ref) {
  37218. if (typeof ref === 'function') {
  37219. var refCallback = ref;
  37220. var _inst = create();
  37221. refCallback(_inst);
  37222. return function () {
  37223. refCallback(null);
  37224. };
  37225. } else if (ref !== null && ref !== undefined) {
  37226. var refObject = ref;
  37227. {
  37228. !refObject.hasOwnProperty('current') ? warning$1(false, 'Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}') : void 0;
  37229. }
  37230. var _inst2 = create();
  37231. refObject.current = _inst2;
  37232. return function () {
  37233. refObject.current = null;
  37234. };
  37235. }
  37236. }
  37237. function mountImperativeHandle(ref, create, deps) {
  37238. {
  37239. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  37240. }
  37241. // TODO: If deps are provided, should we skip comparing the ref itself?
  37242. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  37243. return mountEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  37244. }
  37245. function updateImperativeHandle(ref, create, deps) {
  37246. {
  37247. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  37248. }
  37249. // TODO: If deps are provided, should we skip comparing the ref itself?
  37250. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  37251. return updateEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  37252. }
  37253. function mountDebugValue(value, formatterFn) {
  37254. // This hook is normally a no-op.
  37255. // The react-debug-hooks package injects its own implementation
  37256. // so that e.g. DevTools can display custom hook values.
  37257. }
  37258. var updateDebugValue = mountDebugValue;
  37259. function mountCallback(callback, deps) {
  37260. var hook = mountWorkInProgressHook();
  37261. var nextDeps = deps === undefined ? null : deps;
  37262. hook.memoizedState = [callback, nextDeps];
  37263. return callback;
  37264. }
  37265. function updateCallback(callback, deps) {
  37266. var hook = updateWorkInProgressHook();
  37267. var nextDeps = deps === undefined ? null : deps;
  37268. var prevState = hook.memoizedState;
  37269. if (prevState !== null) {
  37270. if (nextDeps !== null) {
  37271. var prevDeps = prevState[1];
  37272. if (areHookInputsEqual(nextDeps, prevDeps)) {
  37273. return prevState[0];
  37274. }
  37275. }
  37276. }
  37277. hook.memoizedState = [callback, nextDeps];
  37278. return callback;
  37279. }
  37280. function mountMemo(nextCreate, deps) {
  37281. var hook = mountWorkInProgressHook();
  37282. var nextDeps = deps === undefined ? null : deps;
  37283. var nextValue = nextCreate();
  37284. hook.memoizedState = [nextValue, nextDeps];
  37285. return nextValue;
  37286. }
  37287. function updateMemo(nextCreate, deps) {
  37288. var hook = updateWorkInProgressHook();
  37289. var nextDeps = deps === undefined ? null : deps;
  37290. var prevState = hook.memoizedState;
  37291. if (prevState !== null) {
  37292. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  37293. if (nextDeps !== null) {
  37294. var prevDeps = prevState[1];
  37295. if (areHookInputsEqual(nextDeps, prevDeps)) {
  37296. return prevState[0];
  37297. }
  37298. }
  37299. }
  37300. var nextValue = nextCreate();
  37301. hook.memoizedState = [nextValue, nextDeps];
  37302. return nextValue;
  37303. }
  37304. function dispatchAction(fiber, queue, action) {
  37305. (function () {
  37306. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  37307. {
  37308. throw ReactError(Error('Too many re-renders. React limits the number of renders to prevent an infinite loop.'));
  37309. }
  37310. }
  37311. })();
  37312. {
  37313. !(arguments.length <= 3) ? warning$1(false, "State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().') : void 0;
  37314. }
  37315. var alternate = fiber.alternate;
  37316. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  37317. // This is a render phase update. Stash it in a lazily-created map of
  37318. // queue -> linked list of updates. After this render pass, we'll restart
  37319. // and apply the stashed updates on top of the work-in-progress hook.
  37320. didScheduleRenderPhaseUpdate = true;
  37321. var update = {
  37322. expirationTime: renderExpirationTime$1,
  37323. suspenseConfig: null,
  37324. action: action,
  37325. eagerReducer: null,
  37326. eagerState: null,
  37327. next: null
  37328. };
  37329. {
  37330. update.priority = getCurrentPriorityLevel();
  37331. }
  37332. if (renderPhaseUpdates === null) {
  37333. renderPhaseUpdates = new Map();
  37334. }
  37335. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  37336. if (firstRenderPhaseUpdate === undefined) {
  37337. renderPhaseUpdates.set(queue, update);
  37338. } else {
  37339. // Append the update to the end of the list.
  37340. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  37341. while (lastRenderPhaseUpdate.next !== null) {
  37342. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  37343. }
  37344. lastRenderPhaseUpdate.next = update;
  37345. }
  37346. } else {
  37347. if (revertPassiveEffectsChange) {
  37348. flushPassiveEffects();
  37349. }
  37350. var currentTime = requestCurrentTime();
  37351. var _suspenseConfig = requestCurrentSuspenseConfig();
  37352. var _expirationTime = computeExpirationForFiber(currentTime, fiber, _suspenseConfig);
  37353. var _update2 = {
  37354. expirationTime: _expirationTime,
  37355. suspenseConfig: _suspenseConfig,
  37356. action: action,
  37357. eagerReducer: null,
  37358. eagerState: null,
  37359. next: null
  37360. };
  37361. {
  37362. _update2.priority = getCurrentPriorityLevel();
  37363. }
  37364. // Append the update to the end of the list.
  37365. var _last = queue.last;
  37366. if (_last === null) {
  37367. // This is the first update. Create a circular list.
  37368. _update2.next = _update2;
  37369. } else {
  37370. var first = _last.next;
  37371. if (first !== null) {
  37372. // Still circular.
  37373. _update2.next = first;
  37374. }
  37375. _last.next = _update2;
  37376. }
  37377. queue.last = _update2;
  37378. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  37379. // The queue is currently empty, which means we can eagerly compute the
  37380. // next state before entering the render phase. If the new state is the
  37381. // same as the current state, we may be able to bail out entirely.
  37382. var _lastRenderedReducer = queue.lastRenderedReducer;
  37383. if (_lastRenderedReducer !== null) {
  37384. var prevDispatcher = void 0;
  37385. {
  37386. prevDispatcher = ReactCurrentDispatcher$1.current;
  37387. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37388. }
  37389. try {
  37390. var currentState = queue.lastRenderedState;
  37391. var _eagerState = _lastRenderedReducer(currentState, action);
  37392. // Stash the eagerly computed state, and the reducer used to compute
  37393. // it, on the update object. If the reducer hasn't changed by the
  37394. // time we enter the render phase, then the eager state can be used
  37395. // without calling the reducer again.
  37396. _update2.eagerReducer = _lastRenderedReducer;
  37397. _update2.eagerState = _eagerState;
  37398. if (is(_eagerState, currentState)) {
  37399. // Fast path. We can bail out without scheduling React to re-render.
  37400. // It's still possible that we'll need to rebase this update later,
  37401. // if the component re-renders for a different reason and by that
  37402. // time the reducer has changed.
  37403. return;
  37404. }
  37405. } catch (error) {
  37406. // Suppress the error. It will throw again in the render phase.
  37407. } finally {
  37408. {
  37409. ReactCurrentDispatcher$1.current = prevDispatcher;
  37410. }
  37411. }
  37412. }
  37413. }
  37414. {
  37415. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  37416. if ('undefined' !== typeof jest) {
  37417. warnIfNotScopedWithMatchingAct(fiber);
  37418. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  37419. }
  37420. }
  37421. scheduleWork(fiber, _expirationTime);
  37422. }
  37423. }
  37424. var ContextOnlyDispatcher = {
  37425. readContext: readContext,
  37426. useCallback: throwInvalidHookError,
  37427. useContext: throwInvalidHookError,
  37428. useEffect: throwInvalidHookError,
  37429. useImperativeHandle: throwInvalidHookError,
  37430. useLayoutEffect: throwInvalidHookError,
  37431. useMemo: throwInvalidHookError,
  37432. useReducer: throwInvalidHookError,
  37433. useRef: throwInvalidHookError,
  37434. useState: throwInvalidHookError,
  37435. useDebugValue: throwInvalidHookError,
  37436. useResponder: throwInvalidHookError
  37437. };
  37438. var HooksDispatcherOnMountInDEV = null;
  37439. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  37440. var HooksDispatcherOnUpdateInDEV = null;
  37441. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  37442. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  37443. {
  37444. var warnInvalidContextAccess = function () {
  37445. warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
  37446. };
  37447. var warnInvalidHookAccess = function () {
  37448. warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks');
  37449. };
  37450. HooksDispatcherOnMountInDEV = {
  37451. readContext: function (context, observedBits) {
  37452. return readContext(context, observedBits);
  37453. },
  37454. useCallback: function (callback, deps) {
  37455. currentHookNameInDev = 'useCallback';
  37456. mountHookTypesDev();
  37457. checkDepsAreArrayDev(deps);
  37458. return mountCallback(callback, deps);
  37459. },
  37460. useContext: function (context, observedBits) {
  37461. currentHookNameInDev = 'useContext';
  37462. mountHookTypesDev();
  37463. return readContext(context, observedBits);
  37464. },
  37465. useEffect: function (create, deps) {
  37466. currentHookNameInDev = 'useEffect';
  37467. mountHookTypesDev();
  37468. checkDepsAreArrayDev(deps);
  37469. return mountEffect(create, deps);
  37470. },
  37471. useImperativeHandle: function (ref, create, deps) {
  37472. currentHookNameInDev = 'useImperativeHandle';
  37473. mountHookTypesDev();
  37474. checkDepsAreArrayDev(deps);
  37475. return mountImperativeHandle(ref, create, deps);
  37476. },
  37477. useLayoutEffect: function (create, deps) {
  37478. currentHookNameInDev = 'useLayoutEffect';
  37479. mountHookTypesDev();
  37480. checkDepsAreArrayDev(deps);
  37481. return mountLayoutEffect(create, deps);
  37482. },
  37483. useMemo: function (create, deps) {
  37484. currentHookNameInDev = 'useMemo';
  37485. mountHookTypesDev();
  37486. checkDepsAreArrayDev(deps);
  37487. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37488. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37489. try {
  37490. return mountMemo(create, deps);
  37491. } finally {
  37492. ReactCurrentDispatcher$1.current = prevDispatcher;
  37493. }
  37494. },
  37495. useReducer: function (reducer, initialArg, init) {
  37496. currentHookNameInDev = 'useReducer';
  37497. mountHookTypesDev();
  37498. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37499. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37500. try {
  37501. return mountReducer(reducer, initialArg, init);
  37502. } finally {
  37503. ReactCurrentDispatcher$1.current = prevDispatcher;
  37504. }
  37505. },
  37506. useRef: function (initialValue) {
  37507. currentHookNameInDev = 'useRef';
  37508. mountHookTypesDev();
  37509. return mountRef(initialValue);
  37510. },
  37511. useState: function (initialState) {
  37512. currentHookNameInDev = 'useState';
  37513. mountHookTypesDev();
  37514. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37515. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37516. try {
  37517. return mountState(initialState);
  37518. } finally {
  37519. ReactCurrentDispatcher$1.current = prevDispatcher;
  37520. }
  37521. },
  37522. useDebugValue: function (value, formatterFn) {
  37523. currentHookNameInDev = 'useDebugValue';
  37524. mountHookTypesDev();
  37525. return mountDebugValue(value, formatterFn);
  37526. },
  37527. useResponder: function (responder, props) {
  37528. currentHookNameInDev = 'useResponder';
  37529. mountHookTypesDev();
  37530. return createResponderListener(responder, props);
  37531. }
  37532. };
  37533. HooksDispatcherOnMountWithHookTypesInDEV = {
  37534. readContext: function (context, observedBits) {
  37535. return readContext(context, observedBits);
  37536. },
  37537. useCallback: function (callback, deps) {
  37538. currentHookNameInDev = 'useCallback';
  37539. updateHookTypesDev();
  37540. return mountCallback(callback, deps);
  37541. },
  37542. useContext: function (context, observedBits) {
  37543. currentHookNameInDev = 'useContext';
  37544. updateHookTypesDev();
  37545. return readContext(context, observedBits);
  37546. },
  37547. useEffect: function (create, deps) {
  37548. currentHookNameInDev = 'useEffect';
  37549. updateHookTypesDev();
  37550. return mountEffect(create, deps);
  37551. },
  37552. useImperativeHandle: function (ref, create, deps) {
  37553. currentHookNameInDev = 'useImperativeHandle';
  37554. updateHookTypesDev();
  37555. return mountImperativeHandle(ref, create, deps);
  37556. },
  37557. useLayoutEffect: function (create, deps) {
  37558. currentHookNameInDev = 'useLayoutEffect';
  37559. updateHookTypesDev();
  37560. return mountLayoutEffect(create, deps);
  37561. },
  37562. useMemo: function (create, deps) {
  37563. currentHookNameInDev = 'useMemo';
  37564. updateHookTypesDev();
  37565. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37566. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37567. try {
  37568. return mountMemo(create, deps);
  37569. } finally {
  37570. ReactCurrentDispatcher$1.current = prevDispatcher;
  37571. }
  37572. },
  37573. useReducer: function (reducer, initialArg, init) {
  37574. currentHookNameInDev = 'useReducer';
  37575. updateHookTypesDev();
  37576. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37577. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37578. try {
  37579. return mountReducer(reducer, initialArg, init);
  37580. } finally {
  37581. ReactCurrentDispatcher$1.current = prevDispatcher;
  37582. }
  37583. },
  37584. useRef: function (initialValue) {
  37585. currentHookNameInDev = 'useRef';
  37586. updateHookTypesDev();
  37587. return mountRef(initialValue);
  37588. },
  37589. useState: function (initialState) {
  37590. currentHookNameInDev = 'useState';
  37591. updateHookTypesDev();
  37592. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37593. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37594. try {
  37595. return mountState(initialState);
  37596. } finally {
  37597. ReactCurrentDispatcher$1.current = prevDispatcher;
  37598. }
  37599. },
  37600. useDebugValue: function (value, formatterFn) {
  37601. currentHookNameInDev = 'useDebugValue';
  37602. updateHookTypesDev();
  37603. return mountDebugValue(value, formatterFn);
  37604. },
  37605. useResponder: function (responder, props) {
  37606. currentHookNameInDev = 'useResponder';
  37607. updateHookTypesDev();
  37608. return createResponderListener(responder, props);
  37609. }
  37610. };
  37611. HooksDispatcherOnUpdateInDEV = {
  37612. readContext: function (context, observedBits) {
  37613. return readContext(context, observedBits);
  37614. },
  37615. useCallback: function (callback, deps) {
  37616. currentHookNameInDev = 'useCallback';
  37617. updateHookTypesDev();
  37618. return updateCallback(callback, deps);
  37619. },
  37620. useContext: function (context, observedBits) {
  37621. currentHookNameInDev = 'useContext';
  37622. updateHookTypesDev();
  37623. return readContext(context, observedBits);
  37624. },
  37625. useEffect: function (create, deps) {
  37626. currentHookNameInDev = 'useEffect';
  37627. updateHookTypesDev();
  37628. return updateEffect(create, deps);
  37629. },
  37630. useImperativeHandle: function (ref, create, deps) {
  37631. currentHookNameInDev = 'useImperativeHandle';
  37632. updateHookTypesDev();
  37633. return updateImperativeHandle(ref, create, deps);
  37634. },
  37635. useLayoutEffect: function (create, deps) {
  37636. currentHookNameInDev = 'useLayoutEffect';
  37637. updateHookTypesDev();
  37638. return updateLayoutEffect(create, deps);
  37639. },
  37640. useMemo: function (create, deps) {
  37641. currentHookNameInDev = 'useMemo';
  37642. updateHookTypesDev();
  37643. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37644. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37645. try {
  37646. return updateMemo(create, deps);
  37647. } finally {
  37648. ReactCurrentDispatcher$1.current = prevDispatcher;
  37649. }
  37650. },
  37651. useReducer: function (reducer, initialArg, init) {
  37652. currentHookNameInDev = 'useReducer';
  37653. updateHookTypesDev();
  37654. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37655. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37656. try {
  37657. return updateReducer(reducer, initialArg, init);
  37658. } finally {
  37659. ReactCurrentDispatcher$1.current = prevDispatcher;
  37660. }
  37661. },
  37662. useRef: function (initialValue) {
  37663. currentHookNameInDev = 'useRef';
  37664. updateHookTypesDev();
  37665. return updateRef(initialValue);
  37666. },
  37667. useState: function (initialState) {
  37668. currentHookNameInDev = 'useState';
  37669. updateHookTypesDev();
  37670. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37671. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37672. try {
  37673. return updateState(initialState);
  37674. } finally {
  37675. ReactCurrentDispatcher$1.current = prevDispatcher;
  37676. }
  37677. },
  37678. useDebugValue: function (value, formatterFn) {
  37679. currentHookNameInDev = 'useDebugValue';
  37680. updateHookTypesDev();
  37681. return updateDebugValue(value, formatterFn);
  37682. },
  37683. useResponder: function (responder, props) {
  37684. currentHookNameInDev = 'useResponder';
  37685. updateHookTypesDev();
  37686. return createResponderListener(responder, props);
  37687. }
  37688. };
  37689. InvalidNestedHooksDispatcherOnMountInDEV = {
  37690. readContext: function (context, observedBits) {
  37691. warnInvalidContextAccess();
  37692. return readContext(context, observedBits);
  37693. },
  37694. useCallback: function (callback, deps) {
  37695. currentHookNameInDev = 'useCallback';
  37696. warnInvalidHookAccess();
  37697. mountHookTypesDev();
  37698. return mountCallback(callback, deps);
  37699. },
  37700. useContext: function (context, observedBits) {
  37701. currentHookNameInDev = 'useContext';
  37702. warnInvalidHookAccess();
  37703. mountHookTypesDev();
  37704. return readContext(context, observedBits);
  37705. },
  37706. useEffect: function (create, deps) {
  37707. currentHookNameInDev = 'useEffect';
  37708. warnInvalidHookAccess();
  37709. mountHookTypesDev();
  37710. return mountEffect(create, deps);
  37711. },
  37712. useImperativeHandle: function (ref, create, deps) {
  37713. currentHookNameInDev = 'useImperativeHandle';
  37714. warnInvalidHookAccess();
  37715. mountHookTypesDev();
  37716. return mountImperativeHandle(ref, create, deps);
  37717. },
  37718. useLayoutEffect: function (create, deps) {
  37719. currentHookNameInDev = 'useLayoutEffect';
  37720. warnInvalidHookAccess();
  37721. mountHookTypesDev();
  37722. return mountLayoutEffect(create, deps);
  37723. },
  37724. useMemo: function (create, deps) {
  37725. currentHookNameInDev = 'useMemo';
  37726. warnInvalidHookAccess();
  37727. mountHookTypesDev();
  37728. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37729. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37730. try {
  37731. return mountMemo(create, deps);
  37732. } finally {
  37733. ReactCurrentDispatcher$1.current = prevDispatcher;
  37734. }
  37735. },
  37736. useReducer: function (reducer, initialArg, init) {
  37737. currentHookNameInDev = 'useReducer';
  37738. warnInvalidHookAccess();
  37739. mountHookTypesDev();
  37740. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37741. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37742. try {
  37743. return mountReducer(reducer, initialArg, init);
  37744. } finally {
  37745. ReactCurrentDispatcher$1.current = prevDispatcher;
  37746. }
  37747. },
  37748. useRef: function (initialValue) {
  37749. currentHookNameInDev = 'useRef';
  37750. warnInvalidHookAccess();
  37751. mountHookTypesDev();
  37752. return mountRef(initialValue);
  37753. },
  37754. useState: function (initialState) {
  37755. currentHookNameInDev = 'useState';
  37756. warnInvalidHookAccess();
  37757. mountHookTypesDev();
  37758. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37759. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37760. try {
  37761. return mountState(initialState);
  37762. } finally {
  37763. ReactCurrentDispatcher$1.current = prevDispatcher;
  37764. }
  37765. },
  37766. useDebugValue: function (value, formatterFn) {
  37767. currentHookNameInDev = 'useDebugValue';
  37768. warnInvalidHookAccess();
  37769. mountHookTypesDev();
  37770. return mountDebugValue(value, formatterFn);
  37771. },
  37772. useResponder: function (responder, props) {
  37773. currentHookNameInDev = 'useResponder';
  37774. warnInvalidHookAccess();
  37775. mountHookTypesDev();
  37776. return createResponderListener(responder, props);
  37777. }
  37778. };
  37779. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  37780. readContext: function (context, observedBits) {
  37781. warnInvalidContextAccess();
  37782. return readContext(context, observedBits);
  37783. },
  37784. useCallback: function (callback, deps) {
  37785. currentHookNameInDev = 'useCallback';
  37786. warnInvalidHookAccess();
  37787. updateHookTypesDev();
  37788. return updateCallback(callback, deps);
  37789. },
  37790. useContext: function (context, observedBits) {
  37791. currentHookNameInDev = 'useContext';
  37792. warnInvalidHookAccess();
  37793. updateHookTypesDev();
  37794. return readContext(context, observedBits);
  37795. },
  37796. useEffect: function (create, deps) {
  37797. currentHookNameInDev = 'useEffect';
  37798. warnInvalidHookAccess();
  37799. updateHookTypesDev();
  37800. return updateEffect(create, deps);
  37801. },
  37802. useImperativeHandle: function (ref, create, deps) {
  37803. currentHookNameInDev = 'useImperativeHandle';
  37804. warnInvalidHookAccess();
  37805. updateHookTypesDev();
  37806. return updateImperativeHandle(ref, create, deps);
  37807. },
  37808. useLayoutEffect: function (create, deps) {
  37809. currentHookNameInDev = 'useLayoutEffect';
  37810. warnInvalidHookAccess();
  37811. updateHookTypesDev();
  37812. return updateLayoutEffect(create, deps);
  37813. },
  37814. useMemo: function (create, deps) {
  37815. currentHookNameInDev = 'useMemo';
  37816. warnInvalidHookAccess();
  37817. updateHookTypesDev();
  37818. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37819. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37820. try {
  37821. return updateMemo(create, deps);
  37822. } finally {
  37823. ReactCurrentDispatcher$1.current = prevDispatcher;
  37824. }
  37825. },
  37826. useReducer: function (reducer, initialArg, init) {
  37827. currentHookNameInDev = 'useReducer';
  37828. warnInvalidHookAccess();
  37829. updateHookTypesDev();
  37830. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37831. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37832. try {
  37833. return updateReducer(reducer, initialArg, init);
  37834. } finally {
  37835. ReactCurrentDispatcher$1.current = prevDispatcher;
  37836. }
  37837. },
  37838. useRef: function (initialValue) {
  37839. currentHookNameInDev = 'useRef';
  37840. warnInvalidHookAccess();
  37841. updateHookTypesDev();
  37842. return updateRef(initialValue);
  37843. },
  37844. useState: function (initialState) {
  37845. currentHookNameInDev = 'useState';
  37846. warnInvalidHookAccess();
  37847. updateHookTypesDev();
  37848. var prevDispatcher = ReactCurrentDispatcher$1.current;
  37849. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37850. try {
  37851. return updateState(initialState);
  37852. } finally {
  37853. ReactCurrentDispatcher$1.current = prevDispatcher;
  37854. }
  37855. },
  37856. useDebugValue: function (value, formatterFn) {
  37857. currentHookNameInDev = 'useDebugValue';
  37858. warnInvalidHookAccess();
  37859. updateHookTypesDev();
  37860. return updateDebugValue(value, formatterFn);
  37861. },
  37862. useResponder: function (responder, props) {
  37863. currentHookNameInDev = 'useResponder';
  37864. warnInvalidHookAccess();
  37865. updateHookTypesDev();
  37866. return createResponderListener(responder, props);
  37867. }
  37868. };
  37869. }
  37870. // Intentionally not named imports because Rollup would use dynamic dispatch for
  37871. // CommonJS interop named imports.
  37872. var now$1 = Scheduler.unstable_now;
  37873. var commitTime = 0;
  37874. var profilerStartTime = -1;
  37875. function getCommitTime() {
  37876. return commitTime;
  37877. }
  37878. function recordCommitTime() {
  37879. if (!enableProfilerTimer) {
  37880. return;
  37881. }
  37882. commitTime = now$1();
  37883. }
  37884. function startProfilerTimer(fiber) {
  37885. if (!enableProfilerTimer) {
  37886. return;
  37887. }
  37888. profilerStartTime = now$1();
  37889. if (fiber.actualStartTime < 0) {
  37890. fiber.actualStartTime = now$1();
  37891. }
  37892. }
  37893. function stopProfilerTimerIfRunning(fiber) {
  37894. if (!enableProfilerTimer) {
  37895. return;
  37896. }
  37897. profilerStartTime = -1;
  37898. }
  37899. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  37900. if (!enableProfilerTimer) {
  37901. return;
  37902. }
  37903. if (profilerStartTime >= 0) {
  37904. var elapsedTime = now$1() - profilerStartTime;
  37905. fiber.actualDuration += elapsedTime;
  37906. if (overrideBaseTime) {
  37907. fiber.selfBaseDuration = elapsedTime;
  37908. }
  37909. profilerStartTime = -1;
  37910. }
  37911. }
  37912. // The deepest Fiber on the stack involved in a hydration context.
  37913. // This may have been an insertion or a hydration.
  37914. var hydrationParentFiber = null;
  37915. var nextHydratableInstance = null;
  37916. var isHydrating = false;
  37917. function enterHydrationState(fiber) {
  37918. if (!supportsHydration) {
  37919. return false;
  37920. }
  37921. var parentInstance = fiber.stateNode.containerInfo;
  37922. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  37923. hydrationParentFiber = fiber;
  37924. isHydrating = true;
  37925. return true;
  37926. }
  37927. function reenterHydrationStateFromDehydratedSuspenseInstance(fiber) {
  37928. if (!supportsHydration) {
  37929. return false;
  37930. }
  37931. var suspenseInstance = fiber.stateNode;
  37932. nextHydratableInstance = getNextHydratableSibling(suspenseInstance);
  37933. popToNextHostParent(fiber);
  37934. isHydrating = true;
  37935. return true;
  37936. }
  37937. function deleteHydratableInstance(returnFiber, instance) {
  37938. {
  37939. switch (returnFiber.tag) {
  37940. case HostRoot:
  37941. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  37942. break;
  37943. case HostComponent:
  37944. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  37945. break;
  37946. }
  37947. }
  37948. var childToDelete = createFiberFromHostInstanceForDeletion();
  37949. childToDelete.stateNode = instance;
  37950. childToDelete.return = returnFiber;
  37951. childToDelete.effectTag = Deletion;
  37952. // This might seem like it belongs on progressedFirstDeletion. However,
  37953. // these children are not part of the reconciliation list of children.
  37954. // Even if we abort and rereconcile the children, that will try to hydrate
  37955. // again and the nodes are still in the host tree so these will be
  37956. // recreated.
  37957. if (returnFiber.lastEffect !== null) {
  37958. returnFiber.lastEffect.nextEffect = childToDelete;
  37959. returnFiber.lastEffect = childToDelete;
  37960. } else {
  37961. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  37962. }
  37963. }
  37964. function insertNonHydratedInstance(returnFiber, fiber) {
  37965. fiber.effectTag |= Placement;
  37966. {
  37967. switch (returnFiber.tag) {
  37968. case HostRoot:
  37969. {
  37970. var parentContainer = returnFiber.stateNode.containerInfo;
  37971. switch (fiber.tag) {
  37972. case HostComponent:
  37973. var type = fiber.type;
  37974. var props = fiber.pendingProps;
  37975. didNotFindHydratableContainerInstance(parentContainer, type, props);
  37976. break;
  37977. case HostText:
  37978. var text = fiber.pendingProps;
  37979. didNotFindHydratableContainerTextInstance(parentContainer, text);
  37980. break;
  37981. case SuspenseComponent:
  37982. break;
  37983. }
  37984. break;
  37985. }
  37986. case HostComponent:
  37987. {
  37988. var parentType = returnFiber.type;
  37989. var parentProps = returnFiber.memoizedProps;
  37990. var parentInstance = returnFiber.stateNode;
  37991. switch (fiber.tag) {
  37992. case HostComponent:
  37993. var _type = fiber.type;
  37994. var _props = fiber.pendingProps;
  37995. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  37996. break;
  37997. case HostText:
  37998. var _text = fiber.pendingProps;
  37999. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  38000. break;
  38001. case SuspenseComponent:
  38002. didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance);
  38003. break;
  38004. }
  38005. break;
  38006. }
  38007. default:
  38008. return;
  38009. }
  38010. }
  38011. }
  38012. function tryHydrate(fiber, nextInstance) {
  38013. switch (fiber.tag) {
  38014. case HostComponent:
  38015. {
  38016. var type = fiber.type;
  38017. var props = fiber.pendingProps;
  38018. var instance = canHydrateInstance(nextInstance, type, props);
  38019. if (instance !== null) {
  38020. fiber.stateNode = instance;
  38021. return true;
  38022. }
  38023. return false;
  38024. }
  38025. case HostText:
  38026. {
  38027. var text = fiber.pendingProps;
  38028. var textInstance = canHydrateTextInstance(nextInstance, text);
  38029. if (textInstance !== null) {
  38030. fiber.stateNode = textInstance;
  38031. return true;
  38032. }
  38033. return false;
  38034. }
  38035. case SuspenseComponent:
  38036. {
  38037. if (enableSuspenseServerRenderer) {
  38038. var suspenseInstance = canHydrateSuspenseInstance(nextInstance);
  38039. if (suspenseInstance !== null) {
  38040. // Downgrade the tag to a dehydrated component until we've hydrated it.
  38041. fiber.tag = DehydratedSuspenseComponent;
  38042. fiber.stateNode = suspenseInstance;
  38043. return true;
  38044. }
  38045. }
  38046. return false;
  38047. }
  38048. default:
  38049. return false;
  38050. }
  38051. }
  38052. function tryToClaimNextHydratableInstance(fiber) {
  38053. if (!isHydrating) {
  38054. return;
  38055. }
  38056. var nextInstance = nextHydratableInstance;
  38057. if (!nextInstance) {
  38058. // Nothing to hydrate. Make it an insertion.
  38059. insertNonHydratedInstance(hydrationParentFiber, fiber);
  38060. isHydrating = false;
  38061. hydrationParentFiber = fiber;
  38062. return;
  38063. }
  38064. var firstAttemptedInstance = nextInstance;
  38065. if (!tryHydrate(fiber, nextInstance)) {
  38066. // If we can't hydrate this instance let's try the next one.
  38067. // We use this as a heuristic. It's based on intuition and not data so it
  38068. // might be flawed or unnecessary.
  38069. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  38070. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  38071. // Nothing to hydrate. Make it an insertion.
  38072. insertNonHydratedInstance(hydrationParentFiber, fiber);
  38073. isHydrating = false;
  38074. hydrationParentFiber = fiber;
  38075. return;
  38076. }
  38077. // We matched the next one, we'll now assume that the first one was
  38078. // superfluous and we'll delete it. Since we can't eagerly delete it
  38079. // we'll have to schedule a deletion. To do that, this node needs a dummy
  38080. // fiber associated with it.
  38081. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  38082. }
  38083. hydrationParentFiber = fiber;
  38084. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  38085. }
  38086. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  38087. if (!supportsHydration) {
  38088. (function () {
  38089. {
  38090. {
  38091. throw ReactError(Error('Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  38092. }
  38093. }
  38094. })();
  38095. }
  38096. var instance = fiber.stateNode;
  38097. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  38098. // TODO: Type this specific to this type of component.
  38099. fiber.updateQueue = updatePayload;
  38100. // If the update payload indicates that there is a change or if there
  38101. // is a new ref we mark this as an update.
  38102. if (updatePayload !== null) {
  38103. return true;
  38104. }
  38105. return false;
  38106. }
  38107. function prepareToHydrateHostTextInstance(fiber) {
  38108. if (!supportsHydration) {
  38109. (function () {
  38110. {
  38111. {
  38112. throw ReactError(Error('Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  38113. }
  38114. }
  38115. })();
  38116. }
  38117. var textInstance = fiber.stateNode;
  38118. var textContent = fiber.memoizedProps;
  38119. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  38120. {
  38121. if (shouldUpdate) {
  38122. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  38123. // hydration parent is the parent host component of this host text.
  38124. var returnFiber = hydrationParentFiber;
  38125. if (returnFiber !== null) {
  38126. switch (returnFiber.tag) {
  38127. case HostRoot:
  38128. {
  38129. var parentContainer = returnFiber.stateNode.containerInfo;
  38130. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  38131. break;
  38132. }
  38133. case HostComponent:
  38134. {
  38135. var parentType = returnFiber.type;
  38136. var parentProps = returnFiber.memoizedProps;
  38137. var parentInstance = returnFiber.stateNode;
  38138. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  38139. break;
  38140. }
  38141. }
  38142. }
  38143. }
  38144. }
  38145. return shouldUpdate;
  38146. }
  38147. function skipPastDehydratedSuspenseInstance(fiber) {
  38148. if (!supportsHydration) {
  38149. (function () {
  38150. {
  38151. {
  38152. throw ReactError(Error('Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  38153. }
  38154. }
  38155. })();
  38156. }
  38157. var suspenseInstance = fiber.stateNode;
  38158. (function () {
  38159. if (!suspenseInstance) {
  38160. {
  38161. throw ReactError(Error('Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.'));
  38162. }
  38163. }
  38164. })();
  38165. nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  38166. }
  38167. function popToNextHostParent(fiber) {
  38168. var parent = fiber.return;
  38169. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== DehydratedSuspenseComponent) {
  38170. parent = parent.return;
  38171. }
  38172. hydrationParentFiber = parent;
  38173. }
  38174. function popHydrationState(fiber) {
  38175. if (!supportsHydration) {
  38176. return false;
  38177. }
  38178. if (fiber !== hydrationParentFiber) {
  38179. // We're deeper than the current hydration context, inside an inserted
  38180. // tree.
  38181. return false;
  38182. }
  38183. if (!isHydrating) {
  38184. // If we're not currently hydrating but we're in a hydration context, then
  38185. // we were an insertion and now need to pop up reenter hydration of our
  38186. // siblings.
  38187. popToNextHostParent(fiber);
  38188. isHydrating = true;
  38189. return false;
  38190. }
  38191. var type = fiber.type;
  38192. // If we have any remaining hydratable nodes, we need to delete them now.
  38193. // We only do this deeper than head and body since they tend to have random
  38194. // other nodes in them. We also ignore components with pure text content in
  38195. // side of them.
  38196. // TODO: Better heuristic.
  38197. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  38198. var nextInstance = nextHydratableInstance;
  38199. while (nextInstance) {
  38200. deleteHydratableInstance(fiber, nextInstance);
  38201. nextInstance = getNextHydratableSibling(nextInstance);
  38202. }
  38203. }
  38204. popToNextHostParent(fiber);
  38205. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  38206. return true;
  38207. }
  38208. function resetHydrationState() {
  38209. if (!supportsHydration) {
  38210. return;
  38211. }
  38212. hydrationParentFiber = null;
  38213. nextHydratableInstance = null;
  38214. isHydrating = false;
  38215. }
  38216. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  38217. var didReceiveUpdate = false;
  38218. var didWarnAboutBadClass = void 0;
  38219. var didWarnAboutModulePatternComponent = void 0;
  38220. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  38221. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  38222. var didWarnAboutFunctionRefs = void 0;
  38223. var didWarnAboutReassigningProps = void 0;
  38224. var didWarnAboutMaxDuration = void 0;
  38225. var didWarnAboutRevealOrder = void 0;
  38226. var didWarnAboutTailOptions = void 0;
  38227. var didWarnAboutDefaultPropsOnFunctionComponent = void 0;
  38228. {
  38229. didWarnAboutBadClass = {};
  38230. didWarnAboutModulePatternComponent = {};
  38231. didWarnAboutContextTypeOnFunctionComponent = {};
  38232. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  38233. didWarnAboutFunctionRefs = {};
  38234. didWarnAboutReassigningProps = false;
  38235. didWarnAboutMaxDuration = false;
  38236. didWarnAboutRevealOrder = {};
  38237. didWarnAboutTailOptions = {};
  38238. didWarnAboutDefaultPropsOnFunctionComponent = {};
  38239. }
  38240. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  38241. if (current$$1 === null) {
  38242. // If this is a fresh new component that hasn't been rendered yet, we
  38243. // won't update its child set by applying minimal side-effects. Instead,
  38244. // we will add them all to the child before it gets rendered. That means
  38245. // we can optimize this reconciliation pass by not tracking side-effects.
  38246. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  38247. } else {
  38248. // If the current child is the same as the work in progress, it means that
  38249. // we haven't yet started any work on these children. Therefore, we use
  38250. // the clone algorithm to create a copy of all the current children.
  38251. // If we had any progressed work already, that is invalid at this point so
  38252. // let's throw it out.
  38253. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  38254. }
  38255. }
  38256. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  38257. // This function is fork of reconcileChildren. It's used in cases where we
  38258. // want to reconcile without matching against the existing set. This has the
  38259. // effect of all current children being unmounted; even if the type and key
  38260. // are the same, the old child is unmounted and a new child is created.
  38261. //
  38262. // To do this, we're going to go through the reconcile algorithm twice. In
  38263. // the first pass, we schedule a deletion for all the current children by
  38264. // passing null.
  38265. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  38266. // In the second pass, we mount the new children. The trick here is that we
  38267. // pass null in place of where we usually pass the current child set. This has
  38268. // the effect of remounting all children regardless of whether their their
  38269. // identity matches.
  38270. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  38271. }
  38272. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  38273. // TODO: current can be non-null here even if the component
  38274. // hasn't yet mounted. This happens after the first render suspends.
  38275. // We'll need to figure out if this is fine or can cause issues.
  38276. {
  38277. if (workInProgress.type !== workInProgress.elementType) {
  38278. // Lazy component props can't be validated in createElement
  38279. // because they're only guaranteed to be resolved here.
  38280. var innerPropTypes = Component.propTypes;
  38281. if (innerPropTypes) {
  38282. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  38283. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  38284. }
  38285. }
  38286. }
  38287. var render = Component.render;
  38288. var ref = workInProgress.ref;
  38289. // The rest is a fork of updateFunctionComponent
  38290. var nextChildren = void 0;
  38291. prepareToReadContext(workInProgress, renderExpirationTime);
  38292. {
  38293. ReactCurrentOwner$3.current = workInProgress;
  38294. setCurrentPhase('render');
  38295. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  38296. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  38297. // Only double-render components with Hooks
  38298. if (workInProgress.memoizedState !== null) {
  38299. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  38300. }
  38301. }
  38302. setCurrentPhase(null);
  38303. }
  38304. if (current$$1 !== null && !didReceiveUpdate) {
  38305. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  38306. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  38307. }
  38308. // React DevTools reads this flag.
  38309. workInProgress.effectTag |= PerformedWork;
  38310. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38311. return workInProgress.child;
  38312. }
  38313. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  38314. if (current$$1 === null) {
  38315. var type = Component.type;
  38316. if (isSimpleFunctionComponent(type) && Component.compare === null &&
  38317. // SimpleMemoComponent codepath doesn't resolve outer props either.
  38318. Component.defaultProps === undefined) {
  38319. var resolvedType = type;
  38320. {
  38321. resolvedType = resolveFunctionForHotReloading(type);
  38322. }
  38323. // If this is a plain function component without default props,
  38324. // and with only the default shallow comparison, we upgrade it
  38325. // to a SimpleMemoComponent to allow fast path updates.
  38326. workInProgress.tag = SimpleMemoComponent;
  38327. workInProgress.type = resolvedType;
  38328. {
  38329. validateFunctionComponentInDev(workInProgress, type);
  38330. }
  38331. return updateSimpleMemoComponent(current$$1, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  38332. }
  38333. {
  38334. var innerPropTypes = type.propTypes;
  38335. if (innerPropTypes) {
  38336. // Inner memo component props aren't currently validated in createElement.
  38337. // We could move it there, but we'd still need this for lazy code path.
  38338. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  38339. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  38340. }
  38341. }
  38342. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  38343. child.ref = workInProgress.ref;
  38344. child.return = workInProgress;
  38345. workInProgress.child = child;
  38346. return child;
  38347. }
  38348. {
  38349. var _type = Component.type;
  38350. var _innerPropTypes = _type.propTypes;
  38351. if (_innerPropTypes) {
  38352. // Inner memo component props aren't currently validated in createElement.
  38353. // We could move it there, but we'd still need this for lazy code path.
  38354. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  38355. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  38356. }
  38357. }
  38358. var currentChild = current$$1.child; // This is always exactly one child
  38359. if (updateExpirationTime < renderExpirationTime) {
  38360. // This will be the props with resolved defaultProps,
  38361. // unlike current.memoizedProps which will be the unresolved ones.
  38362. var prevProps = currentChild.memoizedProps;
  38363. // Default to shallow comparison
  38364. var compare = Component.compare;
  38365. compare = compare !== null ? compare : shallowEqual;
  38366. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  38367. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  38368. }
  38369. }
  38370. // React DevTools reads this flag.
  38371. workInProgress.effectTag |= PerformedWork;
  38372. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  38373. newChild.ref = workInProgress.ref;
  38374. newChild.return = workInProgress;
  38375. workInProgress.child = newChild;
  38376. return newChild;
  38377. }
  38378. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  38379. // TODO: current can be non-null here even if the component
  38380. // hasn't yet mounted. This happens when the inner render suspends.
  38381. // We'll need to figure out if this is fine or can cause issues.
  38382. {
  38383. if (workInProgress.type !== workInProgress.elementType) {
  38384. // Lazy component props can't be validated in createElement
  38385. // because they're only guaranteed to be resolved here.
  38386. var outerMemoType = workInProgress.elementType;
  38387. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  38388. // We warn when you define propTypes on lazy()
  38389. // so let's just skip over it to find memo() outer wrapper.
  38390. // Inner props for memo are validated later.
  38391. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  38392. }
  38393. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  38394. if (outerPropTypes) {
  38395. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  38396. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  38397. }
  38398. // Inner propTypes will be validated in the function component path.
  38399. }
  38400. }
  38401. if (current$$1 !== null) {
  38402. var prevProps = current$$1.memoizedProps;
  38403. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref && (
  38404. // Prevent bailout if the implementation changed due to hot reload:
  38405. workInProgress.type === current$$1.type)) {
  38406. didReceiveUpdate = false;
  38407. if (updateExpirationTime < renderExpirationTime) {
  38408. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  38409. }
  38410. }
  38411. }
  38412. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  38413. }
  38414. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  38415. var nextChildren = workInProgress.pendingProps;
  38416. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38417. return workInProgress.child;
  38418. }
  38419. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  38420. var nextChildren = workInProgress.pendingProps.children;
  38421. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38422. return workInProgress.child;
  38423. }
  38424. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  38425. if (enableProfilerTimer) {
  38426. workInProgress.effectTag |= Update;
  38427. }
  38428. var nextProps = workInProgress.pendingProps;
  38429. var nextChildren = nextProps.children;
  38430. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38431. return workInProgress.child;
  38432. }
  38433. function markRef(current$$1, workInProgress) {
  38434. var ref = workInProgress.ref;
  38435. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  38436. // Schedule a Ref effect
  38437. workInProgress.effectTag |= Ref;
  38438. }
  38439. }
  38440. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  38441. {
  38442. if (workInProgress.type !== workInProgress.elementType) {
  38443. // Lazy component props can't be validated in createElement
  38444. // because they're only guaranteed to be resolved here.
  38445. var innerPropTypes = Component.propTypes;
  38446. if (innerPropTypes) {
  38447. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  38448. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  38449. }
  38450. }
  38451. }
  38452. var context = void 0;
  38453. if (!disableLegacyContext) {
  38454. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  38455. context = getMaskedContext(workInProgress, unmaskedContext);
  38456. }
  38457. var nextChildren = void 0;
  38458. prepareToReadContext(workInProgress, renderExpirationTime);
  38459. {
  38460. ReactCurrentOwner$3.current = workInProgress;
  38461. setCurrentPhase('render');
  38462. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  38463. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  38464. // Only double-render components with Hooks
  38465. if (workInProgress.memoizedState !== null) {
  38466. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  38467. }
  38468. }
  38469. setCurrentPhase(null);
  38470. }
  38471. if (current$$1 !== null && !didReceiveUpdate) {
  38472. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  38473. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  38474. }
  38475. // React DevTools reads this flag.
  38476. workInProgress.effectTag |= PerformedWork;
  38477. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38478. return workInProgress.child;
  38479. }
  38480. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  38481. {
  38482. if (workInProgress.type !== workInProgress.elementType) {
  38483. // Lazy component props can't be validated in createElement
  38484. // because they're only guaranteed to be resolved here.
  38485. var innerPropTypes = Component.propTypes;
  38486. if (innerPropTypes) {
  38487. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  38488. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  38489. }
  38490. }
  38491. }
  38492. // Push context providers early to prevent context stack mismatches.
  38493. // During mounting we don't know the child context yet as the instance doesn't exist.
  38494. // We will invalidate the child context in finishClassComponent() right after rendering.
  38495. var hasContext = void 0;
  38496. if (isContextProvider(Component)) {
  38497. hasContext = true;
  38498. pushContextProvider(workInProgress);
  38499. } else {
  38500. hasContext = false;
  38501. }
  38502. prepareToReadContext(workInProgress, renderExpirationTime);
  38503. var instance = workInProgress.stateNode;
  38504. var shouldUpdate = void 0;
  38505. if (instance === null) {
  38506. if (current$$1 !== null) {
  38507. // An class component without an instance only mounts if it suspended
  38508. // inside a non- concurrent tree, in an inconsistent state. We want to
  38509. // tree it like a new mount, even though an empty version of it already
  38510. // committed. Disconnect the alternate pointers.
  38511. current$$1.alternate = null;
  38512. workInProgress.alternate = null;
  38513. // Since this is conceptually a new fiber, schedule a Placement effect
  38514. workInProgress.effectTag |= Placement;
  38515. }
  38516. // In the initial pass we might need to construct the instance.
  38517. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  38518. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  38519. shouldUpdate = true;
  38520. } else if (current$$1 === null) {
  38521. // In a resume, we'll already have an instance we can reuse.
  38522. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  38523. } else {
  38524. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  38525. }
  38526. var nextUnitOfWork = finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  38527. {
  38528. var inst = workInProgress.stateNode;
  38529. if (inst.props !== nextProps) {
  38530. !didWarnAboutReassigningProps ? warning$1(false, 'It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component') : void 0;
  38531. didWarnAboutReassigningProps = true;
  38532. }
  38533. }
  38534. return nextUnitOfWork;
  38535. }
  38536. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  38537. // Refs should update even if shouldComponentUpdate returns false
  38538. markRef(current$$1, workInProgress);
  38539. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  38540. if (!shouldUpdate && !didCaptureError) {
  38541. // Context providers should defer to sCU for rendering
  38542. if (hasContext) {
  38543. invalidateContextProvider(workInProgress, Component, false);
  38544. }
  38545. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  38546. }
  38547. var instance = workInProgress.stateNode;
  38548. // Rerender
  38549. ReactCurrentOwner$3.current = workInProgress;
  38550. var nextChildren = void 0;
  38551. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  38552. // If we captured an error, but getDerivedStateFrom catch is not defined,
  38553. // unmount all the children. componentDidCatch will schedule an update to
  38554. // re-render a fallback. This is temporary until we migrate everyone to
  38555. // the new API.
  38556. // TODO: Warn in a future release.
  38557. nextChildren = null;
  38558. if (enableProfilerTimer) {
  38559. stopProfilerTimerIfRunning(workInProgress);
  38560. }
  38561. } else {
  38562. {
  38563. setCurrentPhase('render');
  38564. nextChildren = instance.render();
  38565. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  38566. instance.render();
  38567. }
  38568. setCurrentPhase(null);
  38569. }
  38570. }
  38571. // React DevTools reads this flag.
  38572. workInProgress.effectTag |= PerformedWork;
  38573. if (current$$1 !== null && didCaptureError) {
  38574. // If we're recovering from an error, reconcile without reusing any of
  38575. // the existing children. Conceptually, the normal children and the children
  38576. // that are shown on error are two different sets, so we shouldn't reuse
  38577. // normal children even if their identities match.
  38578. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38579. } else {
  38580. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38581. }
  38582. // Memoize state using the values we just used to render.
  38583. // TODO: Restructure so we never read values from the instance.
  38584. workInProgress.memoizedState = instance.state;
  38585. // The context might have changed so we need to recalculate it.
  38586. if (hasContext) {
  38587. invalidateContextProvider(workInProgress, Component, true);
  38588. }
  38589. return workInProgress.child;
  38590. }
  38591. function pushHostRootContext(workInProgress) {
  38592. var root = workInProgress.stateNode;
  38593. if (root.pendingContext) {
  38594. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  38595. } else if (root.context) {
  38596. // Should always be set
  38597. pushTopLevelContextObject(workInProgress, root.context, false);
  38598. }
  38599. pushHostContainer(workInProgress, root.containerInfo);
  38600. }
  38601. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  38602. pushHostRootContext(workInProgress);
  38603. var updateQueue = workInProgress.updateQueue;
  38604. (function () {
  38605. if (!(updateQueue !== null)) {
  38606. {
  38607. throw ReactError(Error('If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.'));
  38608. }
  38609. }
  38610. })();
  38611. var nextProps = workInProgress.pendingProps;
  38612. var prevState = workInProgress.memoizedState;
  38613. var prevChildren = prevState !== null ? prevState.element : null;
  38614. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  38615. var nextState = workInProgress.memoizedState;
  38616. // Caution: React DevTools currently depends on this property
  38617. // being called "element".
  38618. var nextChildren = nextState.element;
  38619. if (nextChildren === prevChildren) {
  38620. // If the state is the same as before, that's a bailout because we had
  38621. // no work that expires at this time.
  38622. resetHydrationState();
  38623. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  38624. }
  38625. var root = workInProgress.stateNode;
  38626. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  38627. // If we don't have any current children this might be the first pass.
  38628. // We always try to hydrate. If this isn't a hydration pass there won't
  38629. // be any children to hydrate which is effectively the same thing as
  38630. // not hydrating.
  38631. // This is a bit of a hack. We track the host root as a placement to
  38632. // know that we're currently in a mounting state. That way isMounted
  38633. // works as expected. We must reset this before committing.
  38634. // TODO: Delete this when we delete isMounted and findDOMNode.
  38635. workInProgress.effectTag |= Placement;
  38636. // Ensure that children mount into this root without tracking
  38637. // side-effects. This ensures that we don't store Placement effects on
  38638. // nodes that will be hydrated.
  38639. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  38640. } else {
  38641. // Otherwise reset hydration state in case we aborted and resumed another
  38642. // root.
  38643. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38644. resetHydrationState();
  38645. }
  38646. return workInProgress.child;
  38647. }
  38648. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  38649. pushHostContext(workInProgress);
  38650. if (current$$1 === null) {
  38651. tryToClaimNextHydratableInstance(workInProgress);
  38652. }
  38653. var type = workInProgress.type;
  38654. var nextProps = workInProgress.pendingProps;
  38655. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  38656. var nextChildren = nextProps.children;
  38657. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  38658. if (isDirectTextChild) {
  38659. // We special case a direct text child of a host node. This is a common
  38660. // case. We won't handle it as a reified child. We will instead handle
  38661. // this in the host environment that also have access to this prop. That
  38662. // avoids allocating another HostText fiber and traversing it.
  38663. nextChildren = null;
  38664. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  38665. // If we're switching from a direct text child to a normal child, or to
  38666. // empty, we need to schedule the text content to be reset.
  38667. workInProgress.effectTag |= ContentReset;
  38668. }
  38669. markRef(current$$1, workInProgress);
  38670. // Check the host config to see if the children are offscreen/hidden.
  38671. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  38672. if (enableSchedulerTracing) {
  38673. markSpawnedWork(Never);
  38674. }
  38675. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  38676. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  38677. return null;
  38678. }
  38679. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  38680. return workInProgress.child;
  38681. }
  38682. function updateHostText(current$$1, workInProgress) {
  38683. if (current$$1 === null) {
  38684. tryToClaimNextHydratableInstance(workInProgress);
  38685. }
  38686. // Nothing to do here. This is terminal. We'll do the completion step
  38687. // immediately after.
  38688. return null;
  38689. }
  38690. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  38691. if (_current !== null) {
  38692. // An lazy component only mounts if it suspended inside a non-
  38693. // concurrent tree, in an inconsistent state. We want to treat it like
  38694. // a new mount, even though an empty version of it already committed.
  38695. // Disconnect the alternate pointers.
  38696. _current.alternate = null;
  38697. workInProgress.alternate = null;
  38698. // Since this is conceptually a new fiber, schedule a Placement effect
  38699. workInProgress.effectTag |= Placement;
  38700. }
  38701. var props = workInProgress.pendingProps;
  38702. // We can't start a User Timing measurement with correct label yet.
  38703. // Cancel and resume right after we know the tag.
  38704. cancelWorkTimer(workInProgress);
  38705. var Component = readLazyComponentType(elementType);
  38706. // Store the unwrapped component in the type.
  38707. workInProgress.type = Component;
  38708. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  38709. startWorkTimer(workInProgress);
  38710. var resolvedProps = resolveDefaultProps(Component, props);
  38711. var child = void 0;
  38712. switch (resolvedTag) {
  38713. case FunctionComponent:
  38714. {
  38715. {
  38716. validateFunctionComponentInDev(workInProgress, Component);
  38717. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  38718. }
  38719. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  38720. break;
  38721. }
  38722. case ClassComponent:
  38723. {
  38724. {
  38725. workInProgress.type = Component = resolveClassForHotReloading(Component);
  38726. }
  38727. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  38728. break;
  38729. }
  38730. case ForwardRef:
  38731. {
  38732. {
  38733. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  38734. }
  38735. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  38736. break;
  38737. }
  38738. case MemoComponent:
  38739. {
  38740. {
  38741. if (workInProgress.type !== workInProgress.elementType) {
  38742. var outerPropTypes = Component.propTypes;
  38743. if (outerPropTypes) {
  38744. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  38745. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  38746. }
  38747. }
  38748. }
  38749. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  38750. updateExpirationTime, renderExpirationTime);
  38751. break;
  38752. }
  38753. default:
  38754. {
  38755. var hint = '';
  38756. {
  38757. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  38758. hint = ' Did you wrap a component in React.lazy() more than once?';
  38759. }
  38760. }
  38761. // This message intentionally doesn't mention ForwardRef or MemoComponent
  38762. // because the fact that it's a separate type of work is an
  38763. // implementation detail.
  38764. (function () {
  38765. {
  38766. {
  38767. throw ReactError(Error('Element type is invalid. Received a promise that resolves to: ' + Component + '. Lazy element type must resolve to a class or function.' + hint));
  38768. }
  38769. }
  38770. })();
  38771. }
  38772. }
  38773. return child;
  38774. }
  38775. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  38776. if (_current !== null) {
  38777. // An incomplete component only mounts if it suspended inside a non-
  38778. // concurrent tree, in an inconsistent state. We want to treat it like
  38779. // a new mount, even though an empty version of it already committed.
  38780. // Disconnect the alternate pointers.
  38781. _current.alternate = null;
  38782. workInProgress.alternate = null;
  38783. // Since this is conceptually a new fiber, schedule a Placement effect
  38784. workInProgress.effectTag |= Placement;
  38785. }
  38786. // Promote the fiber to a class and try rendering again.
  38787. workInProgress.tag = ClassComponent;
  38788. // The rest of this function is a fork of `updateClassComponent`
  38789. // Push context providers early to prevent context stack mismatches.
  38790. // During mounting we don't know the child context yet as the instance doesn't exist.
  38791. // We will invalidate the child context in finishClassComponent() right after rendering.
  38792. var hasContext = void 0;
  38793. if (isContextProvider(Component)) {
  38794. hasContext = true;
  38795. pushContextProvider(workInProgress);
  38796. } else {
  38797. hasContext = false;
  38798. }
  38799. prepareToReadContext(workInProgress, renderExpirationTime);
  38800. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  38801. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  38802. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  38803. }
  38804. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  38805. if (_current !== null) {
  38806. // An indeterminate component only mounts if it suspended inside a non-
  38807. // concurrent tree, in an inconsistent state. We want to treat it like
  38808. // a new mount, even though an empty version of it already committed.
  38809. // Disconnect the alternate pointers.
  38810. _current.alternate = null;
  38811. workInProgress.alternate = null;
  38812. // Since this is conceptually a new fiber, schedule a Placement effect
  38813. workInProgress.effectTag |= Placement;
  38814. }
  38815. var props = workInProgress.pendingProps;
  38816. var context = void 0;
  38817. if (!disableLegacyContext) {
  38818. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  38819. context = getMaskedContext(workInProgress, unmaskedContext);
  38820. }
  38821. prepareToReadContext(workInProgress, renderExpirationTime);
  38822. var value = void 0;
  38823. {
  38824. if (Component.prototype && typeof Component.prototype.render === 'function') {
  38825. var componentName = getComponentName(Component) || 'Unknown';
  38826. if (!didWarnAboutBadClass[componentName]) {
  38827. warningWithoutStack$1(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
  38828. didWarnAboutBadClass[componentName] = true;
  38829. }
  38830. }
  38831. if (workInProgress.mode & StrictMode) {
  38832. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  38833. }
  38834. ReactCurrentOwner$3.current = workInProgress;
  38835. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  38836. }
  38837. // React DevTools reads this flag.
  38838. workInProgress.effectTag |= PerformedWork;
  38839. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  38840. {
  38841. var _componentName = getComponentName(Component) || 'Unknown';
  38842. if (!didWarnAboutModulePatternComponent[_componentName]) {
  38843. warningWithoutStack$1(false, 'The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
  38844. didWarnAboutModulePatternComponent[_componentName] = true;
  38845. }
  38846. }
  38847. // Proceed under the assumption that this is a class instance
  38848. workInProgress.tag = ClassComponent;
  38849. // Throw out any hooks that were used.
  38850. resetHooks();
  38851. // Push context providers early to prevent context stack mismatches.
  38852. // During mounting we don't know the child context yet as the instance doesn't exist.
  38853. // We will invalidate the child context in finishClassComponent() right after rendering.
  38854. var hasContext = false;
  38855. if (isContextProvider(Component)) {
  38856. hasContext = true;
  38857. pushContextProvider(workInProgress);
  38858. } else {
  38859. hasContext = false;
  38860. }
  38861. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  38862. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  38863. if (typeof getDerivedStateFromProps === 'function') {
  38864. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  38865. }
  38866. adoptClassInstance(workInProgress, value);
  38867. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  38868. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  38869. } else {
  38870. // Proceed under the assumption that this is a function component
  38871. workInProgress.tag = FunctionComponent;
  38872. {
  38873. if (disableLegacyContext && Component.contextTypes) {
  38874. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with React.useContext() instead.', getComponentName(Component) || 'Unknown');
  38875. }
  38876. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  38877. // Only double-render components with Hooks
  38878. if (workInProgress.memoizedState !== null) {
  38879. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  38880. }
  38881. }
  38882. }
  38883. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  38884. {
  38885. validateFunctionComponentInDev(workInProgress, Component);
  38886. }
  38887. return workInProgress.child;
  38888. }
  38889. }
  38890. function validateFunctionComponentInDev(workInProgress, Component) {
  38891. if (Component) {
  38892. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  38893. }
  38894. if (workInProgress.ref !== null) {
  38895. var info = '';
  38896. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  38897. if (ownerName) {
  38898. info += '\n\nCheck the render method of `' + ownerName + '`.';
  38899. }
  38900. var warningKey = ownerName || workInProgress._debugID || '';
  38901. var debugSource = workInProgress._debugSource;
  38902. if (debugSource) {
  38903. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  38904. }
  38905. if (!didWarnAboutFunctionRefs[warningKey]) {
  38906. didWarnAboutFunctionRefs[warningKey] = true;
  38907. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
  38908. }
  38909. }
  38910. if (warnAboutDefaultPropsOnFunctionComponents && Component.defaultProps !== undefined) {
  38911. var componentName = getComponentName(Component) || 'Unknown';
  38912. if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {
  38913. warningWithoutStack$1(false, '%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);
  38914. didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;
  38915. }
  38916. }
  38917. if (typeof Component.getDerivedStateFromProps === 'function') {
  38918. var _componentName2 = getComponentName(Component) || 'Unknown';
  38919. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  38920. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  38921. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  38922. }
  38923. }
  38924. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  38925. var _componentName3 = getComponentName(Component) || 'Unknown';
  38926. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  38927. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName3);
  38928. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  38929. }
  38930. }
  38931. }
  38932. // TODO: This is now an empty object. Should we just make it a boolean?
  38933. var SUSPENDED_MARKER = {};
  38934. function shouldRemainOnFallback(suspenseContext, current$$1, workInProgress) {
  38935. // If the context is telling us that we should show a fallback, and we're not
  38936. // already showing content, then we should show the fallback instead.
  38937. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current$$1 === null || current$$1.memoizedState !== null);
  38938. }
  38939. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  38940. var mode = workInProgress.mode;
  38941. var nextProps = workInProgress.pendingProps;
  38942. // This is used by DevTools to force a boundary to suspend.
  38943. {
  38944. if (shouldSuspend(workInProgress)) {
  38945. workInProgress.effectTag |= DidCapture;
  38946. }
  38947. }
  38948. var suspenseContext = suspenseStackCursor.current;
  38949. var nextState = null;
  38950. var nextDidTimeout = false;
  38951. if ((workInProgress.effectTag & DidCapture) !== NoEffect || shouldRemainOnFallback(suspenseContext, current$$1, workInProgress)) {
  38952. // Something in this boundary's subtree already suspended. Switch to
  38953. // rendering the fallback children.
  38954. nextState = SUSPENDED_MARKER;
  38955. nextDidTimeout = true;
  38956. workInProgress.effectTag &= ~DidCapture;
  38957. } else {
  38958. // Attempting the main content
  38959. if (current$$1 === null || current$$1.memoizedState !== null) {
  38960. // This is a new mount or this boundary is already showing a fallback state.
  38961. // Mark this subtree context as having at least one invisible parent that could
  38962. // handle the fallback state.
  38963. // Boundaries without fallbacks or should be avoided are not considered since
  38964. // they cannot handle preferred fallback states.
  38965. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  38966. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  38967. }
  38968. }
  38969. }
  38970. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  38971. pushSuspenseContext(workInProgress, suspenseContext);
  38972. {
  38973. if ('maxDuration' in nextProps) {
  38974. if (!didWarnAboutMaxDuration) {
  38975. didWarnAboutMaxDuration = true;
  38976. warning$1(false, 'maxDuration has been removed from React. ' + 'Remove the maxDuration prop.');
  38977. }
  38978. }
  38979. }
  38980. // This next part is a bit confusing. If the children timeout, we switch to
  38981. // showing the fallback children in place of the "primary" children.
  38982. // However, we don't want to delete the primary children because then their
  38983. // state will be lost (both the React state and the host state, e.g.
  38984. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  38985. // Both the fallback children AND the primary children are rendered at the
  38986. // same time. Once the primary children are un-suspended, we can delete
  38987. // the fallback children — don't need to preserve their state.
  38988. //
  38989. // The two sets of children are siblings in the host environment, but
  38990. // semantically, for purposes of reconciliation, they are two separate sets.
  38991. // So we store them using two fragment fibers.
  38992. //
  38993. // However, we want to avoid allocating extra fibers for every placeholder.
  38994. // They're only necessary when the children time out, because that's the
  38995. // only time when both sets are mounted.
  38996. //
  38997. // So, the extra fragment fibers are only used if the children time out.
  38998. // Otherwise, we render the primary children directly. This requires some
  38999. // custom reconciliation logic to preserve the state of the primary
  39000. // children. It's essentially a very basic form of re-parenting.
  39001. // `child` points to the child fiber. In the normal case, this is the first
  39002. // fiber of the primary children set. In the timed-out case, it's a
  39003. // a fragment fiber containing the primary children.
  39004. var child = void 0;
  39005. // `next` points to the next fiber React should render. In the normal case,
  39006. // it's the same as `child`: the first fiber of the primary children set.
  39007. // In the timed-out case, it's a fragment fiber containing the *fallback*
  39008. // children -- we skip over the primary children entirely.
  39009. var next = void 0;
  39010. if (current$$1 === null) {
  39011. if (enableSuspenseServerRenderer) {
  39012. // If we're currently hydrating, try to hydrate this boundary.
  39013. // But only if this has a fallback.
  39014. if (nextProps.fallback !== undefined) {
  39015. tryToClaimNextHydratableInstance(workInProgress);
  39016. // This could've changed the tag if this was a dehydrated suspense component.
  39017. if (workInProgress.tag === DehydratedSuspenseComponent) {
  39018. popSuspenseContext(workInProgress);
  39019. return updateDehydratedSuspenseComponent(null, workInProgress, renderExpirationTime);
  39020. }
  39021. }
  39022. }
  39023. // This is the initial mount. This branch is pretty simple because there's
  39024. // no previous state that needs to be preserved.
  39025. if (nextDidTimeout) {
  39026. // Mount separate fragments for primary and fallback children.
  39027. var nextFallbackChildren = nextProps.fallback;
  39028. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  39029. primaryChildFragment.return = workInProgress;
  39030. if ((workInProgress.mode & BatchedMode) === NoMode) {
  39031. // Outside of batched mode, we commit the effects from the
  39032. var progressedState = workInProgress.memoizedState;
  39033. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  39034. primaryChildFragment.child = progressedPrimaryChild;
  39035. var progressedChild = progressedPrimaryChild;
  39036. while (progressedChild !== null) {
  39037. progressedChild.return = primaryChildFragment;
  39038. progressedChild = progressedChild.sibling;
  39039. }
  39040. }
  39041. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  39042. fallbackChildFragment.return = workInProgress;
  39043. primaryChildFragment.sibling = fallbackChildFragment;
  39044. child = primaryChildFragment;
  39045. // Skip the primary children, and continue working on the
  39046. // fallback children.
  39047. next = fallbackChildFragment;
  39048. } else {
  39049. // Mount the primary children without an intermediate fragment fiber.
  39050. var nextPrimaryChildren = nextProps.children;
  39051. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  39052. }
  39053. } else {
  39054. // This is an update. This branch is more complicated because we need to
  39055. // ensure the state of the primary children is preserved.
  39056. var prevState = current$$1.memoizedState;
  39057. var prevDidTimeout = prevState !== null;
  39058. if (prevDidTimeout) {
  39059. // The current tree already timed out. That means each child set is
  39060. var currentPrimaryChildFragment = current$$1.child;
  39061. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  39062. if (nextDidTimeout) {
  39063. // Still timed out. Reuse the current primary children by cloning
  39064. // its fragment. We're going to skip over these entirely.
  39065. var _nextFallbackChildren = nextProps.fallback;
  39066. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  39067. _primaryChildFragment.return = workInProgress;
  39068. if ((workInProgress.mode & BatchedMode) === NoMode) {
  39069. // Outside of batched mode, we commit the effects from the
  39070. var _progressedState = workInProgress.memoizedState;
  39071. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  39072. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  39073. _primaryChildFragment.child = _progressedPrimaryChild;
  39074. var _progressedChild = _progressedPrimaryChild;
  39075. while (_progressedChild !== null) {
  39076. _progressedChild.return = _primaryChildFragment;
  39077. _progressedChild = _progressedChild.sibling;
  39078. }
  39079. }
  39080. }
  39081. // Because primaryChildFragment is a new fiber that we're inserting as the
  39082. // parent of a new tree, we need to set its treeBaseDuration.
  39083. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  39084. // treeBaseDuration is the sum of all the child tree base durations.
  39085. var treeBaseDuration = 0;
  39086. var hiddenChild = _primaryChildFragment.child;
  39087. while (hiddenChild !== null) {
  39088. treeBaseDuration += hiddenChild.treeBaseDuration;
  39089. hiddenChild = hiddenChild.sibling;
  39090. }
  39091. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  39092. }
  39093. // Clone the fallback child fragment, too. These we'll continue
  39094. // working on.
  39095. var _fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  39096. _fallbackChildFragment.return = workInProgress;
  39097. _primaryChildFragment.sibling = _fallbackChildFragment;
  39098. child = _primaryChildFragment;
  39099. _primaryChildFragment.childExpirationTime = NoWork;
  39100. // Skip the primary children, and continue working on the
  39101. // fallback children.
  39102. next = _fallbackChildFragment;
  39103. } else {
  39104. // No longer suspended. Switch back to showing the primary children,
  39105. // and remove the intermediate fragment fiber.
  39106. var _nextPrimaryChildren = nextProps.children;
  39107. var currentPrimaryChild = currentPrimaryChildFragment.child;
  39108. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  39109. // If this render doesn't suspend, we need to delete the fallback
  39110. // children. Wait until the complete phase, after we've confirmed the
  39111. // fallback is no longer needed.
  39112. // TODO: Would it be better to store the fallback fragment on
  39113. // the stateNode?
  39114. // Continue rendering the children, like we normally do.
  39115. child = next = primaryChild;
  39116. }
  39117. } else {
  39118. // The current tree has not already timed out. That means the primary
  39119. // children are not wrapped in a fragment fiber.
  39120. var _currentPrimaryChild = current$$1.child;
  39121. if (nextDidTimeout) {
  39122. // Timed out. Wrap the children in a fragment fiber to keep them
  39123. // separate from the fallback children.
  39124. var _nextFallbackChildren2 = nextProps.fallback;
  39125. var _primaryChildFragment2 = createFiberFromFragment(
  39126. // It shouldn't matter what the pending props are because we aren't
  39127. // going to render this fragment.
  39128. null, mode, NoWork, null);
  39129. _primaryChildFragment2.return = workInProgress;
  39130. _primaryChildFragment2.child = _currentPrimaryChild;
  39131. if (_currentPrimaryChild !== null) {
  39132. _currentPrimaryChild.return = _primaryChildFragment2;
  39133. }
  39134. // Even though we're creating a new fiber, there are no new children,
  39135. // because we're reusing an already mounted tree. So we don't need to
  39136. // schedule a placement.
  39137. // primaryChildFragment.effectTag |= Placement;
  39138. if ((workInProgress.mode & BatchedMode) === NoMode) {
  39139. // Outside of batched mode, we commit the effects from the
  39140. var _progressedState2 = workInProgress.memoizedState;
  39141. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  39142. _primaryChildFragment2.child = _progressedPrimaryChild2;
  39143. var _progressedChild2 = _progressedPrimaryChild2;
  39144. while (_progressedChild2 !== null) {
  39145. _progressedChild2.return = _primaryChildFragment2;
  39146. _progressedChild2 = _progressedChild2.sibling;
  39147. }
  39148. }
  39149. // Because primaryChildFragment is a new fiber that we're inserting as the
  39150. // parent of a new tree, we need to set its treeBaseDuration.
  39151. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  39152. // treeBaseDuration is the sum of all the child tree base durations.
  39153. var _treeBaseDuration = 0;
  39154. var _hiddenChild = _primaryChildFragment2.child;
  39155. while (_hiddenChild !== null) {
  39156. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  39157. _hiddenChild = _hiddenChild.sibling;
  39158. }
  39159. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  39160. }
  39161. // Create a fragment from the fallback children, too.
  39162. var _fallbackChildFragment2 = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  39163. _fallbackChildFragment2.return = workInProgress;
  39164. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  39165. _fallbackChildFragment2.effectTag |= Placement;
  39166. child = _primaryChildFragment2;
  39167. _primaryChildFragment2.childExpirationTime = NoWork;
  39168. // Skip the primary children, and continue working on the
  39169. // fallback children.
  39170. next = _fallbackChildFragment2;
  39171. } else {
  39172. // Still haven't timed out. Continue rendering the children, like we
  39173. // normally do.
  39174. var _nextPrimaryChildren2 = nextProps.children;
  39175. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  39176. }
  39177. }
  39178. workInProgress.stateNode = current$$1.stateNode;
  39179. }
  39180. workInProgress.memoizedState = nextState;
  39181. workInProgress.child = child;
  39182. return next;
  39183. }
  39184. function retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime) {
  39185. // Detach from the current dehydrated boundary.
  39186. current$$1.alternate = null;
  39187. workInProgress.alternate = null;
  39188. // Insert a deletion in the effect list.
  39189. var returnFiber = workInProgress.return;
  39190. (function () {
  39191. if (!(returnFiber !== null)) {
  39192. {
  39193. throw ReactError(Error('Suspense boundaries are never on the root. This is probably a bug in React.'));
  39194. }
  39195. }
  39196. })();
  39197. var last = returnFiber.lastEffect;
  39198. if (last !== null) {
  39199. last.nextEffect = current$$1;
  39200. returnFiber.lastEffect = current$$1;
  39201. } else {
  39202. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  39203. }
  39204. current$$1.nextEffect = null;
  39205. current$$1.effectTag = Deletion;
  39206. popSuspenseContext(workInProgress);
  39207. // Upgrade this work in progress to a real Suspense component.
  39208. workInProgress.tag = SuspenseComponent;
  39209. workInProgress.stateNode = null;
  39210. workInProgress.memoizedState = null;
  39211. // This is now an insertion.
  39212. workInProgress.effectTag |= Placement;
  39213. // Retry as a real Suspense component.
  39214. return updateSuspenseComponent(null, workInProgress, renderExpirationTime);
  39215. }
  39216. function updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  39217. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  39218. var suspenseInstance = workInProgress.stateNode;
  39219. if (current$$1 === null) {
  39220. // During the first pass, we'll bail out and not drill into the children.
  39221. // Instead, we'll leave the content in place and try to hydrate it later.
  39222. if (isSuspenseInstanceFallback(suspenseInstance)) {
  39223. // This is a client-only boundary. Since we won't get any content from the server
  39224. // for this, we need to schedule that at a higher priority based on when it would
  39225. // have timed out. In theory we could render it in this pass but it would have the
  39226. // wrong priority associated with it and will prevent hydration of parent path.
  39227. // Instead, we'll leave work left on it to render it in a separate commit.
  39228. // TODO This time should be the time at which the server rendered response that is
  39229. // a parent to this boundary was displayed. However, since we currently don't have
  39230. // a protocol to transfer that time, we'll just estimate it by using the current
  39231. // time. This will mean that Suspense timeouts are slightly shifted to later than
  39232. // they should be.
  39233. var serverDisplayTime = requestCurrentTime();
  39234. // Schedule a normal pri update to render this content.
  39235. workInProgress.expirationTime = computeAsyncExpiration(serverDisplayTime);
  39236. } else {
  39237. // We'll continue hydrating the rest at offscreen priority since we'll already
  39238. // be showing the right content coming from the server, it is no rush.
  39239. workInProgress.expirationTime = Never;
  39240. }
  39241. return null;
  39242. }
  39243. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  39244. // Something suspended. Leave the existing children in place.
  39245. // TODO: In non-concurrent mode, should we commit the nodes we have hydrated so far?
  39246. workInProgress.child = null;
  39247. return null;
  39248. }
  39249. if (isSuspenseInstanceFallback(suspenseInstance)) {
  39250. // This boundary is in a permanent fallback state. In this case, we'll never
  39251. // get an update and we'll never be able to hydrate the final content. Let's just try the
  39252. // client side render instead.
  39253. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  39254. }
  39255. // We use childExpirationTime to indicate that a child might depend on context, so if
  39256. // any context has changed, we need to treat is as if the input might have changed.
  39257. var hasContextChanged$$1 = current$$1.childExpirationTime >= renderExpirationTime;
  39258. if (didReceiveUpdate || hasContextChanged$$1) {
  39259. // This boundary has changed since the first render. This means that we are now unable to
  39260. // hydrate it. We might still be able to hydrate it using an earlier expiration time but
  39261. // during this render we can't. Instead, we're going to delete the whole subtree and
  39262. // instead inject a new real Suspense boundary to take its place, which may render content
  39263. // or fallback. The real Suspense boundary will suspend for a while so we have some time
  39264. // to ensure it can produce real content, but all state and pending events will be lost.
  39265. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  39266. } else if (isSuspenseInstancePending(suspenseInstance)) {
  39267. // This component is still pending more data from the server, so we can't hydrate its
  39268. // content. We treat it as if this component suspended itself. It might seem as if
  39269. // we could just try to render it client-side instead. However, this will perform a
  39270. // lot of unnecessary work and is unlikely to complete since it often will suspend
  39271. // on missing data anyway. Additionally, the server might be able to render more
  39272. // than we can on the client yet. In that case we'd end up with more fallback states
  39273. // on the client than if we just leave it alone. If the server times out or errors
  39274. // these should update this boundary to the permanent Fallback state instead.
  39275. // Mark it as having captured (i.e. suspended).
  39276. workInProgress.effectTag |= DidCapture;
  39277. // Leave the children in place. I.e. empty.
  39278. workInProgress.child = null;
  39279. // Register a callback to retry this boundary once the server has sent the result.
  39280. registerSuspenseInstanceRetry(suspenseInstance, retryTimedOutBoundary.bind(null, current$$1));
  39281. return null;
  39282. } else {
  39283. // This is the first attempt.
  39284. reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress);
  39285. var nextProps = workInProgress.pendingProps;
  39286. var nextChildren = nextProps.children;
  39287. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  39288. return workInProgress.child;
  39289. }
  39290. }
  39291. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  39292. // Mark any Suspense boundaries with fallbacks as having work to do.
  39293. // If they were previously forced into fallbacks, they may now be able
  39294. // to unblock.
  39295. var node = firstChild;
  39296. while (node !== null) {
  39297. if (node.tag === SuspenseComponent) {
  39298. var state = node.memoizedState;
  39299. if (state !== null) {
  39300. if (node.expirationTime < renderExpirationTime) {
  39301. node.expirationTime = renderExpirationTime;
  39302. }
  39303. var alternate = node.alternate;
  39304. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  39305. alternate.expirationTime = renderExpirationTime;
  39306. }
  39307. scheduleWorkOnParentPath(node.return, renderExpirationTime);
  39308. }
  39309. } else if (node.child !== null) {
  39310. node.child.return = node;
  39311. node = node.child;
  39312. continue;
  39313. }
  39314. if (node === workInProgress) {
  39315. return;
  39316. }
  39317. while (node.sibling === null) {
  39318. if (node.return === null || node.return === workInProgress) {
  39319. return;
  39320. }
  39321. node = node.return;
  39322. }
  39323. node.sibling.return = node.return;
  39324. node = node.sibling;
  39325. }
  39326. }
  39327. function findLastContentRow(firstChild) {
  39328. // This is going to find the last row among these children that is already
  39329. // showing content on the screen, as opposed to being in fallback state or
  39330. // new. If a row has multiple Suspense boundaries, any of them being in the
  39331. // fallback state, counts as the whole row being in a fallback state.
  39332. // Note that the "rows" will be workInProgress, but any nested children
  39333. // will still be current since we haven't rendered them yet. The mounted
  39334. // order may not be the same as the new order. We use the new order.
  39335. var row = firstChild;
  39336. var lastContentRow = null;
  39337. while (row !== null) {
  39338. var currentRow = row.alternate;
  39339. // New rows can't be content rows.
  39340. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  39341. lastContentRow = row;
  39342. }
  39343. row = row.sibling;
  39344. }
  39345. return lastContentRow;
  39346. }
  39347. function validateRevealOrder(revealOrder) {
  39348. {
  39349. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  39350. didWarnAboutRevealOrder[revealOrder] = true;
  39351. if (typeof revealOrder === 'string') {
  39352. switch (revealOrder.toLowerCase()) {
  39353. case 'together':
  39354. case 'forwards':
  39355. case 'backwards':
  39356. {
  39357. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  39358. break;
  39359. }
  39360. case 'forward':
  39361. case 'backward':
  39362. {
  39363. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
  39364. break;
  39365. }
  39366. default:
  39367. warning$1(false, '"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  39368. break;
  39369. }
  39370. } else {
  39371. warning$1(false, '%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  39372. }
  39373. }
  39374. }
  39375. }
  39376. function validateTailOptions(tailMode, revealOrder) {
  39377. {
  39378. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  39379. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  39380. didWarnAboutTailOptions[tailMode] = true;
  39381. warning$1(false, '"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  39382. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  39383. didWarnAboutTailOptions[tailMode] = true;
  39384. warning$1(false, '<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  39385. }
  39386. }
  39387. }
  39388. }
  39389. function validateSuspenseListNestedChild(childSlot, index) {
  39390. {
  39391. var isArray = Array.isArray(childSlot);
  39392. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  39393. if (isArray || isIterable) {
  39394. var type = isArray ? 'array' : 'iterable';
  39395. warning$1(false, 'A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);
  39396. return false;
  39397. }
  39398. }
  39399. return true;
  39400. }
  39401. function validateSuspenseListChildren(children, revealOrder) {
  39402. {
  39403. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  39404. if (Array.isArray(children)) {
  39405. for (var i = 0; i < children.length; i++) {
  39406. if (!validateSuspenseListNestedChild(children[i], i)) {
  39407. return;
  39408. }
  39409. }
  39410. } else {
  39411. var iteratorFn = getIteratorFn(children);
  39412. if (typeof iteratorFn === 'function') {
  39413. var childrenIterator = iteratorFn.call(children);
  39414. if (childrenIterator) {
  39415. var step = childrenIterator.next();
  39416. var _i = 0;
  39417. for (; !step.done; step = childrenIterator.next()) {
  39418. if (!validateSuspenseListNestedChild(step.value, _i)) {
  39419. return;
  39420. }
  39421. _i++;
  39422. }
  39423. }
  39424. } else {
  39425. warning$1(false, 'A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
  39426. }
  39427. }
  39428. }
  39429. }
  39430. }
  39431. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {
  39432. var renderState = workInProgress.memoizedState;
  39433. if (renderState === null) {
  39434. workInProgress.memoizedState = {
  39435. isBackwards: isBackwards,
  39436. rendering: null,
  39437. last: lastContentRow,
  39438. tail: tail,
  39439. tailExpiration: 0,
  39440. tailMode: tailMode
  39441. };
  39442. } else {
  39443. // We can reuse the existing object from previous renders.
  39444. renderState.isBackwards = isBackwards;
  39445. renderState.rendering = null;
  39446. renderState.last = lastContentRow;
  39447. renderState.tail = tail;
  39448. renderState.tailExpiration = 0;
  39449. renderState.tailMode = tailMode;
  39450. }
  39451. }
  39452. // This can end up rendering this component multiple passes.
  39453. // The first pass splits the children fibers into two sets. A head and tail.
  39454. // We first render the head. If anything is in fallback state, we do another
  39455. // pass through beginWork to rerender all children (including the tail) with
  39456. // the force suspend context. If the first render didn't have anything in
  39457. // in fallback state. Then we render each row in the tail one-by-one.
  39458. // That happens in the completeWork phase without going back to beginWork.
  39459. function updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime) {
  39460. var nextProps = workInProgress.pendingProps;
  39461. var revealOrder = nextProps.revealOrder;
  39462. var tailMode = nextProps.tail;
  39463. var newChildren = nextProps.children;
  39464. validateRevealOrder(revealOrder);
  39465. validateTailOptions(tailMode, revealOrder);
  39466. validateSuspenseListChildren(newChildren, revealOrder);
  39467. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  39468. var suspenseContext = suspenseStackCursor.current;
  39469. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  39470. if (shouldForceFallback) {
  39471. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  39472. workInProgress.effectTag |= DidCapture;
  39473. } else {
  39474. var didSuspendBefore = current$$1 !== null && (current$$1.effectTag & DidCapture) !== NoEffect;
  39475. if (didSuspendBefore) {
  39476. // If we previously forced a fallback, we need to schedule work
  39477. // on any nested boundaries to let them know to try to render
  39478. // again. This is the same as context updating.
  39479. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  39480. }
  39481. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  39482. }
  39483. pushSuspenseContext(workInProgress, suspenseContext);
  39484. if ((workInProgress.mode & BatchedMode) === NoMode) {
  39485. // Outside of batched mode, SuspenseList doesn't work so we just
  39486. // use make it a noop by treating it as the default revealOrder.
  39487. workInProgress.memoizedState = null;
  39488. } else {
  39489. switch (revealOrder) {
  39490. case 'forwards':
  39491. {
  39492. var lastContentRow = findLastContentRow(workInProgress.child);
  39493. var tail = void 0;
  39494. if (lastContentRow === null) {
  39495. // The whole list is part of the tail.
  39496. // TODO: We could fast path by just rendering the tail now.
  39497. tail = workInProgress.child;
  39498. workInProgress.child = null;
  39499. } else {
  39500. // Disconnect the tail rows after the content row.
  39501. // We're going to render them separately later.
  39502. tail = lastContentRow.sibling;
  39503. lastContentRow.sibling = null;
  39504. }
  39505. initSuspenseListRenderState(workInProgress, false, // isBackwards
  39506. tail, lastContentRow, tailMode);
  39507. break;
  39508. }
  39509. case 'backwards':
  39510. {
  39511. // We're going to find the first row that has existing content.
  39512. // At the same time we're going to reverse the list of everything
  39513. // we pass in the meantime. That's going to be our tail in reverse
  39514. // order.
  39515. var _tail = null;
  39516. var row = workInProgress.child;
  39517. workInProgress.child = null;
  39518. while (row !== null) {
  39519. var currentRow = row.alternate;
  39520. // New rows can't be content rows.
  39521. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  39522. // This is the beginning of the main content.
  39523. workInProgress.child = row;
  39524. break;
  39525. }
  39526. var nextRow = row.sibling;
  39527. row.sibling = _tail;
  39528. _tail = row;
  39529. row = nextRow;
  39530. }
  39531. // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  39532. initSuspenseListRenderState(workInProgress, true, // isBackwards
  39533. _tail, null, // last
  39534. tailMode);
  39535. break;
  39536. }
  39537. case 'together':
  39538. {
  39539. initSuspenseListRenderState(workInProgress, false, // isBackwards
  39540. null, // tail
  39541. null, // last
  39542. undefined);
  39543. break;
  39544. }
  39545. default:
  39546. {
  39547. // The default reveal order is the same as not having
  39548. // a boundary.
  39549. workInProgress.memoizedState = null;
  39550. }
  39551. }
  39552. }
  39553. return workInProgress.child;
  39554. }
  39555. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  39556. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  39557. var nextChildren = workInProgress.pendingProps;
  39558. if (current$$1 === null) {
  39559. // Portals are special because we don't append the children during mount
  39560. // but at commit. Therefore we need to track insertions which the normal
  39561. // flow doesn't do during mount. This doesn't happen at the root because
  39562. // the root always starts with a "current" with a null child.
  39563. // TODO: Consider unifying this with how the root works.
  39564. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  39565. } else {
  39566. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  39567. }
  39568. return workInProgress.child;
  39569. }
  39570. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  39571. var providerType = workInProgress.type;
  39572. var context = providerType._context;
  39573. var newProps = workInProgress.pendingProps;
  39574. var oldProps = workInProgress.memoizedProps;
  39575. var newValue = newProps.value;
  39576. {
  39577. var providerPropTypes = workInProgress.type.propTypes;
  39578. if (providerPropTypes) {
  39579. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  39580. }
  39581. }
  39582. pushProvider(workInProgress, newValue);
  39583. if (oldProps !== null) {
  39584. var oldValue = oldProps.value;
  39585. var changedBits = calculateChangedBits(context, newValue, oldValue);
  39586. if (changedBits === 0) {
  39587. // No change. Bailout early if children are the same.
  39588. if (oldProps.children === newProps.children && !hasContextChanged()) {
  39589. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  39590. }
  39591. } else {
  39592. // The context value changed. Search for matching consumers and schedule
  39593. // them to update.
  39594. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  39595. }
  39596. }
  39597. var newChildren = newProps.children;
  39598. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  39599. return workInProgress.child;
  39600. }
  39601. var hasWarnedAboutUsingContextAsConsumer = false;
  39602. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  39603. var context = workInProgress.type;
  39604. // The logic below for Context differs depending on PROD or DEV mode. In
  39605. // DEV mode, we create a separate object for Context.Consumer that acts
  39606. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  39607. // so we use the old behaviour (Context.Consumer references Context) to
  39608. // reduce size and overhead. The separate object references context via
  39609. // a property called "_context", which also gives us the ability to check
  39610. // in DEV mode if this property exists or not and warn if it does not.
  39611. {
  39612. if (context._context === undefined) {
  39613. // This may be because it's a Context (rather than a Consumer).
  39614. // Or it may be because it's older React where they're the same thing.
  39615. // We only want to warn if we're sure it's a new React.
  39616. if (context !== context.Consumer) {
  39617. if (!hasWarnedAboutUsingContextAsConsumer) {
  39618. hasWarnedAboutUsingContextAsConsumer = true;
  39619. warning$1(false, 'Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  39620. }
  39621. }
  39622. } else {
  39623. context = context._context;
  39624. }
  39625. }
  39626. var newProps = workInProgress.pendingProps;
  39627. var render = newProps.children;
  39628. {
  39629. !(typeof render === 'function') ? warningWithoutStack$1(false, 'A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.') : void 0;
  39630. }
  39631. prepareToReadContext(workInProgress, renderExpirationTime);
  39632. var newValue = readContext(context, newProps.unstable_observedBits);
  39633. var newChildren = void 0;
  39634. {
  39635. ReactCurrentOwner$3.current = workInProgress;
  39636. setCurrentPhase('render');
  39637. newChildren = render(newValue);
  39638. setCurrentPhase(null);
  39639. }
  39640. // React DevTools reads this flag.
  39641. workInProgress.effectTag |= PerformedWork;
  39642. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  39643. return workInProgress.child;
  39644. }
  39645. function updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime) {
  39646. var fundamentalImpl = workInProgress.type.impl;
  39647. if (fundamentalImpl.reconcileChildren === false) {
  39648. return null;
  39649. }
  39650. var nextProps = workInProgress.pendingProps;
  39651. var nextChildren = nextProps.children;
  39652. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  39653. return workInProgress.child;
  39654. }
  39655. function markWorkInProgressReceivedUpdate() {
  39656. didReceiveUpdate = true;
  39657. }
  39658. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  39659. cancelWorkTimer(workInProgress);
  39660. if (current$$1 !== null) {
  39661. // Reuse previous dependencies
  39662. workInProgress.dependencies = current$$1.dependencies;
  39663. }
  39664. if (enableProfilerTimer) {
  39665. // Don't update "base" render times for bailouts.
  39666. stopProfilerTimerIfRunning(workInProgress);
  39667. }
  39668. // Check if the children have any pending work.
  39669. var childExpirationTime = workInProgress.childExpirationTime;
  39670. if (childExpirationTime < renderExpirationTime) {
  39671. // The children don't have any work either. We can skip them.
  39672. // TODO: Once we add back resuming, we should check if the children are
  39673. // a work-in-progress set. If so, we need to transfer their effects.
  39674. return null;
  39675. } else {
  39676. // This fiber doesn't have work, but its subtree does. Clone the child
  39677. // fibers and continue.
  39678. cloneChildFibers(current$$1, workInProgress);
  39679. return workInProgress.child;
  39680. }
  39681. }
  39682. function remountFiber(current$$1, oldWorkInProgress, newWorkInProgress) {
  39683. {
  39684. var returnFiber = oldWorkInProgress.return;
  39685. if (returnFiber === null) {
  39686. throw new Error('Cannot swap the root fiber.');
  39687. }
  39688. // Disconnect from the old current.
  39689. // It will get deleted.
  39690. current$$1.alternate = null;
  39691. oldWorkInProgress.alternate = null;
  39692. // Connect to the new tree.
  39693. newWorkInProgress.index = oldWorkInProgress.index;
  39694. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  39695. newWorkInProgress.return = oldWorkInProgress.return;
  39696. newWorkInProgress.ref = oldWorkInProgress.ref;
  39697. // Replace the child/sibling pointers above it.
  39698. if (oldWorkInProgress === returnFiber.child) {
  39699. returnFiber.child = newWorkInProgress;
  39700. } else {
  39701. var prevSibling = returnFiber.child;
  39702. if (prevSibling === null) {
  39703. throw new Error('Expected parent to have a child.');
  39704. }
  39705. while (prevSibling.sibling !== oldWorkInProgress) {
  39706. prevSibling = prevSibling.sibling;
  39707. if (prevSibling === null) {
  39708. throw new Error('Expected to find the previous sibling.');
  39709. }
  39710. }
  39711. prevSibling.sibling = newWorkInProgress;
  39712. }
  39713. // Delete the old fiber and place the new one.
  39714. // Since the old fiber is disconnected, we have to schedule it manually.
  39715. var last = returnFiber.lastEffect;
  39716. if (last !== null) {
  39717. last.nextEffect = current$$1;
  39718. returnFiber.lastEffect = current$$1;
  39719. } else {
  39720. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  39721. }
  39722. current$$1.nextEffect = null;
  39723. current$$1.effectTag = Deletion;
  39724. newWorkInProgress.effectTag |= Placement;
  39725. // Restart work from the new fiber.
  39726. return newWorkInProgress;
  39727. }
  39728. }
  39729. function beginWork$1(current$$1, workInProgress, renderExpirationTime) {
  39730. var updateExpirationTime = workInProgress.expirationTime;
  39731. {
  39732. if (workInProgress._debugNeedsRemount && current$$1 !== null) {
  39733. // This will restart the begin phase with a new fiber.
  39734. return remountFiber(current$$1, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  39735. }
  39736. }
  39737. if (current$$1 !== null) {
  39738. var oldProps = current$$1.memoizedProps;
  39739. var newProps = workInProgress.pendingProps;
  39740. if (oldProps !== newProps || hasContextChanged() || (
  39741. // Force a re-render if the implementation changed due to hot reload:
  39742. workInProgress.type !== current$$1.type)) {
  39743. // If props or context changed, mark the fiber as having performed work.
  39744. // This may be unset if the props are determined to be equal later (memo).
  39745. didReceiveUpdate = true;
  39746. } else if (updateExpirationTime < renderExpirationTime) {
  39747. didReceiveUpdate = false;
  39748. // This fiber does not have any pending work. Bailout without entering
  39749. // the begin phase. There's still some bookkeeping we that needs to be done
  39750. // in this optimized path, mostly pushing stuff onto the stack.
  39751. switch (workInProgress.tag) {
  39752. case HostRoot:
  39753. pushHostRootContext(workInProgress);
  39754. resetHydrationState();
  39755. break;
  39756. case HostComponent:
  39757. pushHostContext(workInProgress);
  39758. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  39759. if (enableSchedulerTracing) {
  39760. markSpawnedWork(Never);
  39761. }
  39762. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  39763. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  39764. return null;
  39765. }
  39766. break;
  39767. case ClassComponent:
  39768. {
  39769. var Component = workInProgress.type;
  39770. if (isContextProvider(Component)) {
  39771. pushContextProvider(workInProgress);
  39772. }
  39773. break;
  39774. }
  39775. case HostPortal:
  39776. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  39777. break;
  39778. case ContextProvider:
  39779. {
  39780. var newValue = workInProgress.memoizedProps.value;
  39781. pushProvider(workInProgress, newValue);
  39782. break;
  39783. }
  39784. case Profiler:
  39785. if (enableProfilerTimer) {
  39786. workInProgress.effectTag |= Update;
  39787. }
  39788. break;
  39789. case SuspenseComponent:
  39790. {
  39791. var state = workInProgress.memoizedState;
  39792. var didTimeout = state !== null;
  39793. if (didTimeout) {
  39794. // If this boundary is currently timed out, we need to decide
  39795. // whether to retry the primary children, or to skip over it and
  39796. // go straight to the fallback. Check the priority of the primary
  39797. var primaryChildFragment = workInProgress.child;
  39798. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  39799. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  39800. // The primary children have pending work. Use the normal path
  39801. // to attempt to render the primary children again.
  39802. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  39803. } else {
  39804. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  39805. // The primary children do not have pending work with sufficient
  39806. // priority. Bailout.
  39807. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  39808. if (child !== null) {
  39809. // The fallback children have pending work. Skip over the
  39810. // primary children and work on the fallback.
  39811. return child.sibling;
  39812. } else {
  39813. return null;
  39814. }
  39815. }
  39816. } else {
  39817. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  39818. }
  39819. break;
  39820. }
  39821. case DehydratedSuspenseComponent:
  39822. {
  39823. if (enableSuspenseServerRenderer) {
  39824. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  39825. // We know that this component will suspend again because if it has
  39826. // been unsuspended it has committed as a regular Suspense component.
  39827. // If it needs to be retried, it should have work scheduled on it.
  39828. workInProgress.effectTag |= DidCapture;
  39829. }
  39830. break;
  39831. }
  39832. case SuspenseListComponent:
  39833. {
  39834. var didSuspendBefore = (current$$1.effectTag & DidCapture) !== NoEffect;
  39835. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  39836. if (didSuspendBefore) {
  39837. if (hasChildWork) {
  39838. // If something was in fallback state last time, and we have all the
  39839. // same children then we're still in progressive loading state.
  39840. // Something might get unblocked by state updates or retries in the
  39841. // tree which will affect the tail. So we need to use the normal
  39842. // path to compute the correct tail.
  39843. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  39844. }
  39845. // If none of the children had any work, that means that none of
  39846. // them got retried so they'll still be blocked in the same way
  39847. // as before. We can fast bail out.
  39848. workInProgress.effectTag |= DidCapture;
  39849. }
  39850. // If nothing suspended before and we're rendering the same children,
  39851. // then the tail doesn't matter. Anything new that suspends will work
  39852. // in the "together" mode, so we can continue from the state we had.
  39853. var renderState = workInProgress.memoizedState;
  39854. if (renderState !== null) {
  39855. // Reset to the "together" mode in case we've started a different
  39856. // update in the past but didn't complete it.
  39857. renderState.rendering = null;
  39858. renderState.tail = null;
  39859. }
  39860. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  39861. if (hasChildWork) {
  39862. break;
  39863. } else {
  39864. // If none of the children had any work, that means that none of
  39865. // them got retried so they'll still be blocked in the same way
  39866. // as before. We can fast bail out.
  39867. return null;
  39868. }
  39869. }
  39870. }
  39871. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  39872. }
  39873. } else {
  39874. didReceiveUpdate = false;
  39875. }
  39876. // Before entering the begin phase, clear the expiration time.
  39877. workInProgress.expirationTime = NoWork;
  39878. switch (workInProgress.tag) {
  39879. case IndeterminateComponent:
  39880. {
  39881. return mountIndeterminateComponent(current$$1, workInProgress, workInProgress.type, renderExpirationTime);
  39882. }
  39883. case LazyComponent:
  39884. {
  39885. var elementType = workInProgress.elementType;
  39886. return mountLazyComponent(current$$1, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  39887. }
  39888. case FunctionComponent:
  39889. {
  39890. var _Component = workInProgress.type;
  39891. var unresolvedProps = workInProgress.pendingProps;
  39892. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  39893. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  39894. }
  39895. case ClassComponent:
  39896. {
  39897. var _Component2 = workInProgress.type;
  39898. var _unresolvedProps = workInProgress.pendingProps;
  39899. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  39900. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  39901. }
  39902. case HostRoot:
  39903. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  39904. case HostComponent:
  39905. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  39906. case HostText:
  39907. return updateHostText(current$$1, workInProgress);
  39908. case SuspenseComponent:
  39909. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  39910. case HostPortal:
  39911. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  39912. case ForwardRef:
  39913. {
  39914. var type = workInProgress.type;
  39915. var _unresolvedProps2 = workInProgress.pendingProps;
  39916. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  39917. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  39918. }
  39919. case Fragment:
  39920. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  39921. case Mode:
  39922. return updateMode(current$$1, workInProgress, renderExpirationTime);
  39923. case Profiler:
  39924. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  39925. case ContextProvider:
  39926. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  39927. case ContextConsumer:
  39928. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  39929. case MemoComponent:
  39930. {
  39931. var _type2 = workInProgress.type;
  39932. var _unresolvedProps3 = workInProgress.pendingProps;
  39933. // Resolve outer props first, then resolve inner props.
  39934. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  39935. {
  39936. if (workInProgress.type !== workInProgress.elementType) {
  39937. var outerPropTypes = _type2.propTypes;
  39938. if (outerPropTypes) {
  39939. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  39940. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  39941. }
  39942. }
  39943. }
  39944. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  39945. return updateMemoComponent(current$$1, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  39946. }
  39947. case SimpleMemoComponent:
  39948. {
  39949. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  39950. }
  39951. case IncompleteClassComponent:
  39952. {
  39953. var _Component3 = workInProgress.type;
  39954. var _unresolvedProps4 = workInProgress.pendingProps;
  39955. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  39956. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  39957. }
  39958. case DehydratedSuspenseComponent:
  39959. {
  39960. if (enableSuspenseServerRenderer) {
  39961. return updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  39962. }
  39963. break;
  39964. }
  39965. case SuspenseListComponent:
  39966. {
  39967. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  39968. }
  39969. case FundamentalComponent:
  39970. {
  39971. if (enableFundamentalAPI) {
  39972. return updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime);
  39973. }
  39974. break;
  39975. }
  39976. }
  39977. (function () {
  39978. {
  39979. {
  39980. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  39981. }
  39982. }
  39983. })();
  39984. }
  39985. function createFundamentalStateInstance(currentFiber, props, impl, state) {
  39986. return {
  39987. currentFiber: currentFiber,
  39988. impl: impl,
  39989. instance: null,
  39990. prevProps: null,
  39991. props: props,
  39992. state: state
  39993. };
  39994. }
  39995. var emptyObject = {};
  39996. var isArray$2 = Array.isArray;
  39997. function markUpdate(workInProgress) {
  39998. // Tag the fiber with an update effect. This turns a Placement into
  39999. // a PlacementAndUpdate.
  40000. workInProgress.effectTag |= Update;
  40001. }
  40002. function markRef$1(workInProgress) {
  40003. workInProgress.effectTag |= Ref;
  40004. }
  40005. var appendAllChildren = void 0;
  40006. var updateHostContainer = void 0;
  40007. var updateHostComponent$1 = void 0;
  40008. var updateHostText$1 = void 0;
  40009. if (supportsMutation) {
  40010. // Mutation mode
  40011. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  40012. // We only have the top Fiber that was created but we need recurse down its
  40013. // children to find all the terminal nodes.
  40014. var node = workInProgress.child;
  40015. while (node !== null) {
  40016. if (node.tag === HostComponent || node.tag === HostText) {
  40017. appendInitialChild(parent, node.stateNode);
  40018. } else if (node.tag === FundamentalComponent) {
  40019. appendInitialChild(parent, node.stateNode.instance);
  40020. } else if (node.tag === HostPortal) {
  40021. // If we have a portal child, then we don't want to traverse
  40022. // down its children. Instead, we'll get insertions from each child in
  40023. // the portal directly.
  40024. } else if (node.child !== null) {
  40025. node.child.return = node;
  40026. node = node.child;
  40027. continue;
  40028. }
  40029. if (node === workInProgress) {
  40030. return;
  40031. }
  40032. while (node.sibling === null) {
  40033. if (node.return === null || node.return === workInProgress) {
  40034. return;
  40035. }
  40036. node = node.return;
  40037. }
  40038. node.sibling.return = node.return;
  40039. node = node.sibling;
  40040. }
  40041. };
  40042. updateHostContainer = function (workInProgress) {
  40043. // Noop
  40044. };
  40045. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  40046. // If we have an alternate, that means this is an update and we need to
  40047. // schedule a side-effect to do the updates.
  40048. var oldProps = current.memoizedProps;
  40049. if (oldProps === newProps) {
  40050. // In mutation mode, this is sufficient for a bailout because
  40051. // we won't touch this node even if children changed.
  40052. return;
  40053. }
  40054. // If we get updated because one of our children updated, we don't
  40055. // have newProps so we'll have to reuse them.
  40056. // TODO: Split the update API as separate for the props vs. children.
  40057. // Even better would be if children weren't special cased at all tho.
  40058. var instance = workInProgress.stateNode;
  40059. var currentHostContext = getHostContext();
  40060. // TODO: Experiencing an error where oldProps is null. Suggests a host
  40061. // component is hitting the resume path. Figure out why. Possibly
  40062. // related to `hidden`.
  40063. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  40064. // TODO: Type this specific to this type of component.
  40065. workInProgress.updateQueue = updatePayload;
  40066. // If the update payload indicates that there is a change or if there
  40067. // is a new ref we mark this as an update. All the work is done in commitWork.
  40068. if (updatePayload) {
  40069. markUpdate(workInProgress);
  40070. }
  40071. };
  40072. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  40073. // If the text differs, mark it as an update. All the work in done in commitWork.
  40074. if (oldText !== newText) {
  40075. markUpdate(workInProgress);
  40076. }
  40077. };
  40078. } else if (supportsPersistence) {
  40079. // Persistent host tree mode
  40080. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  40081. // We only have the top Fiber that was created but we need recurse down its
  40082. // children to find all the terminal nodes.
  40083. var node = workInProgress.child;
  40084. while (node !== null) {
  40085. // eslint-disable-next-line no-labels
  40086. branches: if (node.tag === HostComponent) {
  40087. var instance = node.stateNode;
  40088. if (needsVisibilityToggle && isHidden) {
  40089. // This child is inside a timed out tree. Hide it.
  40090. var props = node.memoizedProps;
  40091. var type = node.type;
  40092. instance = cloneHiddenInstance(instance, type, props, node);
  40093. }
  40094. appendInitialChild(parent, instance);
  40095. } else if (node.tag === HostText) {
  40096. var _instance = node.stateNode;
  40097. if (needsVisibilityToggle && isHidden) {
  40098. // This child is inside a timed out tree. Hide it.
  40099. var text = node.memoizedProps;
  40100. _instance = cloneHiddenTextInstance(_instance, text, node);
  40101. }
  40102. appendInitialChild(parent, _instance);
  40103. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  40104. var _instance2 = node.stateNode.instance;
  40105. if (needsVisibilityToggle && isHidden) {
  40106. // This child is inside a timed out tree. Hide it.
  40107. var _props = node.memoizedProps;
  40108. var _type = node.type;
  40109. _instance2 = cloneHiddenInstance(_instance2, _type, _props, node);
  40110. }
  40111. appendInitialChild(parent, _instance2);
  40112. } else if (node.tag === HostPortal) {
  40113. // If we have a portal child, then we don't want to traverse
  40114. // down its children. Instead, we'll get insertions from each child in
  40115. // the portal directly.
  40116. } else if (node.tag === SuspenseComponent) {
  40117. if ((node.effectTag & Update) !== NoEffect) {
  40118. // Need to toggle the visibility of the primary children.
  40119. var newIsHidden = node.memoizedState !== null;
  40120. if (newIsHidden) {
  40121. var primaryChildParent = node.child;
  40122. if (primaryChildParent !== null) {
  40123. if (primaryChildParent.child !== null) {
  40124. primaryChildParent.child.return = primaryChildParent;
  40125. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  40126. }
  40127. var fallbackChildParent = primaryChildParent.sibling;
  40128. if (fallbackChildParent !== null) {
  40129. fallbackChildParent.return = node;
  40130. node = fallbackChildParent;
  40131. continue;
  40132. }
  40133. }
  40134. }
  40135. }
  40136. if (node.child !== null) {
  40137. // Continue traversing like normal
  40138. node.child.return = node;
  40139. node = node.child;
  40140. continue;
  40141. }
  40142. } else if (node.child !== null) {
  40143. node.child.return = node;
  40144. node = node.child;
  40145. continue;
  40146. }
  40147. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  40148. node = node;
  40149. if (node === workInProgress) {
  40150. return;
  40151. }
  40152. while (node.sibling === null) {
  40153. if (node.return === null || node.return === workInProgress) {
  40154. return;
  40155. }
  40156. node = node.return;
  40157. }
  40158. node.sibling.return = node.return;
  40159. node = node.sibling;
  40160. }
  40161. };
  40162. // An unfortunate fork of appendAllChildren because we have two different parent types.
  40163. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  40164. // We only have the top Fiber that was created but we need recurse down its
  40165. // children to find all the terminal nodes.
  40166. var node = workInProgress.child;
  40167. while (node !== null) {
  40168. // eslint-disable-next-line no-labels
  40169. branches: if (node.tag === HostComponent) {
  40170. var instance = node.stateNode;
  40171. if (needsVisibilityToggle && isHidden) {
  40172. // This child is inside a timed out tree. Hide it.
  40173. var props = node.memoizedProps;
  40174. var type = node.type;
  40175. instance = cloneHiddenInstance(instance, type, props, node);
  40176. }
  40177. appendChildToContainerChildSet(containerChildSet, instance);
  40178. } else if (node.tag === HostText) {
  40179. var _instance3 = node.stateNode;
  40180. if (needsVisibilityToggle && isHidden) {
  40181. // This child is inside a timed out tree. Hide it.
  40182. var text = node.memoizedProps;
  40183. _instance3 = cloneHiddenTextInstance(_instance3, text, node);
  40184. }
  40185. appendChildToContainerChildSet(containerChildSet, _instance3);
  40186. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  40187. var _instance4 = node.stateNode.instance;
  40188. if (needsVisibilityToggle && isHidden) {
  40189. // This child is inside a timed out tree. Hide it.
  40190. var _props2 = node.memoizedProps;
  40191. var _type2 = node.type;
  40192. _instance4 = cloneHiddenInstance(_instance4, _type2, _props2, node);
  40193. }
  40194. appendChildToContainerChildSet(containerChildSet, _instance4);
  40195. } else if (node.tag === HostPortal) {
  40196. // If we have a portal child, then we don't want to traverse
  40197. // down its children. Instead, we'll get insertions from each child in
  40198. // the portal directly.
  40199. } else if (node.tag === SuspenseComponent) {
  40200. if ((node.effectTag & Update) !== NoEffect) {
  40201. // Need to toggle the visibility of the primary children.
  40202. var newIsHidden = node.memoizedState !== null;
  40203. if (newIsHidden) {
  40204. var primaryChildParent = node.child;
  40205. if (primaryChildParent !== null) {
  40206. if (primaryChildParent.child !== null) {
  40207. primaryChildParent.child.return = primaryChildParent;
  40208. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  40209. }
  40210. var fallbackChildParent = primaryChildParent.sibling;
  40211. if (fallbackChildParent !== null) {
  40212. fallbackChildParent.return = node;
  40213. node = fallbackChildParent;
  40214. continue;
  40215. }
  40216. }
  40217. }
  40218. }
  40219. if (node.child !== null) {
  40220. // Continue traversing like normal
  40221. node.child.return = node;
  40222. node = node.child;
  40223. continue;
  40224. }
  40225. } else if (node.child !== null) {
  40226. node.child.return = node;
  40227. node = node.child;
  40228. continue;
  40229. }
  40230. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  40231. node = node;
  40232. if (node === workInProgress) {
  40233. return;
  40234. }
  40235. while (node.sibling === null) {
  40236. if (node.return === null || node.return === workInProgress) {
  40237. return;
  40238. }
  40239. node = node.return;
  40240. }
  40241. node.sibling.return = node.return;
  40242. node = node.sibling;
  40243. }
  40244. };
  40245. updateHostContainer = function (workInProgress) {
  40246. var portalOrRoot = workInProgress.stateNode;
  40247. var childrenUnchanged = workInProgress.firstEffect === null;
  40248. if (childrenUnchanged) {
  40249. // No changes, just reuse the existing instance.
  40250. } else {
  40251. var container = portalOrRoot.containerInfo;
  40252. var newChildSet = createContainerChildSet(container);
  40253. // If children might have changed, we have to add them all to the set.
  40254. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  40255. portalOrRoot.pendingChildren = newChildSet;
  40256. // Schedule an update on the container to swap out the container.
  40257. markUpdate(workInProgress);
  40258. finalizeContainerChildren(container, newChildSet);
  40259. }
  40260. };
  40261. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  40262. var currentInstance = current.stateNode;
  40263. var oldProps = current.memoizedProps;
  40264. // If there are no effects associated with this node, then none of our children had any updates.
  40265. // This guarantees that we can reuse all of them.
  40266. var childrenUnchanged = workInProgress.firstEffect === null;
  40267. if (childrenUnchanged && oldProps === newProps) {
  40268. // No changes, just reuse the existing instance.
  40269. // Note that this might release a previous clone.
  40270. workInProgress.stateNode = currentInstance;
  40271. return;
  40272. }
  40273. var recyclableInstance = workInProgress.stateNode;
  40274. var currentHostContext = getHostContext();
  40275. var updatePayload = null;
  40276. if (oldProps !== newProps) {
  40277. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  40278. }
  40279. if (childrenUnchanged && updatePayload === null) {
  40280. // No changes, just reuse the existing instance.
  40281. // Note that this might release a previous clone.
  40282. workInProgress.stateNode = currentInstance;
  40283. return;
  40284. }
  40285. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  40286. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  40287. markUpdate(workInProgress);
  40288. }
  40289. workInProgress.stateNode = newInstance;
  40290. if (childrenUnchanged) {
  40291. // If there are no other effects in this tree, we need to flag this node as having one.
  40292. // Even though we're not going to use it for anything.
  40293. // Otherwise parents won't know that there are new children to propagate upwards.
  40294. markUpdate(workInProgress);
  40295. } else {
  40296. // If children might have changed, we have to add them all to the set.
  40297. appendAllChildren(newInstance, workInProgress, false, false);
  40298. }
  40299. };
  40300. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  40301. if (oldText !== newText) {
  40302. // If the text content differs, we'll create a new text instance for it.
  40303. var rootContainerInstance = getRootHostContainer();
  40304. var currentHostContext = getHostContext();
  40305. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  40306. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  40307. // This lets the parents know that at least one of their children has changed.
  40308. markUpdate(workInProgress);
  40309. }
  40310. };
  40311. } else {
  40312. // No host operations
  40313. updateHostContainer = function (workInProgress) {
  40314. // Noop
  40315. };
  40316. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  40317. // Noop
  40318. };
  40319. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  40320. // Noop
  40321. };
  40322. }
  40323. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  40324. switch (renderState.tailMode) {
  40325. case 'hidden':
  40326. {
  40327. // Any insertions at the end of the tail list after this point
  40328. // should be invisible. If there are already mounted boundaries
  40329. // anything before them are not considered for collapsing.
  40330. // Therefore we need to go through the whole tail to find if
  40331. // there are any.
  40332. var tailNode = renderState.tail;
  40333. var lastTailNode = null;
  40334. while (tailNode !== null) {
  40335. if (tailNode.alternate !== null) {
  40336. lastTailNode = tailNode;
  40337. }
  40338. tailNode = tailNode.sibling;
  40339. }
  40340. // Next we're simply going to delete all insertions after the
  40341. // last rendered item.
  40342. if (lastTailNode === null) {
  40343. // All remaining items in the tail are insertions.
  40344. renderState.tail = null;
  40345. } else {
  40346. // Detach the insertion after the last node that was already
  40347. // inserted.
  40348. lastTailNode.sibling = null;
  40349. }
  40350. break;
  40351. }
  40352. case 'collapsed':
  40353. {
  40354. // Any insertions at the end of the tail list after this point
  40355. // should be invisible. If there are already mounted boundaries
  40356. // anything before them are not considered for collapsing.
  40357. // Therefore we need to go through the whole tail to find if
  40358. // there are any.
  40359. var _tailNode = renderState.tail;
  40360. var _lastTailNode = null;
  40361. while (_tailNode !== null) {
  40362. if (_tailNode.alternate !== null) {
  40363. _lastTailNode = _tailNode;
  40364. }
  40365. _tailNode = _tailNode.sibling;
  40366. }
  40367. // Next we're simply going to delete all insertions after the
  40368. // last rendered item.
  40369. if (_lastTailNode === null) {
  40370. // All remaining items in the tail are insertions.
  40371. if (!hasRenderedATailFallback && renderState.tail !== null) {
  40372. // We suspended during the head. We want to show at least one
  40373. // row at the tail. So we'll keep on and cut off the rest.
  40374. renderState.tail.sibling = null;
  40375. } else {
  40376. renderState.tail = null;
  40377. }
  40378. } else {
  40379. // Detach the insertion after the last node that was already
  40380. // inserted.
  40381. _lastTailNode.sibling = null;
  40382. }
  40383. break;
  40384. }
  40385. }
  40386. }
  40387. function completeWork(current, workInProgress, renderExpirationTime) {
  40388. var newProps = workInProgress.pendingProps;
  40389. switch (workInProgress.tag) {
  40390. case IndeterminateComponent:
  40391. break;
  40392. case LazyComponent:
  40393. break;
  40394. case SimpleMemoComponent:
  40395. case FunctionComponent:
  40396. break;
  40397. case ClassComponent:
  40398. {
  40399. var Component = workInProgress.type;
  40400. if (isContextProvider(Component)) {
  40401. popContext(workInProgress);
  40402. }
  40403. break;
  40404. }
  40405. case HostRoot:
  40406. {
  40407. popHostContainer(workInProgress);
  40408. popTopLevelContextObject(workInProgress);
  40409. var fiberRoot = workInProgress.stateNode;
  40410. if (fiberRoot.pendingContext) {
  40411. fiberRoot.context = fiberRoot.pendingContext;
  40412. fiberRoot.pendingContext = null;
  40413. }
  40414. if (current === null || current.child === null) {
  40415. // If we hydrated, pop so that we can delete any remaining children
  40416. // that weren't hydrated.
  40417. popHydrationState(workInProgress);
  40418. // This resets the hacky state to fix isMounted before committing.
  40419. // TODO: Delete this when we delete isMounted and findDOMNode.
  40420. workInProgress.effectTag &= ~Placement;
  40421. }
  40422. updateHostContainer(workInProgress);
  40423. break;
  40424. }
  40425. case HostComponent:
  40426. {
  40427. popHostContext(workInProgress);
  40428. var rootContainerInstance = getRootHostContainer();
  40429. var type = workInProgress.type;
  40430. if (current !== null && workInProgress.stateNode != null) {
  40431. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  40432. if (enableFlareAPI) {
  40433. var prevListeners = current.memoizedProps.listeners;
  40434. var nextListeners = newProps.listeners;
  40435. var instance = workInProgress.stateNode;
  40436. if (prevListeners !== nextListeners) {
  40437. updateEventListeners(nextListeners, instance, rootContainerInstance, workInProgress);
  40438. }
  40439. }
  40440. if (current.ref !== workInProgress.ref) {
  40441. markRef$1(workInProgress);
  40442. }
  40443. } else {
  40444. if (!newProps) {
  40445. (function () {
  40446. if (!(workInProgress.stateNode !== null)) {
  40447. {
  40448. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  40449. }
  40450. }
  40451. })();
  40452. // This can happen when we abort work.
  40453. break;
  40454. }
  40455. var currentHostContext = getHostContext();
  40456. // TODO: Move createInstance to beginWork and keep it on a context
  40457. // "stack" as the parent. Then append children as we go in beginWork
  40458. // or completeWork depending on we want to add then top->down or
  40459. // bottom->up. Top->down is faster in IE11.
  40460. var wasHydrated = popHydrationState(workInProgress);
  40461. if (wasHydrated) {
  40462. // TODO: Move this and createInstance step into the beginPhase
  40463. // to consolidate.
  40464. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  40465. // If changes to the hydrated node needs to be applied at the
  40466. // commit-phase we mark this as such.
  40467. markUpdate(workInProgress);
  40468. }
  40469. } else {
  40470. var _instance5 = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  40471. appendAllChildren(_instance5, workInProgress, false, false);
  40472. if (enableFlareAPI) {
  40473. var listeners = newProps.listeners;
  40474. if (listeners != null) {
  40475. updateEventListeners(listeners, _instance5, rootContainerInstance, workInProgress);
  40476. }
  40477. }
  40478. // Certain renderers require commit-time effects for initial mount.
  40479. // (eg DOM renderer supports auto-focus for certain elements).
  40480. // Make sure such renderers get scheduled for later work.
  40481. if (finalizeInitialChildren(_instance5, type, newProps, rootContainerInstance, currentHostContext)) {
  40482. markUpdate(workInProgress);
  40483. }
  40484. workInProgress.stateNode = _instance5;
  40485. }
  40486. if (workInProgress.ref !== null) {
  40487. // If there is a ref on a host node we need to schedule a callback
  40488. markRef$1(workInProgress);
  40489. }
  40490. }
  40491. break;
  40492. }
  40493. case HostText:
  40494. {
  40495. var newText = newProps;
  40496. if (current && workInProgress.stateNode != null) {
  40497. var oldText = current.memoizedProps;
  40498. // If we have an alternate, that means this is an update and we need
  40499. // to schedule a side-effect to do the updates.
  40500. updateHostText$1(current, workInProgress, oldText, newText);
  40501. } else {
  40502. if (typeof newText !== 'string') {
  40503. (function () {
  40504. if (!(workInProgress.stateNode !== null)) {
  40505. {
  40506. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  40507. }
  40508. }
  40509. })();
  40510. // This can happen when we abort work.
  40511. }
  40512. var _rootContainerInstance = getRootHostContainer();
  40513. var _currentHostContext = getHostContext();
  40514. var _wasHydrated = popHydrationState(workInProgress);
  40515. if (_wasHydrated) {
  40516. if (prepareToHydrateHostTextInstance(workInProgress)) {
  40517. markUpdate(workInProgress);
  40518. }
  40519. } else {
  40520. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  40521. }
  40522. }
  40523. break;
  40524. }
  40525. case ForwardRef:
  40526. break;
  40527. case SuspenseComponent:
  40528. {
  40529. popSuspenseContext(workInProgress);
  40530. var nextState = workInProgress.memoizedState;
  40531. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  40532. // Something suspended. Re-render with the fallback children.
  40533. workInProgress.expirationTime = renderExpirationTime;
  40534. // Do not reset the effect list.
  40535. return workInProgress;
  40536. }
  40537. var nextDidTimeout = nextState !== null;
  40538. var prevDidTimeout = false;
  40539. if (current === null) {
  40540. // In cases where we didn't find a suitable hydration boundary we never
  40541. // downgraded this to a DehydratedSuspenseComponent, but we still need to
  40542. // pop the hydration state since we might be inside the insertion tree.
  40543. popHydrationState(workInProgress);
  40544. } else {
  40545. var prevState = current.memoizedState;
  40546. prevDidTimeout = prevState !== null;
  40547. if (!nextDidTimeout && prevState !== null) {
  40548. // We just switched from the fallback to the normal children.
  40549. // Delete the fallback.
  40550. // TODO: Would it be better to store the fallback fragment on
  40551. var currentFallbackChild = current.child.sibling;
  40552. if (currentFallbackChild !== null) {
  40553. // Deletions go at the beginning of the return fiber's effect list
  40554. var first = workInProgress.firstEffect;
  40555. if (first !== null) {
  40556. workInProgress.firstEffect = currentFallbackChild;
  40557. currentFallbackChild.nextEffect = first;
  40558. } else {
  40559. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  40560. currentFallbackChild.nextEffect = null;
  40561. }
  40562. currentFallbackChild.effectTag = Deletion;
  40563. }
  40564. }
  40565. }
  40566. if (nextDidTimeout && !prevDidTimeout) {
  40567. // If this subtreee is running in batched mode we can suspend,
  40568. // otherwise we won't suspend.
  40569. // TODO: This will still suspend a synchronous tree if anything
  40570. // in the concurrent tree already suspended during this render.
  40571. // This is a known bug.
  40572. if ((workInProgress.mode & BatchedMode) !== NoMode) {
  40573. // TODO: Move this back to throwException because this is too late
  40574. // if this is a large tree which is common for initial loads. We
  40575. // don't know if we should restart a render or not until we get
  40576. // this marker, and this is too late.
  40577. // If this render already had a ping or lower pri updates,
  40578. // and this is the first time we know we're going to suspend we
  40579. // should be able to immediately restart from within throwException.
  40580. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  40581. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  40582. // If this was in an invisible tree or a new render, then showing
  40583. // this boundary is ok.
  40584. renderDidSuspend();
  40585. } else {
  40586. // Otherwise, we're going to have to hide content so we should
  40587. // suspend for longer if possible.
  40588. renderDidSuspendDelayIfPossible();
  40589. }
  40590. }
  40591. }
  40592. if (supportsPersistence) {
  40593. // TODO: Only schedule updates if not prevDidTimeout.
  40594. if (nextDidTimeout) {
  40595. // If this boundary just timed out, schedule an effect to attach a
  40596. // retry listener to the proimse. This flag is also used to hide the
  40597. // primary children.
  40598. workInProgress.effectTag |= Update;
  40599. }
  40600. }
  40601. if (supportsMutation) {
  40602. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  40603. if (nextDidTimeout || prevDidTimeout) {
  40604. // If this boundary just timed out, schedule an effect to attach a
  40605. // retry listener to the proimse. This flag is also used to hide the
  40606. // primary children. In mutation mode, we also need the flag to
  40607. // *unhide* children that were previously hidden, so check if the
  40608. // is currently timed out, too.
  40609. workInProgress.effectTag |= Update;
  40610. }
  40611. }
  40612. if (enableSuspenseCallback && workInProgress.updateQueue !== null && workInProgress.memoizedProps.suspenseCallback != null) {
  40613. // Always notify the callback
  40614. workInProgress.effectTag |= Update;
  40615. }
  40616. break;
  40617. }
  40618. case Fragment:
  40619. break;
  40620. case Mode:
  40621. break;
  40622. case Profiler:
  40623. break;
  40624. case HostPortal:
  40625. popHostContainer(workInProgress);
  40626. updateHostContainer(workInProgress);
  40627. break;
  40628. case ContextProvider:
  40629. // Pop provider fiber
  40630. popProvider(workInProgress);
  40631. break;
  40632. case ContextConsumer:
  40633. break;
  40634. case MemoComponent:
  40635. break;
  40636. case IncompleteClassComponent:
  40637. {
  40638. // Same as class component case. I put it down here so that the tags are
  40639. // sequential to ensure this switch is compiled to a jump table.
  40640. var _Component = workInProgress.type;
  40641. if (isContextProvider(_Component)) {
  40642. popContext(workInProgress);
  40643. }
  40644. break;
  40645. }
  40646. case DehydratedSuspenseComponent:
  40647. {
  40648. if (enableSuspenseServerRenderer) {
  40649. popSuspenseContext(workInProgress);
  40650. if (current === null) {
  40651. var _wasHydrated2 = popHydrationState(workInProgress);
  40652. (function () {
  40653. if (!_wasHydrated2) {
  40654. {
  40655. throw ReactError(Error('A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.'));
  40656. }
  40657. }
  40658. })();
  40659. if (enableSchedulerTracing) {
  40660. markSpawnedWork(Never);
  40661. }
  40662. skipPastDehydratedSuspenseInstance(workInProgress);
  40663. } else if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  40664. // This boundary did not suspend so it's now hydrated.
  40665. // To handle any future suspense cases, we're going to now upgrade it
  40666. // to a Suspense component. We detach it from the existing current fiber.
  40667. current.alternate = null;
  40668. workInProgress.alternate = null;
  40669. workInProgress.tag = SuspenseComponent;
  40670. workInProgress.memoizedState = null;
  40671. workInProgress.stateNode = null;
  40672. }
  40673. }
  40674. break;
  40675. }
  40676. case SuspenseListComponent:
  40677. {
  40678. popSuspenseContext(workInProgress);
  40679. var renderState = workInProgress.memoizedState;
  40680. if (renderState === null) {
  40681. // We're running in the default, "independent" mode. We don't do anything
  40682. // in this mode.
  40683. break;
  40684. }
  40685. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  40686. var renderedTail = renderState.rendering;
  40687. if (renderedTail === null) {
  40688. // We just rendered the head.
  40689. if (!didSuspendAlready) {
  40690. // This is the first pass. We need to figure out if anything is still
  40691. // suspended in the rendered set.
  40692. // If new content unsuspended, but there's still some content that
  40693. // didn't. Then we need to do a second pass that forces everything
  40694. // to keep showing their fallbacks.
  40695. // We might be suspended if something in this render pass suspended, or
  40696. // something in the previous committed pass suspended. Otherwise,
  40697. // there's no chance so we can skip the expensive call to
  40698. // findFirstSuspended.
  40699. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  40700. if (!cannotBeSuspended) {
  40701. var row = workInProgress.child;
  40702. while (row !== null) {
  40703. var suspended = findFirstSuspended(row);
  40704. if (suspended !== null) {
  40705. didSuspendAlready = true;
  40706. workInProgress.effectTag |= DidCapture;
  40707. cutOffTailIfNeeded(renderState, false);
  40708. // If this is a newly suspended tree, it might not get committed as
  40709. // part of the second pass. In that case nothing will subscribe to
  40710. // its thennables. Instead, we'll transfer its thennables to the
  40711. // SuspenseList so that it can retry if they resolve.
  40712. // There might be multiple of these in the list but since we're
  40713. // going to wait for all of them anyway, it doesn't really matter
  40714. // which ones gets to ping. In theory we could get clever and keep
  40715. // track of how many dependencies remain but it gets tricky because
  40716. // in the meantime, we can add/remove/change items and dependencies.
  40717. // We might bail out of the loop before finding any but that
  40718. // doesn't matter since that means that the other boundaries that
  40719. // we did find already has their listeners attached.
  40720. var newThennables = suspended.updateQueue;
  40721. if (newThennables !== null) {
  40722. workInProgress.updateQueue = newThennables;
  40723. workInProgress.effectTag |= Update;
  40724. }
  40725. // Rerender the whole list, but this time, we'll force fallbacks
  40726. // to stay in place.
  40727. // Reset the effect list before doing the second pass since that's now invalid.
  40728. workInProgress.firstEffect = workInProgress.lastEffect = null;
  40729. // Reset the child fibers to their original state.
  40730. resetChildFibers(workInProgress, renderExpirationTime);
  40731. // Set up the Suspense Context to force suspense and immediately
  40732. // rerender the children.
  40733. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  40734. return workInProgress.child;
  40735. }
  40736. row = row.sibling;
  40737. }
  40738. }
  40739. } else {
  40740. cutOffTailIfNeeded(renderState, false);
  40741. }
  40742. // Next we're going to render the tail.
  40743. } else {
  40744. // Append the rendered row to the child list.
  40745. if (!didSuspendAlready) {
  40746. var _suspended = findFirstSuspended(renderedTail);
  40747. if (_suspended !== null) {
  40748. workInProgress.effectTag |= DidCapture;
  40749. didSuspendAlready = true;
  40750. cutOffTailIfNeeded(renderState, true);
  40751. // This might have been modified.
  40752. if (renderState.tail === null && renderState.tailMode === 'hidden') {
  40753. // We need to delete the row we just rendered.
  40754. // Ensure we transfer the update queue to the parent.
  40755. var _newThennables = _suspended.updateQueue;
  40756. if (_newThennables !== null) {
  40757. workInProgress.updateQueue = _newThennables;
  40758. workInProgress.effectTag |= Update;
  40759. }
  40760. // Reset the effect list to what it w as before we rendered this
  40761. // child. The nested children have already appended themselves.
  40762. var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
  40763. // Remove any effects that were appended after this point.
  40764. if (lastEffect !== null) {
  40765. lastEffect.nextEffect = null;
  40766. }
  40767. // We're done.
  40768. return null;
  40769. }
  40770. } else if (now() > renderState.tailExpiration && renderExpirationTime > Never) {
  40771. // We have now passed our CPU deadline and we'll just give up further
  40772. // attempts to render the main content and only render fallbacks.
  40773. // The assumption is that this is usually faster.
  40774. workInProgress.effectTag |= DidCapture;
  40775. didSuspendAlready = true;
  40776. cutOffTailIfNeeded(renderState, false);
  40777. // Since nothing actually suspended, there will nothing to ping this
  40778. // to get it started back up to attempt the next item. If we can show
  40779. // them, then they really have the same priority as this render.
  40780. // So we'll pick it back up the very next render pass once we've had
  40781. // an opportunity to yield for paint.
  40782. var nextPriority = renderExpirationTime - 1;
  40783. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  40784. if (enableSchedulerTracing) {
  40785. markSpawnedWork(nextPriority);
  40786. }
  40787. }
  40788. }
  40789. if (renderState.isBackwards) {
  40790. // The effect list of the backwards tail will have been added
  40791. // to the end. This breaks the guarantee that life-cycles fire in
  40792. // sibling order but that isn't a strong guarantee promised by React.
  40793. // Especially since these might also just pop in during future commits.
  40794. // Append to the beginning of the list.
  40795. renderedTail.sibling = workInProgress.child;
  40796. workInProgress.child = renderedTail;
  40797. } else {
  40798. var previousSibling = renderState.last;
  40799. if (previousSibling !== null) {
  40800. previousSibling.sibling = renderedTail;
  40801. } else {
  40802. workInProgress.child = renderedTail;
  40803. }
  40804. renderState.last = renderedTail;
  40805. }
  40806. }
  40807. if (renderState.tail !== null) {
  40808. // We still have tail rows to render.
  40809. if (renderState.tailExpiration === 0) {
  40810. // Heuristic for how long we're willing to spend rendering rows
  40811. // until we just give up and show what we have so far.
  40812. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  40813. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS;
  40814. }
  40815. // Pop a row.
  40816. var next = renderState.tail;
  40817. renderState.rendering = next;
  40818. renderState.tail = next.sibling;
  40819. renderState.lastEffect = workInProgress.lastEffect;
  40820. next.sibling = null;
  40821. // Restore the context.
  40822. // TODO: We can probably just avoid popping it instead and only
  40823. // setting it the first time we go from not suspended to suspended.
  40824. var suspenseContext = suspenseStackCursor.current;
  40825. if (didSuspendAlready) {
  40826. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  40827. } else {
  40828. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  40829. }
  40830. pushSuspenseContext(workInProgress, suspenseContext);
  40831. // Do a pass over the next row.
  40832. return next;
  40833. }
  40834. break;
  40835. }
  40836. case FundamentalComponent:
  40837. {
  40838. if (enableFundamentalAPI) {
  40839. var fundamentalImpl = workInProgress.type.impl;
  40840. var fundamentalInstance = workInProgress.stateNode;
  40841. if (fundamentalInstance === null) {
  40842. var getInitialState = fundamentalImpl.getInitialState;
  40843. var fundamentalState = void 0;
  40844. if (getInitialState !== undefined) {
  40845. fundamentalState = getInitialState(newProps);
  40846. }
  40847. fundamentalInstance = workInProgress.stateNode = createFundamentalStateInstance(workInProgress, newProps, fundamentalImpl, fundamentalState || {});
  40848. var _instance6 = getFundamentalComponentInstance(fundamentalInstance);
  40849. fundamentalInstance.instance = _instance6;
  40850. if (fundamentalImpl.reconcileChildren === false) {
  40851. return null;
  40852. }
  40853. appendAllChildren(_instance6, workInProgress, false, false);
  40854. mountFundamentalComponent(fundamentalInstance);
  40855. } else {
  40856. // We fire update in commit phase
  40857. var prevProps = fundamentalInstance.props;
  40858. fundamentalInstance.prevProps = prevProps;
  40859. fundamentalInstance.props = newProps;
  40860. fundamentalInstance.currentFiber = workInProgress;
  40861. if (supportsPersistence) {
  40862. var _instance7 = cloneFundamentalInstance(fundamentalInstance);
  40863. fundamentalInstance.instance = _instance7;
  40864. appendAllChildren(_instance7, workInProgress, false, false);
  40865. }
  40866. var shouldUpdate = shouldUpdateFundamentalComponent(fundamentalInstance);
  40867. if (shouldUpdate) {
  40868. markUpdate(workInProgress);
  40869. }
  40870. }
  40871. }
  40872. break;
  40873. }
  40874. default:
  40875. (function () {
  40876. {
  40877. {
  40878. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  40879. }
  40880. }
  40881. })();
  40882. }
  40883. return null;
  40884. }
  40885. function mountEventResponder$1(responder, responderProps, instance, rootContainerInstance, fiber, respondersMap) {
  40886. var responderState = emptyObject;
  40887. var getInitialState = responder.getInitialState;
  40888. if (getInitialState !== null) {
  40889. responderState = getInitialState(responderProps);
  40890. }
  40891. var responderInstance = createResponderInstance(responder, responderProps, responderState, instance, fiber);
  40892. mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance);
  40893. respondersMap.set(responder, responderInstance);
  40894. }
  40895. function updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance) {
  40896. var responder = void 0;
  40897. var props = void 0;
  40898. if (listener) {
  40899. responder = listener.responder;
  40900. props = listener.props;
  40901. }
  40902. (function () {
  40903. if (!(responder && responder.$$typeof === REACT_RESPONDER_TYPE)) {
  40904. {
  40905. throw ReactError(Error('An invalid value was used as an event listener. Expect one or many event listeners created via React.unstable_useResponer().'));
  40906. }
  40907. }
  40908. })();
  40909. var listenerProps = props;
  40910. if (visistedResponders.has(responder)) {
  40911. // show warning
  40912. {
  40913. warning$1(false, 'Duplicate event responder "%s" found in event listeners. ' + 'Event listeners passed to elements cannot use the same event responder more than once.', responder.displayName);
  40914. }
  40915. return;
  40916. }
  40917. visistedResponders.add(responder);
  40918. var responderInstance = respondersMap.get(responder);
  40919. if (responderInstance === undefined) {
  40920. // Mount
  40921. mountEventResponder$1(responder, listenerProps, instance, rootContainerInstance, fiber, respondersMap);
  40922. } else {
  40923. // Update
  40924. responderInstance.props = listenerProps;
  40925. responderInstance.fiber = fiber;
  40926. }
  40927. }
  40928. function updateEventListeners(listeners, instance, rootContainerInstance, fiber) {
  40929. var visistedResponders = new Set();
  40930. var dependencies = fiber.dependencies;
  40931. if (listeners != null) {
  40932. if (dependencies === null) {
  40933. dependencies = fiber.dependencies = {
  40934. expirationTime: NoWork,
  40935. firstContext: null,
  40936. responders: new Map()
  40937. };
  40938. }
  40939. var respondersMap = dependencies.responders;
  40940. if (respondersMap === null) {
  40941. respondersMap = new Map();
  40942. }
  40943. if (isArray$2(listeners)) {
  40944. for (var i = 0, length = listeners.length; i < length; i++) {
  40945. var listener = listeners[i];
  40946. updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  40947. }
  40948. } else {
  40949. updateEventListener(listeners, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  40950. }
  40951. }
  40952. if (dependencies !== null) {
  40953. var _respondersMap = dependencies.responders;
  40954. if (_respondersMap !== null) {
  40955. // Unmount
  40956. var mountedResponders = Array.from(_respondersMap.keys());
  40957. for (var _i = 0, _length = mountedResponders.length; _i < _length; _i++) {
  40958. var mountedResponder = mountedResponders[_i];
  40959. if (!visistedResponders.has(mountedResponder)) {
  40960. var responderInstance = _respondersMap.get(mountedResponder);
  40961. unmountResponderInstance(responderInstance);
  40962. _respondersMap.delete(mountedResponder);
  40963. }
  40964. }
  40965. }
  40966. }
  40967. }
  40968. function unwindWork(workInProgress, renderExpirationTime) {
  40969. switch (workInProgress.tag) {
  40970. case ClassComponent:
  40971. {
  40972. var Component = workInProgress.type;
  40973. if (isContextProvider(Component)) {
  40974. popContext(workInProgress);
  40975. }
  40976. var effectTag = workInProgress.effectTag;
  40977. if (effectTag & ShouldCapture) {
  40978. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  40979. return workInProgress;
  40980. }
  40981. return null;
  40982. }
  40983. case HostRoot:
  40984. {
  40985. popHostContainer(workInProgress);
  40986. popTopLevelContextObject(workInProgress);
  40987. var _effectTag = workInProgress.effectTag;
  40988. (function () {
  40989. if (!((_effectTag & DidCapture) === NoEffect)) {
  40990. {
  40991. throw ReactError(Error('The root failed to unmount after an error. This is likely a bug in React. Please file an issue.'));
  40992. }
  40993. }
  40994. })();
  40995. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  40996. return workInProgress;
  40997. }
  40998. case HostComponent:
  40999. {
  41000. // TODO: popHydrationState
  41001. popHostContext(workInProgress);
  41002. return null;
  41003. }
  41004. case SuspenseComponent:
  41005. {
  41006. popSuspenseContext(workInProgress);
  41007. var _effectTag2 = workInProgress.effectTag;
  41008. if (_effectTag2 & ShouldCapture) {
  41009. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  41010. // Captured a suspense effect. Re-render the boundary.
  41011. return workInProgress;
  41012. }
  41013. return null;
  41014. }
  41015. case DehydratedSuspenseComponent:
  41016. {
  41017. if (enableSuspenseServerRenderer) {
  41018. // TODO: popHydrationState
  41019. popSuspenseContext(workInProgress);
  41020. var _effectTag3 = workInProgress.effectTag;
  41021. if (_effectTag3 & ShouldCapture) {
  41022. workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture;
  41023. // Captured a suspense effect. Re-render the boundary.
  41024. return workInProgress;
  41025. }
  41026. }
  41027. return null;
  41028. }
  41029. case SuspenseListComponent:
  41030. {
  41031. popSuspenseContext(workInProgress);
  41032. // SuspenseList doesn't actually catch anything. It should've been
  41033. // caught by a nested boundary. If not, it should bubble through.
  41034. return null;
  41035. }
  41036. case HostPortal:
  41037. popHostContainer(workInProgress);
  41038. return null;
  41039. case ContextProvider:
  41040. popProvider(workInProgress);
  41041. return null;
  41042. default:
  41043. return null;
  41044. }
  41045. }
  41046. function unwindInterruptedWork(interruptedWork) {
  41047. switch (interruptedWork.tag) {
  41048. case ClassComponent:
  41049. {
  41050. var childContextTypes = interruptedWork.type.childContextTypes;
  41051. if (childContextTypes !== null && childContextTypes !== undefined) {
  41052. popContext(interruptedWork);
  41053. }
  41054. break;
  41055. }
  41056. case HostRoot:
  41057. {
  41058. popHostContainer(interruptedWork);
  41059. popTopLevelContextObject(interruptedWork);
  41060. break;
  41061. }
  41062. case HostComponent:
  41063. {
  41064. popHostContext(interruptedWork);
  41065. break;
  41066. }
  41067. case HostPortal:
  41068. popHostContainer(interruptedWork);
  41069. break;
  41070. case SuspenseComponent:
  41071. popSuspenseContext(interruptedWork);
  41072. break;
  41073. case DehydratedSuspenseComponent:
  41074. if (enableSuspenseServerRenderer) {
  41075. // TODO: popHydrationState
  41076. popSuspenseContext(interruptedWork);
  41077. }
  41078. break;
  41079. case SuspenseListComponent:
  41080. popSuspenseContext(interruptedWork);
  41081. break;
  41082. case ContextProvider:
  41083. popProvider(interruptedWork);
  41084. break;
  41085. default:
  41086. break;
  41087. }
  41088. }
  41089. function createCapturedValue(value, source) {
  41090. // If the value is an error, call this function immediately after it is thrown
  41091. // so the stack is accurate.
  41092. return {
  41093. value: value,
  41094. source: source,
  41095. stack: getStackByFiberInDevAndProd(source)
  41096. };
  41097. }
  41098. // This module is forked in different environments.
  41099. // By default, return `true` to log errors to the console.
  41100. // Forks can return `false` if this isn't desirable.
  41101. function showErrorDialog(capturedError) {
  41102. return true;
  41103. }
  41104. function logCapturedError(capturedError) {
  41105. var logError = showErrorDialog(capturedError);
  41106. // Allow injected showErrorDialog() to prevent default console.error logging.
  41107. // This enables renderers like ReactNative to better manage redbox behavior.
  41108. if (logError === false) {
  41109. return;
  41110. }
  41111. var error = capturedError.error;
  41112. {
  41113. var componentName = capturedError.componentName,
  41114. componentStack = capturedError.componentStack,
  41115. errorBoundaryName = capturedError.errorBoundaryName,
  41116. errorBoundaryFound = capturedError.errorBoundaryFound,
  41117. willRetry = capturedError.willRetry;
  41118. // Browsers support silencing uncaught errors by calling
  41119. // `preventDefault()` in window `error` handler.
  41120. // We record this information as an expando on the error.
  41121. if (error != null && error._suppressLogging) {
  41122. if (errorBoundaryFound && willRetry) {
  41123. // The error is recoverable and was silenced.
  41124. // Ignore it and don't print the stack addendum.
  41125. // This is handy for testing error boundaries without noise.
  41126. return;
  41127. }
  41128. // The error is fatal. Since the silencing might have
  41129. // been accidental, we'll surface it anyway.
  41130. // However, the browser would have silenced the original error
  41131. // so we'll print it first, and then print the stack addendum.
  41132. console.error(error);
  41133. // For a more detailed description of this block, see:
  41134. // https://github.com/facebook/react/pull/13384
  41135. }
  41136. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  41137. var errorBoundaryMessage = void 0;
  41138. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  41139. if (errorBoundaryFound && errorBoundaryName) {
  41140. if (willRetry) {
  41141. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  41142. } else {
  41143. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  41144. }
  41145. } else {
  41146. 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.';
  41147. }
  41148. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  41149. // In development, we provide our own message with just the component stack.
  41150. // We don't include the original error message and JS stack because the browser
  41151. // has already printed it. Even if the application swallows the error, it is still
  41152. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  41153. console.error(combinedMessage);
  41154. }
  41155. }
  41156. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  41157. {
  41158. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  41159. }
  41160. var PossiblyWeakSet$1 = typeof WeakSet === 'function' ? WeakSet : Set;
  41161. function logError(boundary, errorInfo) {
  41162. var source = errorInfo.source;
  41163. var stack = errorInfo.stack;
  41164. if (stack === null && source !== null) {
  41165. stack = getStackByFiberInDevAndProd(source);
  41166. }
  41167. var capturedError = {
  41168. componentName: source !== null ? getComponentName(source.type) : null,
  41169. componentStack: stack !== null ? stack : '',
  41170. error: errorInfo.value,
  41171. errorBoundary: null,
  41172. errorBoundaryName: null,
  41173. errorBoundaryFound: false,
  41174. willRetry: false
  41175. };
  41176. if (boundary !== null && boundary.tag === ClassComponent) {
  41177. capturedError.errorBoundary = boundary.stateNode;
  41178. capturedError.errorBoundaryName = getComponentName(boundary.type);
  41179. capturedError.errorBoundaryFound = true;
  41180. capturedError.willRetry = true;
  41181. }
  41182. try {
  41183. logCapturedError(capturedError);
  41184. } catch (e) {
  41185. // This method must not throw, or React internal state will get messed up.
  41186. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  41187. // we want to report this error outside of the normal stack as a last resort.
  41188. // https://github.com/facebook/react/issues/13188
  41189. setTimeout(function () {
  41190. throw e;
  41191. });
  41192. }
  41193. }
  41194. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  41195. startPhaseTimer(current$$1, 'componentWillUnmount');
  41196. instance.props = current$$1.memoizedProps;
  41197. instance.state = current$$1.memoizedState;
  41198. instance.componentWillUnmount();
  41199. stopPhaseTimer();
  41200. };
  41201. // Capture errors so they don't interrupt unmounting.
  41202. function safelyCallComponentWillUnmount(current$$1, instance) {
  41203. {
  41204. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  41205. if (hasCaughtError()) {
  41206. var unmountError = clearCaughtError();
  41207. captureCommitPhaseError(current$$1, unmountError);
  41208. }
  41209. }
  41210. }
  41211. function safelyDetachRef(current$$1) {
  41212. var ref = current$$1.ref;
  41213. if (ref !== null) {
  41214. if (typeof ref === 'function') {
  41215. {
  41216. invokeGuardedCallback(null, ref, null, null);
  41217. if (hasCaughtError()) {
  41218. var refError = clearCaughtError();
  41219. captureCommitPhaseError(current$$1, refError);
  41220. }
  41221. }
  41222. } else {
  41223. ref.current = null;
  41224. }
  41225. }
  41226. }
  41227. function safelyCallDestroy(current$$1, destroy) {
  41228. {
  41229. invokeGuardedCallback(null, destroy, null);
  41230. if (hasCaughtError()) {
  41231. var error = clearCaughtError();
  41232. captureCommitPhaseError(current$$1, error);
  41233. }
  41234. }
  41235. }
  41236. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  41237. switch (finishedWork.tag) {
  41238. case FunctionComponent:
  41239. case ForwardRef:
  41240. case SimpleMemoComponent:
  41241. {
  41242. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  41243. return;
  41244. }
  41245. case ClassComponent:
  41246. {
  41247. if (finishedWork.effectTag & Snapshot) {
  41248. if (current$$1 !== null) {
  41249. var prevProps = current$$1.memoizedProps;
  41250. var prevState = current$$1.memoizedState;
  41251. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  41252. var instance = finishedWork.stateNode;
  41253. // We could update instance props and state here,
  41254. // but instead we rely on them being set during last render.
  41255. // TODO: revisit this when we implement resuming.
  41256. {
  41257. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41258. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41259. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41260. }
  41261. }
  41262. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  41263. {
  41264. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  41265. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  41266. didWarnSet.add(finishedWork.type);
  41267. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  41268. }
  41269. }
  41270. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  41271. stopPhaseTimer();
  41272. }
  41273. }
  41274. return;
  41275. }
  41276. case HostRoot:
  41277. case HostComponent:
  41278. case HostText:
  41279. case HostPortal:
  41280. case IncompleteClassComponent:
  41281. // Nothing to do for these component types
  41282. return;
  41283. default:
  41284. {
  41285. (function () {
  41286. {
  41287. {
  41288. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  41289. }
  41290. }
  41291. })();
  41292. }
  41293. }
  41294. }
  41295. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  41296. var updateQueue = finishedWork.updateQueue;
  41297. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  41298. if (lastEffect !== null) {
  41299. var firstEffect = lastEffect.next;
  41300. var effect = firstEffect;
  41301. do {
  41302. if ((effect.tag & unmountTag) !== NoEffect$1) {
  41303. // Unmount
  41304. var destroy = effect.destroy;
  41305. effect.destroy = undefined;
  41306. if (destroy !== undefined) {
  41307. destroy();
  41308. }
  41309. }
  41310. if ((effect.tag & mountTag) !== NoEffect$1) {
  41311. // Mount
  41312. var create = effect.create;
  41313. effect.destroy = create();
  41314. {
  41315. var _destroy = effect.destroy;
  41316. if (_destroy !== undefined && typeof _destroy !== 'function') {
  41317. var addendum = void 0;
  41318. if (_destroy === null) {
  41319. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  41320. } else if (typeof _destroy.then === 'function') {
  41321. 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';
  41322. } else {
  41323. addendum = ' You returned: ' + _destroy;
  41324. }
  41325. warningWithoutStack$1(false, 'An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  41326. }
  41327. }
  41328. }
  41329. effect = effect.next;
  41330. } while (effect !== firstEffect);
  41331. }
  41332. }
  41333. function commitPassiveHookEffects(finishedWork) {
  41334. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  41335. switch (finishedWork.tag) {
  41336. case FunctionComponent:
  41337. case ForwardRef:
  41338. case SimpleMemoComponent:
  41339. {
  41340. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  41341. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  41342. break;
  41343. }
  41344. default:
  41345. break;
  41346. }
  41347. }
  41348. }
  41349. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  41350. switch (finishedWork.tag) {
  41351. case FunctionComponent:
  41352. case ForwardRef:
  41353. case SimpleMemoComponent:
  41354. {
  41355. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  41356. break;
  41357. }
  41358. case ClassComponent:
  41359. {
  41360. var instance = finishedWork.stateNode;
  41361. if (finishedWork.effectTag & Update) {
  41362. if (current$$1 === null) {
  41363. startPhaseTimer(finishedWork, 'componentDidMount');
  41364. // We could update instance props and state here,
  41365. // but instead we rely on them being set during last render.
  41366. // TODO: revisit this when we implement resuming.
  41367. {
  41368. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41369. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41370. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41371. }
  41372. }
  41373. instance.componentDidMount();
  41374. stopPhaseTimer();
  41375. } else {
  41376. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  41377. var prevState = current$$1.memoizedState;
  41378. startPhaseTimer(finishedWork, 'componentDidUpdate');
  41379. // We could update instance props and state here,
  41380. // but instead we rely on them being set during last render.
  41381. // TODO: revisit this when we implement resuming.
  41382. {
  41383. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41384. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41385. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41386. }
  41387. }
  41388. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  41389. stopPhaseTimer();
  41390. }
  41391. }
  41392. var updateQueue = finishedWork.updateQueue;
  41393. if (updateQueue !== null) {
  41394. {
  41395. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41396. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41397. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  41398. }
  41399. }
  41400. // We could update instance props and state here,
  41401. // but instead we rely on them being set during last render.
  41402. // TODO: revisit this when we implement resuming.
  41403. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  41404. }
  41405. return;
  41406. }
  41407. case HostRoot:
  41408. {
  41409. var _updateQueue = finishedWork.updateQueue;
  41410. if (_updateQueue !== null) {
  41411. var _instance = null;
  41412. if (finishedWork.child !== null) {
  41413. switch (finishedWork.child.tag) {
  41414. case HostComponent:
  41415. _instance = getPublicInstance(finishedWork.child.stateNode);
  41416. break;
  41417. case ClassComponent:
  41418. _instance = finishedWork.child.stateNode;
  41419. break;
  41420. }
  41421. }
  41422. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  41423. }
  41424. return;
  41425. }
  41426. case HostComponent:
  41427. {
  41428. var _instance2 = finishedWork.stateNode;
  41429. // Renderers may schedule work to be done after host components are mounted
  41430. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  41431. // These effects should only be committed when components are first mounted,
  41432. // aka when there is no current/alternate.
  41433. if (current$$1 === null && finishedWork.effectTag & Update) {
  41434. var type = finishedWork.type;
  41435. var props = finishedWork.memoizedProps;
  41436. commitMount(_instance2, type, props, finishedWork);
  41437. }
  41438. return;
  41439. }
  41440. case HostText:
  41441. {
  41442. // We have no life-cycles associated with text.
  41443. return;
  41444. }
  41445. case HostPortal:
  41446. {
  41447. // We have no life-cycles associated with portals.
  41448. return;
  41449. }
  41450. case Profiler:
  41451. {
  41452. if (enableProfilerTimer) {
  41453. var onRender = finishedWork.memoizedProps.onRender;
  41454. if (typeof onRender === 'function') {
  41455. if (enableSchedulerTracing) {
  41456. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  41457. } else {
  41458. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  41459. }
  41460. }
  41461. }
  41462. return;
  41463. }
  41464. case SuspenseComponent:
  41465. case SuspenseListComponent:
  41466. case IncompleteClassComponent:
  41467. case FundamentalComponent:
  41468. return;
  41469. default:
  41470. {
  41471. (function () {
  41472. {
  41473. {
  41474. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  41475. }
  41476. }
  41477. })();
  41478. }
  41479. }
  41480. }
  41481. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  41482. if (supportsMutation) {
  41483. // We only have the top Fiber that was inserted but we need to recurse down its
  41484. var node = finishedWork;
  41485. while (true) {
  41486. if (node.tag === HostComponent) {
  41487. var instance = node.stateNode;
  41488. if (isHidden) {
  41489. hideInstance(instance);
  41490. } else {
  41491. unhideInstance(node.stateNode, node.memoizedProps);
  41492. }
  41493. } else if (node.tag === HostText) {
  41494. var _instance3 = node.stateNode;
  41495. if (isHidden) {
  41496. hideTextInstance(_instance3);
  41497. } else {
  41498. unhideTextInstance(_instance3, node.memoizedProps);
  41499. }
  41500. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  41501. // Found a nested Suspense component that timed out. Skip over the
  41502. var fallbackChildFragment = node.child.sibling;
  41503. fallbackChildFragment.return = node;
  41504. node = fallbackChildFragment;
  41505. continue;
  41506. } else if (node.child !== null) {
  41507. node.child.return = node;
  41508. node = node.child;
  41509. continue;
  41510. }
  41511. if (node === finishedWork) {
  41512. return;
  41513. }
  41514. while (node.sibling === null) {
  41515. if (node.return === null || node.return === finishedWork) {
  41516. return;
  41517. }
  41518. node = node.return;
  41519. }
  41520. node.sibling.return = node.return;
  41521. node = node.sibling;
  41522. }
  41523. }
  41524. }
  41525. function commitAttachRef(finishedWork) {
  41526. var ref = finishedWork.ref;
  41527. if (ref !== null) {
  41528. var instance = finishedWork.stateNode;
  41529. var instanceToUse = void 0;
  41530. switch (finishedWork.tag) {
  41531. case HostComponent:
  41532. instanceToUse = getPublicInstance(instance);
  41533. break;
  41534. default:
  41535. instanceToUse = instance;
  41536. }
  41537. if (typeof ref === 'function') {
  41538. ref(instanceToUse);
  41539. } else {
  41540. {
  41541. if (!ref.hasOwnProperty('current')) {
  41542. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  41543. }
  41544. }
  41545. ref.current = instanceToUse;
  41546. }
  41547. }
  41548. }
  41549. function commitDetachRef(current$$1) {
  41550. var currentRef = current$$1.ref;
  41551. if (currentRef !== null) {
  41552. if (typeof currentRef === 'function') {
  41553. currentRef(null);
  41554. } else {
  41555. currentRef.current = null;
  41556. }
  41557. }
  41558. }
  41559. // User-originating errors (lifecycles and refs) should not interrupt
  41560. // deletion, so don't let them throw. Host-originating errors should
  41561. // interrupt deletion, so it's okay
  41562. function commitUnmount(current$$1, renderPriorityLevel) {
  41563. onCommitUnmount(current$$1);
  41564. switch (current$$1.tag) {
  41565. case FunctionComponent:
  41566. case ForwardRef:
  41567. case MemoComponent:
  41568. case SimpleMemoComponent:
  41569. {
  41570. var updateQueue = current$$1.updateQueue;
  41571. if (updateQueue !== null) {
  41572. var lastEffect = updateQueue.lastEffect;
  41573. if (lastEffect !== null) {
  41574. var firstEffect = lastEffect.next;
  41575. // When the owner fiber is deleted, the destroy function of a passive
  41576. // effect hook is called during the synchronous commit phase. This is
  41577. // a concession to implementation complexity. Calling it in the
  41578. // passive effect phase (like they usually are, when dependencies
  41579. // change during an update) would require either traversing the
  41580. // children of the deleted fiber again, or including unmount effects
  41581. // as part of the fiber effect list.
  41582. //
  41583. // Because this is during the sync commit phase, we need to change
  41584. // the priority.
  41585. //
  41586. // TODO: Reconsider this implementation trade off.
  41587. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  41588. runWithPriority$2(priorityLevel, function () {
  41589. var effect = firstEffect;
  41590. do {
  41591. var destroy = effect.destroy;
  41592. if (destroy !== undefined) {
  41593. safelyCallDestroy(current$$1, destroy);
  41594. }
  41595. effect = effect.next;
  41596. } while (effect !== firstEffect);
  41597. });
  41598. }
  41599. }
  41600. break;
  41601. }
  41602. case ClassComponent:
  41603. {
  41604. safelyDetachRef(current$$1);
  41605. var instance = current$$1.stateNode;
  41606. if (typeof instance.componentWillUnmount === 'function') {
  41607. safelyCallComponentWillUnmount(current$$1, instance);
  41608. }
  41609. return;
  41610. }
  41611. case HostComponent:
  41612. {
  41613. if (enableFlareAPI) {
  41614. var dependencies = current$$1.dependencies;
  41615. if (dependencies !== null) {
  41616. var respondersMap = dependencies.responders;
  41617. if (respondersMap !== null) {
  41618. var responderInstances = Array.from(respondersMap.values());
  41619. for (var i = 0, length = responderInstances.length; i < length; i++) {
  41620. var responderInstance = responderInstances[i];
  41621. unmountResponderInstance(responderInstance);
  41622. }
  41623. dependencies.responders = null;
  41624. }
  41625. }
  41626. }
  41627. safelyDetachRef(current$$1);
  41628. return;
  41629. }
  41630. case HostPortal:
  41631. {
  41632. // TODO: this is recursive.
  41633. // We are also not using this parent because
  41634. // the portal will get pushed immediately.
  41635. if (supportsMutation) {
  41636. unmountHostComponents(current$$1, renderPriorityLevel);
  41637. } else if (supportsPersistence) {
  41638. emptyPortalContainer(current$$1);
  41639. }
  41640. return;
  41641. }
  41642. case FundamentalComponent:
  41643. {
  41644. if (enableFundamentalAPI) {
  41645. var fundamentalInstance = current$$1.stateNode;
  41646. if (fundamentalInstance !== null) {
  41647. unmountFundamentalComponent(fundamentalInstance);
  41648. current$$1.stateNode = null;
  41649. }
  41650. }
  41651. }
  41652. }
  41653. }
  41654. function commitNestedUnmounts(root, renderPriorityLevel) {
  41655. // While we're inside a removed host node we don't want to call
  41656. // removeChild on the inner nodes because they're removed by the top
  41657. // call anyway. We also want to call componentWillUnmount on all
  41658. // composites before this host node is removed from the tree. Therefore
  41659. var node = root;
  41660. while (true) {
  41661. commitUnmount(node, renderPriorityLevel);
  41662. // Visit children because they may contain more composite or host nodes.
  41663. // Skip portals because commitUnmount() currently visits them recursively.
  41664. if (node.child !== null && (
  41665. // If we use mutation we drill down into portals using commitUnmount above.
  41666. // If we don't use mutation we drill down into portals here instead.
  41667. !supportsMutation || node.tag !== HostPortal)) {
  41668. node.child.return = node;
  41669. node = node.child;
  41670. continue;
  41671. }
  41672. if (node === root) {
  41673. return;
  41674. }
  41675. while (node.sibling === null) {
  41676. if (node.return === null || node.return === root) {
  41677. return;
  41678. }
  41679. node = node.return;
  41680. }
  41681. node.sibling.return = node.return;
  41682. node = node.sibling;
  41683. }
  41684. }
  41685. function detachFiber(current$$1) {
  41686. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  41687. // should clear the child pointer of the parent alternate to let this
  41688. // get GC:ed but we don't know which for sure which parent is the current
  41689. // one so we'll settle for GC:ing the subtree of this child. This child
  41690. // itself will be GC:ed when the parent updates the next time.
  41691. current$$1.return = null;
  41692. current$$1.child = null;
  41693. current$$1.memoizedState = null;
  41694. current$$1.updateQueue = null;
  41695. current$$1.dependencies = null;
  41696. var alternate = current$$1.alternate;
  41697. if (alternate !== null) {
  41698. alternate.return = null;
  41699. alternate.child = null;
  41700. alternate.memoizedState = null;
  41701. alternate.updateQueue = null;
  41702. alternate.dependencies = null;
  41703. }
  41704. }
  41705. function emptyPortalContainer(current$$1) {
  41706. if (!supportsPersistence) {
  41707. return;
  41708. }
  41709. var portal = current$$1.stateNode;
  41710. var containerInfo = portal.containerInfo;
  41711. var emptyChildSet = createContainerChildSet(containerInfo);
  41712. replaceContainerChildren(containerInfo, emptyChildSet);
  41713. }
  41714. function commitContainer(finishedWork) {
  41715. if (!supportsPersistence) {
  41716. return;
  41717. }
  41718. switch (finishedWork.tag) {
  41719. case ClassComponent:
  41720. case HostComponent:
  41721. case HostText:
  41722. case FundamentalComponent:
  41723. {
  41724. return;
  41725. }
  41726. case HostRoot:
  41727. case HostPortal:
  41728. {
  41729. var portalOrRoot = finishedWork.stateNode;
  41730. var containerInfo = portalOrRoot.containerInfo,
  41731. _pendingChildren = portalOrRoot.pendingChildren;
  41732. replaceContainerChildren(containerInfo, _pendingChildren);
  41733. return;
  41734. }
  41735. default:
  41736. {
  41737. (function () {
  41738. {
  41739. {
  41740. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  41741. }
  41742. }
  41743. })();
  41744. }
  41745. }
  41746. }
  41747. function getHostParentFiber(fiber) {
  41748. var parent = fiber.return;
  41749. while (parent !== null) {
  41750. if (isHostParent(parent)) {
  41751. return parent;
  41752. }
  41753. parent = parent.return;
  41754. }
  41755. (function () {
  41756. {
  41757. {
  41758. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  41759. }
  41760. }
  41761. })();
  41762. }
  41763. function isHostParent(fiber) {
  41764. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  41765. }
  41766. function getHostSibling(fiber) {
  41767. // We're going to search forward into the tree until we find a sibling host
  41768. // node. Unfortunately, if multiple insertions are done in a row we have to
  41769. // search past them. This leads to exponential search for the next sibling.
  41770. var node = fiber;
  41771. siblings: while (true) {
  41772. // If we didn't find anything, let's try the next sibling.
  41773. while (node.sibling === null) {
  41774. if (node.return === null || isHostParent(node.return)) {
  41775. // If we pop out of the root or hit the parent the fiber we are the
  41776. // last sibling.
  41777. return null;
  41778. }
  41779. node = node.return;
  41780. }
  41781. node.sibling.return = node.return;
  41782. node = node.sibling;
  41783. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedSuspenseComponent) {
  41784. // If it is not host node and, we might have a host node inside it.
  41785. // Try to search down until we find one.
  41786. if (node.effectTag & Placement) {
  41787. // If we don't have a child, try the siblings instead.
  41788. continue siblings;
  41789. }
  41790. // If we don't have a child, try the siblings instead.
  41791. // We also skip portals because they are not part of this host tree.
  41792. if (node.child === null || node.tag === HostPortal) {
  41793. continue siblings;
  41794. } else {
  41795. node.child.return = node;
  41796. node = node.child;
  41797. }
  41798. }
  41799. // Check if this host node is stable or about to be placed.
  41800. if (!(node.effectTag & Placement)) {
  41801. // Found it!
  41802. return node.stateNode;
  41803. }
  41804. }
  41805. }
  41806. function commitPlacement(finishedWork) {
  41807. if (!supportsMutation) {
  41808. return;
  41809. }
  41810. // Recursively insert all host nodes into the parent.
  41811. var parentFiber = getHostParentFiber(finishedWork);
  41812. // Note: these two variables *must* always be updated together.
  41813. var parent = void 0;
  41814. var isContainer = void 0;
  41815. var parentStateNode = parentFiber.stateNode;
  41816. switch (parentFiber.tag) {
  41817. case HostComponent:
  41818. parent = parentStateNode;
  41819. isContainer = false;
  41820. break;
  41821. case HostRoot:
  41822. parent = parentStateNode.containerInfo;
  41823. isContainer = true;
  41824. break;
  41825. case HostPortal:
  41826. parent = parentStateNode.containerInfo;
  41827. isContainer = true;
  41828. break;
  41829. case FundamentalComponent:
  41830. if (enableFundamentalAPI) {
  41831. parent = parentStateNode.instance;
  41832. isContainer = false;
  41833. }
  41834. // eslint-disable-next-line-no-fallthrough
  41835. default:
  41836. (function () {
  41837. {
  41838. {
  41839. throw ReactError(Error('Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.'));
  41840. }
  41841. }
  41842. })();
  41843. }
  41844. if (parentFiber.effectTag & ContentReset) {
  41845. // Reset the text content of the parent before doing any insertions
  41846. resetTextContent(parent);
  41847. // Clear ContentReset from the effect tag
  41848. parentFiber.effectTag &= ~ContentReset;
  41849. }
  41850. var before = getHostSibling(finishedWork);
  41851. // We only have the top Fiber that was inserted but we need to recurse down its
  41852. // children to find all the terminal nodes.
  41853. var node = finishedWork;
  41854. while (true) {
  41855. var isHost = node.tag === HostComponent || node.tag === HostText;
  41856. if (isHost || node.tag === FundamentalComponent) {
  41857. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  41858. if (before) {
  41859. if (isContainer) {
  41860. insertInContainerBefore(parent, stateNode, before);
  41861. } else {
  41862. insertBefore(parent, stateNode, before);
  41863. }
  41864. } else {
  41865. if (isContainer) {
  41866. appendChildToContainer(parent, stateNode);
  41867. } else {
  41868. appendChild(parent, stateNode);
  41869. }
  41870. }
  41871. } else if (node.tag === HostPortal) {
  41872. // If the insertion itself is a portal, then we don't want to traverse
  41873. // down its children. Instead, we'll get insertions from each child in
  41874. // the portal directly.
  41875. } else if (node.child !== null) {
  41876. node.child.return = node;
  41877. node = node.child;
  41878. continue;
  41879. }
  41880. if (node === finishedWork) {
  41881. return;
  41882. }
  41883. while (node.sibling === null) {
  41884. if (node.return === null || node.return === finishedWork) {
  41885. return;
  41886. }
  41887. node = node.return;
  41888. }
  41889. node.sibling.return = node.return;
  41890. node = node.sibling;
  41891. }
  41892. }
  41893. function unmountHostComponents(current$$1, renderPriorityLevel) {
  41894. // We only have the top Fiber that was deleted but we need to recurse down its
  41895. var node = current$$1;
  41896. // Each iteration, currentParent is populated with node's host parent if not
  41897. // currentParentIsValid.
  41898. var currentParentIsValid = false;
  41899. // Note: these two variables *must* always be updated together.
  41900. var currentParent = void 0;
  41901. var currentParentIsContainer = void 0;
  41902. while (true) {
  41903. if (!currentParentIsValid) {
  41904. var parent = node.return;
  41905. findParent: while (true) {
  41906. (function () {
  41907. if (!(parent !== null)) {
  41908. {
  41909. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  41910. }
  41911. }
  41912. })();
  41913. var parentStateNode = parent.stateNode;
  41914. switch (parent.tag) {
  41915. case HostComponent:
  41916. currentParent = parentStateNode;
  41917. currentParentIsContainer = false;
  41918. break findParent;
  41919. case HostRoot:
  41920. currentParent = parentStateNode.containerInfo;
  41921. currentParentIsContainer = true;
  41922. break findParent;
  41923. case HostPortal:
  41924. currentParent = parentStateNode.containerInfo;
  41925. currentParentIsContainer = true;
  41926. break findParent;
  41927. case FundamentalComponent:
  41928. if (enableFundamentalAPI) {
  41929. currentParent = parentStateNode.instance;
  41930. currentParentIsContainer = false;
  41931. }
  41932. }
  41933. parent = parent.return;
  41934. }
  41935. currentParentIsValid = true;
  41936. }
  41937. if (node.tag === HostComponent || node.tag === HostText) {
  41938. commitNestedUnmounts(node, renderPriorityLevel);
  41939. // After all the children have unmounted, it is now safe to remove the
  41940. // node from the tree.
  41941. if (currentParentIsContainer) {
  41942. removeChildFromContainer(currentParent, node.stateNode);
  41943. } else {
  41944. removeChild(currentParent, node.stateNode);
  41945. }
  41946. // Don't visit children because we already visited them.
  41947. } else if (node.tag === FundamentalComponent) {
  41948. var fundamentalNode = node.stateNode.instance;
  41949. commitNestedUnmounts(node, renderPriorityLevel);
  41950. // After all the children have unmounted, it is now safe to remove the
  41951. // node from the tree.
  41952. if (currentParentIsContainer) {
  41953. removeChildFromContainer(currentParent, fundamentalNode);
  41954. } else {
  41955. removeChild(currentParent, fundamentalNode);
  41956. }
  41957. } else if (enableSuspenseServerRenderer && node.tag === DehydratedSuspenseComponent) {
  41958. // Delete the dehydrated suspense boundary and all of its content.
  41959. if (currentParentIsContainer) {
  41960. clearSuspenseBoundaryFromContainer(currentParent, node.stateNode);
  41961. } else {
  41962. clearSuspenseBoundary(currentParent, node.stateNode);
  41963. }
  41964. } else if (node.tag === HostPortal) {
  41965. if (node.child !== null) {
  41966. // When we go into a portal, it becomes the parent to remove from.
  41967. // We will reassign it back when we pop the portal on the way up.
  41968. currentParent = node.stateNode.containerInfo;
  41969. currentParentIsContainer = true;
  41970. // Visit children because portals might contain host components.
  41971. node.child.return = node;
  41972. node = node.child;
  41973. continue;
  41974. }
  41975. } else {
  41976. commitUnmount(node, renderPriorityLevel);
  41977. // Visit children because we may find more host components below.
  41978. if (node.child !== null) {
  41979. node.child.return = node;
  41980. node = node.child;
  41981. continue;
  41982. }
  41983. }
  41984. if (node === current$$1) {
  41985. return;
  41986. }
  41987. while (node.sibling === null) {
  41988. if (node.return === null || node.return === current$$1) {
  41989. return;
  41990. }
  41991. node = node.return;
  41992. if (node.tag === HostPortal) {
  41993. // When we go out of the portal, we need to restore the parent.
  41994. // Since we don't keep a stack of them, we will search for it.
  41995. currentParentIsValid = false;
  41996. }
  41997. }
  41998. node.sibling.return = node.return;
  41999. node = node.sibling;
  42000. }
  42001. }
  42002. function commitDeletion(current$$1, renderPriorityLevel) {
  42003. if (supportsMutation) {
  42004. // Recursively delete all host nodes from the parent.
  42005. // Detach refs and call componentWillUnmount() on the whole subtree.
  42006. unmountHostComponents(current$$1, renderPriorityLevel);
  42007. } else {
  42008. // Detach refs and call componentWillUnmount() on the whole subtree.
  42009. commitNestedUnmounts(current$$1, renderPriorityLevel);
  42010. }
  42011. detachFiber(current$$1);
  42012. }
  42013. function commitWork(current$$1, finishedWork) {
  42014. if (!supportsMutation) {
  42015. switch (finishedWork.tag) {
  42016. case FunctionComponent:
  42017. case ForwardRef:
  42018. case MemoComponent:
  42019. case SimpleMemoComponent:
  42020. {
  42021. // Note: We currently never use MountMutation, but useLayout uses
  42022. // UnmountMutation.
  42023. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  42024. return;
  42025. }
  42026. case Profiler:
  42027. {
  42028. return;
  42029. }
  42030. case SuspenseComponent:
  42031. {
  42032. commitSuspenseComponent(finishedWork);
  42033. attachSuspenseRetryListeners(finishedWork);
  42034. return;
  42035. }
  42036. case SuspenseListComponent:
  42037. {
  42038. attachSuspenseRetryListeners(finishedWork);
  42039. return;
  42040. }
  42041. }
  42042. commitContainer(finishedWork);
  42043. return;
  42044. }
  42045. switch (finishedWork.tag) {
  42046. case FunctionComponent:
  42047. case ForwardRef:
  42048. case MemoComponent:
  42049. case SimpleMemoComponent:
  42050. {
  42051. // Note: We currently never use MountMutation, but useLayout uses
  42052. // UnmountMutation.
  42053. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  42054. return;
  42055. }
  42056. case ClassComponent:
  42057. {
  42058. return;
  42059. }
  42060. case HostComponent:
  42061. {
  42062. var instance = finishedWork.stateNode;
  42063. if (instance != null) {
  42064. // Commit the work prepared earlier.
  42065. var newProps = finishedWork.memoizedProps;
  42066. // For hydration we reuse the update path but we treat the oldProps
  42067. // as the newProps. The updatePayload will contain the real change in
  42068. // this case.
  42069. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  42070. var type = finishedWork.type;
  42071. // TODO: Type the updateQueue to be specific to host components.
  42072. var updatePayload = finishedWork.updateQueue;
  42073. finishedWork.updateQueue = null;
  42074. if (updatePayload !== null) {
  42075. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  42076. }
  42077. }
  42078. return;
  42079. }
  42080. case HostText:
  42081. {
  42082. (function () {
  42083. if (!(finishedWork.stateNode !== null)) {
  42084. {
  42085. throw ReactError(Error('This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.'));
  42086. }
  42087. }
  42088. })();
  42089. var textInstance = finishedWork.stateNode;
  42090. var newText = finishedWork.memoizedProps;
  42091. // For hydration we reuse the update path but we treat the oldProps
  42092. // as the newProps. The updatePayload will contain the real change in
  42093. // this case.
  42094. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  42095. commitTextUpdate(textInstance, oldText, newText);
  42096. return;
  42097. }
  42098. case HostRoot:
  42099. {
  42100. return;
  42101. }
  42102. case Profiler:
  42103. {
  42104. return;
  42105. }
  42106. case SuspenseComponent:
  42107. {
  42108. commitSuspenseComponent(finishedWork);
  42109. attachSuspenseRetryListeners(finishedWork);
  42110. return;
  42111. }
  42112. case SuspenseListComponent:
  42113. {
  42114. attachSuspenseRetryListeners(finishedWork);
  42115. return;
  42116. }
  42117. case IncompleteClassComponent:
  42118. {
  42119. return;
  42120. }
  42121. case FundamentalComponent:
  42122. {
  42123. if (enableFundamentalAPI) {
  42124. var fundamentalInstance = finishedWork.stateNode;
  42125. updateFundamentalComponent(fundamentalInstance);
  42126. }
  42127. return;
  42128. }
  42129. default:
  42130. {
  42131. (function () {
  42132. {
  42133. {
  42134. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  42135. }
  42136. }
  42137. })();
  42138. }
  42139. }
  42140. }
  42141. function commitSuspenseComponent(finishedWork) {
  42142. var newState = finishedWork.memoizedState;
  42143. var newDidTimeout = void 0;
  42144. var primaryChildParent = finishedWork;
  42145. if (newState === null) {
  42146. newDidTimeout = false;
  42147. } else {
  42148. newDidTimeout = true;
  42149. primaryChildParent = finishedWork.child;
  42150. markCommitTimeOfFallback();
  42151. }
  42152. if (supportsMutation && primaryChildParent !== null) {
  42153. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  42154. }
  42155. if (enableSuspenseCallback && newState !== null) {
  42156. var suspenseCallback = finishedWork.memoizedProps.suspenseCallback;
  42157. if (typeof suspenseCallback === 'function') {
  42158. var thenables = finishedWork.updateQueue;
  42159. if (thenables !== null) {
  42160. suspenseCallback(new Set(thenables));
  42161. }
  42162. } else {
  42163. if (suspenseCallback !== undefined) {
  42164. warning$1(false, 'Unexpected type for suspenseCallback.');
  42165. }
  42166. }
  42167. }
  42168. }
  42169. function attachSuspenseRetryListeners(finishedWork) {
  42170. // If this boundary just timed out, then it will have a set of thenables.
  42171. // For each thenable, attach a listener so that when it resolves, React
  42172. var thenables = finishedWork.updateQueue;
  42173. if (thenables !== null) {
  42174. finishedWork.updateQueue = null;
  42175. var retryCache = finishedWork.stateNode;
  42176. if (retryCache === null) {
  42177. retryCache = finishedWork.stateNode = new PossiblyWeakSet$1();
  42178. }
  42179. thenables.forEach(function (thenable) {
  42180. // Memoize using the boundary fiber to prevent redundant listeners.
  42181. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  42182. if (!retryCache.has(thenable)) {
  42183. if (enableSchedulerTracing) {
  42184. retry = tracing.unstable_wrap(retry);
  42185. }
  42186. retryCache.add(thenable);
  42187. thenable.then(retry, retry);
  42188. }
  42189. });
  42190. }
  42191. }
  42192. function commitResetTextContent(current$$1) {
  42193. if (!supportsMutation) {
  42194. return;
  42195. }
  42196. resetTextContent(current$$1.stateNode);
  42197. }
  42198. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  42199. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  42200. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  42201. var update = createUpdate(expirationTime, null);
  42202. // Unmount the root by rendering null.
  42203. update.tag = CaptureUpdate;
  42204. // Caution: React DevTools currently depends on this property
  42205. // being called "element".
  42206. update.payload = { element: null };
  42207. var error = errorInfo.value;
  42208. update.callback = function () {
  42209. onUncaughtError(error);
  42210. logError(fiber, errorInfo);
  42211. };
  42212. return update;
  42213. }
  42214. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  42215. var update = createUpdate(expirationTime, null);
  42216. update.tag = CaptureUpdate;
  42217. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  42218. if (typeof getDerivedStateFromError === 'function') {
  42219. var error = errorInfo.value;
  42220. update.payload = function () {
  42221. logError(fiber, errorInfo);
  42222. return getDerivedStateFromError(error);
  42223. };
  42224. }
  42225. var inst = fiber.stateNode;
  42226. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  42227. update.callback = function callback() {
  42228. {
  42229. markFailedErrorBoundaryForHotReloading(fiber);
  42230. }
  42231. if (typeof getDerivedStateFromError !== 'function') {
  42232. // To preserve the preexisting retry behavior of error boundaries,
  42233. // we keep track of which ones already failed during this batch.
  42234. // This gets reset before we yield back to the browser.
  42235. // TODO: Warn in strict mode if getDerivedStateFromError is
  42236. // not defined.
  42237. markLegacyErrorBoundaryAsFailed(this);
  42238. // Only log here if componentDidCatch is the only error boundary method defined
  42239. logError(fiber, errorInfo);
  42240. }
  42241. var error = errorInfo.value;
  42242. var stack = errorInfo.stack;
  42243. this.componentDidCatch(error, {
  42244. componentStack: stack !== null ? stack : ''
  42245. });
  42246. {
  42247. if (typeof getDerivedStateFromError !== 'function') {
  42248. // If componentDidCatch is the only error boundary method defined,
  42249. // then it needs to call setState to recover from errors.
  42250. // If no state update is scheduled then the boundary will swallow the error.
  42251. !(fiber.expirationTime === Sync) ? warningWithoutStack$1(false, '%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown') : void 0;
  42252. }
  42253. }
  42254. };
  42255. } else {
  42256. update.callback = function () {
  42257. markFailedErrorBoundaryForHotReloading(fiber);
  42258. };
  42259. }
  42260. return update;
  42261. }
  42262. function attachPingListener(root, renderExpirationTime, thenable) {
  42263. // Attach a listener to the promise to "ping" the root and retry. But
  42264. // only if one does not already exist for the current render expiration
  42265. // time (which acts like a "thread ID" here).
  42266. var pingCache = root.pingCache;
  42267. var threadIDs = void 0;
  42268. if (pingCache === null) {
  42269. pingCache = root.pingCache = new PossiblyWeakMap$1();
  42270. threadIDs = new Set();
  42271. pingCache.set(thenable, threadIDs);
  42272. } else {
  42273. threadIDs = pingCache.get(thenable);
  42274. if (threadIDs === undefined) {
  42275. threadIDs = new Set();
  42276. pingCache.set(thenable, threadIDs);
  42277. }
  42278. }
  42279. if (!threadIDs.has(renderExpirationTime)) {
  42280. // Memoize using the thread ID to prevent redundant listeners.
  42281. threadIDs.add(renderExpirationTime);
  42282. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  42283. if (enableSchedulerTracing) {
  42284. ping = tracing.unstable_wrap(ping);
  42285. }
  42286. thenable.then(ping, ping);
  42287. }
  42288. }
  42289. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  42290. // The source fiber did not complete.
  42291. sourceFiber.effectTag |= Incomplete;
  42292. // Its effect list is no longer valid.
  42293. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  42294. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  42295. // This is a thenable.
  42296. var thenable = value;
  42297. checkForWrongSuspensePriorityInDEV(sourceFiber);
  42298. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext);
  42299. // Schedule the nearest Suspense to re-render the timed out view.
  42300. var _workInProgress = returnFiber;
  42301. do {
  42302. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  42303. // Found the nearest boundary.
  42304. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  42305. var thenables = _workInProgress.updateQueue;
  42306. if (thenables === null) {
  42307. var updateQueue = new Set();
  42308. updateQueue.add(thenable);
  42309. _workInProgress.updateQueue = updateQueue;
  42310. } else {
  42311. thenables.add(thenable);
  42312. }
  42313. // If the boundary is outside of batched mode, we should *not*
  42314. // suspend the commit. Pretend as if the suspended component rendered
  42315. // null and keep rendering. In the commit phase, we'll schedule a
  42316. // subsequent synchronous update to re-render the Suspense.
  42317. //
  42318. // Note: It doesn't matter whether the component that suspended was
  42319. // inside a batched mode tree. If the Suspense is outside of it, we
  42320. // should *not* suspend the commit.
  42321. if ((_workInProgress.mode & BatchedMode) === NoMode) {
  42322. _workInProgress.effectTag |= DidCapture;
  42323. // We're going to commit this fiber even though it didn't complete.
  42324. // But we shouldn't call any lifecycle methods or callbacks. Remove
  42325. // all lifecycle effect tags.
  42326. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  42327. if (sourceFiber.tag === ClassComponent) {
  42328. var currentSourceFiber = sourceFiber.alternate;
  42329. if (currentSourceFiber === null) {
  42330. // This is a new mount. Change the tag so it's not mistaken for a
  42331. // completed class component. For example, we should not call
  42332. // componentWillUnmount if it is deleted.
  42333. sourceFiber.tag = IncompleteClassComponent;
  42334. } else {
  42335. // When we try rendering again, we should not reuse the current fiber,
  42336. // since it's known to be in an inconsistent state. Use a force update to
  42337. // prevent a bail out.
  42338. var update = createUpdate(Sync, null);
  42339. update.tag = ForceUpdate;
  42340. enqueueUpdate(sourceFiber, update);
  42341. }
  42342. }
  42343. // The source fiber did not complete. Mark it with Sync priority to
  42344. // indicate that it still has pending work.
  42345. sourceFiber.expirationTime = Sync;
  42346. // Exit without suspending.
  42347. return;
  42348. }
  42349. // Confirmed that the boundary is in a concurrent mode tree. Continue
  42350. // with the normal suspend path.
  42351. //
  42352. // After this we'll use a set of heuristics to determine whether this
  42353. // render pass will run to completion or restart or "suspend" the commit.
  42354. // The actual logic for this is spread out in different places.
  42355. //
  42356. // This first principle is that if we're going to suspend when we complete
  42357. // a root, then we should also restart if we get an update or ping that
  42358. // might unsuspend it, and vice versa. The only reason to suspend is
  42359. // because you think you might want to restart before committing. However,
  42360. // it doesn't make sense to restart only while in the period we're suspended.
  42361. //
  42362. // Restarting too aggressively is also not good because it starves out any
  42363. // intermediate loading state. So we use heuristics to determine when.
  42364. // Suspense Heuristics
  42365. //
  42366. // If nothing threw a Promise or all the same fallbacks are already showing,
  42367. // then don't suspend/restart.
  42368. //
  42369. // If this is an initial render of a new tree of Suspense boundaries and
  42370. // those trigger a fallback, then don't suspend/restart. We want to ensure
  42371. // that we can show the initial loading state as quickly as possible.
  42372. //
  42373. // If we hit a "Delayed" case, such as when we'd switch from content back into
  42374. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  42375. // this case. If none is defined, JND is used instead.
  42376. //
  42377. // If we're already showing a fallback and it gets "retried", allowing us to show
  42378. // another level, but there's still an inner boundary that would show a fallback,
  42379. // then we suspend/restart for 500ms since the last time we showed a fallback
  42380. // anywhere in the tree. This effectively throttles progressive loading into a
  42381. // consistent train of commits. This also gives us an opportunity to restart to
  42382. // get to the completed state slightly earlier.
  42383. //
  42384. // If there's ambiguity due to batching it's resolved in preference of:
  42385. // 1) "delayed", 2) "initial render", 3) "retry".
  42386. //
  42387. // We want to ensure that a "busy" state doesn't get force committed. We want to
  42388. // ensure that new initial loading states can commit as soon as possible.
  42389. attachPingListener(root, renderExpirationTime, thenable);
  42390. _workInProgress.effectTag |= ShouldCapture;
  42391. _workInProgress.expirationTime = renderExpirationTime;
  42392. return;
  42393. } else if (enableSuspenseServerRenderer && _workInProgress.tag === DehydratedSuspenseComponent) {
  42394. attachPingListener(root, renderExpirationTime, thenable);
  42395. // Since we already have a current fiber, we can eagerly add a retry listener.
  42396. var retryCache = _workInProgress.memoizedState;
  42397. if (retryCache === null) {
  42398. retryCache = _workInProgress.memoizedState = new PossiblyWeakSet();
  42399. var current$$1 = _workInProgress.alternate;
  42400. (function () {
  42401. if (!current$$1) {
  42402. {
  42403. throw ReactError(Error('A dehydrated suspense boundary must commit before trying to render. This is probably a bug in React.'));
  42404. }
  42405. }
  42406. })();
  42407. current$$1.memoizedState = retryCache;
  42408. }
  42409. // Memoize using the boundary fiber to prevent redundant listeners.
  42410. if (!retryCache.has(thenable)) {
  42411. retryCache.add(thenable);
  42412. var retry = resolveRetryThenable.bind(null, _workInProgress, thenable);
  42413. if (enableSchedulerTracing) {
  42414. retry = tracing.unstable_wrap(retry);
  42415. }
  42416. thenable.then(retry, retry);
  42417. }
  42418. _workInProgress.effectTag |= ShouldCapture;
  42419. _workInProgress.expirationTime = renderExpirationTime;
  42420. return;
  42421. }
  42422. // This boundary already captured during this render. Continue to the next
  42423. // boundary.
  42424. _workInProgress = _workInProgress.return;
  42425. } while (_workInProgress !== null);
  42426. // No boundary was found. Fallthrough to error mode.
  42427. // TODO: Use invariant so the message is stripped in prod?
  42428. 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));
  42429. }
  42430. // We didn't find a boundary that could handle this type of exception. Start
  42431. // over and traverse parent path again, this time treating the exception
  42432. // as an error.
  42433. renderDidError();
  42434. value = createCapturedValue(value, sourceFiber);
  42435. var workInProgress = returnFiber;
  42436. do {
  42437. switch (workInProgress.tag) {
  42438. case HostRoot:
  42439. {
  42440. var _errorInfo = value;
  42441. workInProgress.effectTag |= ShouldCapture;
  42442. workInProgress.expirationTime = renderExpirationTime;
  42443. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  42444. enqueueCapturedUpdate(workInProgress, _update);
  42445. return;
  42446. }
  42447. case ClassComponent:
  42448. // Capture and retry
  42449. var errorInfo = value;
  42450. var ctor = workInProgress.type;
  42451. var instance = workInProgress.stateNode;
  42452. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  42453. workInProgress.effectTag |= ShouldCapture;
  42454. workInProgress.expirationTime = renderExpirationTime;
  42455. // Schedule the error boundary to re-render using updated state
  42456. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  42457. enqueueCapturedUpdate(workInProgress, _update2);
  42458. return;
  42459. }
  42460. break;
  42461. default:
  42462. break;
  42463. }
  42464. workInProgress = workInProgress.return;
  42465. } while (workInProgress !== null);
  42466. }
  42467. // The scheduler is imported here *only* to detect whether it's been mocked
  42468. // DEV stuff
  42469. var ceil = Math.ceil;
  42470. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  42471. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  42472. var IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  42473. var NoContext = /* */0;
  42474. var BatchedContext = /* */1;
  42475. var EventContext = /* */2;
  42476. var DiscreteEventContext = /* */4;
  42477. var LegacyUnbatchedContext = /* */8;
  42478. var RenderContext = /* */16;
  42479. var CommitContext = /* */32;
  42480. var RootIncomplete = 0;
  42481. var RootErrored = 1;
  42482. var RootSuspended = 2;
  42483. var RootSuspendedWithDelay = 3;
  42484. var RootCompleted = 4;
  42485. // Describes where we are in the React execution stack
  42486. var executionContext = NoContext;
  42487. // The root we're working on
  42488. var workInProgressRoot = null;
  42489. // The fiber we're working on
  42490. var workInProgress = null;
  42491. // The expiration time we're rendering
  42492. var renderExpirationTime = NoWork;
  42493. // Whether to root completed, errored, suspended, etc.
  42494. var workInProgressRootExitStatus = RootIncomplete;
  42495. // Most recent event time among processed updates during this render.
  42496. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  42497. // because we deal mostly with expiration times in the hot path, so this avoids
  42498. // the conversion happening in the hot path.
  42499. var workInProgressRootLatestProcessedExpirationTime = Sync;
  42500. var workInProgressRootLatestSuspenseTimeout = Sync;
  42501. var workInProgressRootCanSuspendUsingConfig = null;
  42502. // If we're pinged while rendering we don't always restart immediately.
  42503. // This flag determines if it might be worthwhile to restart if an opportunity
  42504. // happens latere.
  42505. var workInProgressRootHasPendingPing = false;
  42506. // The most recent time we committed a fallback. This lets us ensure a train
  42507. // model where we don't commit new loading states in too quick succession.
  42508. var globalMostRecentFallbackTime = 0;
  42509. var FALLBACK_THROTTLE_MS = 500;
  42510. var nextEffect = null;
  42511. var hasUncaughtError = false;
  42512. var firstUncaughtError = null;
  42513. var legacyErrorBoundariesThatAlreadyFailed = null;
  42514. var rootDoesHavePassiveEffects = false;
  42515. var rootWithPendingPassiveEffects = null;
  42516. var pendingPassiveEffectsRenderPriority = NoPriority;
  42517. var pendingPassiveEffectsExpirationTime = NoWork;
  42518. var rootsWithPendingDiscreteUpdates = null;
  42519. // Use these to prevent an infinite loop of nested updates
  42520. var NESTED_UPDATE_LIMIT = 50;
  42521. var nestedUpdateCount = 0;
  42522. var rootWithNestedUpdates = null;
  42523. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  42524. var nestedPassiveUpdateCount = 0;
  42525. var interruptedBy = null;
  42526. // Marks the need to reschedule pending interactions at these expiration times
  42527. // during the commit phase. This enables them to be traced across components
  42528. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  42529. // hydration or SuspenseList.
  42530. var spawnedWorkDuringRender = null;
  42531. // Expiration times are computed by adding to the current time (the start
  42532. // time). However, if two updates are scheduled within the same event, we
  42533. // should treat their start times as simultaneous, even if the actual clock
  42534. // time has advanced between the first and second call.
  42535. // In other words, because expiration times determine how updates are batched,
  42536. // we want all updates of like priority that occur within the same event to
  42537. // receive the same expiration time. Otherwise we get tearing.
  42538. var currentEventTime = NoWork;
  42539. function requestCurrentTime() {
  42540. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  42541. // We're inside React, so it's fine to read the actual time.
  42542. return msToExpirationTime(now());
  42543. }
  42544. // We're not inside React, so we may be in the middle of a browser event.
  42545. if (currentEventTime !== NoWork) {
  42546. // Use the same start time for all updates until we enter React again.
  42547. return currentEventTime;
  42548. }
  42549. // This is the first update since React yielded. Compute a new start time.
  42550. currentEventTime = msToExpirationTime(now());
  42551. return currentEventTime;
  42552. }
  42553. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  42554. var mode = fiber.mode;
  42555. if ((mode & BatchedMode) === NoMode) {
  42556. return Sync;
  42557. }
  42558. var priorityLevel = getCurrentPriorityLevel();
  42559. if ((mode & ConcurrentMode) === NoMode) {
  42560. return priorityLevel === ImmediatePriority ? Sync : Batched;
  42561. }
  42562. if ((executionContext & RenderContext) !== NoContext) {
  42563. // Use whatever time we're already rendering
  42564. return renderExpirationTime;
  42565. }
  42566. var expirationTime = void 0;
  42567. if (suspenseConfig !== null) {
  42568. // Compute an expiration time based on the Suspense timeout.
  42569. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  42570. } else {
  42571. // Compute an expiration time based on the Scheduler priority.
  42572. switch (priorityLevel) {
  42573. case ImmediatePriority:
  42574. expirationTime = Sync;
  42575. break;
  42576. case UserBlockingPriority$2:
  42577. // TODO: Rename this to computeUserBlockingExpiration
  42578. expirationTime = computeInteractiveExpiration(currentTime);
  42579. break;
  42580. case NormalPriority:
  42581. case LowPriority:
  42582. // TODO: Handle LowPriority
  42583. // TODO: Rename this to... something better.
  42584. expirationTime = computeAsyncExpiration(currentTime);
  42585. break;
  42586. case IdlePriority:
  42587. expirationTime = Never;
  42588. break;
  42589. default:
  42590. (function () {
  42591. {
  42592. {
  42593. throw ReactError(Error('Expected a valid priority level'));
  42594. }
  42595. }
  42596. })();
  42597. }
  42598. }
  42599. // If we're in the middle of rendering a tree, do not update at the same
  42600. // expiration time that is already rendering.
  42601. // TODO: We shouldn't have to do this if the update is on a different root.
  42602. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  42603. // the root when we check for this condition.
  42604. if (workInProgressRoot !== null && expirationTime === renderExpirationTime) {
  42605. // This is a trick to move this update into a separate batch
  42606. expirationTime -= 1;
  42607. }
  42608. return expirationTime;
  42609. }
  42610. var lastUniqueAsyncExpiration = NoWork;
  42611. function computeUniqueAsyncExpiration() {
  42612. var currentTime = requestCurrentTime();
  42613. var result = computeAsyncExpiration(currentTime);
  42614. if (result <= lastUniqueAsyncExpiration) {
  42615. // Since we assume the current time monotonically increases, we only hit
  42616. // this branch when computeUniqueAsyncExpiration is fired multiple times
  42617. // within a 200ms window (or whatever the async bucket size is).
  42618. result -= 1;
  42619. }
  42620. lastUniqueAsyncExpiration = result;
  42621. return result;
  42622. }
  42623. function scheduleUpdateOnFiber(fiber, expirationTime) {
  42624. checkForNestedUpdates();
  42625. warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber);
  42626. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  42627. if (root === null) {
  42628. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  42629. return;
  42630. }
  42631. root.pingTime = NoWork;
  42632. checkForInterruption(fiber, expirationTime);
  42633. recordScheduleUpdate();
  42634. // TODO: computeExpirationForFiber also reads the priority. Pass the
  42635. // priority as an argument to that function and this one.
  42636. var priorityLevel = getCurrentPriorityLevel();
  42637. if (expirationTime === Sync) {
  42638. if (
  42639. // Check if we're inside unbatchedUpdates
  42640. (executionContext & LegacyUnbatchedContext) !== NoContext &&
  42641. // Check if we're not already rendering
  42642. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  42643. // Register pending interactions on the root to avoid losing traced interaction data.
  42644. schedulePendingInteractions(root, expirationTime);
  42645. // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  42646. // root inside of batchedUpdates should be synchronous, but layout updates
  42647. // should be deferred until the end of the batch.
  42648. var callback = renderRoot(root, Sync, true);
  42649. while (callback !== null) {
  42650. callback = callback(true);
  42651. }
  42652. } else {
  42653. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  42654. if (executionContext === NoContext) {
  42655. // Flush the synchronous work now, wnless we're already working or inside
  42656. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  42657. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  42658. // without immediately flushing it. We only do this for user-initiated
  42659. // updates, to preserve historical behavior of sync mode.
  42660. flushSyncCallbackQueue();
  42661. }
  42662. }
  42663. } else {
  42664. scheduleCallbackForRoot(root, priorityLevel, expirationTime);
  42665. }
  42666. if ((executionContext & DiscreteEventContext) !== NoContext && (
  42667. // Only updates at user-blocking priority or greater are considered
  42668. // discrete, even inside a discrete event.
  42669. priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority)) {
  42670. // This is the result of a discrete event. Track the lowest priority
  42671. // discrete update per root so we can flush them early, if needed.
  42672. if (rootsWithPendingDiscreteUpdates === null) {
  42673. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  42674. } else {
  42675. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  42676. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  42677. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  42678. }
  42679. }
  42680. }
  42681. }
  42682. var scheduleWork = scheduleUpdateOnFiber;
  42683. // This is split into a separate function so we can mark a fiber with pending
  42684. // work without treating it as a typical update that originates from an event;
  42685. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  42686. // on a fiber.
  42687. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  42688. // Update the source fiber's expiration time
  42689. if (fiber.expirationTime < expirationTime) {
  42690. fiber.expirationTime = expirationTime;
  42691. }
  42692. var alternate = fiber.alternate;
  42693. if (alternate !== null && alternate.expirationTime < expirationTime) {
  42694. alternate.expirationTime = expirationTime;
  42695. }
  42696. // Walk the parent path to the root and update the child expiration time.
  42697. var node = fiber.return;
  42698. var root = null;
  42699. if (node === null && fiber.tag === HostRoot) {
  42700. root = fiber.stateNode;
  42701. } else {
  42702. while (node !== null) {
  42703. alternate = node.alternate;
  42704. if (node.childExpirationTime < expirationTime) {
  42705. node.childExpirationTime = expirationTime;
  42706. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  42707. alternate.childExpirationTime = expirationTime;
  42708. }
  42709. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  42710. alternate.childExpirationTime = expirationTime;
  42711. }
  42712. if (node.return === null && node.tag === HostRoot) {
  42713. root = node.stateNode;
  42714. break;
  42715. }
  42716. node = node.return;
  42717. }
  42718. }
  42719. if (root !== null) {
  42720. // Update the first and last pending expiration times in this root
  42721. var firstPendingTime = root.firstPendingTime;
  42722. if (expirationTime > firstPendingTime) {
  42723. root.firstPendingTime = expirationTime;
  42724. }
  42725. var lastPendingTime = root.lastPendingTime;
  42726. if (lastPendingTime === NoWork || expirationTime < lastPendingTime) {
  42727. root.lastPendingTime = expirationTime;
  42728. }
  42729. }
  42730. return root;
  42731. }
  42732. // Use this function, along with runRootCallback, to ensure that only a single
  42733. // callback per root is scheduled. It's still possible to call renderRoot
  42734. // directly, but scheduling via this function helps avoid excessive callbacks.
  42735. // It works by storing the callback node and expiration time on the root. When a
  42736. // new callback comes in, it compares the expiration time to determine if it
  42737. // should cancel the previous one. It also relies on commitRoot scheduling a
  42738. // callback to render the next level, because that means we don't need a
  42739. // separate callback per expiration time.
  42740. function scheduleCallbackForRoot(root, priorityLevel, expirationTime) {
  42741. var existingCallbackExpirationTime = root.callbackExpirationTime;
  42742. if (existingCallbackExpirationTime < expirationTime) {
  42743. // New callback has higher priority than the existing one.
  42744. var existingCallbackNode = root.callbackNode;
  42745. if (existingCallbackNode !== null) {
  42746. cancelCallback(existingCallbackNode);
  42747. }
  42748. root.callbackExpirationTime = expirationTime;
  42749. if (expirationTime === Sync) {
  42750. // Sync React callbacks are scheduled on a special internal queue
  42751. root.callbackNode = scheduleSyncCallback(runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)));
  42752. } else {
  42753. var options = null;
  42754. if (!disableSchedulerTimeoutBasedOnReactExpirationTime && expirationTime !== Never) {
  42755. var timeout = expirationTimeToMs(expirationTime) - now();
  42756. options = { timeout: timeout };
  42757. }
  42758. root.callbackNode = scheduleCallback(priorityLevel, runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)), options);
  42759. if (enableUserTimingAPI && expirationTime !== Sync && (executionContext & (RenderContext | CommitContext)) === NoContext) {
  42760. // Scheduled an async callback, and we're not already working. Add an
  42761. // entry to the flamegraph that shows we're waiting for a callback
  42762. // to fire.
  42763. startRequestCallbackTimer();
  42764. }
  42765. }
  42766. }
  42767. // Associate the current interactions with this new root+priority.
  42768. schedulePendingInteractions(root, expirationTime);
  42769. }
  42770. function runRootCallback(root, callback, isSync) {
  42771. var prevCallbackNode = root.callbackNode;
  42772. var continuation = null;
  42773. try {
  42774. continuation = callback(isSync);
  42775. if (continuation !== null) {
  42776. return runRootCallback.bind(null, root, continuation);
  42777. } else {
  42778. return null;
  42779. }
  42780. } finally {
  42781. // If the callback exits without returning a continuation, remove the
  42782. // corresponding callback node from the root. Unless the callback node
  42783. // has changed, which implies that it was already cancelled by a high
  42784. // priority update.
  42785. if (continuation === null && prevCallbackNode === root.callbackNode) {
  42786. root.callbackNode = null;
  42787. root.callbackExpirationTime = NoWork;
  42788. }
  42789. }
  42790. }
  42791. function flushRoot(root, expirationTime) {
  42792. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  42793. (function () {
  42794. {
  42795. {
  42796. throw ReactError(Error('work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.'));
  42797. }
  42798. }
  42799. })();
  42800. }
  42801. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  42802. flushSyncCallbackQueue();
  42803. }
  42804. function flushDiscreteUpdates() {
  42805. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  42806. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  42807. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  42808. // as a public API.
  42809. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  42810. if ( true && (executionContext & RenderContext) !== NoContext) {
  42811. warning$1(false, 'unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  42812. }
  42813. // We're already rendering, so we can't synchronously flush pending work.
  42814. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  42815. // like `el.focus()`. Exit.
  42816. return;
  42817. }
  42818. flushPendingDiscreteUpdates();
  42819. if (!revertPassiveEffectsChange) {
  42820. // If the discrete updates scheduled passive effects, flush them now so that
  42821. // they fire before the next serial event.
  42822. flushPassiveEffects();
  42823. }
  42824. }
  42825. function resolveLocksOnRoot(root, expirationTime) {
  42826. var firstBatch = root.firstBatch;
  42827. if (firstBatch !== null && firstBatch._defer && firstBatch._expirationTime >= expirationTime) {
  42828. scheduleCallback(NormalPriority, function () {
  42829. firstBatch._onComplete();
  42830. return null;
  42831. });
  42832. return true;
  42833. } else {
  42834. return false;
  42835. }
  42836. }
  42837. function flushPendingDiscreteUpdates() {
  42838. if (rootsWithPendingDiscreteUpdates !== null) {
  42839. // For each root with pending discrete updates, schedule a callback to
  42840. // immediately flush them.
  42841. var roots = rootsWithPendingDiscreteUpdates;
  42842. rootsWithPendingDiscreteUpdates = null;
  42843. roots.forEach(function (expirationTime, root) {
  42844. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  42845. });
  42846. // Now flush the immediate queue.
  42847. flushSyncCallbackQueue();
  42848. }
  42849. }
  42850. function batchedUpdates$1(fn, a) {
  42851. var prevExecutionContext = executionContext;
  42852. executionContext |= BatchedContext;
  42853. try {
  42854. return fn(a);
  42855. } finally {
  42856. executionContext = prevExecutionContext;
  42857. if (executionContext === NoContext) {
  42858. // Flush the immediate callbacks that were scheduled during this batch
  42859. flushSyncCallbackQueue();
  42860. }
  42861. }
  42862. }
  42863. function batchedEventUpdates$1(fn, a) {
  42864. var prevExecutionContext = executionContext;
  42865. executionContext |= EventContext;
  42866. try {
  42867. return fn(a);
  42868. } finally {
  42869. executionContext = prevExecutionContext;
  42870. if (executionContext === NoContext) {
  42871. // Flush the immediate callbacks that were scheduled during this batch
  42872. flushSyncCallbackQueue();
  42873. }
  42874. }
  42875. }
  42876. function discreteUpdates$1(fn, a, b, c) {
  42877. var prevExecutionContext = executionContext;
  42878. executionContext |= DiscreteEventContext;
  42879. try {
  42880. // Should this
  42881. return runWithPriority$2(UserBlockingPriority$2, fn.bind(null, a, b, c));
  42882. } finally {
  42883. executionContext = prevExecutionContext;
  42884. if (executionContext === NoContext) {
  42885. // Flush the immediate callbacks that were scheduled during this batch
  42886. flushSyncCallbackQueue();
  42887. }
  42888. }
  42889. }
  42890. function unbatchedUpdates(fn, a) {
  42891. var prevExecutionContext = executionContext;
  42892. executionContext &= ~BatchedContext;
  42893. executionContext |= LegacyUnbatchedContext;
  42894. try {
  42895. return fn(a);
  42896. } finally {
  42897. executionContext = prevExecutionContext;
  42898. if (executionContext === NoContext) {
  42899. // Flush the immediate callbacks that were scheduled during this batch
  42900. flushSyncCallbackQueue();
  42901. }
  42902. }
  42903. }
  42904. function flushSync(fn, a) {
  42905. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  42906. (function () {
  42907. {
  42908. {
  42909. throw ReactError(Error('flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.'));
  42910. }
  42911. }
  42912. })();
  42913. }
  42914. var prevExecutionContext = executionContext;
  42915. executionContext |= BatchedContext;
  42916. try {
  42917. return runWithPriority$2(ImmediatePriority, fn.bind(null, a));
  42918. } finally {
  42919. executionContext = prevExecutionContext;
  42920. // Flush the immediate callbacks that were scheduled during this batch.
  42921. // Note that this will happen even if batchedUpdates is higher up
  42922. // the stack.
  42923. flushSyncCallbackQueue();
  42924. }
  42925. }
  42926. function flushControlled(fn) {
  42927. var prevExecutionContext = executionContext;
  42928. executionContext |= BatchedContext;
  42929. try {
  42930. runWithPriority$2(ImmediatePriority, fn);
  42931. } finally {
  42932. executionContext = prevExecutionContext;
  42933. if (executionContext === NoContext) {
  42934. // Flush the immediate callbacks that were scheduled during this batch
  42935. flushSyncCallbackQueue();
  42936. }
  42937. }
  42938. }
  42939. function prepareFreshStack(root, expirationTime) {
  42940. root.finishedWork = null;
  42941. root.finishedExpirationTime = NoWork;
  42942. var timeoutHandle = root.timeoutHandle;
  42943. if (timeoutHandle !== noTimeout) {
  42944. // The root previous suspended and scheduled a timeout to commit a fallback
  42945. // state. Now that we have additional work, cancel the timeout.
  42946. root.timeoutHandle = noTimeout;
  42947. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  42948. cancelTimeout(timeoutHandle);
  42949. }
  42950. if (workInProgress !== null) {
  42951. var interruptedWork = workInProgress.return;
  42952. while (interruptedWork !== null) {
  42953. unwindInterruptedWork(interruptedWork);
  42954. interruptedWork = interruptedWork.return;
  42955. }
  42956. }
  42957. workInProgressRoot = root;
  42958. workInProgress = createWorkInProgress(root.current, null, expirationTime);
  42959. renderExpirationTime = expirationTime;
  42960. workInProgressRootExitStatus = RootIncomplete;
  42961. workInProgressRootLatestProcessedExpirationTime = Sync;
  42962. workInProgressRootLatestSuspenseTimeout = Sync;
  42963. workInProgressRootCanSuspendUsingConfig = null;
  42964. workInProgressRootHasPendingPing = false;
  42965. if (enableSchedulerTracing) {
  42966. spawnedWorkDuringRender = null;
  42967. }
  42968. {
  42969. ReactStrictModeWarnings.discardPendingWarnings();
  42970. componentsThatTriggeredHighPriSuspend = null;
  42971. }
  42972. }
  42973. function renderRoot(root, expirationTime, isSync) {
  42974. (function () {
  42975. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  42976. {
  42977. throw ReactError(Error('Should not already be working.'));
  42978. }
  42979. }
  42980. })();
  42981. if (enableUserTimingAPI && expirationTime !== Sync) {
  42982. var didExpire = isSync;
  42983. stopRequestCallbackTimer(didExpire);
  42984. }
  42985. if (root.firstPendingTime < expirationTime) {
  42986. // If there's no work left at this expiration time, exit immediately. This
  42987. // happens when multiple callbacks are scheduled for a single root, but an
  42988. // earlier callback flushes the work of a later one.
  42989. return null;
  42990. }
  42991. if (isSync && root.finishedExpirationTime === expirationTime) {
  42992. // There's already a pending commit at this expiration time.
  42993. // TODO: This is poorly factored. This case only exists for the
  42994. // batch.commit() API.
  42995. return commitRoot.bind(null, root);
  42996. }
  42997. flushPassiveEffects();
  42998. // If the root or expiration time have changed, throw out the existing stack
  42999. // and prepare a fresh one. Otherwise we'll continue where we left off.
  43000. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime) {
  43001. prepareFreshStack(root, expirationTime);
  43002. startWorkOnPendingInteractions(root, expirationTime);
  43003. } else if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  43004. // We could've received an update at a lower priority while we yielded.
  43005. // We're suspended in a delayed state. Once we complete this render we're
  43006. // just going to try to recover at the last pending time anyway so we might
  43007. // as well start doing that eagerly.
  43008. // Ideally we should be able to do this even for retries but we don't yet
  43009. // know if we're going to process an update which wants to commit earlier,
  43010. // and this path happens very early so it would happen too often. Instead,
  43011. // for that case, we'll wait until we complete.
  43012. if (workInProgressRootHasPendingPing) {
  43013. // We have a ping at this expiration. Let's restart to see if we get unblocked.
  43014. prepareFreshStack(root, expirationTime);
  43015. } else {
  43016. var lastPendingTime = root.lastPendingTime;
  43017. if (lastPendingTime < expirationTime) {
  43018. // There's lower priority work. It might be unsuspended. Try rendering
  43019. // at that level immediately, while preserving the position in the queue.
  43020. return renderRoot.bind(null, root, lastPendingTime);
  43021. }
  43022. }
  43023. }
  43024. // If we have a work-in-progress fiber, it means there's still work to do
  43025. // in this root.
  43026. if (workInProgress !== null) {
  43027. var prevExecutionContext = executionContext;
  43028. executionContext |= RenderContext;
  43029. var prevDispatcher = ReactCurrentDispatcher.current;
  43030. if (prevDispatcher === null) {
  43031. // The React isomorphic package does not include a default dispatcher.
  43032. // Instead the first renderer will lazily attach one, in order to give
  43033. // nicer error messages.
  43034. prevDispatcher = ContextOnlyDispatcher;
  43035. }
  43036. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  43037. var prevInteractions = null;
  43038. if (enableSchedulerTracing) {
  43039. prevInteractions = tracing.__interactionsRef.current;
  43040. tracing.__interactionsRef.current = root.memoizedInteractions;
  43041. }
  43042. startWorkLoopTimer(workInProgress);
  43043. // TODO: Fork renderRoot into renderRootSync and renderRootAsync
  43044. if (isSync) {
  43045. if (expirationTime !== Sync) {
  43046. // An async update expired. There may be other expired updates on
  43047. // this root. We should render all the expired work in a
  43048. // single batch.
  43049. var currentTime = requestCurrentTime();
  43050. if (currentTime < expirationTime) {
  43051. // Restart at the current time.
  43052. executionContext = prevExecutionContext;
  43053. resetContextDependencies();
  43054. ReactCurrentDispatcher.current = prevDispatcher;
  43055. if (enableSchedulerTracing) {
  43056. tracing.__interactionsRef.current = prevInteractions;
  43057. }
  43058. return renderRoot.bind(null, root, currentTime);
  43059. }
  43060. }
  43061. } else {
  43062. // Since we know we're in a React event, we can clear the current
  43063. // event time. The next update will compute a new event time.
  43064. currentEventTime = NoWork;
  43065. }
  43066. do {
  43067. try {
  43068. if (isSync) {
  43069. workLoopSync();
  43070. } else {
  43071. workLoop();
  43072. }
  43073. break;
  43074. } catch (thrownValue) {
  43075. // Reset module-level state that was set during the render phase.
  43076. resetContextDependencies();
  43077. resetHooks();
  43078. var sourceFiber = workInProgress;
  43079. if (sourceFiber === null || sourceFiber.return === null) {
  43080. // Expected to be working on a non-root fiber. This is a fatal error
  43081. // because there's no ancestor that can handle it; the root is
  43082. // supposed to capture all errors that weren't caught by an error
  43083. // boundary.
  43084. prepareFreshStack(root, expirationTime);
  43085. executionContext = prevExecutionContext;
  43086. throw thrownValue;
  43087. }
  43088. if (enableProfilerTimer && sourceFiber.mode & ProfileMode) {
  43089. // Record the time spent rendering before an error was thrown. This
  43090. // avoids inaccurate Profiler durations in the case of a
  43091. // suspended render.
  43092. stopProfilerTimerIfRunningAndRecordDelta(sourceFiber, true);
  43093. }
  43094. var returnFiber = sourceFiber.return;
  43095. throwException(root, returnFiber, sourceFiber, thrownValue, renderExpirationTime);
  43096. workInProgress = completeUnitOfWork(sourceFiber);
  43097. }
  43098. } while (true);
  43099. executionContext = prevExecutionContext;
  43100. resetContextDependencies();
  43101. ReactCurrentDispatcher.current = prevDispatcher;
  43102. if (enableSchedulerTracing) {
  43103. tracing.__interactionsRef.current = prevInteractions;
  43104. }
  43105. if (workInProgress !== null) {
  43106. // There's still work left over. Return a continuation.
  43107. stopInterruptedWorkLoopTimer();
  43108. if (expirationTime !== Sync) {
  43109. startRequestCallbackTimer();
  43110. }
  43111. return renderRoot.bind(null, root, expirationTime);
  43112. }
  43113. }
  43114. // We now have a consistent tree. The next step is either to commit it, or, if
  43115. // something suspended, wait to commit it after a timeout.
  43116. stopFinishedWorkLoopTimer();
  43117. root.finishedWork = root.current.alternate;
  43118. root.finishedExpirationTime = expirationTime;
  43119. var isLocked = resolveLocksOnRoot(root, expirationTime);
  43120. if (isLocked) {
  43121. // This root has a lock that prevents it from committing. Exit. If we begin
  43122. // work on the root again, without any intervening updates, it will finish
  43123. // without doing additional work.
  43124. return null;
  43125. }
  43126. // Set this to null to indicate there's no in-progress render.
  43127. workInProgressRoot = null;
  43128. switch (workInProgressRootExitStatus) {
  43129. case RootIncomplete:
  43130. {
  43131. (function () {
  43132. {
  43133. {
  43134. throw ReactError(Error('Should have a work-in-progress.'));
  43135. }
  43136. }
  43137. })();
  43138. }
  43139. // Flow knows about invariant, so it complains if I add a break statement,
  43140. // but eslint doesn't know about invariant, so it complains if I do.
  43141. // eslint-disable-next-line no-fallthrough
  43142. case RootErrored:
  43143. {
  43144. // An error was thrown. First check if there is lower priority work
  43145. // scheduled on this root.
  43146. var _lastPendingTime = root.lastPendingTime;
  43147. if (_lastPendingTime < expirationTime) {
  43148. // There's lower priority work. Before raising the error, try rendering
  43149. // at the lower priority to see if it fixes it. Use a continuation to
  43150. // maintain the existing priority and position in the queue.
  43151. return renderRoot.bind(null, root, _lastPendingTime);
  43152. }
  43153. if (!isSync) {
  43154. // If we're rendering asynchronously, it's possible the error was
  43155. // caused by tearing due to a mutation during an event. Try rendering
  43156. // one more time without yiedling to events.
  43157. prepareFreshStack(root, expirationTime);
  43158. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  43159. return null;
  43160. }
  43161. // If we're already rendering synchronously, commit the root in its
  43162. // errored state.
  43163. return commitRoot.bind(null, root);
  43164. }
  43165. case RootSuspended:
  43166. {
  43167. flushSuspensePriorityWarningInDEV();
  43168. // We have an acceptable loading state. We need to figure out if we should
  43169. // immediately commit it or wait a bit.
  43170. // If we have processed new updates during this render, we may now have a
  43171. // new loading state ready. We want to ensure that we commit that as soon as
  43172. // possible.
  43173. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  43174. if (hasNotProcessedNewUpdates && !isSync &&
  43175. // do not delay if we're inside an act() scope
  43176. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  43177. // If we have not processed any new updates during this pass, then this is
  43178. // either a retry of an existing fallback state or a hidden tree.
  43179. // Hidden trees shouldn't be batched with other work and after that's
  43180. // fixed it can only be a retry.
  43181. // We're going to throttle committing retries so that we don't show too
  43182. // many loading states too quickly.
  43183. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now();
  43184. // Don't bother with a very short suspense time.
  43185. if (msUntilTimeout > 10) {
  43186. if (workInProgressRootHasPendingPing) {
  43187. // This render was pinged but we didn't get to restart earlier so try
  43188. // restarting now instead.
  43189. prepareFreshStack(root, expirationTime);
  43190. return renderRoot.bind(null, root, expirationTime);
  43191. }
  43192. var _lastPendingTime2 = root.lastPendingTime;
  43193. if (_lastPendingTime2 < expirationTime) {
  43194. // There's lower priority work. It might be unsuspended. Try rendering
  43195. // at that level.
  43196. return renderRoot.bind(null, root, _lastPendingTime2);
  43197. }
  43198. // The render is suspended, it hasn't timed out, and there's no lower
  43199. // priority work to do. Instead of committing the fallback
  43200. // immediately, wait for more data to arrive.
  43201. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  43202. return null;
  43203. }
  43204. }
  43205. // The work expired. Commit immediately.
  43206. return commitRoot.bind(null, root);
  43207. }
  43208. case RootSuspendedWithDelay:
  43209. {
  43210. flushSuspensePriorityWarningInDEV();
  43211. if (!isSync &&
  43212. // do not delay if we're inside an act() scope
  43213. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  43214. // We're suspended in a state that should be avoided. We'll try to avoid committing
  43215. // it for as long as the timeouts let us.
  43216. if (workInProgressRootHasPendingPing) {
  43217. // This render was pinged but we didn't get to restart earlier so try
  43218. // restarting now instead.
  43219. prepareFreshStack(root, expirationTime);
  43220. return renderRoot.bind(null, root, expirationTime);
  43221. }
  43222. var _lastPendingTime3 = root.lastPendingTime;
  43223. if (_lastPendingTime3 < expirationTime) {
  43224. // There's lower priority work. It might be unsuspended. Try rendering
  43225. // at that level immediately.
  43226. return renderRoot.bind(null, root, _lastPendingTime3);
  43227. }
  43228. var _msUntilTimeout = void 0;
  43229. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  43230. // We have processed a suspense config whose expiration time we can use as
  43231. // the timeout.
  43232. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  43233. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  43234. // This should never normally happen because only new updates cause
  43235. // delayed states, so we should have processed something. However,
  43236. // this could also happen in an offscreen tree.
  43237. _msUntilTimeout = 0;
  43238. } else {
  43239. // If we don't have a suspense config, we're going to use a heuristic to
  43240. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  43241. var currentTimeMs = now();
  43242. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  43243. var timeElapsed = currentTimeMs - eventTimeMs;
  43244. if (timeElapsed < 0) {
  43245. // We get this wrong some time since we estimate the time.
  43246. timeElapsed = 0;
  43247. }
  43248. _msUntilTimeout = jnd(timeElapsed) - timeElapsed;
  43249. // Clamp the timeout to the expiration time.
  43250. // TODO: Once the event time is exact instead of inferred from expiration time
  43251. // we don't need this.
  43252. if (timeUntilExpirationMs < _msUntilTimeout) {
  43253. _msUntilTimeout = timeUntilExpirationMs;
  43254. }
  43255. }
  43256. // Don't bother with a very short suspense time.
  43257. if (_msUntilTimeout > 10) {
  43258. // The render is suspended, it hasn't timed out, and there's no lower
  43259. // priority work to do. Instead of committing the fallback
  43260. // immediately, wait for more data to arrive.
  43261. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  43262. return null;
  43263. }
  43264. }
  43265. // The work expired. Commit immediately.
  43266. return commitRoot.bind(null, root);
  43267. }
  43268. case RootCompleted:
  43269. {
  43270. // The work completed. Ready to commit.
  43271. if (!isSync &&
  43272. // do not delay if we're inside an act() scope
  43273. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  43274. // If we have exceeded the minimum loading delay, which probably
  43275. // means we have shown a spinner already, we might have to suspend
  43276. // a bit longer to ensure that the spinner is shown for enough time.
  43277. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  43278. if (_msUntilTimeout2 > 10) {
  43279. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  43280. return null;
  43281. }
  43282. }
  43283. return commitRoot.bind(null, root);
  43284. }
  43285. default:
  43286. {
  43287. (function () {
  43288. {
  43289. {
  43290. throw ReactError(Error('Unknown root exit status.'));
  43291. }
  43292. }
  43293. })();
  43294. }
  43295. }
  43296. }
  43297. function markCommitTimeOfFallback() {
  43298. globalMostRecentFallbackTime = now();
  43299. }
  43300. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  43301. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Never) {
  43302. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  43303. }
  43304. if (suspenseConfig !== null) {
  43305. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Never) {
  43306. workInProgressRootLatestSuspenseTimeout = expirationTime;
  43307. // Most of the time we only have one config and getting wrong is not bad.
  43308. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  43309. }
  43310. }
  43311. }
  43312. function renderDidSuspend() {
  43313. if (workInProgressRootExitStatus === RootIncomplete) {
  43314. workInProgressRootExitStatus = RootSuspended;
  43315. }
  43316. }
  43317. function renderDidSuspendDelayIfPossible() {
  43318. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  43319. workInProgressRootExitStatus = RootSuspendedWithDelay;
  43320. }
  43321. }
  43322. function renderDidError() {
  43323. if (workInProgressRootExitStatus !== RootCompleted) {
  43324. workInProgressRootExitStatus = RootErrored;
  43325. }
  43326. }
  43327. // Called during render to determine if anything has suspended.
  43328. // Returns false if we're not sure.
  43329. function renderHasNotSuspendedYet() {
  43330. // If something errored or completed, we can't really be sure,
  43331. // so those are false.
  43332. return workInProgressRootExitStatus === RootIncomplete;
  43333. }
  43334. function inferTimeFromExpirationTime(expirationTime) {
  43335. // We don't know exactly when the update was scheduled, but we can infer an
  43336. // approximate start time from the expiration time.
  43337. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  43338. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  43339. }
  43340. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  43341. // We don't know exactly when the update was scheduled, but we can infer an
  43342. // approximate start time from the expiration time by subtracting the timeout
  43343. // that was added to the event time.
  43344. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  43345. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  43346. }
  43347. function workLoopSync() {
  43348. // Already timed out, so perform work without checking if we need to yield.
  43349. while (workInProgress !== null) {
  43350. workInProgress = performUnitOfWork(workInProgress);
  43351. }
  43352. }
  43353. function workLoop() {
  43354. // Perform work until Scheduler asks us to yield
  43355. while (workInProgress !== null && !shouldYield()) {
  43356. workInProgress = performUnitOfWork(workInProgress);
  43357. }
  43358. }
  43359. function performUnitOfWork(unitOfWork) {
  43360. // The current, flushed, state of this fiber is the alternate. Ideally
  43361. // nothing should rely on this, but relying on it here means that we don't
  43362. // need an additional field on the work in progress.
  43363. var current$$1 = unitOfWork.alternate;
  43364. startWorkTimer(unitOfWork);
  43365. setCurrentFiber(unitOfWork);
  43366. var next = void 0;
  43367. if (enableProfilerTimer && (unitOfWork.mode & ProfileMode) !== NoMode) {
  43368. startProfilerTimer(unitOfWork);
  43369. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  43370. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  43371. } else {
  43372. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  43373. }
  43374. resetCurrentFiber();
  43375. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  43376. if (next === null) {
  43377. // If this doesn't spawn new work, complete the current work.
  43378. next = completeUnitOfWork(unitOfWork);
  43379. }
  43380. ReactCurrentOwner$2.current = null;
  43381. return next;
  43382. }
  43383. function completeUnitOfWork(unitOfWork) {
  43384. // Attempt to complete the current unit of work, then move to the next
  43385. // sibling. If there are no more siblings, return to the parent fiber.
  43386. workInProgress = unitOfWork;
  43387. do {
  43388. // The current, flushed, state of this fiber is the alternate. Ideally
  43389. // nothing should rely on this, but relying on it here means that we don't
  43390. // need an additional field on the work in progress.
  43391. var current$$1 = workInProgress.alternate;
  43392. var returnFiber = workInProgress.return;
  43393. // Check if the work completed or if something threw.
  43394. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  43395. setCurrentFiber(workInProgress);
  43396. var next = void 0;
  43397. if (!enableProfilerTimer || (workInProgress.mode & ProfileMode) === NoMode) {
  43398. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  43399. } else {
  43400. startProfilerTimer(workInProgress);
  43401. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  43402. // Update render duration assuming we didn't error.
  43403. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  43404. }
  43405. stopWorkTimer(workInProgress);
  43406. resetCurrentFiber();
  43407. resetChildExpirationTime(workInProgress);
  43408. if (next !== null) {
  43409. // Completing this fiber spawned new work. Work on that next.
  43410. return next;
  43411. }
  43412. if (returnFiber !== null &&
  43413. // Do not append effects to parents if a sibling failed to complete
  43414. (returnFiber.effectTag & Incomplete) === NoEffect) {
  43415. // Append all the effects of the subtree and this fiber onto the effect
  43416. // list of the parent. The completion order of the children affects the
  43417. // side-effect order.
  43418. if (returnFiber.firstEffect === null) {
  43419. returnFiber.firstEffect = workInProgress.firstEffect;
  43420. }
  43421. if (workInProgress.lastEffect !== null) {
  43422. if (returnFiber.lastEffect !== null) {
  43423. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  43424. }
  43425. returnFiber.lastEffect = workInProgress.lastEffect;
  43426. }
  43427. // If this fiber had side-effects, we append it AFTER the children's
  43428. // side-effects. We can perform certain side-effects earlier if needed,
  43429. // by doing multiple passes over the effect list. We don't want to
  43430. // schedule our own side-effect on our own list because if end up
  43431. // reusing children we'll schedule this effect onto itself since we're
  43432. // at the end.
  43433. var effectTag = workInProgress.effectTag;
  43434. // Skip both NoWork and PerformedWork tags when creating the effect
  43435. // list. PerformedWork effect is read by React DevTools but shouldn't be
  43436. // committed.
  43437. if (effectTag > PerformedWork) {
  43438. if (returnFiber.lastEffect !== null) {
  43439. returnFiber.lastEffect.nextEffect = workInProgress;
  43440. } else {
  43441. returnFiber.firstEffect = workInProgress;
  43442. }
  43443. returnFiber.lastEffect = workInProgress;
  43444. }
  43445. }
  43446. } else {
  43447. // This fiber did not complete because something threw. Pop values off
  43448. // the stack without entering the complete phase. If this is a boundary,
  43449. // capture values if possible.
  43450. var _next = unwindWork(workInProgress, renderExpirationTime);
  43451. // Because this fiber did not complete, don't reset its expiration time.
  43452. if (enableProfilerTimer && (workInProgress.mode & ProfileMode) !== NoMode) {
  43453. // Record the render duration for the fiber that errored.
  43454. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  43455. // Include the time spent working on failed children before continuing.
  43456. var actualDuration = workInProgress.actualDuration;
  43457. var child = workInProgress.child;
  43458. while (child !== null) {
  43459. actualDuration += child.actualDuration;
  43460. child = child.sibling;
  43461. }
  43462. workInProgress.actualDuration = actualDuration;
  43463. }
  43464. if (_next !== null) {
  43465. // If completing this work spawned new work, do that next. We'll come
  43466. // back here again.
  43467. // Since we're restarting, remove anything that is not a host effect
  43468. // from the effect tag.
  43469. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  43470. // also captures and restarts.
  43471. stopFailedWorkTimer(workInProgress);
  43472. _next.effectTag &= HostEffectMask;
  43473. return _next;
  43474. }
  43475. stopWorkTimer(workInProgress);
  43476. if (returnFiber !== null) {
  43477. // Mark the parent fiber as incomplete and clear its effect list.
  43478. returnFiber.firstEffect = returnFiber.lastEffect = null;
  43479. returnFiber.effectTag |= Incomplete;
  43480. }
  43481. }
  43482. var siblingFiber = workInProgress.sibling;
  43483. if (siblingFiber !== null) {
  43484. // If there is more work to do in this returnFiber, do that next.
  43485. return siblingFiber;
  43486. }
  43487. // Otherwise, return to the parent
  43488. workInProgress = returnFiber;
  43489. } while (workInProgress !== null);
  43490. // We've reached the root.
  43491. if (workInProgressRootExitStatus === RootIncomplete) {
  43492. workInProgressRootExitStatus = RootCompleted;
  43493. }
  43494. return null;
  43495. }
  43496. function resetChildExpirationTime(completedWork) {
  43497. if (renderExpirationTime !== Never && completedWork.childExpirationTime === Never) {
  43498. // The children of this component are hidden. Don't bubble their
  43499. // expiration times.
  43500. return;
  43501. }
  43502. var newChildExpirationTime = NoWork;
  43503. // Bubble up the earliest expiration time.
  43504. if (enableProfilerTimer && (completedWork.mode & ProfileMode) !== NoMode) {
  43505. // In profiling mode, resetChildExpirationTime is also used to reset
  43506. // profiler durations.
  43507. var actualDuration = completedWork.actualDuration;
  43508. var treeBaseDuration = completedWork.selfBaseDuration;
  43509. // When a fiber is cloned, its actualDuration is reset to 0. This value will
  43510. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  43511. // When work is done, it should bubble to the parent's actualDuration. If
  43512. // the fiber has not been cloned though, (meaning no work was done), then
  43513. // this value will reflect the amount of time spent working on a previous
  43514. // render. In that case it should not bubble. We determine whether it was
  43515. // cloned by comparing the child pointer.
  43516. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  43517. var child = completedWork.child;
  43518. while (child !== null) {
  43519. var childUpdateExpirationTime = child.expirationTime;
  43520. var childChildExpirationTime = child.childExpirationTime;
  43521. if (childUpdateExpirationTime > newChildExpirationTime) {
  43522. newChildExpirationTime = childUpdateExpirationTime;
  43523. }
  43524. if (childChildExpirationTime > newChildExpirationTime) {
  43525. newChildExpirationTime = childChildExpirationTime;
  43526. }
  43527. if (shouldBubbleActualDurations) {
  43528. actualDuration += child.actualDuration;
  43529. }
  43530. treeBaseDuration += child.treeBaseDuration;
  43531. child = child.sibling;
  43532. }
  43533. completedWork.actualDuration = actualDuration;
  43534. completedWork.treeBaseDuration = treeBaseDuration;
  43535. } else {
  43536. var _child = completedWork.child;
  43537. while (_child !== null) {
  43538. var _childUpdateExpirationTime = _child.expirationTime;
  43539. var _childChildExpirationTime = _child.childExpirationTime;
  43540. if (_childUpdateExpirationTime > newChildExpirationTime) {
  43541. newChildExpirationTime = _childUpdateExpirationTime;
  43542. }
  43543. if (_childChildExpirationTime > newChildExpirationTime) {
  43544. newChildExpirationTime = _childChildExpirationTime;
  43545. }
  43546. _child = _child.sibling;
  43547. }
  43548. }
  43549. completedWork.childExpirationTime = newChildExpirationTime;
  43550. }
  43551. function commitRoot(root) {
  43552. var renderPriorityLevel = getCurrentPriorityLevel();
  43553. runWithPriority$2(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  43554. // If there are passive effects, schedule a callback to flush them. This goes
  43555. // outside commitRootImpl so that it inherits the priority of the render.
  43556. if (rootWithPendingPassiveEffects !== null) {
  43557. scheduleCallback(NormalPriority, function () {
  43558. flushPassiveEffects();
  43559. return null;
  43560. });
  43561. }
  43562. return null;
  43563. }
  43564. function commitRootImpl(root, renderPriorityLevel) {
  43565. flushPassiveEffects();
  43566. flushRenderPhaseStrictModeWarningsInDEV();
  43567. (function () {
  43568. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  43569. {
  43570. throw ReactError(Error('Should not already be working.'));
  43571. }
  43572. }
  43573. })();
  43574. var finishedWork = root.finishedWork;
  43575. var expirationTime = root.finishedExpirationTime;
  43576. if (finishedWork === null) {
  43577. return null;
  43578. }
  43579. root.finishedWork = null;
  43580. root.finishedExpirationTime = NoWork;
  43581. (function () {
  43582. if (!(finishedWork !== root.current)) {
  43583. {
  43584. throw ReactError(Error('Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.'));
  43585. }
  43586. }
  43587. })();
  43588. // commitRoot never returns a continuation; it always finishes synchronously.
  43589. // So we can clear these now to allow a new callback to be scheduled.
  43590. root.callbackNode = null;
  43591. root.callbackExpirationTime = NoWork;
  43592. startCommitTimer();
  43593. // Update the first and last pending times on this root. The new first
  43594. // pending time is whatever is left on the root fiber.
  43595. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  43596. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  43597. var firstPendingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  43598. root.firstPendingTime = firstPendingTimeBeforeCommit;
  43599. if (firstPendingTimeBeforeCommit < root.lastPendingTime) {
  43600. // This usually means we've finished all the work, but it can also happen
  43601. // when something gets downprioritized during render, like a hidden tree.
  43602. root.lastPendingTime = firstPendingTimeBeforeCommit;
  43603. }
  43604. if (root === workInProgressRoot) {
  43605. // We can reset these now that they are finished.
  43606. workInProgressRoot = null;
  43607. workInProgress = null;
  43608. renderExpirationTime = NoWork;
  43609. } else {}
  43610. // This indicates that the last root we worked on is not the same one that
  43611. // we're committing now. This most commonly happens when a suspended root
  43612. // times out.
  43613. // Get the list of effects.
  43614. var firstEffect = void 0;
  43615. if (finishedWork.effectTag > PerformedWork) {
  43616. // A fiber's effect list consists only of its children, not itself. So if
  43617. // the root has an effect, we need to add it to the end of the list. The
  43618. // resulting list is the set that would belong to the root's parent, if it
  43619. // had one; that is, all the effects in the tree including the root.
  43620. if (finishedWork.lastEffect !== null) {
  43621. finishedWork.lastEffect.nextEffect = finishedWork;
  43622. firstEffect = finishedWork.firstEffect;
  43623. } else {
  43624. firstEffect = finishedWork;
  43625. }
  43626. } else {
  43627. // There is no effect on the root.
  43628. firstEffect = finishedWork.firstEffect;
  43629. }
  43630. if (firstEffect !== null) {
  43631. var prevExecutionContext = executionContext;
  43632. executionContext |= CommitContext;
  43633. var prevInteractions = null;
  43634. if (enableSchedulerTracing) {
  43635. prevInteractions = tracing.__interactionsRef.current;
  43636. tracing.__interactionsRef.current = root.memoizedInteractions;
  43637. }
  43638. // Reset this to null before calling lifecycles
  43639. ReactCurrentOwner$2.current = null;
  43640. // The commit phase is broken into several sub-phases. We do a separate pass
  43641. // of the effect list for each phase: all mutation effects come before all
  43642. // layout effects, and so on.
  43643. // The first phase a "before mutation" phase. We use this phase to read the
  43644. // state of the host tree right before we mutate it. This is where
  43645. // getSnapshotBeforeUpdate is called.
  43646. startCommitSnapshotEffectsTimer();
  43647. prepareForCommit(root.containerInfo);
  43648. nextEffect = firstEffect;
  43649. do {
  43650. {
  43651. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  43652. if (hasCaughtError()) {
  43653. (function () {
  43654. if (!(nextEffect !== null)) {
  43655. {
  43656. throw ReactError(Error('Should be working on an effect.'));
  43657. }
  43658. }
  43659. })();
  43660. var error = clearCaughtError();
  43661. captureCommitPhaseError(nextEffect, error);
  43662. nextEffect = nextEffect.nextEffect;
  43663. }
  43664. }
  43665. } while (nextEffect !== null);
  43666. stopCommitSnapshotEffectsTimer();
  43667. if (enableProfilerTimer) {
  43668. // Mark the current commit time to be shared by all Profilers in this
  43669. // batch. This enables them to be grouped later.
  43670. recordCommitTime();
  43671. }
  43672. // The next phase is the mutation phase, where we mutate the host tree.
  43673. startCommitHostEffectsTimer();
  43674. nextEffect = firstEffect;
  43675. do {
  43676. {
  43677. invokeGuardedCallback(null, commitMutationEffects, null, renderPriorityLevel);
  43678. if (hasCaughtError()) {
  43679. (function () {
  43680. if (!(nextEffect !== null)) {
  43681. {
  43682. throw ReactError(Error('Should be working on an effect.'));
  43683. }
  43684. }
  43685. })();
  43686. var _error = clearCaughtError();
  43687. captureCommitPhaseError(nextEffect, _error);
  43688. nextEffect = nextEffect.nextEffect;
  43689. }
  43690. }
  43691. } while (nextEffect !== null);
  43692. stopCommitHostEffectsTimer();
  43693. resetAfterCommit(root.containerInfo);
  43694. // The work-in-progress tree is now the current tree. This must come after
  43695. // the mutation phase, so that the previous tree is still current during
  43696. // componentWillUnmount, but before the layout phase, so that the finished
  43697. // work is current during componentDidMount/Update.
  43698. root.current = finishedWork;
  43699. // The next phase is the layout phase, where we call effects that read
  43700. // the host tree after it's been mutated. The idiomatic use case for this is
  43701. // layout, but class component lifecycles also fire here for legacy reasons.
  43702. startCommitLifeCyclesTimer();
  43703. nextEffect = firstEffect;
  43704. do {
  43705. {
  43706. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  43707. if (hasCaughtError()) {
  43708. (function () {
  43709. if (!(nextEffect !== null)) {
  43710. {
  43711. throw ReactError(Error('Should be working on an effect.'));
  43712. }
  43713. }
  43714. })();
  43715. var _error2 = clearCaughtError();
  43716. captureCommitPhaseError(nextEffect, _error2);
  43717. nextEffect = nextEffect.nextEffect;
  43718. }
  43719. }
  43720. } while (nextEffect !== null);
  43721. stopCommitLifeCyclesTimer();
  43722. nextEffect = null;
  43723. // Tell Scheduler to yield at the end of the frame, so the browser has an
  43724. // opportunity to paint.
  43725. requestPaint();
  43726. if (enableSchedulerTracing) {
  43727. tracing.__interactionsRef.current = prevInteractions;
  43728. }
  43729. executionContext = prevExecutionContext;
  43730. } else {
  43731. // No effects.
  43732. root.current = finishedWork;
  43733. // Measure these anyway so the flamegraph explicitly shows that there were
  43734. // no effects.
  43735. // TODO: Maybe there's a better way to report this.
  43736. startCommitSnapshotEffectsTimer();
  43737. stopCommitSnapshotEffectsTimer();
  43738. if (enableProfilerTimer) {
  43739. recordCommitTime();
  43740. }
  43741. startCommitHostEffectsTimer();
  43742. stopCommitHostEffectsTimer();
  43743. startCommitLifeCyclesTimer();
  43744. stopCommitLifeCyclesTimer();
  43745. }
  43746. stopCommitTimer();
  43747. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  43748. if (rootDoesHavePassiveEffects) {
  43749. // This commit has passive effects. Stash a reference to them. But don't
  43750. // schedule a callback until after flushing layout work.
  43751. rootDoesHavePassiveEffects = false;
  43752. rootWithPendingPassiveEffects = root;
  43753. pendingPassiveEffectsExpirationTime = expirationTime;
  43754. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  43755. } else {
  43756. // We are done with the effect chain at this point so let's clear the
  43757. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  43758. // clear this in flushPassiveEffects.
  43759. nextEffect = firstEffect;
  43760. while (nextEffect !== null) {
  43761. var nextNextEffect = nextEffect.nextEffect;
  43762. nextEffect.nextEffect = null;
  43763. nextEffect = nextNextEffect;
  43764. }
  43765. }
  43766. // Check if there's remaining work on this root
  43767. var remainingExpirationTime = root.firstPendingTime;
  43768. if (remainingExpirationTime !== NoWork) {
  43769. var currentTime = requestCurrentTime();
  43770. var priorityLevel = inferPriorityFromExpirationTime(currentTime, remainingExpirationTime);
  43771. if (enableSchedulerTracing) {
  43772. if (spawnedWorkDuringRender !== null) {
  43773. var expirationTimes = spawnedWorkDuringRender;
  43774. spawnedWorkDuringRender = null;
  43775. for (var i = 0; i < expirationTimes.length; i++) {
  43776. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  43777. }
  43778. }
  43779. }
  43780. scheduleCallbackForRoot(root, priorityLevel, remainingExpirationTime);
  43781. } else {
  43782. // If there's no remaining work, we can clear the set of already failed
  43783. // error boundaries.
  43784. legacyErrorBoundariesThatAlreadyFailed = null;
  43785. }
  43786. if (enableSchedulerTracing) {
  43787. if (!rootDidHavePassiveEffects) {
  43788. // If there are no passive effects, then we can complete the pending interactions.
  43789. // Otherwise, we'll wait until after the passive effects are flushed.
  43790. // Wait to do this until after remaining work has been scheduled,
  43791. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  43792. finishPendingInteractions(root, expirationTime);
  43793. }
  43794. }
  43795. onCommitRoot(finishedWork.stateNode, expirationTime);
  43796. if (remainingExpirationTime === Sync) {
  43797. // Count the number of times the root synchronously re-renders without
  43798. // finishing. If there are too many, it indicates an infinite update loop.
  43799. if (root === rootWithNestedUpdates) {
  43800. nestedUpdateCount++;
  43801. } else {
  43802. nestedUpdateCount = 0;
  43803. rootWithNestedUpdates = root;
  43804. }
  43805. } else {
  43806. nestedUpdateCount = 0;
  43807. }
  43808. if (hasUncaughtError) {
  43809. hasUncaughtError = false;
  43810. var _error3 = firstUncaughtError;
  43811. firstUncaughtError = null;
  43812. throw _error3;
  43813. }
  43814. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  43815. // This is a legacy edge case. We just committed the initial mount of
  43816. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  43817. // synchronously, but layout updates should be deferred until the end
  43818. // of the batch.
  43819. return null;
  43820. }
  43821. // If layout work was scheduled, flush it now.
  43822. flushSyncCallbackQueue();
  43823. return null;
  43824. }
  43825. function commitBeforeMutationEffects() {
  43826. while (nextEffect !== null) {
  43827. if ((nextEffect.effectTag & Snapshot) !== NoEffect) {
  43828. setCurrentFiber(nextEffect);
  43829. recordEffect();
  43830. var current$$1 = nextEffect.alternate;
  43831. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  43832. resetCurrentFiber();
  43833. }
  43834. nextEffect = nextEffect.nextEffect;
  43835. }
  43836. }
  43837. function commitMutationEffects(renderPriorityLevel) {
  43838. // TODO: Should probably move the bulk of this function to commitWork.
  43839. while (nextEffect !== null) {
  43840. setCurrentFiber(nextEffect);
  43841. var effectTag = nextEffect.effectTag;
  43842. if (effectTag & ContentReset) {
  43843. commitResetTextContent(nextEffect);
  43844. }
  43845. if (effectTag & Ref) {
  43846. var current$$1 = nextEffect.alternate;
  43847. if (current$$1 !== null) {
  43848. commitDetachRef(current$$1);
  43849. }
  43850. }
  43851. // The following switch statement is only concerned about placement,
  43852. // updates, and deletions. To avoid needing to add a case for every possible
  43853. // bitmap value, we remove the secondary effects from the effect tag and
  43854. // switch on that value.
  43855. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  43856. switch (primaryEffectTag) {
  43857. case Placement:
  43858. {
  43859. commitPlacement(nextEffect);
  43860. // Clear the "placement" from effect tag so that we know that this is
  43861. // inserted, before any life-cycles like componentDidMount gets called.
  43862. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  43863. // and isMounted is deprecated anyway so we should be able to kill this.
  43864. nextEffect.effectTag &= ~Placement;
  43865. break;
  43866. }
  43867. case PlacementAndUpdate:
  43868. {
  43869. // Placement
  43870. commitPlacement(nextEffect);
  43871. // Clear the "placement" from effect tag so that we know that this is
  43872. // inserted, before any life-cycles like componentDidMount gets called.
  43873. nextEffect.effectTag &= ~Placement;
  43874. // Update
  43875. var _current = nextEffect.alternate;
  43876. commitWork(_current, nextEffect);
  43877. break;
  43878. }
  43879. case Update:
  43880. {
  43881. var _current2 = nextEffect.alternate;
  43882. commitWork(_current2, nextEffect);
  43883. break;
  43884. }
  43885. case Deletion:
  43886. {
  43887. commitDeletion(nextEffect, renderPriorityLevel);
  43888. break;
  43889. }
  43890. }
  43891. // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  43892. recordEffect();
  43893. resetCurrentFiber();
  43894. nextEffect = nextEffect.nextEffect;
  43895. }
  43896. }
  43897. function commitLayoutEffects(root, committedExpirationTime) {
  43898. // TODO: Should probably move the bulk of this function to commitWork.
  43899. while (nextEffect !== null) {
  43900. setCurrentFiber(nextEffect);
  43901. var effectTag = nextEffect.effectTag;
  43902. if (effectTag & (Update | Callback)) {
  43903. recordEffect();
  43904. var current$$1 = nextEffect.alternate;
  43905. commitLifeCycles(root, current$$1, nextEffect, committedExpirationTime);
  43906. }
  43907. if (effectTag & Ref) {
  43908. recordEffect();
  43909. commitAttachRef(nextEffect);
  43910. }
  43911. if (effectTag & Passive) {
  43912. rootDoesHavePassiveEffects = true;
  43913. }
  43914. resetCurrentFiber();
  43915. nextEffect = nextEffect.nextEffect;
  43916. }
  43917. }
  43918. function flushPassiveEffects() {
  43919. if (rootWithPendingPassiveEffects === null) {
  43920. return false;
  43921. }
  43922. var root = rootWithPendingPassiveEffects;
  43923. var expirationTime = pendingPassiveEffectsExpirationTime;
  43924. var renderPriorityLevel = pendingPassiveEffectsRenderPriority;
  43925. rootWithPendingPassiveEffects = null;
  43926. pendingPassiveEffectsExpirationTime = NoWork;
  43927. pendingPassiveEffectsRenderPriority = NoPriority;
  43928. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  43929. return runWithPriority$2(priorityLevel, flushPassiveEffectsImpl.bind(null, root, expirationTime));
  43930. }
  43931. function flushPassiveEffectsImpl(root, expirationTime) {
  43932. var prevInteractions = null;
  43933. if (enableSchedulerTracing) {
  43934. prevInteractions = tracing.__interactionsRef.current;
  43935. tracing.__interactionsRef.current = root.memoizedInteractions;
  43936. }
  43937. (function () {
  43938. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  43939. {
  43940. throw ReactError(Error('Cannot flush passive effects while already rendering.'));
  43941. }
  43942. }
  43943. })();
  43944. var prevExecutionContext = executionContext;
  43945. executionContext |= CommitContext;
  43946. // Note: This currently assumes there are no passive effects on the root
  43947. // fiber, because the root is not part of its own effect list. This could
  43948. // change in the future.
  43949. var effect = root.current.firstEffect;
  43950. while (effect !== null) {
  43951. {
  43952. setCurrentFiber(effect);
  43953. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  43954. if (hasCaughtError()) {
  43955. (function () {
  43956. if (!(effect !== null)) {
  43957. {
  43958. throw ReactError(Error('Should be working on an effect.'));
  43959. }
  43960. }
  43961. })();
  43962. var error = clearCaughtError();
  43963. captureCommitPhaseError(effect, error);
  43964. }
  43965. resetCurrentFiber();
  43966. }
  43967. var nextNextEffect = effect.nextEffect;
  43968. // Remove nextEffect pointer to assist GC
  43969. effect.nextEffect = null;
  43970. effect = nextNextEffect;
  43971. }
  43972. if (enableSchedulerTracing) {
  43973. tracing.__interactionsRef.current = prevInteractions;
  43974. finishPendingInteractions(root, expirationTime);
  43975. }
  43976. executionContext = prevExecutionContext;
  43977. flushSyncCallbackQueue();
  43978. // If additional passive effects were scheduled, increment a counter. If this
  43979. // exceeds the limit, we'll fire a warning.
  43980. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  43981. return true;
  43982. }
  43983. function isAlreadyFailedLegacyErrorBoundary(instance) {
  43984. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  43985. }
  43986. function markLegacyErrorBoundaryAsFailed(instance) {
  43987. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  43988. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  43989. } else {
  43990. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  43991. }
  43992. }
  43993. function prepareToThrowUncaughtError(error) {
  43994. if (!hasUncaughtError) {
  43995. hasUncaughtError = true;
  43996. firstUncaughtError = error;
  43997. }
  43998. }
  43999. var onUncaughtError = prepareToThrowUncaughtError;
  44000. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  44001. var errorInfo = createCapturedValue(error, sourceFiber);
  44002. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  44003. enqueueUpdate(rootFiber, update);
  44004. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  44005. if (root !== null) {
  44006. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  44007. }
  44008. }
  44009. function captureCommitPhaseError(sourceFiber, error) {
  44010. if (sourceFiber.tag === HostRoot) {
  44011. // Error was thrown at the root. There is no parent, so the root
  44012. // itself should capture it.
  44013. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  44014. return;
  44015. }
  44016. var fiber = sourceFiber.return;
  44017. while (fiber !== null) {
  44018. if (fiber.tag === HostRoot) {
  44019. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  44020. return;
  44021. } else if (fiber.tag === ClassComponent) {
  44022. var ctor = fiber.type;
  44023. var instance = fiber.stateNode;
  44024. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  44025. var errorInfo = createCapturedValue(error, sourceFiber);
  44026. var update = createClassErrorUpdate(fiber, errorInfo,
  44027. // TODO: This is always sync
  44028. Sync);
  44029. enqueueUpdate(fiber, update);
  44030. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  44031. if (root !== null) {
  44032. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  44033. }
  44034. return;
  44035. }
  44036. }
  44037. fiber = fiber.return;
  44038. }
  44039. }
  44040. function pingSuspendedRoot(root, thenable, suspendedTime) {
  44041. var pingCache = root.pingCache;
  44042. if (pingCache !== null) {
  44043. // The thenable resolved, so we no longer need to memoize, because it will
  44044. // never be thrown again.
  44045. pingCache.delete(thenable);
  44046. }
  44047. if (workInProgressRoot === root && renderExpirationTime === suspendedTime) {
  44048. // Received a ping at the same priority level at which we're currently
  44049. // rendering. We might want to restart this render. This should mirror
  44050. // the logic of whether or not a root suspends once it completes.
  44051. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  44052. // we should probably never restart.
  44053. // If we're suspended with delay, we'll always suspend so we can always
  44054. // restart. If we're suspended without any updates, it might be a retry.
  44055. // If it's early in the retry we can restart. We can't know for sure
  44056. // whether we'll eventually process an update during this render pass,
  44057. // but it's somewhat unlikely that we get to a ping before that, since
  44058. // getting to the root most update is usually very fast.
  44059. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  44060. // Restart from the root. Don't need to schedule a ping because
  44061. // we're already working on this tree.
  44062. prepareFreshStack(root, renderExpirationTime);
  44063. } else {
  44064. // Even though we can't restart right now, we might get an
  44065. // opportunity later. So we mark this render as having a ping.
  44066. workInProgressRootHasPendingPing = true;
  44067. }
  44068. return;
  44069. }
  44070. var lastPendingTime = root.lastPendingTime;
  44071. if (lastPendingTime < suspendedTime) {
  44072. // The root is no longer suspended at this time.
  44073. return;
  44074. }
  44075. var pingTime = root.pingTime;
  44076. if (pingTime !== NoWork && pingTime < suspendedTime) {
  44077. // There's already a lower priority ping scheduled.
  44078. return;
  44079. }
  44080. // Mark the time at which this ping was scheduled.
  44081. root.pingTime = suspendedTime;
  44082. if (root.finishedExpirationTime === suspendedTime) {
  44083. // If there's a pending fallback waiting to commit, throw it away.
  44084. root.finishedExpirationTime = NoWork;
  44085. root.finishedWork = null;
  44086. }
  44087. var currentTime = requestCurrentTime();
  44088. var priorityLevel = inferPriorityFromExpirationTime(currentTime, suspendedTime);
  44089. scheduleCallbackForRoot(root, priorityLevel, suspendedTime);
  44090. }
  44091. function retryTimedOutBoundary(boundaryFiber) {
  44092. // The boundary fiber (a Suspense component or SuspenseList component)
  44093. // previously was rendered in its fallback state. One of the promises that
  44094. // suspended it has resolved, which means at least part of the tree was
  44095. // likely unblocked. Try rendering again, at a new expiration time.
  44096. var currentTime = requestCurrentTime();
  44097. var suspenseConfig = null; // Retries don't carry over the already committed update.
  44098. var retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  44099. // TODO: Special case idle priority?
  44100. var priorityLevel = inferPriorityFromExpirationTime(currentTime, retryTime);
  44101. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  44102. if (root !== null) {
  44103. scheduleCallbackForRoot(root, priorityLevel, retryTime);
  44104. }
  44105. }
  44106. function resolveRetryThenable(boundaryFiber, thenable) {
  44107. var retryCache = void 0;
  44108. if (enableSuspenseServerRenderer) {
  44109. switch (boundaryFiber.tag) {
  44110. case SuspenseComponent:
  44111. retryCache = boundaryFiber.stateNode;
  44112. break;
  44113. case DehydratedSuspenseComponent:
  44114. retryCache = boundaryFiber.memoizedState;
  44115. break;
  44116. default:
  44117. (function () {
  44118. {
  44119. {
  44120. throw ReactError(Error('Pinged unknown suspense boundary type. This is probably a bug in React.'));
  44121. }
  44122. }
  44123. })();
  44124. }
  44125. } else {
  44126. retryCache = boundaryFiber.stateNode;
  44127. }
  44128. if (retryCache !== null) {
  44129. // The thenable resolved, so we no longer need to memoize, because it will
  44130. // never be thrown again.
  44131. retryCache.delete(thenable);
  44132. }
  44133. retryTimedOutBoundary(boundaryFiber);
  44134. }
  44135. // Computes the next Just Noticeable Difference (JND) boundary.
  44136. // The theory is that a person can't tell the difference between small differences in time.
  44137. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  44138. // difference in the experience. However, waiting for longer might mean that we can avoid
  44139. // showing an intermediate loading state. The longer we have already waited, the harder it
  44140. // is to tell small differences in time. Therefore, the longer we've already waited,
  44141. // the longer we can wait additionally. At some point we have to give up though.
  44142. // We pick a train model where the next boundary commits at a consistent schedule.
  44143. // These particular numbers are vague estimates. We expect to adjust them based on research.
  44144. function jnd(timeElapsed) {
  44145. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  44146. }
  44147. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  44148. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  44149. if (busyMinDurationMs <= 0) {
  44150. return 0;
  44151. }
  44152. var busyDelayMs = suspenseConfig.busyDelayMs | 0;
  44153. // Compute the time until this render pass would expire.
  44154. var currentTimeMs = now();
  44155. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  44156. var timeElapsed = currentTimeMs - eventTimeMs;
  44157. if (timeElapsed <= busyDelayMs) {
  44158. // If we haven't yet waited longer than the initial delay, we don't
  44159. // have to wait any additional time.
  44160. return 0;
  44161. }
  44162. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed;
  44163. // This is the value that is passed to `setTimeout`.
  44164. return msUntilTimeout;
  44165. }
  44166. function checkForNestedUpdates() {
  44167. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  44168. nestedUpdateCount = 0;
  44169. rootWithNestedUpdates = null;
  44170. (function () {
  44171. {
  44172. {
  44173. throw ReactError(Error('Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.'));
  44174. }
  44175. }
  44176. })();
  44177. }
  44178. {
  44179. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  44180. nestedPassiveUpdateCount = 0;
  44181. warning$1(false, 'Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
  44182. }
  44183. }
  44184. }
  44185. function flushRenderPhaseStrictModeWarningsInDEV() {
  44186. {
  44187. ReactStrictModeWarnings.flushLegacyContextWarning();
  44188. if (warnAboutDeprecatedLifecycles) {
  44189. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  44190. }
  44191. }
  44192. }
  44193. function stopFinishedWorkLoopTimer() {
  44194. var didCompleteRoot = true;
  44195. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  44196. interruptedBy = null;
  44197. }
  44198. function stopInterruptedWorkLoopTimer() {
  44199. // TODO: Track which fiber caused the interruption.
  44200. var didCompleteRoot = false;
  44201. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  44202. interruptedBy = null;
  44203. }
  44204. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  44205. if (enableUserTimingAPI && workInProgressRoot !== null && updateExpirationTime > renderExpirationTime) {
  44206. interruptedBy = fiberThatReceivedUpdate;
  44207. }
  44208. }
  44209. var didWarnStateUpdateForUnmountedComponent = null;
  44210. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  44211. {
  44212. var tag = fiber.tag;
  44213. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {
  44214. // Only warn for user-defined components, not internal ones like Suspense.
  44215. return;
  44216. }
  44217. // We show the whole stack but dedupe on the top component's name because
  44218. // the problematic code almost always lies inside that component.
  44219. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  44220. if (didWarnStateUpdateForUnmountedComponent !== null) {
  44221. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  44222. return;
  44223. }
  44224. didWarnStateUpdateForUnmountedComponent.add(componentName);
  44225. } else {
  44226. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  44227. }
  44228. warningWithoutStack$1(false, "Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  44229. }
  44230. }
  44231. var beginWork$$1 = void 0;
  44232. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  44233. var dummyFiber = null;
  44234. beginWork$$1 = function (current$$1, unitOfWork, expirationTime) {
  44235. // If a component throws an error, we replay it again in a synchronously
  44236. // dispatched event, so that the debugger will treat it as an uncaught
  44237. // error See ReactErrorUtils for more information.
  44238. // Before entering the begin phase, copy the work-in-progress onto a dummy
  44239. // fiber. If beginWork throws, we'll use this to reset the state.
  44240. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  44241. try {
  44242. return beginWork$1(current$$1, unitOfWork, expirationTime);
  44243. } catch (originalError) {
  44244. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  44245. // Don't replay promises. Treat everything else like an error.
  44246. throw originalError;
  44247. }
  44248. // Keep this code in sync with renderRoot; any changes here must have
  44249. // corresponding changes there.
  44250. resetContextDependencies();
  44251. resetHooks();
  44252. // Unwind the failed stack frame
  44253. unwindInterruptedWork(unitOfWork);
  44254. // Restore the original properties of the fiber.
  44255. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  44256. if (enableProfilerTimer && unitOfWork.mode & ProfileMode) {
  44257. // Reset the profiler timer.
  44258. startProfilerTimer(unitOfWork);
  44259. }
  44260. // Run beginWork again.
  44261. invokeGuardedCallback(null, beginWork$1, null, current$$1, unitOfWork, expirationTime);
  44262. if (hasCaughtError()) {
  44263. var replayError = clearCaughtError();
  44264. // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  44265. // Rethrow this error instead of the original one.
  44266. throw replayError;
  44267. } else {
  44268. // This branch is reachable if the render phase is impure.
  44269. throw originalError;
  44270. }
  44271. }
  44272. };
  44273. } else {
  44274. beginWork$$1 = beginWork$1;
  44275. }
  44276. var didWarnAboutUpdateInRender = false;
  44277. var didWarnAboutUpdateInGetChildContext = false;
  44278. function warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber) {
  44279. {
  44280. if (fiber.tag === ClassComponent) {
  44281. switch (phase) {
  44282. case 'getChildContext':
  44283. if (didWarnAboutUpdateInGetChildContext) {
  44284. return;
  44285. }
  44286. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  44287. didWarnAboutUpdateInGetChildContext = true;
  44288. break;
  44289. case 'render':
  44290. if (didWarnAboutUpdateInRender) {
  44291. return;
  44292. }
  44293. warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure function of ' + 'props and state.');
  44294. didWarnAboutUpdateInRender = true;
  44295. break;
  44296. }
  44297. }
  44298. }
  44299. }
  44300. // a 'shared' variable that changes when act() opens/closes in tests.
  44301. var IsThisRendererActing = { current: false };
  44302. function warnIfNotScopedWithMatchingAct(fiber) {
  44303. {
  44304. if (warnsIfNotActing === true && IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  44305. warningWithoutStack$1(false, "It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + "import {act} from 'react-dom/test-utils';\n" + '//...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + "import TestRenderer from 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '//...\n' + 'act(() => ...);' + '%s', getStackByFiberInDevAndProd(fiber));
  44306. }
  44307. }
  44308. }
  44309. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  44310. {
  44311. if (warnsIfNotActing === true && (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  44312. warningWithoutStack$1(false, 'An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  44313. }
  44314. }
  44315. }
  44316. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  44317. {
  44318. if (warnsIfNotActing === true && executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  44319. warningWithoutStack$1(false, 'An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  44320. }
  44321. }
  44322. }
  44323. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV;
  44324. // In tests, we want to enforce a mocked scheduler.
  44325. var didWarnAboutUnmockedScheduler = false;
  44326. // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  44327. // scheduler is the actual recommendation. The alternative could be a testing build,
  44328. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  44329. // to get their tests right.
  44330. function warnIfUnmockedScheduler(fiber) {
  44331. {
  44332. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  44333. if (fiber.mode & BatchedMode || fiber.mode & ConcurrentMode) {
  44334. didWarnAboutUnmockedScheduler = true;
  44335. warningWithoutStack$1(false, 'In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  44336. } else if (warnAboutUnmockedScheduler === true) {
  44337. didWarnAboutUnmockedScheduler = true;
  44338. warningWithoutStack$1(false, 'Starting from React v17, the "scheduler" module will need to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  44339. }
  44340. }
  44341. }
  44342. }
  44343. var componentsThatTriggeredHighPriSuspend = null;
  44344. function checkForWrongSuspensePriorityInDEV(sourceFiber) {
  44345. {
  44346. var currentPriorityLevel = getCurrentPriorityLevel();
  44347. if ((sourceFiber.mode & ConcurrentMode) !== NoEffect && (currentPriorityLevel === UserBlockingPriority$2 || currentPriorityLevel === ImmediatePriority)) {
  44348. var workInProgressNode = sourceFiber;
  44349. while (workInProgressNode !== null) {
  44350. // Add the component that triggered the suspense
  44351. var current$$1 = workInProgressNode.alternate;
  44352. if (current$$1 !== null) {
  44353. // TODO: warn component that triggers the high priority
  44354. // suspend is the HostRoot
  44355. switch (workInProgressNode.tag) {
  44356. case ClassComponent:
  44357. // Loop through the component's update queue and see whether the component
  44358. // has triggered any high priority updates
  44359. var updateQueue = current$$1.updateQueue;
  44360. if (updateQueue !== null) {
  44361. var update = updateQueue.firstUpdate;
  44362. while (update !== null) {
  44363. var priorityLevel = update.priority;
  44364. if (priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority) {
  44365. if (componentsThatTriggeredHighPriSuspend === null) {
  44366. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  44367. } else {
  44368. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  44369. }
  44370. break;
  44371. }
  44372. update = update.next;
  44373. }
  44374. }
  44375. break;
  44376. case FunctionComponent:
  44377. case ForwardRef:
  44378. case SimpleMemoComponent:
  44379. if (workInProgressNode.memoizedState !== null && workInProgressNode.memoizedState.baseUpdate !== null) {
  44380. var _update = workInProgressNode.memoizedState.baseUpdate;
  44381. // Loop through the functional component's memoized state to see whether
  44382. // the component has triggered any high pri updates
  44383. while (_update !== null) {
  44384. var priority = _update.priority;
  44385. if (priority === UserBlockingPriority$2 || priority === ImmediatePriority) {
  44386. if (componentsThatTriggeredHighPriSuspend === null) {
  44387. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  44388. } else {
  44389. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  44390. }
  44391. break;
  44392. }
  44393. if (_update.next === workInProgressNode.memoizedState.baseUpdate) {
  44394. break;
  44395. }
  44396. _update = _update.next;
  44397. }
  44398. }
  44399. break;
  44400. default:
  44401. break;
  44402. }
  44403. }
  44404. workInProgressNode = workInProgressNode.return;
  44405. }
  44406. }
  44407. }
  44408. }
  44409. function flushSuspensePriorityWarningInDEV() {
  44410. {
  44411. if (componentsThatTriggeredHighPriSuspend !== null) {
  44412. var componentNames = [];
  44413. componentsThatTriggeredHighPriSuspend.forEach(function (name) {
  44414. return componentNames.push(name);
  44415. });
  44416. componentsThatTriggeredHighPriSuspend = null;
  44417. if (componentNames.length > 0) {
  44418. warningWithoutStack$1(false, '%s triggered a user-blocking update that suspended.' + '\n\n' + 'The fix is to split the update into multiple parts: a user-blocking ' + 'update to provide immediate feedback, and another update that ' + 'triggers the bulk of the changes.' + '\n\n' + 'Refer to the documentation for useSuspenseTransition to learn how ' + 'to implement this pattern.',
  44419. // TODO: Add link to React docs with more information, once it exists
  44420. componentNames.sort().join(', '));
  44421. }
  44422. }
  44423. }
  44424. }
  44425. function computeThreadID(root, expirationTime) {
  44426. // Interaction threads are unique per root and expiration time.
  44427. return expirationTime * 1000 + root.interactionThreadID;
  44428. }
  44429. function markSpawnedWork(expirationTime) {
  44430. if (!enableSchedulerTracing) {
  44431. return;
  44432. }
  44433. if (spawnedWorkDuringRender === null) {
  44434. spawnedWorkDuringRender = [expirationTime];
  44435. } else {
  44436. spawnedWorkDuringRender.push(expirationTime);
  44437. }
  44438. }
  44439. function scheduleInteractions(root, expirationTime, interactions) {
  44440. if (!enableSchedulerTracing) {
  44441. return;
  44442. }
  44443. if (interactions.size > 0) {
  44444. var pendingInteractionMap = root.pendingInteractionMap;
  44445. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  44446. if (pendingInteractions != null) {
  44447. interactions.forEach(function (interaction) {
  44448. if (!pendingInteractions.has(interaction)) {
  44449. // Update the pending async work count for previously unscheduled interaction.
  44450. interaction.__count++;
  44451. }
  44452. pendingInteractions.add(interaction);
  44453. });
  44454. } else {
  44455. pendingInteractionMap.set(expirationTime, new Set(interactions));
  44456. // Update the pending async work count for the current interactions.
  44457. interactions.forEach(function (interaction) {
  44458. interaction.__count++;
  44459. });
  44460. }
  44461. var subscriber = tracing.__subscriberRef.current;
  44462. if (subscriber !== null) {
  44463. var threadID = computeThreadID(root, expirationTime);
  44464. subscriber.onWorkScheduled(interactions, threadID);
  44465. }
  44466. }
  44467. }
  44468. function schedulePendingInteractions(root, expirationTime) {
  44469. // This is called when work is scheduled on a root.
  44470. // It associates the current interactions with the newly-scheduled expiration.
  44471. // They will be restored when that expiration is later committed.
  44472. if (!enableSchedulerTracing) {
  44473. return;
  44474. }
  44475. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  44476. }
  44477. function startWorkOnPendingInteractions(root, expirationTime) {
  44478. // This is called when new work is started on a root.
  44479. if (!enableSchedulerTracing) {
  44480. return;
  44481. }
  44482. // Determine which interactions this batch of work currently includes, So that
  44483. // we can accurately attribute time spent working on it, And so that cascading
  44484. // work triggered during the render phase will be associated with it.
  44485. var interactions = new Set();
  44486. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  44487. if (scheduledExpirationTime >= expirationTime) {
  44488. scheduledInteractions.forEach(function (interaction) {
  44489. return interactions.add(interaction);
  44490. });
  44491. }
  44492. });
  44493. // Store the current set of interactions on the FiberRoot for a few reasons:
  44494. // We can re-use it in hot functions like renderRoot() without having to
  44495. // recalculate it. We will also use it in commitWork() to pass to any Profiler
  44496. // onRender() hooks. This also provides DevTools with a way to access it when
  44497. // the onCommitRoot() hook is called.
  44498. root.memoizedInteractions = interactions;
  44499. if (interactions.size > 0) {
  44500. var subscriber = tracing.__subscriberRef.current;
  44501. if (subscriber !== null) {
  44502. var threadID = computeThreadID(root, expirationTime);
  44503. try {
  44504. subscriber.onWorkStarted(interactions, threadID);
  44505. } catch (error) {
  44506. // If the subscriber throws, rethrow it in a separate task
  44507. scheduleCallback(ImmediatePriority, function () {
  44508. throw error;
  44509. });
  44510. }
  44511. }
  44512. }
  44513. }
  44514. function finishPendingInteractions(root, committedExpirationTime) {
  44515. if (!enableSchedulerTracing) {
  44516. return;
  44517. }
  44518. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  44519. var subscriber = void 0;
  44520. try {
  44521. subscriber = tracing.__subscriberRef.current;
  44522. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  44523. var threadID = computeThreadID(root, committedExpirationTime);
  44524. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  44525. }
  44526. } catch (error) {
  44527. // If the subscriber throws, rethrow it in a separate task
  44528. scheduleCallback(ImmediatePriority, function () {
  44529. throw error;
  44530. });
  44531. } finally {
  44532. // Clear completed interactions from the pending Map.
  44533. // Unless the render was suspended or cascading work was scheduled,
  44534. // In which case– leave pending interactions until the subsequent render.
  44535. var pendingInteractionMap = root.pendingInteractionMap;
  44536. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  44537. // Only decrement the pending interaction count if we're done.
  44538. // If there's still work at the current priority,
  44539. // That indicates that we are waiting for suspense data.
  44540. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  44541. pendingInteractionMap.delete(scheduledExpirationTime);
  44542. scheduledInteractions.forEach(function (interaction) {
  44543. interaction.__count--;
  44544. if (subscriber !== null && interaction.__count === 0) {
  44545. try {
  44546. subscriber.onInteractionScheduledWorkCompleted(interaction);
  44547. } catch (error) {
  44548. // If the subscriber throws, rethrow it in a separate task
  44549. scheduleCallback(ImmediatePriority, function () {
  44550. throw error;
  44551. });
  44552. }
  44553. }
  44554. });
  44555. }
  44556. });
  44557. }
  44558. }
  44559. var onCommitFiberRoot = null;
  44560. var onCommitFiberUnmount = null;
  44561. var hasLoggedError = false;
  44562. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  44563. function injectInternals(internals) {
  44564. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  44565. // No DevTools
  44566. return false;
  44567. }
  44568. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  44569. if (hook.isDisabled) {
  44570. // This isn't a real property on the hook, but it can be set to opt out
  44571. // of DevTools integration and associated warnings and logs.
  44572. // https://github.com/facebook/react/issues/3877
  44573. return true;
  44574. }
  44575. if (!hook.supportsFiber) {
  44576. {
  44577. warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
  44578. }
  44579. // DevTools exists, even though it doesn't support Fiber.
  44580. return true;
  44581. }
  44582. try {
  44583. var rendererID = hook.inject(internals);
  44584. // We have successfully injected, so now it is safe to set up hooks.
  44585. onCommitFiberRoot = function (root, expirationTime) {
  44586. try {
  44587. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  44588. if (enableProfilerTimer) {
  44589. var currentTime = requestCurrentTime();
  44590. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  44591. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  44592. } else {
  44593. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  44594. }
  44595. } catch (err) {
  44596. if ( true && !hasLoggedError) {
  44597. hasLoggedError = true;
  44598. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  44599. }
  44600. }
  44601. };
  44602. onCommitFiberUnmount = function (fiber) {
  44603. try {
  44604. hook.onCommitFiberUnmount(rendererID, fiber);
  44605. } catch (err) {
  44606. if ( true && !hasLoggedError) {
  44607. hasLoggedError = true;
  44608. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  44609. }
  44610. }
  44611. };
  44612. } catch (err) {
  44613. // Catch all errors because it is unsafe to throw during initialization.
  44614. {
  44615. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  44616. }
  44617. }
  44618. // DevTools exists
  44619. return true;
  44620. }
  44621. function onCommitRoot(root, expirationTime) {
  44622. if (typeof onCommitFiberRoot === 'function') {
  44623. onCommitFiberRoot(root, expirationTime);
  44624. }
  44625. }
  44626. function onCommitUnmount(fiber) {
  44627. if (typeof onCommitFiberUnmount === 'function') {
  44628. onCommitFiberUnmount(fiber);
  44629. }
  44630. }
  44631. var hasBadMapPolyfill = void 0;
  44632. {
  44633. hasBadMapPolyfill = false;
  44634. try {
  44635. var nonExtensibleObject = Object.preventExtensions({});
  44636. var testMap = new Map([[nonExtensibleObject, null]]);
  44637. var testSet = new Set([nonExtensibleObject]);
  44638. // This is necessary for Rollup to not consider these unused.
  44639. // https://github.com/rollup/rollup/issues/1771
  44640. // TODO: we can remove these if Rollup fixes the bug.
  44641. testMap.set(0, 0);
  44642. testSet.add(0);
  44643. } catch (e) {
  44644. // TODO: Consider warning about bad polyfills
  44645. hasBadMapPolyfill = true;
  44646. }
  44647. }
  44648. // A Fiber is work on a Component that needs to be done or was done. There can
  44649. // be more than one per component.
  44650. var debugCounter = void 0;
  44651. {
  44652. debugCounter = 1;
  44653. }
  44654. function FiberNode(tag, pendingProps, key, mode) {
  44655. // Instance
  44656. this.tag = tag;
  44657. this.key = key;
  44658. this.elementType = null;
  44659. this.type = null;
  44660. this.stateNode = null;
  44661. // Fiber
  44662. this.return = null;
  44663. this.child = null;
  44664. this.sibling = null;
  44665. this.index = 0;
  44666. this.ref = null;
  44667. this.pendingProps = pendingProps;
  44668. this.memoizedProps = null;
  44669. this.updateQueue = null;
  44670. this.memoizedState = null;
  44671. this.dependencies = null;
  44672. this.mode = mode;
  44673. // Effects
  44674. this.effectTag = NoEffect;
  44675. this.nextEffect = null;
  44676. this.firstEffect = null;
  44677. this.lastEffect = null;
  44678. this.expirationTime = NoWork;
  44679. this.childExpirationTime = NoWork;
  44680. this.alternate = null;
  44681. if (enableProfilerTimer) {
  44682. // Note: The following is done to avoid a v8 performance cliff.
  44683. //
  44684. // Initializing the fields below to smis and later updating them with
  44685. // double values will cause Fibers to end up having separate shapes.
  44686. // This behavior/bug has something to do with Object.preventExtension().
  44687. // Fortunately this only impacts DEV builds.
  44688. // Unfortunately it makes React unusably slow for some applications.
  44689. // To work around this, initialize the fields below with doubles.
  44690. //
  44691. // Learn more about this here:
  44692. // https://github.com/facebook/react/issues/14365
  44693. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  44694. this.actualDuration = Number.NaN;
  44695. this.actualStartTime = Number.NaN;
  44696. this.selfBaseDuration = Number.NaN;
  44697. this.treeBaseDuration = Number.NaN;
  44698. // It's okay to replace the initial doubles with smis after initialization.
  44699. // This won't trigger the performance cliff mentioned above,
  44700. // and it simplifies other profiler code (including DevTools).
  44701. this.actualDuration = 0;
  44702. this.actualStartTime = -1;
  44703. this.selfBaseDuration = 0;
  44704. this.treeBaseDuration = 0;
  44705. }
  44706. {
  44707. this._debugID = debugCounter++;
  44708. this._debugSource = null;
  44709. this._debugOwner = null;
  44710. this._debugIsCurrentlyTiming = false;
  44711. this._debugNeedsRemount = false;
  44712. this._debugHookTypes = null;
  44713. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  44714. Object.preventExtensions(this);
  44715. }
  44716. }
  44717. }
  44718. // This is a constructor function, rather than a POJO constructor, still
  44719. // please ensure we do the following:
  44720. // 1) Nobody should add any instance methods on this. Instance methods can be
  44721. // more difficult to predict when they get optimized and they are almost
  44722. // never inlined properly in static compilers.
  44723. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  44724. // always know when it is a fiber.
  44725. // 3) We might want to experiment with using numeric keys since they are easier
  44726. // to optimize in a non-JIT environment.
  44727. // 4) We can easily go from a constructor to a createFiber object literal if that
  44728. // is faster.
  44729. // 5) It should be easy to port this to a C struct and keep a C implementation
  44730. // compatible.
  44731. var createFiber = function (tag, pendingProps, key, mode) {
  44732. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  44733. return new FiberNode(tag, pendingProps, key, mode);
  44734. };
  44735. function shouldConstruct(Component) {
  44736. var prototype = Component.prototype;
  44737. return !!(prototype && prototype.isReactComponent);
  44738. }
  44739. function isSimpleFunctionComponent(type) {
  44740. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  44741. }
  44742. function resolveLazyComponentTag(Component) {
  44743. if (typeof Component === 'function') {
  44744. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  44745. } else if (Component !== undefined && Component !== null) {
  44746. var $$typeof = Component.$$typeof;
  44747. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  44748. return ForwardRef;
  44749. }
  44750. if ($$typeof === REACT_MEMO_TYPE) {
  44751. return MemoComponent;
  44752. }
  44753. }
  44754. return IndeterminateComponent;
  44755. }
  44756. // This is used to create an alternate fiber to do work on.
  44757. function createWorkInProgress(current, pendingProps, expirationTime) {
  44758. var workInProgress = current.alternate;
  44759. if (workInProgress === null) {
  44760. // We use a double buffering pooling technique because we know that we'll
  44761. // only ever need at most two versions of a tree. We pool the "other" unused
  44762. // node that we're free to reuse. This is lazily created to avoid allocating
  44763. // extra objects for things that are never updated. It also allow us to
  44764. // reclaim the extra memory if needed.
  44765. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  44766. workInProgress.elementType = current.elementType;
  44767. workInProgress.type = current.type;
  44768. workInProgress.stateNode = current.stateNode;
  44769. {
  44770. // DEV-only fields
  44771. workInProgress._debugID = current._debugID;
  44772. workInProgress._debugSource = current._debugSource;
  44773. workInProgress._debugOwner = current._debugOwner;
  44774. workInProgress._debugHookTypes = current._debugHookTypes;
  44775. }
  44776. workInProgress.alternate = current;
  44777. current.alternate = workInProgress;
  44778. } else {
  44779. workInProgress.pendingProps = pendingProps;
  44780. // We already have an alternate.
  44781. // Reset the effect tag.
  44782. workInProgress.effectTag = NoEffect;
  44783. // The effect list is no longer valid.
  44784. workInProgress.nextEffect = null;
  44785. workInProgress.firstEffect = null;
  44786. workInProgress.lastEffect = null;
  44787. if (enableProfilerTimer) {
  44788. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  44789. // This prevents time from endlessly accumulating in new commits.
  44790. // This has the downside of resetting values for different priority renders,
  44791. // But works for yielding (the common case) and should support resuming.
  44792. workInProgress.actualDuration = 0;
  44793. workInProgress.actualStartTime = -1;
  44794. }
  44795. }
  44796. workInProgress.childExpirationTime = current.childExpirationTime;
  44797. workInProgress.expirationTime = current.expirationTime;
  44798. workInProgress.child = current.child;
  44799. workInProgress.memoizedProps = current.memoizedProps;
  44800. workInProgress.memoizedState = current.memoizedState;
  44801. workInProgress.updateQueue = current.updateQueue;
  44802. // Clone the dependencies object. This is mutated during the render phase, so
  44803. // it cannot be shared with the current fiber.
  44804. var currentDependencies = current.dependencies;
  44805. workInProgress.dependencies = currentDependencies === null ? null : {
  44806. expirationTime: currentDependencies.expirationTime,
  44807. firstContext: currentDependencies.firstContext,
  44808. responders: currentDependencies.responders
  44809. };
  44810. // These will be overridden during the parent's reconciliation
  44811. workInProgress.sibling = current.sibling;
  44812. workInProgress.index = current.index;
  44813. workInProgress.ref = current.ref;
  44814. if (enableProfilerTimer) {
  44815. workInProgress.selfBaseDuration = current.selfBaseDuration;
  44816. workInProgress.treeBaseDuration = current.treeBaseDuration;
  44817. }
  44818. {
  44819. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  44820. switch (workInProgress.tag) {
  44821. case IndeterminateComponent:
  44822. case FunctionComponent:
  44823. case SimpleMemoComponent:
  44824. workInProgress.type = resolveFunctionForHotReloading(current.type);
  44825. break;
  44826. case ClassComponent:
  44827. workInProgress.type = resolveClassForHotReloading(current.type);
  44828. break;
  44829. case ForwardRef:
  44830. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  44831. break;
  44832. default:
  44833. break;
  44834. }
  44835. }
  44836. return workInProgress;
  44837. }
  44838. // Used to reuse a Fiber for a second pass.
  44839. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  44840. // This resets the Fiber to what createFiber or createWorkInProgress would
  44841. // have set the values to before during the first pass. Ideally this wouldn't
  44842. // be necessary but unfortunately many code paths reads from the workInProgress
  44843. // when they should be reading from current and writing to workInProgress.
  44844. // We assume pendingProps, index, key, ref, return are still untouched to
  44845. // avoid doing another reconciliation.
  44846. // Reset the effect tag but keep any Placement tags, since that's something
  44847. // that child fiber is setting, not the reconciliation.
  44848. workInProgress.effectTag &= Placement;
  44849. // The effect list is no longer valid.
  44850. workInProgress.nextEffect = null;
  44851. workInProgress.firstEffect = null;
  44852. workInProgress.lastEffect = null;
  44853. var current = workInProgress.alternate;
  44854. if (current === null) {
  44855. // Reset to createFiber's initial values.
  44856. workInProgress.childExpirationTime = NoWork;
  44857. workInProgress.expirationTime = renderExpirationTime;
  44858. workInProgress.child = null;
  44859. workInProgress.memoizedProps = null;
  44860. workInProgress.memoizedState = null;
  44861. workInProgress.updateQueue = null;
  44862. workInProgress.dependencies = null;
  44863. if (enableProfilerTimer) {
  44864. // Note: We don't reset the actualTime counts. It's useful to accumulate
  44865. // actual time across multiple render passes.
  44866. workInProgress.selfBaseDuration = 0;
  44867. workInProgress.treeBaseDuration = 0;
  44868. }
  44869. } else {
  44870. // Reset to the cloned values that createWorkInProgress would've.
  44871. workInProgress.childExpirationTime = current.childExpirationTime;
  44872. workInProgress.expirationTime = current.expirationTime;
  44873. workInProgress.child = current.child;
  44874. workInProgress.memoizedProps = current.memoizedProps;
  44875. workInProgress.memoizedState = current.memoizedState;
  44876. workInProgress.updateQueue = current.updateQueue;
  44877. // Clone the dependencies object. This is mutated during the render phase, so
  44878. // it cannot be shared with the current fiber.
  44879. var currentDependencies = current.dependencies;
  44880. workInProgress.dependencies = currentDependencies === null ? null : {
  44881. expirationTime: currentDependencies.expirationTime,
  44882. firstContext: currentDependencies.firstContext,
  44883. responders: currentDependencies.responders
  44884. };
  44885. if (enableProfilerTimer) {
  44886. // Note: We don't reset the actualTime counts. It's useful to accumulate
  44887. // actual time across multiple render passes.
  44888. workInProgress.selfBaseDuration = current.selfBaseDuration;
  44889. workInProgress.treeBaseDuration = current.treeBaseDuration;
  44890. }
  44891. }
  44892. return workInProgress;
  44893. }
  44894. function createHostRootFiber(tag) {
  44895. var mode = void 0;
  44896. if (tag === ConcurrentRoot) {
  44897. mode = ConcurrentMode | BatchedMode | StrictMode;
  44898. } else if (tag === BatchedRoot) {
  44899. mode = BatchedMode | StrictMode;
  44900. } else {
  44901. mode = NoMode;
  44902. }
  44903. if (enableProfilerTimer && isDevToolsPresent) {
  44904. // Always collect profile timings when DevTools are present.
  44905. // This enables DevTools to start capturing timing at any point–
  44906. // Without some nodes in the tree having empty base times.
  44907. mode |= ProfileMode;
  44908. }
  44909. return createFiber(HostRoot, null, null, mode);
  44910. }
  44911. function createFiberFromTypeAndProps(type, // React$ElementType
  44912. key, pendingProps, owner, mode, expirationTime) {
  44913. var fiber = void 0;
  44914. var fiberTag = IndeterminateComponent;
  44915. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  44916. var resolvedType = type;
  44917. if (typeof type === 'function') {
  44918. if (shouldConstruct(type)) {
  44919. fiberTag = ClassComponent;
  44920. {
  44921. resolvedType = resolveClassForHotReloading(resolvedType);
  44922. }
  44923. } else {
  44924. {
  44925. resolvedType = resolveFunctionForHotReloading(resolvedType);
  44926. }
  44927. }
  44928. } else if (typeof type === 'string') {
  44929. fiberTag = HostComponent;
  44930. } else {
  44931. getTag: switch (type) {
  44932. case REACT_FRAGMENT_TYPE:
  44933. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  44934. case REACT_CONCURRENT_MODE_TYPE:
  44935. fiberTag = Mode;
  44936. mode |= ConcurrentMode | BatchedMode | StrictMode;
  44937. break;
  44938. case REACT_STRICT_MODE_TYPE:
  44939. fiberTag = Mode;
  44940. mode |= StrictMode;
  44941. break;
  44942. case REACT_PROFILER_TYPE:
  44943. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  44944. case REACT_SUSPENSE_TYPE:
  44945. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  44946. case REACT_SUSPENSE_LIST_TYPE:
  44947. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  44948. default:
  44949. {
  44950. if (typeof type === 'object' && type !== null) {
  44951. switch (type.$$typeof) {
  44952. case REACT_PROVIDER_TYPE:
  44953. fiberTag = ContextProvider;
  44954. break getTag;
  44955. case REACT_CONTEXT_TYPE:
  44956. // This is a consumer
  44957. fiberTag = ContextConsumer;
  44958. break getTag;
  44959. case REACT_FORWARD_REF_TYPE:
  44960. fiberTag = ForwardRef;
  44961. {
  44962. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  44963. }
  44964. break getTag;
  44965. case REACT_MEMO_TYPE:
  44966. fiberTag = MemoComponent;
  44967. break getTag;
  44968. case REACT_LAZY_TYPE:
  44969. fiberTag = LazyComponent;
  44970. resolvedType = null;
  44971. break getTag;
  44972. case REACT_FUNDAMENTAL_TYPE:
  44973. if (enableFundamentalAPI) {
  44974. return createFiberFromFundamental(type, pendingProps, mode, expirationTime, key);
  44975. }
  44976. break;
  44977. }
  44978. }
  44979. var info = '';
  44980. {
  44981. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  44982. 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.';
  44983. }
  44984. var ownerName = owner ? getComponentName(owner.type) : null;
  44985. if (ownerName) {
  44986. info += '\n\nCheck the render method of `' + ownerName + '`.';
  44987. }
  44988. }
  44989. (function () {
  44990. {
  44991. {
  44992. throw ReactError(Error('Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ' + (type == null ? type : typeof type) + '.' + info));
  44993. }
  44994. }
  44995. })();
  44996. }
  44997. }
  44998. }
  44999. fiber = createFiber(fiberTag, pendingProps, key, mode);
  45000. fiber.elementType = type;
  45001. fiber.type = resolvedType;
  45002. fiber.expirationTime = expirationTime;
  45003. return fiber;
  45004. }
  45005. function createFiberFromElement(element, mode, expirationTime) {
  45006. var owner = null;
  45007. {
  45008. owner = element._owner;
  45009. }
  45010. var type = element.type;
  45011. var key = element.key;
  45012. var pendingProps = element.props;
  45013. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  45014. {
  45015. fiber._debugSource = element._source;
  45016. fiber._debugOwner = element._owner;
  45017. }
  45018. return fiber;
  45019. }
  45020. function createFiberFromFragment(elements, mode, expirationTime, key) {
  45021. var fiber = createFiber(Fragment, elements, key, mode);
  45022. fiber.expirationTime = expirationTime;
  45023. return fiber;
  45024. }
  45025. function createFiberFromFundamental(fundamentalComponent, pendingProps, mode, expirationTime, key) {
  45026. var fiber = createFiber(FundamentalComponent, pendingProps, key, mode);
  45027. fiber.elementType = fundamentalComponent;
  45028. fiber.type = fundamentalComponent;
  45029. fiber.expirationTime = expirationTime;
  45030. return fiber;
  45031. }
  45032. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  45033. {
  45034. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  45035. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  45036. }
  45037. }
  45038. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  45039. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  45040. fiber.elementType = REACT_PROFILER_TYPE;
  45041. fiber.type = REACT_PROFILER_TYPE;
  45042. fiber.expirationTime = expirationTime;
  45043. return fiber;
  45044. }
  45045. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  45046. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  45047. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  45048. // This needs to be fixed in getComponentName so that it relies on the tag
  45049. // instead.
  45050. fiber.type = REACT_SUSPENSE_TYPE;
  45051. fiber.elementType = REACT_SUSPENSE_TYPE;
  45052. fiber.expirationTime = expirationTime;
  45053. return fiber;
  45054. }
  45055. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  45056. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  45057. {
  45058. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  45059. // This needs to be fixed in getComponentName so that it relies on the tag
  45060. // instead.
  45061. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  45062. }
  45063. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  45064. fiber.expirationTime = expirationTime;
  45065. return fiber;
  45066. }
  45067. function createFiberFromText(content, mode, expirationTime) {
  45068. var fiber = createFiber(HostText, content, null, mode);
  45069. fiber.expirationTime = expirationTime;
  45070. return fiber;
  45071. }
  45072. function createFiberFromHostInstanceForDeletion() {
  45073. var fiber = createFiber(HostComponent, null, null, NoMode);
  45074. // TODO: These should not need a type.
  45075. fiber.elementType = 'DELETED';
  45076. fiber.type = 'DELETED';
  45077. return fiber;
  45078. }
  45079. function createFiberFromPortal(portal, mode, expirationTime) {
  45080. var pendingProps = portal.children !== null ? portal.children : [];
  45081. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  45082. fiber.expirationTime = expirationTime;
  45083. fiber.stateNode = {
  45084. containerInfo: portal.containerInfo,
  45085. pendingChildren: null, // Used by persistent updates
  45086. implementation: portal.implementation
  45087. };
  45088. return fiber;
  45089. }
  45090. // Used for stashing WIP properties to replay failed work in DEV.
  45091. function assignFiberPropertiesInDEV(target, source) {
  45092. if (target === null) {
  45093. // This Fiber's initial properties will always be overwritten.
  45094. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  45095. target = createFiber(IndeterminateComponent, null, null, NoMode);
  45096. }
  45097. // This is intentionally written as a list of all properties.
  45098. // We tried to use Object.assign() instead but this is called in
  45099. // the hottest path, and Object.assign() was too slow:
  45100. // https://github.com/facebook/react/issues/12502
  45101. // This code is DEV-only so size is not a concern.
  45102. target.tag = source.tag;
  45103. target.key = source.key;
  45104. target.elementType = source.elementType;
  45105. target.type = source.type;
  45106. target.stateNode = source.stateNode;
  45107. target.return = source.return;
  45108. target.child = source.child;
  45109. target.sibling = source.sibling;
  45110. target.index = source.index;
  45111. target.ref = source.ref;
  45112. target.pendingProps = source.pendingProps;
  45113. target.memoizedProps = source.memoizedProps;
  45114. target.updateQueue = source.updateQueue;
  45115. target.memoizedState = source.memoizedState;
  45116. target.dependencies = source.dependencies;
  45117. target.mode = source.mode;
  45118. target.effectTag = source.effectTag;
  45119. target.nextEffect = source.nextEffect;
  45120. target.firstEffect = source.firstEffect;
  45121. target.lastEffect = source.lastEffect;
  45122. target.expirationTime = source.expirationTime;
  45123. target.childExpirationTime = source.childExpirationTime;
  45124. target.alternate = source.alternate;
  45125. if (enableProfilerTimer) {
  45126. target.actualDuration = source.actualDuration;
  45127. target.actualStartTime = source.actualStartTime;
  45128. target.selfBaseDuration = source.selfBaseDuration;
  45129. target.treeBaseDuration = source.treeBaseDuration;
  45130. }
  45131. target._debugID = source._debugID;
  45132. target._debugSource = source._debugSource;
  45133. target._debugOwner = source._debugOwner;
  45134. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  45135. target._debugNeedsRemount = source._debugNeedsRemount;
  45136. target._debugHookTypes = source._debugHookTypes;
  45137. return target;
  45138. }
  45139. // TODO: This should be lifted into the renderer.
  45140. // The following attributes are only used by interaction tracing builds.
  45141. // They enable interactions to be associated with their async work,
  45142. // And expose interaction metadata to the React DevTools Profiler plugin.
  45143. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  45144. // Exported FiberRoot type includes all properties,
  45145. // To avoid requiring potentially error-prone :any casts throughout the project.
  45146. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  45147. // The types are defined separately within this file to ensure they stay in sync.
  45148. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  45149. function FiberRootNode(containerInfo, tag, hydrate) {
  45150. this.tag = tag;
  45151. this.current = null;
  45152. this.containerInfo = containerInfo;
  45153. this.pendingChildren = null;
  45154. this.pingCache = null;
  45155. this.finishedExpirationTime = NoWork;
  45156. this.finishedWork = null;
  45157. this.timeoutHandle = noTimeout;
  45158. this.context = null;
  45159. this.pendingContext = null;
  45160. this.hydrate = hydrate;
  45161. this.firstBatch = null;
  45162. this.callbackNode = null;
  45163. this.callbackExpirationTime = NoWork;
  45164. this.firstPendingTime = NoWork;
  45165. this.lastPendingTime = NoWork;
  45166. this.pingTime = NoWork;
  45167. if (enableSchedulerTracing) {
  45168. this.interactionThreadID = tracing.unstable_getThreadID();
  45169. this.memoizedInteractions = new Set();
  45170. this.pendingInteractionMap = new Map();
  45171. }
  45172. }
  45173. function createFiberRoot(containerInfo, tag, hydrate) {
  45174. var root = new FiberRootNode(containerInfo, tag, hydrate);
  45175. // Cyclic construction. This cheats the type system right now because
  45176. // stateNode is any.
  45177. var uninitializedFiber = createHostRootFiber(tag);
  45178. root.current = uninitializedFiber;
  45179. uninitializedFiber.stateNode = root;
  45180. return root;
  45181. }
  45182. // This lets us hook into Fiber to debug what it's doing.
  45183. // See https://github.com/facebook/react/pull/8033.
  45184. // This is not part of the public API, not even for React DevTools.
  45185. // You may only inject a debugTool if you work on React Fiber itself.
  45186. var ReactFiberInstrumentation = {
  45187. debugTool: null
  45188. };
  45189. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  45190. // 0 is PROD, 1 is DEV.
  45191. // Might add PROFILE later.
  45192. var didWarnAboutNestedUpdates = void 0;
  45193. var didWarnAboutFindNodeInStrictMode = void 0;
  45194. {
  45195. didWarnAboutNestedUpdates = false;
  45196. didWarnAboutFindNodeInStrictMode = {};
  45197. }
  45198. function getContextForSubtree(parentComponent) {
  45199. if (!parentComponent) {
  45200. return emptyContextObject;
  45201. }
  45202. var fiber = get(parentComponent);
  45203. var parentContext = findCurrentUnmaskedContext(fiber);
  45204. if (fiber.tag === ClassComponent) {
  45205. var Component = fiber.type;
  45206. if (isContextProvider(Component)) {
  45207. return processChildContext(fiber, Component, parentContext);
  45208. }
  45209. }
  45210. return parentContext;
  45211. }
  45212. function scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback) {
  45213. {
  45214. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  45215. didWarnAboutNestedUpdates = true;
  45216. warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
  45217. }
  45218. }
  45219. var update = createUpdate(expirationTime, suspenseConfig);
  45220. // Caution: React DevTools currently depends on this property
  45221. // being called "element".
  45222. update.payload = { element: element };
  45223. callback = callback === undefined ? null : callback;
  45224. if (callback !== null) {
  45225. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  45226. update.callback = callback;
  45227. }
  45228. if (revertPassiveEffectsChange) {
  45229. flushPassiveEffects();
  45230. }
  45231. enqueueUpdate(current$$1, update);
  45232. scheduleWork(current$$1, expirationTime);
  45233. return expirationTime;
  45234. }
  45235. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback) {
  45236. // TODO: If this is a nested container, this won't be the root.
  45237. var current$$1 = container.current;
  45238. {
  45239. if (ReactFiberInstrumentation_1.debugTool) {
  45240. if (current$$1.alternate === null) {
  45241. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  45242. } else if (element === null) {
  45243. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  45244. } else {
  45245. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  45246. }
  45247. }
  45248. }
  45249. var context = getContextForSubtree(parentComponent);
  45250. if (container.context === null) {
  45251. container.context = context;
  45252. } else {
  45253. container.pendingContext = context;
  45254. }
  45255. return scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback);
  45256. }
  45257. function findHostInstance(component) {
  45258. var fiber = get(component);
  45259. if (fiber === undefined) {
  45260. if (typeof component.render === 'function') {
  45261. (function () {
  45262. {
  45263. {
  45264. throw ReactError(Error('Unable to find node on an unmounted component.'));
  45265. }
  45266. }
  45267. })();
  45268. } else {
  45269. (function () {
  45270. {
  45271. {
  45272. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  45273. }
  45274. }
  45275. })();
  45276. }
  45277. }
  45278. var hostFiber = findCurrentHostFiber(fiber);
  45279. if (hostFiber === null) {
  45280. return null;
  45281. }
  45282. return hostFiber.stateNode;
  45283. }
  45284. function findHostInstanceWithWarning(component, methodName) {
  45285. {
  45286. var fiber = get(component);
  45287. if (fiber === undefined) {
  45288. if (typeof component.render === 'function') {
  45289. (function () {
  45290. {
  45291. {
  45292. throw ReactError(Error('Unable to find node on an unmounted component.'));
  45293. }
  45294. }
  45295. })();
  45296. } else {
  45297. (function () {
  45298. {
  45299. {
  45300. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  45301. }
  45302. }
  45303. })();
  45304. }
  45305. }
  45306. var hostFiber = findCurrentHostFiber(fiber);
  45307. if (hostFiber === null) {
  45308. return null;
  45309. }
  45310. if (hostFiber.mode & StrictMode) {
  45311. var componentName = getComponentName(fiber.type) || 'Component';
  45312. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  45313. didWarnAboutFindNodeInStrictMode[componentName] = true;
  45314. if (fiber.mode & StrictMode) {
  45315. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  45316. } else {
  45317. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  45318. }
  45319. }
  45320. }
  45321. return hostFiber.stateNode;
  45322. }
  45323. return findHostInstance(component);
  45324. }
  45325. function createContainer(containerInfo, tag, hydrate) {
  45326. return createFiberRoot(containerInfo, tag, hydrate);
  45327. }
  45328. function updateContainer(element, container, parentComponent, callback) {
  45329. var current$$1 = container.current;
  45330. var currentTime = requestCurrentTime();
  45331. {
  45332. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  45333. if ('undefined' !== typeof jest) {
  45334. warnIfUnmockedScheduler(current$$1);
  45335. warnIfNotScopedWithMatchingAct(current$$1);
  45336. }
  45337. }
  45338. var suspenseConfig = requestCurrentSuspenseConfig();
  45339. var expirationTime = computeExpirationForFiber(currentTime, current$$1, suspenseConfig);
  45340. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback);
  45341. }
  45342. function getPublicRootInstance(container) {
  45343. var containerFiber = container.current;
  45344. if (!containerFiber.child) {
  45345. return null;
  45346. }
  45347. switch (containerFiber.child.tag) {
  45348. case HostComponent:
  45349. return getPublicInstance(containerFiber.child.stateNode);
  45350. default:
  45351. return containerFiber.child.stateNode;
  45352. }
  45353. }
  45354. function findHostInstanceWithNoPortals(fiber) {
  45355. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  45356. if (hostFiber === null) {
  45357. return null;
  45358. }
  45359. if (hostFiber.tag === FundamentalComponent) {
  45360. return hostFiber.stateNode.instance;
  45361. }
  45362. return hostFiber.stateNode;
  45363. }
  45364. var shouldSuspendImpl = function (fiber) {
  45365. return false;
  45366. };
  45367. function shouldSuspend(fiber) {
  45368. return shouldSuspendImpl(fiber);
  45369. }
  45370. var overrideHookState = null;
  45371. var overrideProps = null;
  45372. var scheduleUpdate = null;
  45373. var setSuspenseHandler = null;
  45374. {
  45375. var copyWithSetImpl = function (obj, path, idx, value) {
  45376. if (idx >= path.length) {
  45377. return value;
  45378. }
  45379. var key = path[idx];
  45380. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
  45381. // $FlowFixMe number or string is fine here
  45382. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  45383. return updated;
  45384. };
  45385. var copyWithSet = function (obj, path, value) {
  45386. return copyWithSetImpl(obj, path, 0, value);
  45387. };
  45388. // Support DevTools editable values for useState and useReducer.
  45389. overrideHookState = function (fiber, id, path, value) {
  45390. // For now, the "id" of stateful hooks is just the stateful hook index.
  45391. // This may change in the future with e.g. nested hooks.
  45392. var currentHook = fiber.memoizedState;
  45393. while (currentHook !== null && id > 0) {
  45394. currentHook = currentHook.next;
  45395. id--;
  45396. }
  45397. if (currentHook !== null) {
  45398. if (revertPassiveEffectsChange) {
  45399. flushPassiveEffects();
  45400. }
  45401. var newState = copyWithSet(currentHook.memoizedState, path, value);
  45402. currentHook.memoizedState = newState;
  45403. currentHook.baseState = newState;
  45404. // We aren't actually adding an update to the queue,
  45405. // because there is no update we can add for useReducer hooks that won't trigger an error.
  45406. // (There's no appropriate action type for DevTools overrides.)
  45407. // As a result though, React will see the scheduled update as a noop and bailout.
  45408. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  45409. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  45410. scheduleWork(fiber, Sync);
  45411. }
  45412. };
  45413. // Support DevTools props for function components, forwardRef, memo, host components, etc.
  45414. overrideProps = function (fiber, path, value) {
  45415. if (revertPassiveEffectsChange) {
  45416. flushPassiveEffects();
  45417. }
  45418. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  45419. if (fiber.alternate) {
  45420. fiber.alternate.pendingProps = fiber.pendingProps;
  45421. }
  45422. scheduleWork(fiber, Sync);
  45423. };
  45424. scheduleUpdate = function (fiber) {
  45425. if (revertPassiveEffectsChange) {
  45426. flushPassiveEffects();
  45427. }
  45428. scheduleWork(fiber, Sync);
  45429. };
  45430. setSuspenseHandler = function (newShouldSuspendImpl) {
  45431. shouldSuspendImpl = newShouldSuspendImpl;
  45432. };
  45433. }
  45434. function injectIntoDevTools(devToolsConfig) {
  45435. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  45436. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  45437. return injectInternals(_assign({}, devToolsConfig, {
  45438. overrideHookState: overrideHookState,
  45439. overrideProps: overrideProps,
  45440. setSuspenseHandler: setSuspenseHandler,
  45441. scheduleUpdate: scheduleUpdate,
  45442. currentDispatcherRef: ReactCurrentDispatcher,
  45443. findHostInstanceByFiber: function (fiber) {
  45444. var hostFiber = findCurrentHostFiber(fiber);
  45445. if (hostFiber === null) {
  45446. return null;
  45447. }
  45448. return hostFiber.stateNode;
  45449. },
  45450. findFiberByHostInstance: function (instance) {
  45451. if (!findFiberByHostInstance) {
  45452. // Might not be implemented by the renderer.
  45453. return null;
  45454. }
  45455. return findFiberByHostInstance(instance);
  45456. },
  45457. // React Refresh
  45458. findHostInstancesForRefresh: findHostInstancesForRefresh,
  45459. scheduleRefresh: scheduleRefresh,
  45460. scheduleRoot: scheduleRoot,
  45461. setRefreshHandler: setRefreshHandler,
  45462. // Enables DevTools to append owner stacks to error messages in DEV mode.
  45463. getCurrentFiber: function () {
  45464. return current;
  45465. }
  45466. }));
  45467. }
  45468. // This file intentionally does *not* have the Flow annotation.
  45469. // Don't add it. See `./inline-typed.js` for an explanation.
  45470. function createPortal$1(children, containerInfo,
  45471. // TODO: figure out the API for cross-renderer implementation.
  45472. implementation) {
  45473. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  45474. return {
  45475. // This tag allow us to uniquely identify this as a React Portal
  45476. $$typeof: REACT_PORTAL_TYPE,
  45477. key: key == null ? null : '' + key,
  45478. children: children,
  45479. containerInfo: containerInfo,
  45480. implementation: implementation
  45481. };
  45482. }
  45483. // TODO: this is special because it gets imported during build.
  45484. var ReactVersion = '16.9.0';
  45485. // TODO: This type is shared between the reconciler and ReactDOM, but will
  45486. // eventually be lifted out to the renderer.
  45487. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  45488. var topLevelUpdateWarnings = void 0;
  45489. var warnOnInvalidCallback = void 0;
  45490. var didWarnAboutUnstableCreatePortal = false;
  45491. {
  45492. if (typeof Map !== 'function' ||
  45493. // $FlowIssue Flow incorrectly thinks Map has no prototype
  45494. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  45495. // $FlowIssue Flow incorrectly thinks Set has no prototype
  45496. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  45497. warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  45498. }
  45499. topLevelUpdateWarnings = function (container) {
  45500. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  45501. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  45502. if (hostInstance) {
  45503. !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;
  45504. }
  45505. }
  45506. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  45507. var rootEl = getReactRootElementInContainer(container);
  45508. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  45509. !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;
  45510. !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
  45511. };
  45512. warnOnInvalidCallback = function (callback, callerName) {
  45513. !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;
  45514. };
  45515. }
  45516. setRestoreImplementation(restoreControlledState$1);
  45517. function ReactBatch(root) {
  45518. var expirationTime = computeUniqueAsyncExpiration();
  45519. this._expirationTime = expirationTime;
  45520. this._root = root;
  45521. this._next = null;
  45522. this._callbacks = null;
  45523. this._didComplete = false;
  45524. this._hasChildren = false;
  45525. this._children = null;
  45526. this._defer = true;
  45527. }
  45528. ReactBatch.prototype.render = function (children) {
  45529. var _this = this;
  45530. (function () {
  45531. if (!_this._defer) {
  45532. {
  45533. throw ReactError(Error('batch.render: Cannot render a batch that already committed.'));
  45534. }
  45535. }
  45536. })();
  45537. this._hasChildren = true;
  45538. this._children = children;
  45539. var internalRoot = this._root._internalRoot;
  45540. var expirationTime = this._expirationTime;
  45541. var work = new ReactWork();
  45542. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, null, work._onCommit);
  45543. return work;
  45544. };
  45545. ReactBatch.prototype.then = function (onComplete) {
  45546. if (this._didComplete) {
  45547. onComplete();
  45548. return;
  45549. }
  45550. var callbacks = this._callbacks;
  45551. if (callbacks === null) {
  45552. callbacks = this._callbacks = [];
  45553. }
  45554. callbacks.push(onComplete);
  45555. };
  45556. ReactBatch.prototype.commit = function () {
  45557. var _this2 = this;
  45558. var internalRoot = this._root._internalRoot;
  45559. var firstBatch = internalRoot.firstBatch;
  45560. (function () {
  45561. if (!(_this2._defer && firstBatch !== null)) {
  45562. {
  45563. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  45564. }
  45565. }
  45566. })();
  45567. if (!this._hasChildren) {
  45568. // This batch is empty. Return.
  45569. this._next = null;
  45570. this._defer = false;
  45571. return;
  45572. }
  45573. var expirationTime = this._expirationTime;
  45574. // Ensure this is the first batch in the list.
  45575. if (firstBatch !== this) {
  45576. // This batch is not the earliest batch. We need to move it to the front.
  45577. // Update its expiration time to be the expiration time of the earliest
  45578. // batch, so that we can flush it without flushing the other batches.
  45579. if (this._hasChildren) {
  45580. expirationTime = this._expirationTime = firstBatch._expirationTime;
  45581. // Rendering this batch again ensures its children will be the final state
  45582. // when we flush (updates are processed in insertion order: last
  45583. // update wins).
  45584. // TODO: This forces a restart. Should we print a warning?
  45585. this.render(this._children);
  45586. }
  45587. // Remove the batch from the list.
  45588. var previous = null;
  45589. var batch = firstBatch;
  45590. while (batch !== this) {
  45591. previous = batch;
  45592. batch = batch._next;
  45593. }
  45594. (function () {
  45595. if (!(previous !== null)) {
  45596. {
  45597. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  45598. }
  45599. }
  45600. })();
  45601. previous._next = batch._next;
  45602. // Add it to the front.
  45603. this._next = firstBatch;
  45604. firstBatch = internalRoot.firstBatch = this;
  45605. }
  45606. // Synchronously flush all the work up to this batch's expiration time.
  45607. this._defer = false;
  45608. flushRoot(internalRoot, expirationTime);
  45609. // Pop the batch from the list.
  45610. var next = this._next;
  45611. this._next = null;
  45612. firstBatch = internalRoot.firstBatch = next;
  45613. // Append the next earliest batch's children to the update queue.
  45614. if (firstBatch !== null && firstBatch._hasChildren) {
  45615. firstBatch.render(firstBatch._children);
  45616. }
  45617. };
  45618. ReactBatch.prototype._onComplete = function () {
  45619. if (this._didComplete) {
  45620. return;
  45621. }
  45622. this._didComplete = true;
  45623. var callbacks = this._callbacks;
  45624. if (callbacks === null) {
  45625. return;
  45626. }
  45627. // TODO: Error handling.
  45628. for (var i = 0; i < callbacks.length; i++) {
  45629. var _callback = callbacks[i];
  45630. _callback();
  45631. }
  45632. };
  45633. function ReactWork() {
  45634. this._callbacks = null;
  45635. this._didCommit = false;
  45636. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  45637. // list of Work objects.
  45638. this._onCommit = this._onCommit.bind(this);
  45639. }
  45640. ReactWork.prototype.then = function (onCommit) {
  45641. if (this._didCommit) {
  45642. onCommit();
  45643. return;
  45644. }
  45645. var callbacks = this._callbacks;
  45646. if (callbacks === null) {
  45647. callbacks = this._callbacks = [];
  45648. }
  45649. callbacks.push(onCommit);
  45650. };
  45651. ReactWork.prototype._onCommit = function () {
  45652. if (this._didCommit) {
  45653. return;
  45654. }
  45655. this._didCommit = true;
  45656. var callbacks = this._callbacks;
  45657. if (callbacks === null) {
  45658. return;
  45659. }
  45660. // TODO: Error handling.
  45661. for (var i = 0; i < callbacks.length; i++) {
  45662. var _callback2 = callbacks[i];
  45663. (function () {
  45664. if (!(typeof _callback2 === 'function')) {
  45665. {
  45666. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + _callback2));
  45667. }
  45668. }
  45669. })();
  45670. _callback2();
  45671. }
  45672. };
  45673. function ReactSyncRoot(container, tag, hydrate) {
  45674. // Tag is either LegacyRoot or Concurrent Root
  45675. var root = createContainer(container, tag, hydrate);
  45676. this._internalRoot = root;
  45677. }
  45678. function ReactRoot(container, hydrate) {
  45679. var root = createContainer(container, ConcurrentRoot, hydrate);
  45680. this._internalRoot = root;
  45681. }
  45682. ReactRoot.prototype.render = ReactSyncRoot.prototype.render = function (children, callback) {
  45683. var root = this._internalRoot;
  45684. var work = new ReactWork();
  45685. callback = callback === undefined ? null : callback;
  45686. {
  45687. warnOnInvalidCallback(callback, 'render');
  45688. }
  45689. if (callback !== null) {
  45690. work.then(callback);
  45691. }
  45692. updateContainer(children, root, null, work._onCommit);
  45693. return work;
  45694. };
  45695. ReactRoot.prototype.unmount = ReactSyncRoot.prototype.unmount = function (callback) {
  45696. var root = this._internalRoot;
  45697. var work = new ReactWork();
  45698. callback = callback === undefined ? null : callback;
  45699. {
  45700. warnOnInvalidCallback(callback, 'render');
  45701. }
  45702. if (callback !== null) {
  45703. work.then(callback);
  45704. }
  45705. updateContainer(null, root, null, work._onCommit);
  45706. return work;
  45707. };
  45708. // Sync roots cannot create batches. Only concurrent ones.
  45709. ReactRoot.prototype.createBatch = function () {
  45710. var batch = new ReactBatch(this);
  45711. var expirationTime = batch._expirationTime;
  45712. var internalRoot = this._internalRoot;
  45713. var firstBatch = internalRoot.firstBatch;
  45714. if (firstBatch === null) {
  45715. internalRoot.firstBatch = batch;
  45716. batch._next = null;
  45717. } else {
  45718. // Insert sorted by expiration time then insertion order
  45719. var insertAfter = null;
  45720. var insertBefore = firstBatch;
  45721. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  45722. insertAfter = insertBefore;
  45723. insertBefore = insertBefore._next;
  45724. }
  45725. batch._next = insertBefore;
  45726. if (insertAfter !== null) {
  45727. insertAfter._next = batch;
  45728. }
  45729. }
  45730. return batch;
  45731. };
  45732. /**
  45733. * True if the supplied DOM node is a valid node element.
  45734. *
  45735. * @param {?DOMElement} node The candidate DOM node.
  45736. * @return {boolean} True if the DOM is a valid DOM node.
  45737. * @internal
  45738. */
  45739. function isValidContainer(node) {
  45740. 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 '));
  45741. }
  45742. function getReactRootElementInContainer(container) {
  45743. if (!container) {
  45744. return null;
  45745. }
  45746. if (container.nodeType === DOCUMENT_NODE) {
  45747. return container.documentElement;
  45748. } else {
  45749. return container.firstChild;
  45750. }
  45751. }
  45752. function shouldHydrateDueToLegacyHeuristic(container) {
  45753. var rootElement = getReactRootElementInContainer(container);
  45754. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  45755. }
  45756. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  45757. var warnedAboutHydrateAPI = false;
  45758. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  45759. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  45760. // First clear any existing content.
  45761. if (!shouldHydrate) {
  45762. var warned = false;
  45763. var rootSibling = void 0;
  45764. while (rootSibling = container.lastChild) {
  45765. {
  45766. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  45767. warned = true;
  45768. warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
  45769. }
  45770. }
  45771. container.removeChild(rootSibling);
  45772. }
  45773. }
  45774. {
  45775. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  45776. warnedAboutHydrateAPI = true;
  45777. lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
  45778. }
  45779. }
  45780. // Legacy roots are not batched.
  45781. return new ReactSyncRoot(container, LegacyRoot, shouldHydrate);
  45782. }
  45783. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  45784. {
  45785. topLevelUpdateWarnings(container);
  45786. warnOnInvalidCallback(callback === undefined ? null : callback, 'render');
  45787. }
  45788. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  45789. // member of intersection type." Whyyyyyy.
  45790. var root = container._reactRootContainer;
  45791. var fiberRoot = void 0;
  45792. if (!root) {
  45793. // Initial mount
  45794. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  45795. fiberRoot = root._internalRoot;
  45796. if (typeof callback === 'function') {
  45797. var originalCallback = callback;
  45798. callback = function () {
  45799. var instance = getPublicRootInstance(fiberRoot);
  45800. originalCallback.call(instance);
  45801. };
  45802. }
  45803. // Initial mount should not be batched.
  45804. unbatchedUpdates(function () {
  45805. updateContainer(children, fiberRoot, parentComponent, callback);
  45806. });
  45807. } else {
  45808. fiberRoot = root._internalRoot;
  45809. if (typeof callback === 'function') {
  45810. var _originalCallback = callback;
  45811. callback = function () {
  45812. var instance = getPublicRootInstance(fiberRoot);
  45813. _originalCallback.call(instance);
  45814. };
  45815. }
  45816. // Update
  45817. updateContainer(children, fiberRoot, parentComponent, callback);
  45818. }
  45819. return getPublicRootInstance(fiberRoot);
  45820. }
  45821. function createPortal$$1(children, container) {
  45822. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  45823. (function () {
  45824. if (!isValidContainer(container)) {
  45825. {
  45826. throw ReactError(Error('Target container is not a DOM element.'));
  45827. }
  45828. }
  45829. })();
  45830. // TODO: pass ReactDOM portal implementation as third argument
  45831. return createPortal$1(children, container, null, key);
  45832. }
  45833. var ReactDOM = {
  45834. createPortal: createPortal$$1,
  45835. findDOMNode: function (componentOrElement) {
  45836. {
  45837. var owner = ReactCurrentOwner.current;
  45838. if (owner !== null && owner.stateNode !== null) {
  45839. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  45840. !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;
  45841. owner.stateNode._warnedAboutRefsInRender = true;
  45842. }
  45843. }
  45844. if (componentOrElement == null) {
  45845. return null;
  45846. }
  45847. if (componentOrElement.nodeType === ELEMENT_NODE) {
  45848. return componentOrElement;
  45849. }
  45850. {
  45851. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  45852. }
  45853. return findHostInstance(componentOrElement);
  45854. },
  45855. hydrate: function (element, container, callback) {
  45856. (function () {
  45857. if (!isValidContainer(container)) {
  45858. {
  45859. throw ReactError(Error('Target container is not a DOM element.'));
  45860. }
  45861. }
  45862. })();
  45863. {
  45864. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  45865. }
  45866. // TODO: throw or warn if we couldn't hydrate?
  45867. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  45868. },
  45869. render: function (element, container, callback) {
  45870. (function () {
  45871. if (!isValidContainer(container)) {
  45872. {
  45873. throw ReactError(Error('Target container is not a DOM element.'));
  45874. }
  45875. }
  45876. })();
  45877. {
  45878. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call root.render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  45879. }
  45880. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  45881. },
  45882. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  45883. (function () {
  45884. if (!isValidContainer(containerNode)) {
  45885. {
  45886. throw ReactError(Error('Target container is not a DOM element.'));
  45887. }
  45888. }
  45889. })();
  45890. (function () {
  45891. if (!(parentComponent != null && has(parentComponent))) {
  45892. {
  45893. throw ReactError(Error('parentComponent must be a valid React Component'));
  45894. }
  45895. }
  45896. })();
  45897. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  45898. },
  45899. unmountComponentAtNode: function (container) {
  45900. (function () {
  45901. if (!isValidContainer(container)) {
  45902. {
  45903. throw ReactError(Error('unmountComponentAtNode(...): Target container is not a DOM element.'));
  45904. }
  45905. }
  45906. })();
  45907. {
  45908. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. Did you mean to call root.unmount()?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  45909. }
  45910. if (container._reactRootContainer) {
  45911. {
  45912. var rootEl = getReactRootElementInContainer(container);
  45913. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  45914. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  45915. }
  45916. // Unmount should not be batched.
  45917. unbatchedUpdates(function () {
  45918. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  45919. container._reactRootContainer = null;
  45920. });
  45921. });
  45922. // If you call unmountComponentAtNode twice in quick succession, you'll
  45923. // get `true` twice. That's probably fine?
  45924. return true;
  45925. } else {
  45926. {
  45927. var _rootEl = getReactRootElementInContainer(container);
  45928. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  45929. // Check if the container itself is a React root node.
  45930. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  45931. !!hasNonRootReactChild ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
  45932. }
  45933. return false;
  45934. }
  45935. },
  45936. // Temporary alias since we already shipped React 16 RC with it.
  45937. // TODO: remove in React 17.
  45938. unstable_createPortal: function () {
  45939. if (!didWarnAboutUnstableCreatePortal) {
  45940. didWarnAboutUnstableCreatePortal = true;
  45941. lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
  45942. }
  45943. return createPortal$$1.apply(undefined, arguments);
  45944. },
  45945. unstable_batchedUpdates: batchedUpdates$1,
  45946. // TODO remove this legacy method, unstable_discreteUpdates replaces it
  45947. unstable_interactiveUpdates: function (fn, a, b, c) {
  45948. flushDiscreteUpdates();
  45949. return discreteUpdates$1(fn, a, b, c);
  45950. },
  45951. unstable_discreteUpdates: discreteUpdates$1,
  45952. unstable_flushDiscreteUpdates: flushDiscreteUpdates,
  45953. flushSync: flushSync,
  45954. unstable_createRoot: createRoot,
  45955. unstable_createSyncRoot: createSyncRoot,
  45956. unstable_flushControlled: flushControlled,
  45957. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  45958. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  45959. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  45960. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  45961. }
  45962. };
  45963. function createRoot(container, options) {
  45964. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  45965. (function () {
  45966. if (!isValidContainer(container)) {
  45967. {
  45968. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  45969. }
  45970. }
  45971. })();
  45972. warnIfReactDOMContainerInDEV(container);
  45973. var hydrate = options != null && options.hydrate === true;
  45974. return new ReactRoot(container, hydrate);
  45975. }
  45976. function createSyncRoot(container, options) {
  45977. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  45978. (function () {
  45979. if (!isValidContainer(container)) {
  45980. {
  45981. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  45982. }
  45983. }
  45984. })();
  45985. warnIfReactDOMContainerInDEV(container);
  45986. var hydrate = options != null && options.hydrate === true;
  45987. return new ReactSyncRoot(container, BatchedRoot, hydrate);
  45988. }
  45989. function warnIfReactDOMContainerInDEV(container) {
  45990. {
  45991. !!container._reactRootContainer ? warningWithoutStack$1(false, 'You are calling ReactDOM.%s() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  45992. container._reactHasBeenPassedToCreateRootDEV = true;
  45993. }
  45994. }
  45995. if (enableStableConcurrentModeAPIs) {
  45996. ReactDOM.createRoot = createRoot;
  45997. ReactDOM.createSyncRoot = createSyncRoot;
  45998. }
  45999. var foundDevTools = injectIntoDevTools({
  46000. findFiberByHostInstance: getClosestInstanceFromNode,
  46001. bundleType: 1,
  46002. version: ReactVersion,
  46003. rendererPackageName: 'react-dom'
  46004. });
  46005. {
  46006. if (!foundDevTools && canUseDOM && window.top === window.self) {
  46007. // If we're in Chrome or Firefox, provide a download link if not installed.
  46008. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  46009. var protocol = window.location.protocol;
  46010. // Don't warn in exotic cases like chrome-extension://.
  46011. if (/^(https?|file):$/.test(protocol)) {
  46012. 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');
  46013. }
  46014. }
  46015. }
  46016. }
  46017. var ReactDOM$2 = Object.freeze({
  46018. default: ReactDOM
  46019. });
  46020. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  46021. // TODO: decide on the top-level export form.
  46022. // This is hacky but makes it work with both Rollup and Jest.
  46023. var reactDom = ReactDOM$3.default || ReactDOM$3;
  46024. module.exports = reactDom;
  46025. })();
  46026. }
  46027. /***/ }),
  46028. /***/ "../../node_modules/react-dom/index.js":
  46029. /*!***********************************************************!*\
  46030. !*** E:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  46031. \***********************************************************/
  46032. /*! no static exports found */
  46033. /***/ (function(module, exports, __webpack_require__) {
  46034. "use strict";
  46035. function checkDCE() {
  46036. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  46037. if (
  46038. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  46039. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  46040. ) {
  46041. return;
  46042. }
  46043. if (true) {
  46044. // This branch is unreachable because this function is only called
  46045. // in production, but the condition is true only in development.
  46046. // Therefore if the branch is still here, dead code elimination wasn't
  46047. // properly applied.
  46048. // Don't change the message. React DevTools relies on it. Also make sure
  46049. // this message doesn't occur elsewhere in this function, or it will cause
  46050. // a false positive.
  46051. throw new Error('^_^');
  46052. }
  46053. try {
  46054. // Verify that the code above has been dead code eliminated (DCE'd).
  46055. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  46056. } catch (err) {
  46057. // DevTools shouldn't crash React, no matter what.
  46058. // We should still report in case we break this code.
  46059. console.error(err);
  46060. }
  46061. }
  46062. if (false) {} else {
  46063. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  46064. }
  46065. /***/ }),
  46066. /***/ "../../node_modules/react-is/cjs/react-is.development.js":
  46067. /*!*****************************************************************************!*\
  46068. !*** E:/Repos/Babylon.js/node_modules/react-is/cjs/react-is.development.js ***!
  46069. \*****************************************************************************/
  46070. /*! no static exports found */
  46071. /***/ (function(module, exports, __webpack_require__) {
  46072. "use strict";
  46073. /** @license React v16.10.2
  46074. * react-is.development.js
  46075. *
  46076. * Copyright (c) Facebook, Inc. and its affiliates.
  46077. *
  46078. * This source code is licensed under the MIT license found in the
  46079. * LICENSE file in the root directory of this source tree.
  46080. */
  46081. if (true) {
  46082. (function() {
  46083. 'use strict';
  46084. Object.defineProperty(exports, '__esModule', { value: true });
  46085. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  46086. // nor polyfill, then a plain number is used for performance.
  46087. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  46088. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  46089. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  46090. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  46091. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  46092. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  46093. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  46094. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  46095. // (unstable) APIs that have been removed. Can we remove the symbols?
  46096. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  46097. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  46098. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  46099. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  46100. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  46101. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  46102. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  46103. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  46104. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  46105. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
  46106. function isValidElementType(type) {
  46107. return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  46108. 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);
  46109. }
  46110. /**
  46111. * Forked from fbjs/warning:
  46112. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  46113. *
  46114. * Only change is we use console.warn instead of console.error,
  46115. * and do nothing when 'console' is not supported.
  46116. * This really simplifies the code.
  46117. * ---
  46118. * Similar to invariant but only logs a warning if the condition is not met.
  46119. * This can be used to log issues in development environments in critical
  46120. * paths. Removing the logging code for production environments will keep the
  46121. * same logic and follow the same code paths.
  46122. */
  46123. var lowPriorityWarningWithoutStack = function () {};
  46124. {
  46125. var printWarning = function (format) {
  46126. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  46127. args[_key - 1] = arguments[_key];
  46128. }
  46129. var argIndex = 0;
  46130. var message = 'Warning: ' + format.replace(/%s/g, function () {
  46131. return args[argIndex++];
  46132. });
  46133. if (typeof console !== 'undefined') {
  46134. console.warn(message);
  46135. }
  46136. try {
  46137. // --- Welcome to debugging React ---
  46138. // This error was thrown as a convenience so that you can use this stack
  46139. // to find the callsite that caused this warning to fire.
  46140. throw new Error(message);
  46141. } catch (x) {}
  46142. };
  46143. lowPriorityWarningWithoutStack = function (condition, format) {
  46144. if (format === undefined) {
  46145. throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  46146. }
  46147. if (!condition) {
  46148. for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  46149. args[_key2 - 2] = arguments[_key2];
  46150. }
  46151. printWarning.apply(void 0, [format].concat(args));
  46152. }
  46153. };
  46154. }
  46155. var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
  46156. function typeOf(object) {
  46157. if (typeof object === 'object' && object !== null) {
  46158. var $$typeof = object.$$typeof;
  46159. switch ($$typeof) {
  46160. case REACT_ELEMENT_TYPE:
  46161. var type = object.type;
  46162. switch (type) {
  46163. case REACT_ASYNC_MODE_TYPE:
  46164. case REACT_CONCURRENT_MODE_TYPE:
  46165. case REACT_FRAGMENT_TYPE:
  46166. case REACT_PROFILER_TYPE:
  46167. case REACT_STRICT_MODE_TYPE:
  46168. case REACT_SUSPENSE_TYPE:
  46169. return type;
  46170. default:
  46171. var $$typeofType = type && type.$$typeof;
  46172. switch ($$typeofType) {
  46173. case REACT_CONTEXT_TYPE:
  46174. case REACT_FORWARD_REF_TYPE:
  46175. case REACT_PROVIDER_TYPE:
  46176. return $$typeofType;
  46177. default:
  46178. return $$typeof;
  46179. }
  46180. }
  46181. case REACT_LAZY_TYPE:
  46182. case REACT_MEMO_TYPE:
  46183. case REACT_PORTAL_TYPE:
  46184. return $$typeof;
  46185. }
  46186. }
  46187. return undefined;
  46188. } // AsyncMode is deprecated along with isAsyncMode
  46189. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  46190. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  46191. var ContextConsumer = REACT_CONTEXT_TYPE;
  46192. var ContextProvider = REACT_PROVIDER_TYPE;
  46193. var Element = REACT_ELEMENT_TYPE;
  46194. var ForwardRef = REACT_FORWARD_REF_TYPE;
  46195. var Fragment = REACT_FRAGMENT_TYPE;
  46196. var Lazy = REACT_LAZY_TYPE;
  46197. var Memo = REACT_MEMO_TYPE;
  46198. var Portal = REACT_PORTAL_TYPE;
  46199. var Profiler = REACT_PROFILER_TYPE;
  46200. var StrictMode = REACT_STRICT_MODE_TYPE;
  46201. var Suspense = REACT_SUSPENSE_TYPE;
  46202. var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
  46203. function isAsyncMode(object) {
  46204. {
  46205. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  46206. hasWarnedAboutDeprecatedIsAsyncMode = true;
  46207. lowPriorityWarningWithoutStack$1(false, '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.');
  46208. }
  46209. }
  46210. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  46211. }
  46212. function isConcurrentMode(object) {
  46213. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  46214. }
  46215. function isContextConsumer(object) {
  46216. return typeOf(object) === REACT_CONTEXT_TYPE;
  46217. }
  46218. function isContextProvider(object) {
  46219. return typeOf(object) === REACT_PROVIDER_TYPE;
  46220. }
  46221. function isElement(object) {
  46222. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  46223. }
  46224. function isForwardRef(object) {
  46225. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  46226. }
  46227. function isFragment(object) {
  46228. return typeOf(object) === REACT_FRAGMENT_TYPE;
  46229. }
  46230. function isLazy(object) {
  46231. return typeOf(object) === REACT_LAZY_TYPE;
  46232. }
  46233. function isMemo(object) {
  46234. return typeOf(object) === REACT_MEMO_TYPE;
  46235. }
  46236. function isPortal(object) {
  46237. return typeOf(object) === REACT_PORTAL_TYPE;
  46238. }
  46239. function isProfiler(object) {
  46240. return typeOf(object) === REACT_PROFILER_TYPE;
  46241. }
  46242. function isStrictMode(object) {
  46243. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  46244. }
  46245. function isSuspense(object) {
  46246. return typeOf(object) === REACT_SUSPENSE_TYPE;
  46247. }
  46248. exports.typeOf = typeOf;
  46249. exports.AsyncMode = AsyncMode;
  46250. exports.ConcurrentMode = ConcurrentMode;
  46251. exports.ContextConsumer = ContextConsumer;
  46252. exports.ContextProvider = ContextProvider;
  46253. exports.Element = Element;
  46254. exports.ForwardRef = ForwardRef;
  46255. exports.Fragment = Fragment;
  46256. exports.Lazy = Lazy;
  46257. exports.Memo = Memo;
  46258. exports.Portal = Portal;
  46259. exports.Profiler = Profiler;
  46260. exports.StrictMode = StrictMode;
  46261. exports.Suspense = Suspense;
  46262. exports.isValidElementType = isValidElementType;
  46263. exports.isAsyncMode = isAsyncMode;
  46264. exports.isConcurrentMode = isConcurrentMode;
  46265. exports.isContextConsumer = isContextConsumer;
  46266. exports.isContextProvider = isContextProvider;
  46267. exports.isElement = isElement;
  46268. exports.isForwardRef = isForwardRef;
  46269. exports.isFragment = isFragment;
  46270. exports.isLazy = isLazy;
  46271. exports.isMemo = isMemo;
  46272. exports.isPortal = isPortal;
  46273. exports.isProfiler = isProfiler;
  46274. exports.isStrictMode = isStrictMode;
  46275. exports.isSuspense = isSuspense;
  46276. })();
  46277. }
  46278. /***/ }),
  46279. /***/ "../../node_modules/react-is/index.js":
  46280. /*!**********************************************************!*\
  46281. !*** E:/Repos/Babylon.js/node_modules/react-is/index.js ***!
  46282. \**********************************************************/
  46283. /*! no static exports found */
  46284. /***/ (function(module, exports, __webpack_require__) {
  46285. "use strict";
  46286. if (false) {} else {
  46287. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
  46288. }
  46289. /***/ }),
  46290. /***/ "../../node_modules/react/cjs/react.development.js":
  46291. /*!***********************************************************************!*\
  46292. !*** E:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  46293. \***********************************************************************/
  46294. /*! no static exports found */
  46295. /***/ (function(module, exports, __webpack_require__) {
  46296. "use strict";
  46297. /** @license React v16.9.0
  46298. * react.development.js
  46299. *
  46300. * Copyright (c) Facebook, Inc. and its affiliates.
  46301. *
  46302. * This source code is licensed under the MIT license found in the
  46303. * LICENSE file in the root directory of this source tree.
  46304. */
  46305. if (true) {
  46306. (function() {
  46307. 'use strict';
  46308. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  46309. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  46310. // TODO: this is special because it gets imported during build.
  46311. var ReactVersion = '16.9.0';
  46312. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  46313. // nor polyfill, then a plain number is used for performance.
  46314. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  46315. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  46316. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  46317. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  46318. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  46319. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  46320. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  46321. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  46322. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  46323. // (unstable) APIs that have been removed. Can we remove the symbols?
  46324. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  46325. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  46326. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  46327. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  46328. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  46329. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  46330. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  46331. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  46332. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  46333. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  46334. function getIteratorFn(maybeIterable) {
  46335. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  46336. return null;
  46337. }
  46338. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  46339. if (typeof maybeIterator === 'function') {
  46340. return maybeIterator;
  46341. }
  46342. return null;
  46343. }
  46344. // Do not require this module directly! Use normal `invariant` calls with
  46345. // template literal strings. The messages will be converted to ReactError during
  46346. // build, and in production they will be minified.
  46347. // Do not require this module directly! Use normal `invariant` calls with
  46348. // template literal strings. The messages will be converted to ReactError during
  46349. // build, and in production they will be minified.
  46350. function ReactError(error) {
  46351. error.name = 'Invariant Violation';
  46352. return error;
  46353. }
  46354. /**
  46355. * Use invariant() to assert state which your program assumes to be true.
  46356. *
  46357. * Provide sprintf-style format (only %s is supported) and arguments
  46358. * to provide information about what broke and what you were
  46359. * expecting.
  46360. *
  46361. * The invariant message will be stripped in production, but the invariant
  46362. * will remain to ensure logic does not differ in production.
  46363. */
  46364. /**
  46365. * Forked from fbjs/warning:
  46366. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  46367. *
  46368. * Only change is we use console.warn instead of console.error,
  46369. * and do nothing when 'console' is not supported.
  46370. * This really simplifies the code.
  46371. * ---
  46372. * Similar to invariant but only logs a warning if the condition is not met.
  46373. * This can be used to log issues in development environments in critical
  46374. * paths. Removing the logging code for production environments will keep the
  46375. * same logic and follow the same code paths.
  46376. */
  46377. var lowPriorityWarning = function () {};
  46378. {
  46379. var printWarning = function (format) {
  46380. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  46381. args[_key - 1] = arguments[_key];
  46382. }
  46383. var argIndex = 0;
  46384. var message = 'Warning: ' + format.replace(/%s/g, function () {
  46385. return args[argIndex++];
  46386. });
  46387. if (typeof console !== 'undefined') {
  46388. console.warn(message);
  46389. }
  46390. try {
  46391. // --- Welcome to debugging React ---
  46392. // This error was thrown as a convenience so that you can use this stack
  46393. // to find the callsite that caused this warning to fire.
  46394. throw new Error(message);
  46395. } catch (x) {}
  46396. };
  46397. lowPriorityWarning = function (condition, format) {
  46398. if (format === undefined) {
  46399. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  46400. }
  46401. if (!condition) {
  46402. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  46403. args[_key2 - 2] = arguments[_key2];
  46404. }
  46405. printWarning.apply(undefined, [format].concat(args));
  46406. }
  46407. };
  46408. }
  46409. var lowPriorityWarning$1 = lowPriorityWarning;
  46410. /**
  46411. * Similar to invariant but only logs a warning if the condition is not met.
  46412. * This can be used to log issues in development environments in critical
  46413. * paths. Removing the logging code for production environments will keep the
  46414. * same logic and follow the same code paths.
  46415. */
  46416. var warningWithoutStack = function () {};
  46417. {
  46418. warningWithoutStack = function (condition, format) {
  46419. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  46420. args[_key - 2] = arguments[_key];
  46421. }
  46422. if (format === undefined) {
  46423. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  46424. }
  46425. if (args.length > 8) {
  46426. // Check before the condition to catch violations early.
  46427. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  46428. }
  46429. if (condition) {
  46430. return;
  46431. }
  46432. if (typeof console !== 'undefined') {
  46433. var argsWithFormat = args.map(function (item) {
  46434. return '' + item;
  46435. });
  46436. argsWithFormat.unshift('Warning: ' + format);
  46437. // We intentionally don't use spread (or .apply) directly because it
  46438. // breaks IE9: https://github.com/facebook/react/issues/13610
  46439. Function.prototype.apply.call(console.error, console, argsWithFormat);
  46440. }
  46441. try {
  46442. // --- Welcome to debugging React ---
  46443. // This error was thrown as a convenience so that you can use this stack
  46444. // to find the callsite that caused this warning to fire.
  46445. var argIndex = 0;
  46446. var message = 'Warning: ' + format.replace(/%s/g, function () {
  46447. return args[argIndex++];
  46448. });
  46449. throw new Error(message);
  46450. } catch (x) {}
  46451. };
  46452. }
  46453. var warningWithoutStack$1 = warningWithoutStack;
  46454. var didWarnStateUpdateForUnmountedComponent = {};
  46455. function warnNoop(publicInstance, callerName) {
  46456. {
  46457. var _constructor = publicInstance.constructor;
  46458. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  46459. var warningKey = componentName + '.' + callerName;
  46460. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  46461. return;
  46462. }
  46463. warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
  46464. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  46465. }
  46466. }
  46467. /**
  46468. * This is the abstract API for an update queue.
  46469. */
  46470. var ReactNoopUpdateQueue = {
  46471. /**
  46472. * Checks whether or not this composite component is mounted.
  46473. * @param {ReactClass} publicInstance The instance we want to test.
  46474. * @return {boolean} True if mounted, false otherwise.
  46475. * @protected
  46476. * @final
  46477. */
  46478. isMounted: function (publicInstance) {
  46479. return false;
  46480. },
  46481. /**
  46482. * Forces an update. This should only be invoked when it is known with
  46483. * certainty that we are **not** in a DOM transaction.
  46484. *
  46485. * You may want to call this when you know that some deeper aspect of the
  46486. * component's state has changed but `setState` was not called.
  46487. *
  46488. * This will not invoke `shouldComponentUpdate`, but it will invoke
  46489. * `componentWillUpdate` and `componentDidUpdate`.
  46490. *
  46491. * @param {ReactClass} publicInstance The instance that should rerender.
  46492. * @param {?function} callback Called after component is updated.
  46493. * @param {?string} callerName name of the calling function in the public API.
  46494. * @internal
  46495. */
  46496. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  46497. warnNoop(publicInstance, 'forceUpdate');
  46498. },
  46499. /**
  46500. * Replaces all of the state. Always use this or `setState` to mutate state.
  46501. * You should treat `this.state` as immutable.
  46502. *
  46503. * There is no guarantee that `this.state` will be immediately updated, so
  46504. * accessing `this.state` after calling this method may return the old value.
  46505. *
  46506. * @param {ReactClass} publicInstance The instance that should rerender.
  46507. * @param {object} completeState Next state.
  46508. * @param {?function} callback Called after component is updated.
  46509. * @param {?string} callerName name of the calling function in the public API.
  46510. * @internal
  46511. */
  46512. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  46513. warnNoop(publicInstance, 'replaceState');
  46514. },
  46515. /**
  46516. * Sets a subset of the state. This only exists because _pendingState is
  46517. * internal. This provides a merging strategy that is not available to deep
  46518. * properties which is confusing. TODO: Expose pendingState or don't use it
  46519. * during the merge.
  46520. *
  46521. * @param {ReactClass} publicInstance The instance that should rerender.
  46522. * @param {object} partialState Next partial state to be merged with state.
  46523. * @param {?function} callback Called after component is updated.
  46524. * @param {?string} Name of the calling function in the public API.
  46525. * @internal
  46526. */
  46527. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  46528. warnNoop(publicInstance, 'setState');
  46529. }
  46530. };
  46531. var emptyObject = {};
  46532. {
  46533. Object.freeze(emptyObject);
  46534. }
  46535. /**
  46536. * Base class helpers for the updating state of a component.
  46537. */
  46538. function Component(props, context, updater) {
  46539. this.props = props;
  46540. this.context = context;
  46541. // If a component has string refs, we will assign a different object later.
  46542. this.refs = emptyObject;
  46543. // We initialize the default updater but the real one gets injected by the
  46544. // renderer.
  46545. this.updater = updater || ReactNoopUpdateQueue;
  46546. }
  46547. Component.prototype.isReactComponent = {};
  46548. /**
  46549. * Sets a subset of the state. Always use this to mutate
  46550. * state. You should treat `this.state` as immutable.
  46551. *
  46552. * There is no guarantee that `this.state` will be immediately updated, so
  46553. * accessing `this.state` after calling this method may return the old value.
  46554. *
  46555. * There is no guarantee that calls to `setState` will run synchronously,
  46556. * as they may eventually be batched together. You can provide an optional
  46557. * callback that will be executed when the call to setState is actually
  46558. * completed.
  46559. *
  46560. * When a function is provided to setState, it will be called at some point in
  46561. * the future (not synchronously). It will be called with the up to date
  46562. * component arguments (state, props, context). These values can be different
  46563. * from this.* because your function may be called after receiveProps but before
  46564. * shouldComponentUpdate, and this new state, props, and context will not yet be
  46565. * assigned to this.
  46566. *
  46567. * @param {object|function} partialState Next partial state or function to
  46568. * produce next partial state to be merged with current state.
  46569. * @param {?function} callback Called after state is updated.
  46570. * @final
  46571. * @protected
  46572. */
  46573. Component.prototype.setState = function (partialState, callback) {
  46574. (function () {
  46575. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  46576. {
  46577. throw ReactError(Error('setState(...): takes an object of state variables to update or a function which returns an object of state variables.'));
  46578. }
  46579. }
  46580. })();
  46581. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  46582. };
  46583. /**
  46584. * Forces an update. This should only be invoked when it is known with
  46585. * certainty that we are **not** in a DOM transaction.
  46586. *
  46587. * You may want to call this when you know that some deeper aspect of the
  46588. * component's state has changed but `setState` was not called.
  46589. *
  46590. * This will not invoke `shouldComponentUpdate`, but it will invoke
  46591. * `componentWillUpdate` and `componentDidUpdate`.
  46592. *
  46593. * @param {?function} callback Called after update is complete.
  46594. * @final
  46595. * @protected
  46596. */
  46597. Component.prototype.forceUpdate = function (callback) {
  46598. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  46599. };
  46600. /**
  46601. * Deprecated APIs. These APIs used to exist on classic React classes but since
  46602. * we would like to deprecate them, we're not going to move them over to this
  46603. * modern base class. Instead, we define a getter that warns if it's accessed.
  46604. */
  46605. {
  46606. var deprecatedAPIs = {
  46607. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  46608. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  46609. };
  46610. var defineDeprecationWarning = function (methodName, info) {
  46611. Object.defineProperty(Component.prototype, methodName, {
  46612. get: function () {
  46613. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  46614. return undefined;
  46615. }
  46616. });
  46617. };
  46618. for (var fnName in deprecatedAPIs) {
  46619. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  46620. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  46621. }
  46622. }
  46623. }
  46624. function ComponentDummy() {}
  46625. ComponentDummy.prototype = Component.prototype;
  46626. /**
  46627. * Convenience component with default shallow equality check for sCU.
  46628. */
  46629. function PureComponent(props, context, updater) {
  46630. this.props = props;
  46631. this.context = context;
  46632. // If a component has string refs, we will assign a different object later.
  46633. this.refs = emptyObject;
  46634. this.updater = updater || ReactNoopUpdateQueue;
  46635. }
  46636. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  46637. pureComponentPrototype.constructor = PureComponent;
  46638. // Avoid an extra prototype jump for these methods.
  46639. _assign(pureComponentPrototype, Component.prototype);
  46640. pureComponentPrototype.isPureReactComponent = true;
  46641. // an immutable object with a single mutable value
  46642. function createRef() {
  46643. var refObject = {
  46644. current: null
  46645. };
  46646. {
  46647. Object.seal(refObject);
  46648. }
  46649. return refObject;
  46650. }
  46651. /**
  46652. * Keeps track of the current dispatcher.
  46653. */
  46654. var ReactCurrentDispatcher = {
  46655. /**
  46656. * @internal
  46657. * @type {ReactComponent}
  46658. */
  46659. current: null
  46660. };
  46661. /**
  46662. * Keeps track of the current batch's configuration such as how long an update
  46663. * should suspend for if it needs to.
  46664. */
  46665. var ReactCurrentBatchConfig = {
  46666. suspense: null
  46667. };
  46668. /**
  46669. * Keeps track of the current owner.
  46670. *
  46671. * The current owner is the component who should own any components that are
  46672. * currently being constructed.
  46673. */
  46674. var ReactCurrentOwner = {
  46675. /**
  46676. * @internal
  46677. * @type {ReactComponent}
  46678. */
  46679. current: null
  46680. };
  46681. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  46682. var describeComponentFrame = function (name, source, ownerName) {
  46683. var sourceInfo = '';
  46684. if (source) {
  46685. var path = source.fileName;
  46686. var fileName = path.replace(BEFORE_SLASH_RE, '');
  46687. {
  46688. // In DEV, include code for a common special case:
  46689. // prefer "folder/index.js" instead of just "index.js".
  46690. if (/^index\./.test(fileName)) {
  46691. var match = path.match(BEFORE_SLASH_RE);
  46692. if (match) {
  46693. var pathBeforeSlash = match[1];
  46694. if (pathBeforeSlash) {
  46695. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  46696. fileName = folderName + '/' + fileName;
  46697. }
  46698. }
  46699. }
  46700. }
  46701. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  46702. } else if (ownerName) {
  46703. sourceInfo = ' (created by ' + ownerName + ')';
  46704. }
  46705. return '\n in ' + (name || 'Unknown') + sourceInfo;
  46706. };
  46707. var Resolved = 1;
  46708. function refineResolvedLazyComponent(lazyComponent) {
  46709. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  46710. }
  46711. function getWrappedName(outerType, innerType, wrapperName) {
  46712. var functionName = innerType.displayName || innerType.name || '';
  46713. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  46714. }
  46715. function getComponentName(type) {
  46716. if (type == null) {
  46717. // Host root, text node or just invalid type.
  46718. return null;
  46719. }
  46720. {
  46721. if (typeof type.tag === 'number') {
  46722. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  46723. }
  46724. }
  46725. if (typeof type === 'function') {
  46726. return type.displayName || type.name || null;
  46727. }
  46728. if (typeof type === 'string') {
  46729. return type;
  46730. }
  46731. switch (type) {
  46732. case REACT_FRAGMENT_TYPE:
  46733. return 'Fragment';
  46734. case REACT_PORTAL_TYPE:
  46735. return 'Portal';
  46736. case REACT_PROFILER_TYPE:
  46737. return 'Profiler';
  46738. case REACT_STRICT_MODE_TYPE:
  46739. return 'StrictMode';
  46740. case REACT_SUSPENSE_TYPE:
  46741. return 'Suspense';
  46742. case REACT_SUSPENSE_LIST_TYPE:
  46743. return 'SuspenseList';
  46744. }
  46745. if (typeof type === 'object') {
  46746. switch (type.$$typeof) {
  46747. case REACT_CONTEXT_TYPE:
  46748. return 'Context.Consumer';
  46749. case REACT_PROVIDER_TYPE:
  46750. return 'Context.Provider';
  46751. case REACT_FORWARD_REF_TYPE:
  46752. return getWrappedName(type, type.render, 'ForwardRef');
  46753. case REACT_MEMO_TYPE:
  46754. return getComponentName(type.type);
  46755. case REACT_LAZY_TYPE:
  46756. {
  46757. var thenable = type;
  46758. var resolvedThenable = refineResolvedLazyComponent(thenable);
  46759. if (resolvedThenable) {
  46760. return getComponentName(resolvedThenable);
  46761. }
  46762. break;
  46763. }
  46764. }
  46765. }
  46766. return null;
  46767. }
  46768. var ReactDebugCurrentFrame = {};
  46769. var currentlyValidatingElement = null;
  46770. function setCurrentlyValidatingElement(element) {
  46771. {
  46772. currentlyValidatingElement = element;
  46773. }
  46774. }
  46775. {
  46776. // Stack implementation injected by the current renderer.
  46777. ReactDebugCurrentFrame.getCurrentStack = null;
  46778. ReactDebugCurrentFrame.getStackAddendum = function () {
  46779. var stack = '';
  46780. // Add an extra top frame while an element is being validated
  46781. if (currentlyValidatingElement) {
  46782. var name = getComponentName(currentlyValidatingElement.type);
  46783. var owner = currentlyValidatingElement._owner;
  46784. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  46785. }
  46786. // Delegate to the injected renderer-specific implementation
  46787. var impl = ReactDebugCurrentFrame.getCurrentStack;
  46788. if (impl) {
  46789. stack += impl() || '';
  46790. }
  46791. return stack;
  46792. };
  46793. }
  46794. /**
  46795. * Used by act() to track whether you're inside an act() scope.
  46796. */
  46797. var IsSomeRendererActing = {
  46798. current: false
  46799. };
  46800. var ReactSharedInternals = {
  46801. ReactCurrentDispatcher: ReactCurrentDispatcher,
  46802. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  46803. ReactCurrentOwner: ReactCurrentOwner,
  46804. IsSomeRendererActing: IsSomeRendererActing,
  46805. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  46806. assign: _assign
  46807. };
  46808. {
  46809. _assign(ReactSharedInternals, {
  46810. // These should not be included in production.
  46811. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  46812. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  46813. // TODO: remove in React 17.0.
  46814. ReactComponentTreeHook: {}
  46815. });
  46816. }
  46817. /**
  46818. * Similar to invariant but only logs a warning if the condition is not met.
  46819. * This can be used to log issues in development environments in critical
  46820. * paths. Removing the logging code for production environments will keep the
  46821. * same logic and follow the same code paths.
  46822. */
  46823. var warning = warningWithoutStack$1;
  46824. {
  46825. warning = function (condition, format) {
  46826. if (condition) {
  46827. return;
  46828. }
  46829. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  46830. var stack = ReactDebugCurrentFrame.getStackAddendum();
  46831. // eslint-disable-next-line react-internal/warning-and-invariant-args
  46832. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  46833. args[_key - 2] = arguments[_key];
  46834. }
  46835. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  46836. };
  46837. }
  46838. var warning$1 = warning;
  46839. var hasOwnProperty = Object.prototype.hasOwnProperty;
  46840. var RESERVED_PROPS = {
  46841. key: true,
  46842. ref: true,
  46843. __self: true,
  46844. __source: true
  46845. };
  46846. var specialPropKeyWarningShown = void 0;
  46847. var specialPropRefWarningShown = void 0;
  46848. function hasValidRef(config) {
  46849. {
  46850. if (hasOwnProperty.call(config, 'ref')) {
  46851. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  46852. if (getter && getter.isReactWarning) {
  46853. return false;
  46854. }
  46855. }
  46856. }
  46857. return config.ref !== undefined;
  46858. }
  46859. function hasValidKey(config) {
  46860. {
  46861. if (hasOwnProperty.call(config, 'key')) {
  46862. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  46863. if (getter && getter.isReactWarning) {
  46864. return false;
  46865. }
  46866. }
  46867. }
  46868. return config.key !== undefined;
  46869. }
  46870. function defineKeyPropWarningGetter(props, displayName) {
  46871. var warnAboutAccessingKey = function () {
  46872. if (!specialPropKeyWarningShown) {
  46873. specialPropKeyWarningShown = true;
  46874. warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  46875. }
  46876. };
  46877. warnAboutAccessingKey.isReactWarning = true;
  46878. Object.defineProperty(props, 'key', {
  46879. get: warnAboutAccessingKey,
  46880. configurable: true
  46881. });
  46882. }
  46883. function defineRefPropWarningGetter(props, displayName) {
  46884. var warnAboutAccessingRef = function () {
  46885. if (!specialPropRefWarningShown) {
  46886. specialPropRefWarningShown = true;
  46887. warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  46888. }
  46889. };
  46890. warnAboutAccessingRef.isReactWarning = true;
  46891. Object.defineProperty(props, 'ref', {
  46892. get: warnAboutAccessingRef,
  46893. configurable: true
  46894. });
  46895. }
  46896. /**
  46897. * Factory method to create a new React element. This no longer adheres to
  46898. * the class pattern, so do not use new to call it. Also, no instanceof check
  46899. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  46900. * if something is a React Element.
  46901. *
  46902. * @param {*} type
  46903. * @param {*} props
  46904. * @param {*} key
  46905. * @param {string|object} ref
  46906. * @param {*} owner
  46907. * @param {*} self A *temporary* helper to detect places where `this` is
  46908. * different from the `owner` when React.createElement is called, so that we
  46909. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  46910. * functions, and as long as `this` and owner are the same, there will be no
  46911. * change in behavior.
  46912. * @param {*} source An annotation object (added by a transpiler or otherwise)
  46913. * indicating filename, line number, and/or other information.
  46914. * @internal
  46915. */
  46916. var ReactElement = function (type, key, ref, self, source, owner, props) {
  46917. var element = {
  46918. // This tag allows us to uniquely identify this as a React Element
  46919. $$typeof: REACT_ELEMENT_TYPE,
  46920. // Built-in properties that belong on the element
  46921. type: type,
  46922. key: key,
  46923. ref: ref,
  46924. props: props,
  46925. // Record the component responsible for creating this element.
  46926. _owner: owner
  46927. };
  46928. {
  46929. // The validation flag is currently mutative. We put it on
  46930. // an external backing store so that we can freeze the whole object.
  46931. // This can be replaced with a WeakMap once they are implemented in
  46932. // commonly used development environments.
  46933. element._store = {};
  46934. // To make comparing ReactElements easier for testing purposes, we make
  46935. // the validation flag non-enumerable (where possible, which should
  46936. // include every environment we run tests in), so the test framework
  46937. // ignores it.
  46938. Object.defineProperty(element._store, 'validated', {
  46939. configurable: false,
  46940. enumerable: false,
  46941. writable: true,
  46942. value: false
  46943. });
  46944. // self and source are DEV only properties.
  46945. Object.defineProperty(element, '_self', {
  46946. configurable: false,
  46947. enumerable: false,
  46948. writable: false,
  46949. value: self
  46950. });
  46951. // Two elements created in two different places should be considered
  46952. // equal for testing purposes and therefore we hide it from enumeration.
  46953. Object.defineProperty(element, '_source', {
  46954. configurable: false,
  46955. enumerable: false,
  46956. writable: false,
  46957. value: source
  46958. });
  46959. if (Object.freeze) {
  46960. Object.freeze(element.props);
  46961. Object.freeze(element);
  46962. }
  46963. }
  46964. return element;
  46965. };
  46966. /**
  46967. * https://github.com/reactjs/rfcs/pull/107
  46968. * @param {*} type
  46969. * @param {object} props
  46970. * @param {string} key
  46971. */
  46972. /**
  46973. * https://github.com/reactjs/rfcs/pull/107
  46974. * @param {*} type
  46975. * @param {object} props
  46976. * @param {string} key
  46977. */
  46978. function jsxDEV(type, config, maybeKey, source, self) {
  46979. var propName = void 0;
  46980. // Reserved names are extracted
  46981. var props = {};
  46982. var key = null;
  46983. var ref = null;
  46984. if (hasValidRef(config)) {
  46985. ref = config.ref;
  46986. }
  46987. if (hasValidKey(config)) {
  46988. key = '' + config.key;
  46989. }
  46990. // Remaining properties are added to a new props object
  46991. for (propName in config) {
  46992. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  46993. props[propName] = config[propName];
  46994. }
  46995. }
  46996. // intentionally not checking if key was set above
  46997. // this key is higher priority as it's static
  46998. if (maybeKey !== undefined) {
  46999. key = '' + maybeKey;
  47000. }
  47001. // Resolve default props
  47002. if (type && type.defaultProps) {
  47003. var defaultProps = type.defaultProps;
  47004. for (propName in defaultProps) {
  47005. if (props[propName] === undefined) {
  47006. props[propName] = defaultProps[propName];
  47007. }
  47008. }
  47009. }
  47010. if (key || ref) {
  47011. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  47012. if (key) {
  47013. defineKeyPropWarningGetter(props, displayName);
  47014. }
  47015. if (ref) {
  47016. defineRefPropWarningGetter(props, displayName);
  47017. }
  47018. }
  47019. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  47020. }
  47021. /**
  47022. * Create and return a new ReactElement of the given type.
  47023. * See https://reactjs.org/docs/react-api.html#createelement
  47024. */
  47025. function createElement(type, config, children) {
  47026. var propName = void 0;
  47027. // Reserved names are extracted
  47028. var props = {};
  47029. var key = null;
  47030. var ref = null;
  47031. var self = null;
  47032. var source = null;
  47033. if (config != null) {
  47034. if (hasValidRef(config)) {
  47035. ref = config.ref;
  47036. }
  47037. if (hasValidKey(config)) {
  47038. key = '' + config.key;
  47039. }
  47040. self = config.__self === undefined ? null : config.__self;
  47041. source = config.__source === undefined ? null : config.__source;
  47042. // Remaining properties are added to a new props object
  47043. for (propName in config) {
  47044. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  47045. props[propName] = config[propName];
  47046. }
  47047. }
  47048. }
  47049. // Children can be more than one argument, and those are transferred onto
  47050. // the newly allocated props object.
  47051. var childrenLength = arguments.length - 2;
  47052. if (childrenLength === 1) {
  47053. props.children = children;
  47054. } else if (childrenLength > 1) {
  47055. var childArray = Array(childrenLength);
  47056. for (var i = 0; i < childrenLength; i++) {
  47057. childArray[i] = arguments[i + 2];
  47058. }
  47059. {
  47060. if (Object.freeze) {
  47061. Object.freeze(childArray);
  47062. }
  47063. }
  47064. props.children = childArray;
  47065. }
  47066. // Resolve default props
  47067. if (type && type.defaultProps) {
  47068. var defaultProps = type.defaultProps;
  47069. for (propName in defaultProps) {
  47070. if (props[propName] === undefined) {
  47071. props[propName] = defaultProps[propName];
  47072. }
  47073. }
  47074. }
  47075. {
  47076. if (key || ref) {
  47077. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  47078. if (key) {
  47079. defineKeyPropWarningGetter(props, displayName);
  47080. }
  47081. if (ref) {
  47082. defineRefPropWarningGetter(props, displayName);
  47083. }
  47084. }
  47085. }
  47086. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  47087. }
  47088. /**
  47089. * Return a function that produces ReactElements of a given type.
  47090. * See https://reactjs.org/docs/react-api.html#createfactory
  47091. */
  47092. function cloneAndReplaceKey(oldElement, newKey) {
  47093. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  47094. return newElement;
  47095. }
  47096. /**
  47097. * Clone and return a new ReactElement using element as the starting point.
  47098. * See https://reactjs.org/docs/react-api.html#cloneelement
  47099. */
  47100. function cloneElement(element, config, children) {
  47101. (function () {
  47102. if (!!(element === null || element === undefined)) {
  47103. {
  47104. throw ReactError(Error('React.cloneElement(...): The argument must be a React element, but you passed ' + element + '.'));
  47105. }
  47106. }
  47107. })();
  47108. var propName = void 0;
  47109. // Original props are copied
  47110. var props = _assign({}, element.props);
  47111. // Reserved names are extracted
  47112. var key = element.key;
  47113. var ref = element.ref;
  47114. // Self is preserved since the owner is preserved.
  47115. var self = element._self;
  47116. // Source is preserved since cloneElement is unlikely to be targeted by a
  47117. // transpiler, and the original source is probably a better indicator of the
  47118. // true owner.
  47119. var source = element._source;
  47120. // Owner will be preserved, unless ref is overridden
  47121. var owner = element._owner;
  47122. if (config != null) {
  47123. if (hasValidRef(config)) {
  47124. // Silently steal the ref from the parent.
  47125. ref = config.ref;
  47126. owner = ReactCurrentOwner.current;
  47127. }
  47128. if (hasValidKey(config)) {
  47129. key = '' + config.key;
  47130. }
  47131. // Remaining properties override existing props
  47132. var defaultProps = void 0;
  47133. if (element.type && element.type.defaultProps) {
  47134. defaultProps = element.type.defaultProps;
  47135. }
  47136. for (propName in config) {
  47137. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  47138. if (config[propName] === undefined && defaultProps !== undefined) {
  47139. // Resolve default props
  47140. props[propName] = defaultProps[propName];
  47141. } else {
  47142. props[propName] = config[propName];
  47143. }
  47144. }
  47145. }
  47146. }
  47147. // Children can be more than one argument, and those are transferred onto
  47148. // the newly allocated props object.
  47149. var childrenLength = arguments.length - 2;
  47150. if (childrenLength === 1) {
  47151. props.children = children;
  47152. } else if (childrenLength > 1) {
  47153. var childArray = Array(childrenLength);
  47154. for (var i = 0; i < childrenLength; i++) {
  47155. childArray[i] = arguments[i + 2];
  47156. }
  47157. props.children = childArray;
  47158. }
  47159. return ReactElement(element.type, key, ref, self, source, owner, props);
  47160. }
  47161. /**
  47162. * Verifies the object is a ReactElement.
  47163. * See https://reactjs.org/docs/react-api.html#isvalidelement
  47164. * @param {?object} object
  47165. * @return {boolean} True if `object` is a ReactElement.
  47166. * @final
  47167. */
  47168. function isValidElement(object) {
  47169. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  47170. }
  47171. var SEPARATOR = '.';
  47172. var SUBSEPARATOR = ':';
  47173. /**
  47174. * Escape and wrap key so it is safe to use as a reactid
  47175. *
  47176. * @param {string} key to be escaped.
  47177. * @return {string} the escaped key.
  47178. */
  47179. function escape(key) {
  47180. var escapeRegex = /[=:]/g;
  47181. var escaperLookup = {
  47182. '=': '=0',
  47183. ':': '=2'
  47184. };
  47185. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  47186. return escaperLookup[match];
  47187. });
  47188. return '$' + escapedString;
  47189. }
  47190. /**
  47191. * TODO: Test that a single child and an array with one item have the same key
  47192. * pattern.
  47193. */
  47194. var didWarnAboutMaps = false;
  47195. var userProvidedKeyEscapeRegex = /\/+/g;
  47196. function escapeUserProvidedKey(text) {
  47197. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  47198. }
  47199. var POOL_SIZE = 10;
  47200. var traverseContextPool = [];
  47201. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  47202. if (traverseContextPool.length) {
  47203. var traverseContext = traverseContextPool.pop();
  47204. traverseContext.result = mapResult;
  47205. traverseContext.keyPrefix = keyPrefix;
  47206. traverseContext.func = mapFunction;
  47207. traverseContext.context = mapContext;
  47208. traverseContext.count = 0;
  47209. return traverseContext;
  47210. } else {
  47211. return {
  47212. result: mapResult,
  47213. keyPrefix: keyPrefix,
  47214. func: mapFunction,
  47215. context: mapContext,
  47216. count: 0
  47217. };
  47218. }
  47219. }
  47220. function releaseTraverseContext(traverseContext) {
  47221. traverseContext.result = null;
  47222. traverseContext.keyPrefix = null;
  47223. traverseContext.func = null;
  47224. traverseContext.context = null;
  47225. traverseContext.count = 0;
  47226. if (traverseContextPool.length < POOL_SIZE) {
  47227. traverseContextPool.push(traverseContext);
  47228. }
  47229. }
  47230. /**
  47231. * @param {?*} children Children tree container.
  47232. * @param {!string} nameSoFar Name of the key path so far.
  47233. * @param {!function} callback Callback to invoke with each child found.
  47234. * @param {?*} traverseContext Used to pass information throughout the traversal
  47235. * process.
  47236. * @return {!number} The number of children in this subtree.
  47237. */
  47238. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  47239. var type = typeof children;
  47240. if (type === 'undefined' || type === 'boolean') {
  47241. // All of the above are perceived as null.
  47242. children = null;
  47243. }
  47244. var invokeCallback = false;
  47245. if (children === null) {
  47246. invokeCallback = true;
  47247. } else {
  47248. switch (type) {
  47249. case 'string':
  47250. case 'number':
  47251. invokeCallback = true;
  47252. break;
  47253. case 'object':
  47254. switch (children.$$typeof) {
  47255. case REACT_ELEMENT_TYPE:
  47256. case REACT_PORTAL_TYPE:
  47257. invokeCallback = true;
  47258. }
  47259. }
  47260. }
  47261. if (invokeCallback) {
  47262. callback(traverseContext, children,
  47263. // If it's the only child, treat the name as if it was wrapped in an array
  47264. // so that it's consistent if the number of children grows.
  47265. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  47266. return 1;
  47267. }
  47268. var child = void 0;
  47269. var nextName = void 0;
  47270. var subtreeCount = 0; // Count of children found in the current subtree.
  47271. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  47272. if (Array.isArray(children)) {
  47273. for (var i = 0; i < children.length; i++) {
  47274. child = children[i];
  47275. nextName = nextNamePrefix + getComponentKey(child, i);
  47276. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  47277. }
  47278. } else {
  47279. var iteratorFn = getIteratorFn(children);
  47280. if (typeof iteratorFn === 'function') {
  47281. {
  47282. // Warn about using Maps as children
  47283. if (iteratorFn === children.entries) {
  47284. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  47285. didWarnAboutMaps = true;
  47286. }
  47287. }
  47288. var iterator = iteratorFn.call(children);
  47289. var step = void 0;
  47290. var ii = 0;
  47291. while (!(step = iterator.next()).done) {
  47292. child = step.value;
  47293. nextName = nextNamePrefix + getComponentKey(child, ii++);
  47294. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  47295. }
  47296. } else if (type === 'object') {
  47297. var addendum = '';
  47298. {
  47299. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  47300. }
  47301. var childrenString = '' + children;
  47302. (function () {
  47303. {
  47304. {
  47305. throw ReactError(Error('Objects are not valid as a React child (found: ' + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ').' + addendum));
  47306. }
  47307. }
  47308. })();
  47309. }
  47310. }
  47311. return subtreeCount;
  47312. }
  47313. /**
  47314. * Traverses children that are typically specified as `props.children`, but
  47315. * might also be specified through attributes:
  47316. *
  47317. * - `traverseAllChildren(this.props.children, ...)`
  47318. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  47319. *
  47320. * The `traverseContext` is an optional argument that is passed through the
  47321. * entire traversal. It can be used to store accumulations or anything else that
  47322. * the callback might find relevant.
  47323. *
  47324. * @param {?*} children Children tree object.
  47325. * @param {!function} callback To invoke upon traversing each child.
  47326. * @param {?*} traverseContext Context for traversal.
  47327. * @return {!number} The number of children in this subtree.
  47328. */
  47329. function traverseAllChildren(children, callback, traverseContext) {
  47330. if (children == null) {
  47331. return 0;
  47332. }
  47333. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  47334. }
  47335. /**
  47336. * Generate a key string that identifies a component within a set.
  47337. *
  47338. * @param {*} component A component that could contain a manual key.
  47339. * @param {number} index Index that is used if a manual key is not provided.
  47340. * @return {string}
  47341. */
  47342. function getComponentKey(component, index) {
  47343. // Do some typechecking here since we call this blindly. We want to ensure
  47344. // that we don't block potential future ES APIs.
  47345. if (typeof component === 'object' && component !== null && component.key != null) {
  47346. // Explicit key
  47347. return escape(component.key);
  47348. }
  47349. // Implicit key determined by the index in the set
  47350. return index.toString(36);
  47351. }
  47352. function forEachSingleChild(bookKeeping, child, name) {
  47353. var func = bookKeeping.func,
  47354. context = bookKeeping.context;
  47355. func.call(context, child, bookKeeping.count++);
  47356. }
  47357. /**
  47358. * Iterates through children that are typically specified as `props.children`.
  47359. *
  47360. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  47361. *
  47362. * The provided forEachFunc(child, index) will be called for each
  47363. * leaf child.
  47364. *
  47365. * @param {?*} children Children tree container.
  47366. * @param {function(*, int)} forEachFunc
  47367. * @param {*} forEachContext Context for forEachContext.
  47368. */
  47369. function forEachChildren(children, forEachFunc, forEachContext) {
  47370. if (children == null) {
  47371. return children;
  47372. }
  47373. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  47374. traverseAllChildren(children, forEachSingleChild, traverseContext);
  47375. releaseTraverseContext(traverseContext);
  47376. }
  47377. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  47378. var result = bookKeeping.result,
  47379. keyPrefix = bookKeeping.keyPrefix,
  47380. func = bookKeeping.func,
  47381. context = bookKeeping.context;
  47382. var mappedChild = func.call(context, child, bookKeeping.count++);
  47383. if (Array.isArray(mappedChild)) {
  47384. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  47385. return c;
  47386. });
  47387. } else if (mappedChild != null) {
  47388. if (isValidElement(mappedChild)) {
  47389. mappedChild = cloneAndReplaceKey(mappedChild,
  47390. // Keep both the (mapped) and old keys if they differ, just as
  47391. // traverseAllChildren used to do for objects as children
  47392. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  47393. }
  47394. result.push(mappedChild);
  47395. }
  47396. }
  47397. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  47398. var escapedPrefix = '';
  47399. if (prefix != null) {
  47400. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  47401. }
  47402. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  47403. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  47404. releaseTraverseContext(traverseContext);
  47405. }
  47406. /**
  47407. * Maps children that are typically specified as `props.children`.
  47408. *
  47409. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  47410. *
  47411. * The provided mapFunction(child, key, index) will be called for each
  47412. * leaf child.
  47413. *
  47414. * @param {?*} children Children tree container.
  47415. * @param {function(*, int)} func The map function.
  47416. * @param {*} context Context for mapFunction.
  47417. * @return {object} Object containing the ordered map of results.
  47418. */
  47419. function mapChildren(children, func, context) {
  47420. if (children == null) {
  47421. return children;
  47422. }
  47423. var result = [];
  47424. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  47425. return result;
  47426. }
  47427. /**
  47428. * Count the number of children that are typically specified as
  47429. * `props.children`.
  47430. *
  47431. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  47432. *
  47433. * @param {?*} children Children tree container.
  47434. * @return {number} The number of children.
  47435. */
  47436. function countChildren(children) {
  47437. return traverseAllChildren(children, function () {
  47438. return null;
  47439. }, null);
  47440. }
  47441. /**
  47442. * Flatten a children object (typically specified as `props.children`) and
  47443. * return an array with appropriately re-keyed children.
  47444. *
  47445. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  47446. */
  47447. function toArray(children) {
  47448. var result = [];
  47449. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  47450. return child;
  47451. });
  47452. return result;
  47453. }
  47454. /**
  47455. * Returns the first child in a collection of children and verifies that there
  47456. * is only one child in the collection.
  47457. *
  47458. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  47459. *
  47460. * The current implementation of this function assumes that a single child gets
  47461. * passed without a wrapper, but the purpose of this helper function is to
  47462. * abstract away the particular structure of children.
  47463. *
  47464. * @param {?object} children Child collection structure.
  47465. * @return {ReactElement} The first and only `ReactElement` contained in the
  47466. * structure.
  47467. */
  47468. function onlyChild(children) {
  47469. (function () {
  47470. if (!isValidElement(children)) {
  47471. {
  47472. throw ReactError(Error('React.Children.only expected to receive a single React element child.'));
  47473. }
  47474. }
  47475. })();
  47476. return children;
  47477. }
  47478. function createContext(defaultValue, calculateChangedBits) {
  47479. if (calculateChangedBits === undefined) {
  47480. calculateChangedBits = null;
  47481. } else {
  47482. {
  47483. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  47484. }
  47485. }
  47486. var context = {
  47487. $$typeof: REACT_CONTEXT_TYPE,
  47488. _calculateChangedBits: calculateChangedBits,
  47489. // As a workaround to support multiple concurrent renderers, we categorize
  47490. // some renderers as primary and others as secondary. We only expect
  47491. // there to be two concurrent renderers at most: React Native (primary) and
  47492. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  47493. // Secondary renderers store their context values on separate fields.
  47494. _currentValue: defaultValue,
  47495. _currentValue2: defaultValue,
  47496. // Used to track how many concurrent renderers this context currently
  47497. // supports within in a single renderer. Such as parallel server rendering.
  47498. _threadCount: 0,
  47499. // These are circular
  47500. Provider: null,
  47501. Consumer: null
  47502. };
  47503. context.Provider = {
  47504. $$typeof: REACT_PROVIDER_TYPE,
  47505. _context: context
  47506. };
  47507. var hasWarnedAboutUsingNestedContextConsumers = false;
  47508. var hasWarnedAboutUsingConsumerProvider = false;
  47509. {
  47510. // A separate object, but proxies back to the original context object for
  47511. // backwards compatibility. It has a different $$typeof, so we can properly
  47512. // warn for the incorrect usage of Context as a Consumer.
  47513. var Consumer = {
  47514. $$typeof: REACT_CONTEXT_TYPE,
  47515. _context: context,
  47516. _calculateChangedBits: context._calculateChangedBits
  47517. };
  47518. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  47519. Object.defineProperties(Consumer, {
  47520. Provider: {
  47521. get: function () {
  47522. if (!hasWarnedAboutUsingConsumerProvider) {
  47523. hasWarnedAboutUsingConsumerProvider = true;
  47524. warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  47525. }
  47526. return context.Provider;
  47527. },
  47528. set: function (_Provider) {
  47529. context.Provider = _Provider;
  47530. }
  47531. },
  47532. _currentValue: {
  47533. get: function () {
  47534. return context._currentValue;
  47535. },
  47536. set: function (_currentValue) {
  47537. context._currentValue = _currentValue;
  47538. }
  47539. },
  47540. _currentValue2: {
  47541. get: function () {
  47542. return context._currentValue2;
  47543. },
  47544. set: function (_currentValue2) {
  47545. context._currentValue2 = _currentValue2;
  47546. }
  47547. },
  47548. _threadCount: {
  47549. get: function () {
  47550. return context._threadCount;
  47551. },
  47552. set: function (_threadCount) {
  47553. context._threadCount = _threadCount;
  47554. }
  47555. },
  47556. Consumer: {
  47557. get: function () {
  47558. if (!hasWarnedAboutUsingNestedContextConsumers) {
  47559. hasWarnedAboutUsingNestedContextConsumers = true;
  47560. warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  47561. }
  47562. return context.Consumer;
  47563. }
  47564. }
  47565. });
  47566. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  47567. context.Consumer = Consumer;
  47568. }
  47569. {
  47570. context._currentRenderer = null;
  47571. context._currentRenderer2 = null;
  47572. }
  47573. return context;
  47574. }
  47575. function lazy(ctor) {
  47576. var lazyType = {
  47577. $$typeof: REACT_LAZY_TYPE,
  47578. _ctor: ctor,
  47579. // React uses these fields to store the result.
  47580. _status: -1,
  47581. _result: null
  47582. };
  47583. {
  47584. // In production, this would just set it on the object.
  47585. var defaultProps = void 0;
  47586. var propTypes = void 0;
  47587. Object.defineProperties(lazyType, {
  47588. defaultProps: {
  47589. configurable: true,
  47590. get: function () {
  47591. return defaultProps;
  47592. },
  47593. set: function (newDefaultProps) {
  47594. warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  47595. defaultProps = newDefaultProps;
  47596. // Match production behavior more closely:
  47597. Object.defineProperty(lazyType, 'defaultProps', {
  47598. enumerable: true
  47599. });
  47600. }
  47601. },
  47602. propTypes: {
  47603. configurable: true,
  47604. get: function () {
  47605. return propTypes;
  47606. },
  47607. set: function (newPropTypes) {
  47608. warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  47609. propTypes = newPropTypes;
  47610. // Match production behavior more closely:
  47611. Object.defineProperty(lazyType, 'propTypes', {
  47612. enumerable: true
  47613. });
  47614. }
  47615. }
  47616. });
  47617. }
  47618. return lazyType;
  47619. }
  47620. function forwardRef(render) {
  47621. {
  47622. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  47623. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  47624. } else if (typeof render !== 'function') {
  47625. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  47626. } else {
  47627. !(
  47628. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  47629. render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
  47630. }
  47631. if (render != null) {
  47632. !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
  47633. }
  47634. }
  47635. return {
  47636. $$typeof: REACT_FORWARD_REF_TYPE,
  47637. render: render
  47638. };
  47639. }
  47640. function isValidElementType(type) {
  47641. return typeof type === 'string' || typeof type === 'function' ||
  47642. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  47643. 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);
  47644. }
  47645. function memo(type, compare) {
  47646. {
  47647. if (!isValidElementType(type)) {
  47648. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  47649. }
  47650. }
  47651. return {
  47652. $$typeof: REACT_MEMO_TYPE,
  47653. type: type,
  47654. compare: compare === undefined ? null : compare
  47655. };
  47656. }
  47657. function resolveDispatcher() {
  47658. var dispatcher = ReactCurrentDispatcher.current;
  47659. (function () {
  47660. if (!(dispatcher !== null)) {
  47661. {
  47662. throw ReactError(Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  47663. }
  47664. }
  47665. })();
  47666. return dispatcher;
  47667. }
  47668. function useContext(Context, unstable_observedBits) {
  47669. var dispatcher = resolveDispatcher();
  47670. {
  47671. !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0;
  47672. // TODO: add a more generic warning for invalid values.
  47673. if (Context._context !== undefined) {
  47674. var realContext = Context._context;
  47675. // Don't deduplicate because this legitimately causes bugs
  47676. // and nobody should be using this in existing code.
  47677. if (realContext.Consumer === Context) {
  47678. warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
  47679. } else if (realContext.Provider === Context) {
  47680. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  47681. }
  47682. }
  47683. }
  47684. return dispatcher.useContext(Context, unstable_observedBits);
  47685. }
  47686. function useState(initialState) {
  47687. var dispatcher = resolveDispatcher();
  47688. return dispatcher.useState(initialState);
  47689. }
  47690. function useReducer(reducer, initialArg, init) {
  47691. var dispatcher = resolveDispatcher();
  47692. return dispatcher.useReducer(reducer, initialArg, init);
  47693. }
  47694. function useRef(initialValue) {
  47695. var dispatcher = resolveDispatcher();
  47696. return dispatcher.useRef(initialValue);
  47697. }
  47698. function useEffect(create, inputs) {
  47699. var dispatcher = resolveDispatcher();
  47700. return dispatcher.useEffect(create, inputs);
  47701. }
  47702. function useLayoutEffect(create, inputs) {
  47703. var dispatcher = resolveDispatcher();
  47704. return dispatcher.useLayoutEffect(create, inputs);
  47705. }
  47706. function useCallback(callback, inputs) {
  47707. var dispatcher = resolveDispatcher();
  47708. return dispatcher.useCallback(callback, inputs);
  47709. }
  47710. function useMemo(create, inputs) {
  47711. var dispatcher = resolveDispatcher();
  47712. return dispatcher.useMemo(create, inputs);
  47713. }
  47714. function useImperativeHandle(ref, create, inputs) {
  47715. var dispatcher = resolveDispatcher();
  47716. return dispatcher.useImperativeHandle(ref, create, inputs);
  47717. }
  47718. function useDebugValue(value, formatterFn) {
  47719. {
  47720. var dispatcher = resolveDispatcher();
  47721. return dispatcher.useDebugValue(value, formatterFn);
  47722. }
  47723. }
  47724. var emptyObject$1 = {};
  47725. function useResponder(responder, listenerProps) {
  47726. var dispatcher = resolveDispatcher();
  47727. {
  47728. if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) {
  47729. warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder);
  47730. return;
  47731. }
  47732. }
  47733. return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
  47734. }
  47735. // Within the scope of the callback, mark all updates as being allowed to suspend.
  47736. function withSuspenseConfig(scope, config) {
  47737. var previousConfig = ReactCurrentBatchConfig.suspense;
  47738. ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
  47739. try {
  47740. scope();
  47741. } finally {
  47742. ReactCurrentBatchConfig.suspense = previousConfig;
  47743. }
  47744. }
  47745. /**
  47746. * ReactElementValidator provides a wrapper around a element factory
  47747. * which validates the props passed to the element. This is intended to be
  47748. * used only in DEV and could be replaced by a static type checker for languages
  47749. * that support it.
  47750. */
  47751. var propTypesMisspellWarningShown = void 0;
  47752. {
  47753. propTypesMisspellWarningShown = false;
  47754. }
  47755. function getDeclarationErrorAddendum() {
  47756. if (ReactCurrentOwner.current) {
  47757. var name = getComponentName(ReactCurrentOwner.current.type);
  47758. if (name) {
  47759. return '\n\nCheck the render method of `' + name + '`.';
  47760. }
  47761. }
  47762. return '';
  47763. }
  47764. function getSourceInfoErrorAddendum(source) {
  47765. if (source !== undefined) {
  47766. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  47767. var lineNumber = source.lineNumber;
  47768. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  47769. }
  47770. return '';
  47771. }
  47772. function getSourceInfoErrorAddendumForProps(elementProps) {
  47773. if (elementProps !== null && elementProps !== undefined) {
  47774. return getSourceInfoErrorAddendum(elementProps.__source);
  47775. }
  47776. return '';
  47777. }
  47778. /**
  47779. * Warn if there's no key explicitly set on dynamic arrays of children or
  47780. * object keys are not valid. This allows us to keep track of children between
  47781. * updates.
  47782. */
  47783. var ownerHasKeyUseWarning = {};
  47784. function getCurrentComponentErrorInfo(parentType) {
  47785. var info = getDeclarationErrorAddendum();
  47786. if (!info) {
  47787. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  47788. if (parentName) {
  47789. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  47790. }
  47791. }
  47792. return info;
  47793. }
  47794. /**
  47795. * Warn if the element doesn't have an explicit key assigned to it.
  47796. * This element is in an array. The array could grow and shrink or be
  47797. * reordered. All children that haven't already been validated are required to
  47798. * have a "key" property assigned to it. Error statuses are cached so a warning
  47799. * will only be shown once.
  47800. *
  47801. * @internal
  47802. * @param {ReactElement} element Element that requires a key.
  47803. * @param {*} parentType element's parent's type.
  47804. */
  47805. function validateExplicitKey(element, parentType) {
  47806. if (!element._store || element._store.validated || element.key != null) {
  47807. return;
  47808. }
  47809. element._store.validated = true;
  47810. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  47811. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  47812. return;
  47813. }
  47814. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  47815. // Usually the current owner is the offender, but if it accepts children as a
  47816. // property, it may be the creator of the child that's responsible for
  47817. // assigning it a key.
  47818. var childOwner = '';
  47819. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  47820. // Give the component that originally created this child.
  47821. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  47822. }
  47823. setCurrentlyValidatingElement(element);
  47824. {
  47825. warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  47826. }
  47827. setCurrentlyValidatingElement(null);
  47828. }
  47829. /**
  47830. * Ensure that every element either is passed in a static location, in an
  47831. * array with an explicit keys property defined, or in an object literal
  47832. * with valid key property.
  47833. *
  47834. * @internal
  47835. * @param {ReactNode} node Statically passed child of any type.
  47836. * @param {*} parentType node's parent's type.
  47837. */
  47838. function validateChildKeys(node, parentType) {
  47839. if (typeof node !== 'object') {
  47840. return;
  47841. }
  47842. if (Array.isArray(node)) {
  47843. for (var i = 0; i < node.length; i++) {
  47844. var child = node[i];
  47845. if (isValidElement(child)) {
  47846. validateExplicitKey(child, parentType);
  47847. }
  47848. }
  47849. } else if (isValidElement(node)) {
  47850. // This element was passed in a valid location.
  47851. if (node._store) {
  47852. node._store.validated = true;
  47853. }
  47854. } else if (node) {
  47855. var iteratorFn = getIteratorFn(node);
  47856. if (typeof iteratorFn === 'function') {
  47857. // Entry iterators used to provide implicit keys,
  47858. // but now we print a separate warning for them later.
  47859. if (iteratorFn !== node.entries) {
  47860. var iterator = iteratorFn.call(node);
  47861. var step = void 0;
  47862. while (!(step = iterator.next()).done) {
  47863. if (isValidElement(step.value)) {
  47864. validateExplicitKey(step.value, parentType);
  47865. }
  47866. }
  47867. }
  47868. }
  47869. }
  47870. }
  47871. /**
  47872. * Given an element, validate that its props follow the propTypes definition,
  47873. * provided by the type.
  47874. *
  47875. * @param {ReactElement} element
  47876. */
  47877. function validatePropTypes(element) {
  47878. var type = element.type;
  47879. if (type === null || type === undefined || typeof type === 'string') {
  47880. return;
  47881. }
  47882. var name = getComponentName(type);
  47883. var propTypes = void 0;
  47884. if (typeof type === 'function') {
  47885. propTypes = type.propTypes;
  47886. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
  47887. // Note: Memo only checks outer props here.
  47888. // Inner props are checked in the reconciler.
  47889. type.$$typeof === REACT_MEMO_TYPE)) {
  47890. propTypes = type.propTypes;
  47891. } else {
  47892. return;
  47893. }
  47894. if (propTypes) {
  47895. setCurrentlyValidatingElement(element);
  47896. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  47897. setCurrentlyValidatingElement(null);
  47898. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  47899. propTypesMisspellWarningShown = true;
  47900. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  47901. }
  47902. if (typeof type.getDefaultProps === 'function') {
  47903. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  47904. }
  47905. }
  47906. /**
  47907. * Given a fragment, validate that it can only be provided with fragment props
  47908. * @param {ReactElement} fragment
  47909. */
  47910. function validateFragmentProps(fragment) {
  47911. setCurrentlyValidatingElement(fragment);
  47912. var keys = Object.keys(fragment.props);
  47913. for (var i = 0; i < keys.length; i++) {
  47914. var key = keys[i];
  47915. if (key !== 'children' && key !== 'key') {
  47916. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  47917. break;
  47918. }
  47919. }
  47920. if (fragment.ref !== null) {
  47921. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  47922. }
  47923. setCurrentlyValidatingElement(null);
  47924. }
  47925. function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
  47926. var validType = isValidElementType(type);
  47927. // We warn in this case but don't throw. We expect the element creation to
  47928. // succeed and there will likely be errors in render.
  47929. if (!validType) {
  47930. var info = '';
  47931. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  47932. 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.";
  47933. }
  47934. var sourceInfo = getSourceInfoErrorAddendum(source);
  47935. if (sourceInfo) {
  47936. info += sourceInfo;
  47937. } else {
  47938. info += getDeclarationErrorAddendum();
  47939. }
  47940. var typeString = void 0;
  47941. if (type === null) {
  47942. typeString = 'null';
  47943. } else if (Array.isArray(type)) {
  47944. typeString = 'array';
  47945. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  47946. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  47947. info = ' Did you accidentally export a JSX literal instead of a component?';
  47948. } else {
  47949. typeString = typeof type;
  47950. }
  47951. warning$1(false, 'React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  47952. }
  47953. var element = jsxDEV(type, props, key, source, self);
  47954. // The result can be nullish if a mock or a custom function is used.
  47955. // TODO: Drop this when these are no longer allowed as the type argument.
  47956. if (element == null) {
  47957. return element;
  47958. }
  47959. // Skip key warning if the type isn't valid since our key validation logic
  47960. // doesn't expect a non-string/function type and can throw confusing errors.
  47961. // We don't want exception behavior to differ between dev and prod.
  47962. // (Rendering will throw with a helpful message and as soon as the type is
  47963. // fixed, the key warnings will appear.)
  47964. if (validType) {
  47965. var children = props.children;
  47966. if (children !== undefined) {
  47967. if (isStaticChildren) {
  47968. for (var i = 0; i < children.length; i++) {
  47969. validateChildKeys(children[i], type);
  47970. }
  47971. } else {
  47972. validateChildKeys(children, type);
  47973. }
  47974. }
  47975. }
  47976. if (props.key !== undefined) {
  47977. warning$1(false, 'React.jsx: Spreading a key to JSX is a deprecated pattern. ' + 'Explicitly pass a key after spreading props in your JSX call. ' + 'E.g. <ComponentName {...props} key={key} />');
  47978. }
  47979. if (type === REACT_FRAGMENT_TYPE) {
  47980. validateFragmentProps(element);
  47981. } else {
  47982. validatePropTypes(element);
  47983. }
  47984. return element;
  47985. }
  47986. // These two functions exist to still get child warnings in dev
  47987. // even with the prod transform. This means that jsxDEV is purely
  47988. // opt-in behavior for better messages but that we won't stop
  47989. // giving you warnings if you use production apis.
  47990. function jsxWithValidationStatic(type, props, key) {
  47991. return jsxWithValidation(type, props, key, true);
  47992. }
  47993. function jsxWithValidationDynamic(type, props, key) {
  47994. return jsxWithValidation(type, props, key, false);
  47995. }
  47996. function createElementWithValidation(type, props, children) {
  47997. var validType = isValidElementType(type);
  47998. // We warn in this case but don't throw. We expect the element creation to
  47999. // succeed and there will likely be errors in render.
  48000. if (!validType) {
  48001. var info = '';
  48002. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  48003. 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.";
  48004. }
  48005. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  48006. if (sourceInfo) {
  48007. info += sourceInfo;
  48008. } else {
  48009. info += getDeclarationErrorAddendum();
  48010. }
  48011. var typeString = void 0;
  48012. if (type === null) {
  48013. typeString = 'null';
  48014. } else if (Array.isArray(type)) {
  48015. typeString = 'array';
  48016. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  48017. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  48018. info = ' Did you accidentally export a JSX literal instead of a component?';
  48019. } else {
  48020. typeString = typeof type;
  48021. }
  48022. warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  48023. }
  48024. var element = createElement.apply(this, arguments);
  48025. // The result can be nullish if a mock or a custom function is used.
  48026. // TODO: Drop this when these are no longer allowed as the type argument.
  48027. if (element == null) {
  48028. return element;
  48029. }
  48030. // Skip key warning if the type isn't valid since our key validation logic
  48031. // doesn't expect a non-string/function type and can throw confusing errors.
  48032. // We don't want exception behavior to differ between dev and prod.
  48033. // (Rendering will throw with a helpful message and as soon as the type is
  48034. // fixed, the key warnings will appear.)
  48035. if (validType) {
  48036. for (var i = 2; i < arguments.length; i++) {
  48037. validateChildKeys(arguments[i], type);
  48038. }
  48039. }
  48040. if (type === REACT_FRAGMENT_TYPE) {
  48041. validateFragmentProps(element);
  48042. } else {
  48043. validatePropTypes(element);
  48044. }
  48045. return element;
  48046. }
  48047. function createFactoryWithValidation(type) {
  48048. var validatedFactory = createElementWithValidation.bind(null, type);
  48049. validatedFactory.type = type;
  48050. // Legacy hook: remove it
  48051. {
  48052. Object.defineProperty(validatedFactory, 'type', {
  48053. enumerable: false,
  48054. get: function () {
  48055. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  48056. Object.defineProperty(this, 'type', {
  48057. value: type
  48058. });
  48059. return type;
  48060. }
  48061. });
  48062. }
  48063. return validatedFactory;
  48064. }
  48065. function cloneElementWithValidation(element, props, children) {
  48066. var newElement = cloneElement.apply(this, arguments);
  48067. for (var i = 2; i < arguments.length; i++) {
  48068. validateChildKeys(arguments[i], newElement.type);
  48069. }
  48070. validatePropTypes(newElement);
  48071. return newElement;
  48072. }
  48073. var hasBadMapPolyfill = void 0;
  48074. {
  48075. hasBadMapPolyfill = false;
  48076. try {
  48077. var frozenObject = Object.freeze({});
  48078. var testMap = new Map([[frozenObject, null]]);
  48079. var testSet = new Set([frozenObject]);
  48080. // This is necessary for Rollup to not consider these unused.
  48081. // https://github.com/rollup/rollup/issues/1771
  48082. // TODO: we can remove these if Rollup fixes the bug.
  48083. testMap.set(0, 0);
  48084. testSet.add(0);
  48085. } catch (e) {
  48086. // TODO: Consider warning about bad polyfills
  48087. hasBadMapPolyfill = true;
  48088. }
  48089. }
  48090. function createFundamentalComponent(impl) {
  48091. // We use responder as a Map key later on. When we have a bad
  48092. // polyfill, then we can't use it as a key as the polyfill tries
  48093. // to add a property to the object.
  48094. if ( true && !hasBadMapPolyfill) {
  48095. Object.freeze(impl);
  48096. }
  48097. var fundamantalComponent = {
  48098. $$typeof: REACT_FUNDAMENTAL_TYPE,
  48099. impl: impl
  48100. };
  48101. {
  48102. Object.freeze(fundamantalComponent);
  48103. }
  48104. return fundamantalComponent;
  48105. }
  48106. function createEventResponder(displayName, responderConfig) {
  48107. var getInitialState = responderConfig.getInitialState,
  48108. onEvent = responderConfig.onEvent,
  48109. onMount = responderConfig.onMount,
  48110. onUnmount = responderConfig.onUnmount,
  48111. onOwnershipChange = responderConfig.onOwnershipChange,
  48112. onRootEvent = responderConfig.onRootEvent,
  48113. rootEventTypes = responderConfig.rootEventTypes,
  48114. targetEventTypes = responderConfig.targetEventTypes;
  48115. var eventResponder = {
  48116. $$typeof: REACT_RESPONDER_TYPE,
  48117. displayName: displayName,
  48118. getInitialState: getInitialState || null,
  48119. onEvent: onEvent || null,
  48120. onMount: onMount || null,
  48121. onOwnershipChange: onOwnershipChange || null,
  48122. onRootEvent: onRootEvent || null,
  48123. onUnmount: onUnmount || null,
  48124. rootEventTypes: rootEventTypes || null,
  48125. targetEventTypes: targetEventTypes || null
  48126. };
  48127. // We use responder as a Map key later on. When we have a bad
  48128. // polyfill, then we can't use it as a key as the polyfill tries
  48129. // to add a property to the object.
  48130. if ( true && !hasBadMapPolyfill) {
  48131. Object.freeze(eventResponder);
  48132. }
  48133. return eventResponder;
  48134. }
  48135. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  48136. // In some cases, StrictMode should also double-render lifecycles.
  48137. // This can be confusing for tests though,
  48138. // And it can be bad for performance in production.
  48139. // This feature flag can be used to control the behavior:
  48140. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  48141. // replay the begin phase of a failed component inside invokeGuardedCallback.
  48142. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  48143. // Gather advanced timing metrics for Profiler subtrees.
  48144. // Trace which interactions trigger each commit.
  48145. // Only used in www builds.
  48146. // TODO: true? Here it might just be false.
  48147. // Only used in www builds.
  48148. // Only used in www builds.
  48149. // Disable javascript: URL strings in href for XSS protection.
  48150. // React Fire: prevent the value and checked attributes from syncing
  48151. // with their related DOM properties
  48152. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  48153. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  48154. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  48155. // This is a flag so we can fix warnings in RN core before turning it on
  48156. // Experimental React Flare event system and event components support.
  48157. var enableFlareAPI = false;
  48158. // Experimental Host Component support.
  48159. var enableFundamentalAPI = false;
  48160. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  48161. var enableJSXTransformAPI = false;
  48162. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  48163. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  48164. // Temporary flag to revert the fix in #15650
  48165. // For tests, we flush suspense fallbacks in an act scope;
  48166. // *except* in some of our own tests, where we test incremental loading states.
  48167. // Changes priority of some events like mousemove to user-blocking priority,
  48168. // but without making them discrete. The flag exists in case it causes
  48169. // starvation problems.
  48170. // Add a callback property to suspense to notify which promises are currently
  48171. // in the update queue. This allows reporting and tracing of what is causing
  48172. // the user to see a loading state.
  48173. // Part of the simplification of React.createElement so we can eventually move
  48174. // from React.createElement to React.jsx
  48175. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  48176. var React = {
  48177. Children: {
  48178. map: mapChildren,
  48179. forEach: forEachChildren,
  48180. count: countChildren,
  48181. toArray: toArray,
  48182. only: onlyChild
  48183. },
  48184. createRef: createRef,
  48185. Component: Component,
  48186. PureComponent: PureComponent,
  48187. createContext: createContext,
  48188. forwardRef: forwardRef,
  48189. lazy: lazy,
  48190. memo: memo,
  48191. useCallback: useCallback,
  48192. useContext: useContext,
  48193. useEffect: useEffect,
  48194. useImperativeHandle: useImperativeHandle,
  48195. useDebugValue: useDebugValue,
  48196. useLayoutEffect: useLayoutEffect,
  48197. useMemo: useMemo,
  48198. useReducer: useReducer,
  48199. useRef: useRef,
  48200. useState: useState,
  48201. Fragment: REACT_FRAGMENT_TYPE,
  48202. Profiler: REACT_PROFILER_TYPE,
  48203. StrictMode: REACT_STRICT_MODE_TYPE,
  48204. Suspense: REACT_SUSPENSE_TYPE,
  48205. unstable_SuspenseList: REACT_SUSPENSE_LIST_TYPE,
  48206. createElement: createElementWithValidation,
  48207. cloneElement: cloneElementWithValidation,
  48208. createFactory: createFactoryWithValidation,
  48209. isValidElement: isValidElement,
  48210. version: ReactVersion,
  48211. unstable_withSuspenseConfig: withSuspenseConfig,
  48212. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  48213. };
  48214. if (enableFlareAPI) {
  48215. React.unstable_useResponder = useResponder;
  48216. React.unstable_createResponder = createEventResponder;
  48217. }
  48218. if (enableFundamentalAPI) {
  48219. React.unstable_createFundamental = createFundamentalComponent;
  48220. }
  48221. // Note: some APIs are added with feature flags.
  48222. // Make sure that stable builds for open source
  48223. // don't modify the React object to avoid deopts.
  48224. // Also let's not expose their names in stable builds.
  48225. if (enableJSXTransformAPI) {
  48226. {
  48227. React.jsxDEV = jsxWithValidation;
  48228. React.jsx = jsxWithValidationDynamic;
  48229. React.jsxs = jsxWithValidationStatic;
  48230. }
  48231. }
  48232. var React$2 = Object.freeze({
  48233. default: React
  48234. });
  48235. var React$3 = ( React$2 && React ) || React$2;
  48236. // TODO: decide on the top-level export form.
  48237. // This is hacky but makes it work with both Rollup and Jest.
  48238. var react = React$3.default || React$3;
  48239. module.exports = react;
  48240. })();
  48241. }
  48242. /***/ }),
  48243. /***/ "../../node_modules/react/index.js":
  48244. /*!*******************************************************!*\
  48245. !*** E:/Repos/Babylon.js/node_modules/react/index.js ***!
  48246. \*******************************************************/
  48247. /*! no static exports found */
  48248. /***/ (function(module, exports, __webpack_require__) {
  48249. "use strict";
  48250. if (false) {} else {
  48251. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  48252. }
  48253. /***/ }),
  48254. /***/ "../../node_modules/reactcss/lib/autoprefix.js":
  48255. /*!*******************************************************************!*\
  48256. !*** E:/Repos/Babylon.js/node_modules/reactcss/lib/autoprefix.js ***!
  48257. \*******************************************************************/
  48258. /*! no static exports found */
  48259. /***/ (function(module, exports, __webpack_require__) {
  48260. "use strict";
  48261. Object.defineProperty(exports, "__esModule", {
  48262. value: true
  48263. });
  48264. exports.autoprefix = undefined;
  48265. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  48266. var _forOwn3 = _interopRequireDefault(_forOwn2);
  48267. 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; };
  48268. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  48269. var transforms = {
  48270. borderRadius: function borderRadius(value) {
  48271. return {
  48272. msBorderRadius: value,
  48273. MozBorderRadius: value,
  48274. OBorderRadius: value,
  48275. WebkitBorderRadius: value,
  48276. borderRadius: value
  48277. };
  48278. },
  48279. boxShadow: function boxShadow(value) {
  48280. return {
  48281. msBoxShadow: value,
  48282. MozBoxShadow: value,
  48283. OBoxShadow: value,
  48284. WebkitBoxShadow: value,
  48285. boxShadow: value
  48286. };
  48287. },
  48288. userSelect: function userSelect(value) {
  48289. return {
  48290. WebkitTouchCallout: value,
  48291. KhtmlUserSelect: value,
  48292. MozUserSelect: value,
  48293. msUserSelect: value,
  48294. WebkitUserSelect: value,
  48295. userSelect: value
  48296. };
  48297. },
  48298. flex: function flex(value) {
  48299. return {
  48300. WebkitBoxFlex: value,
  48301. MozBoxFlex: value,
  48302. WebkitFlex: value,
  48303. msFlex: value,
  48304. flex: value
  48305. };
  48306. },
  48307. flexBasis: function flexBasis(value) {
  48308. return {
  48309. WebkitFlexBasis: value,
  48310. flexBasis: value
  48311. };
  48312. },
  48313. justifyContent: function justifyContent(value) {
  48314. return {
  48315. WebkitJustifyContent: value,
  48316. justifyContent: value
  48317. };
  48318. },
  48319. transition: function transition(value) {
  48320. return {
  48321. msTransition: value,
  48322. MozTransition: value,
  48323. OTransition: value,
  48324. WebkitTransition: value,
  48325. transition: value
  48326. };
  48327. },
  48328. transform: function transform(value) {
  48329. return {
  48330. msTransform: value,
  48331. MozTransform: value,
  48332. OTransform: value,
  48333. WebkitTransform: value,
  48334. transform: value
  48335. };
  48336. },
  48337. absolute: function absolute(value) {
  48338. var direction = value && value.split(' ');
  48339. return {
  48340. position: 'absolute',
  48341. top: direction && direction[0],
  48342. right: direction && direction[1],
  48343. bottom: direction && direction[2],
  48344. left: direction && direction[3]
  48345. };
  48346. },
  48347. extend: function extend(name, otherElementStyles) {
  48348. var otherStyle = otherElementStyles[name];
  48349. if (otherStyle) {
  48350. return otherStyle;
  48351. }
  48352. return {
  48353. 'extend': name
  48354. };
  48355. }
  48356. };
  48357. var autoprefix = exports.autoprefix = function autoprefix(elements) {
  48358. var prefixed = {};
  48359. (0, _forOwn3.default)(elements, function (styles, element) {
  48360. var expanded = {};
  48361. (0, _forOwn3.default)(styles, function (value, key) {
  48362. var transform = transforms[key];
  48363. if (transform) {
  48364. expanded = _extends({}, expanded, transform(value));
  48365. } else {
  48366. expanded[key] = value;
  48367. }
  48368. });
  48369. prefixed[element] = expanded;
  48370. });
  48371. return prefixed;
  48372. };
  48373. exports.default = autoprefix;
  48374. /***/ }),
  48375. /***/ "../../node_modules/reactcss/lib/components/active.js":
  48376. /*!**************************************************************************!*\
  48377. !*** E:/Repos/Babylon.js/node_modules/reactcss/lib/components/active.js ***!
  48378. \**************************************************************************/
  48379. /*! no static exports found */
  48380. /***/ (function(module, exports, __webpack_require__) {
  48381. "use strict";
  48382. Object.defineProperty(exports, "__esModule", {
  48383. value: true
  48384. });
  48385. exports.active = undefined;
  48386. 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; };
  48387. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48388. var _react2 = _interopRequireDefault(_react);
  48389. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  48390. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  48391. 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; }
  48392. 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; }
  48393. var active = exports.active = function active(Component) {
  48394. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  48395. return function (_React$Component) {
  48396. _inherits(Active, _React$Component);
  48397. function Active() {
  48398. var _ref;
  48399. var _temp, _this, _ret;
  48400. _classCallCheck(this, Active);
  48401. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  48402. args[_key] = arguments[_key];
  48403. }
  48404. 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 () {
  48405. return _this.setState({ active: true });
  48406. }, _this.handleMouseUp = function () {
  48407. return _this.setState({ active: false });
  48408. }, _this.render = function () {
  48409. return _react2.default.createElement(
  48410. Span,
  48411. { onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp },
  48412. _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
  48413. );
  48414. }, _temp), _possibleConstructorReturn(_this, _ret);
  48415. }
  48416. return Active;
  48417. }(_react2.default.Component);
  48418. };
  48419. exports.default = active;
  48420. /***/ }),
  48421. /***/ "../../node_modules/reactcss/lib/components/hover.js":
  48422. /*!*************************************************************************!*\
  48423. !*** E:/Repos/Babylon.js/node_modules/reactcss/lib/components/hover.js ***!
  48424. \*************************************************************************/
  48425. /*! no static exports found */
  48426. /***/ (function(module, exports, __webpack_require__) {
  48427. "use strict";
  48428. Object.defineProperty(exports, "__esModule", {
  48429. value: true
  48430. });
  48431. exports.hover = undefined;
  48432. 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; };
  48433. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48434. var _react2 = _interopRequireDefault(_react);
  48435. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  48436. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  48437. 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; }
  48438. 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; }
  48439. var hover = exports.hover = function hover(Component) {
  48440. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  48441. return function (_React$Component) {
  48442. _inherits(Hover, _React$Component);
  48443. function Hover() {
  48444. var _ref;
  48445. var _temp, _this, _ret;
  48446. _classCallCheck(this, Hover);
  48447. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  48448. args[_key] = arguments[_key];
  48449. }
  48450. 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 () {
  48451. return _this.setState({ hover: true });
  48452. }, _this.handleMouseOut = function () {
  48453. return _this.setState({ hover: false });
  48454. }, _this.render = function () {
  48455. return _react2.default.createElement(
  48456. Span,
  48457. { onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut },
  48458. _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
  48459. );
  48460. }, _temp), _possibleConstructorReturn(_this, _ret);
  48461. }
  48462. return Hover;
  48463. }(_react2.default.Component);
  48464. };
  48465. exports.default = hover;
  48466. /***/ }),
  48467. /***/ "../../node_modules/reactcss/lib/flattenNames.js":
  48468. /*!*********************************************************************!*\
  48469. !*** E:/Repos/Babylon.js/node_modules/reactcss/lib/flattenNames.js ***!
  48470. \*********************************************************************/
  48471. /*! no static exports found */
  48472. /***/ (function(module, exports, __webpack_require__) {
  48473. "use strict";
  48474. Object.defineProperty(exports, "__esModule", {
  48475. value: true
  48476. });
  48477. exports.flattenNames = undefined;
  48478. var _isString2 = __webpack_require__(/*! lodash/isString */ "../../node_modules/lodash/isString.js");
  48479. var _isString3 = _interopRequireDefault(_isString2);
  48480. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  48481. var _forOwn3 = _interopRequireDefault(_forOwn2);
  48482. var _isPlainObject2 = __webpack_require__(/*! lodash/isPlainObject */ "../../node_modules/lodash/isPlainObject.js");
  48483. var _isPlainObject3 = _interopRequireDefault(_isPlainObject2);
  48484. var _map2 = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  48485. var _map3 = _interopRequireDefault(_map2);
  48486. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  48487. var flattenNames = exports.flattenNames = function flattenNames() {
  48488. var things = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  48489. var names = [];
  48490. (0, _map3.default)(things, function (thing) {
  48491. if (Array.isArray(thing)) {
  48492. flattenNames(thing).map(function (name) {
  48493. return names.push(name);
  48494. });
  48495. } else if ((0, _isPlainObject3.default)(thing)) {
  48496. (0, _forOwn3.default)(thing, function (value, key) {
  48497. value === true && names.push(key);
  48498. names.push(key + '-' + value);
  48499. });
  48500. } else if ((0, _isString3.default)(thing)) {
  48501. names.push(thing);
  48502. }
  48503. });
  48504. return names;
  48505. };
  48506. exports.default = flattenNames;
  48507. /***/ }),
  48508. /***/ "../../node_modules/reactcss/lib/index.js":
  48509. /*!**************************************************************!*\
  48510. !*** E:/Repos/Babylon.js/node_modules/reactcss/lib/index.js ***!
  48511. \**************************************************************/
  48512. /*! no static exports found */
  48513. /***/ (function(module, exports, __webpack_require__) {
  48514. "use strict";
  48515. Object.defineProperty(exports, "__esModule", {
  48516. value: true
  48517. });
  48518. exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
  48519. var _flattenNames = __webpack_require__(/*! ./flattenNames */ "../../node_modules/reactcss/lib/flattenNames.js");
  48520. var _flattenNames2 = _interopRequireDefault(_flattenNames);
  48521. var _mergeClasses = __webpack_require__(/*! ./mergeClasses */ "../../node_modules/reactcss/lib/mergeClasses.js");
  48522. var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
  48523. var _autoprefix = __webpack_require__(/*! ./autoprefix */ "../../node_modules/reactcss/lib/autoprefix.js");
  48524. var _autoprefix2 = _interopRequireDefault(_autoprefix);
  48525. var _hover2 = __webpack_require__(/*! ./components/hover */ "../../node_modules/reactcss/lib/components/hover.js");
  48526. var _hover3 = _interopRequireDefault(_hover2);
  48527. var _active = __webpack_require__(/*! ./components/active */ "../../node_modules/reactcss/lib/components/active.js");
  48528. var _active2 = _interopRequireDefault(_active);
  48529. var _loop2 = __webpack_require__(/*! ./loop */ "../../node_modules/reactcss/lib/loop.js");
  48530. var _loop3 = _interopRequireDefault(_loop2);
  48531. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  48532. exports.hover = _hover3.default;
  48533. exports.handleHover = _hover3.default;
  48534. exports.handleActive = _active2.default;
  48535. exports.loop = _loop3.default;
  48536. var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
  48537. for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  48538. activations[_key - 1] = arguments[_key];
  48539. }
  48540. var activeNames = (0, _flattenNames2.default)(activations);
  48541. var merged = (0, _mergeClasses2.default)(classes, activeNames);
  48542. return (0, _autoprefix2.default)(merged);
  48543. };
  48544. exports.default = ReactCSS;
  48545. /***/ }),
  48546. /***/ "../../node_modules/reactcss/lib/loop.js":
  48547. /*!*************************************************************!*\
  48548. !*** E:/Repos/Babylon.js/node_modules/reactcss/lib/loop.js ***!
  48549. \*************************************************************/
  48550. /*! no static exports found */
  48551. /***/ (function(module, exports, __webpack_require__) {
  48552. "use strict";
  48553. Object.defineProperty(exports, "__esModule", {
  48554. value: true
  48555. });
  48556. var loopable = function loopable(i, length) {
  48557. var props = {};
  48558. var setProp = function setProp(name) {
  48559. var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  48560. props[name] = value;
  48561. };
  48562. i === 0 && setProp('first-child');
  48563. i === length - 1 && setProp('last-child');
  48564. (i === 0 || i % 2 === 0) && setProp('even');
  48565. Math.abs(i % 2) === 1 && setProp('odd');
  48566. setProp('nth-child', i);
  48567. return props;
  48568. };
  48569. exports.default = loopable;
  48570. /***/ }),
  48571. /***/ "../../node_modules/reactcss/lib/mergeClasses.js":
  48572. /*!*********************************************************************!*\
  48573. !*** E:/Repos/Babylon.js/node_modules/reactcss/lib/mergeClasses.js ***!
  48574. \*********************************************************************/
  48575. /*! no static exports found */
  48576. /***/ (function(module, exports, __webpack_require__) {
  48577. "use strict";
  48578. Object.defineProperty(exports, "__esModule", {
  48579. value: true
  48580. });
  48581. exports.mergeClasses = undefined;
  48582. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  48583. var _forOwn3 = _interopRequireDefault(_forOwn2);
  48584. var _cloneDeep2 = __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js");
  48585. var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);
  48586. 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; };
  48587. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  48588. var mergeClasses = exports.mergeClasses = function mergeClasses(classes) {
  48589. var activeNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  48590. var styles = classes.default && (0, _cloneDeep3.default)(classes.default) || {};
  48591. activeNames.map(function (name) {
  48592. var toMerge = classes[name];
  48593. if (toMerge) {
  48594. (0, _forOwn3.default)(toMerge, function (value, key) {
  48595. if (!styles[key]) {
  48596. styles[key] = {};
  48597. }
  48598. styles[key] = _extends({}, styles[key], toMerge[key]);
  48599. });
  48600. }
  48601. return name;
  48602. });
  48603. return styles;
  48604. };
  48605. exports.default = mergeClasses;
  48606. /***/ }),
  48607. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  48608. /*!***************************************************************************************!*\
  48609. !*** E:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  48610. \***************************************************************************************/
  48611. /*! no static exports found */
  48612. /***/ (function(module, exports, __webpack_require__) {
  48613. "use strict";
  48614. /** @license React v0.15.0
  48615. * scheduler-tracing.development.js
  48616. *
  48617. * Copyright (c) Facebook, Inc. and its affiliates.
  48618. *
  48619. * This source code is licensed under the MIT license found in the
  48620. * LICENSE file in the root directory of this source tree.
  48621. */
  48622. if (true) {
  48623. (function() {
  48624. 'use strict';
  48625. Object.defineProperty(exports, '__esModule', { value: true });
  48626. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  48627. // In some cases, StrictMode should also double-render lifecycles.
  48628. // This can be confusing for tests though,
  48629. // And it can be bad for performance in production.
  48630. // This feature flag can be used to control the behavior:
  48631. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  48632. // replay the begin phase of a failed component inside invokeGuardedCallback.
  48633. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  48634. // Gather advanced timing metrics for Profiler subtrees.
  48635. // Trace which interactions trigger each commit.
  48636. var enableSchedulerTracing = true;
  48637. // Only used in www builds.
  48638. // TODO: true? Here it might just be false.
  48639. // Only used in www builds.
  48640. // Only used in www builds.
  48641. // Disable javascript: URL strings in href for XSS protection.
  48642. // React Fire: prevent the value and checked attributes from syncing
  48643. // with their related DOM properties
  48644. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  48645. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  48646. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  48647. // This is a flag so we can fix warnings in RN core before turning it on
  48648. // Experimental React Flare event system and event components support.
  48649. // Experimental Host Component support.
  48650. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  48651. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  48652. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  48653. // Temporary flag to revert the fix in #15650
  48654. // For tests, we flush suspense fallbacks in an act scope;
  48655. // *except* in some of our own tests, where we test incremental loading states.
  48656. // Changes priority of some events like mousemove to user-blocking priority,
  48657. // but without making them discrete. The flag exists in case it causes
  48658. // starvation problems.
  48659. // Add a callback property to suspense to notify which promises are currently
  48660. // in the update queue. This allows reporting and tracing of what is causing
  48661. // the user to see a loading state.
  48662. // Part of the simplification of React.createElement so we can eventually move
  48663. // from React.createElement to React.jsx
  48664. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  48665. var DEFAULT_THREAD_ID = 0;
  48666. // Counters used to generate unique IDs.
  48667. var interactionIDCounter = 0;
  48668. var threadIDCounter = 0;
  48669. // Set of currently traced interactions.
  48670. // Interactions "stack"–
  48671. // Meaning that newly traced interactions are appended to the previously active set.
  48672. // When an interaction goes out of scope, the previous set (if any) is restored.
  48673. exports.__interactionsRef = null;
  48674. // Listener(s) to notify when interactions begin and end.
  48675. exports.__subscriberRef = null;
  48676. if (enableSchedulerTracing) {
  48677. exports.__interactionsRef = {
  48678. current: new Set()
  48679. };
  48680. exports.__subscriberRef = {
  48681. current: null
  48682. };
  48683. }
  48684. function unstable_clear(callback) {
  48685. if (!enableSchedulerTracing) {
  48686. return callback();
  48687. }
  48688. var prevInteractions = exports.__interactionsRef.current;
  48689. exports.__interactionsRef.current = new Set();
  48690. try {
  48691. return callback();
  48692. } finally {
  48693. exports.__interactionsRef.current = prevInteractions;
  48694. }
  48695. }
  48696. function unstable_getCurrent() {
  48697. if (!enableSchedulerTracing) {
  48698. return null;
  48699. } else {
  48700. return exports.__interactionsRef.current;
  48701. }
  48702. }
  48703. function unstable_getThreadID() {
  48704. return ++threadIDCounter;
  48705. }
  48706. function unstable_trace(name, timestamp, callback) {
  48707. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  48708. if (!enableSchedulerTracing) {
  48709. return callback();
  48710. }
  48711. var interaction = {
  48712. __count: 1,
  48713. id: interactionIDCounter++,
  48714. name: name,
  48715. timestamp: timestamp
  48716. };
  48717. var prevInteractions = exports.__interactionsRef.current;
  48718. // Traced interactions should stack/accumulate.
  48719. // To do that, clone the current interactions.
  48720. // The previous set will be restored upon completion.
  48721. var interactions = new Set(prevInteractions);
  48722. interactions.add(interaction);
  48723. exports.__interactionsRef.current = interactions;
  48724. var subscriber = exports.__subscriberRef.current;
  48725. var returnValue = void 0;
  48726. try {
  48727. if (subscriber !== null) {
  48728. subscriber.onInteractionTraced(interaction);
  48729. }
  48730. } finally {
  48731. try {
  48732. if (subscriber !== null) {
  48733. subscriber.onWorkStarted(interactions, threadID);
  48734. }
  48735. } finally {
  48736. try {
  48737. returnValue = callback();
  48738. } finally {
  48739. exports.__interactionsRef.current = prevInteractions;
  48740. try {
  48741. if (subscriber !== null) {
  48742. subscriber.onWorkStopped(interactions, threadID);
  48743. }
  48744. } finally {
  48745. interaction.__count--;
  48746. // If no async work was scheduled for this interaction,
  48747. // Notify subscribers that it's completed.
  48748. if (subscriber !== null && interaction.__count === 0) {
  48749. subscriber.onInteractionScheduledWorkCompleted(interaction);
  48750. }
  48751. }
  48752. }
  48753. }
  48754. }
  48755. return returnValue;
  48756. }
  48757. function unstable_wrap(callback) {
  48758. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  48759. if (!enableSchedulerTracing) {
  48760. return callback;
  48761. }
  48762. var wrappedInteractions = exports.__interactionsRef.current;
  48763. var subscriber = exports.__subscriberRef.current;
  48764. if (subscriber !== null) {
  48765. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  48766. }
  48767. // Update the pending async work count for the current interactions.
  48768. // Update after calling subscribers in case of error.
  48769. wrappedInteractions.forEach(function (interaction) {
  48770. interaction.__count++;
  48771. });
  48772. var hasRun = false;
  48773. function wrapped() {
  48774. var prevInteractions = exports.__interactionsRef.current;
  48775. exports.__interactionsRef.current = wrappedInteractions;
  48776. subscriber = exports.__subscriberRef.current;
  48777. try {
  48778. var returnValue = void 0;
  48779. try {
  48780. if (subscriber !== null) {
  48781. subscriber.onWorkStarted(wrappedInteractions, threadID);
  48782. }
  48783. } finally {
  48784. try {
  48785. returnValue = callback.apply(undefined, arguments);
  48786. } finally {
  48787. exports.__interactionsRef.current = prevInteractions;
  48788. if (subscriber !== null) {
  48789. subscriber.onWorkStopped(wrappedInteractions, threadID);
  48790. }
  48791. }
  48792. }
  48793. return returnValue;
  48794. } finally {
  48795. if (!hasRun) {
  48796. // We only expect a wrapped function to be executed once,
  48797. // But in the event that it's executed more than once–
  48798. // Only decrement the outstanding interaction counts once.
  48799. hasRun = true;
  48800. // Update pending async counts for all wrapped interactions.
  48801. // If this was the last scheduled async work for any of them,
  48802. // Mark them as completed.
  48803. wrappedInteractions.forEach(function (interaction) {
  48804. interaction.__count--;
  48805. if (subscriber !== null && interaction.__count === 0) {
  48806. subscriber.onInteractionScheduledWorkCompleted(interaction);
  48807. }
  48808. });
  48809. }
  48810. }
  48811. }
  48812. wrapped.cancel = function cancel() {
  48813. subscriber = exports.__subscriberRef.current;
  48814. try {
  48815. if (subscriber !== null) {
  48816. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  48817. }
  48818. } finally {
  48819. // Update pending async counts for all wrapped interactions.
  48820. // If this was the last scheduled async work for any of them,
  48821. // Mark them as completed.
  48822. wrappedInteractions.forEach(function (interaction) {
  48823. interaction.__count--;
  48824. if (subscriber && interaction.__count === 0) {
  48825. subscriber.onInteractionScheduledWorkCompleted(interaction);
  48826. }
  48827. });
  48828. }
  48829. };
  48830. return wrapped;
  48831. }
  48832. var subscribers = null;
  48833. if (enableSchedulerTracing) {
  48834. subscribers = new Set();
  48835. }
  48836. function unstable_subscribe(subscriber) {
  48837. if (enableSchedulerTracing) {
  48838. subscribers.add(subscriber);
  48839. if (subscribers.size === 1) {
  48840. exports.__subscriberRef.current = {
  48841. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  48842. onInteractionTraced: onInteractionTraced,
  48843. onWorkCanceled: onWorkCanceled,
  48844. onWorkScheduled: onWorkScheduled,
  48845. onWorkStarted: onWorkStarted,
  48846. onWorkStopped: onWorkStopped
  48847. };
  48848. }
  48849. }
  48850. }
  48851. function unstable_unsubscribe(subscriber) {
  48852. if (enableSchedulerTracing) {
  48853. subscribers.delete(subscriber);
  48854. if (subscribers.size === 0) {
  48855. exports.__subscriberRef.current = null;
  48856. }
  48857. }
  48858. }
  48859. function onInteractionTraced(interaction) {
  48860. var didCatchError = false;
  48861. var caughtError = null;
  48862. subscribers.forEach(function (subscriber) {
  48863. try {
  48864. subscriber.onInteractionTraced(interaction);
  48865. } catch (error) {
  48866. if (!didCatchError) {
  48867. didCatchError = true;
  48868. caughtError = error;
  48869. }
  48870. }
  48871. });
  48872. if (didCatchError) {
  48873. throw caughtError;
  48874. }
  48875. }
  48876. function onInteractionScheduledWorkCompleted(interaction) {
  48877. var didCatchError = false;
  48878. var caughtError = null;
  48879. subscribers.forEach(function (subscriber) {
  48880. try {
  48881. subscriber.onInteractionScheduledWorkCompleted(interaction);
  48882. } catch (error) {
  48883. if (!didCatchError) {
  48884. didCatchError = true;
  48885. caughtError = error;
  48886. }
  48887. }
  48888. });
  48889. if (didCatchError) {
  48890. throw caughtError;
  48891. }
  48892. }
  48893. function onWorkScheduled(interactions, threadID) {
  48894. var didCatchError = false;
  48895. var caughtError = null;
  48896. subscribers.forEach(function (subscriber) {
  48897. try {
  48898. subscriber.onWorkScheduled(interactions, threadID);
  48899. } catch (error) {
  48900. if (!didCatchError) {
  48901. didCatchError = true;
  48902. caughtError = error;
  48903. }
  48904. }
  48905. });
  48906. if (didCatchError) {
  48907. throw caughtError;
  48908. }
  48909. }
  48910. function onWorkStarted(interactions, threadID) {
  48911. var didCatchError = false;
  48912. var caughtError = null;
  48913. subscribers.forEach(function (subscriber) {
  48914. try {
  48915. subscriber.onWorkStarted(interactions, threadID);
  48916. } catch (error) {
  48917. if (!didCatchError) {
  48918. didCatchError = true;
  48919. caughtError = error;
  48920. }
  48921. }
  48922. });
  48923. if (didCatchError) {
  48924. throw caughtError;
  48925. }
  48926. }
  48927. function onWorkStopped(interactions, threadID) {
  48928. var didCatchError = false;
  48929. var caughtError = null;
  48930. subscribers.forEach(function (subscriber) {
  48931. try {
  48932. subscriber.onWorkStopped(interactions, threadID);
  48933. } catch (error) {
  48934. if (!didCatchError) {
  48935. didCatchError = true;
  48936. caughtError = error;
  48937. }
  48938. }
  48939. });
  48940. if (didCatchError) {
  48941. throw caughtError;
  48942. }
  48943. }
  48944. function onWorkCanceled(interactions, threadID) {
  48945. var didCatchError = false;
  48946. var caughtError = null;
  48947. subscribers.forEach(function (subscriber) {
  48948. try {
  48949. subscriber.onWorkCanceled(interactions, threadID);
  48950. } catch (error) {
  48951. if (!didCatchError) {
  48952. didCatchError = true;
  48953. caughtError = error;
  48954. }
  48955. }
  48956. });
  48957. if (didCatchError) {
  48958. throw caughtError;
  48959. }
  48960. }
  48961. exports.unstable_clear = unstable_clear;
  48962. exports.unstable_getCurrent = unstable_getCurrent;
  48963. exports.unstable_getThreadID = unstable_getThreadID;
  48964. exports.unstable_trace = unstable_trace;
  48965. exports.unstable_wrap = unstable_wrap;
  48966. exports.unstable_subscribe = unstable_subscribe;
  48967. exports.unstable_unsubscribe = unstable_unsubscribe;
  48968. })();
  48969. }
  48970. /***/ }),
  48971. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  48972. /*!*******************************************************************************!*\
  48973. !*** E:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  48974. \*******************************************************************************/
  48975. /*! no static exports found */
  48976. /***/ (function(module, exports, __webpack_require__) {
  48977. "use strict";
  48978. /** @license React v0.15.0
  48979. * scheduler.development.js
  48980. *
  48981. * Copyright (c) Facebook, Inc. and its affiliates.
  48982. *
  48983. * This source code is licensed under the MIT license found in the
  48984. * LICENSE file in the root directory of this source tree.
  48985. */
  48986. if (true) {
  48987. (function() {
  48988. 'use strict';
  48989. Object.defineProperty(exports, '__esModule', { value: true });
  48990. var enableSchedulerDebugging = false;
  48991. var enableIsInputPending = false;
  48992. var requestIdleCallbackBeforeFirstFrame = false;
  48993. var requestTimerEventBeforeFirstFrame = false;
  48994. var enableMessageLoopImplementation = false;
  48995. // The DOM Scheduler implementation is similar to requestIdleCallback. It
  48996. // works by scheduling a requestAnimationFrame, storing the time for the start
  48997. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  48998. // Within the postMessage handler do as much work as possible until time + frame
  48999. // rate. By separating the idle call into a separate event tick we ensure that
  49000. // layout, paint and other browser work is counted against the available time.
  49001. // The frame rate is dynamically adjusted.
  49002. var requestHostCallback = void 0;
  49003. var requestHostTimeout = void 0;
  49004. var cancelHostTimeout = void 0;
  49005. var shouldYieldToHost = void 0;
  49006. var requestPaint = void 0;
  49007. exports.unstable_now = void 0;
  49008. exports.unstable_forceFrameRate = void 0;
  49009. if (
  49010. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  49011. // implementation using setTimeout.
  49012. typeof window === 'undefined' ||
  49013. // Check if MessageChannel is supported, too.
  49014. typeof MessageChannel !== 'function') {
  49015. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  49016. // fallback to a naive implementation.
  49017. var _callback = null;
  49018. var _timeoutID = null;
  49019. var _flushCallback = function () {
  49020. if (_callback !== null) {
  49021. try {
  49022. var currentTime = exports.unstable_now();
  49023. var hasRemainingTime = true;
  49024. _callback(hasRemainingTime, currentTime);
  49025. _callback = null;
  49026. } catch (e) {
  49027. setTimeout(_flushCallback, 0);
  49028. throw e;
  49029. }
  49030. }
  49031. };
  49032. exports.unstable_now = function () {
  49033. return Date.now();
  49034. };
  49035. requestHostCallback = function (cb) {
  49036. if (_callback !== null) {
  49037. // Protect against re-entrancy.
  49038. setTimeout(requestHostCallback, 0, cb);
  49039. } else {
  49040. _callback = cb;
  49041. setTimeout(_flushCallback, 0);
  49042. }
  49043. };
  49044. requestHostTimeout = function (cb, ms) {
  49045. _timeoutID = setTimeout(cb, ms);
  49046. };
  49047. cancelHostTimeout = function () {
  49048. clearTimeout(_timeoutID);
  49049. };
  49050. shouldYieldToHost = function () {
  49051. return false;
  49052. };
  49053. requestPaint = exports.unstable_forceFrameRate = function () {};
  49054. } else {
  49055. // Capture local references to native APIs, in case a polyfill overrides them.
  49056. var performance = window.performance;
  49057. var _Date = window.Date;
  49058. var _setTimeout = window.setTimeout;
  49059. var _clearTimeout = window.clearTimeout;
  49060. var requestAnimationFrame = window.requestAnimationFrame;
  49061. var cancelAnimationFrame = window.cancelAnimationFrame;
  49062. var requestIdleCallback = window.requestIdleCallback;
  49063. if (typeof console !== 'undefined') {
  49064. // TODO: Remove fb.me link
  49065. if (typeof requestAnimationFrame !== 'function') {
  49066. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  49067. }
  49068. if (typeof cancelAnimationFrame !== 'function') {
  49069. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  49070. }
  49071. }
  49072. var requestIdleCallbackBeforeFirstFrame$1 = requestIdleCallbackBeforeFirstFrame && typeof requestIdleCallback === 'function' && typeof cancelIdleCallback === 'function';
  49073. exports.unstable_now = typeof performance === 'object' && typeof performance.now === 'function' ? function () {
  49074. return performance.now();
  49075. } : function () {
  49076. return _Date.now();
  49077. };
  49078. var isRAFLoopRunning = false;
  49079. var isMessageLoopRunning = false;
  49080. var scheduledHostCallback = null;
  49081. var rAFTimeoutID = -1;
  49082. var taskTimeoutID = -1;
  49083. var frameLength = enableMessageLoopImplementation ? // We won't attempt to align with the vsync. Instead we'll yield multiple
  49084. // times per frame, often enough to keep it responsive even at really
  49085. // high frame rates > 120.
  49086. 5 : // Use a heuristic to measure the frame rate and yield at the end of the
  49087. // frame. We start out assuming that we run at 30fps but then the
  49088. // heuristic tracking will adjust this value to a faster fps if we get
  49089. // more frequent animation frames.
  49090. 33.33;
  49091. var prevRAFTime = -1;
  49092. var prevRAFInterval = -1;
  49093. var frameDeadline = 0;
  49094. var fpsLocked = false;
  49095. // TODO: Make this configurable
  49096. // TODO: Adjust this based on priority?
  49097. var maxFrameLength = 300;
  49098. var needsPaint = false;
  49099. if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
  49100. var scheduling = navigator.scheduling;
  49101. shouldYieldToHost = function () {
  49102. var currentTime = exports.unstable_now();
  49103. if (currentTime >= frameDeadline) {
  49104. // There's no time left in the frame. We may want to yield control of
  49105. // the main thread, so the browser can perform high priority tasks. The
  49106. // main ones are painting and user input. If there's a pending paint or
  49107. // a pending input, then we should yield. But if there's neither, then
  49108. // we can yield less often while remaining responsive. We'll eventually
  49109. // yield regardless, since there could be a pending paint that wasn't
  49110. // accompanied by a call to `requestPaint`, or other main thread tasks
  49111. // like network events.
  49112. if (needsPaint || scheduling.isInputPending()) {
  49113. // There is either a pending paint or a pending input.
  49114. return true;
  49115. }
  49116. // There's no pending input. Only yield if we've reached the max
  49117. // frame length.
  49118. return currentTime >= frameDeadline + maxFrameLength;
  49119. } else {
  49120. // There's still time left in the frame.
  49121. return false;
  49122. }
  49123. };
  49124. requestPaint = function () {
  49125. needsPaint = true;
  49126. };
  49127. } else {
  49128. // `isInputPending` is not available. Since we have no way of knowing if
  49129. // there's pending input, always yield at the end of the frame.
  49130. shouldYieldToHost = function () {
  49131. return exports.unstable_now() >= frameDeadline;
  49132. };
  49133. // Since we yield every frame regardless, `requestPaint` has no effect.
  49134. requestPaint = function () {};
  49135. }
  49136. exports.unstable_forceFrameRate = function (fps) {
  49137. if (fps < 0 || fps > 125) {
  49138. console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  49139. return;
  49140. }
  49141. if (fps > 0) {
  49142. frameLength = Math.floor(1000 / fps);
  49143. fpsLocked = true;
  49144. } else {
  49145. // reset the framerate
  49146. frameLength = 33.33;
  49147. fpsLocked = false;
  49148. }
  49149. };
  49150. var performWorkUntilDeadline = function () {
  49151. if (enableMessageLoopImplementation) {
  49152. if (scheduledHostCallback !== null) {
  49153. var currentTime = exports.unstable_now();
  49154. // Yield after `frameLength` ms, regardless of where we are in the vsync
  49155. // cycle. This means there's always time remaining at the beginning of
  49156. // the message event.
  49157. frameDeadline = currentTime + frameLength;
  49158. var hasTimeRemaining = true;
  49159. try {
  49160. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  49161. if (!hasMoreWork) {
  49162. isMessageLoopRunning = false;
  49163. scheduledHostCallback = null;
  49164. } else {
  49165. // If there's more work, schedule the next message event at the end
  49166. // of the preceding one.
  49167. port.postMessage(null);
  49168. }
  49169. } catch (error) {
  49170. // If a scheduler task throws, exit the current browser task so the
  49171. // error can be observed.
  49172. port.postMessage(null);
  49173. throw error;
  49174. }
  49175. }
  49176. // Yielding to the browser will give it a chance to paint, so we can
  49177. // reset this.
  49178. needsPaint = false;
  49179. } else {
  49180. if (scheduledHostCallback !== null) {
  49181. var _currentTime = exports.unstable_now();
  49182. var _hasTimeRemaining = frameDeadline - _currentTime > 0;
  49183. try {
  49184. var _hasMoreWork = scheduledHostCallback(_hasTimeRemaining, _currentTime);
  49185. if (!_hasMoreWork) {
  49186. scheduledHostCallback = null;
  49187. }
  49188. } catch (error) {
  49189. // If a scheduler task throws, exit the current browser task so the
  49190. // error can be observed, and post a new task as soon as possible
  49191. // so we can continue where we left off.
  49192. port.postMessage(null);
  49193. throw error;
  49194. }
  49195. }
  49196. // Yielding to the browser will give it a chance to paint, so we can
  49197. // reset this.
  49198. needsPaint = false;
  49199. }
  49200. };
  49201. var channel = new MessageChannel();
  49202. var port = channel.port2;
  49203. channel.port1.onmessage = performWorkUntilDeadline;
  49204. var onAnimationFrame = function (rAFTime) {
  49205. if (scheduledHostCallback === null) {
  49206. // No scheduled work. Exit.
  49207. prevRAFTime = -1;
  49208. prevRAFInterval = -1;
  49209. isRAFLoopRunning = false;
  49210. return;
  49211. }
  49212. // Eagerly schedule the next animation callback at the beginning of the
  49213. // frame. If the scheduler queue is not empty at the end of the frame, it
  49214. // will continue flushing inside that callback. If the queue *is* empty,
  49215. // then it will exit immediately. Posting the callback at the start of the
  49216. // frame ensures it's fired within the earliest possible frame. If we
  49217. // waited until the end of the frame to post the callback, we risk the
  49218. // browser skipping a frame and not firing the callback until the frame
  49219. // after that.
  49220. isRAFLoopRunning = true;
  49221. requestAnimationFrame(function (nextRAFTime) {
  49222. _clearTimeout(rAFTimeoutID);
  49223. onAnimationFrame(nextRAFTime);
  49224. });
  49225. // requestAnimationFrame is throttled when the tab is backgrounded. We
  49226. // don't want to stop working entirely. So we'll fallback to a timeout loop.
  49227. // TODO: Need a better heuristic for backgrounded work.
  49228. var onTimeout = function () {
  49229. frameDeadline = exports.unstable_now() + frameLength / 2;
  49230. performWorkUntilDeadline();
  49231. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  49232. };
  49233. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  49234. if (prevRAFTime !== -1 &&
  49235. // Make sure this rAF time is different from the previous one. This check
  49236. // could fail if two rAFs fire in the same frame.
  49237. rAFTime - prevRAFTime > 0.1) {
  49238. var rAFInterval = rAFTime - prevRAFTime;
  49239. if (!fpsLocked && prevRAFInterval !== -1) {
  49240. // We've observed two consecutive frame intervals. We'll use this to
  49241. // dynamically adjust the frame rate.
  49242. //
  49243. // If one frame goes long, then the next one can be short to catch up.
  49244. // If two frames are short in a row, then that's an indication that we
  49245. // actually have a higher frame rate than what we're currently
  49246. // optimizing. For example, if we're running on 120hz display or 90hz VR
  49247. // display. Take the max of the two in case one of them was an anomaly
  49248. // due to missed frame deadlines.
  49249. if (rAFInterval < frameLength && prevRAFInterval < frameLength) {
  49250. frameLength = rAFInterval < prevRAFInterval ? prevRAFInterval : rAFInterval;
  49251. if (frameLength < 8.33) {
  49252. // Defensive coding. We don't support higher frame rates than 120hz.
  49253. // If the calculated frame length gets lower than 8, it is probably
  49254. // a bug.
  49255. frameLength = 8.33;
  49256. }
  49257. }
  49258. }
  49259. prevRAFInterval = rAFInterval;
  49260. }
  49261. prevRAFTime = rAFTime;
  49262. frameDeadline = rAFTime + frameLength;
  49263. // We use the postMessage trick to defer idle work until after the repaint.
  49264. port.postMessage(null);
  49265. };
  49266. requestHostCallback = function (callback) {
  49267. scheduledHostCallback = callback;
  49268. if (enableMessageLoopImplementation) {
  49269. if (!isMessageLoopRunning) {
  49270. isMessageLoopRunning = true;
  49271. port.postMessage(null);
  49272. }
  49273. } else {
  49274. if (!isRAFLoopRunning) {
  49275. // Start a rAF loop.
  49276. isRAFLoopRunning = true;
  49277. requestAnimationFrame(function (rAFTime) {
  49278. if (requestIdleCallbackBeforeFirstFrame$1) {
  49279. cancelIdleCallback(idleCallbackID);
  49280. }
  49281. if (requestTimerEventBeforeFirstFrame) {
  49282. _clearTimeout(idleTimeoutID);
  49283. }
  49284. onAnimationFrame(rAFTime);
  49285. });
  49286. // If we just missed the last vsync, the next rAF might not happen for
  49287. // another frame. To claim as much idle time as possible, post a
  49288. // callback with `requestIdleCallback`, which should fire if there's
  49289. // idle time left in the frame.
  49290. //
  49291. // This should only be an issue for the first rAF in the loop;
  49292. // subsequent rAFs are scheduled at the beginning of the
  49293. // preceding frame.
  49294. var idleCallbackID = void 0;
  49295. if (requestIdleCallbackBeforeFirstFrame$1) {
  49296. idleCallbackID = requestIdleCallback(function onIdleCallbackBeforeFirstFrame() {
  49297. if (requestTimerEventBeforeFirstFrame) {
  49298. _clearTimeout(idleTimeoutID);
  49299. }
  49300. frameDeadline = exports.unstable_now() + frameLength;
  49301. performWorkUntilDeadline();
  49302. });
  49303. }
  49304. // Alternate strategy to address the same problem. Scheduler a timer
  49305. // with no delay. If this fires before the rAF, that likely indicates
  49306. // that there's idle time before the next vsync. This isn't always the
  49307. // case, but we'll be aggressive and assume it is, as a trade off to
  49308. // prevent idle periods.
  49309. var idleTimeoutID = void 0;
  49310. if (requestTimerEventBeforeFirstFrame) {
  49311. idleTimeoutID = _setTimeout(function onTimerEventBeforeFirstFrame() {
  49312. if (requestIdleCallbackBeforeFirstFrame$1) {
  49313. cancelIdleCallback(idleCallbackID);
  49314. }
  49315. frameDeadline = exports.unstable_now() + frameLength;
  49316. performWorkUntilDeadline();
  49317. }, 0);
  49318. }
  49319. }
  49320. }
  49321. };
  49322. requestHostTimeout = function (callback, ms) {
  49323. taskTimeoutID = _setTimeout(function () {
  49324. callback(exports.unstable_now());
  49325. }, ms);
  49326. };
  49327. cancelHostTimeout = function () {
  49328. _clearTimeout(taskTimeoutID);
  49329. taskTimeoutID = -1;
  49330. };
  49331. }
  49332. /* eslint-disable no-var */
  49333. // TODO: Use symbols?
  49334. var ImmediatePriority = 1;
  49335. var UserBlockingPriority = 2;
  49336. var NormalPriority = 3;
  49337. var LowPriority = 4;
  49338. var IdlePriority = 5;
  49339. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  49340. // Math.pow(2, 30) - 1
  49341. // 0b111111111111111111111111111111
  49342. var maxSigned31BitInt = 1073741823;
  49343. // Times out immediately
  49344. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  49345. // Eventually times out
  49346. var USER_BLOCKING_PRIORITY = 250;
  49347. var NORMAL_PRIORITY_TIMEOUT = 5000;
  49348. var LOW_PRIORITY_TIMEOUT = 10000;
  49349. // Never times out
  49350. var IDLE_PRIORITY = maxSigned31BitInt;
  49351. // Tasks are stored as a circular, doubly linked list.
  49352. var firstTask = null;
  49353. var firstDelayedTask = null;
  49354. // Pausing the scheduler is useful for debugging.
  49355. var isSchedulerPaused = false;
  49356. var currentTask = null;
  49357. var currentPriorityLevel = NormalPriority;
  49358. // This is set while performing work, to prevent re-entrancy.
  49359. var isPerformingWork = false;
  49360. var isHostCallbackScheduled = false;
  49361. var isHostTimeoutScheduled = false;
  49362. function scheduler_flushTaskAtPriority_Immediate(callback, didTimeout) {
  49363. return callback(didTimeout);
  49364. }
  49365. function scheduler_flushTaskAtPriority_UserBlocking(callback, didTimeout) {
  49366. return callback(didTimeout);
  49367. }
  49368. function scheduler_flushTaskAtPriority_Normal(callback, didTimeout) {
  49369. return callback(didTimeout);
  49370. }
  49371. function scheduler_flushTaskAtPriority_Low(callback, didTimeout) {
  49372. return callback(didTimeout);
  49373. }
  49374. function scheduler_flushTaskAtPriority_Idle(callback, didTimeout) {
  49375. return callback(didTimeout);
  49376. }
  49377. function flushTask(task, currentTime) {
  49378. // Remove the task from the list before calling the callback. That way the
  49379. // list is in a consistent state even if the callback throws.
  49380. var next = task.next;
  49381. if (next === task) {
  49382. // This is the only scheduled task. Clear the list.
  49383. firstTask = null;
  49384. } else {
  49385. // Remove the task from its position in the list.
  49386. if (task === firstTask) {
  49387. firstTask = next;
  49388. }
  49389. var previous = task.previous;
  49390. previous.next = next;
  49391. next.previous = previous;
  49392. }
  49393. task.next = task.previous = null;
  49394. // Now it's safe to execute the task.
  49395. var callback = task.callback;
  49396. var previousPriorityLevel = currentPriorityLevel;
  49397. var previousTask = currentTask;
  49398. currentPriorityLevel = task.priorityLevel;
  49399. currentTask = task;
  49400. var continuationCallback;
  49401. try {
  49402. var didUserCallbackTimeout = task.expirationTime <= currentTime;
  49403. // Add an extra function to the callstack. Profiling tools can use this
  49404. // to infer the priority of work that appears higher in the stack.
  49405. switch (currentPriorityLevel) {
  49406. case ImmediatePriority:
  49407. continuationCallback = scheduler_flushTaskAtPriority_Immediate(callback, didUserCallbackTimeout);
  49408. break;
  49409. case UserBlockingPriority:
  49410. continuationCallback = scheduler_flushTaskAtPriority_UserBlocking(callback, didUserCallbackTimeout);
  49411. break;
  49412. case NormalPriority:
  49413. continuationCallback = scheduler_flushTaskAtPriority_Normal(callback, didUserCallbackTimeout);
  49414. break;
  49415. case LowPriority:
  49416. continuationCallback = scheduler_flushTaskAtPriority_Low(callback, didUserCallbackTimeout);
  49417. break;
  49418. case IdlePriority:
  49419. continuationCallback = scheduler_flushTaskAtPriority_Idle(callback, didUserCallbackTimeout);
  49420. break;
  49421. }
  49422. } catch (error) {
  49423. throw error;
  49424. } finally {
  49425. currentPriorityLevel = previousPriorityLevel;
  49426. currentTask = previousTask;
  49427. }
  49428. // A callback may return a continuation. The continuation should be scheduled
  49429. // with the same priority and expiration as the just-finished callback.
  49430. if (typeof continuationCallback === 'function') {
  49431. var expirationTime = task.expirationTime;
  49432. var continuationTask = task;
  49433. continuationTask.callback = continuationCallback;
  49434. // Insert the new callback into the list, sorted by its timeout. This is
  49435. // almost the same as the code in `scheduleCallback`, except the callback
  49436. // is inserted into the list *before* callbacks of equal timeout instead
  49437. // of after.
  49438. if (firstTask === null) {
  49439. // This is the first callback in the list.
  49440. firstTask = continuationTask.next = continuationTask.previous = continuationTask;
  49441. } else {
  49442. var nextAfterContinuation = null;
  49443. var t = firstTask;
  49444. do {
  49445. if (expirationTime <= t.expirationTime) {
  49446. // This task times out at or after the continuation. We will insert
  49447. // the continuation *before* this task.
  49448. nextAfterContinuation = t;
  49449. break;
  49450. }
  49451. t = t.next;
  49452. } while (t !== firstTask);
  49453. if (nextAfterContinuation === null) {
  49454. // No equal or lower priority task was found, which means the new task
  49455. // is the lowest priority task in the list.
  49456. nextAfterContinuation = firstTask;
  49457. } else if (nextAfterContinuation === firstTask) {
  49458. // The new task is the highest priority task in the list.
  49459. firstTask = continuationTask;
  49460. }
  49461. var _previous = nextAfterContinuation.previous;
  49462. _previous.next = nextAfterContinuation.previous = continuationTask;
  49463. continuationTask.next = nextAfterContinuation;
  49464. continuationTask.previous = _previous;
  49465. }
  49466. }
  49467. }
  49468. function advanceTimers(currentTime) {
  49469. // Check for tasks that are no longer delayed and add them to the queue.
  49470. if (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime) {
  49471. do {
  49472. var task = firstDelayedTask;
  49473. var next = task.next;
  49474. if (task === next) {
  49475. firstDelayedTask = null;
  49476. } else {
  49477. firstDelayedTask = next;
  49478. var previous = task.previous;
  49479. previous.next = next;
  49480. next.previous = previous;
  49481. }
  49482. task.next = task.previous = null;
  49483. insertScheduledTask(task, task.expirationTime);
  49484. } while (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime);
  49485. }
  49486. }
  49487. function handleTimeout(currentTime) {
  49488. isHostTimeoutScheduled = false;
  49489. advanceTimers(currentTime);
  49490. if (!isHostCallbackScheduled) {
  49491. if (firstTask !== null) {
  49492. isHostCallbackScheduled = true;
  49493. requestHostCallback(flushWork);
  49494. } else if (firstDelayedTask !== null) {
  49495. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  49496. }
  49497. }
  49498. }
  49499. function flushWork(hasTimeRemaining, initialTime) {
  49500. // Exit right away if we're currently paused
  49501. if (enableSchedulerDebugging && isSchedulerPaused) {
  49502. return;
  49503. }
  49504. // We'll need a host callback the next time work is scheduled.
  49505. isHostCallbackScheduled = false;
  49506. if (isHostTimeoutScheduled) {
  49507. // We scheduled a timeout but it's no longer needed. Cancel it.
  49508. isHostTimeoutScheduled = false;
  49509. cancelHostTimeout();
  49510. }
  49511. var currentTime = initialTime;
  49512. advanceTimers(currentTime);
  49513. isPerformingWork = true;
  49514. try {
  49515. if (!hasTimeRemaining) {
  49516. // Flush all the expired callbacks without yielding.
  49517. // TODO: Split flushWork into two separate functions instead of using
  49518. // a boolean argument?
  49519. while (firstTask !== null && firstTask.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)) {
  49520. flushTask(firstTask, currentTime);
  49521. currentTime = exports.unstable_now();
  49522. advanceTimers(currentTime);
  49523. }
  49524. } else {
  49525. // Keep flushing callbacks until we run out of time in the frame.
  49526. if (firstTask !== null) {
  49527. do {
  49528. flushTask(firstTask, currentTime);
  49529. currentTime = exports.unstable_now();
  49530. advanceTimers(currentTime);
  49531. } while (firstTask !== null && !shouldYieldToHost() && !(enableSchedulerDebugging && isSchedulerPaused));
  49532. }
  49533. }
  49534. // Return whether there's additional work
  49535. if (firstTask !== null) {
  49536. return true;
  49537. } else {
  49538. if (firstDelayedTask !== null) {
  49539. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  49540. }
  49541. return false;
  49542. }
  49543. } finally {
  49544. isPerformingWork = false;
  49545. }
  49546. }
  49547. function unstable_runWithPriority(priorityLevel, eventHandler) {
  49548. switch (priorityLevel) {
  49549. case ImmediatePriority:
  49550. case UserBlockingPriority:
  49551. case NormalPriority:
  49552. case LowPriority:
  49553. case IdlePriority:
  49554. break;
  49555. default:
  49556. priorityLevel = NormalPriority;
  49557. }
  49558. var previousPriorityLevel = currentPriorityLevel;
  49559. currentPriorityLevel = priorityLevel;
  49560. try {
  49561. return eventHandler();
  49562. } finally {
  49563. currentPriorityLevel = previousPriorityLevel;
  49564. }
  49565. }
  49566. function unstable_next(eventHandler) {
  49567. var priorityLevel;
  49568. switch (currentPriorityLevel) {
  49569. case ImmediatePriority:
  49570. case UserBlockingPriority:
  49571. case NormalPriority:
  49572. // Shift down to normal priority
  49573. priorityLevel = NormalPriority;
  49574. break;
  49575. default:
  49576. // Anything lower than normal priority should remain at the current level.
  49577. priorityLevel = currentPriorityLevel;
  49578. break;
  49579. }
  49580. var previousPriorityLevel = currentPriorityLevel;
  49581. currentPriorityLevel = priorityLevel;
  49582. try {
  49583. return eventHandler();
  49584. } finally {
  49585. currentPriorityLevel = previousPriorityLevel;
  49586. }
  49587. }
  49588. function unstable_wrapCallback(callback) {
  49589. var parentPriorityLevel = currentPriorityLevel;
  49590. return function () {
  49591. // This is a fork of runWithPriority, inlined for performance.
  49592. var previousPriorityLevel = currentPriorityLevel;
  49593. currentPriorityLevel = parentPriorityLevel;
  49594. try {
  49595. return callback.apply(this, arguments);
  49596. } finally {
  49597. currentPriorityLevel = previousPriorityLevel;
  49598. }
  49599. };
  49600. }
  49601. function timeoutForPriorityLevel(priorityLevel) {
  49602. switch (priorityLevel) {
  49603. case ImmediatePriority:
  49604. return IMMEDIATE_PRIORITY_TIMEOUT;
  49605. case UserBlockingPriority:
  49606. return USER_BLOCKING_PRIORITY;
  49607. case IdlePriority:
  49608. return IDLE_PRIORITY;
  49609. case LowPriority:
  49610. return LOW_PRIORITY_TIMEOUT;
  49611. case NormalPriority:
  49612. default:
  49613. return NORMAL_PRIORITY_TIMEOUT;
  49614. }
  49615. }
  49616. function unstable_scheduleCallback(priorityLevel, callback, options) {
  49617. var currentTime = exports.unstable_now();
  49618. var startTime;
  49619. var timeout;
  49620. if (typeof options === 'object' && options !== null) {
  49621. var delay = options.delay;
  49622. if (typeof delay === 'number' && delay > 0) {
  49623. startTime = currentTime + delay;
  49624. } else {
  49625. startTime = currentTime;
  49626. }
  49627. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  49628. } else {
  49629. timeout = timeoutForPriorityLevel(priorityLevel);
  49630. startTime = currentTime;
  49631. }
  49632. var expirationTime = startTime + timeout;
  49633. var newTask = {
  49634. callback: callback,
  49635. priorityLevel: priorityLevel,
  49636. startTime: startTime,
  49637. expirationTime: expirationTime,
  49638. next: null,
  49639. previous: null
  49640. };
  49641. if (startTime > currentTime) {
  49642. // This is a delayed task.
  49643. insertDelayedTask(newTask, startTime);
  49644. if (firstTask === null && firstDelayedTask === newTask) {
  49645. // All tasks are delayed, and this is the task with the earliest delay.
  49646. if (isHostTimeoutScheduled) {
  49647. // Cancel an existing timeout.
  49648. cancelHostTimeout();
  49649. } else {
  49650. isHostTimeoutScheduled = true;
  49651. }
  49652. // Schedule a timeout.
  49653. requestHostTimeout(handleTimeout, startTime - currentTime);
  49654. }
  49655. } else {
  49656. insertScheduledTask(newTask, expirationTime);
  49657. // Schedule a host callback, if needed. If we're already performing work,
  49658. // wait until the next time we yield.
  49659. if (!isHostCallbackScheduled && !isPerformingWork) {
  49660. isHostCallbackScheduled = true;
  49661. requestHostCallback(flushWork);
  49662. }
  49663. }
  49664. return newTask;
  49665. }
  49666. function insertScheduledTask(newTask, expirationTime) {
  49667. // Insert the new task into the list, ordered first by its timeout, then by
  49668. // insertion. So the new task is inserted after any other task the
  49669. // same timeout
  49670. if (firstTask === null) {
  49671. // This is the first task in the list.
  49672. firstTask = newTask.next = newTask.previous = newTask;
  49673. } else {
  49674. var next = null;
  49675. var task = firstTask;
  49676. do {
  49677. if (expirationTime < task.expirationTime) {
  49678. // The new task times out before this one.
  49679. next = task;
  49680. break;
  49681. }
  49682. task = task.next;
  49683. } while (task !== firstTask);
  49684. if (next === null) {
  49685. // No task with a later timeout was found, which means the new task has
  49686. // the latest timeout in the list.
  49687. next = firstTask;
  49688. } else if (next === firstTask) {
  49689. // The new task has the earliest expiration in the entire list.
  49690. firstTask = newTask;
  49691. }
  49692. var previous = next.previous;
  49693. previous.next = next.previous = newTask;
  49694. newTask.next = next;
  49695. newTask.previous = previous;
  49696. }
  49697. }
  49698. function insertDelayedTask(newTask, startTime) {
  49699. // Insert the new task into the list, ordered by its start time.
  49700. if (firstDelayedTask === null) {
  49701. // This is the first task in the list.
  49702. firstDelayedTask = newTask.next = newTask.previous = newTask;
  49703. } else {
  49704. var next = null;
  49705. var task = firstDelayedTask;
  49706. do {
  49707. if (startTime < task.startTime) {
  49708. // The new task times out before this one.
  49709. next = task;
  49710. break;
  49711. }
  49712. task = task.next;
  49713. } while (task !== firstDelayedTask);
  49714. if (next === null) {
  49715. // No task with a later timeout was found, which means the new task has
  49716. // the latest timeout in the list.
  49717. next = firstDelayedTask;
  49718. } else if (next === firstDelayedTask) {
  49719. // The new task has the earliest expiration in the entire list.
  49720. firstDelayedTask = newTask;
  49721. }
  49722. var previous = next.previous;
  49723. previous.next = next.previous = newTask;
  49724. newTask.next = next;
  49725. newTask.previous = previous;
  49726. }
  49727. }
  49728. function unstable_pauseExecution() {
  49729. isSchedulerPaused = true;
  49730. }
  49731. function unstable_continueExecution() {
  49732. isSchedulerPaused = false;
  49733. if (!isHostCallbackScheduled && !isPerformingWork) {
  49734. isHostCallbackScheduled = true;
  49735. requestHostCallback(flushWork);
  49736. }
  49737. }
  49738. function unstable_getFirstCallbackNode() {
  49739. return firstTask;
  49740. }
  49741. function unstable_cancelCallback(task) {
  49742. var next = task.next;
  49743. if (next === null) {
  49744. // Already cancelled.
  49745. return;
  49746. }
  49747. if (task === next) {
  49748. if (task === firstTask) {
  49749. firstTask = null;
  49750. } else if (task === firstDelayedTask) {
  49751. firstDelayedTask = null;
  49752. }
  49753. } else {
  49754. if (task === firstTask) {
  49755. firstTask = next;
  49756. } else if (task === firstDelayedTask) {
  49757. firstDelayedTask = next;
  49758. }
  49759. var previous = task.previous;
  49760. previous.next = next;
  49761. next.previous = previous;
  49762. }
  49763. task.next = task.previous = null;
  49764. }
  49765. function unstable_getCurrentPriorityLevel() {
  49766. return currentPriorityLevel;
  49767. }
  49768. function unstable_shouldYield() {
  49769. var currentTime = exports.unstable_now();
  49770. advanceTimers(currentTime);
  49771. return currentTask !== null && firstTask !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  49772. }
  49773. var unstable_requestPaint = requestPaint;
  49774. exports.unstable_ImmediatePriority = ImmediatePriority;
  49775. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  49776. exports.unstable_NormalPriority = NormalPriority;
  49777. exports.unstable_IdlePriority = IdlePriority;
  49778. exports.unstable_LowPriority = LowPriority;
  49779. exports.unstable_runWithPriority = unstable_runWithPriority;
  49780. exports.unstable_next = unstable_next;
  49781. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  49782. exports.unstable_cancelCallback = unstable_cancelCallback;
  49783. exports.unstable_wrapCallback = unstable_wrapCallback;
  49784. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  49785. exports.unstable_shouldYield = unstable_shouldYield;
  49786. exports.unstable_requestPaint = unstable_requestPaint;
  49787. exports.unstable_continueExecution = unstable_continueExecution;
  49788. exports.unstable_pauseExecution = unstable_pauseExecution;
  49789. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  49790. })();
  49791. }
  49792. /***/ }),
  49793. /***/ "../../node_modules/scheduler/index.js":
  49794. /*!***********************************************************!*\
  49795. !*** E:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  49796. \***********************************************************/
  49797. /*! no static exports found */
  49798. /***/ (function(module, exports, __webpack_require__) {
  49799. "use strict";
  49800. if (false) {} else {
  49801. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  49802. }
  49803. /***/ }),
  49804. /***/ "../../node_modules/scheduler/tracing.js":
  49805. /*!*************************************************************!*\
  49806. !*** E:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  49807. \*************************************************************/
  49808. /*! no static exports found */
  49809. /***/ (function(module, exports, __webpack_require__) {
  49810. "use strict";
  49811. if (false) {} else {
  49812. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  49813. }
  49814. /***/ }),
  49815. /***/ "../../node_modules/setimmediate/setImmediate.js":
  49816. /*!*********************************************************************!*\
  49817. !*** E:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  49818. \*********************************************************************/
  49819. /*! no static exports found */
  49820. /***/ (function(module, exports, __webpack_require__) {
  49821. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  49822. "use strict";
  49823. if (global.setImmediate) {
  49824. return;
  49825. }
  49826. var nextHandle = 1; // Spec says greater than zero
  49827. var tasksByHandle = {};
  49828. var currentlyRunningATask = false;
  49829. var doc = global.document;
  49830. var registerImmediate;
  49831. function setImmediate(callback) {
  49832. // Callback can either be a function or a string
  49833. if (typeof callback !== "function") {
  49834. callback = new Function("" + callback);
  49835. }
  49836. // Copy function arguments
  49837. var args = new Array(arguments.length - 1);
  49838. for (var i = 0; i < args.length; i++) {
  49839. args[i] = arguments[i + 1];
  49840. }
  49841. // Store and register the task
  49842. var task = { callback: callback, args: args };
  49843. tasksByHandle[nextHandle] = task;
  49844. registerImmediate(nextHandle);
  49845. return nextHandle++;
  49846. }
  49847. function clearImmediate(handle) {
  49848. delete tasksByHandle[handle];
  49849. }
  49850. function run(task) {
  49851. var callback = task.callback;
  49852. var args = task.args;
  49853. switch (args.length) {
  49854. case 0:
  49855. callback();
  49856. break;
  49857. case 1:
  49858. callback(args[0]);
  49859. break;
  49860. case 2:
  49861. callback(args[0], args[1]);
  49862. break;
  49863. case 3:
  49864. callback(args[0], args[1], args[2]);
  49865. break;
  49866. default:
  49867. callback.apply(undefined, args);
  49868. break;
  49869. }
  49870. }
  49871. function runIfPresent(handle) {
  49872. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  49873. // So if we're currently running a task, we'll need to delay this invocation.
  49874. if (currentlyRunningATask) {
  49875. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  49876. // "too much recursion" error.
  49877. setTimeout(runIfPresent, 0, handle);
  49878. } else {
  49879. var task = tasksByHandle[handle];
  49880. if (task) {
  49881. currentlyRunningATask = true;
  49882. try {
  49883. run(task);
  49884. } finally {
  49885. clearImmediate(handle);
  49886. currentlyRunningATask = false;
  49887. }
  49888. }
  49889. }
  49890. }
  49891. function installNextTickImplementation() {
  49892. registerImmediate = function(handle) {
  49893. process.nextTick(function () { runIfPresent(handle); });
  49894. };
  49895. }
  49896. function canUsePostMessage() {
  49897. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  49898. // where `global.postMessage` means something completely different and can't be used for this purpose.
  49899. if (global.postMessage && !global.importScripts) {
  49900. var postMessageIsAsynchronous = true;
  49901. var oldOnMessage = global.onmessage;
  49902. global.onmessage = function() {
  49903. postMessageIsAsynchronous = false;
  49904. };
  49905. global.postMessage("", "*");
  49906. global.onmessage = oldOnMessage;
  49907. return postMessageIsAsynchronous;
  49908. }
  49909. }
  49910. function installPostMessageImplementation() {
  49911. // Installs an event handler on `global` for the `message` event: see
  49912. // * https://developer.mozilla.org/en/DOM/window.postMessage
  49913. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  49914. var messagePrefix = "setImmediate$" + Math.random() + "$";
  49915. var onGlobalMessage = function(event) {
  49916. if (event.source === global &&
  49917. typeof event.data === "string" &&
  49918. event.data.indexOf(messagePrefix) === 0) {
  49919. runIfPresent(+event.data.slice(messagePrefix.length));
  49920. }
  49921. };
  49922. if (global.addEventListener) {
  49923. global.addEventListener("message", onGlobalMessage, false);
  49924. } else {
  49925. global.attachEvent("onmessage", onGlobalMessage);
  49926. }
  49927. registerImmediate = function(handle) {
  49928. global.postMessage(messagePrefix + handle, "*");
  49929. };
  49930. }
  49931. function installMessageChannelImplementation() {
  49932. var channel = new MessageChannel();
  49933. channel.port1.onmessage = function(event) {
  49934. var handle = event.data;
  49935. runIfPresent(handle);
  49936. };
  49937. registerImmediate = function(handle) {
  49938. channel.port2.postMessage(handle);
  49939. };
  49940. }
  49941. function installReadyStateChangeImplementation() {
  49942. var html = doc.documentElement;
  49943. registerImmediate = function(handle) {
  49944. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  49945. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  49946. var script = doc.createElement("script");
  49947. script.onreadystatechange = function () {
  49948. runIfPresent(handle);
  49949. script.onreadystatechange = null;
  49950. html.removeChild(script);
  49951. script = null;
  49952. };
  49953. html.appendChild(script);
  49954. };
  49955. }
  49956. function installSetTimeoutImplementation() {
  49957. registerImmediate = function(handle) {
  49958. setTimeout(runIfPresent, 0, handle);
  49959. };
  49960. }
  49961. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  49962. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  49963. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  49964. // Don't get fooled by e.g. browserify environments.
  49965. if ({}.toString.call(global.process) === "[object process]") {
  49966. // For Node.js before 0.9
  49967. installNextTickImplementation();
  49968. } else if (canUsePostMessage()) {
  49969. // For non-IE10 modern browsers
  49970. installPostMessageImplementation();
  49971. } else if (global.MessageChannel) {
  49972. // For web workers, where supported
  49973. installMessageChannelImplementation();
  49974. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  49975. // For IE 6–8
  49976. installReadyStateChangeImplementation();
  49977. } else {
  49978. // For older browsers
  49979. installSetTimeoutImplementation();
  49980. }
  49981. attachTo.setImmediate = setImmediate;
  49982. attachTo.clearImmediate = clearImmediate;
  49983. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  49984. /* 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")))
  49985. /***/ }),
  49986. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  49987. /*!**********************************************************************!*\
  49988. !*** E:/Repos/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  49989. \**********************************************************************/
  49990. /*! no static exports found */
  49991. /***/ (function(module, exports, __webpack_require__) {
  49992. /*
  49993. MIT License http://www.opensource.org/licenses/mit-license.php
  49994. Author Tobias Koppers @sokra
  49995. */
  49996. var stylesInDom = {};
  49997. var memoize = function (fn) {
  49998. var memo;
  49999. return function () {
  50000. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  50001. return memo;
  50002. };
  50003. };
  50004. var isOldIE = memoize(function () {
  50005. // Test for IE <= 9 as proposed by Browserhacks
  50006. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  50007. // Tests for existence of standard globals is to allow style-loader
  50008. // to operate correctly into non-standard environments
  50009. // @see https://github.com/webpack-contrib/style-loader/issues/177
  50010. return window && document && document.all && !window.atob;
  50011. });
  50012. var getTarget = function (target) {
  50013. return document.querySelector(target);
  50014. };
  50015. var getElement = (function (fn) {
  50016. var memo = {};
  50017. return function(target) {
  50018. // If passing function in options, then use it for resolve "head" element.
  50019. // Useful for Shadow Root style i.e
  50020. // {
  50021. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  50022. // }
  50023. if (typeof target === 'function') {
  50024. return target();
  50025. }
  50026. if (typeof memo[target] === "undefined") {
  50027. var styleTarget = getTarget.call(this, target);
  50028. // Special case to return head of iframe instead of iframe itself
  50029. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  50030. try {
  50031. // This will throw an exception if access to iframe is blocked
  50032. // due to cross-origin restrictions
  50033. styleTarget = styleTarget.contentDocument.head;
  50034. } catch(e) {
  50035. styleTarget = null;
  50036. }
  50037. }
  50038. memo[target] = styleTarget;
  50039. }
  50040. return memo[target]
  50041. };
  50042. })();
  50043. var singleton = null;
  50044. var singletonCounter = 0;
  50045. var stylesInsertedAtTop = [];
  50046. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  50047. module.exports = function(list, options) {
  50048. if (typeof DEBUG !== "undefined" && DEBUG) {
  50049. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  50050. }
  50051. options = options || {};
  50052. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  50053. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  50054. // tags it will allow on a page
  50055. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  50056. // By default, add <style> tags to the <head> element
  50057. if (!options.insertInto) options.insertInto = "head";
  50058. // By default, add <style> tags to the bottom of the target
  50059. if (!options.insertAt) options.insertAt = "bottom";
  50060. var styles = listToStyles(list, options);
  50061. addStylesToDom(styles, options);
  50062. return function update (newList) {
  50063. var mayRemove = [];
  50064. for (var i = 0; i < styles.length; i++) {
  50065. var item = styles[i];
  50066. var domStyle = stylesInDom[item.id];
  50067. domStyle.refs--;
  50068. mayRemove.push(domStyle);
  50069. }
  50070. if(newList) {
  50071. var newStyles = listToStyles(newList, options);
  50072. addStylesToDom(newStyles, options);
  50073. }
  50074. for (var i = 0; i < mayRemove.length; i++) {
  50075. var domStyle = mayRemove[i];
  50076. if(domStyle.refs === 0) {
  50077. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  50078. delete stylesInDom[domStyle.id];
  50079. }
  50080. }
  50081. };
  50082. };
  50083. function addStylesToDom (styles, options) {
  50084. for (var i = 0; i < styles.length; i++) {
  50085. var item = styles[i];
  50086. var domStyle = stylesInDom[item.id];
  50087. if(domStyle) {
  50088. domStyle.refs++;
  50089. for(var j = 0; j < domStyle.parts.length; j++) {
  50090. domStyle.parts[j](item.parts[j]);
  50091. }
  50092. for(; j < item.parts.length; j++) {
  50093. domStyle.parts.push(addStyle(item.parts[j], options));
  50094. }
  50095. } else {
  50096. var parts = [];
  50097. for(var j = 0; j < item.parts.length; j++) {
  50098. parts.push(addStyle(item.parts[j], options));
  50099. }
  50100. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  50101. }
  50102. }
  50103. }
  50104. function listToStyles (list, options) {
  50105. var styles = [];
  50106. var newStyles = {};
  50107. for (var i = 0; i < list.length; i++) {
  50108. var item = list[i];
  50109. var id = options.base ? item[0] + options.base : item[0];
  50110. var css = item[1];
  50111. var media = item[2];
  50112. var sourceMap = item[3];
  50113. var part = {css: css, media: media, sourceMap: sourceMap};
  50114. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  50115. else newStyles[id].parts.push(part);
  50116. }
  50117. return styles;
  50118. }
  50119. function insertStyleElement (options, style) {
  50120. var target = getElement(options.insertInto)
  50121. if (!target) {
  50122. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  50123. }
  50124. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  50125. if (options.insertAt === "top") {
  50126. if (!lastStyleElementInsertedAtTop) {
  50127. target.insertBefore(style, target.firstChild);
  50128. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  50129. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  50130. } else {
  50131. target.appendChild(style);
  50132. }
  50133. stylesInsertedAtTop.push(style);
  50134. } else if (options.insertAt === "bottom") {
  50135. target.appendChild(style);
  50136. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  50137. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  50138. target.insertBefore(style, nextSibling);
  50139. } else {
  50140. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  50141. }
  50142. }
  50143. function removeStyleElement (style) {
  50144. if (style.parentNode === null) return false;
  50145. style.parentNode.removeChild(style);
  50146. var idx = stylesInsertedAtTop.indexOf(style);
  50147. if(idx >= 0) {
  50148. stylesInsertedAtTop.splice(idx, 1);
  50149. }
  50150. }
  50151. function createStyleElement (options) {
  50152. var style = document.createElement("style");
  50153. if(options.attrs.type === undefined) {
  50154. options.attrs.type = "text/css";
  50155. }
  50156. addAttrs(style, options.attrs);
  50157. insertStyleElement(options, style);
  50158. return style;
  50159. }
  50160. function createLinkElement (options) {
  50161. var link = document.createElement("link");
  50162. if(options.attrs.type === undefined) {
  50163. options.attrs.type = "text/css";
  50164. }
  50165. options.attrs.rel = "stylesheet";
  50166. addAttrs(link, options.attrs);
  50167. insertStyleElement(options, link);
  50168. return link;
  50169. }
  50170. function addAttrs (el, attrs) {
  50171. Object.keys(attrs).forEach(function (key) {
  50172. el.setAttribute(key, attrs[key]);
  50173. });
  50174. }
  50175. function addStyle (obj, options) {
  50176. var style, update, remove, result;
  50177. // If a transform function was defined, run it on the css
  50178. if (options.transform && obj.css) {
  50179. result = options.transform(obj.css);
  50180. if (result) {
  50181. // If transform returns a value, use that instead of the original css.
  50182. // This allows running runtime transformations on the css.
  50183. obj.css = result;
  50184. } else {
  50185. // If the transform function returns a falsy value, don't add this css.
  50186. // This allows conditional loading of css
  50187. return function() {
  50188. // noop
  50189. };
  50190. }
  50191. }
  50192. if (options.singleton) {
  50193. var styleIndex = singletonCounter++;
  50194. style = singleton || (singleton = createStyleElement(options));
  50195. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  50196. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  50197. } else if (
  50198. obj.sourceMap &&
  50199. typeof URL === "function" &&
  50200. typeof URL.createObjectURL === "function" &&
  50201. typeof URL.revokeObjectURL === "function" &&
  50202. typeof Blob === "function" &&
  50203. typeof btoa === "function"
  50204. ) {
  50205. style = createLinkElement(options);
  50206. update = updateLink.bind(null, style, options);
  50207. remove = function () {
  50208. removeStyleElement(style);
  50209. if(style.href) URL.revokeObjectURL(style.href);
  50210. };
  50211. } else {
  50212. style = createStyleElement(options);
  50213. update = applyToTag.bind(null, style);
  50214. remove = function () {
  50215. removeStyleElement(style);
  50216. };
  50217. }
  50218. update(obj);
  50219. return function updateStyle (newObj) {
  50220. if (newObj) {
  50221. if (
  50222. newObj.css === obj.css &&
  50223. newObj.media === obj.media &&
  50224. newObj.sourceMap === obj.sourceMap
  50225. ) {
  50226. return;
  50227. }
  50228. update(obj = newObj);
  50229. } else {
  50230. remove();
  50231. }
  50232. };
  50233. }
  50234. var replaceText = (function () {
  50235. var textStore = [];
  50236. return function (index, replacement) {
  50237. textStore[index] = replacement;
  50238. return textStore.filter(Boolean).join('\n');
  50239. };
  50240. })();
  50241. function applyToSingletonTag (style, index, remove, obj) {
  50242. var css = remove ? "" : obj.css;
  50243. if (style.styleSheet) {
  50244. style.styleSheet.cssText = replaceText(index, css);
  50245. } else {
  50246. var cssNode = document.createTextNode(css);
  50247. var childNodes = style.childNodes;
  50248. if (childNodes[index]) style.removeChild(childNodes[index]);
  50249. if (childNodes.length) {
  50250. style.insertBefore(cssNode, childNodes[index]);
  50251. } else {
  50252. style.appendChild(cssNode);
  50253. }
  50254. }
  50255. }
  50256. function applyToTag (style, obj) {
  50257. var css = obj.css;
  50258. var media = obj.media;
  50259. if(media) {
  50260. style.setAttribute("media", media)
  50261. }
  50262. if(style.styleSheet) {
  50263. style.styleSheet.cssText = css;
  50264. } else {
  50265. while(style.firstChild) {
  50266. style.removeChild(style.firstChild);
  50267. }
  50268. style.appendChild(document.createTextNode(css));
  50269. }
  50270. }
  50271. function updateLink (link, options, obj) {
  50272. var css = obj.css;
  50273. var sourceMap = obj.sourceMap;
  50274. /*
  50275. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  50276. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  50277. on by default. Otherwise default to the convertToAbsoluteUrls option
  50278. directly
  50279. */
  50280. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  50281. if (options.convertToAbsoluteUrls || autoFixUrls) {
  50282. css = fixUrls(css);
  50283. }
  50284. if (sourceMap) {
  50285. // http://stackoverflow.com/a/26603875
  50286. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  50287. }
  50288. var blob = new Blob([css], { type: "text/css" });
  50289. var oldSrc = link.href;
  50290. link.href = URL.createObjectURL(blob);
  50291. if(oldSrc) URL.revokeObjectURL(oldSrc);
  50292. }
  50293. /***/ }),
  50294. /***/ "../../node_modules/style-loader/lib/urls.js":
  50295. /*!*****************************************************************!*\
  50296. !*** E:/Repos/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  50297. \*****************************************************************/
  50298. /*! no static exports found */
  50299. /***/ (function(module, exports) {
  50300. /**
  50301. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  50302. * embed the css on the page. This breaks all relative urls because now they are relative to a
  50303. * bundle instead of the current page.
  50304. *
  50305. * One solution is to only use full urls, but that may be impossible.
  50306. *
  50307. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  50308. *
  50309. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  50310. *
  50311. */
  50312. module.exports = function (css) {
  50313. // get current location
  50314. var location = typeof window !== "undefined" && window.location;
  50315. if (!location) {
  50316. throw new Error("fixUrls requires window.location");
  50317. }
  50318. // blank or null?
  50319. if (!css || typeof css !== "string") {
  50320. return css;
  50321. }
  50322. var baseUrl = location.protocol + "//" + location.host;
  50323. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  50324. // convert each url(...)
  50325. /*
  50326. This regular expression is just a way to recursively match brackets within
  50327. a string.
  50328. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  50329. ( = Start a capturing group
  50330. (?: = Start a non-capturing group
  50331. [^)(] = Match anything that isn't a parentheses
  50332. | = OR
  50333. \( = Match a start parentheses
  50334. (?: = Start another non-capturing groups
  50335. [^)(]+ = Match anything that isn't a parentheses
  50336. | = OR
  50337. \( = Match a start parentheses
  50338. [^)(]* = Match anything that isn't a parentheses
  50339. \) = Match a end parentheses
  50340. ) = End Group
  50341. *\) = Match anything and then a close parens
  50342. ) = Close non-capturing group
  50343. * = Match anything
  50344. ) = Close capturing group
  50345. \) = Match a close parens
  50346. /gi = Get all matches, not the first. Be case insensitive.
  50347. */
  50348. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  50349. // strip quotes (if they exist)
  50350. var unquotedOrigUrl = origUrl
  50351. .trim()
  50352. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  50353. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  50354. // already a full url? no change
  50355. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  50356. return fullMatch;
  50357. }
  50358. // convert the url to a full url
  50359. var newUrl;
  50360. if (unquotedOrigUrl.indexOf("//") === 0) {
  50361. //TODO: should we add protocol?
  50362. newUrl = unquotedOrigUrl;
  50363. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  50364. // path should be relative to the base url
  50365. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  50366. } else {
  50367. // path should be relative to current directory
  50368. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  50369. }
  50370. // send back the fixed url(...)
  50371. return "url(" + JSON.stringify(newUrl) + ")";
  50372. });
  50373. // send back the fixed css
  50374. return fixedCss;
  50375. };
  50376. /***/ }),
  50377. /***/ "../../node_modules/timers-browserify/main.js":
  50378. /*!******************************************************************!*\
  50379. !*** E:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  50380. \******************************************************************/
  50381. /*! no static exports found */
  50382. /***/ (function(module, exports, __webpack_require__) {
  50383. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  50384. (typeof self !== "undefined" && self) ||
  50385. window;
  50386. var apply = Function.prototype.apply;
  50387. // DOM APIs, for completeness
  50388. exports.setTimeout = function() {
  50389. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  50390. };
  50391. exports.setInterval = function() {
  50392. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  50393. };
  50394. exports.clearTimeout =
  50395. exports.clearInterval = function(timeout) {
  50396. if (timeout) {
  50397. timeout.close();
  50398. }
  50399. };
  50400. function Timeout(id, clearFn) {
  50401. this._id = id;
  50402. this._clearFn = clearFn;
  50403. }
  50404. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  50405. Timeout.prototype.close = function() {
  50406. this._clearFn.call(scope, this._id);
  50407. };
  50408. // Does not start the time, just sets up the members needed.
  50409. exports.enroll = function(item, msecs) {
  50410. clearTimeout(item._idleTimeoutId);
  50411. item._idleTimeout = msecs;
  50412. };
  50413. exports.unenroll = function(item) {
  50414. clearTimeout(item._idleTimeoutId);
  50415. item._idleTimeout = -1;
  50416. };
  50417. exports._unrefActive = exports.active = function(item) {
  50418. clearTimeout(item._idleTimeoutId);
  50419. var msecs = item._idleTimeout;
  50420. if (msecs >= 0) {
  50421. item._idleTimeoutId = setTimeout(function onTimeout() {
  50422. if (item._onTimeout)
  50423. item._onTimeout();
  50424. }, msecs);
  50425. }
  50426. };
  50427. // setimmediate attaches itself to the global object
  50428. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  50429. // On some exotic environments, it's not clear which object `setimmediate` was
  50430. // able to install onto. Search each possibility in the same order as the
  50431. // `setimmediate` library.
  50432. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  50433. (typeof global !== "undefined" && global.setImmediate) ||
  50434. (this && this.setImmediate);
  50435. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  50436. (typeof global !== "undefined" && global.clearImmediate) ||
  50437. (this && this.clearImmediate);
  50438. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  50439. /***/ }),
  50440. /***/ "../../node_modules/tinycolor2/tinycolor.js":
  50441. /*!****************************************************************!*\
  50442. !*** E:/Repos/Babylon.js/node_modules/tinycolor2/tinycolor.js ***!
  50443. \****************************************************************/
  50444. /*! no static exports found */
  50445. /***/ (function(module, exports, __webpack_require__) {
  50446. var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
  50447. // https://github.com/bgrins/TinyColor
  50448. // Brian Grinstead, MIT License
  50449. (function(Math) {
  50450. var trimLeft = /^\s+/,
  50451. trimRight = /\s+$/,
  50452. tinyCounter = 0,
  50453. mathRound = Math.round,
  50454. mathMin = Math.min,
  50455. mathMax = Math.max,
  50456. mathRandom = Math.random;
  50457. function tinycolor (color, opts) {
  50458. color = (color) ? color : '';
  50459. opts = opts || { };
  50460. // If input is already a tinycolor, return itself
  50461. if (color instanceof tinycolor) {
  50462. return color;
  50463. }
  50464. // If we are called as a function, call using new instead
  50465. if (!(this instanceof tinycolor)) {
  50466. return new tinycolor(color, opts);
  50467. }
  50468. var rgb = inputToRGB(color);
  50469. this._originalInput = color,
  50470. this._r = rgb.r,
  50471. this._g = rgb.g,
  50472. this._b = rgb.b,
  50473. this._a = rgb.a,
  50474. this._roundA = mathRound(100*this._a) / 100,
  50475. this._format = opts.format || rgb.format;
  50476. this._gradientType = opts.gradientType;
  50477. // Don't let the range of [0,255] come back in [0,1].
  50478. // Potentially lose a little bit of precision here, but will fix issues where
  50479. // .5 gets interpreted as half of the total, instead of half of 1
  50480. // If it was supposed to be 128, this was already taken care of by `inputToRgb`
  50481. if (this._r < 1) { this._r = mathRound(this._r); }
  50482. if (this._g < 1) { this._g = mathRound(this._g); }
  50483. if (this._b < 1) { this._b = mathRound(this._b); }
  50484. this._ok = rgb.ok;
  50485. this._tc_id = tinyCounter++;
  50486. }
  50487. tinycolor.prototype = {
  50488. isDark: function() {
  50489. return this.getBrightness() < 128;
  50490. },
  50491. isLight: function() {
  50492. return !this.isDark();
  50493. },
  50494. isValid: function() {
  50495. return this._ok;
  50496. },
  50497. getOriginalInput: function() {
  50498. return this._originalInput;
  50499. },
  50500. getFormat: function() {
  50501. return this._format;
  50502. },
  50503. getAlpha: function() {
  50504. return this._a;
  50505. },
  50506. getBrightness: function() {
  50507. //http://www.w3.org/TR/AERT#color-contrast
  50508. var rgb = this.toRgb();
  50509. return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
  50510. },
  50511. getLuminance: function() {
  50512. //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
  50513. var rgb = this.toRgb();
  50514. var RsRGB, GsRGB, BsRGB, R, G, B;
  50515. RsRGB = rgb.r/255;
  50516. GsRGB = rgb.g/255;
  50517. BsRGB = rgb.b/255;
  50518. if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}
  50519. if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}
  50520. if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}
  50521. return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);
  50522. },
  50523. setAlpha: function(value) {
  50524. this._a = boundAlpha(value);
  50525. this._roundA = mathRound(100*this._a) / 100;
  50526. return this;
  50527. },
  50528. toHsv: function() {
  50529. var hsv = rgbToHsv(this._r, this._g, this._b);
  50530. return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
  50531. },
  50532. toHsvString: function() {
  50533. var hsv = rgbToHsv(this._r, this._g, this._b);
  50534. var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
  50535. return (this._a == 1) ?
  50536. "hsv(" + h + ", " + s + "%, " + v + "%)" :
  50537. "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";
  50538. },
  50539. toHsl: function() {
  50540. var hsl = rgbToHsl(this._r, this._g, this._b);
  50541. return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
  50542. },
  50543. toHslString: function() {
  50544. var hsl = rgbToHsl(this._r, this._g, this._b);
  50545. var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
  50546. return (this._a == 1) ?
  50547. "hsl(" + h + ", " + s + "%, " + l + "%)" :
  50548. "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";
  50549. },
  50550. toHex: function(allow3Char) {
  50551. return rgbToHex(this._r, this._g, this._b, allow3Char);
  50552. },
  50553. toHexString: function(allow3Char) {
  50554. return '#' + this.toHex(allow3Char);
  50555. },
  50556. toHex8: function(allow4Char) {
  50557. return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
  50558. },
  50559. toHex8String: function(allow4Char) {
  50560. return '#' + this.toHex8(allow4Char);
  50561. },
  50562. toRgb: function() {
  50563. return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
  50564. },
  50565. toRgbString: function() {
  50566. return (this._a == 1) ?
  50567. "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
  50568. "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
  50569. },
  50570. toPercentageRgb: function() {
  50571. 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 };
  50572. },
  50573. toPercentageRgbString: function() {
  50574. return (this._a == 1) ?
  50575. "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" :
  50576. "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
  50577. },
  50578. toName: function() {
  50579. if (this._a === 0) {
  50580. return "transparent";
  50581. }
  50582. if (this._a < 1) {
  50583. return false;
  50584. }
  50585. return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
  50586. },
  50587. toFilter: function(secondColor) {
  50588. var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);
  50589. var secondHex8String = hex8String;
  50590. var gradientType = this._gradientType ? "GradientType = 1, " : "";
  50591. if (secondColor) {
  50592. var s = tinycolor(secondColor);
  50593. secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);
  50594. }
  50595. return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";
  50596. },
  50597. toString: function(format) {
  50598. var formatSet = !!format;
  50599. format = format || this._format;
  50600. var formattedString = false;
  50601. var hasAlpha = this._a < 1 && this._a >= 0;
  50602. var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
  50603. if (needsAlphaFormat) {
  50604. // Special case for "transparent", all other non-alpha formats
  50605. // will return rgba when there is transparency.
  50606. if (format === "name" && this._a === 0) {
  50607. return this.toName();
  50608. }
  50609. return this.toRgbString();
  50610. }
  50611. if (format === "rgb") {
  50612. formattedString = this.toRgbString();
  50613. }
  50614. if (format === "prgb") {
  50615. formattedString = this.toPercentageRgbString();
  50616. }
  50617. if (format === "hex" || format === "hex6") {
  50618. formattedString = this.toHexString();
  50619. }
  50620. if (format === "hex3") {
  50621. formattedString = this.toHexString(true);
  50622. }
  50623. if (format === "hex4") {
  50624. formattedString = this.toHex8String(true);
  50625. }
  50626. if (format === "hex8") {
  50627. formattedString = this.toHex8String();
  50628. }
  50629. if (format === "name") {
  50630. formattedString = this.toName();
  50631. }
  50632. if (format === "hsl") {
  50633. formattedString = this.toHslString();
  50634. }
  50635. if (format === "hsv") {
  50636. formattedString = this.toHsvString();
  50637. }
  50638. return formattedString || this.toHexString();
  50639. },
  50640. clone: function() {
  50641. return tinycolor(this.toString());
  50642. },
  50643. _applyModification: function(fn, args) {
  50644. var color = fn.apply(null, [this].concat([].slice.call(args)));
  50645. this._r = color._r;
  50646. this._g = color._g;
  50647. this._b = color._b;
  50648. this.setAlpha(color._a);
  50649. return this;
  50650. },
  50651. lighten: function() {
  50652. return this._applyModification(lighten, arguments);
  50653. },
  50654. brighten: function() {
  50655. return this._applyModification(brighten, arguments);
  50656. },
  50657. darken: function() {
  50658. return this._applyModification(darken, arguments);
  50659. },
  50660. desaturate: function() {
  50661. return this._applyModification(desaturate, arguments);
  50662. },
  50663. saturate: function() {
  50664. return this._applyModification(saturate, arguments);
  50665. },
  50666. greyscale: function() {
  50667. return this._applyModification(greyscale, arguments);
  50668. },
  50669. spin: function() {
  50670. return this._applyModification(spin, arguments);
  50671. },
  50672. _applyCombination: function(fn, args) {
  50673. return fn.apply(null, [this].concat([].slice.call(args)));
  50674. },
  50675. analogous: function() {
  50676. return this._applyCombination(analogous, arguments);
  50677. },
  50678. complement: function() {
  50679. return this._applyCombination(complement, arguments);
  50680. },
  50681. monochromatic: function() {
  50682. return this._applyCombination(monochromatic, arguments);
  50683. },
  50684. splitcomplement: function() {
  50685. return this._applyCombination(splitcomplement, arguments);
  50686. },
  50687. triad: function() {
  50688. return this._applyCombination(triad, arguments);
  50689. },
  50690. tetrad: function() {
  50691. return this._applyCombination(tetrad, arguments);
  50692. }
  50693. };
  50694. // If input is an object, force 1 into "1.0" to handle ratios properly
  50695. // String input requires "1.0" as input, so 1 will be treated as 1
  50696. tinycolor.fromRatio = function(color, opts) {
  50697. if (typeof color == "object") {
  50698. var newColor = {};
  50699. for (var i in color) {
  50700. if (color.hasOwnProperty(i)) {
  50701. if (i === "a") {
  50702. newColor[i] = color[i];
  50703. }
  50704. else {
  50705. newColor[i] = convertToPercentage(color[i]);
  50706. }
  50707. }
  50708. }
  50709. color = newColor;
  50710. }
  50711. return tinycolor(color, opts);
  50712. };
  50713. // Given a string or object, convert that input to RGB
  50714. // Possible string inputs:
  50715. //
  50716. // "red"
  50717. // "#f00" or "f00"
  50718. // "#ff0000" or "ff0000"
  50719. // "#ff000000" or "ff000000"
  50720. // "rgb 255 0 0" or "rgb (255, 0, 0)"
  50721. // "rgb 1.0 0 0" or "rgb (1, 0, 0)"
  50722. // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
  50723. // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
  50724. // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
  50725. // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
  50726. // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
  50727. //
  50728. function inputToRGB(color) {
  50729. var rgb = { r: 0, g: 0, b: 0 };
  50730. var a = 1;
  50731. var s = null;
  50732. var v = null;
  50733. var l = null;
  50734. var ok = false;
  50735. var format = false;
  50736. if (typeof color == "string") {
  50737. color = stringInputToObject(color);
  50738. }
  50739. if (typeof color == "object") {
  50740. if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
  50741. rgb = rgbToRgb(color.r, color.g, color.b);
  50742. ok = true;
  50743. format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
  50744. }
  50745. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
  50746. s = convertToPercentage(color.s);
  50747. v = convertToPercentage(color.v);
  50748. rgb = hsvToRgb(color.h, s, v);
  50749. ok = true;
  50750. format = "hsv";
  50751. }
  50752. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
  50753. s = convertToPercentage(color.s);
  50754. l = convertToPercentage(color.l);
  50755. rgb = hslToRgb(color.h, s, l);
  50756. ok = true;
  50757. format = "hsl";
  50758. }
  50759. if (color.hasOwnProperty("a")) {
  50760. a = color.a;
  50761. }
  50762. }
  50763. a = boundAlpha(a);
  50764. return {
  50765. ok: ok,
  50766. format: color.format || format,
  50767. r: mathMin(255, mathMax(rgb.r, 0)),
  50768. g: mathMin(255, mathMax(rgb.g, 0)),
  50769. b: mathMin(255, mathMax(rgb.b, 0)),
  50770. a: a
  50771. };
  50772. }
  50773. // Conversion Functions
  50774. // --------------------
  50775. // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
  50776. // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
  50777. // `rgbToRgb`
  50778. // Handle bounds / percentage checking to conform to CSS color spec
  50779. // <http://www.w3.org/TR/css3-color/>
  50780. // *Assumes:* r, g, b in [0, 255] or [0, 1]
  50781. // *Returns:* { r, g, b } in [0, 255]
  50782. function rgbToRgb(r, g, b){
  50783. return {
  50784. r: bound01(r, 255) * 255,
  50785. g: bound01(g, 255) * 255,
  50786. b: bound01(b, 255) * 255
  50787. };
  50788. }
  50789. // `rgbToHsl`
  50790. // Converts an RGB color value to HSL.
  50791. // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
  50792. // *Returns:* { h, s, l } in [0,1]
  50793. function rgbToHsl(r, g, b) {
  50794. r = bound01(r, 255);
  50795. g = bound01(g, 255);
  50796. b = bound01(b, 255);
  50797. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  50798. var h, s, l = (max + min) / 2;
  50799. if(max == min) {
  50800. h = s = 0; // achromatic
  50801. }
  50802. else {
  50803. var d = max - min;
  50804. s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
  50805. switch(max) {
  50806. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  50807. case g: h = (b - r) / d + 2; break;
  50808. case b: h = (r - g) / d + 4; break;
  50809. }
  50810. h /= 6;
  50811. }
  50812. return { h: h, s: s, l: l };
  50813. }
  50814. // `hslToRgb`
  50815. // Converts an HSL color value to RGB.
  50816. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
  50817. // *Returns:* { r, g, b } in the set [0, 255]
  50818. function hslToRgb(h, s, l) {
  50819. var r, g, b;
  50820. h = bound01(h, 360);
  50821. s = bound01(s, 100);
  50822. l = bound01(l, 100);
  50823. function hue2rgb(p, q, t) {
  50824. if(t < 0) t += 1;
  50825. if(t > 1) t -= 1;
  50826. if(t < 1/6) return p + (q - p) * 6 * t;
  50827. if(t < 1/2) return q;
  50828. if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
  50829. return p;
  50830. }
  50831. if(s === 0) {
  50832. r = g = b = l; // achromatic
  50833. }
  50834. else {
  50835. var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
  50836. var p = 2 * l - q;
  50837. r = hue2rgb(p, q, h + 1/3);
  50838. g = hue2rgb(p, q, h);
  50839. b = hue2rgb(p, q, h - 1/3);
  50840. }
  50841. return { r: r * 255, g: g * 255, b: b * 255 };
  50842. }
  50843. // `rgbToHsv`
  50844. // Converts an RGB color value to HSV
  50845. // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
  50846. // *Returns:* { h, s, v } in [0,1]
  50847. function rgbToHsv(r, g, b) {
  50848. r = bound01(r, 255);
  50849. g = bound01(g, 255);
  50850. b = bound01(b, 255);
  50851. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  50852. var h, s, v = max;
  50853. var d = max - min;
  50854. s = max === 0 ? 0 : d / max;
  50855. if(max == min) {
  50856. h = 0; // achromatic
  50857. }
  50858. else {
  50859. switch(max) {
  50860. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  50861. case g: h = (b - r) / d + 2; break;
  50862. case b: h = (r - g) / d + 4; break;
  50863. }
  50864. h /= 6;
  50865. }
  50866. return { h: h, s: s, v: v };
  50867. }
  50868. // `hsvToRgb`
  50869. // Converts an HSV color value to RGB.
  50870. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
  50871. // *Returns:* { r, g, b } in the set [0, 255]
  50872. function hsvToRgb(h, s, v) {
  50873. h = bound01(h, 360) * 6;
  50874. s = bound01(s, 100);
  50875. v = bound01(v, 100);
  50876. var i = Math.floor(h),
  50877. f = h - i,
  50878. p = v * (1 - s),
  50879. q = v * (1 - f * s),
  50880. t = v * (1 - (1 - f) * s),
  50881. mod = i % 6,
  50882. r = [v, q, p, p, t, v][mod],
  50883. g = [t, v, v, q, p, p][mod],
  50884. b = [p, p, t, v, v, q][mod];
  50885. return { r: r * 255, g: g * 255, b: b * 255 };
  50886. }
  50887. // `rgbToHex`
  50888. // Converts an RGB color to hex
  50889. // Assumes r, g, and b are contained in the set [0, 255]
  50890. // Returns a 3 or 6 character hex
  50891. function rgbToHex(r, g, b, allow3Char) {
  50892. var hex = [
  50893. pad2(mathRound(r).toString(16)),
  50894. pad2(mathRound(g).toString(16)),
  50895. pad2(mathRound(b).toString(16))
  50896. ];
  50897. // Return a 3 character hex if possible
  50898. 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)) {
  50899. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
  50900. }
  50901. return hex.join("");
  50902. }
  50903. // `rgbaToHex`
  50904. // Converts an RGBA color plus alpha transparency to hex
  50905. // Assumes r, g, b are contained in the set [0, 255] and
  50906. // a in [0, 1]. Returns a 4 or 8 character rgba hex
  50907. function rgbaToHex(r, g, b, a, allow4Char) {
  50908. var hex = [
  50909. pad2(mathRound(r).toString(16)),
  50910. pad2(mathRound(g).toString(16)),
  50911. pad2(mathRound(b).toString(16)),
  50912. pad2(convertDecimalToHex(a))
  50913. ];
  50914. // Return a 4 character hex if possible
  50915. 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)) {
  50916. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
  50917. }
  50918. return hex.join("");
  50919. }
  50920. // `rgbaToArgbHex`
  50921. // Converts an RGBA color to an ARGB Hex8 string
  50922. // Rarely used, but required for "toFilter()"
  50923. function rgbaToArgbHex(r, g, b, a) {
  50924. var hex = [
  50925. pad2(convertDecimalToHex(a)),
  50926. pad2(mathRound(r).toString(16)),
  50927. pad2(mathRound(g).toString(16)),
  50928. pad2(mathRound(b).toString(16))
  50929. ];
  50930. return hex.join("");
  50931. }
  50932. // `equals`
  50933. // Can be called with any tinycolor input
  50934. tinycolor.equals = function (color1, color2) {
  50935. if (!color1 || !color2) { return false; }
  50936. return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
  50937. };
  50938. tinycolor.random = function() {
  50939. return tinycolor.fromRatio({
  50940. r: mathRandom(),
  50941. g: mathRandom(),
  50942. b: mathRandom()
  50943. });
  50944. };
  50945. // Modification Functions
  50946. // ----------------------
  50947. // Thanks to less.js for some of the basics here
  50948. // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
  50949. function desaturate(color, amount) {
  50950. amount = (amount === 0) ? 0 : (amount || 10);
  50951. var hsl = tinycolor(color).toHsl();
  50952. hsl.s -= amount / 100;
  50953. hsl.s = clamp01(hsl.s);
  50954. return tinycolor(hsl);
  50955. }
  50956. function saturate(color, amount) {
  50957. amount = (amount === 0) ? 0 : (amount || 10);
  50958. var hsl = tinycolor(color).toHsl();
  50959. hsl.s += amount / 100;
  50960. hsl.s = clamp01(hsl.s);
  50961. return tinycolor(hsl);
  50962. }
  50963. function greyscale(color) {
  50964. return tinycolor(color).desaturate(100);
  50965. }
  50966. function lighten (color, amount) {
  50967. amount = (amount === 0) ? 0 : (amount || 10);
  50968. var hsl = tinycolor(color).toHsl();
  50969. hsl.l += amount / 100;
  50970. hsl.l = clamp01(hsl.l);
  50971. return tinycolor(hsl);
  50972. }
  50973. function brighten(color, amount) {
  50974. amount = (amount === 0) ? 0 : (amount || 10);
  50975. var rgb = tinycolor(color).toRgb();
  50976. rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));
  50977. rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));
  50978. rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));
  50979. return tinycolor(rgb);
  50980. }
  50981. function darken (color, amount) {
  50982. amount = (amount === 0) ? 0 : (amount || 10);
  50983. var hsl = tinycolor(color).toHsl();
  50984. hsl.l -= amount / 100;
  50985. hsl.l = clamp01(hsl.l);
  50986. return tinycolor(hsl);
  50987. }
  50988. // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
  50989. // Values outside of this range will be wrapped into this range.
  50990. function spin(color, amount) {
  50991. var hsl = tinycolor(color).toHsl();
  50992. var hue = (hsl.h + amount) % 360;
  50993. hsl.h = hue < 0 ? 360 + hue : hue;
  50994. return tinycolor(hsl);
  50995. }
  50996. // Combination Functions
  50997. // ---------------------
  50998. // Thanks to jQuery xColor for some of the ideas behind these
  50999. // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
  51000. function complement(color) {
  51001. var hsl = tinycolor(color).toHsl();
  51002. hsl.h = (hsl.h + 180) % 360;
  51003. return tinycolor(hsl);
  51004. }
  51005. function triad(color) {
  51006. var hsl = tinycolor(color).toHsl();
  51007. var h = hsl.h;
  51008. return [
  51009. tinycolor(color),
  51010. tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
  51011. tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
  51012. ];
  51013. }
  51014. function tetrad(color) {
  51015. var hsl = tinycolor(color).toHsl();
  51016. var h = hsl.h;
  51017. return [
  51018. tinycolor(color),
  51019. tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
  51020. tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
  51021. tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
  51022. ];
  51023. }
  51024. function splitcomplement(color) {
  51025. var hsl = tinycolor(color).toHsl();
  51026. var h = hsl.h;
  51027. return [
  51028. tinycolor(color),
  51029. tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),
  51030. tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})
  51031. ];
  51032. }
  51033. function analogous(color, results, slices) {
  51034. results = results || 6;
  51035. slices = slices || 30;
  51036. var hsl = tinycolor(color).toHsl();
  51037. var part = 360 / slices;
  51038. var ret = [tinycolor(color)];
  51039. for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {
  51040. hsl.h = (hsl.h + part) % 360;
  51041. ret.push(tinycolor(hsl));
  51042. }
  51043. return ret;
  51044. }
  51045. function monochromatic(color, results) {
  51046. results = results || 6;
  51047. var hsv = tinycolor(color).toHsv();
  51048. var h = hsv.h, s = hsv.s, v = hsv.v;
  51049. var ret = [];
  51050. var modification = 1 / results;
  51051. while (results--) {
  51052. ret.push(tinycolor({ h: h, s: s, v: v}));
  51053. v = (v + modification) % 1;
  51054. }
  51055. return ret;
  51056. }
  51057. // Utility Functions
  51058. // ---------------------
  51059. tinycolor.mix = function(color1, color2, amount) {
  51060. amount = (amount === 0) ? 0 : (amount || 50);
  51061. var rgb1 = tinycolor(color1).toRgb();
  51062. var rgb2 = tinycolor(color2).toRgb();
  51063. var p = amount / 100;
  51064. var rgba = {
  51065. r: ((rgb2.r - rgb1.r) * p) + rgb1.r,
  51066. g: ((rgb2.g - rgb1.g) * p) + rgb1.g,
  51067. b: ((rgb2.b - rgb1.b) * p) + rgb1.b,
  51068. a: ((rgb2.a - rgb1.a) * p) + rgb1.a
  51069. };
  51070. return tinycolor(rgba);
  51071. };
  51072. // Readability Functions
  51073. // ---------------------
  51074. // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
  51075. // `contrast`
  51076. // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
  51077. tinycolor.readability = function(color1, color2) {
  51078. var c1 = tinycolor(color1);
  51079. var c2 = tinycolor(color2);
  51080. return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);
  51081. };
  51082. // `isReadable`
  51083. // Ensure that foreground and background color combinations meet WCAG2 guidelines.
  51084. // The third argument is an optional Object.
  51085. // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
  51086. // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
  51087. // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
  51088. // *Example*
  51089. // tinycolor.isReadable("#000", "#111") => false
  51090. // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
  51091. tinycolor.isReadable = function(color1, color2, wcag2) {
  51092. var readability = tinycolor.readability(color1, color2);
  51093. var wcag2Parms, out;
  51094. out = false;
  51095. wcag2Parms = validateWCAG2Parms(wcag2);
  51096. switch (wcag2Parms.level + wcag2Parms.size) {
  51097. case "AAsmall":
  51098. case "AAAlarge":
  51099. out = readability >= 4.5;
  51100. break;
  51101. case "AAlarge":
  51102. out = readability >= 3;
  51103. break;
  51104. case "AAAsmall":
  51105. out = readability >= 7;
  51106. break;
  51107. }
  51108. return out;
  51109. };
  51110. // `mostReadable`
  51111. // Given a base color and a list of possible foreground or background
  51112. // colors for that base, returns the most readable color.
  51113. // Optionally returns Black or White if the most readable color is unreadable.
  51114. // *Example*
  51115. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
  51116. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
  51117. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
  51118. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
  51119. tinycolor.mostReadable = function(baseColor, colorList, args) {
  51120. var bestColor = null;
  51121. var bestScore = 0;
  51122. var readability;
  51123. var includeFallbackColors, level, size ;
  51124. args = args || {};
  51125. includeFallbackColors = args.includeFallbackColors ;
  51126. level = args.level;
  51127. size = args.size;
  51128. for (var i= 0; i < colorList.length ; i++) {
  51129. readability = tinycolor.readability(baseColor, colorList[i]);
  51130. if (readability > bestScore) {
  51131. bestScore = readability;
  51132. bestColor = tinycolor(colorList[i]);
  51133. }
  51134. }
  51135. if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {
  51136. return bestColor;
  51137. }
  51138. else {
  51139. args.includeFallbackColors=false;
  51140. return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);
  51141. }
  51142. };
  51143. // Big List of Colors
  51144. // ------------------
  51145. // <http://www.w3.org/TR/css3-color/#svg-color>
  51146. var names = tinycolor.names = {
  51147. aliceblue: "f0f8ff",
  51148. antiquewhite: "faebd7",
  51149. aqua: "0ff",
  51150. aquamarine: "7fffd4",
  51151. azure: "f0ffff",
  51152. beige: "f5f5dc",
  51153. bisque: "ffe4c4",
  51154. black: "000",
  51155. blanchedalmond: "ffebcd",
  51156. blue: "00f",
  51157. blueviolet: "8a2be2",
  51158. brown: "a52a2a",
  51159. burlywood: "deb887",
  51160. burntsienna: "ea7e5d",
  51161. cadetblue: "5f9ea0",
  51162. chartreuse: "7fff00",
  51163. chocolate: "d2691e",
  51164. coral: "ff7f50",
  51165. cornflowerblue: "6495ed",
  51166. cornsilk: "fff8dc",
  51167. crimson: "dc143c",
  51168. cyan: "0ff",
  51169. darkblue: "00008b",
  51170. darkcyan: "008b8b",
  51171. darkgoldenrod: "b8860b",
  51172. darkgray: "a9a9a9",
  51173. darkgreen: "006400",
  51174. darkgrey: "a9a9a9",
  51175. darkkhaki: "bdb76b",
  51176. darkmagenta: "8b008b",
  51177. darkolivegreen: "556b2f",
  51178. darkorange: "ff8c00",
  51179. darkorchid: "9932cc",
  51180. darkred: "8b0000",
  51181. darksalmon: "e9967a",
  51182. darkseagreen: "8fbc8f",
  51183. darkslateblue: "483d8b",
  51184. darkslategray: "2f4f4f",
  51185. darkslategrey: "2f4f4f",
  51186. darkturquoise: "00ced1",
  51187. darkviolet: "9400d3",
  51188. deeppink: "ff1493",
  51189. deepskyblue: "00bfff",
  51190. dimgray: "696969",
  51191. dimgrey: "696969",
  51192. dodgerblue: "1e90ff",
  51193. firebrick: "b22222",
  51194. floralwhite: "fffaf0",
  51195. forestgreen: "228b22",
  51196. fuchsia: "f0f",
  51197. gainsboro: "dcdcdc",
  51198. ghostwhite: "f8f8ff",
  51199. gold: "ffd700",
  51200. goldenrod: "daa520",
  51201. gray: "808080",
  51202. green: "008000",
  51203. greenyellow: "adff2f",
  51204. grey: "808080",
  51205. honeydew: "f0fff0",
  51206. hotpink: "ff69b4",
  51207. indianred: "cd5c5c",
  51208. indigo: "4b0082",
  51209. ivory: "fffff0",
  51210. khaki: "f0e68c",
  51211. lavender: "e6e6fa",
  51212. lavenderblush: "fff0f5",
  51213. lawngreen: "7cfc00",
  51214. lemonchiffon: "fffacd",
  51215. lightblue: "add8e6",
  51216. lightcoral: "f08080",
  51217. lightcyan: "e0ffff",
  51218. lightgoldenrodyellow: "fafad2",
  51219. lightgray: "d3d3d3",
  51220. lightgreen: "90ee90",
  51221. lightgrey: "d3d3d3",
  51222. lightpink: "ffb6c1",
  51223. lightsalmon: "ffa07a",
  51224. lightseagreen: "20b2aa",
  51225. lightskyblue: "87cefa",
  51226. lightslategray: "789",
  51227. lightslategrey: "789",
  51228. lightsteelblue: "b0c4de",
  51229. lightyellow: "ffffe0",
  51230. lime: "0f0",
  51231. limegreen: "32cd32",
  51232. linen: "faf0e6",
  51233. magenta: "f0f",
  51234. maroon: "800000",
  51235. mediumaquamarine: "66cdaa",
  51236. mediumblue: "0000cd",
  51237. mediumorchid: "ba55d3",
  51238. mediumpurple: "9370db",
  51239. mediumseagreen: "3cb371",
  51240. mediumslateblue: "7b68ee",
  51241. mediumspringgreen: "00fa9a",
  51242. mediumturquoise: "48d1cc",
  51243. mediumvioletred: "c71585",
  51244. midnightblue: "191970",
  51245. mintcream: "f5fffa",
  51246. mistyrose: "ffe4e1",
  51247. moccasin: "ffe4b5",
  51248. navajowhite: "ffdead",
  51249. navy: "000080",
  51250. oldlace: "fdf5e6",
  51251. olive: "808000",
  51252. olivedrab: "6b8e23",
  51253. orange: "ffa500",
  51254. orangered: "ff4500",
  51255. orchid: "da70d6",
  51256. palegoldenrod: "eee8aa",
  51257. palegreen: "98fb98",
  51258. paleturquoise: "afeeee",
  51259. palevioletred: "db7093",
  51260. papayawhip: "ffefd5",
  51261. peachpuff: "ffdab9",
  51262. peru: "cd853f",
  51263. pink: "ffc0cb",
  51264. plum: "dda0dd",
  51265. powderblue: "b0e0e6",
  51266. purple: "800080",
  51267. rebeccapurple: "663399",
  51268. red: "f00",
  51269. rosybrown: "bc8f8f",
  51270. royalblue: "4169e1",
  51271. saddlebrown: "8b4513",
  51272. salmon: "fa8072",
  51273. sandybrown: "f4a460",
  51274. seagreen: "2e8b57",
  51275. seashell: "fff5ee",
  51276. sienna: "a0522d",
  51277. silver: "c0c0c0",
  51278. skyblue: "87ceeb",
  51279. slateblue: "6a5acd",
  51280. slategray: "708090",
  51281. slategrey: "708090",
  51282. snow: "fffafa",
  51283. springgreen: "00ff7f",
  51284. steelblue: "4682b4",
  51285. tan: "d2b48c",
  51286. teal: "008080",
  51287. thistle: "d8bfd8",
  51288. tomato: "ff6347",
  51289. turquoise: "40e0d0",
  51290. violet: "ee82ee",
  51291. wheat: "f5deb3",
  51292. white: "fff",
  51293. whitesmoke: "f5f5f5",
  51294. yellow: "ff0",
  51295. yellowgreen: "9acd32"
  51296. };
  51297. // Make it easy to access colors via `hexNames[hex]`
  51298. var hexNames = tinycolor.hexNames = flip(names);
  51299. // Utilities
  51300. // ---------
  51301. // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
  51302. function flip(o) {
  51303. var flipped = { };
  51304. for (var i in o) {
  51305. if (o.hasOwnProperty(i)) {
  51306. flipped[o[i]] = i;
  51307. }
  51308. }
  51309. return flipped;
  51310. }
  51311. // Return a valid alpha value [0,1] with all invalid values being set to 1
  51312. function boundAlpha(a) {
  51313. a = parseFloat(a);
  51314. if (isNaN(a) || a < 0 || a > 1) {
  51315. a = 1;
  51316. }
  51317. return a;
  51318. }
  51319. // Take input from [0, n] and return it as [0, 1]
  51320. function bound01(n, max) {
  51321. if (isOnePointZero(n)) { n = "100%"; }
  51322. var processPercent = isPercentage(n);
  51323. n = mathMin(max, mathMax(0, parseFloat(n)));
  51324. // Automatically convert percentage into number
  51325. if (processPercent) {
  51326. n = parseInt(n * max, 10) / 100;
  51327. }
  51328. // Handle floating point rounding errors
  51329. if ((Math.abs(n - max) < 0.000001)) {
  51330. return 1;
  51331. }
  51332. // Convert into [0, 1] range if it isn't already
  51333. return (n % max) / parseFloat(max);
  51334. }
  51335. // Force a number between 0 and 1
  51336. function clamp01(val) {
  51337. return mathMin(1, mathMax(0, val));
  51338. }
  51339. // Parse a base-16 hex value into a base-10 integer
  51340. function parseIntFromHex(val) {
  51341. return parseInt(val, 16);
  51342. }
  51343. // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
  51344. // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
  51345. function isOnePointZero(n) {
  51346. return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
  51347. }
  51348. // Check to see if string passed in is a percentage
  51349. function isPercentage(n) {
  51350. return typeof n === "string" && n.indexOf('%') != -1;
  51351. }
  51352. // Force a hex value to have 2 characters
  51353. function pad2(c) {
  51354. return c.length == 1 ? '0' + c : '' + c;
  51355. }
  51356. // Replace a decimal with it's percentage value
  51357. function convertToPercentage(n) {
  51358. if (n <= 1) {
  51359. n = (n * 100) + "%";
  51360. }
  51361. return n;
  51362. }
  51363. // Converts a decimal to a hex value
  51364. function convertDecimalToHex(d) {
  51365. return Math.round(parseFloat(d) * 255).toString(16);
  51366. }
  51367. // Converts a hex value to a decimal
  51368. function convertHexToDecimal(h) {
  51369. return (parseIntFromHex(h) / 255);
  51370. }
  51371. var matchers = (function() {
  51372. // <http://www.w3.org/TR/css3-values/#integers>
  51373. var CSS_INTEGER = "[-\\+]?\\d+%?";
  51374. // <http://www.w3.org/TR/css3-values/#number-value>
  51375. var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
  51376. // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
  51377. var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
  51378. // Actual matching.
  51379. // Parentheses and commas are optional, but not required.
  51380. // Whitespace can take the place of commas or opening paren
  51381. var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  51382. var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  51383. return {
  51384. CSS_UNIT: new RegExp(CSS_UNIT),
  51385. rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
  51386. rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
  51387. hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
  51388. hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
  51389. hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
  51390. hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
  51391. hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  51392. hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  51393. hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  51394. hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
  51395. };
  51396. })();
  51397. // `isValidCSSUnit`
  51398. // Take in a single string / number and check to see if it looks like a CSS unit
  51399. // (see `matchers` above for definition).
  51400. function isValidCSSUnit(color) {
  51401. return !!matchers.CSS_UNIT.exec(color);
  51402. }
  51403. // `stringInputToObject`
  51404. // Permissive string parsing. Take in a number of formats, and output an object
  51405. // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
  51406. function stringInputToObject(color) {
  51407. color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
  51408. var named = false;
  51409. if (names[color]) {
  51410. color = names[color];
  51411. named = true;
  51412. }
  51413. else if (color == 'transparent') {
  51414. return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  51415. }
  51416. // Try to match string input using regular expressions.
  51417. // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
  51418. // Just return an object and let the conversion functions handle that.
  51419. // This way the result will be the same whether the tinycolor is initialized with string or object.
  51420. var match;
  51421. if ((match = matchers.rgb.exec(color))) {
  51422. return { r: match[1], g: match[2], b: match[3] };
  51423. }
  51424. if ((match = matchers.rgba.exec(color))) {
  51425. return { r: match[1], g: match[2], b: match[3], a: match[4] };
  51426. }
  51427. if ((match = matchers.hsl.exec(color))) {
  51428. return { h: match[1], s: match[2], l: match[3] };
  51429. }
  51430. if ((match = matchers.hsla.exec(color))) {
  51431. return { h: match[1], s: match[2], l: match[3], a: match[4] };
  51432. }
  51433. if ((match = matchers.hsv.exec(color))) {
  51434. return { h: match[1], s: match[2], v: match[3] };
  51435. }
  51436. if ((match = matchers.hsva.exec(color))) {
  51437. return { h: match[1], s: match[2], v: match[3], a: match[4] };
  51438. }
  51439. if ((match = matchers.hex8.exec(color))) {
  51440. return {
  51441. r: parseIntFromHex(match[1]),
  51442. g: parseIntFromHex(match[2]),
  51443. b: parseIntFromHex(match[3]),
  51444. a: convertHexToDecimal(match[4]),
  51445. format: named ? "name" : "hex8"
  51446. };
  51447. }
  51448. if ((match = matchers.hex6.exec(color))) {
  51449. return {
  51450. r: parseIntFromHex(match[1]),
  51451. g: parseIntFromHex(match[2]),
  51452. b: parseIntFromHex(match[3]),
  51453. format: named ? "name" : "hex"
  51454. };
  51455. }
  51456. if ((match = matchers.hex4.exec(color))) {
  51457. return {
  51458. r: parseIntFromHex(match[1] + '' + match[1]),
  51459. g: parseIntFromHex(match[2] + '' + match[2]),
  51460. b: parseIntFromHex(match[3] + '' + match[3]),
  51461. a: convertHexToDecimal(match[4] + '' + match[4]),
  51462. format: named ? "name" : "hex8"
  51463. };
  51464. }
  51465. if ((match = matchers.hex3.exec(color))) {
  51466. return {
  51467. r: parseIntFromHex(match[1] + '' + match[1]),
  51468. g: parseIntFromHex(match[2] + '' + match[2]),
  51469. b: parseIntFromHex(match[3] + '' + match[3]),
  51470. format: named ? "name" : "hex"
  51471. };
  51472. }
  51473. return false;
  51474. }
  51475. function validateWCAG2Parms(parms) {
  51476. // return valid WCAG2 parms for isReadable.
  51477. // If input parms are invalid, return {"level":"AA", "size":"small"}
  51478. var level, size;
  51479. parms = parms || {"level":"AA", "size":"small"};
  51480. level = (parms.level || "AA").toUpperCase();
  51481. size = (parms.size || "small").toLowerCase();
  51482. if (level !== "AA" && level !== "AAA") {
  51483. level = "AA";
  51484. }
  51485. if (size !== "small" && size !== "large") {
  51486. size = "small";
  51487. }
  51488. return {"level":level, "size":size};
  51489. }
  51490. // Node: Export function
  51491. if ( true && module.exports) {
  51492. module.exports = tinycolor;
  51493. }
  51494. // AMD/requirejs: Define the module
  51495. else if (true) {
  51496. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
  51497. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  51498. }
  51499. // Browser: Expose to window
  51500. else {}
  51501. })(Math);
  51502. /***/ }),
  51503. /***/ "../../node_modules/tslib/tslib.es6.js":
  51504. /*!***********************************************************!*\
  51505. !*** E:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  51506. \***********************************************************/
  51507. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  51508. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51509. "use strict";
  51510. __webpack_require__.r(__webpack_exports__);
  51511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  51512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  51513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  51514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  51515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  51516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  51517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  51518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  51519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  51520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  51521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  51522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  51523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  51524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  51525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  51526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  51527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  51528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  51529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  51530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  51531. /*! *****************************************************************************
  51532. Copyright (c) Microsoft Corporation. All rights reserved.
  51533. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  51534. this file except in compliance with the License. You may obtain a copy of the
  51535. License at http://www.apache.org/licenses/LICENSE-2.0
  51536. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  51537. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  51538. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  51539. MERCHANTABLITY OR NON-INFRINGEMENT.
  51540. See the Apache Version 2.0 License for specific language governing permissions
  51541. and limitations under the License.
  51542. ***************************************************************************** */
  51543. /* global Reflect, Promise */
  51544. var extendStatics = function(d, b) {
  51545. extendStatics = Object.setPrototypeOf ||
  51546. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  51547. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  51548. return extendStatics(d, b);
  51549. };
  51550. function __extends(d, b) {
  51551. extendStatics(d, b);
  51552. function __() { this.constructor = d; }
  51553. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  51554. }
  51555. var __assign = function() {
  51556. __assign = Object.assign || function __assign(t) {
  51557. for (var s, i = 1, n = arguments.length; i < n; i++) {
  51558. s = arguments[i];
  51559. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  51560. }
  51561. return t;
  51562. }
  51563. return __assign.apply(this, arguments);
  51564. }
  51565. function __rest(s, e) {
  51566. var t = {};
  51567. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  51568. t[p] = s[p];
  51569. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  51570. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  51571. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  51572. t[p[i]] = s[p[i]];
  51573. }
  51574. return t;
  51575. }
  51576. function __decorate(decorators, target, key, desc) {
  51577. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  51578. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  51579. 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;
  51580. return c > 3 && r && Object.defineProperty(target, key, r), r;
  51581. }
  51582. function __param(paramIndex, decorator) {
  51583. return function (target, key) { decorator(target, key, paramIndex); }
  51584. }
  51585. function __metadata(metadataKey, metadataValue) {
  51586. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  51587. }
  51588. function __awaiter(thisArg, _arguments, P, generator) {
  51589. return new (P || (P = Promise))(function (resolve, reject) {
  51590. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  51591. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  51592. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  51593. step((generator = generator.apply(thisArg, _arguments || [])).next());
  51594. });
  51595. }
  51596. function __generator(thisArg, body) {
  51597. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  51598. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  51599. function verb(n) { return function (v) { return step([n, v]); }; }
  51600. function step(op) {
  51601. if (f) throw new TypeError("Generator is already executing.");
  51602. while (_) try {
  51603. 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;
  51604. if (y = 0, t) op = [op[0] & 2, t.value];
  51605. switch (op[0]) {
  51606. case 0: case 1: t = op; break;
  51607. case 4: _.label++; return { value: op[1], done: false };
  51608. case 5: _.label++; y = op[1]; op = [0]; continue;
  51609. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  51610. default:
  51611. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  51612. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  51613. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  51614. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  51615. if (t[2]) _.ops.pop();
  51616. _.trys.pop(); continue;
  51617. }
  51618. op = body.call(thisArg, _);
  51619. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  51620. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  51621. }
  51622. }
  51623. function __exportStar(m, exports) {
  51624. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  51625. }
  51626. function __values(o) {
  51627. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  51628. if (m) return m.call(o);
  51629. return {
  51630. next: function () {
  51631. if (o && i >= o.length) o = void 0;
  51632. return { value: o && o[i++], done: !o };
  51633. }
  51634. };
  51635. }
  51636. function __read(o, n) {
  51637. var m = typeof Symbol === "function" && o[Symbol.iterator];
  51638. if (!m) return o;
  51639. var i = m.call(o), r, ar = [], e;
  51640. try {
  51641. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  51642. }
  51643. catch (error) { e = { error: error }; }
  51644. finally {
  51645. try {
  51646. if (r && !r.done && (m = i["return"])) m.call(i);
  51647. }
  51648. finally { if (e) throw e.error; }
  51649. }
  51650. return ar;
  51651. }
  51652. function __spread() {
  51653. for (var ar = [], i = 0; i < arguments.length; i++)
  51654. ar = ar.concat(__read(arguments[i]));
  51655. return ar;
  51656. }
  51657. function __spreadArrays() {
  51658. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  51659. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  51660. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  51661. r[k] = a[j];
  51662. return r;
  51663. };
  51664. function __await(v) {
  51665. return this instanceof __await ? (this.v = v, this) : new __await(v);
  51666. }
  51667. function __asyncGenerator(thisArg, _arguments, generator) {
  51668. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  51669. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  51670. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  51671. 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); }); }; }
  51672. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  51673. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  51674. function fulfill(value) { resume("next", value); }
  51675. function reject(value) { resume("throw", value); }
  51676. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  51677. }
  51678. function __asyncDelegator(o) {
  51679. var i, p;
  51680. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  51681. 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; }
  51682. }
  51683. function __asyncValues(o) {
  51684. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  51685. var m = o[Symbol.asyncIterator], i;
  51686. 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);
  51687. 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); }); }; }
  51688. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  51689. }
  51690. function __makeTemplateObject(cooked, raw) {
  51691. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  51692. return cooked;
  51693. };
  51694. function __importStar(mod) {
  51695. if (mod && mod.__esModule) return mod;
  51696. var result = {};
  51697. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  51698. result.default = mod;
  51699. return result;
  51700. }
  51701. function __importDefault(mod) {
  51702. return (mod && mod.__esModule) ? mod : { default: mod };
  51703. }
  51704. /***/ }),
  51705. /***/ "../../node_modules/webpack/buildin/global.js":
  51706. /*!***********************************!*\
  51707. !*** (webpack)/buildin/global.js ***!
  51708. \***********************************/
  51709. /*! no static exports found */
  51710. /***/ (function(module, exports) {
  51711. var g;
  51712. // This works in non-strict mode
  51713. g = (function() {
  51714. return this;
  51715. })();
  51716. try {
  51717. // This works if eval is allowed (see CSP)
  51718. g = g || new Function("return this")();
  51719. } catch (e) {
  51720. // This works if the window reference is available
  51721. if (typeof window === "object") g = window;
  51722. }
  51723. // g can still be undefined, but nothing to do about it...
  51724. // We return undefined, instead of nothing here, so it's
  51725. // easier to handle this case. if(!global) { ...}
  51726. module.exports = g;
  51727. /***/ }),
  51728. /***/ "../../node_modules/webpack/buildin/module.js":
  51729. /*!***********************************!*\
  51730. !*** (webpack)/buildin/module.js ***!
  51731. \***********************************/
  51732. /*! no static exports found */
  51733. /***/ (function(module, exports) {
  51734. module.exports = function(module) {
  51735. if (!module.webpackPolyfill) {
  51736. module.deprecate = function() {};
  51737. module.paths = [];
  51738. // module.parent = undefined by default
  51739. if (!module.children) module.children = [];
  51740. Object.defineProperty(module, "loaded", {
  51741. enumerable: true,
  51742. get: function() {
  51743. return module.l;
  51744. }
  51745. });
  51746. Object.defineProperty(module, "id", {
  51747. enumerable: true,
  51748. get: function() {
  51749. return module.i;
  51750. }
  51751. });
  51752. module.webpackPolyfill = 1;
  51753. }
  51754. return module;
  51755. };
  51756. /***/ }),
  51757. /***/ "./blockTools.ts":
  51758. /*!***********************!*\
  51759. !*** ./blockTools.ts ***!
  51760. \***********************/
  51761. /*! exports provided: BlockTools */
  51762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51763. "use strict";
  51764. __webpack_require__.r(__webpack_exports__);
  51765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  51766. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/discardBlock */ "babylonjs/Misc/dataStorage");
  51767. /* 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__);
  51768. var BlockTools = /** @class */ (function () {
  51769. function BlockTools() {
  51770. }
  51771. BlockTools.GetBlockFromString = function (data, scene, nodeMaterial) {
  51772. switch (data) {
  51773. case "DesaturateBlock":
  51774. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DesaturateBlock"]("Desaturate");
  51775. case "RefractBlock":
  51776. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RefractBlock"]("Refract");
  51777. case "ReflectBlock":
  51778. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectBlock"]("Reflect");
  51779. case "DerivativeBlock":
  51780. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DerivativeBlock"]("Derivative");
  51781. case "Rotate2dBlock":
  51782. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["Rotate2dBlock"]("Rotate2d");
  51783. case "NormalBlendBlock":
  51784. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalBlendBlock"]("NormalBlend");
  51785. case "WorleyNoise3DBlock":
  51786. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WorleyNoise3DBlock"]("WorleyNoise3D");
  51787. case "SimplexPerlin3DBlock":
  51788. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SimplexPerlin3DBlock"]("SimplexPerlin3D");
  51789. case "BonesBlock":
  51790. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  51791. case "InstancesBlock":
  51792. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  51793. case "MorphTargetsBlock":
  51794. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  51795. case "DiscardBlock":
  51796. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DiscardBlock"]("Discard");
  51797. case "ImageProcessingBlock":
  51798. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  51799. case "ColorMergerBlock":
  51800. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  51801. case "VectorMergerBlock":
  51802. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  51803. case "ColorSplitterBlock":
  51804. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  51805. case "VectorSplitterBlock":
  51806. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  51807. case "TextureBlock":
  51808. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]("Texture");
  51809. case "ReflectionTextureBlock":
  51810. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Reflection texture");
  51811. case "LightBlock":
  51812. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  51813. case "FogBlock":
  51814. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  51815. case "VertexOutputBlock":
  51816. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  51817. case "FragmentOutputBlock":
  51818. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  51819. case "AddBlock":
  51820. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  51821. case "ClampBlock":
  51822. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  51823. case "ScaleBlock":
  51824. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  51825. case "CrossBlock":
  51826. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Cross");
  51827. case "DotBlock":
  51828. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  51829. case "PowBlock":
  51830. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PowBlock"]("Pow");
  51831. case "MultiplyBlock":
  51832. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  51833. case "TransformBlock":
  51834. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  51835. case "TrigonometryBlock":
  51836. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  51837. case "RemapBlock":
  51838. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  51839. case "NormalizeBlock":
  51840. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  51841. case "FresnelBlock":
  51842. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FresnelBlock"]("Fresnel");
  51843. case "LerpBlock":
  51844. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LerpBlock"]("Lerp");
  51845. case "NLerpBlock":
  51846. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NLerpBlock"]("NLerp");
  51847. case "DivideBlock":
  51848. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DivideBlock"]("Divide");
  51849. case "SubtractBlock":
  51850. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SubtractBlock"]("Subtract");
  51851. case "StepBlock":
  51852. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["StepBlock"]("Step");
  51853. case "SmoothStepBlock":
  51854. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SmoothStepBlock"]("Smooth step");
  51855. case "OneMinusBlock":
  51856. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["OneMinusBlock"]("One minus");
  51857. case "ReciprocalBlock":
  51858. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReciprocalBlock"]("Reciprocal");
  51859. case "ViewDirectionBlock":
  51860. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ViewDirectionBlock"]("View direction");
  51861. case "LightInformationBlock":
  51862. var lightInformationBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightInformationBlock"]("Light information");
  51863. lightInformationBlock.light = scene.lights.length ? scene.lights[0] : null;
  51864. return lightInformationBlock;
  51865. case "MaxBlock":
  51866. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MaxBlock"]("Max");
  51867. case "MinBlock":
  51868. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MinBlock"]("Min");
  51869. case "LengthBlock":
  51870. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LengthBlock"]("Length");
  51871. case "DistanceBlock":
  51872. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DistanceBlock"]("Distance");
  51873. case "NegateBlock":
  51874. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NegateBlock"]("Negate");
  51875. case "PerturbNormalBlock":
  51876. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PerturbNormalBlock"]("Perturb normal");
  51877. case "RandomNumberBlock":
  51878. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RandomNumberBlock"]("Random number");
  51879. case "ReplaceColorBlock":
  51880. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReplaceColorBlock"]("Replace color");
  51881. case "PosterizeBlock":
  51882. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PosterizeBlock"]("Posterize");
  51883. case "ArcTan2Block":
  51884. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ArcTan2Block"]("ArcTan2");
  51885. case "GradientBlock":
  51886. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["GradientBlock"]("Gradient");
  51887. case "FrontFacingBlock":
  51888. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FrontFacingBlock"]("Front facing");
  51889. case "CosBlock": {
  51890. var cosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Cos");
  51891. cosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Cos;
  51892. return cosBlock;
  51893. }
  51894. case "SinBlock": {
  51895. var sinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sin");
  51896. sinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sin;
  51897. return sinBlock;
  51898. }
  51899. case "AbsBlock": {
  51900. var absBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Abs");
  51901. absBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Abs;
  51902. return absBlock;
  51903. }
  51904. case "SqrtBlock": {
  51905. var sqrtBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sqrt");
  51906. sqrtBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sqrt;
  51907. return sqrtBlock;
  51908. }
  51909. case "ArcCosBlock": {
  51910. var acosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcCos");
  51911. acosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcCos;
  51912. return acosBlock;
  51913. }
  51914. case "ArcSinBlock": {
  51915. var asinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcSin");
  51916. asinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcSin;
  51917. return asinBlock;
  51918. }
  51919. case "TanBlock": {
  51920. var tanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Tan");
  51921. tanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Tan;
  51922. return tanBlock;
  51923. }
  51924. case "ArcTanBlock": {
  51925. var atanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcTan");
  51926. atanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcTan;
  51927. return atanBlock;
  51928. }
  51929. case "FractBlock": {
  51930. var fractBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Fract");
  51931. fractBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Fract;
  51932. return fractBlock;
  51933. }
  51934. case "SignBlock": {
  51935. var signBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sign");
  51936. signBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sign;
  51937. return signBlock;
  51938. }
  51939. case "LogBlock": {
  51940. var logBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Log");
  51941. logBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Log;
  51942. return logBlock;
  51943. }
  51944. case "ExpBlock": {
  51945. var expBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp");
  51946. expBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp;
  51947. return expBlock;
  51948. }
  51949. case "Exp2Block": {
  51950. var exp2Block = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp2");
  51951. exp2Block.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp2;
  51952. return exp2Block;
  51953. }
  51954. case "DegreesToRadiansBlock": {
  51955. var degreesToRadiansBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Degrees to radians");
  51956. degreesToRadiansBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Radians;
  51957. return degreesToRadiansBlock;
  51958. }
  51959. case "RadiansToDegreesBlock": {
  51960. var radiansToDegreesBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Radians to degrees");
  51961. radiansToDegreesBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Degrees;
  51962. return radiansToDegreesBlock;
  51963. }
  51964. case "RoundBlock": {
  51965. var roundBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Round");
  51966. roundBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Round;
  51967. return roundBlock;
  51968. }
  51969. case "CeilingBlock": {
  51970. var ceilingBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Ceiling");
  51971. ceilingBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Ceiling;
  51972. return ceilingBlock;
  51973. }
  51974. case "FloorBlock": {
  51975. var floorBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Floor");
  51976. floorBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Floor;
  51977. return floorBlock;
  51978. }
  51979. case "SawToothWaveBlock": {
  51980. var sawToothWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("SawTooth wave");
  51981. sawToothWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].SawTooth;
  51982. return sawToothWaveBlock;
  51983. }
  51984. case "SquareWaveBlock": {
  51985. var squareWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Square wave");
  51986. squareWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Square;
  51987. return squareWaveBlock;
  51988. }
  51989. case "TriangleWaveBlock": {
  51990. var triangleWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Triangle wave");
  51991. triangleWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Triangle;
  51992. return triangleWaveBlock;
  51993. }
  51994. case "WorldMatrixBlock": {
  51995. var worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  51996. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  51997. return worldMatrixBlock;
  51998. }
  51999. case "WorldViewMatrixBlock": {
  52000. var worldViewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View");
  52001. worldViewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView);
  52002. return worldViewMatrixBlock;
  52003. }
  52004. case "WorldViewProjectionMatrixBlock": {
  52005. var worldViewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View x Projection");
  52006. worldViewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection);
  52007. return worldViewProjectionMatrixBlock;
  52008. }
  52009. case "ViewMatrixBlock": {
  52010. var viewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View");
  52011. viewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View);
  52012. return viewMatrixBlock;
  52013. }
  52014. case "ViewProjectionMatrixBlock": {
  52015. var viewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View x Projection");
  52016. viewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection);
  52017. return viewProjectionMatrixBlock;
  52018. }
  52019. case "ProjectionMatrixBlock": {
  52020. var projectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Projection");
  52021. projectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection);
  52022. return projectionMatrixBlock;
  52023. }
  52024. case "CameraPositionBlock": {
  52025. var cameraPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Camera position");
  52026. cameraPosition.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition);
  52027. return cameraPosition;
  52028. }
  52029. case "FogColorBlock": {
  52030. var FogColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Fog color");
  52031. FogColor.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor);
  52032. return FogColor;
  52033. }
  52034. case "PositionBlock": {
  52035. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  52036. meshPosition.setAsAttribute("position");
  52037. return meshPosition;
  52038. }
  52039. case "UVBlock": {
  52040. var meshUV = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  52041. meshUV.setAsAttribute("uv");
  52042. return meshUV;
  52043. }
  52044. case "ColorBlock": {
  52045. var meshColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("color");
  52046. meshColor.setAsAttribute("color");
  52047. return meshColor;
  52048. }
  52049. case "NormalBlock": {
  52050. var meshNormal = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  52051. meshNormal.setAsAttribute("normal");
  52052. return meshNormal;
  52053. }
  52054. case "TangentBlock": {
  52055. var meshTangent = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  52056. meshTangent.setAsAttribute("tangent");
  52057. return meshTangent;
  52058. }
  52059. case "MatrixIndicesBlock": {
  52060. var meshMatrixIndices = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesIndices");
  52061. meshMatrixIndices.setAsAttribute("matricesIndices");
  52062. return meshMatrixIndices;
  52063. }
  52064. case "MatrixWeightsBlock": {
  52065. var meshMatrixWeights = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesWeights");
  52066. meshMatrixWeights.setAsAttribute("matricesWeights");
  52067. return meshMatrixWeights;
  52068. }
  52069. case "TimeBlock": {
  52070. 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);
  52071. timeBlock.animationType = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].Time;
  52072. return timeBlock;
  52073. }
  52074. case "DeltaTimeBlock": {
  52075. var deltaTimeBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Delta time");
  52076. deltaTimeBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime);
  52077. return deltaTimeBlock;
  52078. }
  52079. case "WorldPositionBlock": {
  52080. var worldPositionBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "position"; });
  52081. if (!worldPositionBlock) {
  52082. worldPositionBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  52083. worldPositionBlock.setAsAttribute("position");
  52084. }
  52085. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  52086. if (!worldMatrixBlock) {
  52087. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  52088. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  52089. }
  52090. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World position");
  52091. worldPositionBlock.connectTo(transformBlock);
  52092. worldMatrixBlock.connectTo(transformBlock);
  52093. return transformBlock;
  52094. }
  52095. case "WorldNormalBlock": {
  52096. var worldNormalBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "normal"; });
  52097. if (!worldNormalBlock) {
  52098. worldNormalBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  52099. worldNormalBlock.setAsAttribute("normal");
  52100. }
  52101. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  52102. if (!worldMatrixBlock) {
  52103. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  52104. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  52105. }
  52106. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World normal");
  52107. worldNormalBlock.connectTo(transformBlock);
  52108. worldMatrixBlock.connectTo(transformBlock);
  52109. return transformBlock;
  52110. }
  52111. case "WorldTangentBlock": {
  52112. var worldTangentBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "tangent"; });
  52113. if (!worldTangentBlock) {
  52114. worldTangentBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  52115. worldTangentBlock.setAsAttribute("tangent");
  52116. }
  52117. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  52118. if (!worldMatrixBlock) {
  52119. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  52120. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  52121. }
  52122. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World tangent");
  52123. worldTangentBlock.connectTo(transformBlock);
  52124. worldMatrixBlock.connectTo(transformBlock);
  52125. return transformBlock;
  52126. }
  52127. case "PBRMetallicRoughnessBlock":
  52128. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PBRMetallicRoughnessBlock"]("PBRMetallicRoughness");
  52129. case "SheenBlock":
  52130. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SheenBlock"]("Sheen");
  52131. case "AmbientOcclusionBlock":
  52132. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AmbientOcclusionBlock"]("AmbientOcclusion");
  52133. case "ReflectivityBlock":
  52134. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectivityBlock"]("Reflectivity");
  52135. case "AnisotropyBlock":
  52136. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnisotropyBlock"]("Anisotropy");
  52137. case "ReflectionBlock":
  52138. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionBlock"]("Reflection");
  52139. case "ClearCoatBlock":
  52140. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClearCoatBlock"]("ClearCoat");
  52141. }
  52142. return null;
  52143. };
  52144. BlockTools.GetColorFromConnectionNodeType = function (type) {
  52145. var color = "#880000";
  52146. switch (type) {
  52147. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  52148. color = "#cb9e27";
  52149. break;
  52150. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  52151. color = "#16bcb1";
  52152. break;
  52153. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  52154. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  52155. color = "#b786cb";
  52156. break;
  52157. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  52158. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  52159. color = "#be5126";
  52160. break;
  52161. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  52162. color = "#591990";
  52163. break;
  52164. }
  52165. return color;
  52166. };
  52167. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  52168. switch (type) {
  52169. case "Float":
  52170. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  52171. case "Vector2":
  52172. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  52173. case "Vector3":
  52174. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  52175. case "Vector4":
  52176. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  52177. case "Matrix":
  52178. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  52179. case "Color3":
  52180. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  52181. case "Color4":
  52182. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  52183. }
  52184. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  52185. };
  52186. BlockTools.GetStringFromConnectionNodeType = function (type) {
  52187. switch (type) {
  52188. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  52189. return "Float";
  52190. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  52191. return "Vector2";
  52192. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  52193. return "Vector3";
  52194. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  52195. return "Vector4";
  52196. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  52197. return "Color3";
  52198. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  52199. return "Color4";
  52200. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  52201. return "Matrix";
  52202. }
  52203. return "";
  52204. };
  52205. return BlockTools;
  52206. }());
  52207. /***/ }),
  52208. /***/ "./components/log/log.scss":
  52209. /*!*********************************!*\
  52210. !*** ./components/log/log.scss ***!
  52211. \*********************************/
  52212. /*! no static exports found */
  52213. /***/ (function(module, exports, __webpack_require__) {
  52214. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/dist/cjs.js!./log.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./components/log/log.scss");
  52215. if(typeof content === 'string') content = [[module.i, content, '']];
  52216. var transform;
  52217. var insertInto;
  52218. var options = {"hmr":true}
  52219. options.transform = transform
  52220. options.insertInto = undefined;
  52221. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  52222. if(content.locals) module.exports = content.locals;
  52223. if(false) {}
  52224. /***/ }),
  52225. /***/ "./components/log/logComponent.tsx":
  52226. /*!*****************************************!*\
  52227. !*** ./components/log/logComponent.tsx ***!
  52228. \*****************************************/
  52229. /*! exports provided: LogEntry, LogComponent */
  52230. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52231. "use strict";
  52232. __webpack_require__.r(__webpack_exports__);
  52233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  52234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  52235. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52236. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52237. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52238. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  52239. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  52240. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  52241. var LogEntry = /** @class */ (function () {
  52242. function LogEntry(message, isError) {
  52243. this.message = message;
  52244. this.isError = isError;
  52245. }
  52246. return LogEntry;
  52247. }());
  52248. var LogComponent = /** @class */ (function (_super) {
  52249. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LogComponent, _super);
  52250. function LogComponent(props) {
  52251. var _this = _super.call(this, props) || this;
  52252. _this.state = { logs: [] };
  52253. return _this;
  52254. }
  52255. LogComponent.prototype.componentDidMount = function () {
  52256. var _this = this;
  52257. this.props.globalState.onLogRequiredObservable.add(function (log) {
  52258. var currentLogs = _this.state.logs;
  52259. currentLogs.push(log);
  52260. _this.setState({ logs: currentLogs });
  52261. });
  52262. };
  52263. LogComponent.prototype.componentDidUpdate = function () {
  52264. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  52265. if (!logConsole) {
  52266. return;
  52267. }
  52268. logConsole.scrollTop = logConsole.scrollHeight;
  52269. };
  52270. LogComponent.prototype.render = function () {
  52271. var today = new Date();
  52272. var h = today.getHours();
  52273. var m = today.getMinutes();
  52274. var s = today.getSeconds();
  52275. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  52276. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, h + ":" + m + ":" + s + ": " + l.message));
  52277. })));
  52278. };
  52279. return LogComponent;
  52280. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52281. /***/ }),
  52282. /***/ "./components/nodeList/nodeList.scss":
  52283. /*!*******************************************!*\
  52284. !*** ./components/nodeList/nodeList.scss ***!
  52285. \*******************************************/
  52286. /*! no static exports found */
  52287. /***/ (function(module, exports, __webpack_require__) {
  52288. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/dist/cjs.js!./nodeList.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./components/nodeList/nodeList.scss");
  52289. if(typeof content === 'string') content = [[module.i, content, '']];
  52290. var transform;
  52291. var insertInto;
  52292. var options = {"hmr":true}
  52293. options.transform = transform
  52294. options.insertInto = undefined;
  52295. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  52296. if(content.locals) module.exports = content.locals;
  52297. if(false) {}
  52298. /***/ }),
  52299. /***/ "./components/nodeList/nodeListComponent.tsx":
  52300. /*!***************************************************!*\
  52301. !*** ./components/nodeList/nodeListComponent.tsx ***!
  52302. \***************************************************/
  52303. /*! exports provided: NodeListComponent */
  52304. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52305. "use strict";
  52306. __webpack_require__.r(__webpack_exports__);
  52307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  52308. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52309. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52310. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52311. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  52312. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  52313. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  52314. var NodeListComponent = /** @class */ (function (_super) {
  52315. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodeListComponent, _super);
  52316. function NodeListComponent(props) {
  52317. var _this = _super.call(this, props) || this;
  52318. _this.state = { filter: "" };
  52319. return _this;
  52320. }
  52321. NodeListComponent.prototype.filterContent = function (filter) {
  52322. this.setState({ filter: filter });
  52323. };
  52324. NodeListComponent.prototype.render = function () {
  52325. var _this = this;
  52326. // Block types used to create the menu from
  52327. var allBlocks = {
  52328. Animation: ["BonesBlock", "MorphTargetsBlock"],
  52329. Color_Management: ["ReplaceColorBlock", "PosterizeBlock", "GradientBlock", "DesaturateBlock"],
  52330. Conversion_Blocks: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  52331. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "TextureBlock", "ReflectionTextureBlock", "TimeBlock", "DeltaTimeBlock"],
  52332. Interpolation: ["LerpBlock", "StepBlock", "SmoothStepBlock", "NLerpBlock"],
  52333. Math__Standard: ["AddBlock", "DivideBlock", "MaxBlock", "MinBlock", "MultiplyBlock", "NegateBlock", "OneMinusBlock", "ReciprocalBlock", "ScaleBlock", "SignBlock", "SqrtBlock", "SubtractBlock"],
  52334. Math__Scientific: ["AbsBlock", "ArcCosBlock", "ArcSinBlock", "ArcTanBlock", "ArcTan2Block", "CosBlock", "DegreesToRadiansBlock", "ExpBlock", "Exp2Block", "FractBlock", "LogBlock", "PowBlock", "RadiansToDegreesBlock", "SawToothWaveBlock", "SinBlock", "SquareWaveBlock", "TanBlock", "TriangleWaveBlock"],
  52335. Math__Vector: ["CrossBlock", "DerivativeBlock", "DistanceBlock", "DotBlock", "FresnelBlock", "LengthBlock", "ReflectBlock", "RefractBlock", "Rotate2dBlock", "TransformBlock",],
  52336. Matrices: ["Matrix", "WorldMatrixBlock", "WorldViewMatrixBlock", "WorldViewProjectionMatrixBlock", "ViewMatrixBlock", "ViewProjectionMatrixBlock", "ProjectionMatrixBlock"],
  52337. Mesh: ["InstancesBlock", "PositionBlock", "UVBlock", "ColorBlock", "NormalBlock", "PerturbNormalBlock", "NormalBlendBlock", "TangentBlock", "MatrixIndicesBlock", "MatrixWeightsBlock", "WorldPositionBlock", "WorldNormalBlock", "WorldTangentBlock", "FrontFacingBlock"],
  52338. Noises: ["RandomNumberBlock", "SimplexPerlin3DBlock", "WorleyNoise3DBlock"],
  52339. Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock"],
  52340. PBR: ["PBRMetallicRoughnessBlock", "AmbientOcclusionBlock", "AnisotropyBlock", "ClearCoatBlock", "ReflectionBlock", "ReflectivityBlock", "SheenBlock"],
  52341. Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
  52342. Round: ["RoundBlock", "CeilingBlock", "FloorBlock"],
  52343. Scene: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ViewDirectionBlock"],
  52344. };
  52345. // Create node menu
  52346. var blockMenu = [];
  52347. for (var key in allBlocks) {
  52348. var blockList = allBlocks[key].filter(function (b) { return !_this.state.filter || b.toLowerCase().indexOf(_this.state.filter.toLowerCase()) !== -1; })
  52349. .sort(function (a, b) { return a.localeCompare(b); })
  52350. .map(function (block, i) {
  52351. var tooltip = NodeListComponent._Tooltips[block] || "";
  52352. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block, tooltip: tooltip });
  52353. });
  52354. if (blockList.length) {
  52355. 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));
  52356. }
  52357. }
  52358. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList" },
  52359. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  52360. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  52361. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  52362. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onBlur: function (evt) {
  52363. _this.props.globalState.blockKeyboardEvents = false;
  52364. }, onChange: function (evt) { return _this.filterContent(evt.target.value); } })),
  52365. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "list-container" }, blockMenu)))));
  52366. };
  52367. NodeListComponent._Tooltips = {
  52368. "BonesBlock": "Provides a world matrix for each vertex, based on skeletal (bone/joint) animation",
  52369. "MorphTargetsBlock": "Provides the final positions, normals, tangents, and uvs based on morph targets in a mesh",
  52370. "AddBlock": "Adds the left and right inputs of the same type together",
  52371. "DistanceBlock": "Provides a distance vector based on the left and right input vectors",
  52372. "DivideBlock": "Divides the left input by the right input of the same type",
  52373. "LengthBlock": "Outputs the length of an input vector",
  52374. "MaxBlock": "Outputs the largest value between the left and right inputs of the same type",
  52375. "MinBlock": "Outputs the smallest value between the left and right inputs of the same type",
  52376. "MultiplyBlock": "Multiplies the left and right inputs of the same type together",
  52377. "NegateBlock": "Multiplies the input by -1",
  52378. "OneMinusBlock": "Subtracts each channel of the input value from 1 (1 - input)",
  52379. "RandomNumberBlock": "Provides a random number based on an input seed",
  52380. "ReciprocalBlock": "Quotient of 1 divided by the input",
  52381. "ScaleBlock": "Multiplies the input channels by a float factor",
  52382. "SubtractBlock": "Subtracts the right input from the left input of the same type",
  52383. "GradientBlock": "Returns the color in the gradient represented by the target value of the input",
  52384. "PosterizeBlock": "Reduces the number of values in each channel to the number in the corresponding channel of steps",
  52385. "ReplaceColorBlock": "Replaces a reference color in value with the color in replacement blended by distance",
  52386. "ColorMergerBlock": "Combines float input channels into a color",
  52387. "ColorSplitterBlock": "Separates color input channels into individual floats",
  52388. "VectorMergerBlock": "Combines up to four input floats into a vector",
  52389. "VectorSplitterBlock": "Separates vectors input channels into individual floats",
  52390. "Color3": "A color made up of red, green, and blue channel values",
  52391. "Color4": "A color made up of red, green, blue, and alpha channel values",
  52392. "DeltaTimeBlock": "A float representing the time that has passed since the last frame was rendered",
  52393. "Float": "A floating point number representing a value with a fractional component",
  52394. "TextureBlock": "A node for reading a linked or embedded texture file",
  52395. "TimeBlock": "A float value that represents the time that has passed since the scene was loaded",
  52396. "Vector2": "a vector composed of X and Y channels",
  52397. "Vector3": "a vector composed of X, Y, and Z channels",
  52398. "Vector4": "a vector composed of X, Y, Z, and W channels",
  52399. "LerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target value",
  52400. "NLerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target's normalized value",
  52401. "SmoothStepBlock": "Outputs a value based on a the input value's position on a curve between the two edge values",
  52402. "StepBlock": "Outputs 1 for any input value above the edge input, outputs 0 for any input value below the edge input",
  52403. "Matrix": "A 4x4 table of related values",
  52404. "ProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the screen",
  52405. "ViewMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the view of the scene camera",
  52406. "ViewProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D view space before remapping to 2D screen space",
  52407. "WorldMatrixBlock": "A matrix to remap points in 3D local space to 3D world space",
  52408. "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",
  52409. "ColorBlock": "Outputs the RGBA color of each vertex in the mesh",
  52410. "InstancesBlock": "Provides the world matrix for each instance to apply this material to all instances",
  52411. "MatrixIndicesBlock": "A Vector4 representing the vertex to bone skinning assignments",
  52412. "MatrixWeightsBlock": "A Vector4 representing the vertex to bone skinning weights",
  52413. "NormalBlock": "A Vector3 representing the normal of each vertex of the attached mesh",
  52414. "PositionBlock": "A Vector3 representing the position of each vertex of the attached mesh",
  52415. "TangentBlock": "A Vector3 representing the tangent of each vertex of the attached mesh",
  52416. "UVBlock": "A Vector2 representing the UV coordinates of each vertex of the attached mesh",
  52417. "WorldNormal": "A Vector4 representing the normal of each vertex of the attached mesh transformed into world space",
  52418. "WorldTangent": "A Vector4 representing the tangent of each vertex of the attached mesh transformed into world space",
  52419. "PerturbNormalBlock": "Creates high-frequency detail normal vectors based on a normal map, the world position, and world normal",
  52420. "NormalBlend": "Outputs the result of blending two normal maps together using a per-channel screen",
  52421. "WorldPosition": "A Vector4 representing the position of each vertex of the attached mesh transformed into world space",
  52422. "DiscardBlock": "A final node that will not output a pixel below the cutoff value",
  52423. "FragmentOutputBlock": "A mandatory final node for outputing the color of each pixel",
  52424. "VertexOutputBlock": "A mandatory final node for outputing the position of each vertex",
  52425. "ClampBlock": "Outputs values above the maximum or below minimum as maximum or minimum values respectively",
  52426. "NormalizeBlock": "Remaps the length of a vector or color to 1",
  52427. "RemapBlock": "Remaps input value between sourceMin and sourceMax to a new range between targetMin and targetMax",
  52428. "CeilingBlock": "Outputs fractional values as the next higher whole number",
  52429. "FloorBlock": "Outputs fractional values as the next lower whole number",
  52430. "RoundBlock": "Outputs fractional values rounded to the nearest whole number",
  52431. "CameraPositionBlock": "Outputs a Vector3 position of the active scene camera",
  52432. "FogBlock": "Applies fog to the scene with an increasing opacity based on distance from the camera",
  52433. "FogColorBlock": "The system value for fog color pulled from the scene",
  52434. "ImageProcessingBlock": "Provides access to all of the Babylon image processing properties",
  52435. "LightBlock": "Outputs diffuse and specular contributions from one or more scene lights",
  52436. "LightInformationBlock": "Provides the direction, color and intensity of a selected light based on its world position",
  52437. "ReflectionTextureBlock": "Creates a reflection from the input texture",
  52438. "ViewDirectionBlock": "Outputs the direction vector of where the camera is aimed",
  52439. "AbsBlock": "Outputs the absolute value of the input value",
  52440. "ArcCosBlock": "Outputs the inverse of the cosine value based on the input value",
  52441. "ArcSinBlock": "Outputs the inverse of the sine value based on the input value",
  52442. "ArcTan2Block": "Outputs the inverse of the tangent value based on the input value",
  52443. "ArcTanBlock": "Outputs the inverse of the tangent value based on the input value",
  52444. "CosBlock": "Outputs the cosine value based on the input value",
  52445. "DegreesToRadiansBlock": "Converts the input degrees value to radians",
  52446. "Exp2Block": "Outputs the input value multiplied by itself 1 time. (Exponent of 2)",
  52447. "ExpBlock": "Outputs the input value multiplied by itself 9 time. (Exponent of 10)",
  52448. "FractBlock": "Outputs only the fractional value of a floating point number",
  52449. "LogBlock": "The logarithmic value based on the input value",
  52450. "PowBlock": "Outputs the input value multiplied by itself the number of times equal to the power input (Exponent of power)",
  52451. "RadiansToDegreesBlock": "Converts the input radians value to degrees",
  52452. "SawToothWaveBlock": "Outputs a sawtooth pattern value between -1 and 1 based on the input value",
  52453. "SignBlock": "returns 1 if the input is positive, 0 if input is equal to 0, or -1 if the input is negative",
  52454. "SinBlock": "Outputs the the sine value based on the input value",
  52455. "SqrtBlock": "Outputs the the square root of the input value",
  52456. "SquareWaveBlock": "Outputs a stepped pattern value between -1 and 1 based on the input value",
  52457. "TanBlock": "Outputs the the tangent value based on the input value",
  52458. "TriangleWaveBlock": "Outputs a sawtooth pattern value between 0 and 1 based on the input value",
  52459. "CrossBlock": "Outputs a vector that is perpendicular to two input vectors",
  52460. "DotBlock": "Outputs the cos of the angle between two vectors",
  52461. "FresnelBlock": "Outputs the grazing angle of the surface of the mesh, relative to a camera influenced by the bias and power inputs",
  52462. "TransformBlock": "Transforms a input vector based on the input matrix",
  52463. "DerivativeBlock": "FRAGMENT SHADER ONLY. Provides the rate of change for an input on a given axis (x,y).",
  52464. "DesaturateBlock": "Convert a color input into a grayscale representation.",
  52465. "WorldViewMatrixBlock": "A matrix to remap points in 3D local space to 3D world space, and ending in 2D camera space.",
  52466. "FrontFacingBlock": "Returns 1 if a mesh triangle faces the normal direction and 0 if it does not.",
  52467. "SimplexPerlin3DBlock": "Creates a type of gradient noise with few directional artifacts.",
  52468. "WorleyNoise3DBlock": "Creates a random pattern resembling cells.",
  52469. "ReflectBlock": "Outputs the direction of the input vector reflected across the surface normal.",
  52470. "RefractBlock": "Outputs a direction simulating a deflection of the input vector.",
  52471. "Rotate2dBlock": "Rotates UV coordinates around the W axis.",
  52472. "PBRMetallicRoughnessBlock": "PBR metallic/roughness material",
  52473. "SheenBlock": "PBR Sheen block",
  52474. "AmbientOcclusionBlock": "PBR Ambient occlusion block",
  52475. "ReflectivityBlock": "PBR Reflectivity block",
  52476. "AnisotropyBlock": "PBR Anisotropy block",
  52477. "ReflectionBlock": "PBR Reflection block",
  52478. "ClearCoatBlock": "PBR ClearCoat block",
  52479. };
  52480. return NodeListComponent;
  52481. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52482. /***/ }),
  52483. /***/ "./components/preview/previewAreaComponent.tsx":
  52484. /*!*****************************************************!*\
  52485. !*** ./components/preview/previewAreaComponent.tsx ***!
  52486. \*****************************************************/
  52487. /*! exports provided: PreviewAreaComponent */
  52488. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52489. "use strict";
  52490. __webpack_require__.r(__webpack_exports__);
  52491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewAreaComponent", function() { return PreviewAreaComponent; });
  52492. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52493. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52494. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52495. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  52496. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__);
  52497. var doubleSided = __webpack_require__(/*! ./svgs/doubleSided.svg */ "./components/preview/svgs/doubleSided.svg");
  52498. var depthPass = __webpack_require__(/*! ./svgs/depthPass.svg */ "./components/preview/svgs/depthPass.svg");
  52499. var omni = __webpack_require__(/*! ./svgs/omni.svg */ "./components/preview/svgs/omni.svg");
  52500. var directionalRight = __webpack_require__(/*! ./svgs/directionalRight.svg */ "./components/preview/svgs/directionalRight.svg");
  52501. var directionalLeft = __webpack_require__(/*! ./svgs/directionalLeft.svg */ "./components/preview/svgs/directionalLeft.svg");
  52502. var PreviewAreaComponent = /** @class */ (function (_super) {
  52503. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewAreaComponent, _super);
  52504. function PreviewAreaComponent(props) {
  52505. var _this = _super.call(this, props) || this;
  52506. _this.state = { isLoading: true };
  52507. _this._onIsLoadingChangedObserver = _this.props.globalState.onIsLoadingChanged.add(function (state) { return _this.setState({ isLoading: state }); });
  52508. return _this;
  52509. }
  52510. PreviewAreaComponent.prototype.componentWillUnmount = function () {
  52511. this.props.globalState.onIsLoadingChanged.remove(this._onIsLoadingChangedObserver);
  52512. };
  52513. PreviewAreaComponent.prototype.changeBackFaceCulling = function (value) {
  52514. this.props.globalState.backFaceCulling = value;
  52515. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("BackFaceCulling", value);
  52516. this.props.globalState.onBackFaceCullingChanged.notifyObservers();
  52517. this.forceUpdate();
  52518. };
  52519. PreviewAreaComponent.prototype.changeDepthPrePass = function (value) {
  52520. this.props.globalState.depthPrePass = value;
  52521. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DepthPrePass", value);
  52522. this.props.globalState.onDepthPrePassChanged.notifyObservers();
  52523. this.forceUpdate();
  52524. };
  52525. PreviewAreaComponent.prototype.render = function () {
  52526. var _this = this;
  52527. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  52528. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview", style: { height: this.props.width + "px" } },
  52529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "preview-canvas" }),
  52530. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "waitPanel" + (this.state.isLoading ? "" : " hidden") }, "Please wait, loading...")),
  52531. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-config-bar" },
  52532. 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" : "") },
  52533. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: doubleSided, alt: "" })),
  52534. 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" : "") },
  52535. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: depthPass, alt: "" })),
  52536. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off hemispheric light", onClick: function () {
  52537. _this.props.globalState.hemisphericLight = !_this.props.globalState.hemisphericLight;
  52538. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("HemisphericLight", _this.props.globalState.hemisphericLight);
  52539. _this.props.globalState.onLightUpdated.notifyObservers();
  52540. _this.forceUpdate();
  52541. }, className: "button hemispheric-light" + (this.props.globalState.hemisphericLight ? " selected" : "") },
  52542. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: omni, alt: "" })),
  52543. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #1", onClick: function () {
  52544. _this.props.globalState.directionalLight1 = !_this.props.globalState.directionalLight1;
  52545. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DirectionalLight1", _this.props.globalState.directionalLight1);
  52546. _this.props.globalState.onLightUpdated.notifyObservers();
  52547. _this.forceUpdate();
  52548. }, className: "button direction-light-1" + (this.props.globalState.directionalLight1 ? " selected" : "") },
  52549. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: directionalRight, alt: "" })),
  52550. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #0", onClick: function () {
  52551. _this.props.globalState.directionalLight0 = !_this.props.globalState.directionalLight0;
  52552. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DirectionalLight0", _this.props.globalState.directionalLight0);
  52553. _this.props.globalState.onLightUpdated.notifyObservers();
  52554. _this.forceUpdate();
  52555. }, className: "button direction-light-0" + (this.props.globalState.directionalLight0 ? " selected" : "") },
  52556. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: directionalLeft, alt: "" })))));
  52557. };
  52558. return PreviewAreaComponent;
  52559. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52560. /***/ }),
  52561. /***/ "./components/preview/previewManager.ts":
  52562. /*!**********************************************!*\
  52563. !*** ./components/preview/previewManager.ts ***!
  52564. \**********************************************/
  52565. /*! exports provided: PreviewManager */
  52566. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52567. "use strict";
  52568. __webpack_require__.r(__webpack_exports__);
  52569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  52570. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Misc/dataStorage");
  52571. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  52572. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  52573. /* harmony import */ var _log_logComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../log/logComponent */ "./components/log/logComponent.tsx");
  52574. var PreviewManager = /** @class */ (function () {
  52575. function PreviewManager(targetCanvas, globalState) {
  52576. var _this = this;
  52577. this._nodeMaterial = globalState.nodeMaterial;
  52578. this._globalState = globalState;
  52579. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  52580. var serializationObject = nodeMaterial.serialize();
  52581. _this._updatePreview(serializationObject);
  52582. });
  52583. this._onPreviewCommandActivatedObserver = globalState.onPreviewCommandActivated.add(function () {
  52584. _this._refreshPreviewMesh();
  52585. });
  52586. this._onLightUpdatedObserver = globalState.onLightUpdated.add(function () {
  52587. _this._prepareLights();
  52588. });
  52589. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  52590. var serializationObject = _this._nodeMaterial.serialize();
  52591. _this._updatePreview(serializationObject);
  52592. });
  52593. this._onPreviewBackgroundChangedObserver = globalState.onPreviewBackgroundChanged.add(function () {
  52594. _this._scene.clearColor = _this._globalState.backgroundColor;
  52595. });
  52596. this._onAnimationCommandActivatedObserver = globalState.onAnimationCommandActivated.add(function () {
  52597. _this._handleAnimations();
  52598. });
  52599. this._onBackFaceCullingChangedObserver = globalState.onBackFaceCullingChanged.add(function () {
  52600. _this._material.backFaceCulling = _this._globalState.backFaceCulling;
  52601. });
  52602. this._onDepthPrePassChangedObserver = globalState.onDepthPrePassChanged.add(function () {
  52603. _this._material.needDepthPrePass = _this._globalState.depthPrePass;
  52604. });
  52605. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  52606. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  52607. this._scene.clearColor = this._globalState.backgroundColor;
  52608. 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);
  52609. this._camera.lowerRadiusLimit = 3;
  52610. this._camera.upperRadiusLimit = 10;
  52611. this._camera.wheelPrecision = 20;
  52612. this._camera.minZ = 0.1;
  52613. this._camera.attachControl(targetCanvas, false);
  52614. this._lightParent = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["TransformNode"]("LightParent", this._scene);
  52615. this._refreshPreviewMesh();
  52616. this._engine.runRenderLoop(function () {
  52617. _this._engine.resize();
  52618. _this._scene.render();
  52619. });
  52620. // let cameraLastRotation = 0;
  52621. var lastOffsetX = undefined;
  52622. // const lightRotationParallaxSpeed = 0.5;
  52623. var lightRotationSpeed = 0.01;
  52624. this._scene.onPointerObservable.add(function (evt) {
  52625. if (_this._globalState.controlCamera) {
  52626. return;
  52627. }
  52628. if (evt.type === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERUP) {
  52629. lastOffsetX = undefined;
  52630. return;
  52631. }
  52632. if (evt.event.buttons !== 1) {
  52633. return;
  52634. }
  52635. if (lastOffsetX === undefined) {
  52636. lastOffsetX = evt.event.offsetX;
  52637. }
  52638. var rotateLighting = (lastOffsetX - evt.event.offsetX) * lightRotationSpeed;
  52639. _this._lightParent.rotation.y += rotateLighting;
  52640. lastOffsetX = evt.event.offsetX;
  52641. });
  52642. // this._scene.registerBeforeRender(() => {
  52643. // if (this._camera.alpha === cameraLastRotation) {
  52644. // return;
  52645. // }
  52646. // if (!this._globalState.controlCamera) {
  52647. // return;
  52648. // }
  52649. // var rotateLighting = (this._camera.alpha - cameraLastRotation) * lightRotationParallaxSpeed;
  52650. // this._lightParent.rotate(Vector3.Up(), rotateLighting);
  52651. // cameraLastRotation = this._camera.alpha;
  52652. // });
  52653. }
  52654. PreviewManager.prototype._handleAnimations = function () {
  52655. this._scene.stopAllAnimations();
  52656. if (this._globalState.rotatePreview) {
  52657. for (var _i = 0, _a = this._scene.rootNodes; _i < _a.length; _i++) {
  52658. var root = _a[_i];
  52659. var transformNode = root;
  52660. if (transformNode.getClassName() === "TransformNode" || transformNode.getClassName() === "Mesh" || transformNode.getClassName() === "GroundMesh") {
  52661. if (transformNode.rotationQuaternion) {
  52662. transformNode.rotation = transformNode.rotationQuaternion.toEulerAngles();
  52663. transformNode.rotationQuaternion = null;
  52664. }
  52665. 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);
  52666. }
  52667. }
  52668. }
  52669. };
  52670. PreviewManager.prototype._prepareLights = function () {
  52671. // Remove current lights
  52672. var currentLights = this._scene.lights.slice(0);
  52673. for (var _i = 0, currentLights_1 = currentLights; _i < currentLights_1.length; _i++) {
  52674. var light = currentLights_1[_i];
  52675. light.dispose();
  52676. }
  52677. // Create new lights based on settings
  52678. if (this._globalState.hemisphericLight) {
  52679. 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);
  52680. }
  52681. if (this._globalState.directionalLight0) {
  52682. 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);
  52683. dir0.intensity = 0.9;
  52684. dir0.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  52685. dir0.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  52686. dir0.parent = this._lightParent;
  52687. }
  52688. if (this._globalState.directionalLight1) {
  52689. 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);
  52690. dir1.intensity = 1.2;
  52691. dir1.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  52692. dir1.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  52693. dir1.parent = this._lightParent;
  52694. }
  52695. };
  52696. PreviewManager.prototype._prepareMeshes = function () {
  52697. var _this = this;
  52698. this._prepareLights();
  52699. // Framing
  52700. this._camera.useFramingBehavior = true;
  52701. var framingBehavior = this._camera.getBehaviorByName("Framing");
  52702. setTimeout(function () {
  52703. framingBehavior.framingTime = 0;
  52704. framingBehavior.elevationReturnTime = -1;
  52705. if (_this._scene.meshes.length) {
  52706. var worldExtends = _this._scene.getWorldExtends();
  52707. _this._camera.lowerRadiusLimit = null;
  52708. _this._camera.upperRadiusLimit = null;
  52709. framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
  52710. }
  52711. _this._camera.pinchPrecision = 200 / _this._camera.radius;
  52712. _this._camera.upperRadiusLimit = 5 * _this._camera.radius;
  52713. });
  52714. this._camera.wheelDeltaPercentage = 0.01;
  52715. this._camera.pinchDeltaPercentage = 0.01;
  52716. // Animations
  52717. this._handleAnimations();
  52718. // Material
  52719. var serializationObject = this._nodeMaterial.serialize();
  52720. this._updatePreview(serializationObject);
  52721. };
  52722. PreviewManager.prototype._refreshPreviewMesh = function () {
  52723. var _this = this;
  52724. if (this._currentType !== this._globalState.previewMeshType || this._currentType === _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom) {
  52725. this._currentType = this._globalState.previewMeshType;
  52726. if (this._meshes && this._meshes.length) {
  52727. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  52728. var mesh = _a[_i];
  52729. mesh.dispose();
  52730. }
  52731. }
  52732. this._meshes = [];
  52733. var lights = this._scene.lights.slice(0);
  52734. for (var _b = 0, lights_1 = lights; _b < lights_1.length; _b++) {
  52735. var light = lights_1[_b];
  52736. light.dispose();
  52737. }
  52738. this._engine.releaseEffects();
  52739. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].ShowLoadingScreen = false;
  52740. this._globalState.onIsLoadingChanged.notifyObservers(true);
  52741. switch (this._globalState.previewMeshType) {
  52742. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box:
  52743. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCube.glb", this._scene).then(function () {
  52744. var _a;
  52745. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  52746. _this._prepareMeshes();
  52747. });
  52748. break;
  52749. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Sphere:
  52750. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy-sphere", 32, 2, this._scene));
  52751. break;
  52752. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Torus:
  52753. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy-torus", 2, 0.5, 32, this._scene));
  52754. break;
  52755. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Cylinder:
  52756. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCylinder.glb", this._scene).then(function () {
  52757. var _a;
  52758. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  52759. _this._prepareMeshes();
  52760. });
  52761. return;
  52762. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Plane:
  52763. var plane = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateGround("dummy-plane", 2, 2, 128, this._scene);
  52764. plane.scaling.y = -1;
  52765. plane.rotation.x = Math.PI;
  52766. this._meshes.push(plane);
  52767. break;
  52768. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].ShaderBall:
  52769. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "shaderBall.glb", this._scene).then(function () {
  52770. var _a;
  52771. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  52772. _this._prepareMeshes();
  52773. });
  52774. return;
  52775. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom:
  52776. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("file:", this._globalState.previewMeshFile, this._scene).then(function () {
  52777. var _a;
  52778. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  52779. _this._prepareMeshes();
  52780. });
  52781. return;
  52782. }
  52783. this._prepareMeshes();
  52784. }
  52785. };
  52786. PreviewManager.prototype._forceCompilationAsync = function (material, mesh) {
  52787. return material.forceCompilationAsync(mesh);
  52788. };
  52789. PreviewManager.prototype._updatePreview = function (serializationObject) {
  52790. var _this = this;
  52791. try {
  52792. var tempMaterial_1 = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  52793. tempMaterial_1.backFaceCulling = this._globalState.backFaceCulling;
  52794. tempMaterial_1.needDepthPrePass = this._globalState.depthPrePass;
  52795. if (this._meshes.length) {
  52796. var tasks = this._meshes.map(function (m) { return _this._forceCompilationAsync(tempMaterial_1, m); });
  52797. Promise.all(tasks).then(function () {
  52798. for (var _i = 0, _a = _this._meshes; _i < _a.length; _i++) {
  52799. var mesh = _a[_i];
  52800. mesh.material = tempMaterial_1;
  52801. }
  52802. if (_this._material) {
  52803. _this._material.dispose();
  52804. }
  52805. _this._material = tempMaterial_1;
  52806. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  52807. }).catch(function (reason) {
  52808. _this._globalState.onLogRequiredObservable.notifyObservers(new _log_logComponent__WEBPACK_IMPORTED_MODULE_2__["LogEntry"]("Shader compilation error:\r\n" + reason, true));
  52809. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  52810. });
  52811. }
  52812. else {
  52813. this._material = tempMaterial_1;
  52814. }
  52815. }
  52816. catch (err) {
  52817. // Ignore the error
  52818. }
  52819. };
  52820. PreviewManager.prototype.dispose = function () {
  52821. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  52822. this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver);
  52823. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  52824. this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver);
  52825. this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver);
  52826. this._globalState.onBackFaceCullingChanged.remove(this._onBackFaceCullingChangedObserver);
  52827. this._globalState.onDepthPrePassChanged.remove(this._onDepthPrePassChangedObserver);
  52828. this._globalState.onLightUpdated.remove(this._onLightUpdatedObserver);
  52829. if (this._material) {
  52830. this._material.dispose();
  52831. }
  52832. this._camera.dispose();
  52833. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  52834. var mesh = _a[_i];
  52835. mesh.dispose();
  52836. }
  52837. this._scene.dispose();
  52838. this._engine.dispose();
  52839. };
  52840. return PreviewManager;
  52841. }());
  52842. /***/ }),
  52843. /***/ "./components/preview/previewMeshControlComponent.tsx":
  52844. /*!************************************************************!*\
  52845. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  52846. \************************************************************/
  52847. /*! exports provided: PreviewMeshControlComponent */
  52848. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52849. "use strict";
  52850. __webpack_require__.r(__webpack_exports__);
  52851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  52852. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52853. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52854. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52855. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  52856. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  52857. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  52858. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  52859. var popUpIcon = __webpack_require__(/*! ./svgs/popOut.svg */ "./components/preview/svgs/popOut.svg");
  52860. var colorPicker = __webpack_require__(/*! ./svgs/colorPicker.svg */ "./components/preview/svgs/colorPicker.svg");
  52861. var pauseIcon = __webpack_require__(/*! ./svgs/pauseIcon.svg */ "./components/preview/svgs/pauseIcon.svg");
  52862. var playIcon = __webpack_require__(/*! ./svgs/playIcon.svg */ "./components/preview/svgs/playIcon.svg");
  52863. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  52864. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewMeshControlComponent, _super);
  52865. function PreviewMeshControlComponent(props) {
  52866. var _this = _super.call(this, props) || this;
  52867. _this.colorInputRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  52868. _this.filePickerRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  52869. return _this;
  52870. }
  52871. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  52872. if (this.props.globalState.previewMeshType === newOne) {
  52873. return;
  52874. }
  52875. this.props.globalState.previewMeshType = newOne;
  52876. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  52877. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("PreviewMeshType", newOne);
  52878. this.forceUpdate();
  52879. };
  52880. PreviewMeshControlComponent.prototype.useCustomMesh = function (evt) {
  52881. var files = evt.target.files;
  52882. if (files && files.length) {
  52883. var file = files[0];
  52884. this.props.globalState.previewMeshFile = file;
  52885. this.props.globalState.previewMeshType = _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Custom;
  52886. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  52887. this.props.globalState.listOfCustomPreviewMeshFiles = [file];
  52888. this.forceUpdate();
  52889. }
  52890. if (this.filePickerRef.current) {
  52891. this.filePickerRef.current.value = "";
  52892. }
  52893. };
  52894. PreviewMeshControlComponent.prototype.onPopUp = function () {
  52895. this.props.togglePreviewAreaComponent();
  52896. };
  52897. PreviewMeshControlComponent.prototype.changeAnimation = function () {
  52898. this.props.globalState.rotatePreview = !this.props.globalState.rotatePreview;
  52899. this.props.globalState.onAnimationCommandActivated.notifyObservers();
  52900. this.forceUpdate();
  52901. };
  52902. PreviewMeshControlComponent.prototype.changeBackground = function (value) {
  52903. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(value);
  52904. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorR", newColor.r);
  52905. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorG", newColor.g);
  52906. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorB", newColor.b);
  52907. var newBackgroundColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromColor3(newColor, 1.0);
  52908. this.props.globalState.backgroundColor = newBackgroundColor;
  52909. this.props.globalState.onPreviewBackgroundChanged.notifyObservers();
  52910. };
  52911. PreviewMeshControlComponent.prototype.changeBackgroundClick = function () {
  52912. var _a;
  52913. (_a = this.colorInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
  52914. };
  52915. PreviewMeshControlComponent.prototype.render = function () {
  52916. var _this = this;
  52917. var meshTypeOptions = [
  52918. { label: "Cube", value: _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Box },
  52919. { label: "Cylinder", value: _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Cylinder },
  52920. { label: "Plane", value: _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Plane },
  52921. { label: "Shader ball", value: _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].ShaderBall },
  52922. { label: "Sphere", value: _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Sphere },
  52923. { label: "Load...", value: _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Custom + 1 }
  52924. ];
  52925. if (this.props.globalState.listOfCustomPreviewMeshFiles.length > 0) {
  52926. meshTypeOptions.splice(0, 0, {
  52927. label: "Custom", value: _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Custom
  52928. });
  52929. }
  52930. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  52931. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__["OptionsLineComponent"], { label: "", options: meshTypeOptions, target: this.props.globalState, propertyName: "previewMeshType", noDirectUpdate: true, onSelect: function (value) {
  52932. var _a;
  52933. if (value !== _previewMeshType__WEBPACK_IMPORTED_MODULE_3__["PreviewMeshType"].Custom + 1) {
  52934. _this.changeMeshType(value);
  52935. }
  52936. else {
  52937. (_a = _this.filePickerRef.current) === null || _a === void 0 ? void 0 : _a.click();
  52938. }
  52939. } }),
  52940. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { style: {
  52941. display: "none"
  52942. }, title: "Preview with a custom mesh" },
  52943. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.filePickerRef, id: "file-picker", type: "file", onChange: function (evt) { return _this.useCustomMesh(evt); }, accept: ".gltf, .glb, .babylon, .obj" })),
  52944. 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: "" })),
  52945. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "color-picker-button", title: "Background color", className: "button align", onClick: function (_) { return _this.changeBackgroundClick(); } },
  52946. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: colorPicker, alt: "" }),
  52947. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "color-picker", id: "color-picker-label" }),
  52948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.colorInputRef, id: "color-picker", type: "color", onChange: function (evt) { return _this.changeBackground(evt.target.value); } })),
  52949. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Open preview in new window", id: "preview-new-window", onClick: function () { return _this.onPopUp(); }, className: "button" },
  52950. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: popUpIcon, alt: "" }))));
  52951. };
  52952. return PreviewMeshControlComponent;
  52953. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52954. /***/ }),
  52955. /***/ "./components/preview/previewMeshType.ts":
  52956. /*!***********************************************!*\
  52957. !*** ./components/preview/previewMeshType.ts ***!
  52958. \***********************************************/
  52959. /*! exports provided: PreviewMeshType */
  52960. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52961. "use strict";
  52962. __webpack_require__.r(__webpack_exports__);
  52963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshType", function() { return PreviewMeshType; });
  52964. var PreviewMeshType;
  52965. (function (PreviewMeshType) {
  52966. PreviewMeshType[PreviewMeshType["Sphere"] = 0] = "Sphere";
  52967. PreviewMeshType[PreviewMeshType["Box"] = 1] = "Box";
  52968. PreviewMeshType[PreviewMeshType["Torus"] = 2] = "Torus";
  52969. PreviewMeshType[PreviewMeshType["Cylinder"] = 3] = "Cylinder";
  52970. PreviewMeshType[PreviewMeshType["Plane"] = 4] = "Plane";
  52971. PreviewMeshType[PreviewMeshType["ShaderBall"] = 5] = "ShaderBall";
  52972. PreviewMeshType[PreviewMeshType["Custom"] = 6] = "Custom";
  52973. })(PreviewMeshType || (PreviewMeshType = {}));
  52974. /***/ }),
  52975. /***/ "./components/preview/svgs/colorPicker.svg":
  52976. /*!*************************************************!*\
  52977. !*** ./components/preview/svgs/colorPicker.svg ***!
  52978. \*************************************************/
  52979. /*! no static exports found */
  52980. /***/ (function(module, exports) {
  52981. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EcolorPicker%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M22.76,11c-1.75,1.25,2.18,3.18.18,4.33-1.61.92-3.23-1.69-6.14-2.34A7.34,7.34,0,0,0,8.58,23c1.82,4.11,6.31,6.22,11.46,6.22C26.91,29.22,32,25.6,32,20,32,14.16,24.89,9.5,22.76,11ZM13.1,24.85a3,3,0,1,1,3-3A3,3,0,0,1,13.1,24.85Zm5.78-2.43a2.67,2.67,0,1,1-2.66,2.66A2.66,2.66,0,0,1,18.88,22.42ZM24.77,22a2.34,2.34,0,1,1-2.34,2.34A2.34,2.34,0,0,1,24.77,22Zm3.81-3.08a2,2,0,1,1-2,2A2,2,0,0,1,28.58,18.92Zm-.95-4.22a1.7,1.7,0,1,1-1.69,1.69A1.69,1.69,0,0,1,27.63,14.7Z'/%3E%3C/g%3E%3C/svg%3E"
  52982. /***/ }),
  52983. /***/ "./components/preview/svgs/depthPass.svg":
  52984. /*!***********************************************!*\
  52985. !*** ./components/preview/svgs/depthPass.svg ***!
  52986. \***********************************************/
  52987. /*! no static exports found */
  52988. /***/ (function(module, exports) {
  52989. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdepthPass%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='22.03 16.16 19.89 12.45 11.74 26.56 16.03 26.56 22.03 16.16'/%3E%3Cpolygon class='cls-1' points='17.53 13.54 15.38 9.82 7.24 23.93 11.52 23.93 17.53 13.54'/%3E%3Cpolygon class='cls-1' points='24.39 15.07 16.24 29.18 32.54 29.18 24.39 15.07'/%3E%3C/g%3E%3C/svg%3E"
  52990. /***/ }),
  52991. /***/ "./components/preview/svgs/directionalLeft.svg":
  52992. /*!*****************************************************!*\
  52993. !*** ./components/preview/svgs/directionalLeft.svg ***!
  52994. \*****************************************************/
  52995. /*! no static exports found */
  52996. /***/ (function(module, exports) {
  52997. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdirectionalLeft%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='27.89 22.51 27.89 28.12 21.52 21.75 25.61 17.66 11.27 10.81 10.01 12.07 16.86 26.41 20.74 22.53 27.11 28.9 21.5 28.9 21.5 30.01 29 30.01 29 22.51 27.89 22.51'/%3E%3C/g%3E%3C/svg%3E"
  52998. /***/ }),
  52999. /***/ "./components/preview/svgs/directionalRight.svg":
  53000. /*!******************************************************!*\
  53001. !*** ./components/preview/svgs/directionalRight.svg ***!
  53002. \******************************************************/
  53003. /*! no static exports found */
  53004. /***/ (function(module, exports) {
  53005. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdirectionalRight%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='23.14 26.41 29.99 12.07 28.73 10.81 14.39 17.66 18.48 21.75 12.11 28.12 12.11 22.51 11 22.51 11 30.01 18.5 30.01 18.5 28.9 12.89 28.9 19.26 22.53 23.14 26.41'/%3E%3C/g%3E%3C/svg%3E"
  53006. /***/ }),
  53007. /***/ "./components/preview/svgs/doubleSided.svg":
  53008. /*!*************************************************!*\
  53009. !*** ./components/preview/svgs/doubleSided.svg ***!
  53010. \*************************************************/
  53011. /*! no static exports found */
  53012. /***/ (function(module, exports) {
  53013. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdoubeSided%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='27.3 14.7 26.52 15.48 30.48 19.44 21.33 19.44 21.33 11.15 18.65 11.15 18.65 19.44 9.52 19.44 13.48 15.48 12.7 14.7 7.39 20 12.7 25.3 13.48 24.52 9.52 20.56 18.65 20.56 18.65 28.85 21.33 28.85 21.33 20.56 30.48 20.56 26.52 24.52 27.3 25.3 32.61 20 27.3 14.7'/%3E%3C/g%3E%3C/svg%3E"
  53014. /***/ }),
  53015. /***/ "./components/preview/svgs/omni.svg":
  53016. /*!******************************************!*\
  53017. !*** ./components/preview/svgs/omni.svg ***!
  53018. \******************************************/
  53019. /*! no static exports found */
  53020. /***/ (function(module, exports) {
  53021. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Eomni%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M26.22,20A6.22,6.22,0,1,1,20,13.78,6.23,6.23,0,0,1,26.22,20ZM11.51,17.6,9.11,20l2.4,2.4Zm.79,6.71V27.7h3.39Zm5.3,4.18,2.4,2.4,2.4-2.4Zm6.71-.79H27.7V24.31Zm4.18-5.3,2.4-2.4-2.4-2.4Zm-.79-6.71V12.3H24.31Zm-5.3-4.18L20,9.11l-2.4,2.4Zm-6.71.79H12.3v3.39Z'/%3E%3C/g%3E%3C/svg%3E"
  53022. /***/ }),
  53023. /***/ "./components/preview/svgs/pauseIcon.svg":
  53024. /*!***********************************************!*\
  53025. !*** ./components/preview/svgs/pauseIcon.svg ***!
  53026. \***********************************************/
  53027. /*! no static exports found */
  53028. /***/ (function(module, exports) {
  53029. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EpauseIcon%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M17,28H13V12h4Zm9-16H22V28h4Z'/%3E%3C/g%3E%3C/svg%3E"
  53030. /***/ }),
  53031. /***/ "./components/preview/svgs/playIcon.svg":
  53032. /*!**********************************************!*\
  53033. !*** ./components/preview/svgs/playIcon.svg ***!
  53034. \**********************************************/
  53035. /*! no static exports found */
  53036. /***/ (function(module, exports) {
  53037. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EplayIcon%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='12.99 9.98 12.99 28.04 29 19 12.99 9.98'/%3E%3C/g%3E%3C/svg%3E"
  53038. /***/ }),
  53039. /***/ "./components/preview/svgs/popOut.svg":
  53040. /*!********************************************!*\
  53041. !*** ./components/preview/svgs/popOut.svg ***!
  53042. \********************************************/
  53043. /*! no static exports found */
  53044. /***/ (function(module, exports) {
  53045. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EpopOut%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M10.5,10.5v19h19v-19Zm18,18H20V20H11.5V11.5h17Z'/%3E%3C/g%3E%3C/svg%3E"
  53046. /***/ }),
  53047. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  53048. /*!**************************************************************************!*\
  53049. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  53050. \**************************************************************************/
  53051. /*! exports provided: Color3PropertyTabComponent */
  53052. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53053. "use strict";
  53054. __webpack_require__.r(__webpack_exports__);
  53055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  53056. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53057. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53058. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53059. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  53060. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  53061. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3PropertyTabComponent, _super);
  53062. function Color3PropertyTabComponent() {
  53063. return _super !== null && _super.apply(this, arguments) || this;
  53064. }
  53065. Color3PropertyTabComponent.prototype.render = function () {
  53066. var _this = this;
  53067. 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 () {
  53068. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53069. } }));
  53070. };
  53071. return Color3PropertyTabComponent;
  53072. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53073. /***/ }),
  53074. /***/ "./components/propertyTab/properties/color4PropertyTabComponent.tsx":
  53075. /*!**************************************************************************!*\
  53076. !*** ./components/propertyTab/properties/color4PropertyTabComponent.tsx ***!
  53077. \**************************************************************************/
  53078. /*! exports provided: Color4PropertyTabComponent */
  53079. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53080. "use strict";
  53081. __webpack_require__.r(__webpack_exports__);
  53082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4PropertyTabComponent", function() { return Color4PropertyTabComponent; });
  53083. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53084. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53085. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53086. /* harmony import */ var _sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color4LineComponent */ "./sharedComponents/color4LineComponent.tsx");
  53087. var Color4PropertyTabComponent = /** @class */ (function (_super) {
  53088. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4PropertyTabComponent, _super);
  53089. function Color4PropertyTabComponent() {
  53090. return _super !== null && _super.apply(this, arguments) || this;
  53091. }
  53092. Color4PropertyTabComponent.prototype.render = function () {
  53093. var _this = this;
  53094. 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 () {
  53095. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53096. } }));
  53097. };
  53098. return Color4PropertyTabComponent;
  53099. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53100. /***/ }),
  53101. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  53102. /*!*************************************************************************!*\
  53103. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  53104. \*************************************************************************/
  53105. /*! exports provided: FloatPropertyTabComponent */
  53106. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53107. "use strict";
  53108. __webpack_require__.r(__webpack_exports__);
  53109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  53110. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53111. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53112. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53113. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  53114. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  53115. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatPropertyTabComponent, _super);
  53116. function FloatPropertyTabComponent() {
  53117. return _super !== null && _super.apply(this, arguments) || this;
  53118. }
  53119. FloatPropertyTabComponent.prototype.render = function () {
  53120. var _this = this;
  53121. 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 () {
  53122. if (_this.props.inputBlock.isConstant) {
  53123. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53124. }
  53125. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53126. } }));
  53127. };
  53128. return FloatPropertyTabComponent;
  53129. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53130. /***/ }),
  53131. /***/ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx":
  53132. /*!**************************************************************************!*\
  53133. !*** ./components/propertyTab/properties/matrixPropertyTabComponent.tsx ***!
  53134. \**************************************************************************/
  53135. /*! exports provided: MatrixPropertyTabComponent */
  53136. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53137. "use strict";
  53138. __webpack_require__.r(__webpack_exports__);
  53139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixPropertyTabComponent", function() { return MatrixPropertyTabComponent; });
  53140. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53141. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53142. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53143. /* harmony import */ var _sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/matrixLineComponent */ "./sharedComponents/matrixLineComponent.tsx");
  53144. var MatrixPropertyTabComponent = /** @class */ (function (_super) {
  53145. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixPropertyTabComponent, _super);
  53146. function MatrixPropertyTabComponent() {
  53147. return _super !== null && _super.apply(this, arguments) || this;
  53148. }
  53149. MatrixPropertyTabComponent.prototype.render = function () {
  53150. var _this = this;
  53151. 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 () {
  53152. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53153. }, mode: this.props.inputBlock.matrixMode, onModeChange: function (mode) {
  53154. _this.props.inputBlock.matrixMode = mode;
  53155. } }));
  53156. };
  53157. return MatrixPropertyTabComponent;
  53158. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53159. /***/ }),
  53160. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  53161. /*!***************************************************************************!*\
  53162. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  53163. \***************************************************************************/
  53164. /*! exports provided: Vector2PropertyTabComponent */
  53165. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53166. "use strict";
  53167. __webpack_require__.r(__webpack_exports__);
  53168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  53169. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53170. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53171. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53172. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  53173. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  53174. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2PropertyTabComponent, _super);
  53175. function Vector2PropertyTabComponent() {
  53176. return _super !== null && _super.apply(this, arguments) || this;
  53177. }
  53178. Vector2PropertyTabComponent.prototype.render = function () {
  53179. var _this = this;
  53180. 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 () {
  53181. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53182. } }));
  53183. };
  53184. return Vector2PropertyTabComponent;
  53185. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53186. /***/ }),
  53187. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  53188. /*!***************************************************************************!*\
  53189. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  53190. \***************************************************************************/
  53191. /*! exports provided: Vector3PropertyTabComponent */
  53192. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53193. "use strict";
  53194. __webpack_require__.r(__webpack_exports__);
  53195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  53196. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53197. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53198. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53199. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  53200. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  53201. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3PropertyTabComponent, _super);
  53202. function Vector3PropertyTabComponent() {
  53203. return _super !== null && _super.apply(this, arguments) || this;
  53204. }
  53205. Vector3PropertyTabComponent.prototype.render = function () {
  53206. var _this = this;
  53207. 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 () {
  53208. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53209. } }));
  53210. };
  53211. return Vector3PropertyTabComponent;
  53212. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53213. /***/ }),
  53214. /***/ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx":
  53215. /*!***************************************************************************!*\
  53216. !*** ./components/propertyTab/properties/vector4PropertyTabComponent.tsx ***!
  53217. \***************************************************************************/
  53218. /*! exports provided: Vector4PropertyTabComponent */
  53219. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53220. "use strict";
  53221. __webpack_require__.r(__webpack_exports__);
  53222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4PropertyTabComponent", function() { return Vector4PropertyTabComponent; });
  53223. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53224. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53225. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53226. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  53227. var Vector4PropertyTabComponent = /** @class */ (function (_super) {
  53228. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4PropertyTabComponent, _super);
  53229. function Vector4PropertyTabComponent() {
  53230. return _super !== null && _super.apply(this, arguments) || this;
  53231. }
  53232. Vector4PropertyTabComponent.prototype.render = function () {
  53233. var _this = this;
  53234. 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 () {
  53235. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53236. } }));
  53237. };
  53238. return Vector4PropertyTabComponent;
  53239. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53240. /***/ }),
  53241. /***/ "./components/propertyTab/propertyTab.scss":
  53242. /*!*************************************************!*\
  53243. !*** ./components/propertyTab/propertyTab.scss ***!
  53244. \*************************************************/
  53245. /*! no static exports found */
  53246. /***/ (function(module, exports, __webpack_require__) {
  53247. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/dist/cjs.js!./propertyTab.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./components/propertyTab/propertyTab.scss");
  53248. if(typeof content === 'string') content = [[module.i, content, '']];
  53249. var transform;
  53250. var insertInto;
  53251. var options = {"hmr":true}
  53252. options.transform = transform
  53253. options.insertInto = undefined;
  53254. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  53255. if(content.locals) module.exports = content.locals;
  53256. if(false) {}
  53257. /***/ }),
  53258. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  53259. /*!*********************************************************!*\
  53260. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  53261. \*********************************************************/
  53262. /*! exports provided: PropertyTabComponent */
  53263. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53264. "use strict";
  53265. __webpack_require__.r(__webpack_exports__);
  53266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  53267. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53268. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53269. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53270. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  53271. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53272. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  53273. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  53274. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  53275. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  53276. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../serializationTools */ "./serializationTools.ts");
  53277. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  53278. /* harmony import */ var _diagram_graphNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../diagram/graphNode */ "./diagram/graphNode.ts");
  53279. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  53280. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../diagram/graphFrame */ "./diagram/graphFrame.ts");
  53281. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  53282. /* harmony import */ var _diagram_properties_framePropertyComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../diagram/properties/framePropertyComponent */ "./diagram/properties/framePropertyComponent.tsx");
  53283. /* harmony import */ var _diagram_properties_frameNodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../diagram/properties/frameNodePortPropertyComponent */ "./diagram/properties/frameNodePortPropertyComponent.tsx");
  53284. /* harmony import */ var _diagram_properties_nodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../diagram/properties/nodePortPropertyComponent */ "./diagram/properties/nodePortPropertyComponent.tsx");
  53285. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  53286. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  53287. /* harmony import */ var _sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../sharedComponents/color4LineComponent */ "./sharedComponents/color4LineComponent.tsx");
  53288. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  53289. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  53290. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  53291. /* harmony import */ var _diagram_nodePort__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../diagram/nodePort */ "./diagram/nodePort.ts");
  53292. /* harmony import */ var _diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../diagram/graphCanvas */ "./diagram/graphCanvas.tsx");
  53293. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  53294. var PropertyTabComponent = /** @class */ (function (_super) {
  53295. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyTabComponent, _super);
  53296. function PropertyTabComponent(props) {
  53297. var _this = _super.call(this, props) || this;
  53298. _this.state = { currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: null };
  53299. return _this;
  53300. }
  53301. PropertyTabComponent.prototype.componentDidMount = function () {
  53302. var _this = this;
  53303. this.props.globalState.onSelectionChangedObservable.add(function (selection) {
  53304. if (selection instanceof _diagram_graphNode__WEBPACK_IMPORTED_MODULE_9__["GraphNode"]) {
  53305. _this.setState({ currentNode: selection, currentFrame: null, currentFrameNodePort: null, currentNodePort: null });
  53306. }
  53307. else if (selection instanceof _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_11__["GraphFrame"]) {
  53308. _this.setState({ currentNode: null, currentFrame: selection, currentFrameNodePort: null, currentNodePort: null });
  53309. }
  53310. else if (Object(_diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_23__["isFramePortData"])(selection)) {
  53311. _this.setState({ currentNode: null, currentFrame: selection.frame, currentFrameNodePort: selection.port, currentNodePort: null });
  53312. }
  53313. else if (selection instanceof _diagram_nodePort__WEBPACK_IMPORTED_MODULE_22__["NodePort"] && selection.hasLabel()) {
  53314. _this.setState({ currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: selection });
  53315. }
  53316. else {
  53317. _this.setState({ currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: null });
  53318. }
  53319. });
  53320. this._onBuiltObserver = this.props.globalState.onBuiltObservable.add(function () {
  53321. _this.forceUpdate();
  53322. });
  53323. };
  53324. PropertyTabComponent.prototype.componentWillUnmount = function () {
  53325. this.props.globalState.onBuiltObservable.remove(this._onBuiltObserver);
  53326. };
  53327. PropertyTabComponent.prototype.processInputBlockUpdate = function (ib) {
  53328. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53329. if (ib.isConstant) {
  53330. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53331. }
  53332. };
  53333. PropertyTabComponent.prototype.renderInputBlock = function (block) {
  53334. var _this = this;
  53335. switch (block.type) {
  53336. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Float:
  53337. var cantDisplaySlider = (isNaN(block.min) || isNaN(block.max) || block.min === block.max);
  53338. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: block.uniqueId },
  53339. block.isBoolean &&
  53340. 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 () {
  53341. _this.processInputBlockUpdate(block);
  53342. } }),
  53343. !block.isBoolean && cantDisplaySlider &&
  53344. 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); } }),
  53345. !block.isBoolean && !cantDisplaySlider &&
  53346. 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); } })));
  53347. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Color3:
  53348. 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); } }));
  53349. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Color4:
  53350. 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); } }));
  53351. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  53352. 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); } }));
  53353. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  53354. 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); } }));
  53355. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  53356. 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); } }));
  53357. }
  53358. return null;
  53359. };
  53360. PropertyTabComponent.prototype.load = function (file) {
  53361. var _this = this;
  53362. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  53363. var decoder = new TextDecoder("utf-8");
  53364. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Deserialize(JSON.parse(decoder.decode(data)), _this.props.globalState);
  53365. }, undefined, true);
  53366. };
  53367. PropertyTabComponent.prototype.save = function () {
  53368. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState);
  53369. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(this.props.globalState.hostDocument, json, "nodeMaterial.json");
  53370. };
  53371. PropertyTabComponent.prototype.customSave = function () {
  53372. var _this = this;
  53373. this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Saving your material to Babylon.js snippet server...", isError: false });
  53374. this.props.globalState.customSave.action(_serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState)).then(function () {
  53375. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Material saved successfully", isError: false });
  53376. }).catch(function (err) {
  53377. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: err, isError: true });
  53378. });
  53379. };
  53380. PropertyTabComponent.prototype.saveToSnippetServer = function () {
  53381. var _this = this;
  53382. var material = this.props.globalState.nodeMaterial;
  53383. var xmlHttp = new XMLHttpRequest();
  53384. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(material, this.props.globalState);
  53385. xmlHttp.onreadystatechange = function () {
  53386. if (xmlHttp.readyState == 4) {
  53387. if (xmlHttp.status == 200) {
  53388. var snippet = JSON.parse(xmlHttp.responseText);
  53389. var oldId = material.snippetId;
  53390. material.snippetId = snippet.id;
  53391. if (snippet.version && snippet.version != "0") {
  53392. material.snippetId += "#" + snippet.version;
  53393. }
  53394. _this.forceUpdate();
  53395. if (navigator.clipboard) {
  53396. navigator.clipboard.writeText(material.snippetId);
  53397. }
  53398. var windowAsAny = window;
  53399. if (windowAsAny.Playground && oldId) {
  53400. windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
  53401. regex: new RegExp(oldId, "g"),
  53402. replace: material.snippetId
  53403. });
  53404. }
  53405. alert("NodeMaterial saved with ID: " + material.snippetId + " (please note that the id was also saved to your clipboard)");
  53406. }
  53407. else {
  53408. 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.");
  53409. }
  53410. }
  53411. };
  53412. xmlHttp.open("POST", babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterial"].SnippetUrl + (material.snippetId ? "/" + material.snippetId : ""), true);
  53413. xmlHttp.setRequestHeader("Content-Type", "application/json");
  53414. var dataToSend = {
  53415. payload: JSON.stringify({
  53416. nodeMaterial: json
  53417. }),
  53418. name: "",
  53419. description: "",
  53420. tags: ""
  53421. };
  53422. xmlHttp.send(JSON.stringify(dataToSend));
  53423. };
  53424. PropertyTabComponent.prototype.loadFromSnippet = function () {
  53425. var _this = this;
  53426. var material = this.props.globalState.nodeMaterial;
  53427. var scene = material.getScene();
  53428. var snippedID = window.prompt("Please enter the snippet ID to use");
  53429. if (!snippedID) {
  53430. return;
  53431. }
  53432. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  53433. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterial"].ParseFromSnippetAsync(snippedID, scene, "", material).then(function () {
  53434. material.build();
  53435. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  53436. }).catch(function (err) {
  53437. alert("Unable to load your node material: " + err);
  53438. });
  53439. };
  53440. PropertyTabComponent.prototype.render = function () {
  53441. var _this = this;
  53442. var _a, _b;
  53443. if (this.state.currentNode) {
  53444. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  53445. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  53446. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  53447. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  53448. ((_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())));
  53449. }
  53450. if (this.state.currentFrameNodePort && this.state.currentFrame) {
  53451. 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 }));
  53452. }
  53453. if (this.state.currentNodePort) {
  53454. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_properties_nodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_15__["NodePortPropertyTabComponent"], { globalState: this.props.globalState, nodePort: this.state.currentNodePort }));
  53455. }
  53456. if (this.state.currentFrame) {
  53457. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_properties_framePropertyComponent__WEBPACK_IMPORTED_MODULE_13__["FramePropertyTabComponent"], { globalState: this.props.globalState, frame: this.state.currentFrame }));
  53458. }
  53459. var gridSize = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("GridSize", 20);
  53460. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  53461. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  53462. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  53463. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  53464. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53465. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  53466. 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 }),
  53467. 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'); } }),
  53468. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  53469. _this.props.globalState.nodeMaterial.setToDefault();
  53470. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  53471. } })),
  53472. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  53473. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  53474. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  53475. } }),
  53476. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  53477. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  53478. } })),
  53479. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "OPTIONS" },
  53480. 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) {
  53481. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteBoolean("EmbedTextures", value);
  53482. } }),
  53483. 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) {
  53484. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("GridSize", value);
  53485. _this.props.globalState.onGridSizeChanged.notifyObservers();
  53486. _this.forceUpdate();
  53487. } }),
  53488. 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) {
  53489. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteBoolean("ShowGrid", value);
  53490. _this.props.globalState.onGridSizeChanged.notifyObservers();
  53491. } })),
  53492. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  53493. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  53494. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  53495. _this.save();
  53496. } }),
  53497. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Generate code", onClick: function () {
  53498. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.generateCode(), "code.txt");
  53499. } }),
  53500. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  53501. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  53502. } }),
  53503. this.props.globalState.customSave &&
  53504. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.props.globalState.customSave.label, onClick: function () {
  53505. _this.customSave();
  53506. } })),
  53507. !this.props.globalState.customSave &&
  53508. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "SNIPPET" },
  53509. this.props.globalState.nodeMaterial.snippetId &&
  53510. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__["TextLineComponent"], { label: "Snippet ID", value: this.props.globalState.nodeMaterial.snippetId }),
  53511. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Load from snippet server", onClick: function () { return _this.loadFromSnippet(); } }),
  53512. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save to snippet server", onClick: function () {
  53513. _this.saveToSnippetServer();
  53514. } })),
  53515. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "INPUTS" }, this.props.globalState.nodeMaterial.getInputBlocks().map(function (ib) {
  53516. if (!ib.isUniform || ib.isSystemValue || !ib.name) {
  53517. return null;
  53518. }
  53519. return _this.renderInputBlock(ib);
  53520. })))));
  53521. };
  53522. return PropertyTabComponent;
  53523. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53524. /***/ }),
  53525. /***/ "./diagram/display/clampDisplayManager.ts":
  53526. /*!************************************************!*\
  53527. !*** ./diagram/display/clampDisplayManager.ts ***!
  53528. \************************************************/
  53529. /*! exports provided: ClampDisplayManager */
  53530. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53531. "use strict";
  53532. __webpack_require__.r(__webpack_exports__);
  53533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampDisplayManager", function() { return ClampDisplayManager; });
  53534. var ClampDisplayManager = /** @class */ (function () {
  53535. function ClampDisplayManager() {
  53536. }
  53537. ClampDisplayManager.prototype.getHeaderClass = function (block) {
  53538. return "";
  53539. };
  53540. ClampDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53541. return false;
  53542. };
  53543. ClampDisplayManager.prototype.getHeaderText = function (block) {
  53544. return block.name;
  53545. };
  53546. ClampDisplayManager.prototype.getBackgroundColor = function (block) {
  53547. return "#4086BB";
  53548. };
  53549. ClampDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53550. var clampBlock = block;
  53551. contentArea.classList.add("clamp-block");
  53552. contentArea.innerHTML = "[" + clampBlock.minimum + ", " + clampBlock.maximum + "]";
  53553. };
  53554. return ClampDisplayManager;
  53555. }());
  53556. /***/ }),
  53557. /***/ "./diagram/display/discardDisplayManager.ts":
  53558. /*!**************************************************!*\
  53559. !*** ./diagram/display/discardDisplayManager.ts ***!
  53560. \**************************************************/
  53561. /*! exports provided: DiscardDisplayManager */
  53562. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53563. "use strict";
  53564. __webpack_require__.r(__webpack_exports__);
  53565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiscardDisplayManager", function() { return DiscardDisplayManager; });
  53566. var DiscardDisplayManager = /** @class */ (function () {
  53567. function DiscardDisplayManager() {
  53568. }
  53569. DiscardDisplayManager.prototype.getHeaderClass = function (block) {
  53570. return "";
  53571. };
  53572. DiscardDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53573. return true;
  53574. };
  53575. DiscardDisplayManager.prototype.getHeaderText = function (block) {
  53576. return block.name;
  53577. };
  53578. DiscardDisplayManager.prototype.getBackgroundColor = function (block) {
  53579. return "#540b0b";
  53580. };
  53581. DiscardDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53582. contentArea.classList.add("discard-block");
  53583. };
  53584. return DiscardDisplayManager;
  53585. }());
  53586. /***/ }),
  53587. /***/ "./diagram/display/gradientDisplayManager.ts":
  53588. /*!***************************************************!*\
  53589. !*** ./diagram/display/gradientDisplayManager.ts ***!
  53590. \***************************************************/
  53591. /*! exports provided: GradientDisplayManager */
  53592. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53593. "use strict";
  53594. __webpack_require__.r(__webpack_exports__);
  53595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientDisplayManager", function() { return GradientDisplayManager; });
  53596. var GradientDisplayManager = /** @class */ (function () {
  53597. function GradientDisplayManager() {
  53598. }
  53599. GradientDisplayManager.prototype.getHeaderClass = function (block) {
  53600. return "";
  53601. };
  53602. GradientDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53603. return false;
  53604. };
  53605. GradientDisplayManager.prototype.getHeaderText = function (block) {
  53606. return block.name;
  53607. };
  53608. GradientDisplayManager.prototype.getBackgroundColor = function (block) {
  53609. var gradientBlock = block;
  53610. var gradients = gradientBlock.colorSteps.map(function (c) { return "rgb(" + c.color.r * 255 + ", " + c.color.g * 255 + ", " + c.color.b * 255 + ") " + c.step * 100 + "%"; });
  53611. return gradients.length ? "linear-gradient(90deg, " + gradients.join(", ") + ")" : 'black';
  53612. };
  53613. GradientDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53614. contentArea.classList.add("gradient-block");
  53615. };
  53616. return GradientDisplayManager;
  53617. }());
  53618. /***/ }),
  53619. /***/ "./diagram/display/inputDisplayManager.ts":
  53620. /*!************************************************!*\
  53621. !*** ./diagram/display/inputDisplayManager.ts ***!
  53622. \************************************************/
  53623. /*! exports provided: InputDisplayManager */
  53624. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53625. "use strict";
  53626. __webpack_require__.r(__webpack_exports__);
  53627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputDisplayManager", function() { return InputDisplayManager; });
  53628. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialSystemValues */ "babylonjs/Misc/dataStorage");
  53629. /* 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__);
  53630. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  53631. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  53632. var InputDisplayManager = /** @class */ (function () {
  53633. function InputDisplayManager() {
  53634. }
  53635. InputDisplayManager.prototype.getHeaderClass = function (block) {
  53636. var inputBlock = block;
  53637. if (inputBlock.isConstant) {
  53638. return "constant";
  53639. }
  53640. if (inputBlock.visibleInInspector) {
  53641. return "inspector";
  53642. }
  53643. return "";
  53644. };
  53645. InputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53646. return false;
  53647. };
  53648. InputDisplayManager.prototype.getHeaderText = function (block) {
  53649. var inputBlock = block;
  53650. var name = inputBlock.name + " (" + _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type) + ")";
  53651. if (inputBlock.isAttribute) {
  53652. name = _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type);
  53653. }
  53654. return name;
  53655. };
  53656. InputDisplayManager.prototype.getBackgroundColor = function (block) {
  53657. var color = "";
  53658. var inputBlock = block;
  53659. switch (inputBlock.type) {
  53660. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  53661. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  53662. if (inputBlock.value) {
  53663. color = inputBlock.value.toHexString();
  53664. break;
  53665. }
  53666. }
  53667. default:
  53668. color = _blockTools__WEBPACK_IMPORTED_MODULE_1__["BlockTools"].GetColorFromConnectionNodeType(inputBlock.type);
  53669. break;
  53670. }
  53671. return color;
  53672. };
  53673. InputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53674. var value = "";
  53675. var inputBlock = block;
  53676. if (inputBlock.isAttribute) {
  53677. value = "mesh." + inputBlock.name;
  53678. }
  53679. else if (inputBlock.isSystemValue) {
  53680. switch (inputBlock.systemValue) {
  53681. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World:
  53682. value = "World";
  53683. break;
  53684. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView:
  53685. value = "World x View";
  53686. break;
  53687. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection:
  53688. value = "World x View x Projection";
  53689. break;
  53690. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View:
  53691. value = "View";
  53692. break;
  53693. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection:
  53694. value = "View x Projection";
  53695. break;
  53696. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection:
  53697. value = "Projection";
  53698. break;
  53699. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition:
  53700. value = "Camera position";
  53701. break;
  53702. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor:
  53703. value = "Fog color";
  53704. break;
  53705. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime:
  53706. value = "Delta time";
  53707. break;
  53708. }
  53709. }
  53710. else {
  53711. switch (inputBlock.type) {
  53712. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  53713. if (inputBlock.animationType !== babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].None) {
  53714. value = babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"][inputBlock.animationType];
  53715. }
  53716. else {
  53717. value = inputBlock.value.toFixed(2);
  53718. }
  53719. break;
  53720. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  53721. var vec2Value = inputBlock.value;
  53722. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  53723. break;
  53724. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  53725. var vec3Value = inputBlock.value;
  53726. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  53727. break;
  53728. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  53729. var vec4Value = inputBlock.value;
  53730. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  53731. break;
  53732. }
  53733. }
  53734. contentArea.innerHTML = value;
  53735. contentArea.classList.add("input-block");
  53736. };
  53737. return InputDisplayManager;
  53738. }());
  53739. /***/ }),
  53740. /***/ "./diagram/display/outputDisplayManager.ts":
  53741. /*!*************************************************!*\
  53742. !*** ./diagram/display/outputDisplayManager.ts ***!
  53743. \*************************************************/
  53744. /*! exports provided: OutputDisplayManager */
  53745. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53746. "use strict";
  53747. __webpack_require__.r(__webpack_exports__);
  53748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputDisplayManager", function() { return OutputDisplayManager; });
  53749. var OutputDisplayManager = /** @class */ (function () {
  53750. function OutputDisplayManager() {
  53751. }
  53752. OutputDisplayManager.prototype.getHeaderClass = function (block) {
  53753. return "";
  53754. };
  53755. OutputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53756. return true;
  53757. };
  53758. OutputDisplayManager.prototype.getHeaderText = function (block) {
  53759. return block.name;
  53760. };
  53761. OutputDisplayManager.prototype.getBackgroundColor = function (block) {
  53762. return "rgb(106, 44, 131)";
  53763. };
  53764. OutputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53765. contentArea.classList.add("output-block");
  53766. };
  53767. return OutputDisplayManager;
  53768. }());
  53769. /***/ }),
  53770. /***/ "./diagram/display/remapDisplayManager.ts":
  53771. /*!************************************************!*\
  53772. !*** ./diagram/display/remapDisplayManager.ts ***!
  53773. \************************************************/
  53774. /*! exports provided: RemapDisplayManager */
  53775. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53776. "use strict";
  53777. __webpack_require__.r(__webpack_exports__);
  53778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapDisplayManager", function() { return RemapDisplayManager; });
  53779. var RemapDisplayManager = /** @class */ (function () {
  53780. function RemapDisplayManager() {
  53781. }
  53782. RemapDisplayManager.prototype.getHeaderClass = function (block) {
  53783. return "";
  53784. };
  53785. RemapDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53786. return true;
  53787. };
  53788. RemapDisplayManager.prototype.getHeaderText = function (block) {
  53789. return block.name;
  53790. };
  53791. RemapDisplayManager.prototype.getBackgroundColor = function (block) {
  53792. return "#4086BB";
  53793. };
  53794. RemapDisplayManager.prototype._extractInputValue = function (connectionPoint) {
  53795. var connectedBlock = connectionPoint.connectedPoint.ownerBlock;
  53796. if (connectedBlock.isInput) {
  53797. var inputBlock = connectedBlock;
  53798. if (inputBlock.isUniform && !inputBlock.isSystemValue) {
  53799. return inputBlock.value;
  53800. }
  53801. }
  53802. return "?";
  53803. };
  53804. RemapDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53805. var remapBlock = block;
  53806. var sourceRangeX = remapBlock.sourceMin.isConnected ? this._extractInputValue(remapBlock.sourceMin) : remapBlock.sourceRange.x;
  53807. var sourceRangeY = remapBlock.sourceMax.isConnected ? this._extractInputValue(remapBlock.sourceMax) : remapBlock.sourceRange.y;
  53808. var targetRangeX = remapBlock.targetMin.isConnected ? this._extractInputValue(remapBlock.targetMin) : remapBlock.targetRange.x;
  53809. var targetRangeY = remapBlock.targetMax.isConnected ? this._extractInputValue(remapBlock.targetMax) : remapBlock.targetRange.y;
  53810. contentArea.classList.add("remap-block");
  53811. contentArea.innerHTML = "[" + sourceRangeX + ", " + sourceRangeY + "] -> [" + targetRangeX + ", " + targetRangeY + "]";
  53812. };
  53813. return RemapDisplayManager;
  53814. }());
  53815. /***/ }),
  53816. /***/ "./diagram/display/textureDisplayManager.ts":
  53817. /*!**************************************************!*\
  53818. !*** ./diagram/display/textureDisplayManager.ts ***!
  53819. \**************************************************/
  53820. /*! exports provided: TextureDisplayManager */
  53821. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53822. "use strict";
  53823. __webpack_require__.r(__webpack_exports__);
  53824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureDisplayManager", function() { return TextureDisplayManager; });
  53825. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Dual/textureBlock */ "babylonjs/Misc/dataStorage");
  53826. /* 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__);
  53827. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  53828. var TextureDisplayManager = /** @class */ (function () {
  53829. function TextureDisplayManager() {
  53830. }
  53831. TextureDisplayManager.prototype.getHeaderClass = function (block) {
  53832. return "";
  53833. };
  53834. TextureDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53835. return true;
  53836. };
  53837. TextureDisplayManager.prototype.getHeaderText = function (block) {
  53838. return block.name;
  53839. };
  53840. TextureDisplayManager.prototype.getBackgroundColor = function (block) {
  53841. return "#323232";
  53842. };
  53843. TextureDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53844. var _this = this;
  53845. var textureBlock = block;
  53846. if (!this._previewCanvas) {
  53847. contentArea.classList.add("texture-block");
  53848. if (block instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]) {
  53849. contentArea.classList.add("regular-texture-block");
  53850. }
  53851. this._previewCanvas = contentArea.ownerDocument.createElement("canvas");
  53852. this._previewImage = contentArea.ownerDocument.createElement("img");
  53853. contentArea.appendChild(this._previewImage);
  53854. this._previewImage.classList.add("empty");
  53855. }
  53856. if (textureBlock.texture) {
  53857. _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__["TextureLineComponent"].UpdatePreview(this._previewCanvas, textureBlock.texture, 140, {
  53858. face: 0,
  53859. displayRed: true,
  53860. displayAlpha: true,
  53861. displayBlue: true,
  53862. displayGreen: true
  53863. }, function () {
  53864. _this._previewImage.src = _this._previewCanvas.toDataURL("image/png");
  53865. _this._previewImage.classList.remove("empty");
  53866. });
  53867. }
  53868. else {
  53869. this._previewImage.classList.add("empty");
  53870. }
  53871. };
  53872. return TextureDisplayManager;
  53873. }());
  53874. /***/ }),
  53875. /***/ "./diagram/display/trigonometryDisplayManager.ts":
  53876. /*!*******************************************************!*\
  53877. !*** ./diagram/display/trigonometryDisplayManager.ts ***!
  53878. \*******************************************************/
  53879. /*! exports provided: TrigonometryDisplayManager */
  53880. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53881. "use strict";
  53882. __webpack_require__.r(__webpack_exports__);
  53883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryDisplayManager", function() { return TrigonometryDisplayManager; });
  53884. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/dataStorage");
  53885. /* 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__);
  53886. var TrigonometryDisplayManager = /** @class */ (function () {
  53887. function TrigonometryDisplayManager() {
  53888. }
  53889. TrigonometryDisplayManager.prototype.getHeaderClass = function (block) {
  53890. return "";
  53891. };
  53892. TrigonometryDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  53893. return false;
  53894. };
  53895. TrigonometryDisplayManager.prototype.getHeaderText = function (block) {
  53896. return block.name;
  53897. };
  53898. TrigonometryDisplayManager.prototype.getBackgroundColor = function (block) {
  53899. return "#405C86";
  53900. };
  53901. TrigonometryDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  53902. var trigonometryBlock = block;
  53903. contentArea.classList.add("trigonometry-block");
  53904. contentArea.innerHTML = babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"][trigonometryBlock.operation];
  53905. };
  53906. return TrigonometryDisplayManager;
  53907. }());
  53908. /***/ }),
  53909. /***/ "./diagram/displayLedger.ts":
  53910. /*!**********************************!*\
  53911. !*** ./diagram/displayLedger.ts ***!
  53912. \**********************************/
  53913. /*! exports provided: DisplayLedger */
  53914. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53915. "use strict";
  53916. __webpack_require__.r(__webpack_exports__);
  53917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayLedger", function() { return DisplayLedger; });
  53918. /* harmony import */ var _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./display/inputDisplayManager */ "./diagram/display/inputDisplayManager.ts");
  53919. /* harmony import */ var _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./display/outputDisplayManager */ "./diagram/display/outputDisplayManager.ts");
  53920. /* harmony import */ var _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./display/clampDisplayManager */ "./diagram/display/clampDisplayManager.ts");
  53921. /* harmony import */ var _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./display/gradientDisplayManager */ "./diagram/display/gradientDisplayManager.ts");
  53922. /* harmony import */ var _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./display/remapDisplayManager */ "./diagram/display/remapDisplayManager.ts");
  53923. /* harmony import */ var _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./display/trigonometryDisplayManager */ "./diagram/display/trigonometryDisplayManager.ts");
  53924. /* harmony import */ var _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./display/textureDisplayManager */ "./diagram/display/textureDisplayManager.ts");
  53925. /* harmony import */ var _display_discardDisplayManager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./display/discardDisplayManager */ "./diagram/display/discardDisplayManager.ts");
  53926. var DisplayLedger = /** @class */ (function () {
  53927. function DisplayLedger() {
  53928. }
  53929. DisplayLedger.RegisteredControls = {};
  53930. return DisplayLedger;
  53931. }());
  53932. DisplayLedger.RegisteredControls["InputBlock"] = _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__["InputDisplayManager"];
  53933. DisplayLedger.RegisteredControls["VertexOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  53934. DisplayLedger.RegisteredControls["FragmentOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  53935. DisplayLedger.RegisteredControls["ClampBlock"] = _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__["ClampDisplayManager"];
  53936. DisplayLedger.RegisteredControls["GradientBlock"] = _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__["GradientDisplayManager"];
  53937. DisplayLedger.RegisteredControls["RemapBlock"] = _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__["RemapDisplayManager"];
  53938. DisplayLedger.RegisteredControls["TrigonometryBlock"] = _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__["TrigonometryDisplayManager"];
  53939. DisplayLedger.RegisteredControls["TextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  53940. DisplayLedger.RegisteredControls["ReflectionTextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  53941. DisplayLedger.RegisteredControls["ReflectionBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  53942. DisplayLedger.RegisteredControls["DiscardBlock"] = _display_discardDisplayManager__WEBPACK_IMPORTED_MODULE_7__["DiscardDisplayManager"];
  53943. /***/ }),
  53944. /***/ "./diagram/frameNodePort.ts":
  53945. /*!**********************************!*\
  53946. !*** ./diagram/frameNodePort.ts ***!
  53947. \**********************************/
  53948. /*! exports provided: FrameNodePort */
  53949. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53950. "use strict";
  53951. __webpack_require__.r(__webpack_exports__);
  53952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FrameNodePort", function() { return FrameNodePort; });
  53953. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53954. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  53955. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  53956. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  53957. /* harmony import */ var _graphCanvas__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphCanvas */ "./diagram/graphCanvas.tsx");
  53958. var FrameNodePort = /** @class */ (function (_super) {
  53959. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FrameNodePort, _super);
  53960. function FrameNodePort(portContainer, connectionPoint, node, globalState, isInput, framePortId, parentFrameId) {
  53961. var _this = _super.call(this, portContainer, connectionPoint, node, globalState) || this;
  53962. _this.connectionPoint = connectionPoint;
  53963. _this.node = node;
  53964. _this._onFramePortPositionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  53965. _this._parentFrameId = parentFrameId;
  53966. _this._isInput = isInput;
  53967. _this._framePortId = framePortId;
  53968. _this._onSelectionChangedObserver = _this._globalState.onSelectionChangedObservable.add(function (selection) {
  53969. if (Object(_graphCanvas__WEBPACK_IMPORTED_MODULE_3__["isFramePortData"])(selection) && selection.port === _this) {
  53970. _this._img.classList.add("selected");
  53971. }
  53972. else {
  53973. _this._img.classList.remove("selected");
  53974. }
  53975. });
  53976. _this.refresh();
  53977. return _this;
  53978. }
  53979. Object.defineProperty(FrameNodePort.prototype, "parentFrameId", {
  53980. get: function () {
  53981. return this._parentFrameId;
  53982. },
  53983. enumerable: true,
  53984. configurable: true
  53985. });
  53986. Object.defineProperty(FrameNodePort.prototype, "onFramePortPositionChangedObservable", {
  53987. get: function () {
  53988. return this._onFramePortPositionChangedObservable;
  53989. },
  53990. enumerable: true,
  53991. configurable: true
  53992. });
  53993. Object.defineProperty(FrameNodePort.prototype, "isInput", {
  53994. get: function () {
  53995. return this._isInput;
  53996. },
  53997. enumerable: true,
  53998. configurable: true
  53999. });
  54000. Object.defineProperty(FrameNodePort.prototype, "framePortId", {
  54001. get: function () {
  54002. return this._framePortId;
  54003. },
  54004. enumerable: true,
  54005. configurable: true
  54006. });
  54007. Object.defineProperty(FrameNodePort.prototype, "framePortPosition", {
  54008. get: function () {
  54009. return this._framePortPosition;
  54010. },
  54011. set: function (position) {
  54012. this._framePortPosition = position;
  54013. this.onFramePortPositionChangedObservable.notifyObservers(this);
  54014. },
  54015. enumerable: true,
  54016. configurable: true
  54017. });
  54018. FrameNodePort.CreateFrameNodePortElement = function (connectionPoint, node, root, displayManager, globalState, isInput, framePortId, parentFrameId) {
  54019. var portContainer = root.ownerDocument.createElement("div");
  54020. var block = connectionPoint.ownerBlock;
  54021. portContainer.classList.add("portLine");
  54022. if (framePortId !== null) {
  54023. portContainer.dataset.framePortId = "" + framePortId;
  54024. }
  54025. root.appendChild(portContainer);
  54026. if (!displayManager || displayManager.shouldDisplayPortLabels(block)) {
  54027. var portLabel = root.ownerDocument.createElement("div");
  54028. portLabel.classList.add("port-label");
  54029. portLabel.innerHTML = connectionPoint.displayName || connectionPoint.name;
  54030. portContainer.appendChild(portLabel);
  54031. }
  54032. return new FrameNodePort(portContainer, connectionPoint, node, globalState, isInput, framePortId, parentFrameId);
  54033. };
  54034. return FrameNodePort;
  54035. }(_nodePort__WEBPACK_IMPORTED_MODULE_1__["NodePort"]));
  54036. /***/ }),
  54037. /***/ "./diagram/graphCanvas.scss":
  54038. /*!**********************************!*\
  54039. !*** ./diagram/graphCanvas.scss ***!
  54040. \**********************************/
  54041. /*! no static exports found */
  54042. /***/ (function(module, exports, __webpack_require__) {
  54043. var content = __webpack_require__(/*! !../../../node_modules/css-loader!../../../node_modules/sass-loader/dist/cjs.js!./graphCanvas.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./diagram/graphCanvas.scss");
  54044. if(typeof content === 'string') content = [[module.i, content, '']];
  54045. var transform;
  54046. var insertInto;
  54047. var options = {"hmr":true}
  54048. options.transform = transform
  54049. options.insertInto = undefined;
  54050. var update = __webpack_require__(/*! ../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  54051. if(content.locals) module.exports = content.locals;
  54052. if(false) {}
  54053. /***/ }),
  54054. /***/ "./diagram/graphCanvas.tsx":
  54055. /*!*********************************!*\
  54056. !*** ./diagram/graphCanvas.tsx ***!
  54057. \*********************************/
  54058. /*! exports provided: isFramePortData, GraphCanvasComponent */
  54059. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54060. "use strict";
  54061. __webpack_require__.r(__webpack_exports__);
  54062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFramePortData", function() { return isFramePortData; });
  54063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphCanvasComponent", function() { return GraphCanvasComponent; });
  54064. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54065. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54066. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54067. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  54068. /* 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__);
  54069. /* harmony import */ var _graphNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphNode */ "./diagram/graphNode.ts");
  54070. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  54071. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_4__);
  54072. /* harmony import */ var _nodeLink__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodeLink */ "./diagram/nodeLink.ts");
  54073. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  54074. /* harmony import */ var _graphFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./graphFrame */ "./diagram/graphFrame.ts");
  54075. /* harmony import */ var _frameNodePort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./frameNodePort */ "./diagram/frameNodePort.ts");
  54076. __webpack_require__(/*! ./graphCanvas.scss */ "./diagram/graphCanvas.scss");
  54077. var isFramePortData = function (variableToCheck) {
  54078. if (variableToCheck) {
  54079. return variableToCheck.port !== undefined;
  54080. }
  54081. else
  54082. return false;
  54083. };
  54084. var GraphCanvasComponent = /** @class */ (function (_super) {
  54085. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphCanvasComponent, _super);
  54086. function GraphCanvasComponent(props) {
  54087. var _this = _super.call(this, props) || this;
  54088. _this.MinZoom = 0.1;
  54089. _this.MaxZoom = 4;
  54090. _this._nodes = [];
  54091. _this._links = [];
  54092. _this._mouseStartPointX = null;
  54093. _this._mouseStartPointY = null;
  54094. _this._dropPointX = 0;
  54095. _this._dropPointY = 0;
  54096. _this._selectionStartX = 0;
  54097. _this._selectionStartY = 0;
  54098. _this._candidateLinkedHasMoved = false;
  54099. _this._x = 0;
  54100. _this._y = 0;
  54101. _this._zoom = 1;
  54102. _this._selectedNodes = [];
  54103. _this._selectedLink = null;
  54104. _this._selectedPort = null;
  54105. _this._candidateLink = null;
  54106. _this._candidatePort = null;
  54107. _this._gridSize = 20;
  54108. _this._selectionBox = null;
  54109. _this._selectedFrame = null;
  54110. _this._frameCandidate = null;
  54111. _this._frames = [];
  54112. _this._altKeyIsPressed = false;
  54113. _this._ctrlKeyIsPressed = false;
  54114. _this._oldY = -1;
  54115. _this._frameIsMoving = false;
  54116. _this._isLoading = false;
  54117. props.globalState.onSelectionChangedObservable.add(function (selection) {
  54118. if (!selection) {
  54119. _this._selectedNodes = [];
  54120. _this._selectedLink = null;
  54121. _this._selectedFrame = null;
  54122. _this._selectedPort = null;
  54123. }
  54124. else {
  54125. if (selection instanceof _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"]) {
  54126. _this._selectedNodes = [];
  54127. _this._selectedFrame = null;
  54128. _this._selectedLink = selection;
  54129. _this._selectedPort = null;
  54130. }
  54131. else if (selection instanceof _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"]) {
  54132. _this._selectedNodes = [];
  54133. _this._selectedFrame = selection;
  54134. _this._selectedLink = null;
  54135. _this._selectedPort = null;
  54136. }
  54137. else if (selection instanceof _graphNode__WEBPACK_IMPORTED_MODULE_3__["GraphNode"]) {
  54138. if (_this._ctrlKeyIsPressed) {
  54139. if (_this._selectedNodes.indexOf(selection) === -1) {
  54140. _this._selectedNodes.push(selection);
  54141. }
  54142. }
  54143. else {
  54144. _this._selectedNodes = [selection];
  54145. }
  54146. }
  54147. else if (selection instanceof _nodePort__WEBPACK_IMPORTED_MODULE_6__["NodePort"] && !selection.hasLabel()) { // if node port is uneditable, select graphNode instead
  54148. props.globalState.onSelectionChangedObservable.notifyObservers(selection.node);
  54149. }
  54150. else if (selection instanceof _nodePort__WEBPACK_IMPORTED_MODULE_6__["NodePort"]) {
  54151. _this._selectedNodes = [];
  54152. _this._selectedFrame = null;
  54153. _this._selectedLink = null;
  54154. _this._selectedPort = selection;
  54155. }
  54156. else {
  54157. _this._selectedNodes = [];
  54158. _this._selectedFrame = null;
  54159. _this._selectedLink = null;
  54160. _this._selectedPort = selection.port;
  54161. }
  54162. }
  54163. });
  54164. props.globalState.onCandidatePortSelectedObservable.add(function (port) {
  54165. _this._candidatePort = port;
  54166. });
  54167. props.globalState.onGridSizeChanged.add(function () {
  54168. _this.gridSize = babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("GridSize", 20);
  54169. });
  54170. _this.props.globalState.hostDocument.addEventListener("keyup", function () { return _this.onKeyUp(); }, false);
  54171. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  54172. _this._altKeyIsPressed = evt.altKey;
  54173. _this._ctrlKeyIsPressed = evt.ctrlKey;
  54174. }, false);
  54175. _this.props.globalState.hostDocument.defaultView.addEventListener("blur", function () {
  54176. _this._altKeyIsPressed = false;
  54177. _this._ctrlKeyIsPressed = false;
  54178. }, false);
  54179. // Store additional data to serialization object
  54180. _this.props.globalState.storeEditorData = function (editorData) {
  54181. editorData.zoom = _this.zoom;
  54182. editorData.x = _this.x;
  54183. editorData.y = _this.y;
  54184. editorData.frames = [];
  54185. for (var _i = 0, _a = _this._frames; _i < _a.length; _i++) {
  54186. var frame = _a[_i];
  54187. editorData.frames.push(frame.serialize());
  54188. }
  54189. };
  54190. return _this;
  54191. }
  54192. Object.defineProperty(GraphCanvasComponent.prototype, "gridSize", {
  54193. get: function () {
  54194. return this._gridSize;
  54195. },
  54196. set: function (value) {
  54197. this._gridSize = value;
  54198. this.updateTransform();
  54199. },
  54200. enumerable: true,
  54201. configurable: true
  54202. });
  54203. Object.defineProperty(GraphCanvasComponent.prototype, "globalState", {
  54204. get: function () {
  54205. return this.props.globalState;
  54206. },
  54207. enumerable: true,
  54208. configurable: true
  54209. });
  54210. Object.defineProperty(GraphCanvasComponent.prototype, "nodes", {
  54211. get: function () {
  54212. return this._nodes;
  54213. },
  54214. enumerable: true,
  54215. configurable: true
  54216. });
  54217. Object.defineProperty(GraphCanvasComponent.prototype, "links", {
  54218. get: function () {
  54219. return this._links;
  54220. },
  54221. enumerable: true,
  54222. configurable: true
  54223. });
  54224. Object.defineProperty(GraphCanvasComponent.prototype, "frames", {
  54225. get: function () {
  54226. return this._frames;
  54227. },
  54228. enumerable: true,
  54229. configurable: true
  54230. });
  54231. Object.defineProperty(GraphCanvasComponent.prototype, "zoom", {
  54232. get: function () {
  54233. return this._zoom;
  54234. },
  54235. set: function (value) {
  54236. if (this._zoom === value) {
  54237. return;
  54238. }
  54239. this._zoom = value;
  54240. this.updateTransform();
  54241. },
  54242. enumerable: true,
  54243. configurable: true
  54244. });
  54245. Object.defineProperty(GraphCanvasComponent.prototype, "x", {
  54246. get: function () {
  54247. return this._x;
  54248. },
  54249. set: function (value) {
  54250. this._x = value;
  54251. this.updateTransform();
  54252. },
  54253. enumerable: true,
  54254. configurable: true
  54255. });
  54256. Object.defineProperty(GraphCanvasComponent.prototype, "y", {
  54257. get: function () {
  54258. return this._y;
  54259. },
  54260. set: function (value) {
  54261. this._y = value;
  54262. this.updateTransform();
  54263. },
  54264. enumerable: true,
  54265. configurable: true
  54266. });
  54267. Object.defineProperty(GraphCanvasComponent.prototype, "selectedNodes", {
  54268. get: function () {
  54269. return this._selectedNodes;
  54270. },
  54271. enumerable: true,
  54272. configurable: true
  54273. });
  54274. Object.defineProperty(GraphCanvasComponent.prototype, "selectedLink", {
  54275. get: function () {
  54276. return this._selectedLink;
  54277. },
  54278. enumerable: true,
  54279. configurable: true
  54280. });
  54281. Object.defineProperty(GraphCanvasComponent.prototype, "selectedFrame", {
  54282. get: function () {
  54283. return this._selectedFrame;
  54284. },
  54285. enumerable: true,
  54286. configurable: true
  54287. });
  54288. Object.defineProperty(GraphCanvasComponent.prototype, "selectedPort", {
  54289. get: function () {
  54290. return this._selectedPort;
  54291. },
  54292. enumerable: true,
  54293. configurable: true
  54294. });
  54295. Object.defineProperty(GraphCanvasComponent.prototype, "canvasContainer", {
  54296. get: function () {
  54297. return this._graphCanvas;
  54298. },
  54299. enumerable: true,
  54300. configurable: true
  54301. });
  54302. Object.defineProperty(GraphCanvasComponent.prototype, "hostCanvas", {
  54303. get: function () {
  54304. return this._hostCanvas;
  54305. },
  54306. enumerable: true,
  54307. configurable: true
  54308. });
  54309. Object.defineProperty(GraphCanvasComponent.prototype, "svgCanvas", {
  54310. get: function () {
  54311. return this._svgCanvas;
  54312. },
  54313. enumerable: true,
  54314. configurable: true
  54315. });
  54316. Object.defineProperty(GraphCanvasComponent.prototype, "selectionContainer", {
  54317. get: function () {
  54318. return this._selectionContainer;
  54319. },
  54320. enumerable: true,
  54321. configurable: true
  54322. });
  54323. Object.defineProperty(GraphCanvasComponent.prototype, "frameContainer", {
  54324. get: function () {
  54325. return this._frameContainer;
  54326. },
  54327. enumerable: true,
  54328. configurable: true
  54329. });
  54330. GraphCanvasComponent.prototype.getGridPosition = function (position, useCeil) {
  54331. if (useCeil === void 0) { useCeil = false; }
  54332. var gridSize = this.gridSize;
  54333. if (gridSize === 0) {
  54334. return position;
  54335. }
  54336. if (useCeil) {
  54337. return gridSize * Math.ceil(position / gridSize);
  54338. }
  54339. return gridSize * Math.floor(position / gridSize);
  54340. };
  54341. GraphCanvasComponent.prototype.getGridPositionCeil = function (position) {
  54342. var gridSize = this.gridSize;
  54343. if (gridSize === 0) {
  54344. return position;
  54345. }
  54346. return gridSize * Math.ceil(position / gridSize);
  54347. };
  54348. GraphCanvasComponent.prototype.updateTransform = function () {
  54349. this._rootContainer.style.transform = "translate(" + this._x + "px, " + this._y + "px) scale(" + this._zoom + ")";
  54350. if (babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("ShowGrid", true)) {
  54351. this._hostCanvas.style.backgroundSize = this._gridSize * this._zoom + "px " + this._gridSize * this._zoom + "px";
  54352. this._hostCanvas.style.backgroundPosition = this._x + "px " + this._y + "px";
  54353. }
  54354. else {
  54355. this._hostCanvas.style.backgroundSize = "0";
  54356. }
  54357. };
  54358. GraphCanvasComponent.prototype.onKeyUp = function () {
  54359. this._altKeyIsPressed = false;
  54360. this._ctrlKeyIsPressed = false;
  54361. this._oldY = -1;
  54362. };
  54363. GraphCanvasComponent.prototype.findNodeFromBlock = function (block) {
  54364. return this.nodes.filter(function (n) { return n.block === block; })[0];
  54365. };
  54366. GraphCanvasComponent.prototype.reset = function () {
  54367. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  54368. var node = _a[_i];
  54369. node.dispose();
  54370. }
  54371. var frames = this._frames.splice(0);
  54372. for (var _b = 0, frames_1 = frames; _b < frames_1.length; _b++) {
  54373. var frame = frames_1[_b];
  54374. frame.dispose();
  54375. }
  54376. this._nodes = [];
  54377. this._frames = [];
  54378. this._links = [];
  54379. this._graphCanvas.innerHTML = "";
  54380. this._svgCanvas.innerHTML = "";
  54381. };
  54382. GraphCanvasComponent.prototype.connectPorts = function (pointA, pointB) {
  54383. var blockA = pointA.ownerBlock;
  54384. var blockB = pointB.ownerBlock;
  54385. var nodeA = this.findNodeFromBlock(blockA);
  54386. var nodeB = this.findNodeFromBlock(blockB);
  54387. if (!nodeA || !nodeB) {
  54388. return;
  54389. }
  54390. var portA = nodeA.getPortForConnectionPoint(pointA);
  54391. var portB = nodeB.getPortForConnectionPoint(pointB);
  54392. if (!portA || !portB) {
  54393. return;
  54394. }
  54395. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  54396. var currentLink = _a[_i];
  54397. if (currentLink.portA === portA && currentLink.portB === portB) {
  54398. return;
  54399. }
  54400. if (currentLink.portA === portB && currentLink.portB === portA) {
  54401. return;
  54402. }
  54403. }
  54404. var link = new _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"](this, portA, nodeA, portB, nodeB);
  54405. this._links.push(link);
  54406. nodeA.links.push(link);
  54407. nodeB.links.push(link);
  54408. };
  54409. GraphCanvasComponent.prototype.removeLink = function (link) {
  54410. var index = this._links.indexOf(link);
  54411. if (index > -1) {
  54412. this._links.splice(index, 1);
  54413. }
  54414. link.dispose();
  54415. };
  54416. GraphCanvasComponent.prototype.appendBlock = function (block) {
  54417. var newNode = new _graphNode__WEBPACK_IMPORTED_MODULE_3__["GraphNode"](block, this.props.globalState);
  54418. newNode.appendVisual(this._graphCanvas, this);
  54419. this._nodes.push(newNode);
  54420. return newNode;
  54421. };
  54422. GraphCanvasComponent.prototype.distributeGraph = function () {
  54423. var _this = this;
  54424. this.x = 0;
  54425. this.y = 0;
  54426. this.zoom = 1;
  54427. var graph = new dagre__WEBPACK_IMPORTED_MODULE_4__["graphlib"].Graph();
  54428. graph.setGraph({});
  54429. graph.setDefaultEdgeLabel(function () { return ({}); });
  54430. graph.graph().rankdir = "LR";
  54431. // Build dagre graph
  54432. this._nodes.forEach(function (node) {
  54433. if (_this._frames.some(function (f) { return f.nodes.indexOf(node) !== -1; })) {
  54434. return;
  54435. }
  54436. graph.setNode(node.id.toString(), {
  54437. id: node.id,
  54438. type: "node",
  54439. width: node.width,
  54440. height: node.height
  54441. });
  54442. });
  54443. this._frames.forEach(function (frame) {
  54444. graph.setNode(frame.id.toString(), {
  54445. id: frame.id,
  54446. type: "frame",
  54447. width: frame.element.clientWidth,
  54448. height: frame.element.clientHeight
  54449. });
  54450. });
  54451. this._nodes.forEach(function (node) {
  54452. node.block.outputs.forEach(function (output) {
  54453. if (!output.hasEndpoints) {
  54454. return;
  54455. }
  54456. output.endpoints.forEach(function (endpoint) {
  54457. var sourceFrames = _this._frames.filter(function (f) { return f.nodes.indexOf(node) !== -1; });
  54458. var targetFrames = _this._frames.filter(function (f) { return f.nodes.some(function (n) { return n.block === endpoint.ownerBlock; }); });
  54459. var sourceId = sourceFrames.length > 0 ? sourceFrames[0].id : node.id;
  54460. var targetId = targetFrames.length > 0 ? targetFrames[0].id : endpoint.ownerBlock.uniqueId;
  54461. graph.setEdge(sourceId.toString(), targetId.toString());
  54462. });
  54463. });
  54464. });
  54465. // Distribute
  54466. dagre__WEBPACK_IMPORTED_MODULE_4__["layout"](graph);
  54467. // Update graph
  54468. var dagreNodes = graph.nodes().map(function (node) { return graph.node(node); });
  54469. dagreNodes.forEach(function (dagreNode) {
  54470. if (dagreNode.type === "node") {
  54471. for (var _i = 0, _a = _this._nodes; _i < _a.length; _i++) {
  54472. var node = _a[_i];
  54473. if (node.id === dagreNode.id) {
  54474. node.x = dagreNode.x - dagreNode.width / 2;
  54475. node.y = dagreNode.y - dagreNode.height / 2;
  54476. node.cleanAccumulation();
  54477. return;
  54478. }
  54479. }
  54480. return;
  54481. }
  54482. for (var _b = 0, _c = _this._frames; _b < _c.length; _b++) {
  54483. var frame = _c[_b];
  54484. if (frame.id === dagreNode.id) {
  54485. _this._frameIsMoving = true;
  54486. frame.move(dagreNode.x - dagreNode.width / 2, dagreNode.y - dagreNode.height / 2, false);
  54487. frame.cleanAccumulation();
  54488. _this._frameIsMoving = false;
  54489. return;
  54490. }
  54491. }
  54492. });
  54493. };
  54494. GraphCanvasComponent.prototype.componentDidMount = function () {
  54495. this._hostCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas");
  54496. this._rootContainer = this.props.globalState.hostDocument.getElementById("graph-container");
  54497. this._graphCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas-container");
  54498. this._svgCanvas = this.props.globalState.hostDocument.getElementById("graph-svg-container");
  54499. this._selectionContainer = this.props.globalState.hostDocument.getElementById("selection-container");
  54500. this._frameContainer = this.props.globalState.hostDocument.getElementById("frame-container");
  54501. this.gridSize = babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("GridSize", 20);
  54502. this.updateTransform();
  54503. };
  54504. GraphCanvasComponent.prototype.onMove = function (evt) {
  54505. // Selection box
  54506. if (this._selectionBox) {
  54507. var rootRect = this.canvasContainer.getBoundingClientRect();
  54508. var localX = evt.pageX - rootRect.left;
  54509. var localY = evt.pageY - rootRect.top;
  54510. if (localX > this._selectionStartX) {
  54511. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  54512. this._selectionBox.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  54513. }
  54514. else {
  54515. this._selectionBox.style.left = localX / this.zoom + "px";
  54516. this._selectionBox.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  54517. }
  54518. if (localY > this._selectionStartY) {
  54519. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  54520. this._selectionBox.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  54521. }
  54522. else {
  54523. this._selectionBox.style.top = localY / this.zoom + "px";
  54524. this._selectionBox.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  54525. }
  54526. this.props.globalState.onSelectionBoxMoved.notifyObservers(this._selectionBox.getBoundingClientRect());
  54527. return;
  54528. }
  54529. // Candidate frame box
  54530. if (this._frameCandidate) {
  54531. var rootRect = this.canvasContainer.getBoundingClientRect();
  54532. var localX = evt.pageX - rootRect.left;
  54533. var localY = evt.pageY - rootRect.top;
  54534. if (localX > this._selectionStartX) {
  54535. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  54536. this._frameCandidate.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  54537. }
  54538. else {
  54539. this._frameCandidate.style.left = localX / this.zoom + "px";
  54540. this._frameCandidate.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  54541. }
  54542. if (localY > this._selectionStartY) {
  54543. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  54544. this._frameCandidate.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  54545. }
  54546. else {
  54547. this._frameCandidate.style.top = localY / this.zoom + "px";
  54548. this._frameCandidate.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  54549. }
  54550. return;
  54551. }
  54552. // Candidate link
  54553. if (this._candidateLink) {
  54554. var rootRect = this.canvasContainer.getBoundingClientRect();
  54555. this._candidatePort = null;
  54556. this.props.globalState.onCandidateLinkMoved.notifyObservers(new babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["Vector2"](evt.pageX, evt.pageY));
  54557. this._dropPointX = (evt.pageX - rootRect.left) / this.zoom;
  54558. this._dropPointY = (evt.pageY - rootRect.top) / this.zoom;
  54559. this._candidateLink.update(this._dropPointX, this._dropPointY, true);
  54560. this._candidateLinkedHasMoved = true;
  54561. return;
  54562. }
  54563. // Zoom with mouse + alt
  54564. if (this._altKeyIsPressed && evt.buttons === 1) {
  54565. if (this._oldY < 0) {
  54566. this._oldY = evt.pageY;
  54567. }
  54568. var zoomDelta = (evt.pageY - this._oldY) / 10;
  54569. if (Math.abs(zoomDelta) > 5) {
  54570. var oldZoom = this.zoom;
  54571. this.zoom = Math.max(Math.min(this.MaxZoom, this.zoom + zoomDelta / 100), this.MinZoom);
  54572. var boundingRect = evt.currentTarget.getBoundingClientRect();
  54573. var clientWidth = boundingRect.width;
  54574. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  54575. var clientX = evt.clientX - boundingRect.left;
  54576. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  54577. this.x = this.x - widthDiff * xFactor;
  54578. this._oldY = evt.pageY;
  54579. }
  54580. return;
  54581. }
  54582. // Move canvas
  54583. this._rootContainer.style.cursor = "move";
  54584. if (this._mouseStartPointX === null || this._mouseStartPointY === null) {
  54585. return;
  54586. }
  54587. this.x += evt.clientX - this._mouseStartPointX;
  54588. this.y += evt.clientY - this._mouseStartPointY;
  54589. this._mouseStartPointX = evt.clientX;
  54590. this._mouseStartPointY = evt.clientY;
  54591. };
  54592. GraphCanvasComponent.prototype.onDown = function (evt) {
  54593. this._rootContainer.setPointerCapture(evt.pointerId);
  54594. // Selection?
  54595. if (evt.currentTarget === this._hostCanvas && evt.ctrlKey) {
  54596. this._selectionBox = this.props.globalState.hostDocument.createElement("div");
  54597. this._selectionBox.classList.add("selection-box");
  54598. this._selectionContainer.appendChild(this._selectionBox);
  54599. var rootRect = this.canvasContainer.getBoundingClientRect();
  54600. this._selectionStartX = (evt.pageX - rootRect.left);
  54601. this._selectionStartY = (evt.pageY - rootRect.top);
  54602. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  54603. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  54604. this._selectionBox.style.width = "0px";
  54605. this._selectionBox.style.height = "0px";
  54606. return;
  54607. }
  54608. // Frame?
  54609. if (evt.currentTarget === this._hostCanvas && evt.shiftKey) {
  54610. this._frameCandidate = this.props.globalState.hostDocument.createElement("div");
  54611. this._frameCandidate.classList.add("frame-box");
  54612. this._frameContainer.appendChild(this._frameCandidate);
  54613. var rootRect = this.canvasContainer.getBoundingClientRect();
  54614. this._selectionStartX = (evt.pageX - rootRect.left);
  54615. this._selectionStartY = (evt.pageY - rootRect.top);
  54616. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  54617. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  54618. this._frameCandidate.style.width = "0px";
  54619. this._frameCandidate.style.height = "0px";
  54620. return;
  54621. }
  54622. // Port dragging
  54623. if (evt.nativeEvent.srcElement && evt.nativeEvent.srcElement.nodeName === "IMG") {
  54624. if (!this._candidateLink) {
  54625. var portElement = evt.nativeEvent.srcElement.parentElement.port;
  54626. this._candidateLink = new _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"](this, portElement, portElement.node);
  54627. this._candidateLinkedHasMoved = false;
  54628. }
  54629. return;
  54630. }
  54631. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  54632. this._mouseStartPointX = evt.clientX;
  54633. this._mouseStartPointY = evt.clientY;
  54634. };
  54635. GraphCanvasComponent.prototype.onUp = function (evt) {
  54636. this._mouseStartPointX = null;
  54637. this._mouseStartPointY = null;
  54638. this._rootContainer.releasePointerCapture(evt.pointerId);
  54639. this._oldY = -1;
  54640. if (this._candidateLink) {
  54641. if (this._candidateLinkedHasMoved) {
  54642. this.processCandidatePort();
  54643. this.props.globalState.onCandidateLinkMoved.notifyObservers(null);
  54644. }
  54645. else { // is a click event on NodePort
  54646. if (this._candidateLink.portA instanceof _frameNodePort__WEBPACK_IMPORTED_MODULE_8__["FrameNodePort"]) { //only on Frame Node Ports
  54647. var port_1 = this._candidateLink.portA;
  54648. var frame = this.frames.find(function (frame) { return frame.id === port_1.parentFrameId; });
  54649. if (frame) {
  54650. var data = {
  54651. frame: frame,
  54652. port: port_1
  54653. };
  54654. this.props.globalState.onSelectionChangedObservable.notifyObservers(data);
  54655. }
  54656. }
  54657. else if (this._candidateLink.portA instanceof _nodePort__WEBPACK_IMPORTED_MODULE_6__["NodePort"]) {
  54658. this.props.globalState.onSelectionChangedObservable.notifyObservers(this._candidateLink.portA);
  54659. }
  54660. }
  54661. this._candidateLink.dispose();
  54662. this._candidateLink = null;
  54663. this._candidatePort = null;
  54664. }
  54665. if (this._selectionBox) {
  54666. this._selectionBox.parentElement.removeChild(this._selectionBox);
  54667. this._selectionBox = null;
  54668. }
  54669. if (this._frameCandidate) {
  54670. var newFrame = new _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"](this._frameCandidate, this);
  54671. this._frames.push(newFrame);
  54672. this._frameCandidate.parentElement.removeChild(this._frameCandidate);
  54673. this._frameCandidate = null;
  54674. this.props.globalState.onSelectionChangedObservable.notifyObservers(newFrame);
  54675. }
  54676. };
  54677. GraphCanvasComponent.prototype.onWheel = function (evt) {
  54678. var delta = evt.deltaY < 0 ? 0.1 : -0.1;
  54679. var oldZoom = this.zoom;
  54680. this.zoom = Math.min(Math.max(this.MinZoom, this.zoom + delta * this.zoom), this.MaxZoom);
  54681. var boundingRect = evt.currentTarget.getBoundingClientRect();
  54682. var clientWidth = boundingRect.width;
  54683. var clientHeight = boundingRect.height;
  54684. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  54685. var heightDiff = clientHeight * this.zoom - clientHeight * oldZoom;
  54686. var clientX = evt.clientX - boundingRect.left;
  54687. var clientY = evt.clientY - boundingRect.top;
  54688. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  54689. var yFactor = (clientY - this.y) / oldZoom / clientHeight;
  54690. this.x = this.x - widthDiff * xFactor;
  54691. this.y = this.y - heightDiff * yFactor;
  54692. evt.stopPropagation();
  54693. };
  54694. GraphCanvasComponent.prototype.zoomToFit = function () {
  54695. var _this = this;
  54696. // Get negative offset
  54697. var minX = 0;
  54698. var minY = 0;
  54699. this._nodes.forEach(function (node) {
  54700. if (_this._frames.some(function (f) { return f.nodes.indexOf(node) !== -1; })) {
  54701. return;
  54702. }
  54703. if (node.x < minX) {
  54704. minX = node.x;
  54705. }
  54706. if (node.y < minY) {
  54707. minY = node.y;
  54708. }
  54709. });
  54710. this._frames.forEach(function (frame) {
  54711. if (frame.x < minX) {
  54712. minX = frame.x;
  54713. }
  54714. if (frame.y < minY) {
  54715. minY = frame.y;
  54716. }
  54717. });
  54718. // Restore to 0
  54719. this._frames.forEach(function (frame) {
  54720. frame.x += -minX;
  54721. frame.y += -minY;
  54722. frame.cleanAccumulation();
  54723. });
  54724. this._nodes.forEach(function (node) {
  54725. node.x += -minX;
  54726. node.y += -minY;
  54727. node.cleanAccumulation();
  54728. });
  54729. // Get correct zoom
  54730. var xFactor = this._rootContainer.clientWidth / this._rootContainer.scrollWidth;
  54731. var yFactor = this._rootContainer.clientHeight / this._rootContainer.scrollHeight;
  54732. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  54733. this.zoom = zoomFactor;
  54734. this.x = 0;
  54735. this.y = 0;
  54736. };
  54737. GraphCanvasComponent.prototype.processCandidatePort = function () {
  54738. var pointB = this._candidateLink.portA.connectionPoint;
  54739. var nodeB = this._candidateLink.portA.node;
  54740. var pointA;
  54741. var nodeA;
  54742. if (this._candidatePort) {
  54743. pointA = this._candidatePort.connectionPoint;
  54744. nodeA = this._candidatePort.node;
  54745. }
  54746. else {
  54747. if (pointB.direction === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointDirection"].Output) {
  54748. return;
  54749. }
  54750. // No destination so let's spin a new input block
  54751. var pointName = "output", inputBlock = void 0;
  54752. var customInputBlock = this._candidateLink.portA.connectionPoint.createCustomInputBlock();
  54753. if (!customInputBlock) {
  54754. 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);
  54755. }
  54756. else {
  54757. inputBlock = customInputBlock[0], pointName = customInputBlock[1];
  54758. }
  54759. this.props.globalState.nodeMaterial.attachedBlocks.push(inputBlock);
  54760. pointA = inputBlock[pointName];
  54761. nodeA = this.appendBlock(inputBlock);
  54762. nodeA.x = this._dropPointX - 200;
  54763. nodeA.y = this._dropPointY - 50;
  54764. }
  54765. if (pointA.direction === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointDirection"].Input) {
  54766. var temp = pointB;
  54767. pointB = pointA;
  54768. pointA = temp;
  54769. var tempNode = nodeA;
  54770. nodeA = nodeB;
  54771. nodeB = tempNode;
  54772. }
  54773. if (pointB.connectedPoint === pointA) {
  54774. return;
  54775. }
  54776. if (pointB === pointA) {
  54777. return;
  54778. }
  54779. if (pointB.direction === pointA.direction) {
  54780. return;
  54781. }
  54782. if (pointB.ownerBlock === pointA.ownerBlock) {
  54783. return;
  54784. }
  54785. // Check compatibility
  54786. var isFragmentOutput = pointB.ownerBlock.getClassName() === "FragmentOutputBlock";
  54787. var compatibilityState = pointA.checkCompatibilityState(pointB);
  54788. 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"])) {
  54789. compatibilityState = pointB.checkCompatibilityState(pointA);
  54790. }
  54791. if (compatibilityState === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].Compatible) {
  54792. if (isFragmentOutput) {
  54793. var fragmentBlock = pointB.ownerBlock;
  54794. if (pointB.name === "rgb" && fragmentBlock.rgba.isConnected) {
  54795. nodeB.getLinksForConnectionPoint(fragmentBlock.rgba)[0].dispose();
  54796. }
  54797. else if (pointB.name === "rgba" && fragmentBlock.rgb.isConnected) {
  54798. nodeB.getLinksForConnectionPoint(fragmentBlock.rgb)[0].dispose();
  54799. }
  54800. }
  54801. }
  54802. else {
  54803. var message = "";
  54804. switch (compatibilityState) {
  54805. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].TypeIncompatible:
  54806. message = "Cannot connect two different connection types";
  54807. break;
  54808. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].TargetIncompatible:
  54809. message = "Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader";
  54810. break;
  54811. }
  54812. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(message);
  54813. return;
  54814. }
  54815. if (pointB.isConnected) {
  54816. var links = nodeB.getLinksForConnectionPoint(pointB);
  54817. links.forEach(function (link) {
  54818. link.dispose();
  54819. });
  54820. }
  54821. if (pointB.ownerBlock.inputsAreExclusive) { // Disconnect all inputs if block has exclusive inputs
  54822. pointB.ownerBlock.inputs.forEach(function (i) {
  54823. var links = nodeB.getLinksForConnectionPoint(i);
  54824. links.forEach(function (link) {
  54825. link.dispose();
  54826. });
  54827. });
  54828. }
  54829. pointA.connectTo(pointB);
  54830. this.connectPorts(pointA, pointB);
  54831. nodeB.refresh();
  54832. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  54833. };
  54834. GraphCanvasComponent.prototype.processEditorData = function (editorData) {
  54835. var frames = this._frames.splice(0);
  54836. for (var _i = 0, frames_2 = frames; _i < frames_2.length; _i++) {
  54837. var frame = frames_2[_i];
  54838. frame.dispose();
  54839. }
  54840. this._frames = [];
  54841. this.x = editorData.x || 0;
  54842. this.y = editorData.y || 0;
  54843. this.zoom = editorData.zoom || 1;
  54844. // Frames
  54845. if (editorData.frames) {
  54846. for (var _a = 0, _b = editorData.frames; _a < _b.length; _a++) {
  54847. var frameData = _b[_a];
  54848. var frame = _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"].Parse(frameData, this, editorData.map);
  54849. this._frames.push(frame);
  54850. }
  54851. }
  54852. };
  54853. GraphCanvasComponent.prototype.render = function () {
  54854. var _this = this;
  54855. 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); } },
  54856. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-container" },
  54857. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-canvas-container" }),
  54858. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "frame-container" }),
  54859. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { id: "graph-svg-container" }),
  54860. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "selection-container" }))));
  54861. };
  54862. return GraphCanvasComponent;
  54863. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54864. /***/ }),
  54865. /***/ "./diagram/graphFrame.ts":
  54866. /*!*******************************!*\
  54867. !*** ./diagram/graphFrame.ts ***!
  54868. \*******************************/
  54869. /*! exports provided: FramePortPosition, GraphFrame */
  54870. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54871. "use strict";
  54872. __webpack_require__.r(__webpack_exports__);
  54873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FramePortPosition", function() { return FramePortPosition; });
  54874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphFrame", function() { return GraphFrame; });
  54875. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  54876. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  54877. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../serializationTools */ "./serializationTools.ts");
  54878. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../stringTools */ "./stringTools.ts");
  54879. /* harmony import */ var _frameNodePort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./frameNodePort */ "./diagram/frameNodePort.ts");
  54880. var ResizingDirection;
  54881. (function (ResizingDirection) {
  54882. ResizingDirection[ResizingDirection["Right"] = 0] = "Right";
  54883. ResizingDirection[ResizingDirection["Left"] = 1] = "Left";
  54884. ResizingDirection[ResizingDirection["Top"] = 2] = "Top";
  54885. ResizingDirection[ResizingDirection["Bottom"] = 3] = "Bottom";
  54886. ResizingDirection[ResizingDirection["TopRight"] = 4] = "TopRight";
  54887. ResizingDirection[ResizingDirection["TopLeft"] = 5] = "TopLeft";
  54888. ResizingDirection[ResizingDirection["BottomRight"] = 6] = "BottomRight";
  54889. ResizingDirection[ResizingDirection["BottomLeft"] = 7] = "BottomLeft";
  54890. })(ResizingDirection || (ResizingDirection = {}));
  54891. var FramePortPosition;
  54892. (function (FramePortPosition) {
  54893. FramePortPosition[FramePortPosition["Top"] = 0] = "Top";
  54894. FramePortPosition[FramePortPosition["Middle"] = 1] = "Middle";
  54895. FramePortPosition[FramePortPosition["Bottom"] = 2] = "Bottom";
  54896. })(FramePortPosition || (FramePortPosition = {}));
  54897. ;
  54898. var GraphFrame = /** @class */ (function () {
  54899. function GraphFrame(candidate, canvas, doNotCaptureNodes) {
  54900. var _this_1 = this;
  54901. if (doNotCaptureNodes === void 0) { doNotCaptureNodes = false; }
  54902. this.CollapsedWidth = 200;
  54903. this._x = 0;
  54904. this._y = 0;
  54905. this._gridAlignedX = 0;
  54906. this._gridAlignedY = 0;
  54907. this._nodes = [];
  54908. this._mouseStartPointX = null;
  54909. this._mouseStartPointY = null;
  54910. this._isCollapsed = false;
  54911. this._frameInPorts = [];
  54912. this._frameOutPorts = [];
  54913. this._controlledPorts = []; // Ports on Nodes that are shown on outside of frame
  54914. this._minFrameHeight = 40;
  54915. this._minFrameWidth = 220;
  54916. this.onExpandStateChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  54917. 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>";
  54918. 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>";
  54919. 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>";
  54920. this.initResizing = function (evt) {
  54921. evt.stopPropagation();
  54922. _this_1._mouseStartPointX = evt.clientX;
  54923. _this_1._mouseStartPointY = evt.clientY;
  54924. _this_1._frameIsResizing = true;
  54925. };
  54926. this.cleanUpResizing = function (evt) {
  54927. evt.stopPropagation();
  54928. _this_1._frameIsResizing = false;
  54929. _this_1._resizingDirection = null;
  54930. _this_1._mouseStartPointX = null;
  54931. _this_1._mouseStartPointY = null;
  54932. _this_1.mouseXLimit = null;
  54933. _this_1.refresh();
  54934. };
  54935. this.updateMinHeightWithComments = function () {
  54936. if (_this_1.comments && _this_1.comments.length > 0) {
  54937. var minFrameHeightWithComments = _this_1._commentsElement.offsetHeight + 40;
  54938. _this_1._minFrameHeight = minFrameHeightWithComments;
  54939. }
  54940. };
  54941. this._onRightHandlePointerDown = function (evt) {
  54942. // tslint:disable-next-line: no-this-assignment
  54943. var _this = _this_1;
  54944. if (_this.isCollapsed) {
  54945. return;
  54946. }
  54947. _this_1.initResizing(evt);
  54948. _this._resizingDirection = ResizingDirection.Right;
  54949. _this.mouseXLimit = evt.clientX - (_this.width - _this._minFrameWidth);
  54950. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onRightHandlePointerUp);
  54951. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onRightHandlePointerMove);
  54952. };
  54953. this._onRightHandlePointerMove = function (evt) {
  54954. var slack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  54955. var xLimit = _this_1._mouseStartPointX - slack;
  54956. _this_1._moveRightHandle(evt, xLimit);
  54957. };
  54958. this._moveRightHandle = function (evt, xLimit) {
  54959. // tslint:disable-next-line: no-this-assignment
  54960. var _this = _this_1;
  54961. if (_this.mouseXLimit) {
  54962. if (!_this._isResizingRight() || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientX < xLimit) {
  54963. return;
  54964. }
  54965. if (_this._isResizingRight()) {
  54966. evt.stopPropagation();
  54967. var distanceMouseMoved = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  54968. _this._expandRight(distanceMouseMoved, evt.clientX);
  54969. _this._mouseStartPointX = evt.clientX;
  54970. }
  54971. }
  54972. };
  54973. this._onRightHandlePointerUp = function (evt) {
  54974. // tslint:disable-next-line: no-this-assignment
  54975. var _this = _this_1;
  54976. if (_this._isResizingRight()) {
  54977. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  54978. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onRightHandlePointerUp);
  54979. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onRightHandlePointerMove);
  54980. _this.cleanUpResizing(evt);
  54981. }
  54982. };
  54983. this._onBottomHandlePointerDown = function (evt) {
  54984. // tslint:disable-next-line: no-this-assignment
  54985. var _this = _this_1;
  54986. if (_this.isCollapsed) {
  54987. return;
  54988. }
  54989. _this.initResizing(evt);
  54990. _this._resizingDirection = ResizingDirection.Bottom;
  54991. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomHandlePointerMove);
  54992. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomHandlePointerUp);
  54993. };
  54994. this._onBottomHandlePointerMove = function (evt) {
  54995. var slack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  54996. var yLimit = _this_1._mouseStartPointY - slack;
  54997. _this_1._moveBottomHandle(evt, yLimit);
  54998. };
  54999. this._moveBottomHandle = function (evt, yLimit) {
  55000. // tslint:disable-next-line: no-this-assignment
  55001. var _this = _this_1;
  55002. if (_this._resizingDirection !== ResizingDirection.Bottom || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY < yLimit) {
  55003. return;
  55004. }
  55005. if (_this._resizingDirection === ResizingDirection.Bottom) {
  55006. evt.stopPropagation();
  55007. var distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55008. _this._expandBottom(distanceMouseMoved);
  55009. _this._mouseStartPointY = evt.clientY;
  55010. }
  55011. };
  55012. this._onBottomHandlePointerUp = function (evt) {
  55013. // tslint:disable-next-line: no-this-assignment
  55014. var _this = _this_1;
  55015. if (_this._resizingDirection === ResizingDirection.Bottom) {
  55016. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  55017. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomHandlePointerMove);
  55018. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomHandlePointerUp);
  55019. _this.cleanUpResizing(evt);
  55020. }
  55021. };
  55022. this._onLeftHandlePointerDown = function (evt) {
  55023. // tslint:disable-next-line: no-this-assignment
  55024. var _this = _this_1;
  55025. if (_this.isCollapsed) {
  55026. return;
  55027. }
  55028. _this.initResizing(evt);
  55029. _this._resizingDirection = ResizingDirection.Left;
  55030. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  55031. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onLeftHandlePointerUp);
  55032. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onLeftHandlePointerMove);
  55033. };
  55034. this._onLeftHandlePointerMove = function (evt) {
  55035. var slack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  55036. var xLimit = _this_1._mouseStartPointX + slack;
  55037. _this_1._moveLeftHandle(evt, xLimit);
  55038. };
  55039. this._moveLeftHandle = function (evt, xLimit) {
  55040. // tslint:disable-next-line: no-this-assignment
  55041. var _this = _this_1;
  55042. if (_this.mouseXLimit) {
  55043. if (_this._resizingDirection !== ResizingDirection.Left || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientX > xLimit) {
  55044. return;
  55045. }
  55046. if (_this._resizingDirection === ResizingDirection.Left) {
  55047. evt.stopPropagation();
  55048. var distanceMouseMoved = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55049. _this._expandLeft(distanceMouseMoved);
  55050. _this._mouseStartPointX = evt.clientX;
  55051. }
  55052. }
  55053. };
  55054. this._onLeftHandlePointerUp = function (evt) {
  55055. // tslint:disable-next-line: no-this-assignment
  55056. var _this = _this_1;
  55057. if (_this._resizingDirection === ResizingDirection.Left) {
  55058. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  55059. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  55060. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onLeftHandlePointerUp);
  55061. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onLeftHandlePointerMove);
  55062. _this.cleanUpResizing(evt);
  55063. }
  55064. };
  55065. this._onTopHandlePointerDown = function (evt) {
  55066. // tslint:disable-next-line: no-this-assignment
  55067. var _this = _this_1;
  55068. if (_this.isCollapsed) {
  55069. return;
  55070. }
  55071. _this.initResizing(evt);
  55072. _this._resizingDirection = ResizingDirection.Top;
  55073. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopHandlePointerUp);
  55074. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopHandlePointerMove);
  55075. };
  55076. this._onTopHandlePointerMove = function (evt) {
  55077. var slack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  55078. var yLimit = _this_1._mouseStartPointY + slack;
  55079. _this_1._moveTopHandle(evt, yLimit);
  55080. };
  55081. this._moveTopHandle = function (evt, yLimit) {
  55082. // tslint:disable-next-line: no-this-assignment
  55083. var _this = _this_1;
  55084. if (!_this._isResizingTop() || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY > yLimit) {
  55085. return;
  55086. }
  55087. if (_this._isResizingTop()) {
  55088. evt.stopPropagation();
  55089. var distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55090. _this._expandTop(distanceMouseMoved);
  55091. _this._mouseStartPointY = evt.clientY;
  55092. }
  55093. };
  55094. this._onTopHandlePointerUp = function (evt) {
  55095. // tslint:disable-next-line: no-this-assignment
  55096. var _this = _this_1;
  55097. if (_this._isResizingTop()) {
  55098. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  55099. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  55100. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopHandlePointerUp);
  55101. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopHandlePointerMove);
  55102. _this.cleanUpResizing(evt);
  55103. }
  55104. };
  55105. this._onTopRightHandlePointerDown = function (evt) {
  55106. // tslint:disable-next-line: no-this-assignment
  55107. var _this = _this_1;
  55108. if (_this.isCollapsed) {
  55109. return;
  55110. }
  55111. _this.initResizing(evt);
  55112. _this._resizingDirection = ResizingDirection.TopRight;
  55113. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopRightHandlePointerUp);
  55114. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopRightHandlePointerMove);
  55115. };
  55116. this._onTopRightHandlePointerMove = function (evt) {
  55117. var topSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  55118. var yLimit = _this_1._mouseStartPointY + topSlack;
  55119. var rightSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  55120. var xLimit = _this_1._mouseStartPointX - rightSlack;
  55121. _this_1._moveTopRightHandle(evt, xLimit, yLimit);
  55122. };
  55123. this._moveTopRightHandle = function (evt, xLimit, yLimit) {
  55124. // tslint:disable-next-line: no-this-assignment
  55125. var _this = _this_1;
  55126. if (!(_this._isResizingTop() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  55127. return;
  55128. }
  55129. if (_this._isResizingRight() && _this._isResizingTop()) {
  55130. evt.stopPropagation();
  55131. if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in X and Y
  55132. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55133. _this._expandRight(distanceMouseMovedX, evt.clientX);
  55134. _this._mouseStartPointX = evt.clientX;
  55135. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55136. _this._expandTop(distanceMouseMovedY);
  55137. _this._mouseStartPointY = evt.clientY;
  55138. }
  55139. else if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in X but not Y
  55140. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55141. _this._expandRight(distanceMouseMovedX, evt.clientX);
  55142. _this._mouseStartPointX = evt.clientX;
  55143. }
  55144. else if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in Y but not X
  55145. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55146. _this._expandTop(distanceMouseMovedY);
  55147. _this._mouseStartPointY = evt.clientY;
  55148. }
  55149. }
  55150. };
  55151. this._onTopRightHandlePointerUp = function (evt) {
  55152. evt.stopPropagation();
  55153. // tslint:disable-next-line: no-this-assignment
  55154. var _this = _this_1;
  55155. if (_this._resizingDirection === ResizingDirection.TopRight) {
  55156. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  55157. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  55158. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  55159. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopRightHandlePointerUp);
  55160. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopRightHandlePointerMove);
  55161. _this.cleanUpResizing(evt);
  55162. }
  55163. };
  55164. this._onBottomRightHandlePointerDown = function (evt) {
  55165. // tslint:disable-next-line: no-this-assignment
  55166. var _this = _this_1;
  55167. if (_this.isCollapsed) {
  55168. return;
  55169. }
  55170. _this.initResizing(evt);
  55171. _this._resizingDirection = ResizingDirection.BottomRight;
  55172. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomRightHandlePointerUp);
  55173. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomRightHandlePointerMove);
  55174. };
  55175. this._onBottomRightHandlePointerMove = function (evt) {
  55176. var bottomSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  55177. var yLimit = _this_1._mouseStartPointY - bottomSlack;
  55178. var rightSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  55179. var xLimit = _this_1._mouseStartPointX - rightSlack;
  55180. _this_1._moveBottomRightHandle(evt, xLimit, yLimit);
  55181. };
  55182. this._moveBottomRightHandle = function (evt, xLimit, yLimit) {
  55183. // tslint:disable-next-line: no-this-assignment
  55184. var _this = _this_1;
  55185. if (!(_this._isResizingBottom() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  55186. return;
  55187. }
  55188. if (_this._isResizingRight() && _this._isResizingBottom()) {
  55189. evt.stopPropagation();
  55190. if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in X and Y
  55191. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55192. _this._expandRight(distanceMouseMovedX, evt.clientX);
  55193. _this._mouseStartPointX = evt.clientX;
  55194. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55195. _this._expandBottom(distanceMouseMovedY);
  55196. _this._mouseStartPointY = evt.clientY;
  55197. }
  55198. else if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in X but not Y
  55199. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55200. _this._expandRight(distanceMouseMovedX, evt.clientX);
  55201. _this._mouseStartPointX = evt.clientX;
  55202. }
  55203. else if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in Y but not X
  55204. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55205. _this._expandBottom(distanceMouseMovedY);
  55206. _this._mouseStartPointY = evt.clientY;
  55207. }
  55208. }
  55209. };
  55210. this._onBottomRightHandlePointerUp = function (evt) {
  55211. evt.stopPropagation();
  55212. // tslint:disable-next-line: no-this-assignment
  55213. var _this = _this_1;
  55214. if (_this._resizingDirection === ResizingDirection.BottomRight) {
  55215. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  55216. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  55217. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomRightHandlePointerUp);
  55218. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomRightHandlePointerMove);
  55219. _this.cleanUpResizing(evt);
  55220. }
  55221. };
  55222. this._onBottomLeftHandlePointerDown = function (evt) {
  55223. // tslint:disable-next-line: no-this-assignment
  55224. var _this = _this_1;
  55225. if (_this.isCollapsed) {
  55226. return;
  55227. }
  55228. _this.initResizing(evt);
  55229. _this._resizingDirection = ResizingDirection.BottomLeft;
  55230. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  55231. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomLeftHandlePointerUp);
  55232. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomLeftHandlePointerMove);
  55233. };
  55234. this._onBottomLeftHandlePointerMove = function (evt) {
  55235. var bottomSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  55236. var yLimit = _this_1._mouseStartPointY - bottomSlack;
  55237. var leftSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  55238. var xLimit = _this_1._mouseStartPointX + leftSlack;
  55239. _this_1._moveBottomLeftHandle(evt, xLimit, yLimit);
  55240. };
  55241. this._moveBottomLeftHandle = function (evt, xLimit, yLimit) {
  55242. // tslint:disable-next-line: no-this-assignment
  55243. var _this = _this_1;
  55244. if (!(_this._isResizingBottom() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  55245. return;
  55246. }
  55247. if (_this._isResizingLeft() && _this._isResizingBottom()) {
  55248. evt.stopPropagation();
  55249. if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in X and Y
  55250. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55251. _this._expandLeft(distanceMouseMovedX);
  55252. _this._mouseStartPointX = evt.clientX;
  55253. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55254. _this._expandBottom(distanceMouseMovedY);
  55255. _this._mouseStartPointY = evt.clientY;
  55256. }
  55257. else if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in X but not Y
  55258. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55259. _this._expandLeft(distanceMouseMovedX);
  55260. _this._mouseStartPointX = evt.clientX;
  55261. }
  55262. else if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in Y but not X
  55263. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55264. _this._expandBottom(distanceMouseMovedY);
  55265. _this._mouseStartPointY = evt.clientY;
  55266. }
  55267. }
  55268. };
  55269. this._onBottomLeftHandlePointerUp = function (evt) {
  55270. evt.stopPropagation();
  55271. // tslint:disable-next-line: no-this-assignment
  55272. var _this = _this_1;
  55273. if (_this._resizingDirection === ResizingDirection.BottomLeft) {
  55274. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  55275. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  55276. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  55277. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomLeftHandlePointerUp);
  55278. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomLeftHandlePointerMove);
  55279. _this.cleanUpResizing(evt);
  55280. }
  55281. };
  55282. this._onTopLeftHandlePointerDown = function (evt) {
  55283. // tslint:disable-next-line: no-this-assignment
  55284. var _this = _this_1;
  55285. if (_this.isCollapsed) {
  55286. return;
  55287. }
  55288. _this.initResizing(evt);
  55289. _this._resizingDirection = ResizingDirection.TopLeft;
  55290. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  55291. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopLeftHandlePointerUp);
  55292. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopLeftHandlePointerMove);
  55293. };
  55294. this._onTopLeftHandlePointerMove = function (evt) {
  55295. var topSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  55296. var yLimit = _this_1._mouseStartPointY + topSlack;
  55297. var leftSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  55298. var xLimit = _this_1._mouseStartPointX + leftSlack;
  55299. _this_1._moveTopLeftHandle(evt, xLimit, yLimit);
  55300. };
  55301. this._moveTopLeftHandle = function (evt, xLimit, yLimit) {
  55302. // tslint:disable-next-line: no-this-assignment
  55303. var _this = _this_1;
  55304. if (!(_this._isResizingTop() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  55305. return;
  55306. }
  55307. if (_this._isResizingLeft() && _this._isResizingTop()) {
  55308. evt.stopPropagation();
  55309. if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in X and Y
  55310. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55311. _this._expandLeft(distanceMouseMovedX);
  55312. _this._mouseStartPointX = evt.clientX;
  55313. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55314. _this._expandTop(distanceMouseMovedY);
  55315. _this._mouseStartPointY = evt.clientY;
  55316. }
  55317. else if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in X but not Y
  55318. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  55319. _this._expandLeft(distanceMouseMovedX);
  55320. _this._mouseStartPointX = evt.clientX;
  55321. }
  55322. else if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in Y but not X
  55323. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  55324. _this._expandTop(distanceMouseMovedY);
  55325. _this._mouseStartPointY = evt.clientY;
  55326. }
  55327. }
  55328. };
  55329. this._onTopLeftHandlePointerUp = function (evt) {
  55330. evt.stopPropagation();
  55331. // tslint:disable-next-line: no-this-assignment
  55332. var _this = _this_1;
  55333. if (_this._resizingDirection === ResizingDirection.TopLeft) {
  55334. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  55335. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  55336. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  55337. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  55338. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopLeftHandlePointerUp);
  55339. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopLeftHandlePointerMove);
  55340. _this.cleanUpResizing(evt);
  55341. }
  55342. };
  55343. this._id = GraphFrame._FrameCounter++;
  55344. this._ownerCanvas = canvas;
  55345. var root = canvas.frameContainer;
  55346. this.element = root.ownerDocument.createElement("div");
  55347. this.element.classList.add("frame-box");
  55348. root.appendChild(this.element);
  55349. this._headerElement = root.ownerDocument.createElement("div");
  55350. this._headerElement.classList.add("frame-box-header");
  55351. this._headerElement.addEventListener("dblclick", function () {
  55352. _this_1.isCollapsed = !_this_1.isCollapsed;
  55353. });
  55354. this.element.appendChild(this._headerElement);
  55355. this._borderElement = root.ownerDocument.createElement("div");
  55356. this._borderElement.classList.add("frame-box-border");
  55357. this.element.appendChild(this._borderElement);
  55358. // add resizing side handles
  55359. var rightHandle = root.ownerDocument.createElement("div");
  55360. rightHandle.className = "handle right-handle";
  55361. this.element.appendChild(rightHandle);
  55362. rightHandle.addEventListener("pointerdown", this._onRightHandlePointerDown);
  55363. var leftHandle = root.ownerDocument.createElement("div");
  55364. leftHandle.className = "handle left-handle";
  55365. this.element.appendChild(leftHandle);
  55366. leftHandle.addEventListener("pointerdown", this._onLeftHandlePointerDown);
  55367. var bottomHandle = root.ownerDocument.createElement("div");
  55368. bottomHandle.className = "handle bottom-handle";
  55369. this.element.appendChild(bottomHandle);
  55370. bottomHandle.addEventListener("pointerdown", this._onBottomHandlePointerDown);
  55371. var topHandle = root.ownerDocument.createElement("div");
  55372. topHandle.className = "handle top-handle";
  55373. this.element.appendChild(topHandle);
  55374. topHandle.addEventListener("pointerdown", this._onTopHandlePointerDown);
  55375. var topRightCornerHandle = root.ownerDocument.createElement("div");
  55376. topRightCornerHandle.className = "handle right-handle top-right-corner-handle";
  55377. this.element.appendChild(topRightCornerHandle);
  55378. topRightCornerHandle.addEventListener("pointerdown", this._onTopRightHandlePointerDown);
  55379. var bottomRightCornerHandle = root.ownerDocument.createElement("div");
  55380. bottomRightCornerHandle.className = "handle right-handle bottom-right-corner-handle";
  55381. this.element.appendChild(bottomRightCornerHandle);
  55382. bottomRightCornerHandle.addEventListener("pointerdown", this._onBottomRightHandlePointerDown);
  55383. var topLeftCornerHandle = root.ownerDocument.createElement("div");
  55384. topLeftCornerHandle.className = "handle left-handle top-left-corner-handle";
  55385. this.element.appendChild(topLeftCornerHandle);
  55386. topLeftCornerHandle.addEventListener("pointerdown", this._onTopLeftHandlePointerDown);
  55387. var bottomLeftCornerHandle = root.ownerDocument.createElement("div");
  55388. bottomLeftCornerHandle.className = "handle left-handle bottom-left-corner-handle";
  55389. this.element.appendChild(bottomLeftCornerHandle);
  55390. bottomLeftCornerHandle.addEventListener("pointerdown", this._onBottomLeftHandlePointerDown);
  55391. // add header elements
  55392. this._headerTextElement = root.ownerDocument.createElement("div");
  55393. this._headerTextElement.classList.add("frame-box-header-title");
  55394. this._headerElement.appendChild(this._headerTextElement);
  55395. this._headerCollapseElement = root.ownerDocument.createElement("div");
  55396. this._headerCollapseElement.classList.add("frame-box-header-collapse");
  55397. this._headerCollapseElement.classList.add("frame-box-header-button");
  55398. this._headerCollapseElement.title = "Collapse";
  55399. this._headerCollapseElement.ondragstart = function () { return false; };
  55400. this._headerCollapseElement.addEventListener("pointerdown", function (evt) {
  55401. _this_1._headerCollapseElement.classList.add("down");
  55402. evt.stopPropagation();
  55403. });
  55404. this._headerCollapseElement.addEventListener("pointerup", function (evt) {
  55405. evt.stopPropagation();
  55406. _this_1._headerCollapseElement.classList.remove("down");
  55407. _this_1.isCollapsed = !_this_1.isCollapsed;
  55408. });
  55409. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  55410. this._headerElement.appendChild(this._headerCollapseElement);
  55411. this._headerCloseElement = root.ownerDocument.createElement("div");
  55412. this._headerCloseElement.classList.add("frame-box-header-close");
  55413. this._headerCloseElement.classList.add("frame-box-header-button");
  55414. this._headerCloseElement.title = "Close";
  55415. this._headerCloseElement.ondragstart = function () { return false; };
  55416. this._headerCloseElement.addEventListener("pointerdown", function (evt) {
  55417. evt.stopPropagation();
  55418. });
  55419. this._headerCloseElement.addEventListener("pointerup", function (evt) {
  55420. evt.stopPropagation();
  55421. _this_1.dispose();
  55422. });
  55423. this._headerCloseElement.innerHTML = this.CloseSVG;
  55424. this._headerElement.appendChild(this._headerCloseElement);
  55425. this._portContainer = root.ownerDocument.createElement("div");
  55426. this._portContainer.classList.add("port-container");
  55427. this.element.appendChild(this._portContainer);
  55428. this._outputPortContainer = root.ownerDocument.createElement("div");
  55429. this._outputPortContainer.classList.add("outputsContainer");
  55430. this._portContainer.appendChild(this._outputPortContainer);
  55431. this._inputPortContainer = root.ownerDocument.createElement("div");
  55432. this._inputPortContainer.classList.add("inputsContainer");
  55433. this._portContainer.appendChild(this._inputPortContainer);
  55434. this.name = "Frame";
  55435. this.color = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromInts(72, 72, 72);
  55436. if (candidate) {
  55437. this.x = parseFloat(candidate.style.left.replace("px", ""));
  55438. this.y = parseFloat(candidate.style.top.replace("px", ""));
  55439. this.width = parseFloat(candidate.style.width.replace("px", ""));
  55440. this.height = parseFloat(candidate.style.height.replace("px", ""));
  55441. this.cleanAccumulation();
  55442. }
  55443. this._headerTextElement.addEventListener("pointerdown", function (evt) { return _this_1._onDown(evt); });
  55444. this._headerTextElement.addEventListener("pointerup", function (evt) { return _this_1._onUp(evt); });
  55445. this._headerTextElement.addEventListener("pointermove", function (evt) { return _this_1._onMove(evt); });
  55446. this._onSelectionChangedObserver = canvas.globalState.onSelectionChangedObservable.add(function (node) {
  55447. if (node === _this_1) {
  55448. _this_1.element.classList.add("selected");
  55449. }
  55450. else {
  55451. _this_1.element.classList.remove("selected");
  55452. }
  55453. });
  55454. this._onGraphNodeRemovalObserver = canvas.globalState.onGraphNodeRemovalObservable.add(function (node) {
  55455. // remove node from this._nodes
  55456. var index = _this_1._nodes.indexOf(node);
  55457. if (index === -1) {
  55458. return;
  55459. }
  55460. else {
  55461. _this_1._nodes.splice(index, 1);
  55462. }
  55463. });
  55464. this._commentsElement = document.createElement('div');
  55465. this._commentsElement.className = 'frame-comments';
  55466. this._commentsElement.style.color = 'white';
  55467. this._commentsElement.style.fontSize = '16px';
  55468. this.element.appendChild(this._commentsElement);
  55469. // Get nodes
  55470. if (!doNotCaptureNodes) {
  55471. this.refresh();
  55472. }
  55473. }
  55474. Object.defineProperty(GraphFrame.prototype, "id", {
  55475. get: function () {
  55476. return this._id;
  55477. },
  55478. enumerable: true,
  55479. configurable: true
  55480. });
  55481. Object.defineProperty(GraphFrame.prototype, "isCollapsed", {
  55482. get: function () {
  55483. return this._isCollapsed;
  55484. },
  55485. set: function (value) {
  55486. if (this._isCollapsed === value) {
  55487. return;
  55488. }
  55489. this._isCollapsed = value;
  55490. this._ownerCanvas._frameIsMoving = true;
  55491. // Need to delegate the outside ports to the frame
  55492. if (value) {
  55493. this.element.classList.add("collapsed");
  55494. this._moveFrame((this.width - this.CollapsedWidth) / 2, 0);
  55495. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  55496. var node = _a[_i];
  55497. node.isVisible = false;
  55498. for (var _b = 0, _c = node.outputPorts; _b < _c.length; _b++) { // Output
  55499. var port = _c[_b];
  55500. if (port.connectionPoint.hasEndpoints) {
  55501. var portAdded = false;
  55502. for (var _d = 0, _e = node.links; _d < _e.length; _d++) {
  55503. var link = _e[_d];
  55504. if (link.portA === port && this.nodes.indexOf(link.nodeB) === -1) {
  55505. var localPort = void 0;
  55506. if (!portAdded) {
  55507. portAdded = true;
  55508. localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, link.nodeB, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  55509. this._frameOutPorts.push(localPort);
  55510. link.isVisible = true;
  55511. }
  55512. else {
  55513. localPort = this.ports.filter(function (p) { return p.connectionPoint === port.connectionPoint; })[0];
  55514. }
  55515. port.delegatedPort = localPort;
  55516. this._controlledPorts.push(port);
  55517. }
  55518. }
  55519. }
  55520. else {
  55521. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  55522. this._frameOutPorts.push(localPort);
  55523. port.delegatedPort = localPort;
  55524. this._controlledPorts.push(port);
  55525. }
  55526. }
  55527. for (var _f = 0, _g = node.inputPorts; _f < _g.length; _f++) { // Input
  55528. var port = _g[_f];
  55529. if (port.connectionPoint.isConnected) {
  55530. for (var _h = 0, _j = node.links; _h < _j.length; _h++) {
  55531. var link = _j[_h];
  55532. if (link.portB === port && this.nodes.indexOf(link.nodeA) === -1) {
  55533. this._createInputPort(port, node);
  55534. link.isVisible = true;
  55535. }
  55536. }
  55537. }
  55538. else {
  55539. this._createInputPort(port, node);
  55540. }
  55541. }
  55542. }
  55543. // mark FrameInPorts with position
  55544. if (this._frameInPorts.length == 2) {
  55545. this._frameInPorts[0].framePortPosition = FramePortPosition.Top;
  55546. this._frameInPorts[1].framePortPosition = FramePortPosition.Bottom;
  55547. }
  55548. else {
  55549. for (var i = 0; i < this._frameInPorts.length; i++) {
  55550. var port_1 = this._frameInPorts[i];
  55551. if (i === 0) {
  55552. port_1.framePortPosition = FramePortPosition.Top;
  55553. }
  55554. else if (i === this._frameInPorts.length - 1) {
  55555. port_1.framePortPosition = FramePortPosition.Bottom;
  55556. }
  55557. else {
  55558. port_1.framePortPosition = FramePortPosition.Middle;
  55559. }
  55560. }
  55561. }
  55562. // mark FrameOutPorts with position
  55563. if (this._frameOutPorts.length == 2) {
  55564. this._frameOutPorts[0].framePortPosition = FramePortPosition.Top;
  55565. this._frameOutPorts[1].framePortPosition = FramePortPosition.Bottom;
  55566. }
  55567. else {
  55568. for (var i = 0; i < this._frameOutPorts.length; i++) {
  55569. var port_2 = this._frameOutPorts[i];
  55570. if (i === 0) {
  55571. port_2.framePortPosition = FramePortPosition.Top;
  55572. }
  55573. else if (i === this._frameInPorts.length - 1) {
  55574. port_2.framePortPosition = FramePortPosition.Bottom;
  55575. }
  55576. else {
  55577. port_2.framePortPosition = FramePortPosition.Middle;
  55578. }
  55579. }
  55580. }
  55581. }
  55582. else {
  55583. this.element.classList.remove("collapsed");
  55584. this._outputPortContainer.innerHTML = "";
  55585. this._inputPortContainer.innerHTML = "";
  55586. this._frameInPorts.forEach(function (p) {
  55587. p.dispose();
  55588. });
  55589. this._frameOutPorts.forEach(function (p) {
  55590. p.dispose();
  55591. });
  55592. this._controlledPorts.forEach(function (port) {
  55593. port.delegatedPort = null;
  55594. port.refresh();
  55595. });
  55596. this._frameInPorts = [];
  55597. this._frameOutPorts = [];
  55598. this._controlledPorts = [];
  55599. for (var _k = 0, _l = this._nodes; _k < _l.length; _k++) {
  55600. var node = _l[_k];
  55601. node.isVisible = true;
  55602. }
  55603. this._moveFrame(-(this.width - this.CollapsedWidth) / 2, 0);
  55604. }
  55605. this.cleanAccumulation();
  55606. this._ownerCanvas._frameIsMoving = false;
  55607. // UI
  55608. if (this._isCollapsed) {
  55609. this._headerCollapseElement.innerHTML = this.ExpandSVG;
  55610. this._headerCollapseElement.title = "Expand";
  55611. }
  55612. else {
  55613. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  55614. this._headerCollapseElement.title = "Collapse";
  55615. }
  55616. this.onExpandStateChanged.notifyObservers(this);
  55617. },
  55618. enumerable: true,
  55619. configurable: true
  55620. });
  55621. GraphFrame.prototype._createInputPort = function (port, node) {
  55622. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._inputPortContainer, null, this._ownerCanvas.globalState, true, GraphFrame._FramePortCounter++, this.id);
  55623. this._frameInPorts.push(localPort);
  55624. port.delegatedPort = localPort;
  55625. this._controlledPorts.push(port);
  55626. };
  55627. Object.defineProperty(GraphFrame.prototype, "nodes", {
  55628. get: function () {
  55629. return this._nodes;
  55630. },
  55631. enumerable: true,
  55632. configurable: true
  55633. });
  55634. Object.defineProperty(GraphFrame.prototype, "ports", {
  55635. get: function () {
  55636. return this._frameInPorts.concat(this._frameOutPorts);
  55637. },
  55638. enumerable: true,
  55639. configurable: true
  55640. });
  55641. Object.defineProperty(GraphFrame.prototype, "name", {
  55642. get: function () {
  55643. return this._name;
  55644. },
  55645. set: function (value) {
  55646. this._name = value;
  55647. this._headerTextElement.innerHTML = value;
  55648. },
  55649. enumerable: true,
  55650. configurable: true
  55651. });
  55652. Object.defineProperty(GraphFrame.prototype, "color", {
  55653. get: function () {
  55654. return this._color;
  55655. },
  55656. set: function (value) {
  55657. this._color = value;
  55658. this._headerElement.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  55659. this._headerElement.style.borderColor = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  55660. this.element.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 0.7)";
  55661. },
  55662. enumerable: true,
  55663. configurable: true
  55664. });
  55665. Object.defineProperty(GraphFrame.prototype, "x", {
  55666. get: function () {
  55667. return this._x;
  55668. },
  55669. set: function (value) {
  55670. if (this._x === value) {
  55671. return;
  55672. }
  55673. this._x = value;
  55674. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  55675. this.element.style.left = this._gridAlignedX + "px";
  55676. },
  55677. enumerable: true,
  55678. configurable: true
  55679. });
  55680. Object.defineProperty(GraphFrame.prototype, "y", {
  55681. get: function () {
  55682. return this._y;
  55683. },
  55684. set: function (value) {
  55685. if (this._y === value) {
  55686. return;
  55687. }
  55688. this._y = value;
  55689. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  55690. this.element.style.top = this._gridAlignedY + "px";
  55691. },
  55692. enumerable: true,
  55693. configurable: true
  55694. });
  55695. Object.defineProperty(GraphFrame.prototype, "width", {
  55696. get: function () {
  55697. return this._width;
  55698. },
  55699. set: function (value) {
  55700. if (this._width === value) {
  55701. return;
  55702. }
  55703. var viableWidth = value > this._minFrameWidth ? value : this._minFrameWidth;
  55704. this._width = viableWidth;
  55705. var gridAlignedRight = this._ownerCanvas.getGridPositionCeil(viableWidth + this._gridAlignedX);
  55706. this.element.style.width = gridAlignedRight - this._gridAlignedX + "px";
  55707. },
  55708. enumerable: true,
  55709. configurable: true
  55710. });
  55711. Object.defineProperty(GraphFrame.prototype, "height", {
  55712. get: function () {
  55713. return this._height;
  55714. },
  55715. set: function (value) {
  55716. if (this._height === value) {
  55717. return;
  55718. }
  55719. this._height = value;
  55720. var gridAlignedBottom = this._ownerCanvas.getGridPositionCeil(value + this._gridAlignedY);
  55721. this.element.style.height = gridAlignedBottom - this._gridAlignedY + "px";
  55722. },
  55723. enumerable: true,
  55724. configurable: true
  55725. });
  55726. Object.defineProperty(GraphFrame.prototype, "comments", {
  55727. get: function () {
  55728. return this._comments;
  55729. },
  55730. set: function (comments) {
  55731. if (comments && !this._comments && comments.length > 0) {
  55732. this.element.style.gridTemplateRows = "40px min-content 1fr";
  55733. this._borderElement.style.gridRow = "1 / span 3";
  55734. this._portContainer.style.gridRow = "3";
  55735. this._commentsElement.classList.add("has-comments");
  55736. }
  55737. else if (!comments) {
  55738. this.element.style.gridTemplateRows = "40px calc(100% - 40px)";
  55739. this._borderElement.style.gridRow = "1 / span 2";
  55740. this._portContainer.style.gridRow = "2";
  55741. this._commentsElement.classList.remove('has-comments');
  55742. }
  55743. if (comments === "" || (comments && comments.length >= 0)) {
  55744. this._commentsElement.innerText = comments;
  55745. }
  55746. this.height = this._borderElement.offsetHeight;
  55747. this._comments = comments;
  55748. this.updateMinHeightWithComments();
  55749. },
  55750. enumerable: true,
  55751. configurable: true
  55752. });
  55753. GraphFrame.prototype.refresh = function () {
  55754. this._nodes = [];
  55755. this._ownerCanvas.globalState.onFrameCreatedObservable.notifyObservers(this);
  55756. };
  55757. GraphFrame.prototype.addNode = function (node) {
  55758. var index = this.nodes.indexOf(node);
  55759. if (index === -1) {
  55760. this.nodes.push(node);
  55761. }
  55762. };
  55763. GraphFrame.prototype.removeNode = function (node) {
  55764. var index = this.nodes.indexOf(node);
  55765. if (index > -1) {
  55766. this.nodes.splice(index, 1);
  55767. }
  55768. };
  55769. GraphFrame.prototype.syncNode = function (node) {
  55770. if (this.isCollapsed) {
  55771. return;
  55772. }
  55773. if (node.isOverlappingFrame(this)) {
  55774. this.addNode(node);
  55775. }
  55776. else {
  55777. this.removeNode(node);
  55778. }
  55779. };
  55780. GraphFrame.prototype.cleanAccumulation = function () {
  55781. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  55782. var selectedNode = _a[_i];
  55783. selectedNode.cleanAccumulation();
  55784. }
  55785. this.x = this._ownerCanvas.getGridPosition(this.x);
  55786. this.y = this._ownerCanvas.getGridPosition(this.y);
  55787. };
  55788. GraphFrame.prototype._onDown = function (evt) {
  55789. evt.stopPropagation();
  55790. this._mouseStartPointX = evt.clientX;
  55791. this._mouseStartPointY = evt.clientY;
  55792. this._headerTextElement.setPointerCapture(evt.pointerId);
  55793. this._ownerCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  55794. this._ownerCanvas._frameIsMoving = true;
  55795. this.move(this._ownerCanvas.getGridPosition(this.x), this._ownerCanvas.getGridPosition(this.y));
  55796. };
  55797. GraphFrame.prototype.move = function (newX, newY, align) {
  55798. if (align === void 0) { align = true; }
  55799. var oldX = this.x;
  55800. var oldY = this.y;
  55801. this.x = newX;
  55802. this.y = newY;
  55803. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  55804. var selectedNode = _a[_i];
  55805. selectedNode.x += this.x - oldX;
  55806. selectedNode.y += this.y - oldY;
  55807. if (align) {
  55808. selectedNode.cleanAccumulation(true);
  55809. }
  55810. }
  55811. };
  55812. GraphFrame.prototype._onUp = function (evt) {
  55813. evt.stopPropagation();
  55814. this.cleanAccumulation();
  55815. this._mouseStartPointX = null;
  55816. this._mouseStartPointY = null;
  55817. this._headerTextElement.releasePointerCapture(evt.pointerId);
  55818. this._ownerCanvas._frameIsMoving = false;
  55819. };
  55820. GraphFrame.prototype._moveFrame = function (offsetX, offsetY) {
  55821. this.x += offsetX;
  55822. this.y += offsetY;
  55823. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  55824. var selectedNode = _a[_i];
  55825. selectedNode.x += offsetX;
  55826. selectedNode.y += offsetY;
  55827. }
  55828. };
  55829. GraphFrame.prototype._onMove = function (evt) {
  55830. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey || this._frameIsResizing) {
  55831. return;
  55832. }
  55833. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  55834. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  55835. this._moveFrame(newX, newY);
  55836. this._mouseStartPointX = evt.clientX;
  55837. this._mouseStartPointY = evt.clientY;
  55838. evt.stopPropagation();
  55839. };
  55840. GraphFrame.prototype.moveFramePortUp = function (nodePort) {
  55841. var elementsArray;
  55842. if (nodePort.isInput) {
  55843. if (this._inputPortContainer.children.length < 2) {
  55844. return;
  55845. }
  55846. elementsArray = Array.from(this._inputPortContainer.childNodes);
  55847. this._movePortUp(elementsArray, nodePort, this._frameInPorts);
  55848. }
  55849. else {
  55850. if (this._outputPortContainer.children.length < 2) {
  55851. return;
  55852. }
  55853. elementsArray = Array.from(this._outputPortContainer.childNodes);
  55854. this._movePortUp(elementsArray, nodePort, this._frameOutPorts);
  55855. }
  55856. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  55857. };
  55858. GraphFrame.prototype._movePortUp = function (elementsArray, nodePort, framePortList) {
  55859. var _a;
  55860. var _b;
  55861. // update UI
  55862. var indexInElementArray = elementsArray.findIndex(function (elem) { return elem.dataset.framePortId === "" + nodePort.framePortId; });
  55863. if (indexInElementArray === 0) {
  55864. return;
  55865. }
  55866. var secondPortElement = elementsArray[indexInElementArray];
  55867. var firstPortElement = elementsArray[indexInElementArray - 1];
  55868. (_b = firstPortElement.parentElement) === null || _b === void 0 ? void 0 : _b.insertBefore(secondPortElement, firstPortElement);
  55869. // update Frame Port Container
  55870. var indexInContainer = framePortList.findIndex(function (framePort) { return framePort === nodePort; });
  55871. _a = [framePortList[indexInContainer], framePortList[indexInContainer - 1]], framePortList[indexInContainer - 1] = _a[0], framePortList[indexInContainer] = _a[1]; // swap idicies
  55872. //special case framePortList.length == 2
  55873. if (framePortList.length == 2) {
  55874. framePortList[1].framePortPosition = FramePortPosition.Bottom;
  55875. framePortList[0].framePortPosition = FramePortPosition.Top;
  55876. }
  55877. else {
  55878. // notify nodePort if it is now at Top (indexInElementArray === 1)
  55879. if (indexInElementArray === 1) {
  55880. framePortList[1].framePortPosition = FramePortPosition.Middle;
  55881. framePortList[0].framePortPosition = FramePortPosition.Top;
  55882. }
  55883. else if (indexInContainer === elementsArray.length - 1) {
  55884. framePortList[framePortList.length - 1].framePortPosition = FramePortPosition.Bottom;
  55885. framePortList[framePortList.length - 2].framePortPosition = FramePortPosition.Middle;
  55886. }
  55887. else {
  55888. nodePort.framePortPosition = FramePortPosition.Middle;
  55889. }
  55890. }
  55891. };
  55892. GraphFrame.prototype.moveFramePortDown = function (nodePort) {
  55893. var elementsArray;
  55894. if (nodePort.isInput) {
  55895. if (this._inputPortContainer.children.length < 2) {
  55896. return;
  55897. }
  55898. elementsArray = Array.from(this._inputPortContainer.childNodes);
  55899. this._movePortDown(elementsArray, nodePort, this._frameInPorts);
  55900. }
  55901. else {
  55902. if (this._outputPortContainer.children.length < 2) {
  55903. return;
  55904. }
  55905. elementsArray = Array.from(this._outputPortContainer.childNodes);
  55906. this._movePortDown(elementsArray, nodePort, this._frameOutPorts);
  55907. }
  55908. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  55909. };
  55910. GraphFrame.prototype._movePortDown = function (elementsArray, nodePort, framePortList) {
  55911. var _a;
  55912. var _b;
  55913. // update UI
  55914. var indexInElementArray = elementsArray.findIndex(function (elem) { return elem.dataset.framePortId === "" + nodePort.framePortId; });
  55915. if (indexInElementArray === elementsArray.length - 1) {
  55916. return;
  55917. }
  55918. var firstPort = elementsArray[indexInElementArray];
  55919. var secondPort = elementsArray[indexInElementArray + 1];
  55920. (_b = firstPort.parentElement) === null || _b === void 0 ? void 0 : _b.insertBefore(secondPort, firstPort);
  55921. // update Frame Port Container
  55922. var indexInContainer = framePortList.findIndex(function (framePort) { return framePort === nodePort; });
  55923. _a = [framePortList[indexInContainer + 1], framePortList[indexInContainer]], framePortList[indexInContainer] = _a[0], framePortList[indexInContainer + 1] = _a[1]; // swap idicies
  55924. // notify nodePort if it is now at bottom (indexInContainer === elementsArray.length-2)
  55925. if (framePortList.length == 2) {
  55926. framePortList[0].framePortPosition = FramePortPosition.Top;
  55927. framePortList[1].framePortPosition = FramePortPosition.Bottom;
  55928. }
  55929. else {
  55930. if (indexInContainer === elementsArray.length - 2) {
  55931. framePortList[elementsArray.length - 2].framePortPosition = FramePortPosition.Middle;
  55932. framePortList[elementsArray.length - 1].framePortPosition = FramePortPosition.Bottom;
  55933. }
  55934. else if (indexInContainer === 0) {
  55935. framePortList[0].framePortPosition = FramePortPosition.Top;
  55936. framePortList[1].framePortPosition = FramePortPosition.Middle;
  55937. }
  55938. else {
  55939. nodePort.framePortPosition = FramePortPosition.Middle;
  55940. }
  55941. }
  55942. };
  55943. GraphFrame.prototype._isResizingTop = function () {
  55944. return this._resizingDirection === ResizingDirection.Top || this._resizingDirection === ResizingDirection.TopRight || this._resizingDirection === ResizingDirection.TopLeft;
  55945. };
  55946. GraphFrame.prototype._isResizingRight = function () {
  55947. return this._resizingDirection === ResizingDirection.Right || this._resizingDirection === ResizingDirection.TopRight || this._resizingDirection === ResizingDirection.BottomRight;
  55948. };
  55949. GraphFrame.prototype._isResizingBottom = function () {
  55950. return this._resizingDirection === ResizingDirection.Bottom || this._resizingDirection === ResizingDirection.BottomLeft || this._resizingDirection === ResizingDirection.BottomRight;
  55951. };
  55952. GraphFrame.prototype._isResizingLeft = function () {
  55953. return this._resizingDirection === ResizingDirection.Left || this._resizingDirection === ResizingDirection.TopLeft || this._resizingDirection === ResizingDirection.BottomLeft;
  55954. };
  55955. GraphFrame.prototype._expandLeft = function (widthModification) {
  55956. var frameElementWidth = parseFloat(this.element.style.width.replace("px", ""));
  55957. var frameElementLeft = parseFloat(this.element.style.left.replace("px", ""));
  55958. this.element.style.width = frameElementWidth - widthModification + "px";
  55959. this.element.style.left = frameElementLeft + widthModification + "px";
  55960. this.updateMinHeightWithComments();
  55961. };
  55962. GraphFrame.prototype._expandTop = function (heightModification) {
  55963. var frameElementHeight = parseFloat(this.element.style.height.replace("px", ""));
  55964. var frameElementTop = parseFloat(this.element.style.top.replace("px", ""));
  55965. this.element.style.height = frameElementHeight - heightModification + "px";
  55966. this.element.style.top = frameElementTop + heightModification + "px";
  55967. };
  55968. GraphFrame.prototype._expandRight = function (widthModification, x) {
  55969. var frameElementWidth = parseFloat(this.element.style.width.replace("px", ""));
  55970. if ((frameElementWidth + widthModification) > 20) {
  55971. this._mouseStartPointX = x;
  55972. this.element.style.width = frameElementWidth + widthModification + "px";
  55973. }
  55974. this.updateMinHeightWithComments();
  55975. };
  55976. GraphFrame.prototype._expandBottom = function (heightModification) {
  55977. var frameElementHeight = parseFloat(this.element.style.height.replace("px", ""));
  55978. this.element.style.height = frameElementHeight + heightModification + "px";
  55979. };
  55980. GraphFrame.prototype.dispose = function () {
  55981. this.isCollapsed = false;
  55982. if (this._onSelectionChangedObserver) {
  55983. this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  55984. }
  55985. if (this._onGraphNodeRemovalObserver) {
  55986. this._ownerCanvas.globalState.onGraphNodeRemovalObservable.remove(this._onGraphNodeRemovalObserver);
  55987. }
  55988. this.element.parentElement.removeChild(this.element);
  55989. this._ownerCanvas.frames.splice(this._ownerCanvas.frames.indexOf(this), 1);
  55990. this.onExpandStateChanged.clear();
  55991. };
  55992. GraphFrame.prototype.serialize = function () {
  55993. return {
  55994. x: this._x,
  55995. y: this._y,
  55996. width: this._width,
  55997. height: this._height,
  55998. color: this._color.asArray(),
  55999. name: this.name,
  56000. isCollapsed: this.isCollapsed,
  56001. blocks: this.nodes.map(function (n) { return n.block.uniqueId; }),
  56002. comments: this._comments
  56003. };
  56004. };
  56005. GraphFrame.prototype.export = function () {
  56006. var state = this._ownerCanvas.globalState;
  56007. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_1__["SerializationTools"].Serialize(state.nodeMaterial, state, this.nodes.map(function (n) { return n.block; }));
  56008. _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].DownloadAsFile(state.hostDocument, json, this._name + ".json");
  56009. };
  56010. GraphFrame.Parse = function (serializationData, canvas, map) {
  56011. var newFrame = new GraphFrame(null, canvas, true);
  56012. var isCollapsed = !!serializationData.isCollapsed;
  56013. newFrame.x = serializationData.x;
  56014. newFrame.y = serializationData.y;
  56015. newFrame.width = serializationData.width;
  56016. newFrame.height = serializationData.height;
  56017. newFrame.name = serializationData.name;
  56018. newFrame.color = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromArray(serializationData.color);
  56019. newFrame.comments = serializationData.comments;
  56020. if (serializationData.blocks && map) {
  56021. var _loop_1 = function () {
  56022. var actualId = map[blockId];
  56023. var node = canvas.nodes.filter(function (n) { return n.block.uniqueId === actualId; });
  56024. if (node.length) {
  56025. newFrame.nodes.push(node[0]);
  56026. }
  56027. };
  56028. for (var _i = 0, _a = serializationData.blocks; _i < _a.length; _i++) {
  56029. var blockId = _a[_i];
  56030. _loop_1();
  56031. }
  56032. }
  56033. else {
  56034. newFrame.refresh();
  56035. }
  56036. newFrame.isCollapsed = isCollapsed;
  56037. if (isCollapsed) {
  56038. canvas._frameIsMoving = true;
  56039. newFrame._moveFrame(-(newFrame.width - newFrame.CollapsedWidth) / 2, 0);
  56040. var diff = serializationData.x - newFrame.x;
  56041. newFrame._moveFrame(diff, 0);
  56042. newFrame.cleanAccumulation();
  56043. for (var _b = 0, _c = newFrame.nodes; _b < _c.length; _b++) {
  56044. var selectedNode = _c[_b];
  56045. selectedNode.refresh();
  56046. }
  56047. canvas._frameIsMoving = false;
  56048. }
  56049. return newFrame;
  56050. };
  56051. GraphFrame._FrameCounter = 0;
  56052. GraphFrame._FramePortCounter = 0;
  56053. return GraphFrame;
  56054. }());
  56055. /***/ }),
  56056. /***/ "./diagram/graphNode.ts":
  56057. /*!******************************!*\
  56058. !*** ./diagram/graphNode.ts ***!
  56059. \******************************/
  56060. /*! exports provided: GraphNode */
  56061. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56062. "use strict";
  56063. __webpack_require__.r(__webpack_exports__);
  56064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphNode", function() { return GraphNode; });
  56065. /* harmony import */ var _propertyLedger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./propertyLedger */ "./diagram/propertyLedger.ts");
  56066. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56067. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56068. /* harmony import */ var _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  56069. /* harmony import */ var _displayLedger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./displayLedger */ "./diagram/displayLedger.ts");
  56070. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  56071. var GraphNode = /** @class */ (function () {
  56072. function GraphNode(block, globalState) {
  56073. var _this = this;
  56074. this.block = block;
  56075. this._inputPorts = [];
  56076. this._outputPorts = [];
  56077. this._links = [];
  56078. this._x = 0;
  56079. this._y = 0;
  56080. this._gridAlignedX = 0;
  56081. this._gridAlignedY = 0;
  56082. this._mouseStartPointX = null;
  56083. this._mouseStartPointY = null;
  56084. this._displayManager = null;
  56085. this._isVisible = true;
  56086. this._globalState = globalState;
  56087. this._onSelectionChangedObserver = this._globalState.onSelectionChangedObservable.add(function (node) {
  56088. if (node === _this) {
  56089. _this._visual.classList.add("selected");
  56090. }
  56091. else {
  56092. setTimeout(function () {
  56093. if (_this._ownerCanvas.selectedNodes.indexOf(_this) === -1) {
  56094. _this._visual.classList.remove("selected");
  56095. }
  56096. });
  56097. }
  56098. });
  56099. this._onUpdateRequiredObserver = this._globalState.onUpdateRequiredObservable.add(function () {
  56100. _this.refresh();
  56101. });
  56102. this._onSelectionBoxMovedObserver = this._globalState.onSelectionBoxMoved.add(function (rect1) {
  56103. var rect2 = _this._visual.getBoundingClientRect();
  56104. var overlap = !(rect1.right < rect2.left ||
  56105. rect1.left > rect2.right ||
  56106. rect1.bottom < rect2.top ||
  56107. rect1.top > rect2.bottom);
  56108. _this.isSelected = overlap;
  56109. });
  56110. this._onFrameCreatedObserver = this._globalState.onFrameCreatedObservable.add(function (frame) {
  56111. if (_this._ownerCanvas.frames.some(function (f) { return f.nodes.indexOf(_this) !== -1; })) {
  56112. return;
  56113. }
  56114. if (_this.isOverlappingFrame(frame)) {
  56115. frame.nodes.push(_this);
  56116. }
  56117. });
  56118. }
  56119. Object.defineProperty(GraphNode.prototype, "isVisible", {
  56120. get: function () {
  56121. return this._isVisible;
  56122. },
  56123. set: function (value) {
  56124. this._isVisible = value;
  56125. if (!value) {
  56126. this._visual.classList.add("hidden");
  56127. }
  56128. else {
  56129. this._visual.classList.remove("hidden");
  56130. this._upateNodePortNames();
  56131. }
  56132. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  56133. var link = _a[_i];
  56134. link.isVisible = value;
  56135. }
  56136. this._refreshLinks();
  56137. },
  56138. enumerable: true,
  56139. configurable: true
  56140. });
  56141. GraphNode.prototype._upateNodePortNames = function () {
  56142. for (var _i = 0, _a = this._inputPorts.concat(this._outputPorts); _i < _a.length; _i++) {
  56143. var port = _a[_i];
  56144. if (port.hasLabel()) {
  56145. port.portName = port.connectionPoint.displayName || port.connectionPoint.name;
  56146. }
  56147. }
  56148. };
  56149. Object.defineProperty(GraphNode.prototype, "outputPorts", {
  56150. get: function () {
  56151. return this._outputPorts;
  56152. },
  56153. enumerable: true,
  56154. configurable: true
  56155. });
  56156. Object.defineProperty(GraphNode.prototype, "inputPorts", {
  56157. get: function () {
  56158. return this._inputPorts;
  56159. },
  56160. enumerable: true,
  56161. configurable: true
  56162. });
  56163. Object.defineProperty(GraphNode.prototype, "links", {
  56164. get: function () {
  56165. return this._links;
  56166. },
  56167. enumerable: true,
  56168. configurable: true
  56169. });
  56170. Object.defineProperty(GraphNode.prototype, "gridAlignedX", {
  56171. get: function () {
  56172. return this._gridAlignedX;
  56173. },
  56174. enumerable: true,
  56175. configurable: true
  56176. });
  56177. Object.defineProperty(GraphNode.prototype, "gridAlignedY", {
  56178. get: function () {
  56179. return this._gridAlignedY;
  56180. },
  56181. enumerable: true,
  56182. configurable: true
  56183. });
  56184. Object.defineProperty(GraphNode.prototype, "x", {
  56185. get: function () {
  56186. return this._x;
  56187. },
  56188. set: function (value) {
  56189. if (this._x === value) {
  56190. return;
  56191. }
  56192. this._x = value;
  56193. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  56194. this._visual.style.left = this._gridAlignedX + "px";
  56195. this._refreshLinks();
  56196. this._refreshFrames();
  56197. },
  56198. enumerable: true,
  56199. configurable: true
  56200. });
  56201. Object.defineProperty(GraphNode.prototype, "y", {
  56202. get: function () {
  56203. return this._y;
  56204. },
  56205. set: function (value) {
  56206. if (this._y === value) {
  56207. return;
  56208. }
  56209. this._y = value;
  56210. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  56211. this._visual.style.top = this._gridAlignedY + "px";
  56212. this._refreshLinks();
  56213. this._refreshFrames();
  56214. },
  56215. enumerable: true,
  56216. configurable: true
  56217. });
  56218. Object.defineProperty(GraphNode.prototype, "width", {
  56219. get: function () {
  56220. return this._visual.clientWidth;
  56221. },
  56222. enumerable: true,
  56223. configurable: true
  56224. });
  56225. Object.defineProperty(GraphNode.prototype, "height", {
  56226. get: function () {
  56227. return this._visual.clientHeight;
  56228. },
  56229. enumerable: true,
  56230. configurable: true
  56231. });
  56232. Object.defineProperty(GraphNode.prototype, "id", {
  56233. get: function () {
  56234. return this.block.uniqueId;
  56235. },
  56236. enumerable: true,
  56237. configurable: true
  56238. });
  56239. Object.defineProperty(GraphNode.prototype, "name", {
  56240. get: function () {
  56241. return this.block.name;
  56242. },
  56243. enumerable: true,
  56244. configurable: true
  56245. });
  56246. Object.defineProperty(GraphNode.prototype, "isSelected", {
  56247. get: function () {
  56248. return this._isSelected;
  56249. },
  56250. set: function (value) {
  56251. if (this._isSelected === value) {
  56252. return;
  56253. }
  56254. this._isSelected = value;
  56255. if (!value) {
  56256. this._visual.classList.remove("selected");
  56257. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  56258. if (indexInSelection > -1) {
  56259. this._ownerCanvas.selectedNodes.splice(indexInSelection, 1);
  56260. }
  56261. }
  56262. else {
  56263. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  56264. }
  56265. },
  56266. enumerable: true,
  56267. configurable: true
  56268. });
  56269. GraphNode.prototype.isOverlappingFrame = function (frame) {
  56270. var rect2 = this._visual.getBoundingClientRect();
  56271. var rect1 = frame.element.getBoundingClientRect();
  56272. // Add a tiny margin
  56273. rect1.width -= 5;
  56274. rect1.height -= 5;
  56275. return !(rect1.right < rect2.left ||
  56276. rect1.left > rect2.right ||
  56277. rect1.bottom < rect2.top ||
  56278. rect1.top > rect2.bottom);
  56279. };
  56280. GraphNode.prototype.getPortForConnectionPoint = function (point) {
  56281. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  56282. var port = _a[_i];
  56283. var attachedPoint = port.connectionPoint;
  56284. if (attachedPoint === point) {
  56285. return port;
  56286. }
  56287. }
  56288. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  56289. var port = _c[_b];
  56290. var attachedPoint = port.connectionPoint;
  56291. if (attachedPoint === point) {
  56292. return port;
  56293. }
  56294. }
  56295. return null;
  56296. };
  56297. GraphNode.prototype.getLinksForConnectionPoint = function (point) {
  56298. return this._links.filter(function (link) { return link.portA.connectionPoint === point || link.portB.connectionPoint === point; });
  56299. };
  56300. GraphNode.prototype._refreshFrames = function () {
  56301. if (this._ownerCanvas._frameIsMoving || this._ownerCanvas._isLoading) {
  56302. return;
  56303. }
  56304. // Frames
  56305. for (var _i = 0, _a = this._ownerCanvas.frames; _i < _a.length; _i++) {
  56306. var frame = _a[_i];
  56307. frame.syncNode(this);
  56308. }
  56309. };
  56310. GraphNode.prototype._refreshLinks = function () {
  56311. if (this._ownerCanvas._isLoading) {
  56312. return;
  56313. }
  56314. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  56315. var link = _a[_i];
  56316. link.update();
  56317. }
  56318. };
  56319. GraphNode.prototype.refresh = function () {
  56320. if (this._displayManager) {
  56321. this._header.innerHTML = this._displayManager.getHeaderText(this.block);
  56322. this._displayManager.updatePreviewContent(this.block, this._content);
  56323. this._visual.style.background = this._displayManager.getBackgroundColor(this.block);
  56324. var additionalClass = this._displayManager.getHeaderClass(this.block);
  56325. this._header.classList.value = "header";
  56326. if (additionalClass) {
  56327. this._header.classList.add(additionalClass);
  56328. }
  56329. }
  56330. else {
  56331. this._header.innerHTML = this.block.name;
  56332. }
  56333. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  56334. var port = _a[_i];
  56335. port.refresh();
  56336. }
  56337. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  56338. var port = _c[_b];
  56339. port.refresh();
  56340. }
  56341. this._comments.innerHTML = this.block.comments || "";
  56342. this._comments.title = this.block.comments || "";
  56343. };
  56344. GraphNode.prototype._onDown = function (evt) {
  56345. // Check if this is coming from the port
  56346. if (evt.srcElement && evt.srcElement.nodeName === "IMG") {
  56347. return;
  56348. }
  56349. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  56350. if (indexInSelection === -1) {
  56351. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  56352. }
  56353. else if (evt.ctrlKey) {
  56354. this.isSelected = false;
  56355. }
  56356. evt.stopPropagation();
  56357. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  56358. var selectedNode = _a[_i];
  56359. selectedNode.cleanAccumulation();
  56360. }
  56361. this._mouseStartPointX = evt.clientX;
  56362. this._mouseStartPointY = evt.clientY;
  56363. this._visual.setPointerCapture(evt.pointerId);
  56364. };
  56365. GraphNode.prototype.cleanAccumulation = function (useCeil) {
  56366. if (useCeil === void 0) { useCeil = false; }
  56367. this.x = this._ownerCanvas.getGridPosition(this.x, useCeil);
  56368. this.y = this._ownerCanvas.getGridPosition(this.y, useCeil);
  56369. };
  56370. GraphNode.prototype._onUp = function (evt) {
  56371. evt.stopPropagation();
  56372. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  56373. var selectedNode = _a[_i];
  56374. selectedNode.cleanAccumulation();
  56375. }
  56376. this._mouseStartPointX = null;
  56377. this._mouseStartPointY = null;
  56378. this._visual.releasePointerCapture(evt.pointerId);
  56379. };
  56380. GraphNode.prototype._onMove = function (evt) {
  56381. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey) {
  56382. return;
  56383. }
  56384. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  56385. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  56386. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  56387. var selectedNode = _a[_i];
  56388. selectedNode.x += newX;
  56389. selectedNode.y += newY;
  56390. }
  56391. this._mouseStartPointX = evt.clientX;
  56392. this._mouseStartPointY = evt.clientY;
  56393. evt.stopPropagation();
  56394. };
  56395. GraphNode.prototype.renderProperties = function () {
  56396. var control = _propertyLedger__WEBPACK_IMPORTED_MODULE_0__["PropertyLedger"].RegisteredControls[this.block.getClassName()];
  56397. if (!control) {
  56398. control = _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["GenericPropertyComponent"];
  56399. }
  56400. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](control, {
  56401. globalState: this._globalState,
  56402. block: this.block
  56403. });
  56404. };
  56405. GraphNode.prototype.appendVisual = function (root, owner) {
  56406. var _this = this;
  56407. this._ownerCanvas = owner;
  56408. // Display manager
  56409. var displayManagerClass = _displayLedger__WEBPACK_IMPORTED_MODULE_3__["DisplayLedger"].RegisteredControls[this.block.getClassName()];
  56410. if (displayManagerClass) {
  56411. this._displayManager = new displayManagerClass();
  56412. }
  56413. // DOM
  56414. this._visual = root.ownerDocument.createElement("div");
  56415. this._visual.classList.add("visual");
  56416. this._visual.addEventListener("pointerdown", function (evt) { return _this._onDown(evt); });
  56417. this._visual.addEventListener("pointerup", function (evt) { return _this._onUp(evt); });
  56418. this._visual.addEventListener("pointermove", function (evt) { return _this._onMove(evt); });
  56419. this._header = root.ownerDocument.createElement("div");
  56420. this._header.classList.add("header");
  56421. this._visual.appendChild(this._header);
  56422. this._connections = root.ownerDocument.createElement("div");
  56423. this._connections.classList.add("connections");
  56424. this._visual.appendChild(this._connections);
  56425. this._inputsContainer = root.ownerDocument.createElement("div");
  56426. this._inputsContainer.classList.add("inputsContainer");
  56427. this._connections.appendChild(this._inputsContainer);
  56428. this._outputsContainer = root.ownerDocument.createElement("div");
  56429. this._outputsContainer.classList.add("outputsContainer");
  56430. this._connections.appendChild(this._outputsContainer);
  56431. this._content = root.ownerDocument.createElement("div");
  56432. this._content.classList.add("content");
  56433. this._visual.appendChild(this._content);
  56434. var selectionBorder = root.ownerDocument.createElement("div");
  56435. selectionBorder.classList.add("selection-border");
  56436. this._visual.appendChild(selectionBorder);
  56437. root.appendChild(this._visual);
  56438. // Comments
  56439. this._comments = root.ownerDocument.createElement("div");
  56440. this._comments.classList.add("comments");
  56441. this._visual.appendChild(this._comments);
  56442. // Connections
  56443. for (var _i = 0, _a = this.block.inputs; _i < _a.length; _i++) {
  56444. var input = _a[_i];
  56445. this._inputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(input, this, this._inputsContainer, this._displayManager, this._globalState));
  56446. }
  56447. for (var _b = 0, _c = this.block.outputs; _b < _c.length; _b++) {
  56448. var output = _c[_b];
  56449. this._outputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(output, this, this._outputsContainer, this._displayManager, this._globalState));
  56450. }
  56451. this.refresh();
  56452. };
  56453. GraphNode.prototype.dispose = function () {
  56454. // notify frame observers that this node is being deleted
  56455. this._globalState.onGraphNodeRemovalObservable.notifyObservers(this);
  56456. if (this._onSelectionChangedObserver) {
  56457. this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  56458. }
  56459. if (this._onUpdateRequiredObserver) {
  56460. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  56461. }
  56462. if (this._onSelectionBoxMovedObserver) {
  56463. this._globalState.onSelectionBoxMoved.remove(this._onSelectionBoxMovedObserver);
  56464. }
  56465. if (this._visual.parentElement) {
  56466. this._visual.parentElement.removeChild(this._visual);
  56467. }
  56468. if (this._onFrameCreatedObserver) {
  56469. this._globalState.onFrameCreatedObservable.remove(this._onFrameCreatedObserver);
  56470. }
  56471. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  56472. var port = _a[_i];
  56473. port.dispose();
  56474. }
  56475. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  56476. var port = _c[_b];
  56477. port.dispose();
  56478. }
  56479. var links = this._links.slice(0);
  56480. for (var _d = 0, links_1 = links; _d < links_1.length; _d++) {
  56481. var link = links_1[_d];
  56482. link.dispose();
  56483. }
  56484. this.block.dispose();
  56485. };
  56486. return GraphNode;
  56487. }());
  56488. /***/ }),
  56489. /***/ "./diagram/nodeLink.ts":
  56490. /*!*****************************!*\
  56491. !*** ./diagram/nodeLink.ts ***!
  56492. \*****************************/
  56493. /*! exports provided: NodeLink */
  56494. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56495. "use strict";
  56496. __webpack_require__.r(__webpack_exports__);
  56497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeLink", function() { return NodeLink; });
  56498. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  56499. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  56500. var NodeLink = /** @class */ (function () {
  56501. function NodeLink(graphCanvas, portA, nodeA, portB, nodeB) {
  56502. var _this = this;
  56503. this._isVisible = true;
  56504. this.onDisposedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  56505. this._portA = portA;
  56506. this._portB = portB;
  56507. this._nodeA = nodeA;
  56508. this._nodeB = nodeB;
  56509. this._graphCanvas = graphCanvas;
  56510. var document = portA.element.ownerDocument;
  56511. var svg = graphCanvas.svgCanvas;
  56512. // Create path
  56513. this._path = document.createElementNS('http://www.w3.org/2000/svg', "path");
  56514. this._path.setAttribute("fill", "none");
  56515. this._path.classList.add("link");
  56516. svg.appendChild(this._path);
  56517. this._selectionPath = document.createElementNS('http://www.w3.org/2000/svg', "path");
  56518. this._selectionPath.setAttribute("fill", "none");
  56519. this._selectionPath.classList.add("selection-link");
  56520. svg.appendChild(this._selectionPath);
  56521. this._selectionPath.onmousedown = function () { return _this.onClick(); };
  56522. if (this._portB) {
  56523. // Update
  56524. this.update();
  56525. }
  56526. this._onSelectionChangedObserver = this._graphCanvas.globalState.onSelectionChangedObservable.add(function (selection) {
  56527. if (selection === _this) {
  56528. _this._path.classList.add("selected");
  56529. _this._selectionPath.classList.add("selected");
  56530. }
  56531. else {
  56532. _this._path.classList.remove("selected");
  56533. _this._selectionPath.classList.remove("selected");
  56534. }
  56535. });
  56536. }
  56537. Object.defineProperty(NodeLink.prototype, "isVisible", {
  56538. get: function () {
  56539. return this._isVisible;
  56540. },
  56541. set: function (value) {
  56542. this._isVisible = value;
  56543. if (!value) {
  56544. this._path.classList.add("hidden");
  56545. this._selectionPath.classList.add("hidden");
  56546. }
  56547. else {
  56548. this._path.classList.remove("hidden");
  56549. this._selectionPath.classList.remove("hidden");
  56550. }
  56551. this.update();
  56552. },
  56553. enumerable: true,
  56554. configurable: true
  56555. });
  56556. Object.defineProperty(NodeLink.prototype, "portA", {
  56557. get: function () {
  56558. return this._portA;
  56559. },
  56560. enumerable: true,
  56561. configurable: true
  56562. });
  56563. Object.defineProperty(NodeLink.prototype, "portB", {
  56564. get: function () {
  56565. return this._portB;
  56566. },
  56567. enumerable: true,
  56568. configurable: true
  56569. });
  56570. Object.defineProperty(NodeLink.prototype, "nodeA", {
  56571. get: function () {
  56572. return this._nodeA;
  56573. },
  56574. enumerable: true,
  56575. configurable: true
  56576. });
  56577. Object.defineProperty(NodeLink.prototype, "nodeB", {
  56578. get: function () {
  56579. return this._nodeB;
  56580. },
  56581. enumerable: true,
  56582. configurable: true
  56583. });
  56584. NodeLink.prototype.update = function (endX, endY, straight) {
  56585. if (endX === void 0) { endX = 0; }
  56586. if (endY === void 0) { endY = 0; }
  56587. if (straight === void 0) { straight = false; }
  56588. var rectA = this._portA.element.getBoundingClientRect();
  56589. var rootRect = this._graphCanvas.canvasContainer.getBoundingClientRect();
  56590. var zoom = this._graphCanvas.zoom;
  56591. var xOffset = rootRect.left;
  56592. var yOffset = rootRect.top;
  56593. var startX = (rectA.left - xOffset + 0.5 * rectA.width) / zoom;
  56594. var startY = (rectA.top - yOffset + 0.5 * rectA.height) / zoom;
  56595. if (this._portB) {
  56596. var rectB = this._portB.element.getBoundingClientRect();
  56597. endX = (rectB.left - xOffset + 0.5 * rectB.width) / zoom;
  56598. endY = (rectB.top - yOffset + 0.5 * rectB.height) / zoom;
  56599. }
  56600. if (straight) {
  56601. this._path.setAttribute("d", "M" + startX + "," + startY + " L" + endX + "," + endY);
  56602. this._path.setAttribute("stroke-dasharray", "10, 10");
  56603. this._path.setAttribute("stroke-linecap", "round");
  56604. }
  56605. else {
  56606. var deltaX = endX - startX;
  56607. var deltaY = endY - startY;
  56608. var tangentLength = Math.min(Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 0.5, 300);
  56609. this._path.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + tangentLength) + "," + startY + " " + (endX - tangentLength) + "," + endY + " " + endX + "," + endY);
  56610. this._selectionPath.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + tangentLength) + "," + startY + " " + (endX - tangentLength) + "," + endY + " " + endX + "," + endY);
  56611. }
  56612. this._path.setAttribute("stroke", this._portA.element.style.backgroundColor);
  56613. };
  56614. NodeLink.prototype.onClick = function () {
  56615. this._graphCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  56616. };
  56617. NodeLink.prototype.dispose = function () {
  56618. this._graphCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  56619. if (this._path.parentElement) {
  56620. this._path.parentElement.removeChild(this._path);
  56621. }
  56622. if (this._selectionPath.parentElement) {
  56623. this._selectionPath.parentElement.removeChild(this._selectionPath);
  56624. }
  56625. if (this._nodeB) {
  56626. this._nodeA.links.splice(this._nodeA.links.indexOf(this), 1);
  56627. this._nodeB.links.splice(this._nodeB.links.indexOf(this), 1);
  56628. this._graphCanvas.links.splice(this._graphCanvas.links.indexOf(this), 1);
  56629. this._portA.connectionPoint.disconnectFrom(this._portB.connectionPoint);
  56630. }
  56631. this.onDisposedObservable.notifyObservers(this);
  56632. };
  56633. return NodeLink;
  56634. }());
  56635. /***/ }),
  56636. /***/ "./diagram/nodePort.ts":
  56637. /*!*****************************!*\
  56638. !*** ./diagram/nodePort.ts ***!
  56639. \*****************************/
  56640. /*! exports provided: NodePort */
  56641. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56642. "use strict";
  56643. __webpack_require__.r(__webpack_exports__);
  56644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodePort", function() { return NodePort; });
  56645. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blockTools */ "./blockTools.ts");
  56646. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  56647. /* 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__);
  56648. var NodePort = /** @class */ (function () {
  56649. function NodePort(portContainer, connectionPoint, node, globalState) {
  56650. var _this = this;
  56651. this.connectionPoint = connectionPoint;
  56652. this.node = node;
  56653. this.delegatedPort = null;
  56654. this._element = portContainer.ownerDocument.createElement("div");
  56655. this._element.classList.add("port");
  56656. portContainer.appendChild(this._element);
  56657. this._globalState = globalState;
  56658. this._img = portContainer.ownerDocument.createElement("img");
  56659. this._element.appendChild(this._img);
  56660. // determine if node name is editable
  56661. if (portContainer.children[0].className === 'port-label') {
  56662. this._portLabelElement = portContainer.children[0];
  56663. }
  56664. this._element.port = this;
  56665. // Drag support
  56666. this._element.ondragstart = function () { return false; };
  56667. this._onCandidateLinkMovedObserver = globalState.onCandidateLinkMoved.add(function (coords) {
  56668. var rect = _this._element.getBoundingClientRect();
  56669. if (!coords || rect.left > coords.x || rect.right < coords.x || rect.top > coords.y || rect.bottom < coords.y) {
  56670. _this._element.classList.remove("selected");
  56671. return;
  56672. }
  56673. _this._element.classList.add("selected");
  56674. _this._globalState.onCandidatePortSelectedObservable.notifyObservers(_this);
  56675. });
  56676. this._onSelectionChangedObserver = this._globalState.onSelectionChangedObservable.add(function (selection) {
  56677. if (selection === _this) {
  56678. _this._img.classList.add("selected");
  56679. }
  56680. else {
  56681. _this._img.classList.remove("selected");
  56682. }
  56683. });
  56684. this.refresh();
  56685. }
  56686. Object.defineProperty(NodePort.prototype, "element", {
  56687. get: function () {
  56688. if (this.delegatedPort) {
  56689. return this.delegatedPort.element;
  56690. }
  56691. return this._element;
  56692. },
  56693. enumerable: true,
  56694. configurable: true
  56695. });
  56696. Object.defineProperty(NodePort.prototype, "portName", {
  56697. get: function () {
  56698. return this.connectionPoint.displayName || this.connectionPoint.name;
  56699. },
  56700. set: function (newName) {
  56701. if (this._portLabelElement) {
  56702. this.connectionPoint.displayName = newName;
  56703. this._portLabelElement.innerHTML = newName;
  56704. }
  56705. },
  56706. enumerable: true,
  56707. configurable: true
  56708. });
  56709. NodePort.prototype.hasLabel = function () {
  56710. return !!this._portLabelElement;
  56711. };
  56712. NodePort.prototype.refresh = function () {
  56713. this._element.style.background = _blockTools__WEBPACK_IMPORTED_MODULE_0__["BlockTools"].GetColorFromConnectionNodeType(this.connectionPoint.type);
  56714. switch (this.connectionPoint.type) {
  56715. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  56716. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  56717. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";
  56718. break;
  56719. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  56720. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhNy41Miw3LjUyLDAsMCwwLDYuNSw3LjQzVjMuMDdBNy41Miw3LjUyLDAsMCwwLDMsMTAuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDMuMDdWMTcuOTNhNy41LDcuNSwwLDAsMCwwLTE0Ljg2WiIvPjwvZz48L3N2Zz4=";
  56721. break;
  56722. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  56723. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  56724. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzLjMxLDkuNSw5Ljg5VjNBNy41MSw3LjUxLDAsMCwwLDMsMTAuNDYsNy4zMiw3LjMyLDAsMCwwLDMuNTcsMTMuMzFaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTYuNDMsMTUsMTAuNSwxMS42Miw0LjU3LDE1YTcuNDgsNy40OCwwLDAsMCwxMS44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LDEwLjQ2QTcuNTEsNy41MSwwLDAsMCwxMS41LDNWOS44OWw1LjkzLDMuNDJBNy4zMiw3LjMyLDAsMCwwLDE4LDEwLjQ2WiIvPjwvZz48L3N2Zz4=";
  56725. break;
  56726. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  56727. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  56728. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExLjV2Ni40M2E3LjUxLDcuNTEsMCwwLDAsNi40My02LjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN1Y5LjVoNi40M0E3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSwxNy45M1YxMS41SDMuMDdBNy41MSw3LjUxLDAsMCwwLDkuNSwxNy45M1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVIOS41WiIvPjwvZz48L3N2Zz4=";
  56729. break;
  56730. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  56731. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xMVY5LjVoMy4zOUE0LjUxLDQuNTEsMCwwLDAsMTEuNSw2LjExWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMTQuODlhNC41MSw0LjUxLDAsMCwwLDMuMzktMy4zOUgxMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN3YyQTUuNTQsNS41NCwwLDAsMSwxNS45Miw5LjVoMkE3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE1LjkyLDExLjVhNS41NCw1LjU0LDAsMCwxLTQuNDIsNC40MnYyYTcuNTEsNy41MSwwLDAsMCw2LjQzLTYuNDNaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4wOCwxMS41aC0yQTcuNTEsNy41MSwwLDAsMCw5LjUsMTcuOTN2LTJBNS41NCw1LjU0LDAsMCwxLDUuMDgsMTEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVoMkE1LjU0LDUuNTQsMCwwLDEsOS41LDUuMDhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS41LDExLjVINi4xMUE0LjUxLDQuNTEsMCwwLDAsOS41LDE0Ljg5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSw2LjExQTQuNTEsNC41MSwwLDAsMCw2LjExLDkuNUg5LjVaIi8+PC9nPjwvc3ZnPg==";
  56732. break;
  56733. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Object:
  56734. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";
  56735. break;
  56736. }
  56737. };
  56738. NodePort.prototype.dispose = function () {
  56739. this._globalState.onCandidateLinkMoved.remove(this._onCandidateLinkMovedObserver);
  56740. if (this._onSelectionChangedObserver) {
  56741. this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  56742. }
  56743. };
  56744. NodePort.CreatePortElement = function (connectionPoint, node, root, displayManager, globalState) {
  56745. var portContainer = root.ownerDocument.createElement("div");
  56746. var block = connectionPoint.ownerBlock;
  56747. portContainer.classList.add("portLine");
  56748. root.appendChild(portContainer);
  56749. if (!displayManager || displayManager.shouldDisplayPortLabels(block)) {
  56750. var portLabel = root.ownerDocument.createElement("div");
  56751. portLabel.classList.add("port-label");
  56752. portLabel.innerHTML = connectionPoint.displayName || connectionPoint.name;
  56753. portContainer.appendChild(portLabel);
  56754. }
  56755. return new NodePort(portContainer, connectionPoint, node, globalState);
  56756. };
  56757. return NodePort;
  56758. }());
  56759. /***/ }),
  56760. /***/ "./diagram/properties/frameNodePortPropertyComponent.tsx":
  56761. /*!***************************************************************!*\
  56762. !*** ./diagram/properties/frameNodePortPropertyComponent.tsx ***!
  56763. \***************************************************************/
  56764. /*! exports provided: FrameNodePortPropertyTabComponent */
  56765. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56766. "use strict";
  56767. __webpack_require__.r(__webpack_exports__);
  56768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FrameNodePortPropertyTabComponent", function() { return FrameNodePortPropertyTabComponent; });
  56769. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56770. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56771. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56772. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56773. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56774. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  56775. /* harmony import */ var _graphFrame__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../graphFrame */ "./diagram/graphFrame.ts");
  56776. /* harmony import */ var _graphCanvas__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../graphCanvas */ "./diagram/graphCanvas.tsx");
  56777. var FrameNodePortPropertyTabComponent = /** @class */ (function (_super) {
  56778. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FrameNodePortPropertyTabComponent, _super);
  56779. function FrameNodePortPropertyTabComponent(props) {
  56780. var _this_1 = _super.call(this, props) || this;
  56781. _this_1.state = {
  56782. port: _this_1.props.frameNodePort
  56783. };
  56784. var _this = _this_1;
  56785. _this_1._onSelectionChangedObserver = _this_1.props.globalState.onSelectionChangedObservable.add(function (selection) {
  56786. if (Object(_graphCanvas__WEBPACK_IMPORTED_MODULE_6__["isFramePortData"])(selection)) {
  56787. selection.port.onFramePortPositionChangedObservable.clear();
  56788. _this._onFramePortPositionChangedObserver = selection.port.onFramePortPositionChangedObservable.add(function (port) {
  56789. _this.setState({ port: port });
  56790. });
  56791. _this.setState({ port: selection.port });
  56792. }
  56793. });
  56794. _this_1._onFramePortPositionChangedObserver = _this_1.props.frameNodePort.onFramePortPositionChangedObservable.add(function (port) {
  56795. _this.setState({ port: port });
  56796. });
  56797. return _this_1;
  56798. }
  56799. FrameNodePortPropertyTabComponent.prototype.componentWillUnmount = function () {
  56800. this.props.frameNodePort.onFramePortPositionChangedObservable.remove(this._onFramePortPositionChangedObserver);
  56801. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  56802. };
  56803. FrameNodePortPropertyTabComponent.prototype.render = function () {
  56804. var _this_1 = this;
  56805. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  56806. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  56807. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  56808. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  56809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56810. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  56811. 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 }),
  56812. 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 () {
  56813. _this_1.props.frame.moveFramePortUp(_this_1.props.frameNodePort);
  56814. } }),
  56815. 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 () {
  56816. _this_1.props.frame.moveFramePortDown(_this_1.props.frameNodePort);
  56817. } })))));
  56818. };
  56819. return FrameNodePortPropertyTabComponent;
  56820. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56821. /***/ }),
  56822. /***/ "./diagram/properties/framePropertyComponent.tsx":
  56823. /*!*******************************************************!*\
  56824. !*** ./diagram/properties/framePropertyComponent.tsx ***!
  56825. \*******************************************************/
  56826. /*! exports provided: FramePropertyTabComponent */
  56827. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56828. "use strict";
  56829. __webpack_require__.r(__webpack_exports__);
  56830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FramePropertyTabComponent", function() { return FramePropertyTabComponent; });
  56831. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56832. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56833. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56834. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56835. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  56836. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56837. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  56838. var FramePropertyTabComponent = /** @class */ (function (_super) {
  56839. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FramePropertyTabComponent, _super);
  56840. function FramePropertyTabComponent(props) {
  56841. return _super.call(this, props) || this;
  56842. }
  56843. FramePropertyTabComponent.prototype.componentDidMount = function () {
  56844. var _this = this;
  56845. this.onFrameExpandStateChangedObserver = this.props.frame.onExpandStateChanged.add(function () { return _this.forceUpdate(); });
  56846. };
  56847. FramePropertyTabComponent.prototype.componentWillUnmount = function () {
  56848. if (this.onFrameExpandStateChangedObserver) {
  56849. this.props.frame.onExpandStateChanged.remove(this.onFrameExpandStateChangedObserver);
  56850. this.onFrameExpandStateChangedObserver = null;
  56851. }
  56852. };
  56853. FramePropertyTabComponent.prototype.render = function () {
  56854. var _this = this;
  56855. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  56856. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  56857. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  56858. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  56859. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56860. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  56861. 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 }),
  56862. 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" }),
  56863. 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 }),
  56864. !this.props.frame.isCollapsed &&
  56865. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Collapse", onClick: function () {
  56866. _this.props.frame.isCollapsed = true;
  56867. } }),
  56868. this.props.frame.isCollapsed &&
  56869. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Expand", onClick: function () {
  56870. _this.props.frame.isCollapsed = false;
  56871. } })))));
  56872. };
  56873. return FramePropertyTabComponent;
  56874. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56875. /***/ }),
  56876. /***/ "./diagram/properties/genericNodePropertyComponent.tsx":
  56877. /*!*************************************************************!*\
  56878. !*** ./diagram/properties/genericNodePropertyComponent.tsx ***!
  56879. \*************************************************************/
  56880. /*! exports provided: GenericPropertyComponent, GeneralPropertyTabComponent, GenericPropertyTabComponent */
  56881. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56882. "use strict";
  56883. __webpack_require__.r(__webpack_exports__);
  56884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericPropertyComponent", function() { return GenericPropertyComponent; });
  56885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeneralPropertyTabComponent", function() { return GeneralPropertyTabComponent; });
  56886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericPropertyTabComponent", function() { return GenericPropertyTabComponent; });
  56887. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56888. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56889. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56890. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56891. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56892. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  56893. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  56894. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  56895. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  56896. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  56897. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  56898. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialDecorator */ "babylonjs/Misc/dataStorage");
  56899. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__);
  56900. var GenericPropertyComponent = /** @class */ (function (_super) {
  56901. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GenericPropertyComponent, _super);
  56902. function GenericPropertyComponent(props) {
  56903. return _super.call(this, props) || this;
  56904. }
  56905. GenericPropertyComponent.prototype.render = function () {
  56906. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56907. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](GeneralPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block }),
  56908. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](GenericPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block })));
  56909. };
  56910. return GenericPropertyComponent;
  56911. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56912. var GeneralPropertyTabComponent = /** @class */ (function (_super) {
  56913. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GeneralPropertyTabComponent, _super);
  56914. function GeneralPropertyTabComponent(props) {
  56915. return _super.call(this, props) || this;
  56916. }
  56917. GeneralPropertyTabComponent.prototype.render = function () {
  56918. var _this = this;
  56919. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56920. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  56921. (!this.props.block.isInput || !this.props.block.isAttribute) &&
  56922. 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(); } }),
  56923. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: this.props.block.getClassName() }),
  56924. 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(); } }))));
  56925. };
  56926. return GeneralPropertyTabComponent;
  56927. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56928. var GenericPropertyTabComponent = /** @class */ (function (_super) {
  56929. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GenericPropertyTabComponent, _super);
  56930. function GenericPropertyTabComponent(props) {
  56931. return _super.call(this, props) || this;
  56932. }
  56933. GenericPropertyTabComponent.prototype.forceRebuild = function (notifiers) {
  56934. if (!notifiers || notifiers.update) {
  56935. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  56936. }
  56937. if (!notifiers || notifiers.rebuild) {
  56938. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56939. }
  56940. };
  56941. GenericPropertyTabComponent.prototype.render = function () {
  56942. var _this = this;
  56943. var block = this.props.block, propStore = block._propStore;
  56944. if (!propStore) {
  56945. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null));
  56946. }
  56947. var componentList = {}, groups = [];
  56948. var _loop_1 = function (propertyName, displayName, type, groupName, options) {
  56949. var components = componentList[groupName];
  56950. if (!components) {
  56951. components = [];
  56952. componentList[groupName] = components;
  56953. groups.push(groupName);
  56954. }
  56955. switch (type) {
  56956. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Boolean: {
  56957. 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); } }));
  56958. break;
  56959. }
  56960. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Float: {
  56961. var cantDisplaySlider = (isNaN(options.min) || isNaN(options.max) || options.min === options.max);
  56962. if (cantDisplaySlider) {
  56963. 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); } }));
  56964. }
  56965. else {
  56966. 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); } }));
  56967. }
  56968. break;
  56969. }
  56970. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Vector2: {
  56971. 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); } }));
  56972. break;
  56973. }
  56974. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].List: {
  56975. 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); } }));
  56976. break;
  56977. }
  56978. }
  56979. };
  56980. var this_1 = this;
  56981. for (var _i = 0, propStore_1 = propStore; _i < propStore_1.length; _i++) {
  56982. var _a = propStore_1[_i], propertyName = _a.propertyName, displayName = _a.displayName, type = _a.type, groupName = _a.groupName, options = _a.options;
  56983. _loop_1(propertyName, displayName, type, groupName, options);
  56984. }
  56985. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, groups.map(function (group) {
  56986. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: group }, componentList[group]);
  56987. })));
  56988. };
  56989. return GenericPropertyTabComponent;
  56990. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56991. /***/ }),
  56992. /***/ "./diagram/properties/gradientNodePropertyComponent.tsx":
  56993. /*!**************************************************************!*\
  56994. !*** ./diagram/properties/gradientNodePropertyComponent.tsx ***!
  56995. \**************************************************************/
  56996. /*! exports provided: GradientPropertyTabComponent */
  56997. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56998. "use strict";
  56999. __webpack_require__.r(__webpack_exports__);
  57000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientPropertyTabComponent", function() { return GradientPropertyTabComponent; });
  57001. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57002. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57003. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57004. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57005. /* harmony import */ var babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/gradientBlock */ "babylonjs/Misc/dataStorage");
  57006. /* 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__);
  57007. /* harmony import */ var _gradientStepComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gradientStepComponent */ "./diagram/properties/gradientStepComponent.tsx");
  57008. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  57009. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  57010. var GradientPropertyTabComponent = /** @class */ (function (_super) {
  57011. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientPropertyTabComponent, _super);
  57012. function GradientPropertyTabComponent(props) {
  57013. return _super.call(this, props) || this;
  57014. }
  57015. GradientPropertyTabComponent.prototype.forceRebuild = function () {
  57016. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57017. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57018. };
  57019. GradientPropertyTabComponent.prototype.deleteStep = function (step) {
  57020. var gradientBlock = this.props.block;
  57021. var index = gradientBlock.colorSteps.indexOf(step);
  57022. if (index > -1) {
  57023. gradientBlock.colorSteps.splice(index, 1);
  57024. this.forceRebuild();
  57025. this.forceUpdate();
  57026. }
  57027. };
  57028. GradientPropertyTabComponent.prototype.addNewStep = function () {
  57029. var gradientBlock = this.props.block;
  57030. 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());
  57031. gradientBlock.colorSteps.push(newStep);
  57032. this.forceRebuild();
  57033. this.forceUpdate();
  57034. };
  57035. GradientPropertyTabComponent.prototype.checkForReOrder = function () {
  57036. var gradientBlock = this.props.block;
  57037. gradientBlock.colorSteps.sort(function (a, b) {
  57038. if (a.step === b.step) {
  57039. return 0;
  57040. }
  57041. if (a.step > b.step) {
  57042. return 1;
  57043. }
  57044. return -1;
  57045. });
  57046. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57047. this.forceUpdate();
  57048. };
  57049. GradientPropertyTabComponent.prototype.render = function () {
  57050. var _this = this;
  57051. var gradientBlock = this.props.block;
  57052. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57053. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  57054. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "STEPS" },
  57055. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Add new step", onClick: function () { return _this.addNewStep(); } }),
  57056. gradientBlock.colorSteps.map(function (c, i) {
  57057. 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, onDelete: function () { return _this.deleteStep(c); } }));
  57058. }))));
  57059. };
  57060. return GradientPropertyTabComponent;
  57061. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57062. /***/ }),
  57063. /***/ "./diagram/properties/gradientStepComponent.tsx":
  57064. /*!******************************************************!*\
  57065. !*** ./diagram/properties/gradientStepComponent.tsx ***!
  57066. \******************************************************/
  57067. /*! exports provided: GradientStepComponent */
  57068. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57069. "use strict";
  57070. __webpack_require__.r(__webpack_exports__);
  57071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientStepComponent", function() { return GradientStepComponent; });
  57072. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57073. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57074. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57075. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  57076. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  57077. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  57078. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__);
  57079. var GradientStepComponent = /** @class */ (function (_super) {
  57080. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientStepComponent, _super);
  57081. function GradientStepComponent(props) {
  57082. var _this = _super.call(this, props) || this;
  57083. _this.state = { gradient: props.step.step };
  57084. return _this;
  57085. }
  57086. GradientStepComponent.prototype.updateColor = function (color) {
  57087. this.props.step.color = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(color);
  57088. this.props.onUpdateStep();
  57089. this.forceUpdate();
  57090. };
  57091. GradientStepComponent.prototype.updateStep = function (gradient) {
  57092. this.props.step.step = gradient;
  57093. this.setState({ gradient: gradient });
  57094. this.props.onUpdateStep();
  57095. };
  57096. GradientStepComponent.prototype.onPointerUp = function () {
  57097. this.props.onCheckForReOrder();
  57098. };
  57099. GradientStepComponent.prototype.render = function () {
  57100. var _this = this;
  57101. var step = this.props.step;
  57102. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-step" },
  57103. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step" }, "#" + this.props.lineIndex),
  57104. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: step.color.toHexString(), onChange: function (evt) { return _this.updateColor(evt.target.value); } }),
  57105. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-value" }, step.step.toFixed(2)),
  57106. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-slider" },
  57107. 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)); } })),
  57108. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-delete", onClick: function () { return _this.props.onDelete(); } },
  57109. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faTrash"] }))));
  57110. };
  57111. return GradientStepComponent;
  57112. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57113. /***/ }),
  57114. /***/ "./diagram/properties/inputNodePropertyComponent.tsx":
  57115. /*!***********************************************************!*\
  57116. !*** ./diagram/properties/inputNodePropertyComponent.tsx ***!
  57117. \***********************************************************/
  57118. /*! exports provided: InputPropertyTabComponent */
  57119. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57120. "use strict";
  57121. __webpack_require__.r(__webpack_exports__);
  57122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponent", function() { return InputPropertyTabComponent; });
  57123. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57124. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57125. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57126. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  57127. /* harmony import */ var _components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  57128. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  57129. /* harmony import */ var _components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  57130. /* harmony import */ var _components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  57131. /* harmony import */ var _components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  57132. /* harmony import */ var _components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector4PropertyTabComponent */ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx");
  57133. /* harmony import */ var _components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/propertyTab/properties/matrixPropertyTabComponent */ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx");
  57134. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57135. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  57136. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  57137. /* 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__);
  57138. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  57139. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  57140. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  57141. /* harmony import */ var _components_propertyTab_properties_color4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../components/propertyTab/properties/color4PropertyTabComponent */ "./components/propertyTab/properties/color4PropertyTabComponent.tsx");
  57142. var InputPropertyTabComponent = /** @class */ (function (_super) {
  57143. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InputPropertyTabComponent, _super);
  57144. function InputPropertyTabComponent(props) {
  57145. return _super.call(this, props) || this;
  57146. }
  57147. InputPropertyTabComponent.prototype.componentDidMount = function () {
  57148. var _this = this;
  57149. var inputBlock = this.props.block;
  57150. this.onValueChangedObserver = inputBlock.onValueChangedObservable.add(function () {
  57151. _this.forceUpdate();
  57152. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57153. });
  57154. };
  57155. InputPropertyTabComponent.prototype.componentWillUnmount = function () {
  57156. var inputBlock = this.props.block;
  57157. if (this.onValueChangedObserver) {
  57158. inputBlock.onValueChangedObservable.remove(this.onValueChangedObserver);
  57159. this.onValueChangedObserver = null;
  57160. }
  57161. };
  57162. InputPropertyTabComponent.prototype.renderValue = function (globalState) {
  57163. var _this = this;
  57164. var inputBlock = this.props.block;
  57165. switch (inputBlock.type) {
  57166. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float: {
  57167. var cantDisplaySlider = (isNaN(inputBlock.min) || isNaN(inputBlock.max) || inputBlock.min === inputBlock.max);
  57168. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  57169. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Is boolean", target: inputBlock, propertyName: "isBoolean" }),
  57170. inputBlock.isBoolean &&
  57171. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Value", isSelected: function () {
  57172. return inputBlock.value === 1;
  57173. }, onSelect: function (value) {
  57174. inputBlock.value = value ? 1 : 0;
  57175. if (inputBlock.isConstant) {
  57176. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57177. }
  57178. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57179. } }),
  57180. !inputBlock.isBoolean &&
  57181. 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(); } }),
  57182. !inputBlock.isBoolean &&
  57183. 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(); } }),
  57184. !inputBlock.isBoolean && cantDisplaySlider &&
  57185. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  57186. !inputBlock.isBoolean && !cantDisplaySlider &&
  57187. 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 () {
  57188. if (inputBlock.isConstant) {
  57189. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57190. }
  57191. } })));
  57192. }
  57193. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  57194. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  57195. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  57196. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  57197. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  57198. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_color4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_16__["Color4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  57199. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  57200. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  57201. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  57202. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["Vector4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  57203. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  57204. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["MatrixPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  57205. }
  57206. return null;
  57207. };
  57208. InputPropertyTabComponent.prototype.setDefaultValue = function () {
  57209. var inputBlock = this.props.block;
  57210. inputBlock.setDefaultValue();
  57211. };
  57212. InputPropertyTabComponent.prototype.render = function () {
  57213. var _this = this;
  57214. var inputBlock = this.props.block;
  57215. var systemValuesOptions = [];
  57216. var attributeOptions = [];
  57217. var animationOptions = [];
  57218. switch (inputBlock.type) {
  57219. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float:
  57220. animationOptions = [
  57221. { label: "None", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None },
  57222. { label: "Time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].Time },
  57223. ];
  57224. systemValuesOptions = [
  57225. { label: "Delta time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].DeltaTime }
  57226. ];
  57227. break;
  57228. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  57229. systemValuesOptions = [
  57230. { label: "World", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].World },
  57231. { label: "World x View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldView },
  57232. { label: "World x ViewxProjection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldViewProjection },
  57233. { label: "View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].View },
  57234. { label: "View x Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].ViewProjection },
  57235. { label: "Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].Projection }
  57236. ];
  57237. break;
  57238. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  57239. systemValuesOptions = [
  57240. { label: "Fog color", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].FogColor }
  57241. ];
  57242. break;
  57243. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  57244. attributeOptions = [
  57245. { label: "color", value: "color" }
  57246. ];
  57247. break;
  57248. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  57249. attributeOptions = [
  57250. { label: "uv", value: "uv" },
  57251. { label: "uv2", value: "uv2" },
  57252. ];
  57253. break;
  57254. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  57255. systemValuesOptions = [
  57256. { label: "Camera position", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].CameraPosition }
  57257. ];
  57258. attributeOptions = [
  57259. { label: "position", value: "position" },
  57260. { label: "normal", value: "normal" },
  57261. { label: "tangent", value: "tangent" },
  57262. ];
  57263. break;
  57264. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  57265. attributeOptions = [
  57266. { label: "matricesIndices", value: "matricesIndices" },
  57267. { label: "matricesWeights", value: "matricesWeights" }
  57268. ];
  57269. break;
  57270. }
  57271. var modeOptions = [
  57272. { label: "User-defined", value: 0 }
  57273. ];
  57274. if (attributeOptions.length > 0) {
  57275. modeOptions.push({ label: "Mesh attribute", value: 1 });
  57276. }
  57277. if (systemValuesOptions.length > 0) {
  57278. modeOptions.push({ label: "System value", value: 2 });
  57279. }
  57280. var typeOptions = [
  57281. { label: "None", value: 0 },
  57282. { label: "Visible in the inspector", value: 1 },
  57283. { label: "Constant", value: 2 }
  57284. ];
  57285. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57286. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  57287. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "PROPERTIES" },
  57288. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  57289. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Type", options: typeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  57290. if (block.visibleInInspector) {
  57291. return 1;
  57292. }
  57293. if (block.isConstant) {
  57294. return 2;
  57295. }
  57296. return 0;
  57297. }, onSelect: function (value) {
  57298. switch (value) {
  57299. case 0:
  57300. inputBlock.visibleInInspector = false;
  57301. inputBlock.isConstant = false;
  57302. break;
  57303. case 1:
  57304. inputBlock.visibleInInspector = true;
  57305. inputBlock.isConstant = false;
  57306. break;
  57307. case 2:
  57308. inputBlock.visibleInInspector = false;
  57309. inputBlock.isConstant = true;
  57310. break;
  57311. }
  57312. _this.forceUpdate();
  57313. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57314. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57315. } }),
  57316. inputBlock.visibleInInspector &&
  57317. 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 () {
  57318. _this.forceUpdate();
  57319. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57320. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57321. } }),
  57322. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  57323. if (block.isAttribute) {
  57324. return 1;
  57325. }
  57326. if (block.isSystemValue) {
  57327. return 2;
  57328. }
  57329. return 0;
  57330. }, onSelect: function (value) {
  57331. switch (value) {
  57332. case 0:
  57333. inputBlock.isUniform = true;
  57334. inputBlock.setAsSystemValue(null);
  57335. _this.setDefaultValue();
  57336. break;
  57337. case 1:
  57338. inputBlock.setAsAttribute(attributeOptions[0].value);
  57339. break;
  57340. case 2:
  57341. inputBlock.setAsSystemValue(systemValuesOptions[0].value);
  57342. break;
  57343. }
  57344. _this.forceUpdate();
  57345. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57346. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57347. } }),
  57348. inputBlock.isAttribute &&
  57349. 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) {
  57350. inputBlock.setAsAttribute(value);
  57351. _this.forceUpdate();
  57352. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57353. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57354. } }),
  57355. inputBlock.isUniform && animationOptions.length > 0 &&
  57356. 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) {
  57357. _this.forceUpdate();
  57358. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57359. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57360. } }),
  57361. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  57362. this.renderValue(this.props.globalState),
  57363. inputBlock.isUniform && inputBlock.isSystemValue &&
  57364. 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) {
  57365. inputBlock.setAsSystemValue(value);
  57366. _this.forceUpdate();
  57367. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57368. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57369. } }))));
  57370. };
  57371. return InputPropertyTabComponent;
  57372. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57373. /***/ }),
  57374. /***/ "./diagram/properties/lightInformationPropertyTabComponent.tsx":
  57375. /*!*********************************************************************!*\
  57376. !*** ./diagram/properties/lightInformationPropertyTabComponent.tsx ***!
  57377. \*********************************************************************/
  57378. /*! exports provided: LightInformationPropertyTabComponent */
  57379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57380. "use strict";
  57381. __webpack_require__.r(__webpack_exports__);
  57382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationPropertyTabComponent", function() { return LightInformationPropertyTabComponent; });
  57383. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57384. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57385. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57386. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57387. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  57388. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  57389. var LightInformationPropertyTabComponent = /** @class */ (function (_super) {
  57390. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightInformationPropertyTabComponent, _super);
  57391. function LightInformationPropertyTabComponent() {
  57392. return _super !== null && _super.apply(this, arguments) || this;
  57393. }
  57394. LightInformationPropertyTabComponent.prototype.render = function () {
  57395. var _this = this;
  57396. var scene = this.props.globalState.nodeMaterial.getScene();
  57397. var lightOptions = scene.lights.map(function (l) {
  57398. return { label: l.name, value: l.name };
  57399. });
  57400. var lightInformationBlock = this.props.block;
  57401. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57402. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  57403. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  57404. 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) {
  57405. lightInformationBlock.light = scene.getLightByName(name);
  57406. _this.forceUpdate();
  57407. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57408. } }))));
  57409. };
  57410. return LightInformationPropertyTabComponent;
  57411. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57412. /***/ }),
  57413. /***/ "./diagram/properties/lightPropertyTabComponent.tsx":
  57414. /*!**********************************************************!*\
  57415. !*** ./diagram/properties/lightPropertyTabComponent.tsx ***!
  57416. \**********************************************************/
  57417. /*! exports provided: LightPropertyTabComponent */
  57418. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57419. "use strict";
  57420. __webpack_require__.r(__webpack_exports__);
  57421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  57422. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57423. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57425. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57426. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  57427. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  57428. var LightPropertyTabComponent = /** @class */ (function (_super) {
  57429. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightPropertyTabComponent, _super);
  57430. function LightPropertyTabComponent() {
  57431. return _super !== null && _super.apply(this, arguments) || this;
  57432. }
  57433. LightPropertyTabComponent.prototype.render = function () {
  57434. var _this = this;
  57435. var scene = this.props.globalState.nodeMaterial.getScene();
  57436. var lightOptions = scene.lights.map(function (l) {
  57437. return { label: l.name, value: l.name };
  57438. });
  57439. lightOptions.splice(0, 0, { label: "All", value: "" });
  57440. var lightBlock = this.props.block;
  57441. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57442. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  57443. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  57444. 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) {
  57445. if (name === "") {
  57446. lightBlock.light = null;
  57447. }
  57448. else {
  57449. lightBlock.light = scene.getLightByName(name);
  57450. }
  57451. _this.forceUpdate();
  57452. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57453. } }))));
  57454. };
  57455. return LightPropertyTabComponent;
  57456. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57457. /***/ }),
  57458. /***/ "./diagram/properties/nodePortPropertyComponent.tsx":
  57459. /*!**********************************************************!*\
  57460. !*** ./diagram/properties/nodePortPropertyComponent.tsx ***!
  57461. \**********************************************************/
  57462. /*! exports provided: NodePortPropertyTabComponent */
  57463. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57464. "use strict";
  57465. __webpack_require__.r(__webpack_exports__);
  57466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodePortPropertyTabComponent", function() { return NodePortPropertyTabComponent; });
  57467. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57468. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57469. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57470. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57471. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  57472. var NodePortPropertyTabComponent = /** @class */ (function (_super) {
  57473. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodePortPropertyTabComponent, _super);
  57474. function NodePortPropertyTabComponent(props) {
  57475. return _super.call(this, props) || this;
  57476. }
  57477. NodePortPropertyTabComponent.prototype.componentWillUnmount = function () {
  57478. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  57479. };
  57480. NodePortPropertyTabComponent.prototype.render = function () {
  57481. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  57482. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  57483. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  57484. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  57485. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57486. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" }, 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 })))));
  57487. };
  57488. return NodePortPropertyTabComponent;
  57489. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57490. /***/ }),
  57491. /***/ "./diagram/properties/texturePropertyTabComponent.tsx":
  57492. /*!************************************************************!*\
  57493. !*** ./diagram/properties/texturePropertyTabComponent.tsx ***!
  57494. \************************************************************/
  57495. /*! exports provided: TexturePropertyTabComponent */
  57496. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57497. "use strict";
  57498. __webpack_require__.r(__webpack_exports__);
  57499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  57500. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57501. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57502. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57503. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  57504. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  57505. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  57506. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57507. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  57508. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  57509. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  57510. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  57511. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  57512. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  57513. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  57514. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  57515. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TexturePropertyTabComponent, _super);
  57516. function TexturePropertyTabComponent(props) {
  57517. var _this = _super.call(this, props) || this;
  57518. var texture = _this.textureBlock.texture;
  57519. _this.state = { isEmbedded: !texture || texture.name.substring(0, 4) === "data", loadAsCubeTexture: texture && texture.isCube };
  57520. return _this;
  57521. }
  57522. Object.defineProperty(TexturePropertyTabComponent.prototype, "textureBlock", {
  57523. get: function () {
  57524. return this.props.block;
  57525. },
  57526. enumerable: true,
  57527. configurable: true
  57528. });
  57529. TexturePropertyTabComponent.prototype.UNSAFE_componentWillUpdate = function (nextProps, nextState) {
  57530. if (nextProps.block !== this.props.block) {
  57531. var texture = nextProps.block.texture;
  57532. nextState.isEmbedded = !texture || texture.name.substring(0, 4) === "data";
  57533. nextState.loadAsCubeTexture = texture && texture.isCube;
  57534. }
  57535. };
  57536. TexturePropertyTabComponent.prototype._generateRandomForCache = function () {
  57537. return 'xxxxxxxxxxxxxxxxxxxx'.replace(/[x]/g, function (c) {
  57538. var r = Math.random() * 10 | 0;
  57539. return r.toString();
  57540. });
  57541. };
  57542. TexturePropertyTabComponent.prototype.updateAfterTextureLoad = function () {
  57543. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57544. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57545. this.forceUpdate();
  57546. };
  57547. TexturePropertyTabComponent.prototype.removeTexture = function () {
  57548. var texture = this.textureBlock.texture;
  57549. if (texture) {
  57550. texture.dispose();
  57551. texture = null;
  57552. this.textureBlock.texture = null;
  57553. }
  57554. this.updateAfterTextureLoad();
  57555. };
  57556. TexturePropertyTabComponent.prototype._prepareTexture = function () {
  57557. var texture = this.textureBlock.texture;
  57558. if (texture && texture.isCube !== this.state.loadAsCubeTexture) {
  57559. texture.dispose();
  57560. texture = null;
  57561. }
  57562. if (!texture) {
  57563. if (!this.state.loadAsCubeTexture) {
  57564. 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"]);
  57565. texture = this.textureBlock.texture;
  57566. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE;
  57567. }
  57568. else {
  57569. this.textureBlock.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["CubeTexture"]("", this.props.globalState.nodeMaterial.getScene());
  57570. texture = this.textureBlock.texture;
  57571. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE;
  57572. }
  57573. }
  57574. };
  57575. /**
  57576. * Replaces the texture of the node
  57577. * @param file the file of the texture to use
  57578. */
  57579. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  57580. var _this = this;
  57581. this._prepareTexture();
  57582. var texture = this.textureBlock.texture;
  57583. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  57584. var blob = new Blob([data], { type: "octet/stream" });
  57585. var reader = new FileReader();
  57586. reader.readAsDataURL(blob);
  57587. reader.onloadend = function () {
  57588. var base64data = reader.result;
  57589. var extension = undefined;
  57590. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  57591. extension = ".dds";
  57592. }
  57593. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  57594. extension = ".env";
  57595. }
  57596. texture.updateURL(base64data, extension, function () { return _this.updateAfterTextureLoad(); });
  57597. };
  57598. }, undefined, true);
  57599. };
  57600. TexturePropertyTabComponent.prototype.replaceTextureWithUrl = function (url) {
  57601. var _this = this;
  57602. this._prepareTexture();
  57603. var texture = this.textureBlock.texture;
  57604. 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"]) {
  57605. var extension = undefined;
  57606. if (url.toLowerCase().indexOf(".dds") > 0) {
  57607. extension = ".dds";
  57608. }
  57609. else if (url.toLowerCase().indexOf(".env") > 0) {
  57610. extension = ".env";
  57611. }
  57612. texture.updateURL(url, extension, function () { return _this.updateAfterTextureLoad(); });
  57613. }
  57614. else {
  57615. texture.updateURL(url, null, function () { return _this.updateAfterTextureLoad(); });
  57616. }
  57617. };
  57618. TexturePropertyTabComponent.prototype.render = function () {
  57619. var _this = this;
  57620. var url = "";
  57621. var texture = this.textureBlock.texture;
  57622. if (texture && texture.name && texture.name.substring(0, 4) !== "data") {
  57623. url = texture.name;
  57624. }
  57625. url = url.replace(/\?nocache=\d+/, "");
  57626. var isInReflectionMode = this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionTextureBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionBlock"];
  57627. var reflectionModeOptions = [
  57628. {
  57629. label: "Cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE
  57630. },
  57631. {
  57632. label: "Equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE
  57633. },
  57634. {
  57635. label: "Explicit", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EXPLICIT_MODE
  57636. },
  57637. {
  57638. label: "Fixed equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MODE
  57639. },
  57640. {
  57641. label: "Fixed mirrored equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MIRRORED_MODE
  57642. },
  57643. {
  57644. label: "Planar", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PLANAR_MODE
  57645. },
  57646. {
  57647. label: "Projection", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PROJECTION_MODE
  57648. },
  57649. {
  57650. label: "Skybox", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SKYBOX_MODE
  57651. },
  57652. {
  57653. label: "Spherical", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SPHERICAL_MODE
  57654. },
  57655. ];
  57656. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57657. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  57658. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  57659. 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 () {
  57660. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57661. } }),
  57662. texture && !isInReflectionMode &&
  57663. 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 () {
  57664. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57665. } }),
  57666. texture && !isInReflectionMode &&
  57667. 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 () {
  57668. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57669. } }),
  57670. texture && isInReflectionMode &&
  57671. 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) {
  57672. texture.coordinatesMode = value;
  57673. _this.forceUpdate();
  57674. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57675. } }),
  57676. texture && !isInReflectionMode &&
  57677. 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) {
  57678. texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  57679. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57680. } }),
  57681. texture && !isInReflectionMode &&
  57682. 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) {
  57683. texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  57684. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57685. } }),
  57686. texture && !isInReflectionMode &&
  57687. 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 () {
  57688. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57689. } }),
  57690. texture && !isInReflectionMode &&
  57691. 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 () {
  57692. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57693. } }),
  57694. texture && !isInReflectionMode &&
  57695. 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 () {
  57696. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57697. } }),
  57698. texture && !isInReflectionMode &&
  57699. 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 () {
  57700. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57701. } }),
  57702. texture && !isInReflectionMode &&
  57703. 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 () {
  57704. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57705. } }),
  57706. texture && !isInReflectionMode &&
  57707. 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 () {
  57708. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57709. } }),
  57710. texture && !isInReflectionMode &&
  57711. 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 () {
  57712. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57713. } })),
  57714. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "SOURCE" },
  57715. 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) {
  57716. _this.setState({ isEmbedded: value });
  57717. _this.textureBlock.texture = null;
  57718. _this.updateAfterTextureLoad();
  57719. } }),
  57720. isInReflectionMode &&
  57721. 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 }); } }),
  57722. this.state.isEmbedded &&
  57723. 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" }),
  57724. !this.state.isEmbedded &&
  57725. 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); } }),
  57726. !this.state.isEmbedded && url &&
  57727. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Refresh", onClick: function () { return _this.replaceTextureWithUrl(url + "?nocache=" + _this._generateRandomForCache()); } }),
  57728. texture &&
  57729. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Remove", onClick: function () { return _this.removeTexture(); } })),
  57730. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block })));
  57731. };
  57732. return TexturePropertyTabComponent;
  57733. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57734. /***/ }),
  57735. /***/ "./diagram/properties/transformNodePropertyComponent.tsx":
  57736. /*!***************************************************************!*\
  57737. !*** ./diagram/properties/transformNodePropertyComponent.tsx ***!
  57738. \***************************************************************/
  57739. /*! exports provided: TransformPropertyTabComponent */
  57740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57741. "use strict";
  57742. __webpack_require__.r(__webpack_exports__);
  57743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformPropertyTabComponent", function() { return TransformPropertyTabComponent; });
  57744. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57745. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57746. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57747. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57748. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  57749. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  57750. var TransformPropertyTabComponent = /** @class */ (function (_super) {
  57751. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformPropertyTabComponent, _super);
  57752. function TransformPropertyTabComponent(props) {
  57753. return _super.call(this, props) || this;
  57754. }
  57755. TransformPropertyTabComponent.prototype.render = function () {
  57756. var _this = this;
  57757. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  57758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  57759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  57760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  57761. var transformBlock = _this.props.block;
  57762. if (value) {
  57763. transformBlock.complementW = 0;
  57764. }
  57765. else {
  57766. transformBlock.complementW = 1;
  57767. }
  57768. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57769. }, isSelected: function () { return _this.props.block.complementW === 0; } }))));
  57770. };
  57771. return TransformPropertyTabComponent;
  57772. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57773. /***/ }),
  57774. /***/ "./diagram/properties/trigonometryNodePropertyComponent.tsx":
  57775. /*!******************************************************************!*\
  57776. !*** ./diagram/properties/trigonometryNodePropertyComponent.tsx ***!
  57777. \******************************************************************/
  57778. /*! exports provided: TrigonometryPropertyTabComponent */
  57779. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57780. "use strict";
  57781. __webpack_require__.r(__webpack_exports__);
  57782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponent", function() { return TrigonometryPropertyTabComponent; });
  57783. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57784. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57785. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57786. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57787. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  57788. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/dataStorage");
  57789. /* 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__);
  57790. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  57791. var TrigonometryPropertyTabComponent = /** @class */ (function (_super) {
  57792. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TrigonometryPropertyTabComponent, _super);
  57793. function TrigonometryPropertyTabComponent(props) {
  57794. return _super.call(this, props) || this;
  57795. }
  57796. TrigonometryPropertyTabComponent.prototype.render = function () {
  57797. var _this = this;
  57798. var trigonometryBlock = this.props.block;
  57799. var operationOptions = [
  57800. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Cos },
  57801. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sin },
  57802. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Abs },
  57803. { label: "Exp", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp },
  57804. { label: "Exp2", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp2 },
  57805. { label: "Round", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Round },
  57806. { label: "Ceiling", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Ceiling },
  57807. { label: "Floor", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Floor },
  57808. { label: "ArcCos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcCos },
  57809. { label: "ArcSin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcSin },
  57810. { label: "ArcTan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcTan },
  57811. { label: "Tan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Tan },
  57812. { label: "Log", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Log },
  57813. { label: "Fract", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Fract },
  57814. { label: "Sign", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sign },
  57815. { label: "Radians to degrees", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Degrees },
  57816. { label: "Degrees to radians", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Radians }
  57817. ];
  57818. operationOptions.sort(function (a, b) {
  57819. return a.label.localeCompare(b.label);
  57820. });
  57821. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57822. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  57823. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  57824. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__["OptionsLineComponent"], { label: "Operation", options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  57825. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57826. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57827. _this.forceUpdate();
  57828. } }))));
  57829. };
  57830. return TrigonometryPropertyTabComponent;
  57831. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57832. /***/ }),
  57833. /***/ "./diagram/propertyLedger.ts":
  57834. /*!***********************************!*\
  57835. !*** ./diagram/propertyLedger.ts ***!
  57836. \***********************************/
  57837. /*! exports provided: PropertyLedger */
  57838. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57839. "use strict";
  57840. __webpack_require__.r(__webpack_exports__);
  57841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyLedger", function() { return PropertyLedger; });
  57842. /* harmony import */ var _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./properties/inputNodePropertyComponent */ "./diagram/properties/inputNodePropertyComponent.tsx");
  57843. /* harmony import */ var _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./properties/transformNodePropertyComponent */ "./diagram/properties/transformNodePropertyComponent.tsx");
  57844. /* harmony import */ var _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/gradientNodePropertyComponent */ "./diagram/properties/gradientNodePropertyComponent.tsx");
  57845. /* harmony import */ var _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./properties/lightPropertyTabComponent */ "./diagram/properties/lightPropertyTabComponent.tsx");
  57846. /* harmony import */ var _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./properties/lightInformationPropertyTabComponent */ "./diagram/properties/lightInformationPropertyTabComponent.tsx");
  57847. /* harmony import */ var _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./properties/texturePropertyTabComponent */ "./diagram/properties/texturePropertyTabComponent.tsx");
  57848. /* harmony import */ var _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./properties/trigonometryNodePropertyComponent */ "./diagram/properties/trigonometryNodePropertyComponent.tsx");
  57849. var PropertyLedger = /** @class */ (function () {
  57850. function PropertyLedger() {
  57851. }
  57852. PropertyLedger.RegisteredControls = {};
  57853. return PropertyLedger;
  57854. }());
  57855. PropertyLedger.RegisteredControls["TransformBlock"] = _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__["TransformPropertyTabComponent"];
  57856. PropertyLedger.RegisteredControls["InputBlock"] = _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__["InputPropertyTabComponent"];
  57857. PropertyLedger.RegisteredControls["GradientBlock"] = _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["GradientPropertyTabComponent"];
  57858. PropertyLedger.RegisteredControls["LightBlock"] = _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightPropertyTabComponent"];
  57859. PropertyLedger.RegisteredControls["LightInformationBlock"] = _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_4__["LightInformationPropertyTabComponent"];
  57860. PropertyLedger.RegisteredControls["TextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  57861. PropertyLedger.RegisteredControls["ReflectionTextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  57862. PropertyLedger.RegisteredControls["ReflectionBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  57863. PropertyLedger.RegisteredControls["TrigonometryBlock"] = _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__["TrigonometryPropertyTabComponent"];
  57864. /***/ }),
  57865. /***/ "./globalState.ts":
  57866. /*!************************!*\
  57867. !*** ./globalState.ts ***!
  57868. \************************/
  57869. /*! exports provided: GlobalState */
  57870. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57871. "use strict";
  57872. __webpack_require__.r(__webpack_exports__);
  57873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  57874. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  57875. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  57876. /* harmony import */ var _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewMeshType */ "./components/preview/previewMeshType.ts");
  57877. var GlobalState = /** @class */ (function () {
  57878. function GlobalState() {
  57879. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57880. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57881. this.onBuiltObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57882. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57883. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57884. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57885. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57886. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57887. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57888. this.onIsLoadingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57889. this.onPreviewCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57890. this.onLightUpdated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57891. this.onPreviewBackgroundChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57892. this.onBackFaceCullingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57893. this.onDepthPrePassChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57894. this.onAnimationCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57895. this.onCandidateLinkMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57896. this.onSelectionBoxMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57897. this.onFrameCreatedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57898. this.onCandidatePortSelectedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57899. this.onGraphNodeRemovalObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57900. this.onGridSizeChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57901. this.listOfCustomPreviewMeshFiles = [];
  57902. this.blockKeyboardEvents = false;
  57903. this.previewMeshType = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box);
  57904. this.backFaceCulling = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("BackFaceCulling", true);
  57905. this.depthPrePass = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DepthPrePass", false);
  57906. this.hemisphericLight = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("HemisphericLight", true);
  57907. this.directionalLight0 = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DirectionalLight0", false);
  57908. this.directionalLight1 = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DirectionalLight1", false);
  57909. this.controlCamera = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("ControlCamera", true);
  57910. var r = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorR", 0.12549019607843137);
  57911. var g = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorG", 0.09803921568627451);
  57912. var b = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorB", 0.25098039215686274);
  57913. this.backgroundColor = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color4"](r, g, b, 1.0);
  57914. }
  57915. return GlobalState;
  57916. }());
  57917. /***/ }),
  57918. /***/ "./graphEditor.tsx":
  57919. /*!*************************!*\
  57920. !*** ./graphEditor.tsx ***!
  57921. \*************************/
  57922. /*! exports provided: GraphEditor */
  57923. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57924. "use strict";
  57925. __webpack_require__.r(__webpack_exports__);
  57926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  57927. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57928. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57929. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57930. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  57931. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  57932. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  57933. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  57934. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  57935. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__);
  57936. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  57937. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  57938. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  57939. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  57940. /* harmony import */ var _components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/preview/previewAreaComponent */ "./components/preview/previewAreaComponent.tsx");
  57941. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  57942. /* harmony import */ var _diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagram/graphCanvas */ "./diagram/graphCanvas.tsx");
  57943. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagram/graphFrame */ "./diagram/graphFrame.ts");
  57944. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  57945. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_15__);
  57946. __webpack_require__(/*! ./main.scss */ "./main.scss");
  57947. ;
  57948. var GraphEditor = /** @class */ (function (_super) {
  57949. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphEditor, _super);
  57950. function GraphEditor(props) {
  57951. var _this = _super.call(this, props) || this;
  57952. _this.NodeWidth = 100;
  57953. _this._leftWidth = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("LeftWidth", 200);
  57954. _this._rightWidth = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("RightWidth", 300);
  57955. _this._blocks = new Array();
  57956. _this._copiedNodes = [];
  57957. _this._copiedFrame = null;
  57958. _this._mouseLocationX = 0;
  57959. _this._mouseLocationY = 0;
  57960. _this.handlePopUp = function () {
  57961. _this.setState({
  57962. showPreviewPopUp: true
  57963. });
  57964. _this.createPopUp();
  57965. _this.props.globalState.hostWindow.addEventListener('beforeunload', _this.handleClosingPopUp);
  57966. };
  57967. _this.handleClosingPopUp = function () {
  57968. _this._previewManager.dispose();
  57969. _this._popUpWindow.close();
  57970. _this.setState({
  57971. showPreviewPopUp: false
  57972. }, function () { return _this.initiatePreviewArea(); });
  57973. };
  57974. _this.initiatePreviewArea = function (canvas) {
  57975. if (canvas === void 0) { canvas = _this.props.globalState.hostDocument.getElementById("preview-canvas"); }
  57976. _this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__["PreviewManager"](canvas, _this.props.globalState);
  57977. };
  57978. _this.createPopUp = function () {
  57979. var userOptions = {
  57980. original: true,
  57981. popup: false,
  57982. overlay: false,
  57983. embedMode: false,
  57984. enableClose: true,
  57985. handleResize: true,
  57986. enablePopup: true,
  57987. };
  57988. var options = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ embedHostWidth: "100%", popup: true }, userOptions);
  57989. var popUpWindow = _this.createPopupWindow("PREVIEW AREA", "_PreviewHostWindow");
  57990. if (popUpWindow) {
  57991. popUpWindow.addEventListener('beforeunload', _this.handleClosingPopUp);
  57992. var parentControl = popUpWindow.document.getElementById('node-editor-graph-root');
  57993. _this.createPreviewMeshControlHost(options, parentControl);
  57994. _this.createPreviewHost(options, parentControl);
  57995. if (parentControl) {
  57996. _this.fixPopUpStyles(parentControl.ownerDocument);
  57997. _this.initiatePreviewArea(parentControl.ownerDocument.getElementById("preview-canvas"));
  57998. }
  57999. }
  58000. };
  58001. _this.createPopupWindow = function (title, windowVariableName, width, height) {
  58002. if (width === void 0) { width = 500; }
  58003. if (height === void 0) { height = 500; }
  58004. var windowCreationOptionsList = {
  58005. width: width,
  58006. height: height,
  58007. top: (_this.props.globalState.hostWindow.innerHeight - width) / 2 + window.screenY,
  58008. left: (_this.props.globalState.hostWindow.innerWidth - height) / 2 + window.screenX
  58009. };
  58010. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  58011. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  58012. .join(',');
  58013. var popupWindow = _this.props.globalState.hostWindow.open("", title, windowCreationOptions);
  58014. if (!popupWindow) {
  58015. return null;
  58016. }
  58017. var parentDocument = popupWindow.document;
  58018. parentDocument.title = title;
  58019. parentDocument.body.style.width = "100%";
  58020. parentDocument.body.style.height = "100%";
  58021. parentDocument.body.style.margin = "0";
  58022. parentDocument.body.style.padding = "0";
  58023. var parentControl = parentDocument.createElement("div");
  58024. parentControl.style.width = "100%";
  58025. parentControl.style.height = "100%";
  58026. parentControl.style.margin = "0";
  58027. parentControl.style.padding = "0";
  58028. parentControl.style.display = "grid";
  58029. parentControl.style.gridTemplateRows = "40px auto";
  58030. parentControl.id = 'node-editor-graph-root';
  58031. parentControl.className = 'right-panel';
  58032. popupWindow.document.body.appendChild(parentControl);
  58033. _this.copyStyles(_this.props.globalState.hostWindow.document, parentDocument);
  58034. _this[windowVariableName] = popupWindow;
  58035. _this._popUpWindow = popupWindow;
  58036. return popupWindow;
  58037. };
  58038. _this.copyStyles = function (sourceDoc, targetDoc) {
  58039. var styleContainer = [];
  58040. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  58041. var styleSheet = sourceDoc.styleSheets[index];
  58042. try {
  58043. if (styleSheet.href) { // for <link> elements loading CSS from a URL
  58044. var newLinkEl = sourceDoc.createElement('link');
  58045. newLinkEl.rel = 'stylesheet';
  58046. newLinkEl.href = styleSheet.href;
  58047. targetDoc.head.appendChild(newLinkEl);
  58048. styleContainer.push(newLinkEl);
  58049. }
  58050. else if (styleSheet.cssRules) { // for <style> elements
  58051. var newStyleEl = sourceDoc.createElement('style');
  58052. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  58053. var cssRule = _a[_i];
  58054. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  58055. }
  58056. targetDoc.head.appendChild(newStyleEl);
  58057. styleContainer.push(newStyleEl);
  58058. }
  58059. }
  58060. catch (e) {
  58061. console.log(e);
  58062. }
  58063. }
  58064. };
  58065. _this.createPreviewMeshControlHost = function (options, parentControl) {
  58066. // Prepare the preview control host
  58067. if (parentControl) {
  58068. var host = parentControl.ownerDocument.createElement("div");
  58069. host.id = "PreviewMeshControl-host";
  58070. host.style.width = options.embedHostWidth || "auto";
  58071. parentControl.appendChild(host);
  58072. var PreviewMeshControlComponentHost = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_10__["PreviewMeshControlComponent"], {
  58073. globalState: _this.props.globalState,
  58074. togglePreviewAreaComponent: _this.handlePopUp
  58075. });
  58076. react_dom__WEBPACK_IMPORTED_MODULE_15__["render"](PreviewMeshControlComponentHost, host);
  58077. }
  58078. };
  58079. _this.createPreviewHost = function (options, parentControl) {
  58080. // Prepare the preview host
  58081. if (parentControl) {
  58082. var host = parentControl.ownerDocument.createElement("div");
  58083. host.id = "PreviewAreaComponent-host";
  58084. host.style.width = options.embedHostWidth || "auto";
  58085. host.style.display = "grid";
  58086. host.style.gridRow = '2';
  58087. host.style.gridTemplateRows = "auto 40px";
  58088. parentControl.appendChild(host);
  58089. _this._previewHost = host;
  58090. if (!options.overlay) {
  58091. _this._previewHost.style.position = "relative";
  58092. }
  58093. }
  58094. if (_this._previewHost) {
  58095. var PreviewAreaComponentHost = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_11__["PreviewAreaComponent"], {
  58096. globalState: _this.props.globalState,
  58097. width: 200
  58098. });
  58099. react_dom__WEBPACK_IMPORTED_MODULE_15__["render"](PreviewAreaComponentHost, _this._previewHost);
  58100. }
  58101. };
  58102. _this.fixPopUpStyles = function (document) {
  58103. var previewContainer = document.getElementById("preview");
  58104. if (previewContainer) {
  58105. previewContainer.style.height = "auto";
  58106. previewContainer.style.gridRow = "1";
  58107. }
  58108. var previewConfigBar = document.getElementById("preview-config-bar");
  58109. if (previewConfigBar) {
  58110. previewConfigBar.style.gridRow = "2";
  58111. }
  58112. var newWindowButton = document.getElementById('preview-new-window');
  58113. if (newWindowButton) {
  58114. newWindowButton.style.display = 'none';
  58115. }
  58116. var previewMeshBar = document.getElementById('preview-mesh-bar');
  58117. if (previewMeshBar) {
  58118. previewMeshBar.style.gridTemplateColumns = "auto 1fr 40px 40px";
  58119. }
  58120. };
  58121. _this.state = {
  58122. showPreviewPopUp: false
  58123. };
  58124. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  58125. if (_this.props.globalState.nodeMaterial) {
  58126. _this.buildMaterial();
  58127. }
  58128. });
  58129. _this.props.globalState.onResetRequiredObservable.add(function () {
  58130. _this.build();
  58131. if (_this.props.globalState.nodeMaterial) {
  58132. _this.buildMaterial();
  58133. }
  58134. });
  58135. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  58136. _this.zoomToFit();
  58137. });
  58138. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  58139. _this.reOrganize();
  58140. });
  58141. _this.props.globalState.onGetNodeFromBlock = function (block) {
  58142. return _this._graphCanvas.findNodeFromBlock(block);
  58143. };
  58144. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  58145. if ((evt.keyCode === 46 || evt.keyCode === 8) && !_this.props.globalState.blockKeyboardEvents) { // Delete
  58146. var selectedItems = _this._graphCanvas.selectedNodes;
  58147. for (var _i = 0, selectedItems_1 = selectedItems; _i < selectedItems_1.length; _i++) {
  58148. var selectedItem = selectedItems_1[_i];
  58149. selectedItem.dispose();
  58150. var targetBlock = selectedItem.block;
  58151. _this.props.globalState.nodeMaterial.removeBlock(targetBlock);
  58152. var blockIndex = _this._blocks.indexOf(targetBlock);
  58153. if (blockIndex > -1) {
  58154. _this._blocks.splice(blockIndex, 1);
  58155. }
  58156. }
  58157. if (_this._graphCanvas.selectedLink) {
  58158. _this._graphCanvas.selectedLink.dispose();
  58159. }
  58160. if (_this._graphCanvas.selectedFrame) {
  58161. _this._graphCanvas.selectedFrame.dispose();
  58162. }
  58163. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  58164. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  58165. return;
  58166. }
  58167. if (!evt.ctrlKey || _this.props.globalState.blockKeyboardEvents) {
  58168. return;
  58169. }
  58170. if (evt.key === "c") { // Copy
  58171. _this._copiedNodes = [];
  58172. _this._copiedFrame = null;
  58173. if (_this._graphCanvas.selectedFrame) {
  58174. _this._copiedFrame = _this._graphCanvas.selectedFrame;
  58175. return;
  58176. }
  58177. var selectedItems = _this._graphCanvas.selectedNodes;
  58178. if (!selectedItems.length) {
  58179. return;
  58180. }
  58181. var selectedItem_1 = selectedItems[0];
  58182. if (!selectedItem_1.block) {
  58183. return;
  58184. }
  58185. _this._copiedNodes = selectedItems.slice(0);
  58186. }
  58187. else if (evt.key === "v") { // Paste
  58188. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  58189. var zoomLevel = _this._graphCanvas.zoom;
  58190. var currentY = (_this._mouseLocationY - rootElement.offsetTop - _this._graphCanvas.y - 20) / zoomLevel;
  58191. if (_this._copiedFrame) {
  58192. // New frame
  58193. var newFrame = new _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_14__["GraphFrame"](null, _this._graphCanvas, true);
  58194. _this._graphCanvas.frames.push(newFrame);
  58195. newFrame.width = _this._copiedFrame.width;
  58196. newFrame.height = _this._copiedFrame.height;
  58197. newFrame.width / 2;
  58198. newFrame.name = _this._copiedFrame.name;
  58199. newFrame.color = _this._copiedFrame.color;
  58200. var currentX_1 = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x) / zoomLevel;
  58201. newFrame.x = currentX_1 - newFrame.width / 2;
  58202. newFrame.y = currentY;
  58203. // Paste nodes
  58204. if (_this._copiedFrame.nodes.length) {
  58205. currentX_1 = newFrame.x + _this._copiedFrame.nodes[0].x - _this._copiedFrame.x;
  58206. currentY = newFrame.y + _this._copiedFrame.nodes[0].y - _this._copiedFrame.y;
  58207. _this.pasteSelection(_this._copiedFrame.nodes, currentX_1, currentY);
  58208. }
  58209. if (_this._copiedFrame.isCollapsed) {
  58210. newFrame.isCollapsed = true;
  58211. }
  58212. return;
  58213. }
  58214. if (!_this._copiedNodes.length) {
  58215. return;
  58216. }
  58217. var currentX = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x - _this.NodeWidth) / zoomLevel;
  58218. _this.pasteSelection(_this._copiedNodes, currentX, currentY);
  58219. }
  58220. }, false);
  58221. return _this;
  58222. }
  58223. /**
  58224. * Creates a node and recursivly creates its parent nodes from it's input
  58225. * @param nodeMaterialBlock
  58226. */
  58227. GraphEditor.prototype.createNodeFromObject = function (block, recursion) {
  58228. if (recursion === void 0) { recursion = true; }
  58229. if (this._blocks.indexOf(block) !== -1) {
  58230. return this._graphCanvas.nodes.filter(function (n) { return n.block === block; })[0];
  58231. }
  58232. this._blocks.push(block);
  58233. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(block) === -1) {
  58234. this.props.globalState.nodeMaterial.attachedBlocks.push(block);
  58235. }
  58236. if (block.isFinalMerger) {
  58237. this.props.globalState.nodeMaterial.addOutputNode(block);
  58238. }
  58239. // Connections
  58240. if (block.inputs.length) {
  58241. for (var _i = 0, _a = block.inputs; _i < _a.length; _i++) {
  58242. var input = _a[_i];
  58243. if (input.isConnected && recursion) {
  58244. this.createNodeFromObject(input.sourceBlock);
  58245. }
  58246. }
  58247. }
  58248. // Graph
  58249. var node = this._graphCanvas.appendBlock(block);
  58250. // Links
  58251. if (block.inputs.length && recursion) {
  58252. for (var _b = 0, _c = block.inputs; _b < _c.length; _b++) {
  58253. var input = _c[_b];
  58254. if (input.isConnected) {
  58255. this._graphCanvas.connectPorts(input.connectedPoint, input);
  58256. }
  58257. }
  58258. }
  58259. return node;
  58260. };
  58261. GraphEditor.prototype.addValueNode = function (type) {
  58262. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_8__["BlockTools"].GetConnectionNodeTypeFromString(type);
  58263. var newInputBlock = new babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["InputBlock"](type, undefined, nodeType);
  58264. return this.createNodeFromObject(newInputBlock);
  58265. };
  58266. GraphEditor.prototype.componentDidMount = function () {
  58267. if (this.props.globalState.hostDocument) {
  58268. this._graphCanvas = this.refs["graphCanvas"];
  58269. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  58270. }
  58271. if (navigator.userAgent.indexOf("Mobile") !== -1) {
  58272. (this.props.globalState.hostDocument || document).querySelector(".blocker").style.visibility = "visible";
  58273. }
  58274. this.build();
  58275. };
  58276. GraphEditor.prototype.componentWillUnmount = function () {
  58277. if (this.props.globalState.hostDocument) {
  58278. this.props.globalState.hostDocument.removeEventListener("keyup", this._onWidgetKeyUpPointer, false);
  58279. }
  58280. if (this._previewManager) {
  58281. this._previewManager.dispose();
  58282. }
  58283. };
  58284. GraphEditor.prototype.reconnectNewNodes = function (nodeIndex, newNodes, sourceNodes, done) {
  58285. if (done[nodeIndex]) {
  58286. return;
  58287. }
  58288. var currentNode = newNodes[nodeIndex];
  58289. var block = currentNode.block;
  58290. var sourceNode = sourceNodes[nodeIndex];
  58291. var _loop_1 = function () {
  58292. var sourceInput = sourceNode.block.inputs[inputIndex];
  58293. var currentInput = block.inputs[inputIndex];
  58294. if (!sourceInput.isConnected) {
  58295. return "continue";
  58296. }
  58297. var sourceBlock = sourceInput.connectedPoint.ownerBlock;
  58298. var activeNodes = sourceNodes.filter(function (s) { return s.block === sourceBlock; });
  58299. if (activeNodes.length > 0) {
  58300. var activeNode = activeNodes[0];
  58301. var indexInList = sourceNodes.indexOf(activeNode);
  58302. // First make sure to connect the other one
  58303. this_1.reconnectNewNodes(indexInList, newNodes, sourceNodes, done);
  58304. // Then reconnect
  58305. var outputIndex = sourceBlock.outputs.indexOf(sourceInput.connectedPoint);
  58306. var newOutput = newNodes[indexInList].block.outputs[outputIndex];
  58307. newOutput.connectTo(currentInput);
  58308. }
  58309. else {
  58310. // Connect with outside blocks
  58311. sourceInput._connectedPoint.connectTo(currentInput);
  58312. }
  58313. this_1._graphCanvas.connectPorts(currentInput.connectedPoint, currentInput);
  58314. };
  58315. var this_1 = this;
  58316. for (var inputIndex = 0; inputIndex < sourceNode.block.inputs.length; inputIndex++) {
  58317. _loop_1();
  58318. }
  58319. currentNode.refresh();
  58320. done[nodeIndex] = true;
  58321. };
  58322. GraphEditor.prototype.pasteSelection = function (copiedNodes, currentX, currentY) {
  58323. var originalNode = null;
  58324. var newNodes = [];
  58325. // Create new nodes
  58326. for (var _i = 0, copiedNodes_1 = copiedNodes; _i < copiedNodes_1.length; _i++) {
  58327. var node = copiedNodes_1[_i];
  58328. var block = node.block;
  58329. if (!block) {
  58330. continue;
  58331. }
  58332. var clone = block.clone(this.props.globalState.nodeMaterial.getScene());
  58333. if (!clone) {
  58334. return;
  58335. }
  58336. var newNode = this.createNodeFromObject(clone, false);
  58337. var x = 0;
  58338. var y = 0;
  58339. if (originalNode) {
  58340. x = currentX + node.x - originalNode.x;
  58341. y = currentY + node.y - originalNode.y;
  58342. }
  58343. else {
  58344. originalNode = node;
  58345. x = currentX;
  58346. y = currentY;
  58347. }
  58348. newNode.x = x;
  58349. newNode.y = y;
  58350. newNode.cleanAccumulation();
  58351. newNodes.push(newNode);
  58352. }
  58353. // Relink
  58354. var done = new Array(newNodes.length);
  58355. for (var index = 0; index < newNodes.length; index++) {
  58356. this.reconnectNewNodes(index, newNodes, copiedNodes, done);
  58357. }
  58358. };
  58359. GraphEditor.prototype.zoomToFit = function () {
  58360. this._graphCanvas.zoomToFit();
  58361. };
  58362. GraphEditor.prototype.buildMaterial = function () {
  58363. if (!this.props.globalState.nodeMaterial) {
  58364. return;
  58365. }
  58366. try {
  58367. this.props.globalState.nodeMaterial.options.emitComments = true;
  58368. this.props.globalState.nodeMaterial.build(true);
  58369. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"]("Node material build successful", false));
  58370. }
  58371. catch (err) {
  58372. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"](err, true));
  58373. }
  58374. _serializationTools__WEBPACK_IMPORTED_MODULE_12__["SerializationTools"].UpdateLocations(this.props.globalState.nodeMaterial, this.props.globalState);
  58375. this.props.globalState.onBuiltObservable.notifyObservers();
  58376. };
  58377. GraphEditor.prototype.build = function () {
  58378. var _this = this;
  58379. var editorData = this.props.globalState.nodeMaterial.editorData;
  58380. this._graphCanvas._isLoading = true; // Will help loading large graphes
  58381. if (editorData instanceof Array) {
  58382. editorData = {
  58383. locations: editorData
  58384. };
  58385. }
  58386. // setup the diagram model
  58387. this._blocks = [];
  58388. this._graphCanvas.reset();
  58389. // Load graph of nodes from the material
  58390. if (this.props.globalState.nodeMaterial) {
  58391. var material = this.props.globalState.nodeMaterial;
  58392. material._vertexOutputNodes.forEach(function (n) {
  58393. _this.createNodeFromObject(n);
  58394. });
  58395. material._fragmentOutputNodes.forEach(function (n) {
  58396. _this.createNodeFromObject(n);
  58397. });
  58398. material.attachedBlocks.forEach(function (n) {
  58399. _this.createNodeFromObject(n);
  58400. });
  58401. // Links
  58402. material.attachedBlocks.forEach(function (n) {
  58403. if (n.inputs.length) {
  58404. for (var _i = 0, _a = n.inputs; _i < _a.length; _i++) {
  58405. var input = _a[_i];
  58406. if (input.isConnected) {
  58407. _this._graphCanvas.connectPorts(input.connectedPoint, input);
  58408. }
  58409. }
  58410. }
  58411. });
  58412. }
  58413. this.reOrganize(editorData);
  58414. };
  58415. GraphEditor.prototype.showWaitScreen = function () {
  58416. var _a;
  58417. (_a = this.props.globalState.hostDocument.querySelector(".wait-screen")) === null || _a === void 0 ? void 0 : _a.classList.remove("hidden");
  58418. };
  58419. GraphEditor.prototype.hideWaitScreen = function () {
  58420. var _a;
  58421. (_a = this.props.globalState.hostDocument.querySelector(".wait-screen")) === null || _a === void 0 ? void 0 : _a.classList.add("hidden");
  58422. };
  58423. GraphEditor.prototype.reOrganize = function (editorData) {
  58424. var _this = this;
  58425. if (editorData === void 0) { editorData = null; }
  58426. this.showWaitScreen();
  58427. this._graphCanvas._isLoading = true; // Will help loading large graphes
  58428. setTimeout(function () {
  58429. if (!editorData || !editorData.locations) {
  58430. _this._graphCanvas.distributeGraph();
  58431. }
  58432. else {
  58433. // Locations
  58434. for (var _i = 0, _a = editorData.locations; _i < _a.length; _i++) {
  58435. var location = _a[_i];
  58436. for (var _b = 0, _c = _this._graphCanvas.nodes; _b < _c.length; _b++) {
  58437. var node = _c[_b];
  58438. if (node.block && node.block.uniqueId === location.blockId) {
  58439. node.x = location.x;
  58440. node.y = location.y;
  58441. node.cleanAccumulation();
  58442. break;
  58443. }
  58444. }
  58445. }
  58446. _this._graphCanvas.processEditorData(editorData);
  58447. }
  58448. _this._graphCanvas._isLoading = false;
  58449. for (var _d = 0, _e = _this._graphCanvas.nodes; _d < _e.length; _d++) {
  58450. var node = _e[_d];
  58451. node._refreshLinks();
  58452. }
  58453. _this.hideWaitScreen();
  58454. });
  58455. };
  58456. GraphEditor.prototype.onPointerDown = function (evt) {
  58457. this._startX = evt.clientX;
  58458. this._moveInProgress = true;
  58459. evt.currentTarget.setPointerCapture(evt.pointerId);
  58460. };
  58461. GraphEditor.prototype.onPointerUp = function (evt) {
  58462. this._moveInProgress = false;
  58463. evt.currentTarget.releasePointerCapture(evt.pointerId);
  58464. };
  58465. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  58466. if (forLeft === void 0) { forLeft = true; }
  58467. if (!this._moveInProgress) {
  58468. return;
  58469. }
  58470. var deltaX = evt.clientX - this._startX;
  58471. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  58472. if (forLeft) {
  58473. this._leftWidth += deltaX;
  58474. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  58475. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("LeftWidth", this._leftWidth);
  58476. }
  58477. else {
  58478. this._rightWidth -= deltaX;
  58479. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  58480. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("RightWidth", this._rightWidth);
  58481. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  58482. }
  58483. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  58484. this._startX = evt.clientX;
  58485. };
  58486. GraphEditor.prototype.buildColumnLayout = function () {
  58487. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  58488. };
  58489. GraphEditor.prototype.emitNewBlock = function (event) {
  58490. var _this = this;
  58491. var data = event.dataTransfer.getData("babylonjs-material-node");
  58492. var newNode;
  58493. if (data.indexOf("Block") === -1) {
  58494. newNode = this.addValueNode(data);
  58495. }
  58496. else {
  58497. var block_1 = _blockTools__WEBPACK_IMPORTED_MODULE_8__["BlockTools"].GetBlockFromString(data, this.props.globalState.nodeMaterial.getScene(), this.props.globalState.nodeMaterial);
  58498. if (block_1.isUnique) {
  58499. var className = block_1.getClassName();
  58500. for (var _i = 0, _a = this._blocks; _i < _a.length; _i++) {
  58501. var other = _a[_i];
  58502. if (other !== block_1 && other.getClassName() === className) {
  58503. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("You can only have one " + className + " per graph");
  58504. return;
  58505. }
  58506. }
  58507. }
  58508. block_1.autoConfigure(this.props.globalState.nodeMaterial);
  58509. newNode = this.createNodeFromObject(block_1);
  58510. }
  58511. ;
  58512. var x = event.clientX - event.currentTarget.offsetLeft - this._graphCanvas.x - this.NodeWidth;
  58513. var y = event.clientY - event.currentTarget.offsetTop - this._graphCanvas.y - 20;
  58514. newNode.x = x / this._graphCanvas.zoom;
  58515. newNode.y = y / this._graphCanvas.zoom;
  58516. newNode.cleanAccumulation();
  58517. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  58518. this.props.globalState.onSelectionChangedObservable.notifyObservers(newNode);
  58519. var block = newNode.block;
  58520. x -= this.NodeWidth + 150;
  58521. block.inputs.forEach(function (connection) {
  58522. if (connection.connectedPoint) {
  58523. var existingNodes = _this._graphCanvas.nodes.filter(function (n) { return n.block === connection.connectedPoint.ownerBlock; });
  58524. var connectedNode = existingNodes[0];
  58525. if (connectedNode.x === 0 && connectedNode.y === 0) {
  58526. connectedNode.x = x / _this._graphCanvas.zoom;
  58527. connectedNode.y = y / _this._graphCanvas.zoom;
  58528. connectedNode.cleanAccumulation();
  58529. y += 80;
  58530. }
  58531. }
  58532. });
  58533. this.forceUpdate();
  58534. };
  58535. GraphEditor.prototype.render = function () {
  58536. var _this = this;
  58537. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_4__["Portal"], { globalState: this.props.globalState },
  58538. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "node-editor-graph-root", style: {
  58539. gridTemplateColumns: this.buildColumnLayout()
  58540. }, onMouseMove: function (evt) {
  58541. _this._mouseLocationX = evt.pageX;
  58542. _this._mouseLocationY = evt.pageY;
  58543. }, onMouseDown: function (evt) {
  58544. if (evt.target.nodeName === "INPUT") {
  58545. return;
  58546. }
  58547. _this.props.globalState.blockKeyboardEvents = false;
  58548. } },
  58549. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__["NodeListComponent"], { globalState: this.props.globalState }),
  58550. 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); } }),
  58551. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  58552. _this.emitNewBlock(event);
  58553. }, onDragOver: function (event) {
  58554. event.preventDefault();
  58555. } },
  58556. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_13__["GraphCanvasComponent"], { ref: "graphCanvas", globalState: this.props.globalState })),
  58557. 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); } }),
  58558. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "right-panel" },
  58559. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["PropertyTabComponent"], { globalState: this.props.globalState }),
  58560. !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,
  58561. !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),
  58562. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogComponent"], { globalState: this.props.globalState })),
  58563. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_7__["MessageDialogComponent"], { globalState: this.props.globalState }),
  58564. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "blocker" }, "Node Material Editor runs only on desktop"),
  58565. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "wait-screen hidden" }, "Processing...please wait")));
  58566. };
  58567. return GraphEditor;
  58568. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58569. /***/ }),
  58570. /***/ "./index.ts":
  58571. /*!******************!*\
  58572. !*** ./index.ts ***!
  58573. \******************/
  58574. /*! exports provided: NodeEditor */
  58575. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58576. "use strict";
  58577. __webpack_require__.r(__webpack_exports__);
  58578. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  58579. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  58580. /***/ }),
  58581. /***/ "./legacy/legacy.ts":
  58582. /*!**************************!*\
  58583. !*** ./legacy/legacy.ts ***!
  58584. \**************************/
  58585. /*! exports provided: NodeEditor */
  58586. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58587. "use strict";
  58588. __webpack_require__.r(__webpack_exports__);
  58589. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  58590. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  58591. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  58592. if (typeof globalObject !== "undefined") {
  58593. globalObject.BABYLON = globalObject.BABYLON || {};
  58594. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  58595. }
  58596. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  58597. /***/ }),
  58598. /***/ "./main.scss":
  58599. /*!*******************!*\
  58600. !*** ./main.scss ***!
  58601. \*******************/
  58602. /*! no static exports found */
  58603. /***/ (function(module, exports, __webpack_require__) {
  58604. var content = __webpack_require__(/*! !../../node_modules/css-loader!../../node_modules/sass-loader/dist/cjs.js!./main.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/dist/cjs.js!./main.scss");
  58605. if(typeof content === 'string') content = [[module.i, content, '']];
  58606. var transform;
  58607. var insertInto;
  58608. var options = {"hmr":true}
  58609. options.transform = transform
  58610. options.insertInto = undefined;
  58611. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  58612. if(content.locals) module.exports = content.locals;
  58613. if(false) {}
  58614. /***/ }),
  58615. /***/ "./nodeEditor.ts":
  58616. /*!***********************!*\
  58617. !*** ./nodeEditor.ts ***!
  58618. \***********************/
  58619. /*! exports provided: NodeEditor */
  58620. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58621. "use strict";
  58622. __webpack_require__.r(__webpack_exports__);
  58623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  58624. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58625. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  58626. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  58627. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  58628. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  58629. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  58630. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  58631. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  58632. /* harmony import */ var _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/preview/previewMeshType */ "./components/preview/previewMeshType.ts");
  58633. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  58634. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__);
  58635. /**
  58636. * Class used to create a node editor
  58637. */
  58638. var NodeEditor = /** @class */ (function () {
  58639. function NodeEditor() {
  58640. }
  58641. /**
  58642. * Show the node editor
  58643. * @param options defines the options to use to configure the node editor
  58644. */
  58645. NodeEditor.Show = function (options) {
  58646. if (this._CurrentState) {
  58647. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  58648. if (popupWindow) {
  58649. popupWindow.close();
  58650. }
  58651. }
  58652. var hostElement = options.hostElement;
  58653. if (!hostElement) {
  58654. hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  58655. }
  58656. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  58657. globalState.nodeMaterial = options.nodeMaterial;
  58658. globalState.hostElement = hostElement;
  58659. globalState.hostDocument = hostElement.ownerDocument;
  58660. globalState.customSave = options.customSave;
  58661. globalState.hostWindow = hostElement.ownerDocument.defaultView;
  58662. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  58663. globalState: globalState
  58664. });
  58665. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  58666. if (options.customLoadObservable) {
  58667. options.customLoadObservable.add(function (data) {
  58668. _serializationTools__WEBPACK_IMPORTED_MODULE_5__["SerializationTools"].Deserialize(data, globalState);
  58669. globalState.onBuiltObservable.notifyObservers();
  58670. });
  58671. }
  58672. this._CurrentState = globalState;
  58673. // Close the popup window when the page is refreshed or scene is disposed
  58674. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  58675. if (globalState.nodeMaterial && popupWindow) {
  58676. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  58677. if (popupWindow) {
  58678. popupWindow.close();
  58679. }
  58680. });
  58681. window.onbeforeunload = function () {
  58682. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  58683. if (popupWindow) {
  58684. popupWindow.close();
  58685. }
  58686. };
  58687. }
  58688. window.addEventListener('beforeunload', function () {
  58689. if (babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__["DataStorage"].ReadNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_6__["PreviewMeshType"].Box) === _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_6__["PreviewMeshType"].Custom) {
  58690. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__["DataStorage"].WriteNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_6__["PreviewMeshType"].Box);
  58691. }
  58692. });
  58693. };
  58694. return NodeEditor;
  58695. }());
  58696. /***/ }),
  58697. /***/ "./portal.tsx":
  58698. /*!********************!*\
  58699. !*** ./portal.tsx ***!
  58700. \********************/
  58701. /*! exports provided: Portal */
  58702. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58703. "use strict";
  58704. __webpack_require__.r(__webpack_exports__);
  58705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  58706. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58707. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58708. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58709. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  58710. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  58711. var Portal = /** @class */ (function (_super) {
  58712. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Portal, _super);
  58713. function Portal() {
  58714. return _super !== null && _super.apply(this, arguments) || this;
  58715. }
  58716. Portal.prototype.render = function () {
  58717. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  58718. };
  58719. return Portal;
  58720. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58721. /***/ }),
  58722. /***/ "./serializationTools.ts":
  58723. /*!*******************************!*\
  58724. !*** ./serializationTools.ts ***!
  58725. \*******************************/
  58726. /*! exports provided: SerializationTools */
  58727. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58728. "use strict";
  58729. __webpack_require__.r(__webpack_exports__);
  58730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerializationTools", function() { return SerializationTools; });
  58731. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Misc/dataStorage");
  58732. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__);
  58733. var SerializationTools = /** @class */ (function () {
  58734. function SerializationTools() {
  58735. }
  58736. SerializationTools.UpdateLocations = function (material, globalState) {
  58737. material.editorData = {
  58738. locations: []
  58739. };
  58740. // Store node locations
  58741. for (var _i = 0, _a = material.attachedBlocks; _i < _a.length; _i++) {
  58742. var block = _a[_i];
  58743. var node = globalState.onGetNodeFromBlock(block);
  58744. material.editorData.locations.push({
  58745. blockId: block.uniqueId,
  58746. x: node ? node.x : 0,
  58747. y: node ? node.y : 0
  58748. });
  58749. }
  58750. globalState.storeEditorData(material.editorData);
  58751. };
  58752. SerializationTools.Serialize = function (material, globalState, selectedBlocks) {
  58753. var bufferSerializationState = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers;
  58754. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("EmbedTextures", true);
  58755. this.UpdateLocations(material, globalState);
  58756. var serializationObject = material.serialize(selectedBlocks);
  58757. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = bufferSerializationState;
  58758. return JSON.stringify(serializationObject, undefined, 2);
  58759. };
  58760. SerializationTools.Deserialize = function (serializationObject, globalState) {
  58761. globalState.onIsLoadingChanged.notifyObservers(true);
  58762. globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  58763. globalState.onResetRequiredObservable.notifyObservers();
  58764. };
  58765. return SerializationTools;
  58766. }());
  58767. /***/ }),
  58768. /***/ "./sharedComponents/buttonLineComponent.tsx":
  58769. /*!**************************************************!*\
  58770. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  58771. \**************************************************/
  58772. /*! exports provided: ButtonLineComponent */
  58773. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58774. "use strict";
  58775. __webpack_require__.r(__webpack_exports__);
  58776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  58777. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58778. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58779. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58780. var ButtonLineComponent = /** @class */ (function (_super) {
  58781. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ButtonLineComponent, _super);
  58782. function ButtonLineComponent(props) {
  58783. return _super.call(this, props) || this;
  58784. }
  58785. ButtonLineComponent.prototype.render = function () {
  58786. var _this = this;
  58787. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  58788. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  58789. };
  58790. return ButtonLineComponent;
  58791. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58792. /***/ }),
  58793. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  58794. /*!****************************************************!*\
  58795. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  58796. \****************************************************/
  58797. /*! exports provided: CheckBoxLineComponent */
  58798. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58799. "use strict";
  58800. __webpack_require__.r(__webpack_exports__);
  58801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  58802. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58803. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58804. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58805. var CheckBoxLineComponent = /** @class */ (function (_super) {
  58806. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckBoxLineComponent, _super);
  58807. function CheckBoxLineComponent(props) {
  58808. var _this = _super.call(this, props) || this;
  58809. _this._localChange = false;
  58810. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  58811. if (_this.props.isSelected) {
  58812. _this.state = { isSelected: _this.props.isSelected() };
  58813. }
  58814. else {
  58815. _this.state = { isSelected: _this.props.target[_this.props.propertyName] == true };
  58816. }
  58817. return _this;
  58818. }
  58819. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  58820. var currentState;
  58821. if (nextProps.isSelected) {
  58822. currentState = nextProps.isSelected();
  58823. }
  58824. else {
  58825. currentState = nextProps.target[nextProps.propertyName] == true;
  58826. }
  58827. if (currentState !== nextState.isSelected || this._localChange) {
  58828. nextState.isSelected = currentState;
  58829. this._localChange = false;
  58830. return true;
  58831. }
  58832. return nextProps.label !== this.props.label;
  58833. };
  58834. CheckBoxLineComponent.prototype.onChange = function () {
  58835. this._localChange = true;
  58836. if (this.props.onSelect) {
  58837. this.props.onSelect(!this.state.isSelected);
  58838. }
  58839. else {
  58840. if (this.props.onPropertyChangedObservable) {
  58841. this.props.onPropertyChangedObservable.notifyObservers({
  58842. object: this.props.target,
  58843. property: this.props.propertyName,
  58844. value: !this.state.isSelected,
  58845. initialValue: this.state.isSelected
  58846. });
  58847. }
  58848. this.props.target[this.props.propertyName] = !this.state.isSelected;
  58849. }
  58850. if (this.props.onValueChanged) {
  58851. this.props.onValueChanged();
  58852. }
  58853. this.setState({ isSelected: !this.state.isSelected });
  58854. };
  58855. CheckBoxLineComponent.prototype.render = function () {
  58856. var _this = this;
  58857. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  58858. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  58859. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  58860. 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(); } }),
  58861. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  58862. };
  58863. CheckBoxLineComponent._UniqueIdSeed = 0;
  58864. return CheckBoxLineComponent;
  58865. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58866. /***/ }),
  58867. /***/ "./sharedComponents/color3LineComponent.tsx":
  58868. /*!**************************************************!*\
  58869. !*** ./sharedComponents/color3LineComponent.tsx ***!
  58870. \**************************************************/
  58871. /*! exports provided: Color3LineComponent */
  58872. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58873. "use strict";
  58874. __webpack_require__.r(__webpack_exports__);
  58875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  58876. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58877. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58878. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58879. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  58880. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  58881. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  58882. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  58883. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  58884. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  58885. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./sharedComponents/copy.svg");
  58886. var Color3LineComponent = /** @class */ (function (_super) {
  58887. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3LineComponent, _super);
  58888. function Color3LineComponent(props) {
  58889. var _this = _super.call(this, props) || this;
  58890. _this._localChange = false;
  58891. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  58892. return _this;
  58893. }
  58894. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  58895. var currentState = nextProps.target[nextProps.propertyName];
  58896. if (!currentState.equals(nextState.color) || this._localChange) {
  58897. nextState.color = currentState.clone();
  58898. this._localChange = false;
  58899. return true;
  58900. }
  58901. return false;
  58902. };
  58903. Color3LineComponent.prototype.onChange = function (newValue) {
  58904. this._localChange = true;
  58905. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  58906. if (this.props.onPropertyChangedObservable) {
  58907. this.props.onPropertyChangedObservable.notifyObservers({
  58908. object: this.props.target,
  58909. property: this.props.propertyName,
  58910. value: newColor,
  58911. initialValue: this.state.color
  58912. });
  58913. }
  58914. if (this.props.target[this.props.propertyName].getClassName() === "Color4") {
  58915. this.props.target[this.props.propertyName] = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, 1.0);
  58916. }
  58917. else {
  58918. this.props.target[this.props.propertyName] = newColor;
  58919. }
  58920. this.setState({ color: newColor });
  58921. if (this.props.onChange) {
  58922. this.props.onChange();
  58923. }
  58924. };
  58925. Color3LineComponent.prototype.switchExpandState = function () {
  58926. this._localChange = true;
  58927. this.setState({ isExpanded: !this.state.isExpanded });
  58928. };
  58929. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  58930. if (this.props.onChange) {
  58931. this.props.onChange();
  58932. }
  58933. if (!this.props.onPropertyChangedObservable) {
  58934. return;
  58935. }
  58936. this.props.onPropertyChangedObservable.notifyObservers({
  58937. object: this.props.target,
  58938. property: this.props.propertyName,
  58939. value: this.state.color,
  58940. initialValue: previousValue
  58941. });
  58942. };
  58943. Color3LineComponent.prototype.updateStateR = function (value) {
  58944. this._localChange = true;
  58945. var store = this.state.color.clone();
  58946. this.props.target[this.props.propertyName].x = value;
  58947. this.state.color.r = value;
  58948. this.props.target[this.props.propertyName] = this.state.color;
  58949. this.setState({ color: this.state.color });
  58950. this.raiseOnPropertyChanged(store);
  58951. };
  58952. Color3LineComponent.prototype.updateStateG = function (value) {
  58953. this._localChange = true;
  58954. var store = this.state.color.clone();
  58955. this.props.target[this.props.propertyName].g = value;
  58956. this.state.color.g = value;
  58957. this.props.target[this.props.propertyName] = this.state.color;
  58958. this.setState({ color: this.state.color });
  58959. this.raiseOnPropertyChanged(store);
  58960. };
  58961. Color3LineComponent.prototype.updateStateB = function (value) {
  58962. this._localChange = true;
  58963. var store = this.state.color.clone();
  58964. this.props.target[this.props.propertyName].b = value;
  58965. this.state.color.b = value;
  58966. this.props.target[this.props.propertyName] = this.state.color;
  58967. this.setState({ color: this.state.color });
  58968. this.raiseOnPropertyChanged(store);
  58969. };
  58970. Color3LineComponent.prototype.copyToClipboard = function () {
  58971. var element = document.createElement('div');
  58972. element.textContent = this.state.color.toHexString();
  58973. document.body.appendChild(element);
  58974. if (window.getSelection) {
  58975. var range = document.createRange();
  58976. range.selectNode(element);
  58977. window.getSelection().removeAllRanges();
  58978. window.getSelection().addRange(range);
  58979. }
  58980. document.execCommand('copy');
  58981. element.remove();
  58982. };
  58983. Color3LineComponent.prototype.render = function () {
  58984. var _this = this;
  58985. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faPlus"] });
  58986. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  58987. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  58988. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  58989. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  58990. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__["ColorPickerLineComponent"], { value: this.state.color, disableAlpha: true, onColorChanged: function (color) {
  58991. _this.onChange(color);
  58992. } })),
  58993. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  58994. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  58995. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  58996. this.state.isExpanded &&
  58997. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  58998. 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); } }),
  58999. 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); } }),
  59000. 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); } }))));
  59001. };
  59002. return Color3LineComponent;
  59003. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59004. /***/ }),
  59005. /***/ "./sharedComponents/color4LineComponent.tsx":
  59006. /*!**************************************************!*\
  59007. !*** ./sharedComponents/color4LineComponent.tsx ***!
  59008. \**************************************************/
  59009. /*! exports provided: Color4LineComponent */
  59010. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59011. "use strict";
  59012. __webpack_require__.r(__webpack_exports__);
  59013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4LineComponent", function() { return Color4LineComponent; });
  59014. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59015. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59016. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59017. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  59018. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  59019. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  59020. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  59021. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  59022. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  59023. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./sharedComponents/copy.svg");
  59024. var Color4LineComponent = /** @class */ (function (_super) {
  59025. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4LineComponent, _super);
  59026. function Color4LineComponent(props) {
  59027. var _this = _super.call(this, props) || this;
  59028. _this._localChange = false;
  59029. var value = _this.props.target[_this.props.propertyName];
  59030. 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);
  59031. _this.state = { isExpanded: false, color: currentColor };
  59032. return _this;
  59033. }
  59034. Color4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59035. var value = this.props.target[this.props.propertyName];
  59036. var currentColor = value.getClassName() === "Color4" ? value : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](value.r, value.g, value.b, 1.0);
  59037. if (!currentColor.equals(nextState.color) || this._localChange) {
  59038. nextState.color = currentColor.clone();
  59039. this._localChange = false;
  59040. return true;
  59041. }
  59042. return false;
  59043. };
  59044. Color4LineComponent.prototype.onChange = function (newValue) {
  59045. this._localChange = true;
  59046. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromHexString(newValue);
  59047. if (this.props.onPropertyChangedObservable) {
  59048. this.props.onPropertyChangedObservable.notifyObservers({
  59049. object: this.props.target,
  59050. property: this.props.propertyName,
  59051. value: newColor,
  59052. initialValue: this.state.color
  59053. });
  59054. }
  59055. this.props.target[this.props.propertyName] = newColor;
  59056. this.setState({ color: this.props.target[this.props.propertyName] });
  59057. if (this.props.onChange) {
  59058. this.props.onChange();
  59059. }
  59060. };
  59061. Color4LineComponent.prototype.switchExpandState = function () {
  59062. this._localChange = true;
  59063. this.setState({ isExpanded: !this.state.isExpanded });
  59064. };
  59065. Color4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  59066. if (this.props.onChange) {
  59067. this.props.onChange();
  59068. }
  59069. if (!this.props.onPropertyChangedObservable) {
  59070. return;
  59071. }
  59072. this.props.onPropertyChangedObservable.notifyObservers({
  59073. object: this.props.target,
  59074. property: this.props.propertyName,
  59075. value: this.state.color,
  59076. initialValue: previousValue
  59077. });
  59078. };
  59079. Color4LineComponent.prototype.updateStateR = function (value) {
  59080. this._localChange = true;
  59081. var store = this.state.color.clone();
  59082. this.props.target[this.props.propertyName].x = value;
  59083. this.state.color.r = value;
  59084. this.props.target[this.props.propertyName] = this.state.color;
  59085. this.setState({ color: this.state.color });
  59086. this.raiseOnPropertyChanged(store);
  59087. };
  59088. Color4LineComponent.prototype.updateStateG = function (value) {
  59089. this._localChange = true;
  59090. var store = this.state.color.clone();
  59091. this.props.target[this.props.propertyName].g = value;
  59092. this.state.color.g = value;
  59093. this.props.target[this.props.propertyName] = this.state.color;
  59094. this.setState({ color: this.state.color });
  59095. this.raiseOnPropertyChanged(store);
  59096. };
  59097. Color4LineComponent.prototype.updateStateB = function (value) {
  59098. this._localChange = true;
  59099. var store = this.state.color.clone();
  59100. this.props.target[this.props.propertyName].b = value;
  59101. this.state.color.b = value;
  59102. this.props.target[this.props.propertyName] = this.state.color;
  59103. this.setState({ color: this.state.color });
  59104. this.raiseOnPropertyChanged(store);
  59105. };
  59106. Color4LineComponent.prototype.updateStateA = function (value) {
  59107. this._localChange = true;
  59108. var store = this.state.color.clone();
  59109. this.props.target[this.props.propertyName].a = value;
  59110. this.state.color.a = value;
  59111. this.props.target[this.props.propertyName] = this.state.color;
  59112. this.setState({ color: this.state.color });
  59113. this.raiseOnPropertyChanged(store);
  59114. };
  59115. Color4LineComponent.prototype.copyToClipboard = function () {
  59116. var element = document.createElement('div');
  59117. element.textContent = this.state.color.toHexString();
  59118. document.body.appendChild(element);
  59119. if (window.getSelection) {
  59120. var range = document.createRange();
  59121. range.selectNode(element);
  59122. window.getSelection().removeAllRanges();
  59123. window.getSelection().addRange(range);
  59124. }
  59125. document.execCommand('copy');
  59126. element.remove();
  59127. };
  59128. Color4LineComponent.prototype.render = function () {
  59129. var _this = this;
  59130. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faPlus"] });
  59131. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  59132. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  59133. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59134. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  59135. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__["ColorPickerLineComponent"], { value: this.state.color, onColorChanged: function (color) {
  59136. _this.onChange(color);
  59137. } })),
  59138. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  59139. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  59140. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  59141. this.state.isExpanded &&
  59142. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59143. 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); } }),
  59144. 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); } }),
  59145. 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); } }),
  59146. 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); } }))));
  59147. };
  59148. return Color4LineComponent;
  59149. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59150. /***/ }),
  59151. /***/ "./sharedComponents/colorPickerComponent.tsx":
  59152. /*!***************************************************!*\
  59153. !*** ./sharedComponents/colorPickerComponent.tsx ***!
  59154. \***************************************************/
  59155. /*! exports provided: ColorPickerLineComponent */
  59156. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59157. "use strict";
  59158. __webpack_require__.r(__webpack_exports__);
  59159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPickerLineComponent", function() { return ColorPickerLineComponent; });
  59160. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59161. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59162. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59163. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  59164. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  59165. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-color */ "../../node_modules/react-color/lib/index.js");
  59166. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_color__WEBPACK_IMPORTED_MODULE_3__);
  59167. var ColorPickerLineComponent = /** @class */ (function (_super) {
  59168. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPickerLineComponent, _super);
  59169. function ColorPickerLineComponent(props) {
  59170. var _this = _super.call(this, props) || this;
  59171. _this.state = { pickerEnabled: false, color: {
  59172. r: _this.props.value.r * 255,
  59173. g: _this.props.value.g * 255,
  59174. b: _this.props.value.b * 255,
  59175. a: _this.props.value instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"] ? _this.props.value.a * 100 : 100,
  59176. }, hex: _this.props.value.toHexString() };
  59177. _this._floatRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  59178. _this._floatHostRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  59179. return _this;
  59180. }
  59181. ColorPickerLineComponent.prototype.syncPositions = function () {
  59182. var div = this._floatRef.current;
  59183. var host = this._floatHostRef.current;
  59184. if (!div || !host) {
  59185. return;
  59186. }
  59187. var top = host.getBoundingClientRect().top;
  59188. var height = div.getBoundingClientRect().height;
  59189. if (top + height + 10 > window.innerHeight) {
  59190. top = window.innerHeight - height - 10;
  59191. }
  59192. div.style.top = top + "px";
  59193. div.style.left = host.getBoundingClientRect().left - div.getBoundingClientRect().width + "px";
  59194. };
  59195. ColorPickerLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59196. return nextProps.value.toHexString() !== this.props.value.toHexString()
  59197. || nextProps.disableAlpha !== this.props.disableAlpha
  59198. || nextState.hex !== this.state.hex
  59199. || nextState.pickerEnabled !== this.state.pickerEnabled;
  59200. };
  59201. ColorPickerLineComponent.prototype.componentDidUpdate = function () {
  59202. this.syncPositions();
  59203. };
  59204. ColorPickerLineComponent.prototype.componentDidMount = function () {
  59205. this.syncPositions();
  59206. };
  59207. ColorPickerLineComponent.prototype.render = function () {
  59208. var _this = this;
  59209. var color = this.state.color;
  59210. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker" },
  59211. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-rect", ref: this._floatHostRef, style: { background: this.state.hex }, onClick: function () { return _this.setState({ pickerEnabled: true }); } }),
  59212. this.state.pickerEnabled &&
  59213. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  59214. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-cover", onClick: function () { return _this.setState({ pickerEnabled: false }); } }),
  59215. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-float", ref: this._floatRef },
  59216. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_color__WEBPACK_IMPORTED_MODULE_3__["SketchPicker"], { color: color, disableAlpha: this.props.disableAlpha, onChange: function (color) {
  59217. var hex;
  59218. if (_this.props.disableAlpha) {
  59219. var newColor3 = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromInts(color.rgb.r, color.rgb.g, color.rgb.b);
  59220. hex = newColor3.toHexString();
  59221. }
  59222. else {
  59223. 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));
  59224. hex = newColor4.toHexString();
  59225. }
  59226. _this.setState({ hex: hex, color: color.rgb });
  59227. _this.props.onColorChanged(hex);
  59228. } })))));
  59229. };
  59230. return ColorPickerLineComponent;
  59231. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59232. /***/ }),
  59233. /***/ "./sharedComponents/copy.svg":
  59234. /*!***********************************!*\
  59235. !*** ./sharedComponents/copy.svg ***!
  59236. \***********************************/
  59237. /*! no static exports found */
  59238. /***/ (function(module, exports) {
  59239. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Ecopy%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M24,14.89H22.76l-3-3H12.43V26.59h4.26v3h11.5V19Zm.3,1.71,2.14,2.13H24.34Zm-10.91,9V12.93h5.93l2,2H16.69v10.7Zm4.26,3V15.89h5.65v3.84h3.85v8.83Z'/%3E%3C/g%3E%3C/svg%3E"
  59240. /***/ }),
  59241. /***/ "./sharedComponents/draggableLineComponent.tsx":
  59242. /*!*****************************************************!*\
  59243. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  59244. \*****************************************************/
  59245. /*! exports provided: DraggableLineComponent */
  59246. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59247. "use strict";
  59248. __webpack_require__.r(__webpack_exports__);
  59249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  59250. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59251. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59252. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59253. var DraggableLineComponent = /** @class */ (function (_super) {
  59254. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DraggableLineComponent, _super);
  59255. function DraggableLineComponent(props) {
  59256. return _super.call(this, props) || this;
  59257. }
  59258. DraggableLineComponent.prototype.render = function () {
  59259. var _this = this;
  59260. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", title: this.props.tooltip, draggable: true, onDragStart: function (event) {
  59261. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  59262. } }, this.props.data.replace("Block", "")));
  59263. };
  59264. return DraggableLineComponent;
  59265. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59266. /***/ }),
  59267. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  59268. /*!******************************************************!*\
  59269. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  59270. \******************************************************/
  59271. /*! exports provided: FileButtonLineComponent */
  59272. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59273. "use strict";
  59274. __webpack_require__.r(__webpack_exports__);
  59275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  59276. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59277. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59278. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59279. var FileButtonLineComponent = /** @class */ (function (_super) {
  59280. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileButtonLineComponent, _super);
  59281. function FileButtonLineComponent(props) {
  59282. var _this = _super.call(this, props) || this;
  59283. _this.uploadRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  59284. return _this;
  59285. }
  59286. FileButtonLineComponent.prototype.onChange = function (evt) {
  59287. var files = evt.target.files;
  59288. if (files && files.length) {
  59289. this.props.onClick(files[0]);
  59290. }
  59291. evt.target.value = "";
  59292. };
  59293. FileButtonLineComponent.prototype.render = function () {
  59294. var _this = this;
  59295. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  59296. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  59297. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.uploadRef, id: "file-upload", type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); } })));
  59298. };
  59299. return FileButtonLineComponent;
  59300. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59301. /***/ }),
  59302. /***/ "./sharedComponents/floatLineComponent.tsx":
  59303. /*!*************************************************!*\
  59304. !*** ./sharedComponents/floatLineComponent.tsx ***!
  59305. \*************************************************/
  59306. /*! exports provided: FloatLineComponent */
  59307. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59308. "use strict";
  59309. __webpack_require__.r(__webpack_exports__);
  59310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  59311. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59312. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59313. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59314. var FloatLineComponent = /** @class */ (function (_super) {
  59315. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatLineComponent, _super);
  59316. function FloatLineComponent(props) {
  59317. var _this = _super.call(this, props) || this;
  59318. _this._localChange = false;
  59319. var currentValue = _this.props.target[_this.props.propertyName];
  59320. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 2)) : "0" };
  59321. _this._store = currentValue;
  59322. return _this;
  59323. }
  59324. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59325. if (this._localChange) {
  59326. this._localChange = false;
  59327. return true;
  59328. }
  59329. var newValue = nextProps.target[nextProps.propertyName];
  59330. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 2) : "0";
  59331. if (newValueString !== nextState.value) {
  59332. nextState.value = newValueString;
  59333. return true;
  59334. }
  59335. return false;
  59336. };
  59337. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  59338. if (this.props.onChange) {
  59339. this.props.onChange(newValue);
  59340. }
  59341. if (!this.props.onPropertyChangedObservable) {
  59342. return;
  59343. }
  59344. this.props.onPropertyChangedObservable.notifyObservers({
  59345. object: this.props.target,
  59346. property: this.props.propertyName,
  59347. value: newValue,
  59348. initialValue: previousValue
  59349. });
  59350. };
  59351. FloatLineComponent.prototype.updateValue = function (valueString) {
  59352. if (/[^0-9\.\-]/g.test(valueString)) {
  59353. return;
  59354. }
  59355. valueString = valueString.replace(/(.+\...).+/, "$1");
  59356. var valueAsNumber;
  59357. if (this.props.isInteger) {
  59358. valueAsNumber = parseInt(valueString);
  59359. }
  59360. else {
  59361. valueAsNumber = parseFloat(valueString);
  59362. }
  59363. this._localChange = true;
  59364. this.setState({ value: valueString });
  59365. if (isNaN(valueAsNumber)) {
  59366. return;
  59367. }
  59368. this.props.target[this.props.propertyName] = valueAsNumber;
  59369. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  59370. this._store = valueAsNumber;
  59371. };
  59372. FloatLineComponent.prototype.render = function () {
  59373. var _this = this;
  59374. 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" },
  59375. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59376. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  59377. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step || "0.01", className: "numeric-input", onBlur: function (evt) {
  59378. _this.props.globalState.blockKeyboardEvents = false;
  59379. }, onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } })))));
  59380. };
  59381. return FloatLineComponent;
  59382. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59383. /***/ }),
  59384. /***/ "./sharedComponents/lineContainerComponent.tsx":
  59385. /*!*****************************************************!*\
  59386. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  59387. \*****************************************************/
  59388. /*! exports provided: LineContainerComponent */
  59389. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59390. "use strict";
  59391. __webpack_require__.r(__webpack_exports__);
  59392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  59393. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59394. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59395. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59396. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  59397. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  59398. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  59399. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__);
  59400. var LineContainerComponent = /** @class */ (function (_super) {
  59401. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineContainerComponent, _super);
  59402. function LineContainerComponent(props) {
  59403. var _this = _super.call(this, props) || this;
  59404. var initialState = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  59405. _this.state = { isExpanded: initialState };
  59406. return _this;
  59407. }
  59408. LineContainerComponent.prototype.switchExpandedState = function () {
  59409. var newState = !this.state.isExpanded;
  59410. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].WriteBoolean(this.props.title, newState);
  59411. this.setState({ isExpanded: newState });
  59412. };
  59413. LineContainerComponent.prototype.renderHeader = function () {
  59414. var _this = this;
  59415. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  59416. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  59417. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  59418. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  59419. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faChevronDown"] }))));
  59420. };
  59421. LineContainerComponent.prototype.render = function () {
  59422. if (!this.state.isExpanded) {
  59423. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  59424. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  59425. }
  59426. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  59427. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  59428. this.renderHeader(),
  59429. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  59430. };
  59431. return LineContainerComponent;
  59432. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59433. /***/ }),
  59434. /***/ "./sharedComponents/matrixLineComponent.tsx":
  59435. /*!**************************************************!*\
  59436. !*** ./sharedComponents/matrixLineComponent.tsx ***!
  59437. \**************************************************/
  59438. /*! exports provided: MatrixLineComponent */
  59439. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59440. "use strict";
  59441. __webpack_require__.r(__webpack_exports__);
  59442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixLineComponent", function() { return MatrixLineComponent; });
  59443. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59444. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59445. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59446. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.vector */ "babylonjs/Misc/dataStorage");
  59447. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__);
  59448. /* harmony import */ var _vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  59449. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  59450. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  59451. var MatrixLineComponent = /** @class */ (function (_super) {
  59452. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixLineComponent, _super);
  59453. function MatrixLineComponent(props) {
  59454. var _this = _super.call(this, props) || this;
  59455. _this._localChange = false;
  59456. var matrix = _this.props.target[_this.props.propertyName].clone();
  59457. var angle = 0;
  59458. if (_this.props.mode) {
  59459. var quat = new babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Quaternion"]();
  59460. matrix.decompose(undefined, quat);
  59461. var euler = quat.toEulerAngles();
  59462. switch (_this.props.mode) {
  59463. case 1:
  59464. angle = euler.x;
  59465. break;
  59466. case 2:
  59467. angle = euler.y;
  59468. break;
  59469. case 3:
  59470. angle = euler.z;
  59471. break;
  59472. }
  59473. }
  59474. _this.state = { value: matrix, mode: _this.props.mode || 0, angle: angle };
  59475. return _this;
  59476. }
  59477. MatrixLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59478. var nextPropsValue = nextProps.target[nextProps.propertyName];
  59479. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  59480. nextState.value = nextPropsValue.clone();
  59481. this._localChange = false;
  59482. return true;
  59483. }
  59484. return nextState.mode !== this.state.mode || nextState.angle !== this.state.angle;
  59485. };
  59486. MatrixLineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  59487. if (this.props.onChange) {
  59488. this.props.onChange(this.state.value);
  59489. }
  59490. if (!this.props.onPropertyChangedObservable) {
  59491. return;
  59492. }
  59493. this.props.onPropertyChangedObservable.notifyObservers({
  59494. object: this.props.target,
  59495. property: this.props.propertyName,
  59496. value: this.state.value,
  59497. initialValue: previousValue
  59498. });
  59499. };
  59500. MatrixLineComponent.prototype.updateMatrix = function () {
  59501. var store = this.props.target[this.props.propertyName].clone();
  59502. this.props.target[this.props.propertyName] = this.state.value;
  59503. this.setState({ value: store });
  59504. this.raiseOnPropertyChanged(store);
  59505. };
  59506. MatrixLineComponent.prototype.updateRow = function (value, row) {
  59507. this._localChange = true;
  59508. this.state.value.setRow(row, value);
  59509. this.updateMatrix();
  59510. };
  59511. MatrixLineComponent.prototype.updateBasedOnMode = function (value) {
  59512. switch (this.state.mode) {
  59513. case 1: {
  59514. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationXToRef(this.state.angle, this.state.value);
  59515. break;
  59516. }
  59517. case 2: {
  59518. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationYToRef(this.state.angle, this.state.value);
  59519. break;
  59520. }
  59521. case 3: {
  59522. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationZToRef(this.state.angle, this.state.value);
  59523. break;
  59524. }
  59525. }
  59526. this.updateMatrix();
  59527. this.setState({ angle: value });
  59528. };
  59529. MatrixLineComponent.prototype.render = function () {
  59530. var _this = this;
  59531. var modeOptions = [
  59532. { label: "User-defined", value: 0 },
  59533. { label: "Rotation over X axis", value: 1 },
  59534. { label: "Rotation over Y axis", value: 2 },
  59535. { label: "Rotation over Z axis", value: 3 },
  59536. ];
  59537. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  59538. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  59539. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label)),
  59540. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59541. 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 () {
  59542. return _this.state.mode;
  59543. }, onSelect: function (value) {
  59544. _this.props.target[_this.props.propertyName] = babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].Identity();
  59545. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].IdentityToRef(_this.state.value);
  59546. _this.setState({ mode: value, angle: 0 });
  59547. _this.updateMatrix();
  59548. if (_this.props.onModeChange) {
  59549. _this.props.onModeChange(value);
  59550. }
  59551. } })),
  59552. this.state.mode === 0 &&
  59553. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59554. 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); } }),
  59555. 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); } }),
  59556. 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); } }),
  59557. 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); } })),
  59558. this.state.mode !== 0 &&
  59559. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59560. 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); } }))));
  59561. };
  59562. return MatrixLineComponent;
  59563. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59564. /***/ }),
  59565. /***/ "./sharedComponents/messageDialog.tsx":
  59566. /*!********************************************!*\
  59567. !*** ./sharedComponents/messageDialog.tsx ***!
  59568. \********************************************/
  59569. /*! exports provided: MessageDialogComponent */
  59570. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59571. "use strict";
  59572. __webpack_require__.r(__webpack_exports__);
  59573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  59574. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59575. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59576. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59577. var MessageDialogComponent = /** @class */ (function (_super) {
  59578. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageDialogComponent, _super);
  59579. function MessageDialogComponent(props) {
  59580. var _this = _super.call(this, props) || this;
  59581. _this.state = { message: "", isError: false };
  59582. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  59583. _this.setState({ message: message, isError: true });
  59584. });
  59585. return _this;
  59586. }
  59587. MessageDialogComponent.prototype.render = function () {
  59588. var _this = this;
  59589. if (!this.state.message) {
  59590. return null;
  59591. }
  59592. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  59593. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  59594. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  59595. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  59596. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  59597. };
  59598. return MessageDialogComponent;
  59599. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59600. /***/ }),
  59601. /***/ "./sharedComponents/numericInputComponent.tsx":
  59602. /*!****************************************************!*\
  59603. !*** ./sharedComponents/numericInputComponent.tsx ***!
  59604. \****************************************************/
  59605. /*! exports provided: NumericInputComponent */
  59606. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59607. "use strict";
  59608. __webpack_require__.r(__webpack_exports__);
  59609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  59610. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59611. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59612. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59613. var NumericInputComponent = /** @class */ (function (_super) {
  59614. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NumericInputComponent, _super);
  59615. function NumericInputComponent(props) {
  59616. var _this = _super.call(this, props) || this;
  59617. _this._localChange = false;
  59618. _this.state = { value: _this.props.value.toFixed(3) };
  59619. return _this;
  59620. }
  59621. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59622. if (this._localChange) {
  59623. this._localChange = false;
  59624. return true;
  59625. }
  59626. if (nextProps.value.toString() !== nextState.value) {
  59627. nextState.value = nextProps.value.toFixed(3);
  59628. return true;
  59629. }
  59630. return false;
  59631. };
  59632. NumericInputComponent.prototype.updateValue = function (evt) {
  59633. var value = evt.target.value;
  59634. if (/[^0-9\.\-]/g.test(value)) {
  59635. return;
  59636. }
  59637. var valueAsNumber = parseFloat(value);
  59638. this._localChange = true;
  59639. this.setState({ value: value });
  59640. if (isNaN(valueAsNumber)) {
  59641. return;
  59642. }
  59643. this.props.onChange(valueAsNumber);
  59644. };
  59645. NumericInputComponent.prototype.render = function () {
  59646. var _this = this;
  59647. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  59648. this.props.label &&
  59649. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  59650. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onBlur: function (evt) {
  59651. _this.props.globalState.blockKeyboardEvents = false;
  59652. }, step: this.props.step, className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt); } })));
  59653. };
  59654. NumericInputComponent.defaultProps = {
  59655. step: 1,
  59656. };
  59657. return NumericInputComponent;
  59658. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59659. /***/ }),
  59660. /***/ "./sharedComponents/optionsLineComponent.tsx":
  59661. /*!***************************************************!*\
  59662. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  59663. \***************************************************/
  59664. /*! exports provided: OptionsLineComponent */
  59665. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59666. "use strict";
  59667. __webpack_require__.r(__webpack_exports__);
  59668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  59669. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59670. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59671. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59672. var ListLineOption = /** @class */ (function () {
  59673. function ListLineOption() {
  59674. }
  59675. return ListLineOption;
  59676. }());
  59677. var OptionsLineComponent = /** @class */ (function (_super) {
  59678. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OptionsLineComponent, _super);
  59679. function OptionsLineComponent(props) {
  59680. var _this = _super.call(this, props) || this;
  59681. _this._localChange = false;
  59682. _this.state = { value: _this._getValue(props) };
  59683. return _this;
  59684. }
  59685. OptionsLineComponent.prototype._getValue = function (props) {
  59686. if (props.getSelection) {
  59687. return props.getSelection(props.target);
  59688. }
  59689. return (props.target && props.propertyName) ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  59690. };
  59691. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59692. if (this._localChange) {
  59693. this._localChange = false;
  59694. return true;
  59695. }
  59696. var newValue = this._getValue(nextProps);
  59697. if (newValue != null && newValue !== nextState.value) {
  59698. nextState.value = newValue;
  59699. return true;
  59700. }
  59701. return false;
  59702. };
  59703. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  59704. if (!this.props.onPropertyChangedObservable) {
  59705. return;
  59706. }
  59707. this.props.onPropertyChangedObservable.notifyObservers({
  59708. object: this.props.target,
  59709. property: this.props.propertyName,
  59710. value: newValue,
  59711. initialValue: previousValue
  59712. });
  59713. };
  59714. OptionsLineComponent.prototype.updateValue = function (valueString) {
  59715. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  59716. this._localChange = true;
  59717. var store = this.state.value;
  59718. if (!this.props.noDirectUpdate) {
  59719. this.props.target[this.props.propertyName] = value;
  59720. }
  59721. this.setState({ value: value });
  59722. this.raiseOnPropertyChanged(value, store);
  59723. if (this.props.onSelect) {
  59724. this.props.onSelect(value);
  59725. }
  59726. };
  59727. OptionsLineComponent.prototype.render = function () {
  59728. var _this = this;
  59729. var _a;
  59730. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  59731. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59732. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" + (this.props.className ? " " + this.props.className : "") },
  59733. 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) {
  59734. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  59735. })))));
  59736. };
  59737. return OptionsLineComponent;
  59738. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59739. /***/ }),
  59740. /***/ "./sharedComponents/popup.ts":
  59741. /*!***********************************!*\
  59742. !*** ./sharedComponents/popup.ts ***!
  59743. \***********************************/
  59744. /*! exports provided: Popup */
  59745. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59746. "use strict";
  59747. __webpack_require__.r(__webpack_exports__);
  59748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  59749. var Popup = /** @class */ (function () {
  59750. function Popup() {
  59751. }
  59752. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  59753. var _this = this;
  59754. if (width === void 0) { width = 300; }
  59755. if (height === void 0) { height = 800; }
  59756. var windowCreationOptionsList = {
  59757. width: width,
  59758. height: height,
  59759. top: (window.innerHeight - width) / 2 + window.screenY,
  59760. left: (window.innerWidth - height) / 2 + window.screenX
  59761. };
  59762. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  59763. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  59764. .join(',');
  59765. var popupWindow = window.open("", title, windowCreationOptions);
  59766. if (!popupWindow) {
  59767. return null;
  59768. }
  59769. var parentDocument = popupWindow.document;
  59770. // Font
  59771. var newLinkEl = parentDocument.createElement('link');
  59772. newLinkEl.rel = 'stylesheet';
  59773. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  59774. parentDocument.head.appendChild(newLinkEl);
  59775. parentDocument.title = title;
  59776. parentDocument.body.style.width = "100%";
  59777. parentDocument.body.style.height = "100%";
  59778. parentDocument.body.style.margin = "0";
  59779. parentDocument.body.style.padding = "0";
  59780. var parentControl = parentDocument.createElement("div");
  59781. parentControl.style.width = "100%";
  59782. parentControl.style.height = "100%";
  59783. parentControl.style.margin = "0";
  59784. parentControl.style.padding = "0";
  59785. popupWindow.document.body.appendChild(parentControl);
  59786. this._CopyStyles(window.document, parentDocument);
  59787. setTimeout(function () {
  59788. _this._CopyStyles(window.document, parentDocument);
  59789. }, 0);
  59790. this[windowVariableName] = popupWindow;
  59791. return parentControl;
  59792. };
  59793. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  59794. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  59795. var styleSheet = sourceDoc.styleSheets[index];
  59796. try {
  59797. if (styleSheet.cssRules) { // for <style> elements
  59798. var newStyleEl = sourceDoc.createElement('style');
  59799. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  59800. var cssRule = _a[_i];
  59801. // write the text of each rule into the body of the style element
  59802. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  59803. }
  59804. targetDoc.head.appendChild(newStyleEl);
  59805. }
  59806. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  59807. var newLinkEl = sourceDoc.createElement('link');
  59808. newLinkEl.rel = 'stylesheet';
  59809. newLinkEl.href = styleSheet.href;
  59810. targetDoc.head.appendChild(newLinkEl);
  59811. }
  59812. }
  59813. catch (e) {
  59814. console.log(e);
  59815. }
  59816. }
  59817. };
  59818. return Popup;
  59819. }());
  59820. /***/ }),
  59821. /***/ "./sharedComponents/sliderLineComponent.tsx":
  59822. /*!**************************************************!*\
  59823. !*** ./sharedComponents/sliderLineComponent.tsx ***!
  59824. \**************************************************/
  59825. /*! exports provided: SliderLineComponent */
  59826. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59827. "use strict";
  59828. __webpack_require__.r(__webpack_exports__);
  59829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  59830. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59831. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59832. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59833. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  59834. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  59835. var SliderLineComponent = /** @class */ (function (_super) {
  59836. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderLineComponent, _super);
  59837. function SliderLineComponent(props) {
  59838. var _this = _super.call(this, props) || this;
  59839. _this._localChange = false;
  59840. if (_this.props.directValue !== undefined) {
  59841. _this.state = {
  59842. value: _this.props.directValue
  59843. };
  59844. }
  59845. else {
  59846. var value = _this.props.target[_this.props.propertyName];
  59847. if (value === undefined) {
  59848. value = _this.props.maximum;
  59849. }
  59850. _this.state = { value: value };
  59851. }
  59852. return _this;
  59853. }
  59854. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59855. if (nextProps.directValue !== undefined) {
  59856. nextState.value = nextProps.directValue;
  59857. return true;
  59858. }
  59859. var currentState = nextProps.target[nextProps.propertyName];
  59860. if (currentState === undefined) {
  59861. currentState = nextProps.maximum;
  59862. }
  59863. if (currentState !== nextState.value || nextProps.minimum !== this.props.minimum || nextProps.maximum !== this.props.maximum || this._localChange) {
  59864. nextState.value = Math.min(Math.max(currentState, nextProps.minimum), nextProps.maximum);
  59865. this._localChange = false;
  59866. return true;
  59867. }
  59868. return false;
  59869. };
  59870. SliderLineComponent.prototype.onChange = function (newValueString) {
  59871. this._localChange = true;
  59872. var newValue = parseFloat(newValueString);
  59873. if (this.props.useEuler) {
  59874. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  59875. }
  59876. if (this.props.target) {
  59877. if (this.props.onPropertyChangedObservable) {
  59878. this.props.onPropertyChangedObservable.notifyObservers({
  59879. object: this.props.target,
  59880. property: this.props.propertyName,
  59881. value: newValue,
  59882. initialValue: this.state.value
  59883. });
  59884. }
  59885. this.props.target[this.props.propertyName] = newValue;
  59886. }
  59887. if (this.props.onChange) {
  59888. this.props.onChange(newValue);
  59889. }
  59890. this.setState({ value: newValue });
  59891. };
  59892. SliderLineComponent.prototype.onInput = function (newValueString) {
  59893. var newValue = parseFloat(newValueString);
  59894. if (this.props.onInput) {
  59895. this.props.onInput(newValue);
  59896. }
  59897. };
  59898. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  59899. if (this.props.useEuler) {
  59900. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  59901. }
  59902. return value;
  59903. };
  59904. SliderLineComponent.prototype.render = function () {
  59905. var _this = this;
  59906. var decimalCount = this.props.decimalCount !== undefined ? this.props.decimalCount : 2;
  59907. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  59908. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59909. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  59910. this.state.value ? this.prepareDataToRead(this.state.value).toFixed(decimalCount) : "0",
  59911. "\u00A0",
  59912. 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); } }))));
  59913. };
  59914. return SliderLineComponent;
  59915. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59916. /***/ }),
  59917. /***/ "./sharedComponents/textInputLineComponent.tsx":
  59918. /*!*****************************************************!*\
  59919. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  59920. \*****************************************************/
  59921. /*! exports provided: TextInputLineComponent */
  59922. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59923. "use strict";
  59924. __webpack_require__.r(__webpack_exports__);
  59925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  59926. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59927. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59928. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59929. var TextInputLineComponent = /** @class */ (function (_super) {
  59930. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextInputLineComponent, _super);
  59931. function TextInputLineComponent(props) {
  59932. var _this = _super.call(this, props) || this;
  59933. _this._localChange = false;
  59934. _this.state = { value: _this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName] || "" };
  59935. return _this;
  59936. }
  59937. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59938. if (this._localChange) {
  59939. this._localChange = false;
  59940. return true;
  59941. }
  59942. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  59943. if (newValue !== nextState.value) {
  59944. nextState.value = newValue || "";
  59945. return true;
  59946. }
  59947. return false;
  59948. };
  59949. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  59950. if (this.props.onChange) {
  59951. this.props.onChange(newValue);
  59952. return;
  59953. }
  59954. if (!this.props.onPropertyChangedObservable) {
  59955. return;
  59956. }
  59957. this.props.onPropertyChangedObservable.notifyObservers({
  59958. object: this.props.target,
  59959. property: this.props.propertyName,
  59960. value: newValue,
  59961. initialValue: previousValue
  59962. });
  59963. };
  59964. TextInputLineComponent.prototype.updateValue = function (value, raisePropertyChanged) {
  59965. this._localChange = true;
  59966. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  59967. this.setState({ value: value });
  59968. if (raisePropertyChanged) {
  59969. this.raiseOnPropertyChanged(value, store);
  59970. }
  59971. if (this.props.propertyName) {
  59972. this.props.target[this.props.propertyName] = value;
  59973. }
  59974. };
  59975. TextInputLineComponent.prototype.render = function () {
  59976. var _this = this;
  59977. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  59978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  59980. 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) {
  59981. if (evt.keyCode !== 13) {
  59982. return;
  59983. }
  59984. _this.updateValue(_this.state.value, true);
  59985. }, onBlur: function (evt) {
  59986. _this.updateValue(evt.target.value, true);
  59987. _this.props.globalState.blockKeyboardEvents = false;
  59988. } }))));
  59989. };
  59990. return TextInputLineComponent;
  59991. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59992. /***/ }),
  59993. /***/ "./sharedComponents/textLineComponent.tsx":
  59994. /*!************************************************!*\
  59995. !*** ./sharedComponents/textLineComponent.tsx ***!
  59996. \************************************************/
  59997. /*! exports provided: TextLineComponent */
  59998. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59999. "use strict";
  60000. __webpack_require__.r(__webpack_exports__);
  60001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  60002. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60003. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60004. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60005. var TextLineComponent = /** @class */ (function (_super) {
  60006. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextLineComponent, _super);
  60007. function TextLineComponent(props) {
  60008. return _super.call(this, props) || this;
  60009. }
  60010. TextLineComponent.prototype.onLink = function () {
  60011. if (!this.props.onLink) {
  60012. return;
  60013. }
  60014. this.props.onLink();
  60015. };
  60016. TextLineComponent.prototype.renderContent = function () {
  60017. var _this = this;
  60018. if (this.props.onLink) {
  60019. 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"));
  60020. }
  60021. 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"));
  60022. };
  60023. TextLineComponent.prototype.render = function () {
  60024. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  60025. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60026. this.renderContent()));
  60027. };
  60028. return TextLineComponent;
  60029. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60030. /***/ }),
  60031. /***/ "./sharedComponents/textureLineComponent.tsx":
  60032. /*!***************************************************!*\
  60033. !*** ./sharedComponents/textureLineComponent.tsx ***!
  60034. \***************************************************/
  60035. /*! exports provided: TextureLineComponent */
  60036. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60037. "use strict";
  60038. __webpack_require__.r(__webpack_exports__);
  60039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  60040. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60041. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60042. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60043. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/dataStorage");
  60044. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  60045. var TextureLineComponent = /** @class */ (function (_super) {
  60046. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLineComponent, _super);
  60047. function TextureLineComponent(props) {
  60048. var _this = _super.call(this, props) || this;
  60049. _this.state = {
  60050. displayRed: true,
  60051. displayGreen: true,
  60052. displayBlue: true,
  60053. displayAlpha: true,
  60054. face: 0
  60055. };
  60056. _this.canvasRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  60057. return _this;
  60058. }
  60059. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60060. return true;
  60061. };
  60062. TextureLineComponent.prototype.componentDidMount = function () {
  60063. this.updatePreview();
  60064. };
  60065. TextureLineComponent.prototype.componentDidUpdate = function () {
  60066. this.updatePreview();
  60067. };
  60068. TextureLineComponent.prototype.updatePreview = function () {
  60069. TextureLineComponent.UpdatePreview(this.canvasRef.current, this.props.texture, this.props.width, this.state, undefined, this.props.globalState);
  60070. };
  60071. TextureLineComponent.UpdatePreview = function (previewCanvas, texture, width, options, onReady, globalState) {
  60072. if (!texture.isReady() && texture._texture) {
  60073. texture._texture.onLoadedObservable.addOnce(function () {
  60074. TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState);
  60075. });
  60076. }
  60077. var scene = texture.getScene();
  60078. var engine = scene.getEngine();
  60079. var size = texture.getSize();
  60080. var ratio = size.width / size.height;
  60081. var height = (width / ratio) | 1;
  60082. var passPostProcess;
  60083. if (!texture.isCube) {
  60084. 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);
  60085. }
  60086. else {
  60087. 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);
  60088. passCubePostProcess.face = options.face;
  60089. passPostProcess = passCubePostProcess;
  60090. }
  60091. if (!passPostProcess.getEffect().isReady()) {
  60092. // Try again later
  60093. passPostProcess.dispose();
  60094. setTimeout(function () { return TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState); }, 250);
  60095. return;
  60096. }
  60097. if (globalState) {
  60098. globalState.blockMutationUpdates = true;
  60099. }
  60100. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  60101. passPostProcess.onApply = function (effect) {
  60102. effect.setTexture("textureSampler", texture);
  60103. };
  60104. var internalTexture = rtt.getInternalTexture();
  60105. if (internalTexture) {
  60106. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  60107. // Read the contents of the framebuffer
  60108. var numberOfChannelsByLine = width * 4;
  60109. var halfHeight = height / 2;
  60110. //Reading datas from WebGL
  60111. var data = engine.readPixels(0, 0, width, height);
  60112. if (!texture.isCube) {
  60113. if (!options.displayRed || !options.displayGreen || !options.displayBlue) {
  60114. for (var i = 0; i < width * height * 4; i += 4) {
  60115. if (!options.displayRed) {
  60116. data[i] = 0;
  60117. }
  60118. if (!options.displayGreen) {
  60119. data[i + 1] = 0;
  60120. }
  60121. if (!options.displayBlue) {
  60122. data[i + 2] = 0;
  60123. }
  60124. if (options.displayAlpha) {
  60125. var alpha = data[i + 2];
  60126. data[i] = alpha;
  60127. data[i + 1] = alpha;
  60128. data[i + 2] = alpha;
  60129. data[i + 2] = 0;
  60130. }
  60131. }
  60132. }
  60133. }
  60134. //To flip image on Y axis.
  60135. if (texture.invertY || texture.isCube) {
  60136. for (var i = 0; i < halfHeight; i++) {
  60137. for (var j = 0; j < numberOfChannelsByLine; j++) {
  60138. var currentCell = j + i * numberOfChannelsByLine;
  60139. var targetLine = height - i - 1;
  60140. var targetCell = j + targetLine * numberOfChannelsByLine;
  60141. var temp = data[currentCell];
  60142. data[currentCell] = data[targetCell];
  60143. data[targetCell] = temp;
  60144. }
  60145. }
  60146. }
  60147. previewCanvas.width = width;
  60148. previewCanvas.height = height;
  60149. var context = previewCanvas.getContext('2d');
  60150. if (context) {
  60151. // Copy the pixels to the preview canvas
  60152. var imageData = context.createImageData(width, height);
  60153. var castData = imageData.data;
  60154. castData.set(data);
  60155. context.putImageData(imageData, 0, 0);
  60156. if (onReady) {
  60157. onReady();
  60158. }
  60159. }
  60160. // Unbind
  60161. engine.unBindFramebuffer(internalTexture);
  60162. }
  60163. rtt.dispose();
  60164. passPostProcess.dispose();
  60165. previewCanvas.style.height = height + "px";
  60166. if (globalState) {
  60167. globalState.blockMutationUpdates = false;
  60168. }
  60169. };
  60170. TextureLineComponent.prototype.render = function () {
  60171. var _this = this;
  60172. var texture = this.props.texture;
  60173. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  60174. !this.props.hideChannelSelect && texture.isCube &&
  60175. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  60176. 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"),
  60177. 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"),
  60178. 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"),
  60179. 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"),
  60180. 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"),
  60181. 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")),
  60182. !this.props.hideChannelSelect && !texture.isCube &&
  60183. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  60184. 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"),
  60185. 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"),
  60186. 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"),
  60187. 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"),
  60188. 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")),
  60189. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: this.canvasRef, className: "preview" })));
  60190. };
  60191. return TextureLineComponent;
  60192. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60193. /***/ }),
  60194. /***/ "./sharedComponents/vector2LineComponent.tsx":
  60195. /*!***************************************************!*\
  60196. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  60197. \***************************************************/
  60198. /*! exports provided: Vector2LineComponent */
  60199. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60200. "use strict";
  60201. __webpack_require__.r(__webpack_exports__);
  60202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  60203. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60204. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60205. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60206. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  60207. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  60208. /* 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");
  60209. var Vector2LineComponent = /** @class */ (function (_super) {
  60210. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2LineComponent, _super);
  60211. function Vector2LineComponent(props) {
  60212. var _this = _super.call(this, props) || this;
  60213. _this._localChange = false;
  60214. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  60215. return _this;
  60216. }
  60217. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60218. var nextPropsValue = nextProps.target[nextProps.propertyName];
  60219. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  60220. nextState.value = nextPropsValue.clone();
  60221. this._localChange = false;
  60222. return true;
  60223. }
  60224. return false;
  60225. };
  60226. Vector2LineComponent.prototype.switchExpandState = function () {
  60227. this._localChange = true;
  60228. this.setState({ isExpanded: !this.state.isExpanded });
  60229. };
  60230. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  60231. if (this.props.onChange) {
  60232. this.props.onChange(this.state.value);
  60233. }
  60234. if (!this.props.onPropertyChangedObservable) {
  60235. return;
  60236. }
  60237. this.props.onPropertyChangedObservable.notifyObservers({
  60238. object: this.props.target,
  60239. property: this.props.propertyName,
  60240. value: this.state.value,
  60241. initialValue: previousValue
  60242. });
  60243. };
  60244. Vector2LineComponent.prototype.updateStateX = function (value) {
  60245. this._localChange = true;
  60246. var store = this.state.value.clone();
  60247. this.props.target[this.props.propertyName].x = value;
  60248. this.state.value.x = value;
  60249. this.setState({ value: this.state.value });
  60250. this.raiseOnPropertyChanged(store);
  60251. };
  60252. Vector2LineComponent.prototype.updateStateY = function (value) {
  60253. this._localChange = true;
  60254. var store = this.state.value.clone();
  60255. this.props.target[this.props.propertyName].y = value;
  60256. this.state.value.y = value;
  60257. this.setState({ value: this.state.value });
  60258. this.raiseOnPropertyChanged(store);
  60259. };
  60260. Vector2LineComponent.prototype.render = function () {
  60261. var _this = this;
  60262. 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"] });
  60263. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  60264. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  60265. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60266. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  60267. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  60268. this.state.isExpanded &&
  60269. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  60270. 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); } }),
  60271. 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); } }))));
  60272. };
  60273. Vector2LineComponent.defaultProps = {
  60274. step: 0.001,
  60275. };
  60276. return Vector2LineComponent;
  60277. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60278. /***/ }),
  60279. /***/ "./sharedComponents/vector3LineComponent.tsx":
  60280. /*!***************************************************!*\
  60281. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  60282. \***************************************************/
  60283. /*! exports provided: Vector3LineComponent */
  60284. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60285. "use strict";
  60286. __webpack_require__.r(__webpack_exports__);
  60287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  60288. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60289. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60290. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60291. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  60292. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  60293. /* 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");
  60294. var Vector3LineComponent = /** @class */ (function (_super) {
  60295. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3LineComponent, _super);
  60296. function Vector3LineComponent(props) {
  60297. var _this = _super.call(this, props) || this;
  60298. _this._localChange = false;
  60299. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  60300. return _this;
  60301. }
  60302. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60303. var nextPropsValue = nextProps.target[nextProps.propertyName];
  60304. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  60305. nextState.value = nextPropsValue.clone();
  60306. this._localChange = false;
  60307. return true;
  60308. }
  60309. return false;
  60310. };
  60311. Vector3LineComponent.prototype.switchExpandState = function () {
  60312. this._localChange = true;
  60313. this.setState({ isExpanded: !this.state.isExpanded });
  60314. };
  60315. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  60316. if (this.props.onChange) {
  60317. this.props.onChange(this.state.value);
  60318. }
  60319. if (!this.props.onPropertyChangedObservable) {
  60320. return;
  60321. }
  60322. this.props.onPropertyChangedObservable.notifyObservers({
  60323. object: this.props.target,
  60324. property: this.props.propertyName,
  60325. value: this.state.value,
  60326. initialValue: previousValue
  60327. });
  60328. };
  60329. Vector3LineComponent.prototype.updateVector3 = function () {
  60330. var store = this.props.target[this.props.propertyName].clone();
  60331. this.props.target[this.props.propertyName] = this.state.value;
  60332. this.setState({ value: store });
  60333. this.raiseOnPropertyChanged(store);
  60334. };
  60335. Vector3LineComponent.prototype.updateStateX = function (value) {
  60336. this._localChange = true;
  60337. this.state.value.x = value;
  60338. this.updateVector3();
  60339. };
  60340. Vector3LineComponent.prototype.updateStateY = function (value) {
  60341. this._localChange = true;
  60342. this.state.value.y = value;
  60343. this.updateVector3();
  60344. };
  60345. Vector3LineComponent.prototype.updateStateZ = function (value) {
  60346. this._localChange = true;
  60347. this.state.value.z = value;
  60348. this.updateVector3();
  60349. };
  60350. Vector3LineComponent.prototype.render = function () {
  60351. var _this = this;
  60352. 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"] });
  60353. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  60354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  60355. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60356. 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)),
  60357. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  60358. this.state.isExpanded &&
  60359. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  60360. 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); } }),
  60361. 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); } }),
  60362. 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); } }))));
  60363. };
  60364. Vector3LineComponent.defaultProps = {
  60365. step: 0.001,
  60366. };
  60367. return Vector3LineComponent;
  60368. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60369. /***/ }),
  60370. /***/ "./sharedComponents/vector4LineComponent.tsx":
  60371. /*!***************************************************!*\
  60372. !*** ./sharedComponents/vector4LineComponent.tsx ***!
  60373. \***************************************************/
  60374. /*! exports provided: Vector4LineComponent */
  60375. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60376. "use strict";
  60377. __webpack_require__.r(__webpack_exports__);
  60378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  60379. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60380. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60381. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60382. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  60383. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  60384. /* 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");
  60385. var Vector4LineComponent = /** @class */ (function (_super) {
  60386. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4LineComponent, _super);
  60387. function Vector4LineComponent(props) {
  60388. var _this = _super.call(this, props) || this;
  60389. _this._localChange = false;
  60390. _this.state = { isExpanded: false, value: (_this.props.value || _this.props.target[_this.props.propertyName]).clone() };
  60391. return _this;
  60392. }
  60393. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60394. var nextPropsValue = nextProps.value || nextProps.target[nextProps.propertyName];
  60395. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  60396. nextState.value = nextPropsValue.clone();
  60397. this._localChange = false;
  60398. return true;
  60399. }
  60400. return false;
  60401. };
  60402. Vector4LineComponent.prototype.switchExpandState = function () {
  60403. this._localChange = true;
  60404. this.setState({ isExpanded: !this.state.isExpanded });
  60405. };
  60406. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  60407. if (this.props.onChange) {
  60408. this.props.onChange(this.state.value);
  60409. }
  60410. if (!this.props.onPropertyChangedObservable || !this.props.propertyName) {
  60411. return;
  60412. }
  60413. this.props.onPropertyChangedObservable.notifyObservers({
  60414. object: this.props.target,
  60415. property: this.props.propertyName,
  60416. value: this.state.value,
  60417. initialValue: previousValue
  60418. });
  60419. };
  60420. Vector4LineComponent.prototype.updateVector4 = function () {
  60421. var store = (this.props.value || this.props.target[this.props.propertyName]).clone();
  60422. if (this.props.value) {
  60423. this.props.value.copyFrom(this.state.value);
  60424. }
  60425. else {
  60426. this.props.target[this.props.propertyName] = this.state.value;
  60427. }
  60428. this.forceUpdate();
  60429. this.raiseOnPropertyChanged(store);
  60430. };
  60431. Vector4LineComponent.prototype.updateStateX = function (value) {
  60432. this._localChange = true;
  60433. this.state.value.x = value;
  60434. this.updateVector4();
  60435. };
  60436. Vector4LineComponent.prototype.updateStateY = function (value) {
  60437. this._localChange = true;
  60438. this.state.value.y = value;
  60439. this.updateVector4();
  60440. };
  60441. Vector4LineComponent.prototype.updateStateZ = function (value) {
  60442. this._localChange = true;
  60443. this.state.value.z = value;
  60444. this.updateVector4();
  60445. };
  60446. Vector4LineComponent.prototype.updateStateW = function (value) {
  60447. this._localChange = true;
  60448. this.state.value.w = value;
  60449. this.updateVector4();
  60450. };
  60451. Vector4LineComponent.prototype.render = function () {
  60452. var _this = this;
  60453. 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"] });
  60454. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  60455. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  60456. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60457. 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)),
  60458. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  60459. this.state.isExpanded &&
  60460. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  60461. 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); } }),
  60462. 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); } }),
  60463. 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); } }),
  60464. 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); } }))));
  60465. };
  60466. Vector4LineComponent.defaultProps = {
  60467. step: 0.001,
  60468. };
  60469. return Vector4LineComponent;
  60470. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60471. /***/ }),
  60472. /***/ "./stringTools.ts":
  60473. /*!************************!*\
  60474. !*** ./stringTools.ts ***!
  60475. \************************/
  60476. /*! exports provided: StringTools */
  60477. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60478. "use strict";
  60479. __webpack_require__.r(__webpack_exports__);
  60480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  60481. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  60482. /* 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__);
  60483. var StringTools = /** @class */ (function () {
  60484. function StringTools() {
  60485. }
  60486. /*
  60487. * Based on FileSaver.js
  60488. * A saveAs() FileSaver implementation.
  60489. *
  60490. * By Eli Grey, http://eligrey.com
  60491. *
  60492. * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
  60493. * source : http://purl.eligrey.com/github/FileSaver.js
  60494. */
  60495. StringTools._SaveAs = function (blob, name, document) {
  60496. var _this = this;
  60497. if ('download' in HTMLAnchorElement.prototype) {
  60498. var URL = window.URL || window.webkitURL;
  60499. var a = document.createElement('a');
  60500. a.download = name;
  60501. a.rel = 'noopener'; // tabnabbing
  60502. a.href = URL.createObjectURL(blob);
  60503. setTimeout(function () { URL.revokeObjectURL(a.href); }, 4E4); // 40s
  60504. setTimeout(function () { _this._Click(a, document); }, 0);
  60505. return;
  60506. }
  60507. // Open a popup immediately do go around popup blocker
  60508. // Mostly only available on user interaction and the fileReader is async so...
  60509. var popup = open('', '_blank');
  60510. if (popup) {
  60511. popup.document.title = popup.document.body.innerText = 'downloading...';
  60512. }
  60513. var force = blob.type === 'application/octet-stream';
  60514. var isSafari = /constructor/i.test(window.HTMLElement) || window.safari;
  60515. var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
  60516. if ((isChromeIOS || (force && isSafari)) && typeof FileReader !== 'undefined') {
  60517. // Safari doesn't allow downloading of blob URLs
  60518. var reader = new FileReader();
  60519. reader.onloadend = function () {
  60520. var url = reader.result;
  60521. url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;');
  60522. if (popup) {
  60523. popup.location.href = url;
  60524. }
  60525. else {
  60526. location = url;
  60527. }
  60528. popup = null;
  60529. };
  60530. reader.readAsDataURL(blob);
  60531. }
  60532. else {
  60533. var URL = window.URL || window.webkitURL;
  60534. var url = URL.createObjectURL(blob);
  60535. if (popup) {
  60536. popup.location.href = url;
  60537. }
  60538. else {
  60539. location.href = url;
  60540. }
  60541. popup = null;
  60542. setTimeout(function () { URL.revokeObjectURL(url); }, 4E4);
  60543. }
  60544. };
  60545. StringTools._Click = function (node, document) {
  60546. try {
  60547. node.dispatchEvent(new MouseEvent('click'));
  60548. }
  60549. catch (e) {
  60550. var evt = document.createEvent('MouseEvents');
  60551. evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
  60552. node.dispatchEvent(evt);
  60553. }
  60554. };
  60555. /**
  60556. * Gets the base math type of node material block connection point.
  60557. * @param type Type to parse.
  60558. */
  60559. StringTools.GetBaseType = function (type) {
  60560. return babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  60561. };
  60562. /**
  60563. * Download a string into a file that will be saved locally by the browser
  60564. * @param content defines the string to download locally as a file
  60565. */
  60566. StringTools.DownloadAsFile = function (document, content, filename) {
  60567. var blob = new Blob([content], {
  60568. type: "application/octet-stream"
  60569. });
  60570. this._SaveAs(blob, filename, document);
  60571. };
  60572. return StringTools;
  60573. }());
  60574. /***/ }),
  60575. /***/ "babylonjs/Misc/dataStorage":
  60576. /*!****************************************************************************************************!*\
  60577. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  60578. \****************************************************************************************************/
  60579. /*! no static exports found */
  60580. /***/ (function(module, exports) {
  60581. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_dataStorage__;
  60582. /***/ })
  60583. /******/ });
  60584. });
  60585. //# sourceMappingURL=babylon.nodeEditor.max.js.map