main.js 860 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172
  1. /******/ (function(modules) { // webpackBootstrap
  2. /******/ // The module cache
  3. /******/ var installedModules = {};
  4. /******/
  5. /******/ // The require function
  6. /******/ function __webpack_require__(moduleId) {
  7. /******/
  8. /******/ // Check if module is in cache
  9. /******/ if(installedModules[moduleId]) {
  10. /******/ return installedModules[moduleId].exports;
  11. /******/ }
  12. /******/ // Create a new module (and put it into the cache)
  13. /******/ var module = installedModules[moduleId] = {
  14. /******/ i: moduleId,
  15. /******/ l: false,
  16. /******/ exports: {}
  17. /******/ };
  18. /******/
  19. /******/ // Execute the module function
  20. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  21. /******/
  22. /******/ // Flag the module as loaded
  23. /******/ module.l = true;
  24. /******/
  25. /******/ // Return the exports of the module
  26. /******/ return module.exports;
  27. /******/ }
  28. /******/
  29. /******/
  30. /******/ // expose the modules object (__webpack_modules__)
  31. /******/ __webpack_require__.m = modules;
  32. /******/
  33. /******/ // expose the module cache
  34. /******/ __webpack_require__.c = installedModules;
  35. /******/
  36. /******/ // define getter function for harmony exports
  37. /******/ __webpack_require__.d = function(exports, name, getter) {
  38. /******/ if(!__webpack_require__.o(exports, name)) {
  39. /******/ Object.defineProperty(exports, name, {
  40. /******/ configurable: false,
  41. /******/ enumerable: true,
  42. /******/ get: getter
  43. /******/ });
  44. /******/ }
  45. /******/ };
  46. /******/
  47. /******/ // getDefaultExport function for compatibility with non-harmony modules
  48. /******/ __webpack_require__.n = function(module) {
  49. /******/ var getter = module && module.__esModule ?
  50. /******/ function getDefault() { return module['default']; } :
  51. /******/ function getModuleExports() { return module; };
  52. /******/ __webpack_require__.d(getter, 'a', getter);
  53. /******/ return getter;
  54. /******/ };
  55. /******/
  56. /******/ // Object.prototype.hasOwnProperty.call
  57. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  58. /******/
  59. /******/ // __webpack_public_path__
  60. /******/ __webpack_require__.p = "";
  61. /******/
  62. /******/ // Load entry module and return exports
  63. /******/ return __webpack_require__(__webpack_require__.s = 85);
  64. /******/ })
  65. /************************************************************************/
  66. /******/ ([
  67. /* 0 */
  68. /***/ (function(module, exports) {
  69. // shim for using process in browser
  70. var process = module.exports = {};
  71. // cached from whatever global is present so that test runners that stub it
  72. // don't break things. But we need to wrap it in a try catch in case it is
  73. // wrapped in strict mode code which doesn't define any globals. It's inside a
  74. // function because try/catches deoptimize in certain engines.
  75. var cachedSetTimeout;
  76. var cachedClearTimeout;
  77. function defaultSetTimout() {
  78. throw new Error('setTimeout has not been defined');
  79. }
  80. function defaultClearTimeout () {
  81. throw new Error('clearTimeout has not been defined');
  82. }
  83. (function () {
  84. try {
  85. if (typeof setTimeout === 'function') {
  86. cachedSetTimeout = setTimeout;
  87. } else {
  88. cachedSetTimeout = defaultSetTimout;
  89. }
  90. } catch (e) {
  91. cachedSetTimeout = defaultSetTimout;
  92. }
  93. try {
  94. if (typeof clearTimeout === 'function') {
  95. cachedClearTimeout = clearTimeout;
  96. } else {
  97. cachedClearTimeout = defaultClearTimeout;
  98. }
  99. } catch (e) {
  100. cachedClearTimeout = defaultClearTimeout;
  101. }
  102. } ())
  103. function runTimeout(fun) {
  104. if (cachedSetTimeout === setTimeout) {
  105. //normal enviroments in sane situations
  106. return setTimeout(fun, 0);
  107. }
  108. // if setTimeout wasn't available but was latter defined
  109. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  110. cachedSetTimeout = setTimeout;
  111. return setTimeout(fun, 0);
  112. }
  113. try {
  114. // when when somebody has screwed with setTimeout but no I.E. maddness
  115. return cachedSetTimeout(fun, 0);
  116. } catch(e){
  117. try {
  118. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  119. return cachedSetTimeout.call(null, fun, 0);
  120. } catch(e){
  121. // 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
  122. return cachedSetTimeout.call(this, fun, 0);
  123. }
  124. }
  125. }
  126. function runClearTimeout(marker) {
  127. if (cachedClearTimeout === clearTimeout) {
  128. //normal enviroments in sane situations
  129. return clearTimeout(marker);
  130. }
  131. // if clearTimeout wasn't available but was latter defined
  132. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  133. cachedClearTimeout = clearTimeout;
  134. return clearTimeout(marker);
  135. }
  136. try {
  137. // when when somebody has screwed with setTimeout but no I.E. maddness
  138. return cachedClearTimeout(marker);
  139. } catch (e){
  140. try {
  141. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  142. return cachedClearTimeout.call(null, marker);
  143. } catch (e){
  144. // 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.
  145. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  146. return cachedClearTimeout.call(this, marker);
  147. }
  148. }
  149. }
  150. var queue = [];
  151. var draining = false;
  152. var currentQueue;
  153. var queueIndex = -1;
  154. function cleanUpNextTick() {
  155. if (!draining || !currentQueue) {
  156. return;
  157. }
  158. draining = false;
  159. if (currentQueue.length) {
  160. queue = currentQueue.concat(queue);
  161. } else {
  162. queueIndex = -1;
  163. }
  164. if (queue.length) {
  165. drainQueue();
  166. }
  167. }
  168. function drainQueue() {
  169. if (draining) {
  170. return;
  171. }
  172. var timeout = runTimeout(cleanUpNextTick);
  173. draining = true;
  174. var len = queue.length;
  175. while(len) {
  176. currentQueue = queue;
  177. queue = [];
  178. while (++queueIndex < len) {
  179. if (currentQueue) {
  180. currentQueue[queueIndex].run();
  181. }
  182. }
  183. queueIndex = -1;
  184. len = queue.length;
  185. }
  186. currentQueue = null;
  187. draining = false;
  188. runClearTimeout(timeout);
  189. }
  190. process.nextTick = function (fun) {
  191. var args = new Array(arguments.length - 1);
  192. if (arguments.length > 1) {
  193. for (var i = 1; i < arguments.length; i++) {
  194. args[i - 1] = arguments[i];
  195. }
  196. }
  197. queue.push(new Item(fun, args));
  198. if (queue.length === 1 && !draining) {
  199. runTimeout(drainQueue);
  200. }
  201. };
  202. // v8 likes predictible objects
  203. function Item(fun, array) {
  204. this.fun = fun;
  205. this.array = array;
  206. }
  207. Item.prototype.run = function () {
  208. this.fun.apply(null, this.array);
  209. };
  210. process.title = 'browser';
  211. process.browser = true;
  212. process.env = {};
  213. process.argv = [];
  214. process.version = ''; // empty string to avoid regexp issues
  215. process.versions = {};
  216. function noop() {}
  217. process.on = noop;
  218. process.addListener = noop;
  219. process.once = noop;
  220. process.off = noop;
  221. process.removeListener = noop;
  222. process.removeAllListeners = noop;
  223. process.emit = noop;
  224. process.prependListener = noop;
  225. process.prependOnceListener = noop;
  226. process.listeners = function (name) { return [] }
  227. process.binding = function (name) {
  228. throw new Error('process.binding is not supported');
  229. };
  230. process.cwd = function () { return '/' };
  231. process.chdir = function (dir) {
  232. throw new Error('process.chdir is not supported');
  233. };
  234. process.umask = function() { return 0; };
  235. /***/ }),
  236. /* 1 */
  237. /***/ (function(module, exports, __webpack_require__) {
  238. "use strict";
  239. /* WEBPACK VAR INJECTION */(function(process) {/**
  240. * Copyright (c) 2013-present, Facebook, Inc.
  241. *
  242. * This source code is licensed under the MIT license found in the
  243. * LICENSE file in the root directory of this source tree.
  244. *
  245. */
  246. /**
  247. * Use invariant() to assert state which your program assumes to be true.
  248. *
  249. * Provide sprintf-style format (only %s is supported) and arguments
  250. * to provide information about what broke and what you were
  251. * expecting.
  252. *
  253. * The invariant message will be stripped in production, but the invariant
  254. * will remain to ensure logic does not differ in production.
  255. */
  256. var validateFormat = function validateFormat(format) {};
  257. if (process.env.NODE_ENV !== 'production') {
  258. validateFormat = function validateFormat(format) {
  259. if (format === undefined) {
  260. throw new Error('invariant requires an error message argument');
  261. }
  262. };
  263. }
  264. function invariant(condition, format, a, b, c, d, e, f) {
  265. validateFormat(format);
  266. if (!condition) {
  267. var error;
  268. if (format === undefined) {
  269. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  270. } else {
  271. var args = [a, b, c, d, e, f];
  272. var argIndex = 0;
  273. error = new Error(format.replace(/%s/g, function () {
  274. return args[argIndex++];
  275. }));
  276. error.name = 'Invariant Violation';
  277. }
  278. error.framesToPop = 1; // we don't care about invariant's own frame
  279. throw error;
  280. }
  281. }
  282. module.exports = invariant;
  283. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  284. /***/ }),
  285. /* 2 */
  286. /***/ (function(module, exports, __webpack_require__) {
  287. "use strict";
  288. /* WEBPACK VAR INJECTION */(function(process) {/**
  289. * Copyright (c) 2014-present, Facebook, Inc.
  290. *
  291. * This source code is licensed under the MIT license found in the
  292. * LICENSE file in the root directory of this source tree.
  293. *
  294. */
  295. var emptyFunction = __webpack_require__(8);
  296. /**
  297. * Similar to invariant but only logs a warning if the condition is not met.
  298. * This can be used to log issues in development environments in critical
  299. * paths. Removing the logging code for production environments will keep the
  300. * same logic and follow the same code paths.
  301. */
  302. var warning = emptyFunction;
  303. if (process.env.NODE_ENV !== 'production') {
  304. var printWarning = function printWarning(format) {
  305. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  306. args[_key - 1] = arguments[_key];
  307. }
  308. var argIndex = 0;
  309. var message = 'Warning: ' + format.replace(/%s/g, function () {
  310. return args[argIndex++];
  311. });
  312. if (typeof console !== 'undefined') {
  313. console.error(message);
  314. }
  315. try {
  316. // --- Welcome to debugging React ---
  317. // This error was thrown as a convenience so that you can use this stack
  318. // to find the callsite that caused this warning to fire.
  319. throw new Error(message);
  320. } catch (x) {}
  321. };
  322. warning = function warning(condition, format) {
  323. if (format === undefined) {
  324. throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
  325. }
  326. if (format.indexOf('Failed Composite propType: ') === 0) {
  327. return; // Ignore CompositeComponent proptype check.
  328. }
  329. if (!condition) {
  330. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  331. args[_key2 - 2] = arguments[_key2];
  332. }
  333. printWarning.apply(undefined, [format].concat(args));
  334. }
  335. };
  336. }
  337. module.exports = warning;
  338. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  339. /***/ }),
  340. /* 3 */
  341. /***/ (function(module, exports, __webpack_require__) {
  342. "use strict";
  343. /**
  344. * Copyright (c) 2013-present, Facebook, Inc.
  345. * All rights reserved.
  346. *
  347. * This source code is licensed under the BSD-style license found in the
  348. * LICENSE file in the root directory of this source tree. An additional grant
  349. * of patent rights can be found in the PATENTS file in the same directory.
  350. *
  351. *
  352. */
  353. /**
  354. * WARNING: DO NOT manually require this module.
  355. * This is a replacement for `invariant(...)` used by the error code system
  356. * and will _only_ be required by the corresponding babel pass.
  357. * It always throws.
  358. */
  359. function reactProdInvariant(code) {
  360. var argCount = arguments.length - 1;
  361. var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
  362. for (var argIdx = 0; argIdx < argCount; argIdx++) {
  363. message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
  364. }
  365. message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
  366. var error = new Error(message);
  367. error.name = 'Invariant Violation';
  368. error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
  369. throw error;
  370. }
  371. module.exports = reactProdInvariant;
  372. /***/ }),
  373. /* 4 */
  374. /***/ (function(module, exports, __webpack_require__) {
  375. "use strict";
  376. /*
  377. object-assign
  378. (c) Sindre Sorhus
  379. @license MIT
  380. */
  381. /* eslint-disable no-unused-vars */
  382. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  383. var hasOwnProperty = Object.prototype.hasOwnProperty;
  384. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  385. function toObject(val) {
  386. if (val === null || val === undefined) {
  387. throw new TypeError('Object.assign cannot be called with null or undefined');
  388. }
  389. return Object(val);
  390. }
  391. function shouldUseNative() {
  392. try {
  393. if (!Object.assign) {
  394. return false;
  395. }
  396. // Detect buggy property enumeration order in older V8 versions.
  397. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  398. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  399. test1[5] = 'de';
  400. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  401. return false;
  402. }
  403. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  404. var test2 = {};
  405. for (var i = 0; i < 10; i++) {
  406. test2['_' + String.fromCharCode(i)] = i;
  407. }
  408. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  409. return test2[n];
  410. });
  411. if (order2.join('') !== '0123456789') {
  412. return false;
  413. }
  414. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  415. var test3 = {};
  416. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  417. test3[letter] = letter;
  418. });
  419. if (Object.keys(Object.assign({}, test3)).join('') !==
  420. 'abcdefghijklmnopqrst') {
  421. return false;
  422. }
  423. return true;
  424. } catch (err) {
  425. // We don't expect any of the above to throw, but better to be safe.
  426. return false;
  427. }
  428. }
  429. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  430. var from;
  431. var to = toObject(target);
  432. var symbols;
  433. for (var s = 1; s < arguments.length; s++) {
  434. from = Object(arguments[s]);
  435. for (var key in from) {
  436. if (hasOwnProperty.call(from, key)) {
  437. to[key] = from[key];
  438. }
  439. }
  440. if (getOwnPropertySymbols) {
  441. symbols = getOwnPropertySymbols(from);
  442. for (var i = 0; i < symbols.length; i++) {
  443. if (propIsEnumerable.call(from, symbols[i])) {
  444. to[symbols[i]] = from[symbols[i]];
  445. }
  446. }
  447. }
  448. }
  449. return to;
  450. };
  451. /***/ }),
  452. /* 5 */
  453. /***/ (function(module, exports, __webpack_require__) {
  454. "use strict";
  455. /* WEBPACK VAR INJECTION */(function(process) {/**
  456. * Copyright 2013-present, Facebook, Inc.
  457. * All rights reserved.
  458. *
  459. * This source code is licensed under the BSD-style license found in the
  460. * LICENSE file in the root directory of this source tree. An additional grant
  461. * of patent rights can be found in the PATENTS file in the same directory.
  462. *
  463. */
  464. var _prodInvariant = __webpack_require__(3);
  465. var DOMProperty = __webpack_require__(13);
  466. var ReactDOMComponentFlags = __webpack_require__(56);
  467. var invariant = __webpack_require__(1);
  468. var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
  469. var Flags = ReactDOMComponentFlags;
  470. var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2);
  471. /**
  472. * Check if a given node should be cached.
  473. */
  474. function shouldPrecacheNode(node, nodeID) {
  475. return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' ';
  476. }
  477. /**
  478. * Drill down (through composites and empty components) until we get a host or
  479. * host text component.
  480. *
  481. * This is pretty polymorphic but unavoidable with the current structure we have
  482. * for `_renderedChildren`.
  483. */
  484. function getRenderedHostOrTextFromComponent(component) {
  485. var rendered;
  486. while (rendered = component._renderedComponent) {
  487. component = rendered;
  488. }
  489. return component;
  490. }
  491. /**
  492. * Populate `_hostNode` on the rendered host/text component with the given
  493. * DOM node. The passed `inst` can be a composite.
  494. */
  495. function precacheNode(inst, node) {
  496. var hostInst = getRenderedHostOrTextFromComponent(inst);
  497. hostInst._hostNode = node;
  498. node[internalInstanceKey] = hostInst;
  499. }
  500. function uncacheNode(inst) {
  501. var node = inst._hostNode;
  502. if (node) {
  503. delete node[internalInstanceKey];
  504. inst._hostNode = null;
  505. }
  506. }
  507. /**
  508. * Populate `_hostNode` on each child of `inst`, assuming that the children
  509. * match up with the DOM (element) children of `node`.
  510. *
  511. * We cache entire levels at once to avoid an n^2 problem where we access the
  512. * children of a node sequentially and have to walk from the start to our target
  513. * node every time.
  514. *
  515. * Since we update `_renderedChildren` and the actual DOM at (slightly)
  516. * different times, we could race here and see a newer `_renderedChildren` than
  517. * the DOM nodes we see. To avoid this, ReactMultiChild calls
  518. * `prepareToManageChildren` before we change `_renderedChildren`, at which
  519. * time the container's child nodes are always cached (until it unmounts).
  520. */
  521. function precacheChildNodes(inst, node) {
  522. if (inst._flags & Flags.hasCachedChildNodes) {
  523. return;
  524. }
  525. var children = inst._renderedChildren;
  526. var childNode = node.firstChild;
  527. outer: for (var name in children) {
  528. if (!children.hasOwnProperty(name)) {
  529. continue;
  530. }
  531. var childInst = children[name];
  532. var childID = getRenderedHostOrTextFromComponent(childInst)._domID;
  533. if (childID === 0) {
  534. // We're currently unmounting this child in ReactMultiChild; skip it.
  535. continue;
  536. }
  537. // We assume the child nodes are in the same order as the child instances.
  538. for (; childNode !== null; childNode = childNode.nextSibling) {
  539. if (shouldPrecacheNode(childNode, childID)) {
  540. precacheNode(childInst, childNode);
  541. continue outer;
  542. }
  543. }
  544. // We reached the end of the DOM children without finding an ID match.
  545. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0;
  546. }
  547. inst._flags |= Flags.hasCachedChildNodes;
  548. }
  549. /**
  550. * Given a DOM node, return the closest ReactDOMComponent or
  551. * ReactDOMTextComponent instance ancestor.
  552. */
  553. function getClosestInstanceFromNode(node) {
  554. if (node[internalInstanceKey]) {
  555. return node[internalInstanceKey];
  556. }
  557. // Walk up the tree until we find an ancestor whose instance we have cached.
  558. var parents = [];
  559. while (!node[internalInstanceKey]) {
  560. parents.push(node);
  561. if (node.parentNode) {
  562. node = node.parentNode;
  563. } else {
  564. // Top of the tree. This node must not be part of a React tree (or is
  565. // unmounted, potentially).
  566. return null;
  567. }
  568. }
  569. var closest;
  570. var inst;
  571. for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {
  572. closest = inst;
  573. if (parents.length) {
  574. precacheChildNodes(inst, node);
  575. }
  576. }
  577. return closest;
  578. }
  579. /**
  580. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  581. * instance, or null if the node was not rendered by this React.
  582. */
  583. function getInstanceFromNode(node) {
  584. var inst = getClosestInstanceFromNode(node);
  585. if (inst != null && inst._hostNode === node) {
  586. return inst;
  587. } else {
  588. return null;
  589. }
  590. }
  591. /**
  592. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  593. * DOM node.
  594. */
  595. function getNodeFromInstance(inst) {
  596. // Without this first invariant, passing a non-DOM-component triggers the next
  597. // invariant for a missing parent, which is super confusing.
  598. !(inst._hostNode !== undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  599. if (inst._hostNode) {
  600. return inst._hostNode;
  601. }
  602. // Walk up the tree until we find an ancestor whose DOM node we have cached.
  603. var parents = [];
  604. while (!inst._hostNode) {
  605. parents.push(inst);
  606. !inst._hostParent ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0;
  607. inst = inst._hostParent;
  608. }
  609. // Now parents contains each ancestor that does *not* have a cached native
  610. // node, and `inst` is the deepest ancestor that does.
  611. for (; parents.length; inst = parents.pop()) {
  612. precacheChildNodes(inst, inst._hostNode);
  613. }
  614. return inst._hostNode;
  615. }
  616. var ReactDOMComponentTree = {
  617. getClosestInstanceFromNode: getClosestInstanceFromNode,
  618. getInstanceFromNode: getInstanceFromNode,
  619. getNodeFromInstance: getNodeFromInstance,
  620. precacheChildNodes: precacheChildNodes,
  621. precacheNode: precacheNode,
  622. uncacheNode: uncacheNode
  623. };
  624. module.exports = ReactDOMComponentTree;
  625. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  626. /***/ }),
  627. /* 6 */
  628. /***/ (function(module, exports, __webpack_require__) {
  629. "use strict";
  630. /**
  631. * Copyright (c) 2013-present, Facebook, Inc.
  632. *
  633. * This source code is licensed under the MIT license found in the
  634. * LICENSE file in the root directory of this source tree.
  635. *
  636. */
  637. var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  638. /**
  639. * Simple, lightweight module assisting with the detection and context of
  640. * Worker. Helps avoid circular dependencies and allows code to reason about
  641. * whether or not they are in a Worker, even if they never include the main
  642. * `ReactWorker` dependency.
  643. */
  644. var ExecutionEnvironment = {
  645. canUseDOM: canUseDOM,
  646. canUseWorkers: typeof Worker !== 'undefined',
  647. canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
  648. canUseViewport: canUseDOM && !!window.screen,
  649. isInWorker: !canUseDOM // For now, this is true - might change in the future.
  650. };
  651. module.exports = ExecutionEnvironment;
  652. /***/ }),
  653. /* 7 */
  654. /***/ (function(module, exports, __webpack_require__) {
  655. "use strict";
  656. /* WEBPACK VAR INJECTION */(function(process) {/**
  657. * Copyright 2016-present, Facebook, Inc.
  658. * All rights reserved.
  659. *
  660. * This source code is licensed under the BSD-style license found in the
  661. * LICENSE file in the root directory of this source tree. An additional grant
  662. * of patent rights can be found in the PATENTS file in the same directory.
  663. *
  664. *
  665. */
  666. var _prodInvariant = __webpack_require__(14);
  667. var ReactCurrentOwner = __webpack_require__(10);
  668. var invariant = __webpack_require__(1);
  669. var warning = __webpack_require__(2);
  670. function isNative(fn) {
  671. // Based on isNative() from Lodash
  672. var funcToString = Function.prototype.toString;
  673. var hasOwnProperty = Object.prototype.hasOwnProperty;
  674. var reIsNative = RegExp('^' + funcToString
  675. // Take an example native function source for comparison
  676. .call(hasOwnProperty)
  677. // Strip regex characters so we can use it for regex
  678. .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
  679. // Remove hasOwnProperty from the template to make it generic
  680. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
  681. try {
  682. var source = funcToString.call(fn);
  683. return reIsNative.test(source);
  684. } catch (err) {
  685. return false;
  686. }
  687. }
  688. var canUseCollections =
  689. // Array.from
  690. typeof Array.from === 'function' &&
  691. // Map
  692. typeof Map === 'function' && isNative(Map) &&
  693. // Map.prototype.keys
  694. Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
  695. // Set
  696. typeof Set === 'function' && isNative(Set) &&
  697. // Set.prototype.keys
  698. Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
  699. var setItem;
  700. var getItem;
  701. var removeItem;
  702. var getItemIDs;
  703. var addRoot;
  704. var removeRoot;
  705. var getRootIDs;
  706. if (canUseCollections) {
  707. var itemMap = new Map();
  708. var rootIDSet = new Set();
  709. setItem = function (id, item) {
  710. itemMap.set(id, item);
  711. };
  712. getItem = function (id) {
  713. return itemMap.get(id);
  714. };
  715. removeItem = function (id) {
  716. itemMap['delete'](id);
  717. };
  718. getItemIDs = function () {
  719. return Array.from(itemMap.keys());
  720. };
  721. addRoot = function (id) {
  722. rootIDSet.add(id);
  723. };
  724. removeRoot = function (id) {
  725. rootIDSet['delete'](id);
  726. };
  727. getRootIDs = function () {
  728. return Array.from(rootIDSet.keys());
  729. };
  730. } else {
  731. var itemByKey = {};
  732. var rootByKey = {};
  733. // Use non-numeric keys to prevent V8 performance issues:
  734. // https://github.com/facebook/react/pull/7232
  735. var getKeyFromID = function (id) {
  736. return '.' + id;
  737. };
  738. var getIDFromKey = function (key) {
  739. return parseInt(key.substr(1), 10);
  740. };
  741. setItem = function (id, item) {
  742. var key = getKeyFromID(id);
  743. itemByKey[key] = item;
  744. };
  745. getItem = function (id) {
  746. var key = getKeyFromID(id);
  747. return itemByKey[key];
  748. };
  749. removeItem = function (id) {
  750. var key = getKeyFromID(id);
  751. delete itemByKey[key];
  752. };
  753. getItemIDs = function () {
  754. return Object.keys(itemByKey).map(getIDFromKey);
  755. };
  756. addRoot = function (id) {
  757. var key = getKeyFromID(id);
  758. rootByKey[key] = true;
  759. };
  760. removeRoot = function (id) {
  761. var key = getKeyFromID(id);
  762. delete rootByKey[key];
  763. };
  764. getRootIDs = function () {
  765. return Object.keys(rootByKey).map(getIDFromKey);
  766. };
  767. }
  768. var unmountedIDs = [];
  769. function purgeDeep(id) {
  770. var item = getItem(id);
  771. if (item) {
  772. var childIDs = item.childIDs;
  773. removeItem(id);
  774. childIDs.forEach(purgeDeep);
  775. }
  776. }
  777. function describeComponentFrame(name, source, ownerName) {
  778. return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
  779. }
  780. function getDisplayName(element) {
  781. if (element == null) {
  782. return '#empty';
  783. } else if (typeof element === 'string' || typeof element === 'number') {
  784. return '#text';
  785. } else if (typeof element.type === 'string') {
  786. return element.type;
  787. } else {
  788. return element.type.displayName || element.type.name || 'Unknown';
  789. }
  790. }
  791. function describeID(id) {
  792. var name = ReactComponentTreeHook.getDisplayName(id);
  793. var element = ReactComponentTreeHook.getElement(id);
  794. var ownerID = ReactComponentTreeHook.getOwnerID(id);
  795. var ownerName;
  796. if (ownerID) {
  797. ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
  798. }
  799. process.env.NODE_ENV !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;
  800. return describeComponentFrame(name, element && element._source, ownerName);
  801. }
  802. var ReactComponentTreeHook = {
  803. onSetChildren: function (id, nextChildIDs) {
  804. var item = getItem(id);
  805. !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
  806. item.childIDs = nextChildIDs;
  807. for (var i = 0; i < nextChildIDs.length; i++) {
  808. var nextChildID = nextChildIDs[i];
  809. var nextChild = getItem(nextChildID);
  810. !nextChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0;
  811. !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0;
  812. !nextChild.isMounted ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0;
  813. if (nextChild.parentID == null) {
  814. nextChild.parentID = id;
  815. // TODO: This shouldn't be necessary but mounting a new root during in
  816. // componentWillMount currently causes not-yet-mounted components to
  817. // be purged from our tree data so their parent id is missing.
  818. }
  819. !(nextChild.parentID === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0;
  820. }
  821. },
  822. onBeforeMountComponent: function (id, element, parentID) {
  823. var item = {
  824. element: element,
  825. parentID: parentID,
  826. text: null,
  827. childIDs: [],
  828. isMounted: false,
  829. updateCount: 0
  830. };
  831. setItem(id, item);
  832. },
  833. onBeforeUpdateComponent: function (id, element) {
  834. var item = getItem(id);
  835. if (!item || !item.isMounted) {
  836. // We may end up here as a result of setState() in componentWillUnmount().
  837. // In this case, ignore the element.
  838. return;
  839. }
  840. item.element = element;
  841. },
  842. onMountComponent: function (id) {
  843. var item = getItem(id);
  844. !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
  845. item.isMounted = true;
  846. var isRoot = item.parentID === 0;
  847. if (isRoot) {
  848. addRoot(id);
  849. }
  850. },
  851. onUpdateComponent: function (id) {
  852. var item = getItem(id);
  853. if (!item || !item.isMounted) {
  854. // We may end up here as a result of setState() in componentWillUnmount().
  855. // In this case, ignore the element.
  856. return;
  857. }
  858. item.updateCount++;
  859. },
  860. onUnmountComponent: function (id) {
  861. var item = getItem(id);
  862. if (item) {
  863. // We need to check if it exists.
  864. // `item` might not exist if it is inside an error boundary, and a sibling
  865. // error boundary child threw while mounting. Then this instance never
  866. // got a chance to mount, but it still gets an unmounting event during
  867. // the error boundary cleanup.
  868. item.isMounted = false;
  869. var isRoot = item.parentID === 0;
  870. if (isRoot) {
  871. removeRoot(id);
  872. }
  873. }
  874. unmountedIDs.push(id);
  875. },
  876. purgeUnmountedComponents: function () {
  877. if (ReactComponentTreeHook._preventPurging) {
  878. // Should only be used for testing.
  879. return;
  880. }
  881. for (var i = 0; i < unmountedIDs.length; i++) {
  882. var id = unmountedIDs[i];
  883. purgeDeep(id);
  884. }
  885. unmountedIDs.length = 0;
  886. },
  887. isMounted: function (id) {
  888. var item = getItem(id);
  889. return item ? item.isMounted : false;
  890. },
  891. getCurrentStackAddendum: function (topElement) {
  892. var info = '';
  893. if (topElement) {
  894. var name = getDisplayName(topElement);
  895. var owner = topElement._owner;
  896. info += describeComponentFrame(name, topElement._source, owner && owner.getName());
  897. }
  898. var currentOwner = ReactCurrentOwner.current;
  899. var id = currentOwner && currentOwner._debugID;
  900. info += ReactComponentTreeHook.getStackAddendumByID(id);
  901. return info;
  902. },
  903. getStackAddendumByID: function (id) {
  904. var info = '';
  905. while (id) {
  906. info += describeID(id);
  907. id = ReactComponentTreeHook.getParentID(id);
  908. }
  909. return info;
  910. },
  911. getChildIDs: function (id) {
  912. var item = getItem(id);
  913. return item ? item.childIDs : [];
  914. },
  915. getDisplayName: function (id) {
  916. var element = ReactComponentTreeHook.getElement(id);
  917. if (!element) {
  918. return null;
  919. }
  920. return getDisplayName(element);
  921. },
  922. getElement: function (id) {
  923. var item = getItem(id);
  924. return item ? item.element : null;
  925. },
  926. getOwnerID: function (id) {
  927. var element = ReactComponentTreeHook.getElement(id);
  928. if (!element || !element._owner) {
  929. return null;
  930. }
  931. return element._owner._debugID;
  932. },
  933. getParentID: function (id) {
  934. var item = getItem(id);
  935. return item ? item.parentID : null;
  936. },
  937. getSource: function (id) {
  938. var item = getItem(id);
  939. var element = item ? item.element : null;
  940. var source = element != null ? element._source : null;
  941. return source;
  942. },
  943. getText: function (id) {
  944. var element = ReactComponentTreeHook.getElement(id);
  945. if (typeof element === 'string') {
  946. return element;
  947. } else if (typeof element === 'number') {
  948. return '' + element;
  949. } else {
  950. return null;
  951. }
  952. },
  953. getUpdateCount: function (id) {
  954. var item = getItem(id);
  955. return item ? item.updateCount : 0;
  956. },
  957. getRootIDs: getRootIDs,
  958. getRegisteredIDs: getItemIDs
  959. };
  960. module.exports = ReactComponentTreeHook;
  961. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  962. /***/ }),
  963. /* 8 */
  964. /***/ (function(module, exports, __webpack_require__) {
  965. "use strict";
  966. /**
  967. * Copyright (c) 2013-present, Facebook, Inc.
  968. *
  969. * This source code is licensed under the MIT license found in the
  970. * LICENSE file in the root directory of this source tree.
  971. *
  972. *
  973. */
  974. function makeEmptyFunction(arg) {
  975. return function () {
  976. return arg;
  977. };
  978. }
  979. /**
  980. * This function accepts and discards inputs; it has no side effects. This is
  981. * primarily useful idiomatically for overridable function endpoints which
  982. * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
  983. */
  984. var emptyFunction = function emptyFunction() {};
  985. emptyFunction.thatReturns = makeEmptyFunction;
  986. emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
  987. emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
  988. emptyFunction.thatReturnsNull = makeEmptyFunction(null);
  989. emptyFunction.thatReturnsThis = function () {
  990. return this;
  991. };
  992. emptyFunction.thatReturnsArgument = function (arg) {
  993. return arg;
  994. };
  995. module.exports = emptyFunction;
  996. /***/ }),
  997. /* 9 */
  998. /***/ (function(module, exports, __webpack_require__) {
  999. "use strict";
  1000. /* WEBPACK VAR INJECTION */(function(process) {/**
  1001. * Copyright 2016-present, Facebook, Inc.
  1002. * All rights reserved.
  1003. *
  1004. * This source code is licensed under the BSD-style license found in the
  1005. * LICENSE file in the root directory of this source tree. An additional grant
  1006. * of patent rights can be found in the PATENTS file in the same directory.
  1007. *
  1008. *
  1009. */
  1010. // Trust the developer to only use ReactInstrumentation with a __DEV__ check
  1011. var debugTool = null;
  1012. if (process.env.NODE_ENV !== 'production') {
  1013. var ReactDebugTool = __webpack_require__(112);
  1014. debugTool = ReactDebugTool;
  1015. }
  1016. module.exports = { debugTool: debugTool };
  1017. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1018. /***/ }),
  1019. /* 10 */
  1020. /***/ (function(module, exports, __webpack_require__) {
  1021. "use strict";
  1022. /**
  1023. * Copyright 2013-present, Facebook, Inc.
  1024. * All rights reserved.
  1025. *
  1026. * This source code is licensed under the BSD-style license found in the
  1027. * LICENSE file in the root directory of this source tree. An additional grant
  1028. * of patent rights can be found in the PATENTS file in the same directory.
  1029. *
  1030. *
  1031. */
  1032. /**
  1033. * Keeps track of the current owner.
  1034. *
  1035. * The current owner is the component who should own any components that are
  1036. * currently being constructed.
  1037. */
  1038. var ReactCurrentOwner = {
  1039. /**
  1040. * @internal
  1041. * @type {ReactComponent}
  1042. */
  1043. current: null
  1044. };
  1045. module.exports = ReactCurrentOwner;
  1046. /***/ }),
  1047. /* 11 */
  1048. /***/ (function(module, exports, __webpack_require__) {
  1049. "use strict";
  1050. /* WEBPACK VAR INJECTION */(function(process) {/**
  1051. * Copyright 2013-present, Facebook, Inc.
  1052. * All rights reserved.
  1053. *
  1054. * This source code is licensed under the BSD-style license found in the
  1055. * LICENSE file in the root directory of this source tree. An additional grant
  1056. * of patent rights can be found in the PATENTS file in the same directory.
  1057. *
  1058. */
  1059. var _prodInvariant = __webpack_require__(3),
  1060. _assign = __webpack_require__(4);
  1061. var CallbackQueue = __webpack_require__(60);
  1062. var PooledClass = __webpack_require__(16);
  1063. var ReactFeatureFlags = __webpack_require__(61);
  1064. var ReactReconciler = __webpack_require__(18);
  1065. var Transaction = __webpack_require__(28);
  1066. var invariant = __webpack_require__(1);
  1067. var dirtyComponents = [];
  1068. var updateBatchNumber = 0;
  1069. var asapCallbackQueue = CallbackQueue.getPooled();
  1070. var asapEnqueued = false;
  1071. var batchingStrategy = null;
  1072. function ensureInjected() {
  1073. !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0;
  1074. }
  1075. var NESTED_UPDATES = {
  1076. initialize: function () {
  1077. this.dirtyComponentsLength = dirtyComponents.length;
  1078. },
  1079. close: function () {
  1080. if (this.dirtyComponentsLength !== dirtyComponents.length) {
  1081. // Additional updates were enqueued by componentDidUpdate handlers or
  1082. // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run
  1083. // these new updates so that if A's componentDidUpdate calls setState on
  1084. // B, B will update before the callback A's updater provided when calling
  1085. // setState.
  1086. dirtyComponents.splice(0, this.dirtyComponentsLength);
  1087. flushBatchedUpdates();
  1088. } else {
  1089. dirtyComponents.length = 0;
  1090. }
  1091. }
  1092. };
  1093. var UPDATE_QUEUEING = {
  1094. initialize: function () {
  1095. this.callbackQueue.reset();
  1096. },
  1097. close: function () {
  1098. this.callbackQueue.notifyAll();
  1099. }
  1100. };
  1101. var TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING];
  1102. function ReactUpdatesFlushTransaction() {
  1103. this.reinitializeTransaction();
  1104. this.dirtyComponentsLength = null;
  1105. this.callbackQueue = CallbackQueue.getPooled();
  1106. this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(
  1107. /* useCreateElement */true);
  1108. }
  1109. _assign(ReactUpdatesFlushTransaction.prototype, Transaction, {
  1110. getTransactionWrappers: function () {
  1111. return TRANSACTION_WRAPPERS;
  1112. },
  1113. destructor: function () {
  1114. this.dirtyComponentsLength = null;
  1115. CallbackQueue.release(this.callbackQueue);
  1116. this.callbackQueue = null;
  1117. ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction);
  1118. this.reconcileTransaction = null;
  1119. },
  1120. perform: function (method, scope, a) {
  1121. // Essentially calls `this.reconcileTransaction.perform(method, scope, a)`
  1122. // with this transaction's wrappers around it.
  1123. return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a);
  1124. }
  1125. });
  1126. PooledClass.addPoolingTo(ReactUpdatesFlushTransaction);
  1127. function batchedUpdates(callback, a, b, c, d, e) {
  1128. ensureInjected();
  1129. return batchingStrategy.batchedUpdates(callback, a, b, c, d, e);
  1130. }
  1131. /**
  1132. * Array comparator for ReactComponents by mount ordering.
  1133. *
  1134. * @param {ReactComponent} c1 first component you're comparing
  1135. * @param {ReactComponent} c2 second component you're comparing
  1136. * @return {number} Return value usable by Array.prototype.sort().
  1137. */
  1138. function mountOrderComparator(c1, c2) {
  1139. return c1._mountOrder - c2._mountOrder;
  1140. }
  1141. function runBatchedUpdates(transaction) {
  1142. var len = transaction.dirtyComponentsLength;
  1143. !(len === dirtyComponents.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0;
  1144. // Since reconciling a component higher in the owner hierarchy usually (not
  1145. // always -- see shouldComponentUpdate()) will reconcile children, reconcile
  1146. // them before their children by sorting the array.
  1147. dirtyComponents.sort(mountOrderComparator);
  1148. // Any updates enqueued while reconciling must be performed after this entire
  1149. // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and
  1150. // C, B could update twice in a single batch if C's render enqueues an update
  1151. // to B (since B would have already updated, we should skip it, and the only
  1152. // way we can know to do so is by checking the batch counter).
  1153. updateBatchNumber++;
  1154. for (var i = 0; i < len; i++) {
  1155. // If a component is unmounted before pending changes apply, it will still
  1156. // be here, but we assume that it has cleared its _pendingCallbacks and
  1157. // that performUpdateIfNecessary is a noop.
  1158. var component = dirtyComponents[i];
  1159. // If performUpdateIfNecessary happens to enqueue any new updates, we
  1160. // shouldn't execute the callbacks until the next render happens, so
  1161. // stash the callbacks first
  1162. var callbacks = component._pendingCallbacks;
  1163. component._pendingCallbacks = null;
  1164. var markerName;
  1165. if (ReactFeatureFlags.logTopLevelRenders) {
  1166. var namedComponent = component;
  1167. // Duck type TopLevelWrapper. This is probably always true.
  1168. if (component._currentElement.type.isReactTopLevelWrapper) {
  1169. namedComponent = component._renderedComponent;
  1170. }
  1171. markerName = 'React update: ' + namedComponent.getName();
  1172. console.time(markerName);
  1173. }
  1174. ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber);
  1175. if (markerName) {
  1176. console.timeEnd(markerName);
  1177. }
  1178. if (callbacks) {
  1179. for (var j = 0; j < callbacks.length; j++) {
  1180. transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance());
  1181. }
  1182. }
  1183. }
  1184. }
  1185. var flushBatchedUpdates = function () {
  1186. // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents
  1187. // array and perform any updates enqueued by mount-ready handlers (i.e.,
  1188. // componentDidUpdate) but we need to check here too in order to catch
  1189. // updates enqueued by setState callbacks and asap calls.
  1190. while (dirtyComponents.length || asapEnqueued) {
  1191. if (dirtyComponents.length) {
  1192. var transaction = ReactUpdatesFlushTransaction.getPooled();
  1193. transaction.perform(runBatchedUpdates, null, transaction);
  1194. ReactUpdatesFlushTransaction.release(transaction);
  1195. }
  1196. if (asapEnqueued) {
  1197. asapEnqueued = false;
  1198. var queue = asapCallbackQueue;
  1199. asapCallbackQueue = CallbackQueue.getPooled();
  1200. queue.notifyAll();
  1201. CallbackQueue.release(queue);
  1202. }
  1203. }
  1204. };
  1205. /**
  1206. * Mark a component as needing a rerender, adding an optional callback to a
  1207. * list of functions which will be executed once the rerender occurs.
  1208. */
  1209. function enqueueUpdate(component) {
  1210. ensureInjected();
  1211. // Various parts of our code (such as ReactCompositeComponent's
  1212. // _renderValidatedComponent) assume that calls to render aren't nested;
  1213. // verify that that's the case. (This is called by each top-level update
  1214. // function, like setState, forceUpdate, etc.; creation and
  1215. // destruction of top-level components is guarded in ReactMount.)
  1216. if (!batchingStrategy.isBatchingUpdates) {
  1217. batchingStrategy.batchedUpdates(enqueueUpdate, component);
  1218. return;
  1219. }
  1220. dirtyComponents.push(component);
  1221. if (component._updateBatchNumber == null) {
  1222. component._updateBatchNumber = updateBatchNumber + 1;
  1223. }
  1224. }
  1225. /**
  1226. * Enqueue a callback to be run at the end of the current batching cycle. Throws
  1227. * if no updates are currently being performed.
  1228. */
  1229. function asap(callback, context) {
  1230. !batchingStrategy.isBatchingUpdates ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;
  1231. asapCallbackQueue.enqueue(callback, context);
  1232. asapEnqueued = true;
  1233. }
  1234. var ReactUpdatesInjection = {
  1235. injectReconcileTransaction: function (ReconcileTransaction) {
  1236. !ReconcileTransaction ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0;
  1237. ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;
  1238. },
  1239. injectBatchingStrategy: function (_batchingStrategy) {
  1240. !_batchingStrategy ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0;
  1241. !(typeof _batchingStrategy.batchedUpdates === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0;
  1242. !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0;
  1243. batchingStrategy = _batchingStrategy;
  1244. }
  1245. };
  1246. var ReactUpdates = {
  1247. /**
  1248. * React references `ReactReconcileTransaction` using this property in order
  1249. * to allow dependency injection.
  1250. *
  1251. * @internal
  1252. */
  1253. ReactReconcileTransaction: null,
  1254. batchedUpdates: batchedUpdates,
  1255. enqueueUpdate: enqueueUpdate,
  1256. flushBatchedUpdates: flushBatchedUpdates,
  1257. injection: ReactUpdatesInjection,
  1258. asap: asap
  1259. };
  1260. module.exports = ReactUpdates;
  1261. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1262. /***/ }),
  1263. /* 12 */
  1264. /***/ (function(module, exports, __webpack_require__) {
  1265. "use strict";
  1266. /* WEBPACK VAR INJECTION */(function(process) {/**
  1267. * Copyright 2013-present, Facebook, Inc.
  1268. * All rights reserved.
  1269. *
  1270. * This source code is licensed under the BSD-style license found in the
  1271. * LICENSE file in the root directory of this source tree. An additional grant
  1272. * of patent rights can be found in the PATENTS file in the same directory.
  1273. *
  1274. */
  1275. var _assign = __webpack_require__(4);
  1276. var PooledClass = __webpack_require__(16);
  1277. var emptyFunction = __webpack_require__(8);
  1278. var warning = __webpack_require__(2);
  1279. var didWarnForAddedNewProperty = false;
  1280. var isProxySupported = typeof Proxy === 'function';
  1281. var shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];
  1282. /**
  1283. * @interface Event
  1284. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  1285. */
  1286. var EventInterface = {
  1287. type: null,
  1288. target: null,
  1289. // currentTarget is set when dispatching; no use in copying it here
  1290. currentTarget: emptyFunction.thatReturnsNull,
  1291. eventPhase: null,
  1292. bubbles: null,
  1293. cancelable: null,
  1294. timeStamp: function (event) {
  1295. return event.timeStamp || Date.now();
  1296. },
  1297. defaultPrevented: null,
  1298. isTrusted: null
  1299. };
  1300. /**
  1301. * Synthetic events are dispatched by event plugins, typically in response to a
  1302. * top-level event delegation handler.
  1303. *
  1304. * These systems should generally use pooling to reduce the frequency of garbage
  1305. * collection. The system should check `isPersistent` to determine whether the
  1306. * event should be released into the pool after being dispatched. Users that
  1307. * need a persisted event should invoke `persist`.
  1308. *
  1309. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  1310. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  1311. * DOM interface; custom application-specific events can also subclass this.
  1312. *
  1313. * @param {object} dispatchConfig Configuration used to dispatch this event.
  1314. * @param {*} targetInst Marker identifying the event target.
  1315. * @param {object} nativeEvent Native browser event.
  1316. * @param {DOMEventTarget} nativeEventTarget Target node.
  1317. */
  1318. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  1319. if (process.env.NODE_ENV !== 'production') {
  1320. // these have a getter/setter for warnings
  1321. delete this.nativeEvent;
  1322. delete this.preventDefault;
  1323. delete this.stopPropagation;
  1324. }
  1325. this.dispatchConfig = dispatchConfig;
  1326. this._targetInst = targetInst;
  1327. this.nativeEvent = nativeEvent;
  1328. var Interface = this.constructor.Interface;
  1329. for (var propName in Interface) {
  1330. if (!Interface.hasOwnProperty(propName)) {
  1331. continue;
  1332. }
  1333. if (process.env.NODE_ENV !== 'production') {
  1334. delete this[propName]; // this has a getter/setter for warnings
  1335. }
  1336. var normalize = Interface[propName];
  1337. if (normalize) {
  1338. this[propName] = normalize(nativeEvent);
  1339. } else {
  1340. if (propName === 'target') {
  1341. this.target = nativeEventTarget;
  1342. } else {
  1343. this[propName] = nativeEvent[propName];
  1344. }
  1345. }
  1346. }
  1347. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  1348. if (defaultPrevented) {
  1349. this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
  1350. } else {
  1351. this.isDefaultPrevented = emptyFunction.thatReturnsFalse;
  1352. }
  1353. this.isPropagationStopped = emptyFunction.thatReturnsFalse;
  1354. return this;
  1355. }
  1356. _assign(SyntheticEvent.prototype, {
  1357. preventDefault: function () {
  1358. this.defaultPrevented = true;
  1359. var event = this.nativeEvent;
  1360. if (!event) {
  1361. return;
  1362. }
  1363. if (event.preventDefault) {
  1364. event.preventDefault();
  1365. } else if (typeof event.returnValue !== 'unknown') {
  1366. // eslint-disable-line valid-typeof
  1367. event.returnValue = false;
  1368. }
  1369. this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
  1370. },
  1371. stopPropagation: function () {
  1372. var event = this.nativeEvent;
  1373. if (!event) {
  1374. return;
  1375. }
  1376. if (event.stopPropagation) {
  1377. event.stopPropagation();
  1378. } else if (typeof event.cancelBubble !== 'unknown') {
  1379. // eslint-disable-line valid-typeof
  1380. // The ChangeEventPlugin registers a "propertychange" event for
  1381. // IE. This event does not support bubbling or cancelling, and
  1382. // any references to cancelBubble throw "Member not found". A
  1383. // typeof check of "unknown" circumvents this issue (and is also
  1384. // IE specific).
  1385. event.cancelBubble = true;
  1386. }
  1387. this.isPropagationStopped = emptyFunction.thatReturnsTrue;
  1388. },
  1389. /**
  1390. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  1391. * them back into the pool. This allows a way to hold onto a reference that
  1392. * won't be added back into the pool.
  1393. */
  1394. persist: function () {
  1395. this.isPersistent = emptyFunction.thatReturnsTrue;
  1396. },
  1397. /**
  1398. * Checks if this event should be released back into the pool.
  1399. *
  1400. * @return {boolean} True if this should not be released, false otherwise.
  1401. */
  1402. isPersistent: emptyFunction.thatReturnsFalse,
  1403. /**
  1404. * `PooledClass` looks for `destructor` on each instance it releases.
  1405. */
  1406. destructor: function () {
  1407. var Interface = this.constructor.Interface;
  1408. for (var propName in Interface) {
  1409. if (process.env.NODE_ENV !== 'production') {
  1410. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  1411. } else {
  1412. this[propName] = null;
  1413. }
  1414. }
  1415. for (var i = 0; i < shouldBeReleasedProperties.length; i++) {
  1416. this[shouldBeReleasedProperties[i]] = null;
  1417. }
  1418. if (process.env.NODE_ENV !== 'production') {
  1419. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  1420. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));
  1421. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
  1422. }
  1423. }
  1424. });
  1425. SyntheticEvent.Interface = EventInterface;
  1426. if (process.env.NODE_ENV !== 'production') {
  1427. if (isProxySupported) {
  1428. /*eslint-disable no-func-assign */
  1429. SyntheticEvent = new Proxy(SyntheticEvent, {
  1430. construct: function (target, args) {
  1431. return this.apply(target, Object.create(target.prototype), args);
  1432. },
  1433. apply: function (constructor, that, args) {
  1434. return new Proxy(constructor.apply(that, args), {
  1435. set: function (target, prop, value) {
  1436. if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
  1437. process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
  1438. didWarnForAddedNewProperty = true;
  1439. }
  1440. target[prop] = value;
  1441. return true;
  1442. }
  1443. });
  1444. }
  1445. });
  1446. /*eslint-enable no-func-assign */
  1447. }
  1448. }
  1449. /**
  1450. * Helper to reduce boilerplate when creating subclasses.
  1451. *
  1452. * @param {function} Class
  1453. * @param {?object} Interface
  1454. */
  1455. SyntheticEvent.augmentClass = function (Class, Interface) {
  1456. var Super = this;
  1457. var E = function () {};
  1458. E.prototype = Super.prototype;
  1459. var prototype = new E();
  1460. _assign(prototype, Class.prototype);
  1461. Class.prototype = prototype;
  1462. Class.prototype.constructor = Class;
  1463. Class.Interface = _assign({}, Super.Interface, Interface);
  1464. Class.augmentClass = Super.augmentClass;
  1465. PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
  1466. };
  1467. PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);
  1468. module.exports = SyntheticEvent;
  1469. /**
  1470. * Helper to nullify syntheticEvent instance properties when destructing
  1471. *
  1472. * @param {object} SyntheticEvent
  1473. * @param {String} propName
  1474. * @return {object} defineProperty object
  1475. */
  1476. function getPooledWarningPropertyDefinition(propName, getVal) {
  1477. var isFunction = typeof getVal === 'function';
  1478. return {
  1479. configurable: true,
  1480. set: set,
  1481. get: get
  1482. };
  1483. function set(val) {
  1484. var action = isFunction ? 'setting the method' : 'setting the property';
  1485. warn(action, 'This is effectively a no-op');
  1486. return val;
  1487. }
  1488. function get() {
  1489. var action = isFunction ? 'accessing the method' : 'accessing the property';
  1490. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  1491. warn(action, result);
  1492. return getVal;
  1493. }
  1494. function warn(action, result) {
  1495. var warningCondition = false;
  1496. process.env.NODE_ENV !== 'production' ? warning(warningCondition, '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;
  1497. }
  1498. }
  1499. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1500. /***/ }),
  1501. /* 13 */
  1502. /***/ (function(module, exports, __webpack_require__) {
  1503. "use strict";
  1504. /* WEBPACK VAR INJECTION */(function(process) {/**
  1505. * Copyright 2013-present, Facebook, Inc.
  1506. * All rights reserved.
  1507. *
  1508. * This source code is licensed under the BSD-style license found in the
  1509. * LICENSE file in the root directory of this source tree. An additional grant
  1510. * of patent rights can be found in the PATENTS file in the same directory.
  1511. *
  1512. */
  1513. var _prodInvariant = __webpack_require__(3);
  1514. var invariant = __webpack_require__(1);
  1515. function checkMask(value, bitmask) {
  1516. return (value & bitmask) === bitmask;
  1517. }
  1518. var DOMPropertyInjection = {
  1519. /**
  1520. * Mapping from normalized, camelcased property names to a configuration that
  1521. * specifies how the associated DOM property should be accessed or rendered.
  1522. */
  1523. MUST_USE_PROPERTY: 0x1,
  1524. HAS_BOOLEAN_VALUE: 0x4,
  1525. HAS_NUMERIC_VALUE: 0x8,
  1526. HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
  1527. HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
  1528. /**
  1529. * Inject some specialized knowledge about the DOM. This takes a config object
  1530. * with the following properties:
  1531. *
  1532. * isCustomAttribute: function that given an attribute name will return true
  1533. * if it can be inserted into the DOM verbatim. Useful for data-* or aria-*
  1534. * attributes where it's impossible to enumerate all of the possible
  1535. * attribute names,
  1536. *
  1537. * Properties: object mapping DOM property name to one of the
  1538. * DOMPropertyInjection constants or null. If your attribute isn't in here,
  1539. * it won't get written to the DOM.
  1540. *
  1541. * DOMAttributeNames: object mapping React attribute name to the DOM
  1542. * attribute name. Attribute names not specified use the **lowercase**
  1543. * normalized name.
  1544. *
  1545. * DOMAttributeNamespaces: object mapping React attribute name to the DOM
  1546. * attribute namespace URL. (Attribute names not specified use no namespace.)
  1547. *
  1548. * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
  1549. * Property names not specified use the normalized name.
  1550. *
  1551. * DOMMutationMethods: Properties that require special mutation methods. If
  1552. * `value` is undefined, the mutation method should unset the property.
  1553. *
  1554. * @param {object} domPropertyConfig the config as described above.
  1555. */
  1556. injectDOMPropertyConfig: function (domPropertyConfig) {
  1557. var Injection = DOMPropertyInjection;
  1558. var Properties = domPropertyConfig.Properties || {};
  1559. var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
  1560. var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
  1561. var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {};
  1562. var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
  1563. if (domPropertyConfig.isCustomAttribute) {
  1564. DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);
  1565. }
  1566. for (var propName in Properties) {
  1567. !!DOMProperty.properties.hasOwnProperty(propName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0;
  1568. var lowerCased = propName.toLowerCase();
  1569. var propConfig = Properties[propName];
  1570. var propertyInfo = {
  1571. attributeName: lowerCased,
  1572. attributeNamespace: null,
  1573. propertyName: propName,
  1574. mutationMethod: null,
  1575. mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
  1576. hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
  1577. hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
  1578. hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
  1579. hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
  1580. };
  1581. !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0;
  1582. if (process.env.NODE_ENV !== 'production') {
  1583. DOMProperty.getPossibleStandardName[lowerCased] = propName;
  1584. }
  1585. if (DOMAttributeNames.hasOwnProperty(propName)) {
  1586. var attributeName = DOMAttributeNames[propName];
  1587. propertyInfo.attributeName = attributeName;
  1588. if (process.env.NODE_ENV !== 'production') {
  1589. DOMProperty.getPossibleStandardName[attributeName] = propName;
  1590. }
  1591. }
  1592. if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
  1593. propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
  1594. }
  1595. if (DOMPropertyNames.hasOwnProperty(propName)) {
  1596. propertyInfo.propertyName = DOMPropertyNames[propName];
  1597. }
  1598. if (DOMMutationMethods.hasOwnProperty(propName)) {
  1599. propertyInfo.mutationMethod = DOMMutationMethods[propName];
  1600. }
  1601. DOMProperty.properties[propName] = propertyInfo;
  1602. }
  1603. }
  1604. };
  1605. /* eslint-disable max-len */
  1606. 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';
  1607. /* eslint-enable max-len */
  1608. /**
  1609. * DOMProperty exports lookup objects that can be used like functions:
  1610. *
  1611. * > DOMProperty.isValid['id']
  1612. * true
  1613. * > DOMProperty.isValid['foobar']
  1614. * undefined
  1615. *
  1616. * Although this may be confusing, it performs better in general.
  1617. *
  1618. * @see http://jsperf.com/key-exists
  1619. * @see http://jsperf.com/key-missing
  1620. */
  1621. var DOMProperty = {
  1622. ID_ATTRIBUTE_NAME: 'data-reactid',
  1623. ROOT_ATTRIBUTE_NAME: 'data-reactroot',
  1624. ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
  1625. ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
  1626. /**
  1627. * Map from property "standard name" to an object with info about how to set
  1628. * the property in the DOM. Each object contains:
  1629. *
  1630. * attributeName:
  1631. * Used when rendering markup or with `*Attribute()`.
  1632. * attributeNamespace
  1633. * propertyName:
  1634. * Used on DOM node instances. (This includes properties that mutate due to
  1635. * external factors.)
  1636. * mutationMethod:
  1637. * If non-null, used instead of the property or `setAttribute()` after
  1638. * initial render.
  1639. * mustUseProperty:
  1640. * Whether the property must be accessed and mutated as an object property.
  1641. * hasBooleanValue:
  1642. * Whether the property should be removed when set to a falsey value.
  1643. * hasNumericValue:
  1644. * Whether the property must be numeric or parse as a numeric and should be
  1645. * removed when set to a falsey value.
  1646. * hasPositiveNumericValue:
  1647. * Whether the property must be positive numeric or parse as a positive
  1648. * numeric and should be removed when set to a falsey value.
  1649. * hasOverloadedBooleanValue:
  1650. * Whether the property can be used as a flag as well as with a value.
  1651. * Removed when strictly equal to false; present without a value when
  1652. * strictly equal to true; present with a value otherwise.
  1653. */
  1654. properties: {},
  1655. /**
  1656. * Mapping from lowercase property names to the properly cased version, used
  1657. * to warn in the case of missing properties. Available only in __DEV__.
  1658. *
  1659. * autofocus is predefined, because adding it to the property whitelist
  1660. * causes unintended side effects.
  1661. *
  1662. * @type {Object}
  1663. */
  1664. getPossibleStandardName: process.env.NODE_ENV !== 'production' ? { autofocus: 'autoFocus' } : null,
  1665. /**
  1666. * All of the isCustomAttribute() functions that have been injected.
  1667. */
  1668. _isCustomAttributeFunctions: [],
  1669. /**
  1670. * Checks whether a property name is a custom attribute.
  1671. * @method
  1672. */
  1673. isCustomAttribute: function (attributeName) {
  1674. for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {
  1675. var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];
  1676. if (isCustomAttributeFn(attributeName)) {
  1677. return true;
  1678. }
  1679. }
  1680. return false;
  1681. },
  1682. injection: DOMPropertyInjection
  1683. };
  1684. module.exports = DOMProperty;
  1685. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1686. /***/ }),
  1687. /* 14 */
  1688. /***/ (function(module, exports, __webpack_require__) {
  1689. "use strict";
  1690. /**
  1691. * Copyright (c) 2013-present, Facebook, Inc.
  1692. * All rights reserved.
  1693. *
  1694. * This source code is licensed under the BSD-style license found in the
  1695. * LICENSE file in the root directory of this source tree. An additional grant
  1696. * of patent rights can be found in the PATENTS file in the same directory.
  1697. *
  1698. *
  1699. */
  1700. /**
  1701. * WARNING: DO NOT manually require this module.
  1702. * This is a replacement for `invariant(...)` used by the error code system
  1703. * and will _only_ be required by the corresponding babel pass.
  1704. * It always throws.
  1705. */
  1706. function reactProdInvariant(code) {
  1707. var argCount = arguments.length - 1;
  1708. var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
  1709. for (var argIdx = 0; argIdx < argCount; argIdx++) {
  1710. message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
  1711. }
  1712. message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
  1713. var error = new Error(message);
  1714. error.name = 'Invariant Violation';
  1715. error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
  1716. throw error;
  1717. }
  1718. module.exports = reactProdInvariant;
  1719. /***/ }),
  1720. /* 15 */
  1721. /***/ (function(module, exports, __webpack_require__) {
  1722. "use strict";
  1723. /* WEBPACK VAR INJECTION */(function(process) {/**
  1724. * Copyright 2014-present, Facebook, Inc.
  1725. * All rights reserved.
  1726. *
  1727. * This source code is licensed under the BSD-style license found in the
  1728. * LICENSE file in the root directory of this source tree. An additional grant
  1729. * of patent rights can be found in the PATENTS file in the same directory.
  1730. *
  1731. */
  1732. var _assign = __webpack_require__(4);
  1733. var ReactCurrentOwner = __webpack_require__(10);
  1734. var warning = __webpack_require__(2);
  1735. var canDefineProperty = __webpack_require__(26);
  1736. var hasOwnProperty = Object.prototype.hasOwnProperty;
  1737. var REACT_ELEMENT_TYPE = __webpack_require__(51);
  1738. var RESERVED_PROPS = {
  1739. key: true,
  1740. ref: true,
  1741. __self: true,
  1742. __source: true
  1743. };
  1744. var specialPropKeyWarningShown, specialPropRefWarningShown;
  1745. function hasValidRef(config) {
  1746. if (process.env.NODE_ENV !== 'production') {
  1747. if (hasOwnProperty.call(config, 'ref')) {
  1748. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  1749. if (getter && getter.isReactWarning) {
  1750. return false;
  1751. }
  1752. }
  1753. }
  1754. return config.ref !== undefined;
  1755. }
  1756. function hasValidKey(config) {
  1757. if (process.env.NODE_ENV !== 'production') {
  1758. if (hasOwnProperty.call(config, 'key')) {
  1759. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  1760. if (getter && getter.isReactWarning) {
  1761. return false;
  1762. }
  1763. }
  1764. }
  1765. return config.key !== undefined;
  1766. }
  1767. function defineKeyPropWarningGetter(props, displayName) {
  1768. var warnAboutAccessingKey = function () {
  1769. if (!specialPropKeyWarningShown) {
  1770. specialPropKeyWarningShown = true;
  1771. process.env.NODE_ENV !== 'production' ? warning(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) : void 0;
  1772. }
  1773. };
  1774. warnAboutAccessingKey.isReactWarning = true;
  1775. Object.defineProperty(props, 'key', {
  1776. get: warnAboutAccessingKey,
  1777. configurable: true
  1778. });
  1779. }
  1780. function defineRefPropWarningGetter(props, displayName) {
  1781. var warnAboutAccessingRef = function () {
  1782. if (!specialPropRefWarningShown) {
  1783. specialPropRefWarningShown = true;
  1784. process.env.NODE_ENV !== 'production' ? warning(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) : void 0;
  1785. }
  1786. };
  1787. warnAboutAccessingRef.isReactWarning = true;
  1788. Object.defineProperty(props, 'ref', {
  1789. get: warnAboutAccessingRef,
  1790. configurable: true
  1791. });
  1792. }
  1793. /**
  1794. * Factory method to create a new React element. This no longer adheres to
  1795. * the class pattern, so do not use new to call it. Also, no instanceof check
  1796. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  1797. * if something is a React Element.
  1798. *
  1799. * @param {*} type
  1800. * @param {*} key
  1801. * @param {string|object} ref
  1802. * @param {*} self A *temporary* helper to detect places where `this` is
  1803. * different from the `owner` when React.createElement is called, so that we
  1804. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  1805. * functions, and as long as `this` and owner are the same, there will be no
  1806. * change in behavior.
  1807. * @param {*} source An annotation object (added by a transpiler or otherwise)
  1808. * indicating filename, line number, and/or other information.
  1809. * @param {*} owner
  1810. * @param {*} props
  1811. * @internal
  1812. */
  1813. var ReactElement = function (type, key, ref, self, source, owner, props) {
  1814. var element = {
  1815. // This tag allow us to uniquely identify this as a React Element
  1816. $$typeof: REACT_ELEMENT_TYPE,
  1817. // Built-in properties that belong on the element
  1818. type: type,
  1819. key: key,
  1820. ref: ref,
  1821. props: props,
  1822. // Record the component responsible for creating this element.
  1823. _owner: owner
  1824. };
  1825. if (process.env.NODE_ENV !== 'production') {
  1826. // The validation flag is currently mutative. We put it on
  1827. // an external backing store so that we can freeze the whole object.
  1828. // This can be replaced with a WeakMap once they are implemented in
  1829. // commonly used development environments.
  1830. element._store = {};
  1831. // To make comparing ReactElements easier for testing purposes, we make
  1832. // the validation flag non-enumerable (where possible, which should
  1833. // include every environment we run tests in), so the test framework
  1834. // ignores it.
  1835. if (canDefineProperty) {
  1836. Object.defineProperty(element._store, 'validated', {
  1837. configurable: false,
  1838. enumerable: false,
  1839. writable: true,
  1840. value: false
  1841. });
  1842. // self and source are DEV only properties.
  1843. Object.defineProperty(element, '_self', {
  1844. configurable: false,
  1845. enumerable: false,
  1846. writable: false,
  1847. value: self
  1848. });
  1849. // Two elements created in two different places should be considered
  1850. // equal for testing purposes and therefore we hide it from enumeration.
  1851. Object.defineProperty(element, '_source', {
  1852. configurable: false,
  1853. enumerable: false,
  1854. writable: false,
  1855. value: source
  1856. });
  1857. } else {
  1858. element._store.validated = false;
  1859. element._self = self;
  1860. element._source = source;
  1861. }
  1862. if (Object.freeze) {
  1863. Object.freeze(element.props);
  1864. Object.freeze(element);
  1865. }
  1866. }
  1867. return element;
  1868. };
  1869. /**
  1870. * Create and return a new ReactElement of the given type.
  1871. * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement
  1872. */
  1873. ReactElement.createElement = function (type, config, children) {
  1874. var propName;
  1875. // Reserved names are extracted
  1876. var props = {};
  1877. var key = null;
  1878. var ref = null;
  1879. var self = null;
  1880. var source = null;
  1881. if (config != null) {
  1882. if (hasValidRef(config)) {
  1883. ref = config.ref;
  1884. }
  1885. if (hasValidKey(config)) {
  1886. key = '' + config.key;
  1887. }
  1888. self = config.__self === undefined ? null : config.__self;
  1889. source = config.__source === undefined ? null : config.__source;
  1890. // Remaining properties are added to a new props object
  1891. for (propName in config) {
  1892. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  1893. props[propName] = config[propName];
  1894. }
  1895. }
  1896. }
  1897. // Children can be more than one argument, and those are transferred onto
  1898. // the newly allocated props object.
  1899. var childrenLength = arguments.length - 2;
  1900. if (childrenLength === 1) {
  1901. props.children = children;
  1902. } else if (childrenLength > 1) {
  1903. var childArray = Array(childrenLength);
  1904. for (var i = 0; i < childrenLength; i++) {
  1905. childArray[i] = arguments[i + 2];
  1906. }
  1907. if (process.env.NODE_ENV !== 'production') {
  1908. if (Object.freeze) {
  1909. Object.freeze(childArray);
  1910. }
  1911. }
  1912. props.children = childArray;
  1913. }
  1914. // Resolve default props
  1915. if (type && type.defaultProps) {
  1916. var defaultProps = type.defaultProps;
  1917. for (propName in defaultProps) {
  1918. if (props[propName] === undefined) {
  1919. props[propName] = defaultProps[propName];
  1920. }
  1921. }
  1922. }
  1923. if (process.env.NODE_ENV !== 'production') {
  1924. if (key || ref) {
  1925. if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
  1926. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  1927. if (key) {
  1928. defineKeyPropWarningGetter(props, displayName);
  1929. }
  1930. if (ref) {
  1931. defineRefPropWarningGetter(props, displayName);
  1932. }
  1933. }
  1934. }
  1935. }
  1936. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  1937. };
  1938. /**
  1939. * Return a function that produces ReactElements of a given type.
  1940. * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory
  1941. */
  1942. ReactElement.createFactory = function (type) {
  1943. var factory = ReactElement.createElement.bind(null, type);
  1944. // Expose the type on the factory and the prototype so that it can be
  1945. // easily accessed on elements. E.g. `<Foo />.type === Foo`.
  1946. // This should not be named `constructor` since this may not be the function
  1947. // that created the element, and it may not even be a constructor.
  1948. // Legacy hook TODO: Warn if this is accessed
  1949. factory.type = type;
  1950. return factory;
  1951. };
  1952. ReactElement.cloneAndReplaceKey = function (oldElement, newKey) {
  1953. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  1954. return newElement;
  1955. };
  1956. /**
  1957. * Clone and return a new ReactElement using element as the starting point.
  1958. * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement
  1959. */
  1960. ReactElement.cloneElement = function (element, config, children) {
  1961. var propName;
  1962. // Original props are copied
  1963. var props = _assign({}, element.props);
  1964. // Reserved names are extracted
  1965. var key = element.key;
  1966. var ref = element.ref;
  1967. // Self is preserved since the owner is preserved.
  1968. var self = element._self;
  1969. // Source is preserved since cloneElement is unlikely to be targeted by a
  1970. // transpiler, and the original source is probably a better indicator of the
  1971. // true owner.
  1972. var source = element._source;
  1973. // Owner will be preserved, unless ref is overridden
  1974. var owner = element._owner;
  1975. if (config != null) {
  1976. if (hasValidRef(config)) {
  1977. // Silently steal the ref from the parent.
  1978. ref = config.ref;
  1979. owner = ReactCurrentOwner.current;
  1980. }
  1981. if (hasValidKey(config)) {
  1982. key = '' + config.key;
  1983. }
  1984. // Remaining properties override existing props
  1985. var defaultProps;
  1986. if (element.type && element.type.defaultProps) {
  1987. defaultProps = element.type.defaultProps;
  1988. }
  1989. for (propName in config) {
  1990. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  1991. if (config[propName] === undefined && defaultProps !== undefined) {
  1992. // Resolve default props
  1993. props[propName] = defaultProps[propName];
  1994. } else {
  1995. props[propName] = config[propName];
  1996. }
  1997. }
  1998. }
  1999. }
  2000. // Children can be more than one argument, and those are transferred onto
  2001. // the newly allocated props object.
  2002. var childrenLength = arguments.length - 2;
  2003. if (childrenLength === 1) {
  2004. props.children = children;
  2005. } else if (childrenLength > 1) {
  2006. var childArray = Array(childrenLength);
  2007. for (var i = 0; i < childrenLength; i++) {
  2008. childArray[i] = arguments[i + 2];
  2009. }
  2010. props.children = childArray;
  2011. }
  2012. return ReactElement(element.type, key, ref, self, source, owner, props);
  2013. };
  2014. /**
  2015. * Verifies the object is a ReactElement.
  2016. * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement
  2017. * @param {?object} object
  2018. * @return {boolean} True if `object` is a valid component.
  2019. * @final
  2020. */
  2021. ReactElement.isValidElement = function (object) {
  2022. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  2023. };
  2024. module.exports = ReactElement;
  2025. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2026. /***/ }),
  2027. /* 16 */
  2028. /***/ (function(module, exports, __webpack_require__) {
  2029. "use strict";
  2030. /* WEBPACK VAR INJECTION */(function(process) {/**
  2031. * Copyright 2013-present, Facebook, Inc.
  2032. * All rights reserved.
  2033. *
  2034. * This source code is licensed under the BSD-style license found in the
  2035. * LICENSE file in the root directory of this source tree. An additional grant
  2036. * of patent rights can be found in the PATENTS file in the same directory.
  2037. *
  2038. *
  2039. */
  2040. var _prodInvariant = __webpack_require__(3);
  2041. var invariant = __webpack_require__(1);
  2042. /**
  2043. * Static poolers. Several custom versions for each potential number of
  2044. * arguments. A completely generic pooler is easy to implement, but would
  2045. * require accessing the `arguments` object. In each of these, `this` refers to
  2046. * the Class itself, not an instance. If any others are needed, simply add them
  2047. * here, or in their own files.
  2048. */
  2049. var oneArgumentPooler = function (copyFieldsFrom) {
  2050. var Klass = this;
  2051. if (Klass.instancePool.length) {
  2052. var instance = Klass.instancePool.pop();
  2053. Klass.call(instance, copyFieldsFrom);
  2054. return instance;
  2055. } else {
  2056. return new Klass(copyFieldsFrom);
  2057. }
  2058. };
  2059. var twoArgumentPooler = function (a1, a2) {
  2060. var Klass = this;
  2061. if (Klass.instancePool.length) {
  2062. var instance = Klass.instancePool.pop();
  2063. Klass.call(instance, a1, a2);
  2064. return instance;
  2065. } else {
  2066. return new Klass(a1, a2);
  2067. }
  2068. };
  2069. var threeArgumentPooler = function (a1, a2, a3) {
  2070. var Klass = this;
  2071. if (Klass.instancePool.length) {
  2072. var instance = Klass.instancePool.pop();
  2073. Klass.call(instance, a1, a2, a3);
  2074. return instance;
  2075. } else {
  2076. return new Klass(a1, a2, a3);
  2077. }
  2078. };
  2079. var fourArgumentPooler = function (a1, a2, a3, a4) {
  2080. var Klass = this;
  2081. if (Klass.instancePool.length) {
  2082. var instance = Klass.instancePool.pop();
  2083. Klass.call(instance, a1, a2, a3, a4);
  2084. return instance;
  2085. } else {
  2086. return new Klass(a1, a2, a3, a4);
  2087. }
  2088. };
  2089. var standardReleaser = function (instance) {
  2090. var Klass = this;
  2091. !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
  2092. instance.destructor();
  2093. if (Klass.instancePool.length < Klass.poolSize) {
  2094. Klass.instancePool.push(instance);
  2095. }
  2096. };
  2097. var DEFAULT_POOL_SIZE = 10;
  2098. var DEFAULT_POOLER = oneArgumentPooler;
  2099. /**
  2100. * Augments `CopyConstructor` to be a poolable class, augmenting only the class
  2101. * itself (statically) not adding any prototypical fields. Any CopyConstructor
  2102. * you give this may have a `poolSize` property, and will look for a
  2103. * prototypical `destructor` on instances.
  2104. *
  2105. * @param {Function} CopyConstructor Constructor that can be used to reset.
  2106. * @param {Function} pooler Customizable pooler.
  2107. */
  2108. var addPoolingTo = function (CopyConstructor, pooler) {
  2109. // Casting as any so that flow ignores the actual implementation and trusts
  2110. // it to match the type we declared
  2111. var NewKlass = CopyConstructor;
  2112. NewKlass.instancePool = [];
  2113. NewKlass.getPooled = pooler || DEFAULT_POOLER;
  2114. if (!NewKlass.poolSize) {
  2115. NewKlass.poolSize = DEFAULT_POOL_SIZE;
  2116. }
  2117. NewKlass.release = standardReleaser;
  2118. return NewKlass;
  2119. };
  2120. var PooledClass = {
  2121. addPoolingTo: addPoolingTo,
  2122. oneArgumentPooler: oneArgumentPooler,
  2123. twoArgumentPooler: twoArgumentPooler,
  2124. threeArgumentPooler: threeArgumentPooler,
  2125. fourArgumentPooler: fourArgumentPooler
  2126. };
  2127. module.exports = PooledClass;
  2128. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2129. /***/ }),
  2130. /* 17 */
  2131. /***/ (function(module, exports, __webpack_require__) {
  2132. "use strict";
  2133. /* WEBPACK VAR INJECTION */(function(process) {/**
  2134. * Copyright 2013-present, Facebook, Inc.
  2135. * All rights reserved.
  2136. *
  2137. * This source code is licensed under the BSD-style license found in the
  2138. * LICENSE file in the root directory of this source tree. An additional grant
  2139. * of patent rights can be found in the PATENTS file in the same directory.
  2140. *
  2141. */
  2142. var _assign = __webpack_require__(4);
  2143. var ReactChildren = __webpack_require__(86);
  2144. var ReactComponent = __webpack_require__(33);
  2145. var ReactPureComponent = __webpack_require__(90);
  2146. var ReactClass = __webpack_require__(91);
  2147. var ReactDOMFactories = __webpack_require__(92);
  2148. var ReactElement = __webpack_require__(15);
  2149. var ReactPropTypes = __webpack_require__(95);
  2150. var ReactVersion = __webpack_require__(99);
  2151. var onlyChild = __webpack_require__(100);
  2152. var warning = __webpack_require__(2);
  2153. var createElement = ReactElement.createElement;
  2154. var createFactory = ReactElement.createFactory;
  2155. var cloneElement = ReactElement.cloneElement;
  2156. if (process.env.NODE_ENV !== 'production') {
  2157. var canDefineProperty = __webpack_require__(26);
  2158. var ReactElementValidator = __webpack_require__(54);
  2159. var didWarnPropTypesDeprecated = false;
  2160. createElement = ReactElementValidator.createElement;
  2161. createFactory = ReactElementValidator.createFactory;
  2162. cloneElement = ReactElementValidator.cloneElement;
  2163. }
  2164. var __spread = _assign;
  2165. if (process.env.NODE_ENV !== 'production') {
  2166. var warned = false;
  2167. __spread = function () {
  2168. process.env.NODE_ENV !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;
  2169. warned = true;
  2170. return _assign.apply(null, arguments);
  2171. };
  2172. }
  2173. var React = {
  2174. // Modern
  2175. Children: {
  2176. map: ReactChildren.map,
  2177. forEach: ReactChildren.forEach,
  2178. count: ReactChildren.count,
  2179. toArray: ReactChildren.toArray,
  2180. only: onlyChild
  2181. },
  2182. Component: ReactComponent,
  2183. PureComponent: ReactPureComponent,
  2184. createElement: createElement,
  2185. cloneElement: cloneElement,
  2186. isValidElement: ReactElement.isValidElement,
  2187. // Classic
  2188. PropTypes: ReactPropTypes,
  2189. createClass: ReactClass.createClass,
  2190. createFactory: createFactory,
  2191. createMixin: function (mixin) {
  2192. // Currently a noop. Will be used to validate and trace mixins.
  2193. return mixin;
  2194. },
  2195. // This looks DOM specific but these are actually isomorphic helpers
  2196. // since they are just generating DOM strings.
  2197. DOM: ReactDOMFactories,
  2198. version: ReactVersion,
  2199. // Deprecated hook for JSX spread, don't use this for anything.
  2200. __spread: __spread
  2201. };
  2202. // TODO: Fix tests so that this deprecation warning doesn't cause failures.
  2203. if (process.env.NODE_ENV !== 'production') {
  2204. if (canDefineProperty) {
  2205. Object.defineProperty(React, 'PropTypes', {
  2206. get: function () {
  2207. process.env.NODE_ENV !== 'production' ? warning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated. Use ' + 'the prop-types package from npm instead.') : void 0;
  2208. didWarnPropTypesDeprecated = true;
  2209. return ReactPropTypes;
  2210. }
  2211. });
  2212. }
  2213. }
  2214. module.exports = React;
  2215. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2216. /***/ }),
  2217. /* 18 */
  2218. /***/ (function(module, exports, __webpack_require__) {
  2219. "use strict";
  2220. /* WEBPACK VAR INJECTION */(function(process) {/**
  2221. * Copyright 2013-present, Facebook, Inc.
  2222. * All rights reserved.
  2223. *
  2224. * This source code is licensed under the BSD-style license found in the
  2225. * LICENSE file in the root directory of this source tree. An additional grant
  2226. * of patent rights can be found in the PATENTS file in the same directory.
  2227. *
  2228. */
  2229. var ReactRef = __webpack_require__(110);
  2230. var ReactInstrumentation = __webpack_require__(9);
  2231. var warning = __webpack_require__(2);
  2232. /**
  2233. * Helper to call ReactRef.attachRefs with this composite component, split out
  2234. * to avoid allocations in the transaction mount-ready queue.
  2235. */
  2236. function attachRefs() {
  2237. ReactRef.attachRefs(this, this._currentElement);
  2238. }
  2239. var ReactReconciler = {
  2240. /**
  2241. * Initializes the component, renders markup, and registers event listeners.
  2242. *
  2243. * @param {ReactComponent} internalInstance
  2244. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  2245. * @param {?object} the containing host component instance
  2246. * @param {?object} info about the host container
  2247. * @return {?string} Rendered markup to be inserted into the DOM.
  2248. * @final
  2249. * @internal
  2250. */
  2251. mountComponent: function (internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID // 0 in production and for roots
  2252. ) {
  2253. if (process.env.NODE_ENV !== 'production') {
  2254. if (internalInstance._debugID !== 0) {
  2255. ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID);
  2256. }
  2257. }
  2258. var markup = internalInstance.mountComponent(transaction, hostParent, hostContainerInfo, context, parentDebugID);
  2259. if (internalInstance._currentElement && internalInstance._currentElement.ref != null) {
  2260. transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
  2261. }
  2262. if (process.env.NODE_ENV !== 'production') {
  2263. if (internalInstance._debugID !== 0) {
  2264. ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID);
  2265. }
  2266. }
  2267. return markup;
  2268. },
  2269. /**
  2270. * Returns a value that can be passed to
  2271. * ReactComponentEnvironment.replaceNodeWithMarkup.
  2272. */
  2273. getHostNode: function (internalInstance) {
  2274. return internalInstance.getHostNode();
  2275. },
  2276. /**
  2277. * Releases any resources allocated by `mountComponent`.
  2278. *
  2279. * @final
  2280. * @internal
  2281. */
  2282. unmountComponent: function (internalInstance, safely) {
  2283. if (process.env.NODE_ENV !== 'production') {
  2284. if (internalInstance._debugID !== 0) {
  2285. ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID);
  2286. }
  2287. }
  2288. ReactRef.detachRefs(internalInstance, internalInstance._currentElement);
  2289. internalInstance.unmountComponent(safely);
  2290. if (process.env.NODE_ENV !== 'production') {
  2291. if (internalInstance._debugID !== 0) {
  2292. ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID);
  2293. }
  2294. }
  2295. },
  2296. /**
  2297. * Update a component using a new element.
  2298. *
  2299. * @param {ReactComponent} internalInstance
  2300. * @param {ReactElement} nextElement
  2301. * @param {ReactReconcileTransaction} transaction
  2302. * @param {object} context
  2303. * @internal
  2304. */
  2305. receiveComponent: function (internalInstance, nextElement, transaction, context) {
  2306. var prevElement = internalInstance._currentElement;
  2307. if (nextElement === prevElement && context === internalInstance._context) {
  2308. // Since elements are immutable after the owner is rendered,
  2309. // we can do a cheap identity compare here to determine if this is a
  2310. // superfluous reconcile. It's possible for state to be mutable but such
  2311. // change should trigger an update of the owner which would recreate
  2312. // the element. We explicitly check for the existence of an owner since
  2313. // it's possible for an element created outside a composite to be
  2314. // deeply mutated and reused.
  2315. // TODO: Bailing out early is just a perf optimization right?
  2316. // TODO: Removing the return statement should affect correctness?
  2317. return;
  2318. }
  2319. if (process.env.NODE_ENV !== 'production') {
  2320. if (internalInstance._debugID !== 0) {
  2321. ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement);
  2322. }
  2323. }
  2324. var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement);
  2325. if (refsChanged) {
  2326. ReactRef.detachRefs(internalInstance, prevElement);
  2327. }
  2328. internalInstance.receiveComponent(nextElement, transaction, context);
  2329. if (refsChanged && internalInstance._currentElement && internalInstance._currentElement.ref != null) {
  2330. transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
  2331. }
  2332. if (process.env.NODE_ENV !== 'production') {
  2333. if (internalInstance._debugID !== 0) {
  2334. ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
  2335. }
  2336. }
  2337. },
  2338. /**
  2339. * Flush any dirty changes in a component.
  2340. *
  2341. * @param {ReactComponent} internalInstance
  2342. * @param {ReactReconcileTransaction} transaction
  2343. * @internal
  2344. */
  2345. performUpdateIfNecessary: function (internalInstance, transaction, updateBatchNumber) {
  2346. if (internalInstance._updateBatchNumber !== updateBatchNumber) {
  2347. // The component's enqueued batch number should always be the current
  2348. // batch or the following one.
  2349. process.env.NODE_ENV !== 'production' ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0;
  2350. return;
  2351. }
  2352. if (process.env.NODE_ENV !== 'production') {
  2353. if (internalInstance._debugID !== 0) {
  2354. ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement);
  2355. }
  2356. }
  2357. internalInstance.performUpdateIfNecessary(transaction);
  2358. if (process.env.NODE_ENV !== 'production') {
  2359. if (internalInstance._debugID !== 0) {
  2360. ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
  2361. }
  2362. }
  2363. }
  2364. };
  2365. module.exports = ReactReconciler;
  2366. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2367. /***/ }),
  2368. /* 19 */
  2369. /***/ (function(module, exports, __webpack_require__) {
  2370. "use strict";
  2371. /**
  2372. * Copyright 2015-present, Facebook, Inc.
  2373. * All rights reserved.
  2374. *
  2375. * This source code is licensed under the BSD-style license found in the
  2376. * LICENSE file in the root directory of this source tree. An additional grant
  2377. * of patent rights can be found in the PATENTS file in the same directory.
  2378. *
  2379. */
  2380. var DOMNamespaces = __webpack_require__(41);
  2381. var setInnerHTML = __webpack_require__(30);
  2382. var createMicrosoftUnsafeLocalFunction = __webpack_require__(42);
  2383. var setTextContent = __webpack_require__(64);
  2384. var ELEMENT_NODE_TYPE = 1;
  2385. var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
  2386. /**
  2387. * In IE (8-11) and Edge, appending nodes with no children is dramatically
  2388. * faster than appending a full subtree, so we essentially queue up the
  2389. * .appendChild calls here and apply them so each node is added to its parent
  2390. * before any children are added.
  2391. *
  2392. * In other browsers, doing so is slower or neutral compared to the other order
  2393. * (in Firefox, twice as slow) so we only do this inversion in IE.
  2394. *
  2395. * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode.
  2396. */
  2397. var enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\bEdge\/\d/.test(navigator.userAgent);
  2398. function insertTreeChildren(tree) {
  2399. if (!enableLazy) {
  2400. return;
  2401. }
  2402. var node = tree.node;
  2403. var children = tree.children;
  2404. if (children.length) {
  2405. for (var i = 0; i < children.length; i++) {
  2406. insertTreeBefore(node, children[i], null);
  2407. }
  2408. } else if (tree.html != null) {
  2409. setInnerHTML(node, tree.html);
  2410. } else if (tree.text != null) {
  2411. setTextContent(node, tree.text);
  2412. }
  2413. }
  2414. var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function (parentNode, tree, referenceNode) {
  2415. // DocumentFragments aren't actually part of the DOM after insertion so
  2416. // appending children won't update the DOM. We need to ensure the fragment
  2417. // is properly populated first, breaking out of our lazy approach for just
  2418. // this level. Also, some <object> plugins (like Flash Player) will read
  2419. // <param> nodes immediately upon insertion into the DOM, so <object>
  2420. // must also be populated prior to insertion into the DOM.
  2421. if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) {
  2422. insertTreeChildren(tree);
  2423. parentNode.insertBefore(tree.node, referenceNode);
  2424. } else {
  2425. parentNode.insertBefore(tree.node, referenceNode);
  2426. insertTreeChildren(tree);
  2427. }
  2428. });
  2429. function replaceChildWithTree(oldNode, newTree) {
  2430. oldNode.parentNode.replaceChild(newTree.node, oldNode);
  2431. insertTreeChildren(newTree);
  2432. }
  2433. function queueChild(parentTree, childTree) {
  2434. if (enableLazy) {
  2435. parentTree.children.push(childTree);
  2436. } else {
  2437. parentTree.node.appendChild(childTree.node);
  2438. }
  2439. }
  2440. function queueHTML(tree, html) {
  2441. if (enableLazy) {
  2442. tree.html = html;
  2443. } else {
  2444. setInnerHTML(tree.node, html);
  2445. }
  2446. }
  2447. function queueText(tree, text) {
  2448. if (enableLazy) {
  2449. tree.text = text;
  2450. } else {
  2451. setTextContent(tree.node, text);
  2452. }
  2453. }
  2454. function toString() {
  2455. return this.node.nodeName;
  2456. }
  2457. function DOMLazyTree(node) {
  2458. return {
  2459. node: node,
  2460. children: [],
  2461. html: null,
  2462. text: null,
  2463. toString: toString
  2464. };
  2465. }
  2466. DOMLazyTree.insertTreeBefore = insertTreeBefore;
  2467. DOMLazyTree.replaceChildWithTree = replaceChildWithTree;
  2468. DOMLazyTree.queueChild = queueChild;
  2469. DOMLazyTree.queueHTML = queueHTML;
  2470. DOMLazyTree.queueText = queueText;
  2471. module.exports = DOMLazyTree;
  2472. /***/ }),
  2473. /* 20 */
  2474. /***/ (function(module, exports, __webpack_require__) {
  2475. "use strict";
  2476. /* WEBPACK VAR INJECTION */(function(process) {/**
  2477. * Copyright (c) 2013-present, Facebook, Inc.
  2478. *
  2479. * This source code is licensed under the MIT license found in the
  2480. * LICENSE file in the root directory of this source tree.
  2481. *
  2482. */
  2483. var emptyObject = {};
  2484. if (process.env.NODE_ENV !== 'production') {
  2485. Object.freeze(emptyObject);
  2486. }
  2487. module.exports = emptyObject;
  2488. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2489. /***/ }),
  2490. /* 21 */
  2491. /***/ (function(module, exports, __webpack_require__) {
  2492. "use strict";
  2493. /* WEBPACK VAR INJECTION */(function(process) {/**
  2494. * Copyright 2013-present, Facebook, Inc.
  2495. * All rights reserved.
  2496. *
  2497. * This source code is licensed under the BSD-style license found in the
  2498. * LICENSE file in the root directory of this source tree. An additional grant
  2499. * of patent rights can be found in the PATENTS file in the same directory.
  2500. *
  2501. */
  2502. var EventPluginHub = __webpack_require__(22);
  2503. var EventPluginUtils = __webpack_require__(35);
  2504. var accumulateInto = __webpack_require__(57);
  2505. var forEachAccumulated = __webpack_require__(58);
  2506. var warning = __webpack_require__(2);
  2507. var getListener = EventPluginHub.getListener;
  2508. /**
  2509. * Some event types have a notion of different registration names for different
  2510. * "phases" of propagation. This finds listeners by a given phase.
  2511. */
  2512. function listenerAtPhase(inst, event, propagationPhase) {
  2513. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  2514. return getListener(inst, registrationName);
  2515. }
  2516. /**
  2517. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  2518. * here, allows us to not have to bind or create functions for each event.
  2519. * Mutating the event's members allows us to not have to create a wrapping
  2520. * "dispatch" object that pairs the event with the listener.
  2521. */
  2522. function accumulateDirectionalDispatches(inst, phase, event) {
  2523. if (process.env.NODE_ENV !== 'production') {
  2524. process.env.NODE_ENV !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0;
  2525. }
  2526. var listener = listenerAtPhase(inst, event, phase);
  2527. if (listener) {
  2528. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  2529. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  2530. }
  2531. }
  2532. /**
  2533. * Collect dispatches (must be entirely collected before dispatching - see unit
  2534. * tests). Lazily allocate the array to conserve memory. We must loop through
  2535. * each event and perform the traversal for each one. We cannot perform a
  2536. * single traversal for the entire collection of events because each event may
  2537. * have a different target.
  2538. */
  2539. function accumulateTwoPhaseDispatchesSingle(event) {
  2540. if (event && event.dispatchConfig.phasedRegistrationNames) {
  2541. EventPluginUtils.traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  2542. }
  2543. }
  2544. /**
  2545. * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.
  2546. */
  2547. function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {
  2548. if (event && event.dispatchConfig.phasedRegistrationNames) {
  2549. var targetInst = event._targetInst;
  2550. var parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null;
  2551. EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event);
  2552. }
  2553. }
  2554. /**
  2555. * Accumulates without regard to direction, does not look for phased
  2556. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  2557. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  2558. */
  2559. function accumulateDispatches(inst, ignoredDirection, event) {
  2560. if (event && event.dispatchConfig.registrationName) {
  2561. var registrationName = event.dispatchConfig.registrationName;
  2562. var listener = getListener(inst, registrationName);
  2563. if (listener) {
  2564. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  2565. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  2566. }
  2567. }
  2568. }
  2569. /**
  2570. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  2571. * `dispatchMarker`.
  2572. * @param {SyntheticEvent} event
  2573. */
  2574. function accumulateDirectDispatchesSingle(event) {
  2575. if (event && event.dispatchConfig.registrationName) {
  2576. accumulateDispatches(event._targetInst, null, event);
  2577. }
  2578. }
  2579. function accumulateTwoPhaseDispatches(events) {
  2580. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  2581. }
  2582. function accumulateTwoPhaseDispatchesSkipTarget(events) {
  2583. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget);
  2584. }
  2585. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  2586. EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  2587. }
  2588. function accumulateDirectDispatches(events) {
  2589. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  2590. }
  2591. /**
  2592. * A small set of propagation patterns, each of which will accept a small amount
  2593. * of information, and generate a set of "dispatch ready event objects" - which
  2594. * are sets of events that have already been annotated with a set of dispatched
  2595. * listener functions/ids. The API is designed this way to discourage these
  2596. * propagation strategies from actually executing the dispatches, since we
  2597. * always want to collect the entire set of dispatches before executing event a
  2598. * single one.
  2599. *
  2600. * @constructor EventPropagators
  2601. */
  2602. var EventPropagators = {
  2603. accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches,
  2604. accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget,
  2605. accumulateDirectDispatches: accumulateDirectDispatches,
  2606. accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches
  2607. };
  2608. module.exports = EventPropagators;
  2609. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2610. /***/ }),
  2611. /* 22 */
  2612. /***/ (function(module, exports, __webpack_require__) {
  2613. "use strict";
  2614. /* WEBPACK VAR INJECTION */(function(process) {/**
  2615. * Copyright 2013-present, Facebook, Inc.
  2616. * All rights reserved.
  2617. *
  2618. * This source code is licensed under the BSD-style license found in the
  2619. * LICENSE file in the root directory of this source tree. An additional grant
  2620. * of patent rights can be found in the PATENTS file in the same directory.
  2621. *
  2622. */
  2623. var _prodInvariant = __webpack_require__(3);
  2624. var EventPluginRegistry = __webpack_require__(27);
  2625. var EventPluginUtils = __webpack_require__(35);
  2626. var ReactErrorUtils = __webpack_require__(36);
  2627. var accumulateInto = __webpack_require__(57);
  2628. var forEachAccumulated = __webpack_require__(58);
  2629. var invariant = __webpack_require__(1);
  2630. /**
  2631. * Internal store for event listeners
  2632. */
  2633. var listenerBank = {};
  2634. /**
  2635. * Internal queue of events that have accumulated their dispatches and are
  2636. * waiting to have their dispatches executed.
  2637. */
  2638. var eventQueue = null;
  2639. /**
  2640. * Dispatches an event and releases it back into the pool, unless persistent.
  2641. *
  2642. * @param {?object} event Synthetic event to be dispatched.
  2643. * @param {boolean} simulated If the event is simulated (changes exn behavior)
  2644. * @private
  2645. */
  2646. var executeDispatchesAndRelease = function (event, simulated) {
  2647. if (event) {
  2648. EventPluginUtils.executeDispatchesInOrder(event, simulated);
  2649. if (!event.isPersistent()) {
  2650. event.constructor.release(event);
  2651. }
  2652. }
  2653. };
  2654. var executeDispatchesAndReleaseSimulated = function (e) {
  2655. return executeDispatchesAndRelease(e, true);
  2656. };
  2657. var executeDispatchesAndReleaseTopLevel = function (e) {
  2658. return executeDispatchesAndRelease(e, false);
  2659. };
  2660. var getDictionaryKey = function (inst) {
  2661. // Prevents V8 performance issue:
  2662. // https://github.com/facebook/react/pull/7232
  2663. return '.' + inst._rootNodeID;
  2664. };
  2665. function isInteractive(tag) {
  2666. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  2667. }
  2668. function shouldPreventMouseEvent(name, type, props) {
  2669. switch (name) {
  2670. case 'onClick':
  2671. case 'onClickCapture':
  2672. case 'onDoubleClick':
  2673. case 'onDoubleClickCapture':
  2674. case 'onMouseDown':
  2675. case 'onMouseDownCapture':
  2676. case 'onMouseMove':
  2677. case 'onMouseMoveCapture':
  2678. case 'onMouseUp':
  2679. case 'onMouseUpCapture':
  2680. return !!(props.disabled && isInteractive(type));
  2681. default:
  2682. return false;
  2683. }
  2684. }
  2685. /**
  2686. * This is a unified interface for event plugins to be installed and configured.
  2687. *
  2688. * Event plugins can implement the following properties:
  2689. *
  2690. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  2691. * Required. When a top-level event is fired, this method is expected to
  2692. * extract synthetic events that will in turn be queued and dispatched.
  2693. *
  2694. * `eventTypes` {object}
  2695. * Optional, plugins that fire events must publish a mapping of registration
  2696. * names that are used to register listeners. Values of this mapping must
  2697. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  2698. *
  2699. * `executeDispatch` {function(object, function, string)}
  2700. * Optional, allows plugins to override how an event gets dispatched. By
  2701. * default, the listener is simply invoked.
  2702. *
  2703. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  2704. *
  2705. * @public
  2706. */
  2707. var EventPluginHub = {
  2708. /**
  2709. * Methods for injecting dependencies.
  2710. */
  2711. injection: {
  2712. /**
  2713. * @param {array} InjectedEventPluginOrder
  2714. * @public
  2715. */
  2716. injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder,
  2717. /**
  2718. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  2719. */
  2720. injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName
  2721. },
  2722. /**
  2723. * Stores `listener` at `listenerBank[registrationName][key]`. Is idempotent.
  2724. *
  2725. * @param {object} inst The instance, which is the source of events.
  2726. * @param {string} registrationName Name of listener (e.g. `onClick`).
  2727. * @param {function} listener The callback to store.
  2728. */
  2729. putListener: function (inst, registrationName, listener) {
  2730. !(typeof listener === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0;
  2731. var key = getDictionaryKey(inst);
  2732. var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {});
  2733. bankForRegistrationName[key] = listener;
  2734. var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
  2735. if (PluginModule && PluginModule.didPutListener) {
  2736. PluginModule.didPutListener(inst, registrationName, listener);
  2737. }
  2738. },
  2739. /**
  2740. * @param {object} inst The instance, which is the source of events.
  2741. * @param {string} registrationName Name of listener (e.g. `onClick`).
  2742. * @return {?function} The stored callback.
  2743. */
  2744. getListener: function (inst, registrationName) {
  2745. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  2746. // live here; needs to be moved to a better place soon
  2747. var bankForRegistrationName = listenerBank[registrationName];
  2748. if (shouldPreventMouseEvent(registrationName, inst._currentElement.type, inst._currentElement.props)) {
  2749. return null;
  2750. }
  2751. var key = getDictionaryKey(inst);
  2752. return bankForRegistrationName && bankForRegistrationName[key];
  2753. },
  2754. /**
  2755. * Deletes a listener from the registration bank.
  2756. *
  2757. * @param {object} inst The instance, which is the source of events.
  2758. * @param {string} registrationName Name of listener (e.g. `onClick`).
  2759. */
  2760. deleteListener: function (inst, registrationName) {
  2761. var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
  2762. if (PluginModule && PluginModule.willDeleteListener) {
  2763. PluginModule.willDeleteListener(inst, registrationName);
  2764. }
  2765. var bankForRegistrationName = listenerBank[registrationName];
  2766. // TODO: This should never be null -- when is it?
  2767. if (bankForRegistrationName) {
  2768. var key = getDictionaryKey(inst);
  2769. delete bankForRegistrationName[key];
  2770. }
  2771. },
  2772. /**
  2773. * Deletes all listeners for the DOM element with the supplied ID.
  2774. *
  2775. * @param {object} inst The instance, which is the source of events.
  2776. */
  2777. deleteAllListeners: function (inst) {
  2778. var key = getDictionaryKey(inst);
  2779. for (var registrationName in listenerBank) {
  2780. if (!listenerBank.hasOwnProperty(registrationName)) {
  2781. continue;
  2782. }
  2783. if (!listenerBank[registrationName][key]) {
  2784. continue;
  2785. }
  2786. var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
  2787. if (PluginModule && PluginModule.willDeleteListener) {
  2788. PluginModule.willDeleteListener(inst, registrationName);
  2789. }
  2790. delete listenerBank[registrationName][key];
  2791. }
  2792. },
  2793. /**
  2794. * Allows registered plugins an opportunity to extract events from top-level
  2795. * native browser events.
  2796. *
  2797. * @return {*} An accumulation of synthetic events.
  2798. * @internal
  2799. */
  2800. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  2801. var events;
  2802. var plugins = EventPluginRegistry.plugins;
  2803. for (var i = 0; i < plugins.length; i++) {
  2804. // Not every plugin in the ordering may be loaded at runtime.
  2805. var possiblePlugin = plugins[i];
  2806. if (possiblePlugin) {
  2807. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  2808. if (extractedEvents) {
  2809. events = accumulateInto(events, extractedEvents);
  2810. }
  2811. }
  2812. }
  2813. return events;
  2814. },
  2815. /**
  2816. * Enqueues a synthetic event that should be dispatched when
  2817. * `processEventQueue` is invoked.
  2818. *
  2819. * @param {*} events An accumulation of synthetic events.
  2820. * @internal
  2821. */
  2822. enqueueEvents: function (events) {
  2823. if (events) {
  2824. eventQueue = accumulateInto(eventQueue, events);
  2825. }
  2826. },
  2827. /**
  2828. * Dispatches all synthetic events on the event queue.
  2829. *
  2830. * @internal
  2831. */
  2832. processEventQueue: function (simulated) {
  2833. // Set `eventQueue` to null before processing it so that we can tell if more
  2834. // events get enqueued while processing.
  2835. var processingEventQueue = eventQueue;
  2836. eventQueue = null;
  2837. if (simulated) {
  2838. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated);
  2839. } else {
  2840. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  2841. }
  2842. !!eventQueue ? process.env.NODE_ENV !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0;
  2843. // This would be a good time to rethrow if any of the event handlers threw.
  2844. ReactErrorUtils.rethrowCaughtError();
  2845. },
  2846. /**
  2847. * These are needed for tests only. Do not use!
  2848. */
  2849. __purge: function () {
  2850. listenerBank = {};
  2851. },
  2852. __getListenerBank: function () {
  2853. return listenerBank;
  2854. }
  2855. };
  2856. module.exports = EventPluginHub;
  2857. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2858. /***/ }),
  2859. /* 23 */
  2860. /***/ (function(module, exports, __webpack_require__) {
  2861. "use strict";
  2862. /**
  2863. * Copyright 2013-present, Facebook, Inc.
  2864. * All rights reserved.
  2865. *
  2866. * This source code is licensed under the BSD-style license found in the
  2867. * LICENSE file in the root directory of this source tree. An additional grant
  2868. * of patent rights can be found in the PATENTS file in the same directory.
  2869. *
  2870. */
  2871. var SyntheticEvent = __webpack_require__(12);
  2872. var getEventTarget = __webpack_require__(37);
  2873. /**
  2874. * @interface UIEvent
  2875. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  2876. */
  2877. var UIEventInterface = {
  2878. view: function (event) {
  2879. if (event.view) {
  2880. return event.view;
  2881. }
  2882. var target = getEventTarget(event);
  2883. if (target.window === target) {
  2884. // target is a window object
  2885. return target;
  2886. }
  2887. var doc = target.ownerDocument;
  2888. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  2889. if (doc) {
  2890. return doc.defaultView || doc.parentWindow;
  2891. } else {
  2892. return window;
  2893. }
  2894. },
  2895. detail: function (event) {
  2896. return event.detail || 0;
  2897. }
  2898. };
  2899. /**
  2900. * @param {object} dispatchConfig Configuration used to dispatch this event.
  2901. * @param {string} dispatchMarker Marker identifying the event target.
  2902. * @param {object} nativeEvent Native browser event.
  2903. * @extends {SyntheticEvent}
  2904. */
  2905. function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  2906. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  2907. }
  2908. SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);
  2909. module.exports = SyntheticUIEvent;
  2910. /***/ }),
  2911. /* 24 */
  2912. /***/ (function(module, exports, __webpack_require__) {
  2913. "use strict";
  2914. /**
  2915. * Copyright 2013-present, Facebook, Inc.
  2916. * All rights reserved.
  2917. *
  2918. * This source code is licensed under the BSD-style license found in the
  2919. * LICENSE file in the root directory of this source tree. An additional grant
  2920. * of patent rights can be found in the PATENTS file in the same directory.
  2921. *
  2922. */
  2923. /**
  2924. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  2925. * instance (key) and the internal representation (value). This allows public
  2926. * methods to accept the user facing instance as an argument and map them back
  2927. * to internal methods.
  2928. */
  2929. // TODO: Replace this with ES6: var ReactInstanceMap = new Map();
  2930. var ReactInstanceMap = {
  2931. /**
  2932. * This API should be called `delete` but we'd have to make sure to always
  2933. * transform these to strings for IE support. When this transform is fully
  2934. * supported we can rename it.
  2935. */
  2936. remove: function (key) {
  2937. key._reactInternalInstance = undefined;
  2938. },
  2939. get: function (key) {
  2940. return key._reactInternalInstance;
  2941. },
  2942. has: function (key) {
  2943. return key._reactInternalInstance !== undefined;
  2944. },
  2945. set: function (key, value) {
  2946. key._reactInternalInstance = value;
  2947. }
  2948. };
  2949. module.exports = ReactInstanceMap;
  2950. /***/ }),
  2951. /* 25 */
  2952. /***/ (function(module, exports, __webpack_require__) {
  2953. "use strict";
  2954. module.exports = __webpack_require__(17);
  2955. /***/ }),
  2956. /* 26 */
  2957. /***/ (function(module, exports, __webpack_require__) {
  2958. "use strict";
  2959. /* WEBPACK VAR INJECTION */(function(process) {/**
  2960. * Copyright 2013-present, Facebook, Inc.
  2961. * All rights reserved.
  2962. *
  2963. * This source code is licensed under the BSD-style license found in the
  2964. * LICENSE file in the root directory of this source tree. An additional grant
  2965. * of patent rights can be found in the PATENTS file in the same directory.
  2966. *
  2967. *
  2968. */
  2969. var canDefineProperty = false;
  2970. if (process.env.NODE_ENV !== 'production') {
  2971. try {
  2972. // $FlowFixMe https://github.com/facebook/flow/issues/285
  2973. Object.defineProperty({}, 'x', { get: function () {} });
  2974. canDefineProperty = true;
  2975. } catch (x) {
  2976. // IE will fail on defineProperty
  2977. }
  2978. }
  2979. module.exports = canDefineProperty;
  2980. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2981. /***/ }),
  2982. /* 27 */
  2983. /***/ (function(module, exports, __webpack_require__) {
  2984. "use strict";
  2985. /* WEBPACK VAR INJECTION */(function(process) {/**
  2986. * Copyright 2013-present, Facebook, Inc.
  2987. * All rights reserved.
  2988. *
  2989. * This source code is licensed under the BSD-style license found in the
  2990. * LICENSE file in the root directory of this source tree. An additional grant
  2991. * of patent rights can be found in the PATENTS file in the same directory.
  2992. *
  2993. *
  2994. */
  2995. var _prodInvariant = __webpack_require__(3);
  2996. var invariant = __webpack_require__(1);
  2997. /**
  2998. * Injectable ordering of event plugins.
  2999. */
  3000. var eventPluginOrder = null;
  3001. /**
  3002. * Injectable mapping from names to event plugin modules.
  3003. */
  3004. var namesToPlugins = {};
  3005. /**
  3006. * Recomputes the plugin list using the injected plugins and plugin ordering.
  3007. *
  3008. * @private
  3009. */
  3010. function recomputePluginOrdering() {
  3011. if (!eventPluginOrder) {
  3012. // Wait until an `eventPluginOrder` is injected.
  3013. return;
  3014. }
  3015. for (var pluginName in namesToPlugins) {
  3016. var pluginModule = namesToPlugins[pluginName];
  3017. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  3018. !(pluginIndex > -1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0;
  3019. if (EventPluginRegistry.plugins[pluginIndex]) {
  3020. continue;
  3021. }
  3022. !pluginModule.extractEvents ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0;
  3023. EventPluginRegistry.plugins[pluginIndex] = pluginModule;
  3024. var publishedEvents = pluginModule.eventTypes;
  3025. for (var eventName in publishedEvents) {
  3026. !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0;
  3027. }
  3028. }
  3029. }
  3030. /**
  3031. * Publishes an event so that it can be dispatched by the supplied plugin.
  3032. *
  3033. * @param {object} dispatchConfig Dispatch configuration for the event.
  3034. * @param {object} PluginModule Plugin publishing the event.
  3035. * @return {boolean} True if the event was successfully published.
  3036. * @private
  3037. */
  3038. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  3039. !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0;
  3040. EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig;
  3041. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  3042. if (phasedRegistrationNames) {
  3043. for (var phaseName in phasedRegistrationNames) {
  3044. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  3045. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  3046. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  3047. }
  3048. }
  3049. return true;
  3050. } else if (dispatchConfig.registrationName) {
  3051. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  3052. return true;
  3053. }
  3054. return false;
  3055. }
  3056. /**
  3057. * Publishes a registration name that is used to identify dispatched events and
  3058. * can be used with `EventPluginHub.putListener` to register listeners.
  3059. *
  3060. * @param {string} registrationName Registration name to add.
  3061. * @param {object} PluginModule Plugin publishing the event.
  3062. * @private
  3063. */
  3064. function publishRegistrationName(registrationName, pluginModule, eventName) {
  3065. !!EventPluginRegistry.registrationNameModules[registrationName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0;
  3066. EventPluginRegistry.registrationNameModules[registrationName] = pluginModule;
  3067. EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  3068. if (process.env.NODE_ENV !== 'production') {
  3069. var lowerCasedName = registrationName.toLowerCase();
  3070. EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName;
  3071. if (registrationName === 'onDoubleClick') {
  3072. EventPluginRegistry.possibleRegistrationNames.ondblclick = registrationName;
  3073. }
  3074. }
  3075. }
  3076. /**
  3077. * Registers plugins so that they can extract and dispatch events.
  3078. *
  3079. * @see {EventPluginHub}
  3080. */
  3081. var EventPluginRegistry = {
  3082. /**
  3083. * Ordered list of injected plugins.
  3084. */
  3085. plugins: [],
  3086. /**
  3087. * Mapping from event name to dispatch config
  3088. */
  3089. eventNameDispatchConfigs: {},
  3090. /**
  3091. * Mapping from registration name to plugin module
  3092. */
  3093. registrationNameModules: {},
  3094. /**
  3095. * Mapping from registration name to event name
  3096. */
  3097. registrationNameDependencies: {},
  3098. /**
  3099. * Mapping from lowercase registration names to the properly cased version,
  3100. * used to warn in the case of missing event handlers. Available
  3101. * only in __DEV__.
  3102. * @type {Object}
  3103. */
  3104. possibleRegistrationNames: process.env.NODE_ENV !== 'production' ? {} : null,
  3105. // Trust the developer to only use possibleRegistrationNames in __DEV__
  3106. /**
  3107. * Injects an ordering of plugins (by plugin name). This allows the ordering
  3108. * to be decoupled from injection of the actual plugins so that ordering is
  3109. * always deterministic regardless of packaging, on-the-fly injection, etc.
  3110. *
  3111. * @param {array} InjectedEventPluginOrder
  3112. * @internal
  3113. * @see {EventPluginHub.injection.injectEventPluginOrder}
  3114. */
  3115. injectEventPluginOrder: function (injectedEventPluginOrder) {
  3116. !!eventPluginOrder ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0;
  3117. // Clone the ordering so it cannot be dynamically mutated.
  3118. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  3119. recomputePluginOrdering();
  3120. },
  3121. /**
  3122. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  3123. * in the ordering injected by `injectEventPluginOrder`.
  3124. *
  3125. * Plugins can be injected as part of page initialization or on-the-fly.
  3126. *
  3127. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  3128. * @internal
  3129. * @see {EventPluginHub.injection.injectEventPluginsByName}
  3130. */
  3131. injectEventPluginsByName: function (injectedNamesToPlugins) {
  3132. var isOrderingDirty = false;
  3133. for (var pluginName in injectedNamesToPlugins) {
  3134. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  3135. continue;
  3136. }
  3137. var pluginModule = injectedNamesToPlugins[pluginName];
  3138. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  3139. !!namesToPlugins[pluginName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0;
  3140. namesToPlugins[pluginName] = pluginModule;
  3141. isOrderingDirty = true;
  3142. }
  3143. }
  3144. if (isOrderingDirty) {
  3145. recomputePluginOrdering();
  3146. }
  3147. },
  3148. /**
  3149. * Looks up the plugin for the supplied event.
  3150. *
  3151. * @param {object} event A synthetic event.
  3152. * @return {?object} The plugin that created the supplied event.
  3153. * @internal
  3154. */
  3155. getPluginModuleForEvent: function (event) {
  3156. var dispatchConfig = event.dispatchConfig;
  3157. if (dispatchConfig.registrationName) {
  3158. return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null;
  3159. }
  3160. if (dispatchConfig.phasedRegistrationNames !== undefined) {
  3161. // pulling phasedRegistrationNames out of dispatchConfig helps Flow see
  3162. // that it is not undefined.
  3163. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  3164. for (var phase in phasedRegistrationNames) {
  3165. if (!phasedRegistrationNames.hasOwnProperty(phase)) {
  3166. continue;
  3167. }
  3168. var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]];
  3169. if (pluginModule) {
  3170. return pluginModule;
  3171. }
  3172. }
  3173. }
  3174. return null;
  3175. },
  3176. /**
  3177. * Exposed for unit testing.
  3178. * @private
  3179. */
  3180. _resetEventPlugins: function () {
  3181. eventPluginOrder = null;
  3182. for (var pluginName in namesToPlugins) {
  3183. if (namesToPlugins.hasOwnProperty(pluginName)) {
  3184. delete namesToPlugins[pluginName];
  3185. }
  3186. }
  3187. EventPluginRegistry.plugins.length = 0;
  3188. var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs;
  3189. for (var eventName in eventNameDispatchConfigs) {
  3190. if (eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  3191. delete eventNameDispatchConfigs[eventName];
  3192. }
  3193. }
  3194. var registrationNameModules = EventPluginRegistry.registrationNameModules;
  3195. for (var registrationName in registrationNameModules) {
  3196. if (registrationNameModules.hasOwnProperty(registrationName)) {
  3197. delete registrationNameModules[registrationName];
  3198. }
  3199. }
  3200. if (process.env.NODE_ENV !== 'production') {
  3201. var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames;
  3202. for (var lowerCasedName in possibleRegistrationNames) {
  3203. if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) {
  3204. delete possibleRegistrationNames[lowerCasedName];
  3205. }
  3206. }
  3207. }
  3208. }
  3209. };
  3210. module.exports = EventPluginRegistry;
  3211. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  3212. /***/ }),
  3213. /* 28 */
  3214. /***/ (function(module, exports, __webpack_require__) {
  3215. "use strict";
  3216. /* WEBPACK VAR INJECTION */(function(process) {/**
  3217. * Copyright 2013-present, Facebook, Inc.
  3218. * All rights reserved.
  3219. *
  3220. * This source code is licensed under the BSD-style license found in the
  3221. * LICENSE file in the root directory of this source tree. An additional grant
  3222. * of patent rights can be found in the PATENTS file in the same directory.
  3223. *
  3224. *
  3225. */
  3226. var _prodInvariant = __webpack_require__(3);
  3227. var invariant = __webpack_require__(1);
  3228. var OBSERVED_ERROR = {};
  3229. /**
  3230. * `Transaction` creates a black box that is able to wrap any method such that
  3231. * certain invariants are maintained before and after the method is invoked
  3232. * (Even if an exception is thrown while invoking the wrapped method). Whoever
  3233. * instantiates a transaction can provide enforcers of the invariants at
  3234. * creation time. The `Transaction` class itself will supply one additional
  3235. * automatic invariant for you - the invariant that any transaction instance
  3236. * should not be run while it is already being run. You would typically create a
  3237. * single instance of a `Transaction` for reuse multiple times, that potentially
  3238. * is used to wrap several different methods. Wrappers are extremely simple -
  3239. * they only require implementing two methods.
  3240. *
  3241. * <pre>
  3242. * wrappers (injected at creation time)
  3243. * + +
  3244. * | |
  3245. * +-----------------|--------|--------------+
  3246. * | v | |
  3247. * | +---------------+ | |
  3248. * | +--| wrapper1 |---|----+ |
  3249. * | | +---------------+ v | |
  3250. * | | +-------------+ | |
  3251. * | | +----| wrapper2 |--------+ |
  3252. * | | | +-------------+ | | |
  3253. * | | | | | |
  3254. * | v v v v | wrapper
  3255. * | +---+ +---+ +---------+ +---+ +---+ | invariants
  3256. * perform(anyMethod) | | | | | | | | | | | | maintained
  3257. * +----------------->|-|---|-|---|-->|anyMethod|---|---|-|---|-|-------->
  3258. * | | | | | | | | | | | |
  3259. * | | | | | | | | | | | |
  3260. * | | | | | | | | | | | |
  3261. * | +---+ +---+ +---------+ +---+ +---+ |
  3262. * | initialize close |
  3263. * +-----------------------------------------+
  3264. * </pre>
  3265. *
  3266. * Use cases:
  3267. * - Preserving the input selection ranges before/after reconciliation.
  3268. * Restoring selection even in the event of an unexpected error.
  3269. * - Deactivating events while rearranging the DOM, preventing blurs/focuses,
  3270. * while guaranteeing that afterwards, the event system is reactivated.
  3271. * - Flushing a queue of collected DOM mutations to the main UI thread after a
  3272. * reconciliation takes place in a worker thread.
  3273. * - Invoking any collected `componentDidUpdate` callbacks after rendering new
  3274. * content.
  3275. * - (Future use case): Wrapping particular flushes of the `ReactWorker` queue
  3276. * to preserve the `scrollTop` (an automatic scroll aware DOM).
  3277. * - (Future use case): Layout calculations before and after DOM updates.
  3278. *
  3279. * Transactional plugin API:
  3280. * - A module that has an `initialize` method that returns any precomputation.
  3281. * - and a `close` method that accepts the precomputation. `close` is invoked
  3282. * when the wrapped process is completed, or has failed.
  3283. *
  3284. * @param {Array<TransactionalWrapper>} transactionWrapper Wrapper modules
  3285. * that implement `initialize` and `close`.
  3286. * @return {Transaction} Single transaction for reuse in thread.
  3287. *
  3288. * @class Transaction
  3289. */
  3290. var TransactionImpl = {
  3291. /**
  3292. * Sets up this instance so that it is prepared for collecting metrics. Does
  3293. * so such that this setup method may be used on an instance that is already
  3294. * initialized, in a way that does not consume additional memory upon reuse.
  3295. * That can be useful if you decide to make your subclass of this mixin a
  3296. * "PooledClass".
  3297. */
  3298. reinitializeTransaction: function () {
  3299. this.transactionWrappers = this.getTransactionWrappers();
  3300. if (this.wrapperInitData) {
  3301. this.wrapperInitData.length = 0;
  3302. } else {
  3303. this.wrapperInitData = [];
  3304. }
  3305. this._isInTransaction = false;
  3306. },
  3307. _isInTransaction: false,
  3308. /**
  3309. * @abstract
  3310. * @return {Array<TransactionWrapper>} Array of transaction wrappers.
  3311. */
  3312. getTransactionWrappers: null,
  3313. isInTransaction: function () {
  3314. return !!this._isInTransaction;
  3315. },
  3316. /**
  3317. * Executes the function within a safety window. Use this for the top level
  3318. * methods that result in large amounts of computation/mutations that would
  3319. * need to be safety checked. The optional arguments helps prevent the need
  3320. * to bind in many cases.
  3321. *
  3322. * @param {function} method Member of scope to call.
  3323. * @param {Object} scope Scope to invoke from.
  3324. * @param {Object?=} a Argument to pass to the method.
  3325. * @param {Object?=} b Argument to pass to the method.
  3326. * @param {Object?=} c Argument to pass to the method.
  3327. * @param {Object?=} d Argument to pass to the method.
  3328. * @param {Object?=} e Argument to pass to the method.
  3329. * @param {Object?=} f Argument to pass to the method.
  3330. *
  3331. * @return {*} Return value from `method`.
  3332. */
  3333. perform: function (method, scope, a, b, c, d, e, f) {
  3334. !!this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;
  3335. var errorThrown;
  3336. var ret;
  3337. try {
  3338. this._isInTransaction = true;
  3339. // Catching errors makes debugging more difficult, so we start with
  3340. // errorThrown set to true before setting it to false after calling
  3341. // close -- if it's still set to true in the finally block, it means
  3342. // one of these calls threw.
  3343. errorThrown = true;
  3344. this.initializeAll(0);
  3345. ret = method.call(scope, a, b, c, d, e, f);
  3346. errorThrown = false;
  3347. } finally {
  3348. try {
  3349. if (errorThrown) {
  3350. // If `method` throws, prefer to show that stack trace over any thrown
  3351. // by invoking `closeAll`.
  3352. try {
  3353. this.closeAll(0);
  3354. } catch (err) {}
  3355. } else {
  3356. // Since `method` didn't throw, we don't want to silence the exception
  3357. // here.
  3358. this.closeAll(0);
  3359. }
  3360. } finally {
  3361. this._isInTransaction = false;
  3362. }
  3363. }
  3364. return ret;
  3365. },
  3366. initializeAll: function (startIndex) {
  3367. var transactionWrappers = this.transactionWrappers;
  3368. for (var i = startIndex; i < transactionWrappers.length; i++) {
  3369. var wrapper = transactionWrappers[i];
  3370. try {
  3371. // Catching errors makes debugging more difficult, so we start with the
  3372. // OBSERVED_ERROR state before overwriting it with the real return value
  3373. // of initialize -- if it's still set to OBSERVED_ERROR in the finally
  3374. // block, it means wrapper.initialize threw.
  3375. this.wrapperInitData[i] = OBSERVED_ERROR;
  3376. this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null;
  3377. } finally {
  3378. if (this.wrapperInitData[i] === OBSERVED_ERROR) {
  3379. // The initializer for wrapper i threw an error; initialize the
  3380. // remaining wrappers but silence any exceptions from them to ensure
  3381. // that the first error is the one to bubble up.
  3382. try {
  3383. this.initializeAll(i + 1);
  3384. } catch (err) {}
  3385. }
  3386. }
  3387. }
  3388. },
  3389. /**
  3390. * Invokes each of `this.transactionWrappers.close[i]` functions, passing into
  3391. * them the respective return values of `this.transactionWrappers.init[i]`
  3392. * (`close`rs that correspond to initializers that failed will not be
  3393. * invoked).
  3394. */
  3395. closeAll: function (startIndex) {
  3396. !this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0;
  3397. var transactionWrappers = this.transactionWrappers;
  3398. for (var i = startIndex; i < transactionWrappers.length; i++) {
  3399. var wrapper = transactionWrappers[i];
  3400. var initData = this.wrapperInitData[i];
  3401. var errorThrown;
  3402. try {
  3403. // Catching errors makes debugging more difficult, so we start with
  3404. // errorThrown set to true before setting it to false after calling
  3405. // close -- if it's still set to true in the finally block, it means
  3406. // wrapper.close threw.
  3407. errorThrown = true;
  3408. if (initData !== OBSERVED_ERROR && wrapper.close) {
  3409. wrapper.close.call(this, initData);
  3410. }
  3411. errorThrown = false;
  3412. } finally {
  3413. if (errorThrown) {
  3414. // The closer for wrapper i threw an error; close the remaining
  3415. // wrappers but silence any exceptions from them to ensure that the
  3416. // first error is the one to bubble up.
  3417. try {
  3418. this.closeAll(i + 1);
  3419. } catch (e) {}
  3420. }
  3421. }
  3422. }
  3423. this.wrapperInitData.length = 0;
  3424. }
  3425. };
  3426. module.exports = TransactionImpl;
  3427. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  3428. /***/ }),
  3429. /* 29 */
  3430. /***/ (function(module, exports, __webpack_require__) {
  3431. "use strict";
  3432. /**
  3433. * Copyright 2013-present, Facebook, Inc.
  3434. * All rights reserved.
  3435. *
  3436. * This source code is licensed under the BSD-style license found in the
  3437. * LICENSE file in the root directory of this source tree. An additional grant
  3438. * of patent rights can be found in the PATENTS file in the same directory.
  3439. *
  3440. */
  3441. var SyntheticUIEvent = __webpack_require__(23);
  3442. var ViewportMetrics = __webpack_require__(63);
  3443. var getEventModifierState = __webpack_require__(39);
  3444. /**
  3445. * @interface MouseEvent
  3446. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  3447. */
  3448. var MouseEventInterface = {
  3449. screenX: null,
  3450. screenY: null,
  3451. clientX: null,
  3452. clientY: null,
  3453. ctrlKey: null,
  3454. shiftKey: null,
  3455. altKey: null,
  3456. metaKey: null,
  3457. getModifierState: getEventModifierState,
  3458. button: function (event) {
  3459. // Webkit, Firefox, IE9+
  3460. // which: 1 2 3
  3461. // button: 0 1 2 (standard)
  3462. var button = event.button;
  3463. if ('which' in event) {
  3464. return button;
  3465. }
  3466. // IE<9
  3467. // which: undefined
  3468. // button: 0 0 0
  3469. // button: 1 4 2 (onmouseup)
  3470. return button === 2 ? 2 : button === 4 ? 1 : 0;
  3471. },
  3472. buttons: null,
  3473. relatedTarget: function (event) {
  3474. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  3475. },
  3476. // "Proprietary" Interface.
  3477. pageX: function (event) {
  3478. return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft;
  3479. },
  3480. pageY: function (event) {
  3481. return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop;
  3482. }
  3483. };
  3484. /**
  3485. * @param {object} dispatchConfig Configuration used to dispatch this event.
  3486. * @param {string} dispatchMarker Marker identifying the event target.
  3487. * @param {object} nativeEvent Native browser event.
  3488. * @extends {SyntheticUIEvent}
  3489. */
  3490. function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  3491. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  3492. }
  3493. SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);
  3494. module.exports = SyntheticMouseEvent;
  3495. /***/ }),
  3496. /* 30 */
  3497. /***/ (function(module, exports, __webpack_require__) {
  3498. "use strict";
  3499. /**
  3500. * Copyright 2013-present, Facebook, Inc.
  3501. * All rights reserved.
  3502. *
  3503. * This source code is licensed under the BSD-style license found in the
  3504. * LICENSE file in the root directory of this source tree. An additional grant
  3505. * of patent rights can be found in the PATENTS file in the same directory.
  3506. *
  3507. */
  3508. var ExecutionEnvironment = __webpack_require__(6);
  3509. var DOMNamespaces = __webpack_require__(41);
  3510. var WHITESPACE_TEST = /^[ \r\n\t\f]/;
  3511. var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/;
  3512. var createMicrosoftUnsafeLocalFunction = __webpack_require__(42);
  3513. // SVG temp container for IE lacking innerHTML
  3514. var reusableSVGContainer;
  3515. /**
  3516. * Set the innerHTML property of a node, ensuring that whitespace is preserved
  3517. * even in IE8.
  3518. *
  3519. * @param {DOMElement} node
  3520. * @param {string} html
  3521. * @internal
  3522. */
  3523. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  3524. // IE does not have innerHTML for SVG nodes, so instead we inject the
  3525. // new markup in a temp node and then move the child nodes across into
  3526. // the target node
  3527. if (node.namespaceURI === DOMNamespaces.svg && !('innerHTML' in node)) {
  3528. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  3529. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  3530. var svgNode = reusableSVGContainer.firstChild;
  3531. while (svgNode.firstChild) {
  3532. node.appendChild(svgNode.firstChild);
  3533. }
  3534. } else {
  3535. node.innerHTML = html;
  3536. }
  3537. });
  3538. if (ExecutionEnvironment.canUseDOM) {
  3539. // IE8: When updating a just created node with innerHTML only leading
  3540. // whitespace is removed. When updating an existing node with innerHTML
  3541. // whitespace in root TextNodes is also collapsed.
  3542. // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html
  3543. // Feature detection; only IE8 is known to behave improperly like this.
  3544. var testElement = document.createElement('div');
  3545. testElement.innerHTML = ' ';
  3546. if (testElement.innerHTML === '') {
  3547. setInnerHTML = function (node, html) {
  3548. // Magic theory: IE8 supposedly differentiates between added and updated
  3549. // nodes when processing innerHTML, innerHTML on updated nodes suffers
  3550. // from worse whitespace behavior. Re-adding a node like this triggers
  3551. // the initial and more favorable whitespace behavior.
  3552. // TODO: What to do on a detached node?
  3553. if (node.parentNode) {
  3554. node.parentNode.replaceChild(node, node);
  3555. }
  3556. // We also implement a workaround for non-visible tags disappearing into
  3557. // thin air on IE8, this only happens if there is no visible text
  3558. // in-front of the non-visible tags. Piggyback on the whitespace fix
  3559. // and simply check if any non-visible tags appear in the source.
  3560. if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) {
  3561. // Recover leading whitespace by temporarily prepending any character.
  3562. // \uFEFF has the potential advantage of being zero-width/invisible.
  3563. // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode
  3564. // in hopes that this is preserved even if "\uFEFF" is transformed to
  3565. // the actual Unicode character (by Babel, for example).
  3566. // https://github.com/mishoo/UglifyJS2/blob/v2.4.20/lib/parse.js#L216
  3567. node.innerHTML = String.fromCharCode(0xFEFF) + html;
  3568. // deleteData leaves an empty `TextNode` which offsets the index of all
  3569. // children. Definitely want to avoid this.
  3570. var textNode = node.firstChild;
  3571. if (textNode.data.length === 1) {
  3572. node.removeChild(textNode);
  3573. } else {
  3574. textNode.deleteData(0, 1);
  3575. }
  3576. } else {
  3577. node.innerHTML = html;
  3578. }
  3579. };
  3580. }
  3581. testElement = null;
  3582. }
  3583. module.exports = setInnerHTML;
  3584. /***/ }),
  3585. /* 31 */
  3586. /***/ (function(module, exports, __webpack_require__) {
  3587. "use strict";
  3588. /**
  3589. * Copyright 2016-present, Facebook, Inc.
  3590. * All rights reserved.
  3591. *
  3592. * This source code is licensed under the BSD-style license found in the
  3593. * LICENSE file in the root directory of this source tree. An additional grant
  3594. * of patent rights can be found in the PATENTS file in the same directory.
  3595. *
  3596. * Based on the escape-html library, which is used under the MIT License below:
  3597. *
  3598. * Copyright (c) 2012-2013 TJ Holowaychuk
  3599. * Copyright (c) 2015 Andreas Lubbe
  3600. * Copyright (c) 2015 Tiancheng "Timothy" Gu
  3601. *
  3602. * Permission is hereby granted, free of charge, to any person obtaining
  3603. * a copy of this software and associated documentation files (the
  3604. * 'Software'), to deal in the Software without restriction, including
  3605. * without limitation the rights to use, copy, modify, merge, publish,
  3606. * distribute, sublicense, and/or sell copies of the Software, and to
  3607. * permit persons to whom the Software is furnished to do so, subject to
  3608. * the following conditions:
  3609. *
  3610. * The above copyright notice and this permission notice shall be
  3611. * included in all copies or substantial portions of the Software.
  3612. *
  3613. * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  3614. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  3615. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  3616. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  3617. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  3618. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  3619. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  3620. *
  3621. */
  3622. // code copied and modified from escape-html
  3623. /**
  3624. * Module variables.
  3625. * @private
  3626. */
  3627. var matchHtmlRegExp = /["'&<>]/;
  3628. /**
  3629. * Escape special characters in the given string of html.
  3630. *
  3631. * @param {string} string The string to escape for inserting into HTML
  3632. * @return {string}
  3633. * @public
  3634. */
  3635. function escapeHtml(string) {
  3636. var str = '' + string;
  3637. var match = matchHtmlRegExp.exec(str);
  3638. if (!match) {
  3639. return str;
  3640. }
  3641. var escape;
  3642. var html = '';
  3643. var index = 0;
  3644. var lastIndex = 0;
  3645. for (index = match.index; index < str.length; index++) {
  3646. switch (str.charCodeAt(index)) {
  3647. case 34:
  3648. // "
  3649. escape = '&quot;';
  3650. break;
  3651. case 38:
  3652. // &
  3653. escape = '&amp;';
  3654. break;
  3655. case 39:
  3656. // '
  3657. escape = '&#x27;'; // modified from escape-html; used to be '&#39'
  3658. break;
  3659. case 60:
  3660. // <
  3661. escape = '&lt;';
  3662. break;
  3663. case 62:
  3664. // >
  3665. escape = '&gt;';
  3666. break;
  3667. default:
  3668. continue;
  3669. }
  3670. if (lastIndex !== index) {
  3671. html += str.substring(lastIndex, index);
  3672. }
  3673. lastIndex = index + 1;
  3674. html += escape;
  3675. }
  3676. return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
  3677. }
  3678. // end code copied and modified from escape-html
  3679. /**
  3680. * Escapes text to prevent scripting attacks.
  3681. *
  3682. * @param {*} text Text value to escape.
  3683. * @return {string} An escaped string.
  3684. */
  3685. function escapeTextContentForBrowser(text) {
  3686. if (typeof text === 'boolean' || typeof text === 'number') {
  3687. // this shortcircuit helps perf for types that we know will never have
  3688. // special characters, especially given that this function is used often
  3689. // for numeric dom ids.
  3690. return '' + text;
  3691. }
  3692. return escapeHtml(text);
  3693. }
  3694. module.exports = escapeTextContentForBrowser;
  3695. /***/ }),
  3696. /* 32 */
  3697. /***/ (function(module, exports, __webpack_require__) {
  3698. "use strict";
  3699. /**
  3700. * Copyright 2013-present, Facebook, Inc.
  3701. * All rights reserved.
  3702. *
  3703. * This source code is licensed under the BSD-style license found in the
  3704. * LICENSE file in the root directory of this source tree. An additional grant
  3705. * of patent rights can be found in the PATENTS file in the same directory.
  3706. *
  3707. */
  3708. var _assign = __webpack_require__(4);
  3709. var EventPluginRegistry = __webpack_require__(27);
  3710. var ReactEventEmitterMixin = __webpack_require__(136);
  3711. var ViewportMetrics = __webpack_require__(63);
  3712. var getVendorPrefixedEventName = __webpack_require__(137);
  3713. var isEventSupported = __webpack_require__(38);
  3714. /**
  3715. * Summary of `ReactBrowserEventEmitter` event handling:
  3716. *
  3717. * - Top-level delegation is used to trap most native browser events. This
  3718. * may only occur in the main thread and is the responsibility of
  3719. * ReactEventListener, which is injected and can therefore support pluggable
  3720. * event sources. This is the only work that occurs in the main thread.
  3721. *
  3722. * - We normalize and de-duplicate events to account for browser quirks. This
  3723. * may be done in the worker thread.
  3724. *
  3725. * - Forward these native events (with the associated top-level type used to
  3726. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  3727. * to extract any synthetic events.
  3728. *
  3729. * - The `EventPluginHub` will then process each event by annotating them with
  3730. * "dispatches", a sequence of listeners and IDs that care about that event.
  3731. *
  3732. * - The `EventPluginHub` then dispatches the events.
  3733. *
  3734. * Overview of React and the event system:
  3735. *
  3736. * +------------+ .
  3737. * | DOM | .
  3738. * +------------+ .
  3739. * | .
  3740. * v .
  3741. * +------------+ .
  3742. * | ReactEvent | .
  3743. * | Listener | .
  3744. * +------------+ . +-----------+
  3745. * | . +--------+|SimpleEvent|
  3746. * | . | |Plugin |
  3747. * +-----|------+ . v +-----------+
  3748. * | | | . +--------------+ +------------+
  3749. * | +-----------.--->|EventPluginHub| | Event |
  3750. * | | . | | +-----------+ | Propagators|
  3751. * | ReactEvent | . | | |TapEvent | |------------|
  3752. * | Emitter | . | |<---+|Plugin | |other plugin|
  3753. * | | . | | +-----------+ | utilities |
  3754. * | +-----------.--->| | +------------+
  3755. * | | | . +--------------+
  3756. * +-----|------+ . ^ +-----------+
  3757. * | . | |Enter/Leave|
  3758. * + . +-------+|Plugin |
  3759. * +-------------+ . +-----------+
  3760. * | application | .
  3761. * |-------------| .
  3762. * | | .
  3763. * | | .
  3764. * +-------------+ .
  3765. * .
  3766. * React Core . General Purpose Event Plugin System
  3767. */
  3768. var hasEventPageXY;
  3769. var alreadyListeningTo = {};
  3770. var isMonitoringScrollValue = false;
  3771. var reactTopListenersCounter = 0;
  3772. // For events like 'submit' which don't consistently bubble (which we trap at a
  3773. // lower node than `document`), binding at `document` would cause duplicate
  3774. // events so we don't include them here
  3775. var topEventMapping = {
  3776. topAbort: 'abort',
  3777. topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend',
  3778. topAnimationIteration: getVendorPrefixedEventName('animationiteration') || 'animationiteration',
  3779. topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart',
  3780. topBlur: 'blur',
  3781. topCanPlay: 'canplay',
  3782. topCanPlayThrough: 'canplaythrough',
  3783. topChange: 'change',
  3784. topClick: 'click',
  3785. topCompositionEnd: 'compositionend',
  3786. topCompositionStart: 'compositionstart',
  3787. topCompositionUpdate: 'compositionupdate',
  3788. topContextMenu: 'contextmenu',
  3789. topCopy: 'copy',
  3790. topCut: 'cut',
  3791. topDoubleClick: 'dblclick',
  3792. topDrag: 'drag',
  3793. topDragEnd: 'dragend',
  3794. topDragEnter: 'dragenter',
  3795. topDragExit: 'dragexit',
  3796. topDragLeave: 'dragleave',
  3797. topDragOver: 'dragover',
  3798. topDragStart: 'dragstart',
  3799. topDrop: 'drop',
  3800. topDurationChange: 'durationchange',
  3801. topEmptied: 'emptied',
  3802. topEncrypted: 'encrypted',
  3803. topEnded: 'ended',
  3804. topError: 'error',
  3805. topFocus: 'focus',
  3806. topInput: 'input',
  3807. topKeyDown: 'keydown',
  3808. topKeyPress: 'keypress',
  3809. topKeyUp: 'keyup',
  3810. topLoadedData: 'loadeddata',
  3811. topLoadedMetadata: 'loadedmetadata',
  3812. topLoadStart: 'loadstart',
  3813. topMouseDown: 'mousedown',
  3814. topMouseMove: 'mousemove',
  3815. topMouseOut: 'mouseout',
  3816. topMouseOver: 'mouseover',
  3817. topMouseUp: 'mouseup',
  3818. topPaste: 'paste',
  3819. topPause: 'pause',
  3820. topPlay: 'play',
  3821. topPlaying: 'playing',
  3822. topProgress: 'progress',
  3823. topRateChange: 'ratechange',
  3824. topScroll: 'scroll',
  3825. topSeeked: 'seeked',
  3826. topSeeking: 'seeking',
  3827. topSelectionChange: 'selectionchange',
  3828. topStalled: 'stalled',
  3829. topSuspend: 'suspend',
  3830. topTextInput: 'textInput',
  3831. topTimeUpdate: 'timeupdate',
  3832. topTouchCancel: 'touchcancel',
  3833. topTouchEnd: 'touchend',
  3834. topTouchMove: 'touchmove',
  3835. topTouchStart: 'touchstart',
  3836. topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend',
  3837. topVolumeChange: 'volumechange',
  3838. topWaiting: 'waiting',
  3839. topWheel: 'wheel'
  3840. };
  3841. /**
  3842. * To ensure no conflicts with other potential React instances on the page
  3843. */
  3844. var topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2);
  3845. function getListeningForDocument(mountAt) {
  3846. // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
  3847. // directly.
  3848. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
  3849. mountAt[topListenersIDKey] = reactTopListenersCounter++;
  3850. alreadyListeningTo[mountAt[topListenersIDKey]] = {};
  3851. }
  3852. return alreadyListeningTo[mountAt[topListenersIDKey]];
  3853. }
  3854. /**
  3855. * `ReactBrowserEventEmitter` is used to attach top-level event listeners. For
  3856. * example:
  3857. *
  3858. * EventPluginHub.putListener('myID', 'onClick', myFunction);
  3859. *
  3860. * This would allocate a "registration" of `('onClick', myFunction)` on 'myID'.
  3861. *
  3862. * @internal
  3863. */
  3864. var ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, {
  3865. /**
  3866. * Injectable event backend
  3867. */
  3868. ReactEventListener: null,
  3869. injection: {
  3870. /**
  3871. * @param {object} ReactEventListener
  3872. */
  3873. injectReactEventListener: function (ReactEventListener) {
  3874. ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel);
  3875. ReactBrowserEventEmitter.ReactEventListener = ReactEventListener;
  3876. }
  3877. },
  3878. /**
  3879. * Sets whether or not any created callbacks should be enabled.
  3880. *
  3881. * @param {boolean} enabled True if callbacks should be enabled.
  3882. */
  3883. setEnabled: function (enabled) {
  3884. if (ReactBrowserEventEmitter.ReactEventListener) {
  3885. ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled);
  3886. }
  3887. },
  3888. /**
  3889. * @return {boolean} True if callbacks are enabled.
  3890. */
  3891. isEnabled: function () {
  3892. return !!(ReactBrowserEventEmitter.ReactEventListener && ReactBrowserEventEmitter.ReactEventListener.isEnabled());
  3893. },
  3894. /**
  3895. * We listen for bubbled touch events on the document object.
  3896. *
  3897. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  3898. * mounting `onmousemove` events at some node that was not the document
  3899. * element. The symptoms were that if your mouse is not moving over something
  3900. * contained within that mount point (for example on the background) the
  3901. * top-level listeners for `onmousemove` won't be called. However, if you
  3902. * register the `mousemove` on the document object, then it will of course
  3903. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  3904. * top-level listeners to the document object only, at least for these
  3905. * movement types of events and possibly all events.
  3906. *
  3907. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  3908. *
  3909. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  3910. * they bubble to document.
  3911. *
  3912. * @param {string} registrationName Name of listener (e.g. `onClick`).
  3913. * @param {object} contentDocumentHandle Document which owns the container
  3914. */
  3915. listenTo: function (registrationName, contentDocumentHandle) {
  3916. var mountAt = contentDocumentHandle;
  3917. var isListening = getListeningForDocument(mountAt);
  3918. var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName];
  3919. for (var i = 0; i < dependencies.length; i++) {
  3920. var dependency = dependencies[i];
  3921. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  3922. if (dependency === 'topWheel') {
  3923. if (isEventSupported('wheel')) {
  3924. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'wheel', mountAt);
  3925. } else if (isEventSupported('mousewheel')) {
  3926. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'mousewheel', mountAt);
  3927. } else {
  3928. // Firefox needs to capture a different mouse scroll event.
  3929. // @see http://www.quirksmode.org/dom/events/tests/scroll.html
  3930. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'DOMMouseScroll', mountAt);
  3931. }
  3932. } else if (dependency === 'topScroll') {
  3933. if (isEventSupported('scroll', true)) {
  3934. ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topScroll', 'scroll', mountAt);
  3935. } else {
  3936. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topScroll', 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE);
  3937. }
  3938. } else if (dependency === 'topFocus' || dependency === 'topBlur') {
  3939. if (isEventSupported('focus', true)) {
  3940. ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topFocus', 'focus', mountAt);
  3941. ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topBlur', 'blur', mountAt);
  3942. } else if (isEventSupported('focusin')) {
  3943. // IE has `focusin` and `focusout` events which bubble.
  3944. // @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html
  3945. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topFocus', 'focusin', mountAt);
  3946. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topBlur', 'focusout', mountAt);
  3947. }
  3948. // to make sure blur and focus event listeners are only attached once
  3949. isListening.topBlur = true;
  3950. isListening.topFocus = true;
  3951. } else if (topEventMapping.hasOwnProperty(dependency)) {
  3952. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt);
  3953. }
  3954. isListening[dependency] = true;
  3955. }
  3956. }
  3957. },
  3958. trapBubbledEvent: function (topLevelType, handlerBaseName, handle) {
  3959. return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType, handlerBaseName, handle);
  3960. },
  3961. trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
  3962. return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType, handlerBaseName, handle);
  3963. },
  3964. /**
  3965. * Protect against document.createEvent() returning null
  3966. * Some popup blocker extensions appear to do this:
  3967. * https://github.com/facebook/react/issues/6887
  3968. */
  3969. supportsEventPageXY: function () {
  3970. if (!document.createEvent) {
  3971. return false;
  3972. }
  3973. var ev = document.createEvent('MouseEvent');
  3974. return ev != null && 'pageX' in ev;
  3975. },
  3976. /**
  3977. * Listens to window scroll and resize events. We cache scroll values so that
  3978. * application code can access them without triggering reflows.
  3979. *
  3980. * ViewportMetrics is only used by SyntheticMouse/TouchEvent and only when
  3981. * pageX/pageY isn't supported (legacy browsers).
  3982. *
  3983. * NOTE: Scroll events do not bubble.
  3984. *
  3985. * @see http://www.quirksmode.org/dom/events/scroll.html
  3986. */
  3987. ensureScrollValueMonitoring: function () {
  3988. if (hasEventPageXY === undefined) {
  3989. hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY();
  3990. }
  3991. if (!hasEventPageXY && !isMonitoringScrollValue) {
  3992. var refresh = ViewportMetrics.refreshScrollValues;
  3993. ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh);
  3994. isMonitoringScrollValue = true;
  3995. }
  3996. }
  3997. });
  3998. module.exports = ReactBrowserEventEmitter;
  3999. /***/ }),
  4000. /* 33 */
  4001. /***/ (function(module, exports, __webpack_require__) {
  4002. "use strict";
  4003. /* WEBPACK VAR INJECTION */(function(process) {/**
  4004. * Copyright 2013-present, Facebook, Inc.
  4005. * All rights reserved.
  4006. *
  4007. * This source code is licensed under the BSD-style license found in the
  4008. * LICENSE file in the root directory of this source tree. An additional grant
  4009. * of patent rights can be found in the PATENTS file in the same directory.
  4010. *
  4011. */
  4012. var _prodInvariant = __webpack_require__(14);
  4013. var ReactNoopUpdateQueue = __webpack_require__(34);
  4014. var canDefineProperty = __webpack_require__(26);
  4015. var emptyObject = __webpack_require__(20);
  4016. var invariant = __webpack_require__(1);
  4017. var warning = __webpack_require__(2);
  4018. /**
  4019. * Base class helpers for the updating state of a component.
  4020. */
  4021. function ReactComponent(props, context, updater) {
  4022. this.props = props;
  4023. this.context = context;
  4024. this.refs = emptyObject;
  4025. // We initialize the default updater but the real one gets injected by the
  4026. // renderer.
  4027. this.updater = updater || ReactNoopUpdateQueue;
  4028. }
  4029. ReactComponent.prototype.isReactComponent = {};
  4030. /**
  4031. * Sets a subset of the state. Always use this to mutate
  4032. * state. You should treat `this.state` as immutable.
  4033. *
  4034. * There is no guarantee that `this.state` will be immediately updated, so
  4035. * accessing `this.state` after calling this method may return the old value.
  4036. *
  4037. * There is no guarantee that calls to `setState` will run synchronously,
  4038. * as they may eventually be batched together. You can provide an optional
  4039. * callback that will be executed when the call to setState is actually
  4040. * completed.
  4041. *
  4042. * When a function is provided to setState, it will be called at some point in
  4043. * the future (not synchronously). It will be called with the up to date
  4044. * component arguments (state, props, context). These values can be different
  4045. * from this.* because your function may be called after receiveProps but before
  4046. * shouldComponentUpdate, and this new state, props, and context will not yet be
  4047. * assigned to this.
  4048. *
  4049. * @param {object|function} partialState Next partial state or function to
  4050. * produce next partial state to be merged with current state.
  4051. * @param {?function} callback Called after state is updated.
  4052. * @final
  4053. * @protected
  4054. */
  4055. ReactComponent.prototype.setState = function (partialState, callback) {
  4056. !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
  4057. this.updater.enqueueSetState(this, partialState);
  4058. if (callback) {
  4059. this.updater.enqueueCallback(this, callback, 'setState');
  4060. }
  4061. };
  4062. /**
  4063. * Forces an update. This should only be invoked when it is known with
  4064. * certainty that we are **not** in a DOM transaction.
  4065. *
  4066. * You may want to call this when you know that some deeper aspect of the
  4067. * component's state has changed but `setState` was not called.
  4068. *
  4069. * This will not invoke `shouldComponentUpdate`, but it will invoke
  4070. * `componentWillUpdate` and `componentDidUpdate`.
  4071. *
  4072. * @param {?function} callback Called after update is complete.
  4073. * @final
  4074. * @protected
  4075. */
  4076. ReactComponent.prototype.forceUpdate = function (callback) {
  4077. this.updater.enqueueForceUpdate(this);
  4078. if (callback) {
  4079. this.updater.enqueueCallback(this, callback, 'forceUpdate');
  4080. }
  4081. };
  4082. /**
  4083. * Deprecated APIs. These APIs used to exist on classic React classes but since
  4084. * we would like to deprecate them, we're not going to move them over to this
  4085. * modern base class. Instead, we define a getter that warns if it's accessed.
  4086. */
  4087. if (process.env.NODE_ENV !== 'production') {
  4088. var deprecatedAPIs = {
  4089. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  4090. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  4091. };
  4092. var defineDeprecationWarning = function (methodName, info) {
  4093. if (canDefineProperty) {
  4094. Object.defineProperty(ReactComponent.prototype, methodName, {
  4095. get: function () {
  4096. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
  4097. return undefined;
  4098. }
  4099. });
  4100. }
  4101. };
  4102. for (var fnName in deprecatedAPIs) {
  4103. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  4104. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  4105. }
  4106. }
  4107. }
  4108. module.exports = ReactComponent;
  4109. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4110. /***/ }),
  4111. /* 34 */
  4112. /***/ (function(module, exports, __webpack_require__) {
  4113. "use strict";
  4114. /* WEBPACK VAR INJECTION */(function(process) {/**
  4115. * Copyright 2015-present, Facebook, Inc.
  4116. * All rights reserved.
  4117. *
  4118. * This source code is licensed under the BSD-style license found in the
  4119. * LICENSE file in the root directory of this source tree. An additional grant
  4120. * of patent rights can be found in the PATENTS file in the same directory.
  4121. *
  4122. */
  4123. var warning = __webpack_require__(2);
  4124. function warnNoop(publicInstance, callerName) {
  4125. if (process.env.NODE_ENV !== 'production') {
  4126. var constructor = publicInstance.constructor;
  4127. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
  4128. }
  4129. }
  4130. /**
  4131. * This is the abstract API for an update queue.
  4132. */
  4133. var ReactNoopUpdateQueue = {
  4134. /**
  4135. * Checks whether or not this composite component is mounted.
  4136. * @param {ReactClass} publicInstance The instance we want to test.
  4137. * @return {boolean} True if mounted, false otherwise.
  4138. * @protected
  4139. * @final
  4140. */
  4141. isMounted: function (publicInstance) {
  4142. return false;
  4143. },
  4144. /**
  4145. * Enqueue a callback that will be executed after all the pending updates
  4146. * have processed.
  4147. *
  4148. * @param {ReactClass} publicInstance The instance to use as `this` context.
  4149. * @param {?function} callback Called after state is updated.
  4150. * @internal
  4151. */
  4152. enqueueCallback: function (publicInstance, callback) {},
  4153. /**
  4154. * Forces an update. This should only be invoked when it is known with
  4155. * certainty that we are **not** in a DOM transaction.
  4156. *
  4157. * You may want to call this when you know that some deeper aspect of the
  4158. * component's state has changed but `setState` was not called.
  4159. *
  4160. * This will not invoke `shouldComponentUpdate`, but it will invoke
  4161. * `componentWillUpdate` and `componentDidUpdate`.
  4162. *
  4163. * @param {ReactClass} publicInstance The instance that should rerender.
  4164. * @internal
  4165. */
  4166. enqueueForceUpdate: function (publicInstance) {
  4167. warnNoop(publicInstance, 'forceUpdate');
  4168. },
  4169. /**
  4170. * Replaces all of the state. Always use this or `setState` to mutate state.
  4171. * You should treat `this.state` as immutable.
  4172. *
  4173. * There is no guarantee that `this.state` will be immediately updated, so
  4174. * accessing `this.state` after calling this method may return the old value.
  4175. *
  4176. * @param {ReactClass} publicInstance The instance that should rerender.
  4177. * @param {object} completeState Next state.
  4178. * @internal
  4179. */
  4180. enqueueReplaceState: function (publicInstance, completeState) {
  4181. warnNoop(publicInstance, 'replaceState');
  4182. },
  4183. /**
  4184. * Sets a subset of the state. This only exists because _pendingState is
  4185. * internal. This provides a merging strategy that is not available to deep
  4186. * properties which is confusing. TODO: Expose pendingState or don't use it
  4187. * during the merge.
  4188. *
  4189. * @param {ReactClass} publicInstance The instance that should rerender.
  4190. * @param {object} partialState Next partial state to be merged with state.
  4191. * @internal
  4192. */
  4193. enqueueSetState: function (publicInstance, partialState) {
  4194. warnNoop(publicInstance, 'setState');
  4195. }
  4196. };
  4197. module.exports = ReactNoopUpdateQueue;
  4198. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4199. /***/ }),
  4200. /* 35 */
  4201. /***/ (function(module, exports, __webpack_require__) {
  4202. "use strict";
  4203. /* WEBPACK VAR INJECTION */(function(process) {/**
  4204. * Copyright 2013-present, Facebook, Inc.
  4205. * All rights reserved.
  4206. *
  4207. * This source code is licensed under the BSD-style license found in the
  4208. * LICENSE file in the root directory of this source tree. An additional grant
  4209. * of patent rights can be found in the PATENTS file in the same directory.
  4210. *
  4211. */
  4212. var _prodInvariant = __webpack_require__(3);
  4213. var ReactErrorUtils = __webpack_require__(36);
  4214. var invariant = __webpack_require__(1);
  4215. var warning = __webpack_require__(2);
  4216. /**
  4217. * Injected dependencies:
  4218. */
  4219. /**
  4220. * - `ComponentTree`: [required] Module that can convert between React instances
  4221. * and actual node references.
  4222. */
  4223. var ComponentTree;
  4224. var TreeTraversal;
  4225. var injection = {
  4226. injectComponentTree: function (Injected) {
  4227. ComponentTree = Injected;
  4228. if (process.env.NODE_ENV !== 'production') {
  4229. process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  4230. }
  4231. },
  4232. injectTreeTraversal: function (Injected) {
  4233. TreeTraversal = Injected;
  4234. if (process.env.NODE_ENV !== 'production') {
  4235. process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0;
  4236. }
  4237. }
  4238. };
  4239. function isEndish(topLevelType) {
  4240. return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel';
  4241. }
  4242. function isMoveish(topLevelType) {
  4243. return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove';
  4244. }
  4245. function isStartish(topLevelType) {
  4246. return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart';
  4247. }
  4248. var validateEventDispatches;
  4249. if (process.env.NODE_ENV !== 'production') {
  4250. validateEventDispatches = function (event) {
  4251. var dispatchListeners = event._dispatchListeners;
  4252. var dispatchInstances = event._dispatchInstances;
  4253. var listenersIsArr = Array.isArray(dispatchListeners);
  4254. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  4255. var instancesIsArr = Array.isArray(dispatchInstances);
  4256. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  4257. process.env.NODE_ENV !== 'production' ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0;
  4258. };
  4259. }
  4260. /**
  4261. * Dispatch the event to the listener.
  4262. * @param {SyntheticEvent} event SyntheticEvent to handle
  4263. * @param {boolean} simulated If the event is simulated (changes exn behavior)
  4264. * @param {function} listener Application-level callback
  4265. * @param {*} inst Internal component instance
  4266. */
  4267. function executeDispatch(event, simulated, listener, inst) {
  4268. var type = event.type || 'unknown-event';
  4269. event.currentTarget = EventPluginUtils.getNodeFromInstance(inst);
  4270. if (simulated) {
  4271. ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event);
  4272. } else {
  4273. ReactErrorUtils.invokeGuardedCallback(type, listener, event);
  4274. }
  4275. event.currentTarget = null;
  4276. }
  4277. /**
  4278. * Standard/simple iteration through an event's collected dispatches.
  4279. */
  4280. function executeDispatchesInOrder(event, simulated) {
  4281. var dispatchListeners = event._dispatchListeners;
  4282. var dispatchInstances = event._dispatchInstances;
  4283. if (process.env.NODE_ENV !== 'production') {
  4284. validateEventDispatches(event);
  4285. }
  4286. if (Array.isArray(dispatchListeners)) {
  4287. for (var i = 0; i < dispatchListeners.length; i++) {
  4288. if (event.isPropagationStopped()) {
  4289. break;
  4290. }
  4291. // Listeners and Instances are two parallel arrays that are always in sync.
  4292. executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]);
  4293. }
  4294. } else if (dispatchListeners) {
  4295. executeDispatch(event, simulated, dispatchListeners, dispatchInstances);
  4296. }
  4297. event._dispatchListeners = null;
  4298. event._dispatchInstances = null;
  4299. }
  4300. /**
  4301. * Standard/simple iteration through an event's collected dispatches, but stops
  4302. * at the first dispatch execution returning true, and returns that id.
  4303. *
  4304. * @return {?string} id of the first dispatch execution who's listener returns
  4305. * true, or null if no listener returned true.
  4306. */
  4307. function executeDispatchesInOrderStopAtTrueImpl(event) {
  4308. var dispatchListeners = event._dispatchListeners;
  4309. var dispatchInstances = event._dispatchInstances;
  4310. if (process.env.NODE_ENV !== 'production') {
  4311. validateEventDispatches(event);
  4312. }
  4313. if (Array.isArray(dispatchListeners)) {
  4314. for (var i = 0; i < dispatchListeners.length; i++) {
  4315. if (event.isPropagationStopped()) {
  4316. break;
  4317. }
  4318. // Listeners and Instances are two parallel arrays that are always in sync.
  4319. if (dispatchListeners[i](event, dispatchInstances[i])) {
  4320. return dispatchInstances[i];
  4321. }
  4322. }
  4323. } else if (dispatchListeners) {
  4324. if (dispatchListeners(event, dispatchInstances)) {
  4325. return dispatchInstances;
  4326. }
  4327. }
  4328. return null;
  4329. }
  4330. /**
  4331. * @see executeDispatchesInOrderStopAtTrueImpl
  4332. */
  4333. function executeDispatchesInOrderStopAtTrue(event) {
  4334. var ret = executeDispatchesInOrderStopAtTrueImpl(event);
  4335. event._dispatchInstances = null;
  4336. event._dispatchListeners = null;
  4337. return ret;
  4338. }
  4339. /**
  4340. * Execution of a "direct" dispatch - there must be at most one dispatch
  4341. * accumulated on the event or it is considered an error. It doesn't really make
  4342. * sense for an event with multiple dispatches (bubbled) to keep track of the
  4343. * return values at each dispatch execution, but it does tend to make sense when
  4344. * dealing with "direct" dispatches.
  4345. *
  4346. * @return {*} The return value of executing the single dispatch.
  4347. */
  4348. function executeDirectDispatch(event) {
  4349. if (process.env.NODE_ENV !== 'production') {
  4350. validateEventDispatches(event);
  4351. }
  4352. var dispatchListener = event._dispatchListeners;
  4353. var dispatchInstance = event._dispatchInstances;
  4354. !!Array.isArray(dispatchListener) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0;
  4355. event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null;
  4356. var res = dispatchListener ? dispatchListener(event) : null;
  4357. event.currentTarget = null;
  4358. event._dispatchListeners = null;
  4359. event._dispatchInstances = null;
  4360. return res;
  4361. }
  4362. /**
  4363. * @param {SyntheticEvent} event
  4364. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  4365. */
  4366. function hasDispatches(event) {
  4367. return !!event._dispatchListeners;
  4368. }
  4369. /**
  4370. * General utilities that are useful in creating custom Event Plugins.
  4371. */
  4372. var EventPluginUtils = {
  4373. isEndish: isEndish,
  4374. isMoveish: isMoveish,
  4375. isStartish: isStartish,
  4376. executeDirectDispatch: executeDirectDispatch,
  4377. executeDispatchesInOrder: executeDispatchesInOrder,
  4378. executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue,
  4379. hasDispatches: hasDispatches,
  4380. getInstanceFromNode: function (node) {
  4381. return ComponentTree.getInstanceFromNode(node);
  4382. },
  4383. getNodeFromInstance: function (node) {
  4384. return ComponentTree.getNodeFromInstance(node);
  4385. },
  4386. isAncestor: function (a, b) {
  4387. return TreeTraversal.isAncestor(a, b);
  4388. },
  4389. getLowestCommonAncestor: function (a, b) {
  4390. return TreeTraversal.getLowestCommonAncestor(a, b);
  4391. },
  4392. getParentInstance: function (inst) {
  4393. return TreeTraversal.getParentInstance(inst);
  4394. },
  4395. traverseTwoPhase: function (target, fn, arg) {
  4396. return TreeTraversal.traverseTwoPhase(target, fn, arg);
  4397. },
  4398. traverseEnterLeave: function (from, to, fn, argFrom, argTo) {
  4399. return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo);
  4400. },
  4401. injection: injection
  4402. };
  4403. module.exports = EventPluginUtils;
  4404. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4405. /***/ }),
  4406. /* 36 */
  4407. /***/ (function(module, exports, __webpack_require__) {
  4408. "use strict";
  4409. /* WEBPACK VAR INJECTION */(function(process) {/**
  4410. * Copyright 2013-present, Facebook, Inc.
  4411. * All rights reserved.
  4412. *
  4413. * This source code is licensed under the BSD-style license found in the
  4414. * LICENSE file in the root directory of this source tree. An additional grant
  4415. * of patent rights can be found in the PATENTS file in the same directory.
  4416. *
  4417. *
  4418. */
  4419. var caughtError = null;
  4420. /**
  4421. * Call a function while guarding against errors that happens within it.
  4422. *
  4423. * @param {String} name of the guard to use for logging or debugging
  4424. * @param {Function} func The function to invoke
  4425. * @param {*} a First argument
  4426. * @param {*} b Second argument
  4427. */
  4428. function invokeGuardedCallback(name, func, a) {
  4429. try {
  4430. func(a);
  4431. } catch (x) {
  4432. if (caughtError === null) {
  4433. caughtError = x;
  4434. }
  4435. }
  4436. }
  4437. var ReactErrorUtils = {
  4438. invokeGuardedCallback: invokeGuardedCallback,
  4439. /**
  4440. * Invoked by ReactTestUtils.Simulate so that any errors thrown by the event
  4441. * handler are sure to be rethrown by rethrowCaughtError.
  4442. */
  4443. invokeGuardedCallbackWithCatch: invokeGuardedCallback,
  4444. /**
  4445. * During execution of guarded functions we will capture the first error which
  4446. * we will rethrow to be handled by the top level error handler.
  4447. */
  4448. rethrowCaughtError: function () {
  4449. if (caughtError) {
  4450. var error = caughtError;
  4451. caughtError = null;
  4452. throw error;
  4453. }
  4454. }
  4455. };
  4456. if (process.env.NODE_ENV !== 'production') {
  4457. /**
  4458. * To help development we can get better devtools integration by simulating a
  4459. * real browser event.
  4460. */
  4461. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  4462. var fakeNode = document.createElement('react');
  4463. ReactErrorUtils.invokeGuardedCallback = function (name, func, a) {
  4464. var boundFunc = func.bind(null, a);
  4465. var evtType = 'react-' + name;
  4466. fakeNode.addEventListener(evtType, boundFunc, false);
  4467. var evt = document.createEvent('Event');
  4468. evt.initEvent(evtType, false, false);
  4469. fakeNode.dispatchEvent(evt);
  4470. fakeNode.removeEventListener(evtType, boundFunc, false);
  4471. };
  4472. }
  4473. }
  4474. module.exports = ReactErrorUtils;
  4475. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4476. /***/ }),
  4477. /* 37 */
  4478. /***/ (function(module, exports, __webpack_require__) {
  4479. "use strict";
  4480. /**
  4481. * Copyright 2013-present, Facebook, Inc.
  4482. * All rights reserved.
  4483. *
  4484. * This source code is licensed under the BSD-style license found in the
  4485. * LICENSE file in the root directory of this source tree. An additional grant
  4486. * of patent rights can be found in the PATENTS file in the same directory.
  4487. *
  4488. */
  4489. /**
  4490. * Gets the target node from a native browser event by accounting for
  4491. * inconsistencies in browser DOM APIs.
  4492. *
  4493. * @param {object} nativeEvent Native browser event.
  4494. * @return {DOMEventTarget} Target node.
  4495. */
  4496. function getEventTarget(nativeEvent) {
  4497. var target = nativeEvent.target || nativeEvent.srcElement || window;
  4498. // Normalize SVG <use> element events #4963
  4499. if (target.correspondingUseElement) {
  4500. target = target.correspondingUseElement;
  4501. }
  4502. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  4503. // @see http://www.quirksmode.org/js/events_properties.html
  4504. return target.nodeType === 3 ? target.parentNode : target;
  4505. }
  4506. module.exports = getEventTarget;
  4507. /***/ }),
  4508. /* 38 */
  4509. /***/ (function(module, exports, __webpack_require__) {
  4510. "use strict";
  4511. /**
  4512. * Copyright 2013-present, Facebook, Inc.
  4513. * All rights reserved.
  4514. *
  4515. * This source code is licensed under the BSD-style license found in the
  4516. * LICENSE file in the root directory of this source tree. An additional grant
  4517. * of patent rights can be found in the PATENTS file in the same directory.
  4518. *
  4519. */
  4520. var ExecutionEnvironment = __webpack_require__(6);
  4521. var useHasFeature;
  4522. if (ExecutionEnvironment.canUseDOM) {
  4523. useHasFeature = document.implementation && document.implementation.hasFeature &&
  4524. // always returns true in newer browsers as per the standard.
  4525. // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
  4526. document.implementation.hasFeature('', '') !== true;
  4527. }
  4528. /**
  4529. * Checks if an event is supported in the current execution environment.
  4530. *
  4531. * NOTE: This will not work correctly for non-generic events such as `change`,
  4532. * `reset`, `load`, `error`, and `select`.
  4533. *
  4534. * Borrows from Modernizr.
  4535. *
  4536. * @param {string} eventNameSuffix Event name, e.g. "click".
  4537. * @param {?boolean} capture Check if the capture phase is supported.
  4538. * @return {boolean} True if the event is supported.
  4539. * @internal
  4540. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  4541. */
  4542. function isEventSupported(eventNameSuffix, capture) {
  4543. if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) {
  4544. return false;
  4545. }
  4546. var eventName = 'on' + eventNameSuffix;
  4547. var isSupported = eventName in document;
  4548. if (!isSupported) {
  4549. var element = document.createElement('div');
  4550. element.setAttribute(eventName, 'return;');
  4551. isSupported = typeof element[eventName] === 'function';
  4552. }
  4553. if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
  4554. // This is the only way to test support for the `wheel` event in IE9+.
  4555. isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
  4556. }
  4557. return isSupported;
  4558. }
  4559. module.exports = isEventSupported;
  4560. /***/ }),
  4561. /* 39 */
  4562. /***/ (function(module, exports, __webpack_require__) {
  4563. "use strict";
  4564. /**
  4565. * Copyright 2013-present, Facebook, Inc.
  4566. * All rights reserved.
  4567. *
  4568. * This source code is licensed under the BSD-style license found in the
  4569. * LICENSE file in the root directory of this source tree. An additional grant
  4570. * of patent rights can be found in the PATENTS file in the same directory.
  4571. *
  4572. */
  4573. /**
  4574. * Translation from modifier key to the associated property in the event.
  4575. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  4576. */
  4577. var modifierKeyToProp = {
  4578. 'Alt': 'altKey',
  4579. 'Control': 'ctrlKey',
  4580. 'Meta': 'metaKey',
  4581. 'Shift': 'shiftKey'
  4582. };
  4583. // IE8 does not implement getModifierState so we simply map it to the only
  4584. // modifier keys exposed by the event itself, does not support Lock-keys.
  4585. // Currently, all major browsers except Chrome seems to support Lock-keys.
  4586. function modifierStateGetter(keyArg) {
  4587. var syntheticEvent = this;
  4588. var nativeEvent = syntheticEvent.nativeEvent;
  4589. if (nativeEvent.getModifierState) {
  4590. return nativeEvent.getModifierState(keyArg);
  4591. }
  4592. var keyProp = modifierKeyToProp[keyArg];
  4593. return keyProp ? !!nativeEvent[keyProp] : false;
  4594. }
  4595. function getEventModifierState(nativeEvent) {
  4596. return modifierStateGetter;
  4597. }
  4598. module.exports = getEventModifierState;
  4599. /***/ }),
  4600. /* 40 */
  4601. /***/ (function(module, exports, __webpack_require__) {
  4602. "use strict";
  4603. /* WEBPACK VAR INJECTION */(function(process) {/**
  4604. * Copyright 2013-present, Facebook, Inc.
  4605. * All rights reserved.
  4606. *
  4607. * This source code is licensed under the BSD-style license found in the
  4608. * LICENSE file in the root directory of this source tree. An additional grant
  4609. * of patent rights can be found in the PATENTS file in the same directory.
  4610. *
  4611. */
  4612. var DOMLazyTree = __webpack_require__(19);
  4613. var Danger = __webpack_require__(121);
  4614. var ReactDOMComponentTree = __webpack_require__(5);
  4615. var ReactInstrumentation = __webpack_require__(9);
  4616. var createMicrosoftUnsafeLocalFunction = __webpack_require__(42);
  4617. var setInnerHTML = __webpack_require__(30);
  4618. var setTextContent = __webpack_require__(64);
  4619. function getNodeAfter(parentNode, node) {
  4620. // Special case for text components, which return [open, close] comments
  4621. // from getHostNode.
  4622. if (Array.isArray(node)) {
  4623. node = node[1];
  4624. }
  4625. return node ? node.nextSibling : parentNode.firstChild;
  4626. }
  4627. /**
  4628. * Inserts `childNode` as a child of `parentNode` at the `index`.
  4629. *
  4630. * @param {DOMElement} parentNode Parent node in which to insert.
  4631. * @param {DOMElement} childNode Child node to insert.
  4632. * @param {number} index Index at which to insert the child.
  4633. * @internal
  4634. */
  4635. var insertChildAt = createMicrosoftUnsafeLocalFunction(function (parentNode, childNode, referenceNode) {
  4636. // We rely exclusively on `insertBefore(node, null)` instead of also using
  4637. // `appendChild(node)`. (Using `undefined` is not allowed by all browsers so
  4638. // we are careful to use `null`.)
  4639. parentNode.insertBefore(childNode, referenceNode);
  4640. });
  4641. function insertLazyTreeChildAt(parentNode, childTree, referenceNode) {
  4642. DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode);
  4643. }
  4644. function moveChild(parentNode, childNode, referenceNode) {
  4645. if (Array.isArray(childNode)) {
  4646. moveDelimitedText(parentNode, childNode[0], childNode[1], referenceNode);
  4647. } else {
  4648. insertChildAt(parentNode, childNode, referenceNode);
  4649. }
  4650. }
  4651. function removeChild(parentNode, childNode) {
  4652. if (Array.isArray(childNode)) {
  4653. var closingComment = childNode[1];
  4654. childNode = childNode[0];
  4655. removeDelimitedText(parentNode, childNode, closingComment);
  4656. parentNode.removeChild(closingComment);
  4657. }
  4658. parentNode.removeChild(childNode);
  4659. }
  4660. function moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) {
  4661. var node = openingComment;
  4662. while (true) {
  4663. var nextNode = node.nextSibling;
  4664. insertChildAt(parentNode, node, referenceNode);
  4665. if (node === closingComment) {
  4666. break;
  4667. }
  4668. node = nextNode;
  4669. }
  4670. }
  4671. function removeDelimitedText(parentNode, startNode, closingComment) {
  4672. while (true) {
  4673. var node = startNode.nextSibling;
  4674. if (node === closingComment) {
  4675. // The closing comment is removed by ReactMultiChild.
  4676. break;
  4677. } else {
  4678. parentNode.removeChild(node);
  4679. }
  4680. }
  4681. }
  4682. function replaceDelimitedText(openingComment, closingComment, stringText) {
  4683. var parentNode = openingComment.parentNode;
  4684. var nodeAfterComment = openingComment.nextSibling;
  4685. if (nodeAfterComment === closingComment) {
  4686. // There are no text nodes between the opening and closing comments; insert
  4687. // a new one if stringText isn't empty.
  4688. if (stringText) {
  4689. insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment);
  4690. }
  4691. } else {
  4692. if (stringText) {
  4693. // Set the text content of the first node after the opening comment, and
  4694. // remove all following nodes up until the closing comment.
  4695. setTextContent(nodeAfterComment, stringText);
  4696. removeDelimitedText(parentNode, nodeAfterComment, closingComment);
  4697. } else {
  4698. removeDelimitedText(parentNode, openingComment, closingComment);
  4699. }
  4700. }
  4701. if (process.env.NODE_ENV !== 'production') {
  4702. ReactInstrumentation.debugTool.onHostOperation({
  4703. instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID,
  4704. type: 'replace text',
  4705. payload: stringText
  4706. });
  4707. }
  4708. }
  4709. var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup;
  4710. if (process.env.NODE_ENV !== 'production') {
  4711. dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) {
  4712. Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup);
  4713. if (prevInstance._debugID !== 0) {
  4714. ReactInstrumentation.debugTool.onHostOperation({
  4715. instanceID: prevInstance._debugID,
  4716. type: 'replace with',
  4717. payload: markup.toString()
  4718. });
  4719. } else {
  4720. var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node);
  4721. if (nextInstance._debugID !== 0) {
  4722. ReactInstrumentation.debugTool.onHostOperation({
  4723. instanceID: nextInstance._debugID,
  4724. type: 'mount',
  4725. payload: markup.toString()
  4726. });
  4727. }
  4728. }
  4729. };
  4730. }
  4731. /**
  4732. * Operations for updating with DOM children.
  4733. */
  4734. var DOMChildrenOperations = {
  4735. dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup,
  4736. replaceDelimitedText: replaceDelimitedText,
  4737. /**
  4738. * Updates a component's children by processing a series of updates. The
  4739. * update configurations are each expected to have a `parentNode` property.
  4740. *
  4741. * @param {array<object>} updates List of update configurations.
  4742. * @internal
  4743. */
  4744. processUpdates: function (parentNode, updates) {
  4745. if (process.env.NODE_ENV !== 'production') {
  4746. var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID;
  4747. }
  4748. for (var k = 0; k < updates.length; k++) {
  4749. var update = updates[k];
  4750. switch (update.type) {
  4751. case 'INSERT_MARKUP':
  4752. insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode));
  4753. if (process.env.NODE_ENV !== 'production') {
  4754. ReactInstrumentation.debugTool.onHostOperation({
  4755. instanceID: parentNodeDebugID,
  4756. type: 'insert child',
  4757. payload: { toIndex: update.toIndex, content: update.content.toString() }
  4758. });
  4759. }
  4760. break;
  4761. case 'MOVE_EXISTING':
  4762. moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode));
  4763. if (process.env.NODE_ENV !== 'production') {
  4764. ReactInstrumentation.debugTool.onHostOperation({
  4765. instanceID: parentNodeDebugID,
  4766. type: 'move child',
  4767. payload: { fromIndex: update.fromIndex, toIndex: update.toIndex }
  4768. });
  4769. }
  4770. break;
  4771. case 'SET_MARKUP':
  4772. setInnerHTML(parentNode, update.content);
  4773. if (process.env.NODE_ENV !== 'production') {
  4774. ReactInstrumentation.debugTool.onHostOperation({
  4775. instanceID: parentNodeDebugID,
  4776. type: 'replace children',
  4777. payload: update.content.toString()
  4778. });
  4779. }
  4780. break;
  4781. case 'TEXT_CONTENT':
  4782. setTextContent(parentNode, update.content);
  4783. if (process.env.NODE_ENV !== 'production') {
  4784. ReactInstrumentation.debugTool.onHostOperation({
  4785. instanceID: parentNodeDebugID,
  4786. type: 'replace text',
  4787. payload: update.content.toString()
  4788. });
  4789. }
  4790. break;
  4791. case 'REMOVE_NODE':
  4792. removeChild(parentNode, update.fromNode);
  4793. if (process.env.NODE_ENV !== 'production') {
  4794. ReactInstrumentation.debugTool.onHostOperation({
  4795. instanceID: parentNodeDebugID,
  4796. type: 'remove child',
  4797. payload: { fromIndex: update.fromIndex }
  4798. });
  4799. }
  4800. break;
  4801. }
  4802. }
  4803. }
  4804. };
  4805. module.exports = DOMChildrenOperations;
  4806. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4807. /***/ }),
  4808. /* 41 */
  4809. /***/ (function(module, exports, __webpack_require__) {
  4810. "use strict";
  4811. /**
  4812. * Copyright 2013-present, Facebook, Inc.
  4813. * All rights reserved.
  4814. *
  4815. * This source code is licensed under the BSD-style license found in the
  4816. * LICENSE file in the root directory of this source tree. An additional grant
  4817. * of patent rights can be found in the PATENTS file in the same directory.
  4818. *
  4819. */
  4820. var DOMNamespaces = {
  4821. html: 'http://www.w3.org/1999/xhtml',
  4822. mathml: 'http://www.w3.org/1998/Math/MathML',
  4823. svg: 'http://www.w3.org/2000/svg'
  4824. };
  4825. module.exports = DOMNamespaces;
  4826. /***/ }),
  4827. /* 42 */
  4828. /***/ (function(module, exports, __webpack_require__) {
  4829. "use strict";
  4830. /**
  4831. * Copyright 2013-present, Facebook, Inc.
  4832. * All rights reserved.
  4833. *
  4834. * This source code is licensed under the BSD-style license found in the
  4835. * LICENSE file in the root directory of this source tree. An additional grant
  4836. * of patent rights can be found in the PATENTS file in the same directory.
  4837. *
  4838. */
  4839. /* globals MSApp */
  4840. /**
  4841. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  4842. */
  4843. var createMicrosoftUnsafeLocalFunction = function (func) {
  4844. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  4845. return function (arg0, arg1, arg2, arg3) {
  4846. MSApp.execUnsafeLocalFunction(function () {
  4847. return func(arg0, arg1, arg2, arg3);
  4848. });
  4849. };
  4850. } else {
  4851. return func;
  4852. }
  4853. };
  4854. module.exports = createMicrosoftUnsafeLocalFunction;
  4855. /***/ }),
  4856. /* 43 */
  4857. /***/ (function(module, exports, __webpack_require__) {
  4858. "use strict";
  4859. /* WEBPACK VAR INJECTION */(function(process) {/**
  4860. * Copyright 2013-present, Facebook, Inc.
  4861. * All rights reserved.
  4862. *
  4863. * This source code is licensed under the BSD-style license found in the
  4864. * LICENSE file in the root directory of this source tree. An additional grant
  4865. * of patent rights can be found in the PATENTS file in the same directory.
  4866. *
  4867. */
  4868. var _prodInvariant = __webpack_require__(3);
  4869. var ReactPropTypesSecret = __webpack_require__(68);
  4870. var propTypesFactory = __webpack_require__(139);
  4871. var React = __webpack_require__(17);
  4872. var PropTypes = propTypesFactory(React.isValidElement);
  4873. var invariant = __webpack_require__(1);
  4874. var warning = __webpack_require__(2);
  4875. var hasReadOnlyValue = {
  4876. 'button': true,
  4877. 'checkbox': true,
  4878. 'image': true,
  4879. 'hidden': true,
  4880. 'radio': true,
  4881. 'reset': true,
  4882. 'submit': true
  4883. };
  4884. function _assertSingleLink(inputProps) {
  4885. !(inputProps.checkedLink == null || inputProps.valueLink == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don\'t want to use valueLink and vice versa.') : _prodInvariant('87') : void 0;
  4886. }
  4887. function _assertValueLink(inputProps) {
  4888. _assertSingleLink(inputProps);
  4889. !(inputProps.value == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don\'t want to use valueLink.') : _prodInvariant('88') : void 0;
  4890. }
  4891. function _assertCheckedLink(inputProps) {
  4892. _assertSingleLink(inputProps);
  4893. !(inputProps.checked == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don\'t want to use checkedLink') : _prodInvariant('89') : void 0;
  4894. }
  4895. var propTypes = {
  4896. value: function (props, propName, componentName) {
  4897. if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) {
  4898. return null;
  4899. }
  4900. 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`.');
  4901. },
  4902. checked: function (props, propName, componentName) {
  4903. if (!props[propName] || props.onChange || props.readOnly || props.disabled) {
  4904. return null;
  4905. }
  4906. 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`.');
  4907. },
  4908. onChange: PropTypes.func
  4909. };
  4910. var loggedTypeFailures = {};
  4911. function getDeclarationErrorAddendum(owner) {
  4912. if (owner) {
  4913. var name = owner.getName();
  4914. if (name) {
  4915. return ' Check the render method of `' + name + '`.';
  4916. }
  4917. }
  4918. return '';
  4919. }
  4920. /**
  4921. * Provide a linked `value` attribute for controlled forms. You should not use
  4922. * this outside of the ReactDOM controlled form components.
  4923. */
  4924. var LinkedValueUtils = {
  4925. checkPropTypes: function (tagName, props, owner) {
  4926. for (var propName in propTypes) {
  4927. if (propTypes.hasOwnProperty(propName)) {
  4928. var error = propTypes[propName](props, propName, tagName, 'prop', null, ReactPropTypesSecret);
  4929. }
  4930. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  4931. // Only monitor this failure once because there tends to be a lot of the
  4932. // same error.
  4933. loggedTypeFailures[error.message] = true;
  4934. var addendum = getDeclarationErrorAddendum(owner);
  4935. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed form propType: %s%s', error.message, addendum) : void 0;
  4936. }
  4937. }
  4938. },
  4939. /**
  4940. * @param {object} inputProps Props for form component
  4941. * @return {*} current value of the input either from value prop or link.
  4942. */
  4943. getValue: function (inputProps) {
  4944. if (inputProps.valueLink) {
  4945. _assertValueLink(inputProps);
  4946. return inputProps.valueLink.value;
  4947. }
  4948. return inputProps.value;
  4949. },
  4950. /**
  4951. * @param {object} inputProps Props for form component
  4952. * @return {*} current checked status of the input either from checked prop
  4953. * or link.
  4954. */
  4955. getChecked: function (inputProps) {
  4956. if (inputProps.checkedLink) {
  4957. _assertCheckedLink(inputProps);
  4958. return inputProps.checkedLink.value;
  4959. }
  4960. return inputProps.checked;
  4961. },
  4962. /**
  4963. * @param {object} inputProps Props for form component
  4964. * @param {SyntheticEvent} event change event to handle
  4965. */
  4966. executeOnChange: function (inputProps, event) {
  4967. if (inputProps.valueLink) {
  4968. _assertValueLink(inputProps);
  4969. return inputProps.valueLink.requestChange(event.target.value);
  4970. } else if (inputProps.checkedLink) {
  4971. _assertCheckedLink(inputProps);
  4972. return inputProps.checkedLink.requestChange(event.target.checked);
  4973. } else if (inputProps.onChange) {
  4974. return inputProps.onChange.call(undefined, event);
  4975. }
  4976. }
  4977. };
  4978. module.exports = LinkedValueUtils;
  4979. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4980. /***/ }),
  4981. /* 44 */
  4982. /***/ (function(module, exports, __webpack_require__) {
  4983. "use strict";
  4984. /* WEBPACK VAR INJECTION */(function(process) {/**
  4985. * Copyright 2014-present, Facebook, Inc.
  4986. * All rights reserved.
  4987. *
  4988. * This source code is licensed under the BSD-style license found in the
  4989. * LICENSE file in the root directory of this source tree. An additional grant
  4990. * of patent rights can be found in the PATENTS file in the same directory.
  4991. *
  4992. *
  4993. */
  4994. var _prodInvariant = __webpack_require__(3);
  4995. var invariant = __webpack_require__(1);
  4996. var injected = false;
  4997. var ReactComponentEnvironment = {
  4998. /**
  4999. * Optionally injectable hook for swapping out mount images in the middle of
  5000. * the tree.
  5001. */
  5002. replaceNodeWithMarkup: null,
  5003. /**
  5004. * Optionally injectable hook for processing a queue of child updates. Will
  5005. * later move into MultiChildComponents.
  5006. */
  5007. processChildrenUpdates: null,
  5008. injection: {
  5009. injectEnvironment: function (environment) {
  5010. !!injected ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactCompositeComponent: injectEnvironment() can only be called once.') : _prodInvariant('104') : void 0;
  5011. ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup;
  5012. ReactComponentEnvironment.processChildrenUpdates = environment.processChildrenUpdates;
  5013. injected = true;
  5014. }
  5015. }
  5016. };
  5017. module.exports = ReactComponentEnvironment;
  5018. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5019. /***/ }),
  5020. /* 45 */
  5021. /***/ (function(module, exports, __webpack_require__) {
  5022. "use strict";
  5023. /**
  5024. * Copyright (c) 2013-present, Facebook, Inc.
  5025. *
  5026. * This source code is licensed under the MIT license found in the
  5027. * LICENSE file in the root directory of this source tree.
  5028. *
  5029. * @typechecks
  5030. *
  5031. */
  5032. /*eslint-disable no-self-compare */
  5033. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5034. /**
  5035. * inlined Object.is polyfill to avoid requiring consumers ship their own
  5036. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  5037. */
  5038. function is(x, y) {
  5039. // SameValue algorithm
  5040. if (x === y) {
  5041. // Steps 1-5, 7-10
  5042. // Steps 6.b-6.e: +0 != -0
  5043. // Added the nonzero y check to make Flow happy, but it is redundant
  5044. return x !== 0 || y !== 0 || 1 / x === 1 / y;
  5045. } else {
  5046. // Step 6.a: NaN == NaN
  5047. return x !== x && y !== y;
  5048. }
  5049. }
  5050. /**
  5051. * Performs equality by iterating through keys on an object and returning false
  5052. * when any key has values which are not strictly equal between the arguments.
  5053. * Returns true when the values of all keys are strictly equal.
  5054. */
  5055. function shallowEqual(objA, objB) {
  5056. if (is(objA, objB)) {
  5057. return true;
  5058. }
  5059. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  5060. return false;
  5061. }
  5062. var keysA = Object.keys(objA);
  5063. var keysB = Object.keys(objB);
  5064. if (keysA.length !== keysB.length) {
  5065. return false;
  5066. }
  5067. // Test for A's keys different from B.
  5068. for (var i = 0; i < keysA.length; i++) {
  5069. if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  5070. return false;
  5071. }
  5072. }
  5073. return true;
  5074. }
  5075. module.exports = shallowEqual;
  5076. /***/ }),
  5077. /* 46 */
  5078. /***/ (function(module, exports, __webpack_require__) {
  5079. "use strict";
  5080. /**
  5081. * Copyright 2013-present, Facebook, Inc.
  5082. * All rights reserved.
  5083. *
  5084. * This source code is licensed under the BSD-style license found in the
  5085. * LICENSE file in the root directory of this source tree. An additional grant
  5086. * of patent rights can be found in the PATENTS file in the same directory.
  5087. *
  5088. */
  5089. /**
  5090. * Given a `prevElement` and `nextElement`, determines if the existing
  5091. * instance should be updated as opposed to being destroyed or replaced by a new
  5092. * instance. Both arguments are elements. This ensures that this logic can
  5093. * operate on stateless trees without any backing instance.
  5094. *
  5095. * @param {?object} prevElement
  5096. * @param {?object} nextElement
  5097. * @return {boolean} True if the existing instance should be updated.
  5098. * @protected
  5099. */
  5100. function shouldUpdateReactComponent(prevElement, nextElement) {
  5101. var prevEmpty = prevElement === null || prevElement === false;
  5102. var nextEmpty = nextElement === null || nextElement === false;
  5103. if (prevEmpty || nextEmpty) {
  5104. return prevEmpty === nextEmpty;
  5105. }
  5106. var prevType = typeof prevElement;
  5107. var nextType = typeof nextElement;
  5108. if (prevType === 'string' || prevType === 'number') {
  5109. return nextType === 'string' || nextType === 'number';
  5110. } else {
  5111. return nextType === 'object' && prevElement.type === nextElement.type && prevElement.key === nextElement.key;
  5112. }
  5113. }
  5114. module.exports = shouldUpdateReactComponent;
  5115. /***/ }),
  5116. /* 47 */
  5117. /***/ (function(module, exports, __webpack_require__) {
  5118. "use strict";
  5119. /**
  5120. * Copyright 2013-present, Facebook, Inc.
  5121. * All rights reserved.
  5122. *
  5123. * This source code is licensed under the BSD-style license found in the
  5124. * LICENSE file in the root directory of this source tree. An additional grant
  5125. * of patent rights can be found in the PATENTS file in the same directory.
  5126. *
  5127. *
  5128. */
  5129. /**
  5130. * Escape and wrap key so it is safe to use as a reactid
  5131. *
  5132. * @param {string} key to be escaped.
  5133. * @return {string} the escaped key.
  5134. */
  5135. function escape(key) {
  5136. var escapeRegex = /[=:]/g;
  5137. var escaperLookup = {
  5138. '=': '=0',
  5139. ':': '=2'
  5140. };
  5141. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  5142. return escaperLookup[match];
  5143. });
  5144. return '$' + escapedString;
  5145. }
  5146. /**
  5147. * Unescape and unwrap key for human-readable display
  5148. *
  5149. * @param {string} key to unescape.
  5150. * @return {string} the unescaped key.
  5151. */
  5152. function unescape(key) {
  5153. var unescapeRegex = /(=0|=2)/g;
  5154. var unescaperLookup = {
  5155. '=0': '=',
  5156. '=2': ':'
  5157. };
  5158. var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
  5159. return ('' + keySubstring).replace(unescapeRegex, function (match) {
  5160. return unescaperLookup[match];
  5161. });
  5162. }
  5163. var KeyEscapeUtils = {
  5164. escape: escape,
  5165. unescape: unescape
  5166. };
  5167. module.exports = KeyEscapeUtils;
  5168. /***/ }),
  5169. /* 48 */
  5170. /***/ (function(module, exports, __webpack_require__) {
  5171. "use strict";
  5172. /* WEBPACK VAR INJECTION */(function(process) {/**
  5173. * Copyright 2015-present, Facebook, Inc.
  5174. * All rights reserved.
  5175. *
  5176. * This source code is licensed under the BSD-style license found in the
  5177. * LICENSE file in the root directory of this source tree. An additional grant
  5178. * of patent rights can be found in the PATENTS file in the same directory.
  5179. *
  5180. */
  5181. var _prodInvariant = __webpack_require__(3);
  5182. var ReactCurrentOwner = __webpack_require__(10);
  5183. var ReactInstanceMap = __webpack_require__(24);
  5184. var ReactInstrumentation = __webpack_require__(9);
  5185. var ReactUpdates = __webpack_require__(11);
  5186. var invariant = __webpack_require__(1);
  5187. var warning = __webpack_require__(2);
  5188. function enqueueUpdate(internalInstance) {
  5189. ReactUpdates.enqueueUpdate(internalInstance);
  5190. }
  5191. function formatUnexpectedArgument(arg) {
  5192. var type = typeof arg;
  5193. if (type !== 'object') {
  5194. return type;
  5195. }
  5196. var displayName = arg.constructor && arg.constructor.name || type;
  5197. var keys = Object.keys(arg);
  5198. if (keys.length > 0 && keys.length < 20) {
  5199. return displayName + ' (keys: ' + keys.join(', ') + ')';
  5200. }
  5201. return displayName;
  5202. }
  5203. function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
  5204. var internalInstance = ReactInstanceMap.get(publicInstance);
  5205. if (!internalInstance) {
  5206. if (process.env.NODE_ENV !== 'production') {
  5207. var ctor = publicInstance.constructor;
  5208. // Only warn when we have a callerName. Otherwise we should be silent.
  5209. // We're probably calling from enqueueCallback. We don't want to warn
  5210. // there because we already warned for the corresponding lifecycle method.
  5211. process.env.NODE_ENV !== 'production' ? warning(!callerName, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, ctor && (ctor.displayName || ctor.name) || 'ReactClass') : void 0;
  5212. }
  5213. return null;
  5214. }
  5215. if (process.env.NODE_ENV !== 'production') {
  5216. process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + 'within `render` or another component\'s constructor). Render methods ' + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;
  5217. }
  5218. return internalInstance;
  5219. }
  5220. /**
  5221. * ReactUpdateQueue allows for state updates to be scheduled into a later
  5222. * reconciliation step.
  5223. */
  5224. var ReactUpdateQueue = {
  5225. /**
  5226. * Checks whether or not this composite component is mounted.
  5227. * @param {ReactClass} publicInstance The instance we want to test.
  5228. * @return {boolean} True if mounted, false otherwise.
  5229. * @protected
  5230. * @final
  5231. */
  5232. isMounted: function (publicInstance) {
  5233. if (process.env.NODE_ENV !== 'production') {
  5234. var owner = ReactCurrentOwner.current;
  5235. if (owner !== null) {
  5236. process.env.NODE_ENV !== 'production' ? warning(owner._warnedAboutRefsInRender, '%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.', owner.getName() || 'A component') : void 0;
  5237. owner._warnedAboutRefsInRender = true;
  5238. }
  5239. }
  5240. var internalInstance = ReactInstanceMap.get(publicInstance);
  5241. if (internalInstance) {
  5242. // During componentWillMount and render this will still be null but after
  5243. // that will always render to something. At least for now. So we can use
  5244. // this hack.
  5245. return !!internalInstance._renderedComponent;
  5246. } else {
  5247. return false;
  5248. }
  5249. },
  5250. /**
  5251. * Enqueue a callback that will be executed after all the pending updates
  5252. * have processed.
  5253. *
  5254. * @param {ReactClass} publicInstance The instance to use as `this` context.
  5255. * @param {?function} callback Called after state is updated.
  5256. * @param {string} callerName Name of the calling function in the public API.
  5257. * @internal
  5258. */
  5259. enqueueCallback: function (publicInstance, callback, callerName) {
  5260. ReactUpdateQueue.validateCallback(callback, callerName);
  5261. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance);
  5262. // Previously we would throw an error if we didn't have an internal
  5263. // instance. Since we want to make it a no-op instead, we mirror the same
  5264. // behavior we have in other enqueue* methods.
  5265. // We also need to ignore callbacks in componentWillMount. See
  5266. // enqueueUpdates.
  5267. if (!internalInstance) {
  5268. return null;
  5269. }
  5270. if (internalInstance._pendingCallbacks) {
  5271. internalInstance._pendingCallbacks.push(callback);
  5272. } else {
  5273. internalInstance._pendingCallbacks = [callback];
  5274. }
  5275. // TODO: The callback here is ignored when setState is called from
  5276. // componentWillMount. Either fix it or disallow doing so completely in
  5277. // favor of getInitialState. Alternatively, we can disallow
  5278. // componentWillMount during server-side rendering.
  5279. enqueueUpdate(internalInstance);
  5280. },
  5281. enqueueCallbackInternal: function (internalInstance, callback) {
  5282. if (internalInstance._pendingCallbacks) {
  5283. internalInstance._pendingCallbacks.push(callback);
  5284. } else {
  5285. internalInstance._pendingCallbacks = [callback];
  5286. }
  5287. enqueueUpdate(internalInstance);
  5288. },
  5289. /**
  5290. * Forces an update. This should only be invoked when it is known with
  5291. * certainty that we are **not** in a DOM transaction.
  5292. *
  5293. * You may want to call this when you know that some deeper aspect of the
  5294. * component's state has changed but `setState` was not called.
  5295. *
  5296. * This will not invoke `shouldComponentUpdate`, but it will invoke
  5297. * `componentWillUpdate` and `componentDidUpdate`.
  5298. *
  5299. * @param {ReactClass} publicInstance The instance that should rerender.
  5300. * @internal
  5301. */
  5302. enqueueForceUpdate: function (publicInstance) {
  5303. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'forceUpdate');
  5304. if (!internalInstance) {
  5305. return;
  5306. }
  5307. internalInstance._pendingForceUpdate = true;
  5308. enqueueUpdate(internalInstance);
  5309. },
  5310. /**
  5311. * Replaces all of the state. Always use this or `setState` to mutate state.
  5312. * You should treat `this.state` as immutable.
  5313. *
  5314. * There is no guarantee that `this.state` will be immediately updated, so
  5315. * accessing `this.state` after calling this method may return the old value.
  5316. *
  5317. * @param {ReactClass} publicInstance The instance that should rerender.
  5318. * @param {object} completeState Next state.
  5319. * @internal
  5320. */
  5321. enqueueReplaceState: function (publicInstance, completeState, callback) {
  5322. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceState');
  5323. if (!internalInstance) {
  5324. return;
  5325. }
  5326. internalInstance._pendingStateQueue = [completeState];
  5327. internalInstance._pendingReplaceState = true;
  5328. // Future-proof 15.5
  5329. if (callback !== undefined && callback !== null) {
  5330. ReactUpdateQueue.validateCallback(callback, 'replaceState');
  5331. if (internalInstance._pendingCallbacks) {
  5332. internalInstance._pendingCallbacks.push(callback);
  5333. } else {
  5334. internalInstance._pendingCallbacks = [callback];
  5335. }
  5336. }
  5337. enqueueUpdate(internalInstance);
  5338. },
  5339. /**
  5340. * Sets a subset of the state. This only exists because _pendingState is
  5341. * internal. This provides a merging strategy that is not available to deep
  5342. * properties which is confusing. TODO: Expose pendingState or don't use it
  5343. * during the merge.
  5344. *
  5345. * @param {ReactClass} publicInstance The instance that should rerender.
  5346. * @param {object} partialState Next partial state to be merged with state.
  5347. * @internal
  5348. */
  5349. enqueueSetState: function (publicInstance, partialState) {
  5350. if (process.env.NODE_ENV !== 'production') {
  5351. ReactInstrumentation.debugTool.onSetState();
  5352. process.env.NODE_ENV !== 'production' ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : void 0;
  5353. }
  5354. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'setState');
  5355. if (!internalInstance) {
  5356. return;
  5357. }
  5358. var queue = internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = []);
  5359. queue.push(partialState);
  5360. enqueueUpdate(internalInstance);
  5361. },
  5362. enqueueElementInternal: function (internalInstance, nextElement, nextContext) {
  5363. internalInstance._pendingElement = nextElement;
  5364. // TODO: introduce _pendingContext instead of setting it directly.
  5365. internalInstance._context = nextContext;
  5366. enqueueUpdate(internalInstance);
  5367. },
  5368. validateCallback: function (callback, callerName) {
  5369. !(!callback || typeof callback === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0;
  5370. }
  5371. };
  5372. module.exports = ReactUpdateQueue;
  5373. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5374. /***/ }),
  5375. /* 49 */
  5376. /***/ (function(module, exports, __webpack_require__) {
  5377. "use strict";
  5378. /* WEBPACK VAR INJECTION */(function(process) {/**
  5379. * Copyright 2015-present, Facebook, Inc.
  5380. * All rights reserved.
  5381. *
  5382. * This source code is licensed under the BSD-style license found in the
  5383. * LICENSE file in the root directory of this source tree. An additional grant
  5384. * of patent rights can be found in the PATENTS file in the same directory.
  5385. *
  5386. */
  5387. var _assign = __webpack_require__(4);
  5388. var emptyFunction = __webpack_require__(8);
  5389. var warning = __webpack_require__(2);
  5390. var validateDOMNesting = emptyFunction;
  5391. if (process.env.NODE_ENV !== 'production') {
  5392. // This validation code was written based on the HTML5 parsing spec:
  5393. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  5394. //
  5395. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  5396. // not clear what practical benefit doing so provides); instead, we warn only
  5397. // for cases where the parser will give a parse tree differing from what React
  5398. // intended. For example, <b><div></div></b> is invalid but we don't warn
  5399. // because it still parses correctly; we do warn for other cases like nested
  5400. // <p> tags where the beginning of the second element implicitly closes the
  5401. // first, causing a confusing mess.
  5402. // https://html.spec.whatwg.org/multipage/syntax.html#special
  5403. 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'];
  5404. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  5405. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  5406. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  5407. // TODO: Distinguish by namespace here -- for <title>, including it here
  5408. // errs on the side of fewer warnings
  5409. 'foreignObject', 'desc', 'title'];
  5410. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  5411. var buttonScopeTags = inScopeTags.concat(['button']);
  5412. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  5413. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  5414. var emptyAncestorInfo = {
  5415. current: null,
  5416. formTag: null,
  5417. aTagInScope: null,
  5418. buttonTagInScope: null,
  5419. nobrTagInScope: null,
  5420. pTagInButtonScope: null,
  5421. listItemTagAutoclosing: null,
  5422. dlItemTagAutoclosing: null
  5423. };
  5424. var updatedAncestorInfo = function (oldInfo, tag, instance) {
  5425. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  5426. var info = { tag: tag, instance: instance };
  5427. if (inScopeTags.indexOf(tag) !== -1) {
  5428. ancestorInfo.aTagInScope = null;
  5429. ancestorInfo.buttonTagInScope = null;
  5430. ancestorInfo.nobrTagInScope = null;
  5431. }
  5432. if (buttonScopeTags.indexOf(tag) !== -1) {
  5433. ancestorInfo.pTagInButtonScope = null;
  5434. }
  5435. // See rules for 'li', 'dd', 'dt' start tags in
  5436. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  5437. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  5438. ancestorInfo.listItemTagAutoclosing = null;
  5439. ancestorInfo.dlItemTagAutoclosing = null;
  5440. }
  5441. ancestorInfo.current = info;
  5442. if (tag === 'form') {
  5443. ancestorInfo.formTag = info;
  5444. }
  5445. if (tag === 'a') {
  5446. ancestorInfo.aTagInScope = info;
  5447. }
  5448. if (tag === 'button') {
  5449. ancestorInfo.buttonTagInScope = info;
  5450. }
  5451. if (tag === 'nobr') {
  5452. ancestorInfo.nobrTagInScope = info;
  5453. }
  5454. if (tag === 'p') {
  5455. ancestorInfo.pTagInButtonScope = info;
  5456. }
  5457. if (tag === 'li') {
  5458. ancestorInfo.listItemTagAutoclosing = info;
  5459. }
  5460. if (tag === 'dd' || tag === 'dt') {
  5461. ancestorInfo.dlItemTagAutoclosing = info;
  5462. }
  5463. return ancestorInfo;
  5464. };
  5465. /**
  5466. * Returns whether
  5467. */
  5468. var isTagValidWithParent = function (tag, parentTag) {
  5469. // First, let's check if we're in an unusual parsing mode...
  5470. switch (parentTag) {
  5471. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  5472. case 'select':
  5473. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  5474. case 'optgroup':
  5475. return tag === 'option' || tag === '#text';
  5476. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  5477. // but
  5478. case 'option':
  5479. return tag === '#text';
  5480. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  5481. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  5482. // No special behavior since these rules fall back to "in body" mode for
  5483. // all except special table nodes which cause bad parsing behavior anyway.
  5484. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  5485. case 'tr':
  5486. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  5487. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  5488. case 'tbody':
  5489. case 'thead':
  5490. case 'tfoot':
  5491. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  5492. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  5493. case 'colgroup':
  5494. return tag === 'col' || tag === 'template';
  5495. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  5496. case 'table':
  5497. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  5498. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  5499. case 'head':
  5500. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  5501. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  5502. case 'html':
  5503. return tag === 'head' || tag === 'body';
  5504. case '#document':
  5505. return tag === 'html';
  5506. }
  5507. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  5508. // where the parsing rules cause implicit opens or closes to be added.
  5509. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  5510. switch (tag) {
  5511. case 'h1':
  5512. case 'h2':
  5513. case 'h3':
  5514. case 'h4':
  5515. case 'h5':
  5516. case 'h6':
  5517. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  5518. case 'rp':
  5519. case 'rt':
  5520. return impliedEndTags.indexOf(parentTag) === -1;
  5521. case 'body':
  5522. case 'caption':
  5523. case 'col':
  5524. case 'colgroup':
  5525. case 'frame':
  5526. case 'head':
  5527. case 'html':
  5528. case 'tbody':
  5529. case 'td':
  5530. case 'tfoot':
  5531. case 'th':
  5532. case 'thead':
  5533. case 'tr':
  5534. // These tags are only valid with a few parents that have special child
  5535. // parsing rules -- if we're down here, then none of those matched and
  5536. // so we allow it only if we don't know what the parent is, as all other
  5537. // cases are invalid.
  5538. return parentTag == null;
  5539. }
  5540. return true;
  5541. };
  5542. /**
  5543. * Returns whether
  5544. */
  5545. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  5546. switch (tag) {
  5547. case 'address':
  5548. case 'article':
  5549. case 'aside':
  5550. case 'blockquote':
  5551. case 'center':
  5552. case 'details':
  5553. case 'dialog':
  5554. case 'dir':
  5555. case 'div':
  5556. case 'dl':
  5557. case 'fieldset':
  5558. case 'figcaption':
  5559. case 'figure':
  5560. case 'footer':
  5561. case 'header':
  5562. case 'hgroup':
  5563. case 'main':
  5564. case 'menu':
  5565. case 'nav':
  5566. case 'ol':
  5567. case 'p':
  5568. case 'section':
  5569. case 'summary':
  5570. case 'ul':
  5571. case 'pre':
  5572. case 'listing':
  5573. case 'table':
  5574. case 'hr':
  5575. case 'xmp':
  5576. case 'h1':
  5577. case 'h2':
  5578. case 'h3':
  5579. case 'h4':
  5580. case 'h5':
  5581. case 'h6':
  5582. return ancestorInfo.pTagInButtonScope;
  5583. case 'form':
  5584. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  5585. case 'li':
  5586. return ancestorInfo.listItemTagAutoclosing;
  5587. case 'dd':
  5588. case 'dt':
  5589. return ancestorInfo.dlItemTagAutoclosing;
  5590. case 'button':
  5591. return ancestorInfo.buttonTagInScope;
  5592. case 'a':
  5593. // Spec says something about storing a list of markers, but it sounds
  5594. // equivalent to this check.
  5595. return ancestorInfo.aTagInScope;
  5596. case 'nobr':
  5597. return ancestorInfo.nobrTagInScope;
  5598. }
  5599. return null;
  5600. };
  5601. /**
  5602. * Given a ReactCompositeComponent instance, return a list of its recursive
  5603. * owners, starting at the root and ending with the instance itself.
  5604. */
  5605. var findOwnerStack = function (instance) {
  5606. if (!instance) {
  5607. return [];
  5608. }
  5609. var stack = [];
  5610. do {
  5611. stack.push(instance);
  5612. } while (instance = instance._currentElement._owner);
  5613. stack.reverse();
  5614. return stack;
  5615. };
  5616. var didWarn = {};
  5617. validateDOMNesting = function (childTag, childText, childInstance, ancestorInfo) {
  5618. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  5619. var parentInfo = ancestorInfo.current;
  5620. var parentTag = parentInfo && parentInfo.tag;
  5621. if (childText != null) {
  5622. process.env.NODE_ENV !== 'production' ? warning(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  5623. childTag = '#text';
  5624. }
  5625. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  5626. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  5627. var problematic = invalidParent || invalidAncestor;
  5628. if (problematic) {
  5629. var ancestorTag = problematic.tag;
  5630. var ancestorInstance = problematic.instance;
  5631. var childOwner = childInstance && childInstance._currentElement._owner;
  5632. var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner;
  5633. var childOwners = findOwnerStack(childOwner);
  5634. var ancestorOwners = findOwnerStack(ancestorOwner);
  5635. var minStackLen = Math.min(childOwners.length, ancestorOwners.length);
  5636. var i;
  5637. var deepestCommon = -1;
  5638. for (i = 0; i < minStackLen; i++) {
  5639. if (childOwners[i] === ancestorOwners[i]) {
  5640. deepestCommon = i;
  5641. } else {
  5642. break;
  5643. }
  5644. }
  5645. var UNKNOWN = '(unknown)';
  5646. var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) {
  5647. return inst.getName() || UNKNOWN;
  5648. });
  5649. var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) {
  5650. return inst.getName() || UNKNOWN;
  5651. });
  5652. var ownerInfo = [].concat(
  5653. // If the parent and child instances have a common owner ancestor, start
  5654. // with that -- otherwise we just start with the parent's owners.
  5655. deepestCommon !== -1 ? childOwners[deepestCommon].getName() || UNKNOWN : [], ancestorOwnerNames, ancestorTag,
  5656. // If we're warning about an invalid (non-parent) ancestry, add '...'
  5657. invalidAncestor ? ['...'] : [], childOwnerNames, childTag).join(' > ');
  5658. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + ownerInfo;
  5659. if (didWarn[warnKey]) {
  5660. return;
  5661. }
  5662. didWarn[warnKey] = true;
  5663. var tagDisplayName = childTag;
  5664. var whitespaceInfo = '';
  5665. if (childTag === '#text') {
  5666. if (/\S/.test(childText)) {
  5667. tagDisplayName = 'Text nodes';
  5668. } else {
  5669. tagDisplayName = 'Whitespace text nodes';
  5670. whitespaceInfo = ' Make sure you don\'t have any extra whitespace between tags on ' + 'each line of your source code.';
  5671. }
  5672. } else {
  5673. tagDisplayName = '<' + childTag + '>';
  5674. }
  5675. if (invalidParent) {
  5676. var info = '';
  5677. if (ancestorTag === 'table' && childTag === 'tr') {
  5678. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  5679. }
  5680. process.env.NODE_ENV !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s ' + 'See %s.%s', tagDisplayName, ancestorTag, whitespaceInfo, ownerInfo, info) : void 0;
  5681. } else {
  5682. process.env.NODE_ENV !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>. See %s.', tagDisplayName, ancestorTag, ownerInfo) : void 0;
  5683. }
  5684. }
  5685. };
  5686. validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo;
  5687. // For testing
  5688. validateDOMNesting.isTagValidInContext = function (tag, ancestorInfo) {
  5689. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  5690. var parentInfo = ancestorInfo.current;
  5691. var parentTag = parentInfo && parentInfo.tag;
  5692. return isTagValidWithParent(tag, parentTag) && !findInvalidAncestorForTag(tag, ancestorInfo);
  5693. };
  5694. }
  5695. module.exports = validateDOMNesting;
  5696. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5697. /***/ }),
  5698. /* 50 */
  5699. /***/ (function(module, exports, __webpack_require__) {
  5700. "use strict";
  5701. /**
  5702. * Copyright 2013-present, Facebook, Inc.
  5703. * All rights reserved.
  5704. *
  5705. * This source code is licensed under the BSD-style license found in the
  5706. * LICENSE file in the root directory of this source tree. An additional grant
  5707. * of patent rights can be found in the PATENTS file in the same directory.
  5708. *
  5709. */
  5710. /**
  5711. * `charCode` represents the actual "character code" and is safe to use with
  5712. * `String.fromCharCode`. As such, only keys that correspond to printable
  5713. * characters produce a valid `charCode`, the only exception to this is Enter.
  5714. * The Tab-key is considered non-printable and does not have a `charCode`,
  5715. * presumably because it does not produce a tab-character in browsers.
  5716. *
  5717. * @param {object} nativeEvent Native browser event.
  5718. * @return {number} Normalized `charCode` property.
  5719. */
  5720. function getEventCharCode(nativeEvent) {
  5721. var charCode;
  5722. var keyCode = nativeEvent.keyCode;
  5723. if ('charCode' in nativeEvent) {
  5724. charCode = nativeEvent.charCode;
  5725. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  5726. if (charCode === 0 && keyCode === 13) {
  5727. charCode = 13;
  5728. }
  5729. } else {
  5730. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  5731. charCode = keyCode;
  5732. }
  5733. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  5734. // Must not discard the (non-)printable Enter-key.
  5735. if (charCode >= 32 || charCode === 13) {
  5736. return charCode;
  5737. }
  5738. return 0;
  5739. }
  5740. module.exports = getEventCharCode;
  5741. /***/ }),
  5742. /* 51 */
  5743. /***/ (function(module, exports, __webpack_require__) {
  5744. "use strict";
  5745. /**
  5746. * Copyright 2014-present, Facebook, Inc.
  5747. * All rights reserved.
  5748. *
  5749. * This source code is licensed under the BSD-style license found in the
  5750. * LICENSE file in the root directory of this source tree. An additional grant
  5751. * of patent rights can be found in the PATENTS file in the same directory.
  5752. *
  5753. *
  5754. */
  5755. // The Symbol used to tag the ReactElement type. If there is no native Symbol
  5756. // nor polyfill, then a plain number is used for performance.
  5757. var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
  5758. module.exports = REACT_ELEMENT_TYPE;
  5759. /***/ }),
  5760. /* 52 */
  5761. /***/ (function(module, exports, __webpack_require__) {
  5762. "use strict";
  5763. /**
  5764. * Copyright 2013-present, Facebook, Inc.
  5765. * All rights reserved.
  5766. *
  5767. * This source code is licensed under the BSD-style license found in the
  5768. * LICENSE file in the root directory of this source tree. An additional grant
  5769. * of patent rights can be found in the PATENTS file in the same directory.
  5770. *
  5771. *
  5772. */
  5773. /* global Symbol */
  5774. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  5775. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  5776. /**
  5777. * Returns the iterator method function contained on the iterable object.
  5778. *
  5779. * Be sure to invoke the function with the iterable as context:
  5780. *
  5781. * var iteratorFn = getIteratorFn(myIterable);
  5782. * if (iteratorFn) {
  5783. * var iterator = iteratorFn.call(myIterable);
  5784. * ...
  5785. * }
  5786. *
  5787. * @param {?object} maybeIterable
  5788. * @return {?function}
  5789. */
  5790. function getIteratorFn(maybeIterable) {
  5791. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  5792. if (typeof iteratorFn === 'function') {
  5793. return iteratorFn;
  5794. }
  5795. }
  5796. module.exports = getIteratorFn;
  5797. /***/ }),
  5798. /* 53 */
  5799. /***/ (function(module, exports, __webpack_require__) {
  5800. "use strict";
  5801. /* WEBPACK VAR INJECTION */(function(process) {/**
  5802. * Copyright 2013-present, Facebook, Inc.
  5803. * All rights reserved.
  5804. *
  5805. * This source code is licensed under the BSD-style license found in the
  5806. * LICENSE file in the root directory of this source tree. An additional grant
  5807. * of patent rights can be found in the PATENTS file in the same directory.
  5808. *
  5809. *
  5810. */
  5811. var ReactPropTypeLocationNames = {};
  5812. if (process.env.NODE_ENV !== 'production') {
  5813. ReactPropTypeLocationNames = {
  5814. prop: 'prop',
  5815. context: 'context',
  5816. childContext: 'child context'
  5817. };
  5818. }
  5819. module.exports = ReactPropTypeLocationNames;
  5820. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5821. /***/ }),
  5822. /* 54 */
  5823. /***/ (function(module, exports, __webpack_require__) {
  5824. "use strict";
  5825. /* WEBPACK VAR INJECTION */(function(process) {/**
  5826. * Copyright 2014-present, Facebook, Inc.
  5827. * All rights reserved.
  5828. *
  5829. * This source code is licensed under the BSD-style license found in the
  5830. * LICENSE file in the root directory of this source tree. An additional grant
  5831. * of patent rights can be found in the PATENTS file in the same directory.
  5832. *
  5833. */
  5834. /**
  5835. * ReactElementValidator provides a wrapper around a element factory
  5836. * which validates the props passed to the element. This is intended to be
  5837. * used only in DEV and could be replaced by a static type checker for languages
  5838. * that support it.
  5839. */
  5840. var ReactCurrentOwner = __webpack_require__(10);
  5841. var ReactComponentTreeHook = __webpack_require__(7);
  5842. var ReactElement = __webpack_require__(15);
  5843. var checkReactTypeSpec = __webpack_require__(93);
  5844. var canDefineProperty = __webpack_require__(26);
  5845. var getIteratorFn = __webpack_require__(52);
  5846. var warning = __webpack_require__(2);
  5847. function getDeclarationErrorAddendum() {
  5848. if (ReactCurrentOwner.current) {
  5849. var name = ReactCurrentOwner.current.getName();
  5850. if (name) {
  5851. return ' Check the render method of `' + name + '`.';
  5852. }
  5853. }
  5854. return '';
  5855. }
  5856. function getSourceInfoErrorAddendum(elementProps) {
  5857. if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
  5858. var source = elementProps.__source;
  5859. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  5860. var lineNumber = source.lineNumber;
  5861. return ' Check your code at ' + fileName + ':' + lineNumber + '.';
  5862. }
  5863. return '';
  5864. }
  5865. /**
  5866. * Warn if there's no key explicitly set on dynamic arrays of children or
  5867. * object keys are not valid. This allows us to keep track of children between
  5868. * updates.
  5869. */
  5870. var ownerHasKeyUseWarning = {};
  5871. function getCurrentComponentErrorInfo(parentType) {
  5872. var info = getDeclarationErrorAddendum();
  5873. if (!info) {
  5874. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  5875. if (parentName) {
  5876. info = ' Check the top-level render call using <' + parentName + '>.';
  5877. }
  5878. }
  5879. return info;
  5880. }
  5881. /**
  5882. * Warn if the element doesn't have an explicit key assigned to it.
  5883. * This element is in an array. The array could grow and shrink or be
  5884. * reordered. All children that haven't already been validated are required to
  5885. * have a "key" property assigned to it. Error statuses are cached so a warning
  5886. * will only be shown once.
  5887. *
  5888. * @internal
  5889. * @param {ReactElement} element Element that requires a key.
  5890. * @param {*} parentType element's parent's type.
  5891. */
  5892. function validateExplicitKey(element, parentType) {
  5893. if (!element._store || element._store.validated || element.key != null) {
  5894. return;
  5895. }
  5896. element._store.validated = true;
  5897. var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});
  5898. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  5899. if (memoizer[currentComponentErrorInfo]) {
  5900. return;
  5901. }
  5902. memoizer[currentComponentErrorInfo] = true;
  5903. // Usually the current owner is the offender, but if it accepts children as a
  5904. // property, it may be the creator of the child that's responsible for
  5905. // assigning it a key.
  5906. var childOwner = '';
  5907. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  5908. // Give the component that originally created this child.
  5909. childOwner = ' It was passed a child from ' + element._owner.getName() + '.';
  5910. }
  5911. process.env.NODE_ENV !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;
  5912. }
  5913. /**
  5914. * Ensure that every element either is passed in a static location, in an
  5915. * array with an explicit keys property defined, or in an object literal
  5916. * with valid key property.
  5917. *
  5918. * @internal
  5919. * @param {ReactNode} node Statically passed child of any type.
  5920. * @param {*} parentType node's parent's type.
  5921. */
  5922. function validateChildKeys(node, parentType) {
  5923. if (typeof node !== 'object') {
  5924. return;
  5925. }
  5926. if (Array.isArray(node)) {
  5927. for (var i = 0; i < node.length; i++) {
  5928. var child = node[i];
  5929. if (ReactElement.isValidElement(child)) {
  5930. validateExplicitKey(child, parentType);
  5931. }
  5932. }
  5933. } else if (ReactElement.isValidElement(node)) {
  5934. // This element was passed in a valid location.
  5935. if (node._store) {
  5936. node._store.validated = true;
  5937. }
  5938. } else if (node) {
  5939. var iteratorFn = getIteratorFn(node);
  5940. // Entry iterators provide implicit keys.
  5941. if (iteratorFn) {
  5942. if (iteratorFn !== node.entries) {
  5943. var iterator = iteratorFn.call(node);
  5944. var step;
  5945. while (!(step = iterator.next()).done) {
  5946. if (ReactElement.isValidElement(step.value)) {
  5947. validateExplicitKey(step.value, parentType);
  5948. }
  5949. }
  5950. }
  5951. }
  5952. }
  5953. }
  5954. /**
  5955. * Given an element, validate that its props follow the propTypes definition,
  5956. * provided by the type.
  5957. *
  5958. * @param {ReactElement} element
  5959. */
  5960. function validatePropTypes(element) {
  5961. var componentClass = element.type;
  5962. if (typeof componentClass !== 'function') {
  5963. return;
  5964. }
  5965. var name = componentClass.displayName || componentClass.name;
  5966. if (componentClass.propTypes) {
  5967. checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);
  5968. }
  5969. if (typeof componentClass.getDefaultProps === 'function') {
  5970. process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  5971. }
  5972. }
  5973. var ReactElementValidator = {
  5974. createElement: function (type, props, children) {
  5975. var validType = typeof type === 'string' || typeof type === 'function';
  5976. // We warn in this case but don't throw. We expect the element creation to
  5977. // succeed and there will likely be errors in render.
  5978. if (!validType) {
  5979. if (typeof type !== 'function' && typeof type !== 'string') {
  5980. var info = '';
  5981. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  5982. info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
  5983. }
  5984. var sourceInfo = getSourceInfoErrorAddendum(props);
  5985. if (sourceInfo) {
  5986. info += sourceInfo;
  5987. } else {
  5988. info += getDeclarationErrorAddendum();
  5989. }
  5990. info += ReactComponentTreeHook.getCurrentStackAddendum();
  5991. process.env.NODE_ENV !== 'production' ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0;
  5992. }
  5993. }
  5994. var element = ReactElement.createElement.apply(this, arguments);
  5995. // The result can be nullish if a mock or a custom function is used.
  5996. // TODO: Drop this when these are no longer allowed as the type argument.
  5997. if (element == null) {
  5998. return element;
  5999. }
  6000. // Skip key warning if the type isn't valid since our key validation logic
  6001. // doesn't expect a non-string/function type and can throw confusing errors.
  6002. // We don't want exception behavior to differ between dev and prod.
  6003. // (Rendering will throw with a helpful message and as soon as the type is
  6004. // fixed, the key warnings will appear.)
  6005. if (validType) {
  6006. for (var i = 2; i < arguments.length; i++) {
  6007. validateChildKeys(arguments[i], type);
  6008. }
  6009. }
  6010. validatePropTypes(element);
  6011. return element;
  6012. },
  6013. createFactory: function (type) {
  6014. var validatedFactory = ReactElementValidator.createElement.bind(null, type);
  6015. // Legacy hook TODO: Warn if this is accessed
  6016. validatedFactory.type = type;
  6017. if (process.env.NODE_ENV !== 'production') {
  6018. if (canDefineProperty) {
  6019. Object.defineProperty(validatedFactory, 'type', {
  6020. enumerable: false,
  6021. get: function () {
  6022. process.env.NODE_ENV !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0;
  6023. Object.defineProperty(this, 'type', {
  6024. value: type
  6025. });
  6026. return type;
  6027. }
  6028. });
  6029. }
  6030. }
  6031. return validatedFactory;
  6032. },
  6033. cloneElement: function (element, props, children) {
  6034. var newElement = ReactElement.cloneElement.apply(this, arguments);
  6035. for (var i = 2; i < arguments.length; i++) {
  6036. validateChildKeys(arguments[i], newElement.type);
  6037. }
  6038. validatePropTypes(newElement);
  6039. return newElement;
  6040. }
  6041. };
  6042. module.exports = ReactElementValidator;
  6043. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6044. /***/ }),
  6045. /* 55 */
  6046. /***/ (function(module, exports, __webpack_require__) {
  6047. "use strict";
  6048. /**
  6049. * Copyright (c) 2013-present, Facebook, Inc.
  6050. *
  6051. * This source code is licensed under the MIT license found in the
  6052. * LICENSE file in the root directory of this source tree.
  6053. */
  6054. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  6055. module.exports = ReactPropTypesSecret;
  6056. /***/ }),
  6057. /* 56 */
  6058. /***/ (function(module, exports, __webpack_require__) {
  6059. "use strict";
  6060. /**
  6061. * Copyright 2015-present, Facebook, Inc.
  6062. * All rights reserved.
  6063. *
  6064. * This source code is licensed under the BSD-style license found in the
  6065. * LICENSE file in the root directory of this source tree. An additional grant
  6066. * of patent rights can be found in the PATENTS file in the same directory.
  6067. *
  6068. */
  6069. var ReactDOMComponentFlags = {
  6070. hasCachedChildNodes: 1 << 0
  6071. };
  6072. module.exports = ReactDOMComponentFlags;
  6073. /***/ }),
  6074. /* 57 */
  6075. /***/ (function(module, exports, __webpack_require__) {
  6076. "use strict";
  6077. /* WEBPACK VAR INJECTION */(function(process) {/**
  6078. * Copyright 2014-present, Facebook, Inc.
  6079. * All rights reserved.
  6080. *
  6081. * This source code is licensed under the BSD-style license found in the
  6082. * LICENSE file in the root directory of this source tree. An additional grant
  6083. * of patent rights can be found in the PATENTS file in the same directory.
  6084. *
  6085. *
  6086. */
  6087. var _prodInvariant = __webpack_require__(3);
  6088. var invariant = __webpack_require__(1);
  6089. /**
  6090. * Accumulates items that must not be null or undefined into the first one. This
  6091. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  6092. * API cleanness. Since `current` can be null before being passed in and not
  6093. * null after this function, make sure to assign it back to `current`:
  6094. *
  6095. * `a = accumulateInto(a, b);`
  6096. *
  6097. * This API should be sparingly used. Try `accumulate` for something cleaner.
  6098. *
  6099. * @return {*|array<*>} An accumulation of items.
  6100. */
  6101. function accumulateInto(current, next) {
  6102. !(next != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0;
  6103. if (current == null) {
  6104. return next;
  6105. }
  6106. // Both are not empty. Warning: Never call x.concat(y) when you are not
  6107. // certain that x is an Array (x could be a string with concat method).
  6108. if (Array.isArray(current)) {
  6109. if (Array.isArray(next)) {
  6110. current.push.apply(current, next);
  6111. return current;
  6112. }
  6113. current.push(next);
  6114. return current;
  6115. }
  6116. if (Array.isArray(next)) {
  6117. // A bit too dangerous to mutate `next`.
  6118. return [current].concat(next);
  6119. }
  6120. return [current, next];
  6121. }
  6122. module.exports = accumulateInto;
  6123. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6124. /***/ }),
  6125. /* 58 */
  6126. /***/ (function(module, exports, __webpack_require__) {
  6127. "use strict";
  6128. /**
  6129. * Copyright 2013-present, Facebook, Inc.
  6130. * All rights reserved.
  6131. *
  6132. * This source code is licensed under the BSD-style license found in the
  6133. * LICENSE file in the root directory of this source tree. An additional grant
  6134. * of patent rights can be found in the PATENTS file in the same directory.
  6135. *
  6136. *
  6137. */
  6138. /**
  6139. * @param {array} arr an "accumulation" of items which is either an Array or
  6140. * a single item. Useful when paired with the `accumulate` module. This is a
  6141. * simple utility that allows us to reason about a collection of items, but
  6142. * handling the case when there is exactly one item (and we do not need to
  6143. * allocate an array).
  6144. */
  6145. function forEachAccumulated(arr, cb, scope) {
  6146. if (Array.isArray(arr)) {
  6147. arr.forEach(cb, scope);
  6148. } else if (arr) {
  6149. cb.call(scope, arr);
  6150. }
  6151. }
  6152. module.exports = forEachAccumulated;
  6153. /***/ }),
  6154. /* 59 */
  6155. /***/ (function(module, exports, __webpack_require__) {
  6156. "use strict";
  6157. /**
  6158. * Copyright 2013-present, Facebook, Inc.
  6159. * All rights reserved.
  6160. *
  6161. * This source code is licensed under the BSD-style license found in the
  6162. * LICENSE file in the root directory of this source tree. An additional grant
  6163. * of patent rights can be found in the PATENTS file in the same directory.
  6164. *
  6165. */
  6166. var ExecutionEnvironment = __webpack_require__(6);
  6167. var contentKey = null;
  6168. /**
  6169. * Gets the key used to access text content on a DOM node.
  6170. *
  6171. * @return {?string} Key used to access text content.
  6172. * @internal
  6173. */
  6174. function getTextContentAccessor() {
  6175. if (!contentKey && ExecutionEnvironment.canUseDOM) {
  6176. // Prefer textContent to innerText because many browsers support both but
  6177. // SVG <text> elements don't support innerText even when <div> does.
  6178. contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';
  6179. }
  6180. return contentKey;
  6181. }
  6182. module.exports = getTextContentAccessor;
  6183. /***/ }),
  6184. /* 60 */
  6185. /***/ (function(module, exports, __webpack_require__) {
  6186. "use strict";
  6187. /* WEBPACK VAR INJECTION */(function(process) {/**
  6188. * Copyright 2013-present, Facebook, Inc.
  6189. * All rights reserved.
  6190. *
  6191. * This source code is licensed under the BSD-style license found in the
  6192. * LICENSE file in the root directory of this source tree. An additional grant
  6193. * of patent rights can be found in the PATENTS file in the same directory.
  6194. *
  6195. *
  6196. */
  6197. var _prodInvariant = __webpack_require__(3);
  6198. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6199. var PooledClass = __webpack_require__(16);
  6200. var invariant = __webpack_require__(1);
  6201. /**
  6202. * A specialized pseudo-event module to help keep track of components waiting to
  6203. * be notified when their DOM representations are available for use.
  6204. *
  6205. * This implements `PooledClass`, so you should never need to instantiate this.
  6206. * Instead, use `CallbackQueue.getPooled()`.
  6207. *
  6208. * @class ReactMountReady
  6209. * @implements PooledClass
  6210. * @internal
  6211. */
  6212. var CallbackQueue = function () {
  6213. function CallbackQueue(arg) {
  6214. _classCallCheck(this, CallbackQueue);
  6215. this._callbacks = null;
  6216. this._contexts = null;
  6217. this._arg = arg;
  6218. }
  6219. /**
  6220. * Enqueues a callback to be invoked when `notifyAll` is invoked.
  6221. *
  6222. * @param {function} callback Invoked when `notifyAll` is invoked.
  6223. * @param {?object} context Context to call `callback` with.
  6224. * @internal
  6225. */
  6226. CallbackQueue.prototype.enqueue = function enqueue(callback, context) {
  6227. this._callbacks = this._callbacks || [];
  6228. this._callbacks.push(callback);
  6229. this._contexts = this._contexts || [];
  6230. this._contexts.push(context);
  6231. };
  6232. /**
  6233. * Invokes all enqueued callbacks and clears the queue. This is invoked after
  6234. * the DOM representation of a component has been created or updated.
  6235. *
  6236. * @internal
  6237. */
  6238. CallbackQueue.prototype.notifyAll = function notifyAll() {
  6239. var callbacks = this._callbacks;
  6240. var contexts = this._contexts;
  6241. var arg = this._arg;
  6242. if (callbacks && contexts) {
  6243. !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;
  6244. this._callbacks = null;
  6245. this._contexts = null;
  6246. for (var i = 0; i < callbacks.length; i++) {
  6247. callbacks[i].call(contexts[i], arg);
  6248. }
  6249. callbacks.length = 0;
  6250. contexts.length = 0;
  6251. }
  6252. };
  6253. CallbackQueue.prototype.checkpoint = function checkpoint() {
  6254. return this._callbacks ? this._callbacks.length : 0;
  6255. };
  6256. CallbackQueue.prototype.rollback = function rollback(len) {
  6257. if (this._callbacks && this._contexts) {
  6258. this._callbacks.length = len;
  6259. this._contexts.length = len;
  6260. }
  6261. };
  6262. /**
  6263. * Resets the internal queue.
  6264. *
  6265. * @internal
  6266. */
  6267. CallbackQueue.prototype.reset = function reset() {
  6268. this._callbacks = null;
  6269. this._contexts = null;
  6270. };
  6271. /**
  6272. * `PooledClass` looks for this.
  6273. */
  6274. CallbackQueue.prototype.destructor = function destructor() {
  6275. this.reset();
  6276. };
  6277. return CallbackQueue;
  6278. }();
  6279. module.exports = PooledClass.addPoolingTo(CallbackQueue);
  6280. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6281. /***/ }),
  6282. /* 61 */
  6283. /***/ (function(module, exports, __webpack_require__) {
  6284. "use strict";
  6285. /**
  6286. * Copyright 2013-present, Facebook, Inc.
  6287. * All rights reserved.
  6288. *
  6289. * This source code is licensed under the BSD-style license found in the
  6290. * LICENSE file in the root directory of this source tree. An additional grant
  6291. * of patent rights can be found in the PATENTS file in the same directory.
  6292. *
  6293. *
  6294. */
  6295. var ReactFeatureFlags = {
  6296. // When true, call console.time() before and .timeEnd() after each top-level
  6297. // render (both initial renders and updates). Useful when looking at prod-mode
  6298. // timeline profiles in Chrome, for example.
  6299. logTopLevelRenders: false
  6300. };
  6301. module.exports = ReactFeatureFlags;
  6302. /***/ }),
  6303. /* 62 */
  6304. /***/ (function(module, exports, __webpack_require__) {
  6305. "use strict";
  6306. /**
  6307. * Copyright 2013-present, Facebook, Inc.
  6308. * All rights reserved.
  6309. *
  6310. * This source code is licensed under the BSD-style license found in the
  6311. * LICENSE file in the root directory of this source tree. An additional grant
  6312. * of patent rights can be found in the PATENTS file in the same directory.
  6313. *
  6314. *
  6315. */
  6316. /**
  6317. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  6318. */
  6319. var supportedInputTypes = {
  6320. 'color': true,
  6321. 'date': true,
  6322. 'datetime': true,
  6323. 'datetime-local': true,
  6324. 'email': true,
  6325. 'month': true,
  6326. 'number': true,
  6327. 'password': true,
  6328. 'range': true,
  6329. 'search': true,
  6330. 'tel': true,
  6331. 'text': true,
  6332. 'time': true,
  6333. 'url': true,
  6334. 'week': true
  6335. };
  6336. function isTextInputElement(elem) {
  6337. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  6338. if (nodeName === 'input') {
  6339. return !!supportedInputTypes[elem.type];
  6340. }
  6341. if (nodeName === 'textarea') {
  6342. return true;
  6343. }
  6344. return false;
  6345. }
  6346. module.exports = isTextInputElement;
  6347. /***/ }),
  6348. /* 63 */
  6349. /***/ (function(module, exports, __webpack_require__) {
  6350. "use strict";
  6351. /**
  6352. * Copyright 2013-present, Facebook, Inc.
  6353. * All rights reserved.
  6354. *
  6355. * This source code is licensed under the BSD-style license found in the
  6356. * LICENSE file in the root directory of this source tree. An additional grant
  6357. * of patent rights can be found in the PATENTS file in the same directory.
  6358. *
  6359. */
  6360. var ViewportMetrics = {
  6361. currentScrollLeft: 0,
  6362. currentScrollTop: 0,
  6363. refreshScrollValues: function (scrollPosition) {
  6364. ViewportMetrics.currentScrollLeft = scrollPosition.x;
  6365. ViewportMetrics.currentScrollTop = scrollPosition.y;
  6366. }
  6367. };
  6368. module.exports = ViewportMetrics;
  6369. /***/ }),
  6370. /* 64 */
  6371. /***/ (function(module, exports, __webpack_require__) {
  6372. "use strict";
  6373. /**
  6374. * Copyright 2013-present, Facebook, Inc.
  6375. * All rights reserved.
  6376. *
  6377. * This source code is licensed under the BSD-style license found in the
  6378. * LICENSE file in the root directory of this source tree. An additional grant
  6379. * of patent rights can be found in the PATENTS file in the same directory.
  6380. *
  6381. */
  6382. var ExecutionEnvironment = __webpack_require__(6);
  6383. var escapeTextContentForBrowser = __webpack_require__(31);
  6384. var setInnerHTML = __webpack_require__(30);
  6385. /**
  6386. * Set the textContent property of a node, ensuring that whitespace is preserved
  6387. * even in IE8. innerText is a poor substitute for textContent and, among many
  6388. * issues, inserts <br> instead of the literal newline chars. innerHTML behaves
  6389. * as it should.
  6390. *
  6391. * @param {DOMElement} node
  6392. * @param {string} text
  6393. * @internal
  6394. */
  6395. var setTextContent = function (node, text) {
  6396. if (text) {
  6397. var firstChild = node.firstChild;
  6398. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) {
  6399. firstChild.nodeValue = text;
  6400. return;
  6401. }
  6402. }
  6403. node.textContent = text;
  6404. };
  6405. if (ExecutionEnvironment.canUseDOM) {
  6406. if (!('textContent' in document.documentElement)) {
  6407. setTextContent = function (node, text) {
  6408. if (node.nodeType === 3) {
  6409. node.nodeValue = text;
  6410. return;
  6411. }
  6412. setInnerHTML(node, escapeTextContentForBrowser(text));
  6413. };
  6414. }
  6415. }
  6416. module.exports = setTextContent;
  6417. /***/ }),
  6418. /* 65 */
  6419. /***/ (function(module, exports, __webpack_require__) {
  6420. "use strict";
  6421. /**
  6422. * Copyright (c) 2013-present, Facebook, Inc.
  6423. *
  6424. * This source code is licensed under the MIT license found in the
  6425. * LICENSE file in the root directory of this source tree.
  6426. *
  6427. */
  6428. /**
  6429. * @param {DOMElement} node input/textarea to focus
  6430. */
  6431. function focusNode(node) {
  6432. // IE8 can throw "Can't move focus to the control because it is invisible,
  6433. // not enabled, or of a type that does not accept the focus." for all kinds of
  6434. // reasons that are too expensive and fragile to test.
  6435. try {
  6436. node.focus();
  6437. } catch (e) {}
  6438. }
  6439. module.exports = focusNode;
  6440. /***/ }),
  6441. /* 66 */
  6442. /***/ (function(module, exports, __webpack_require__) {
  6443. "use strict";
  6444. /**
  6445. * Copyright 2013-present, Facebook, Inc.
  6446. * All rights reserved.
  6447. *
  6448. * This source code is licensed under the BSD-style license found in the
  6449. * LICENSE file in the root directory of this source tree. An additional grant
  6450. * of patent rights can be found in the PATENTS file in the same directory.
  6451. *
  6452. */
  6453. /**
  6454. * CSS properties which accept numbers but are not in units of "px".
  6455. */
  6456. var isUnitlessNumber = {
  6457. animationIterationCount: true,
  6458. borderImageOutset: true,
  6459. borderImageSlice: true,
  6460. borderImageWidth: true,
  6461. boxFlex: true,
  6462. boxFlexGroup: true,
  6463. boxOrdinalGroup: true,
  6464. columnCount: true,
  6465. flex: true,
  6466. flexGrow: true,
  6467. flexPositive: true,
  6468. flexShrink: true,
  6469. flexNegative: true,
  6470. flexOrder: true,
  6471. gridRow: true,
  6472. gridColumn: true,
  6473. fontWeight: true,
  6474. lineClamp: true,
  6475. lineHeight: true,
  6476. opacity: true,
  6477. order: true,
  6478. orphans: true,
  6479. tabSize: true,
  6480. widows: true,
  6481. zIndex: true,
  6482. zoom: true,
  6483. // SVG-related properties
  6484. fillOpacity: true,
  6485. floodOpacity: true,
  6486. stopOpacity: true,
  6487. strokeDasharray: true,
  6488. strokeDashoffset: true,
  6489. strokeMiterlimit: true,
  6490. strokeOpacity: true,
  6491. strokeWidth: true
  6492. };
  6493. /**
  6494. * @param {string} prefix vendor-specific prefix, eg: Webkit
  6495. * @param {string} key style name, eg: transitionDuration
  6496. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  6497. * WebkitTransitionDuration
  6498. */
  6499. function prefixKey(prefix, key) {
  6500. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  6501. }
  6502. /**
  6503. * Support style names that may come passed in prefixed by adding permutations
  6504. * of vendor prefixes.
  6505. */
  6506. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  6507. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  6508. // infinite loop, because it iterates over the newly added props too.
  6509. Object.keys(isUnitlessNumber).forEach(function (prop) {
  6510. prefixes.forEach(function (prefix) {
  6511. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  6512. });
  6513. });
  6514. /**
  6515. * Most style properties can be unset by doing .style[prop] = '' but IE8
  6516. * doesn't like doing that with shorthand properties so for the properties that
  6517. * IE8 breaks on, which are listed here, we instead unset each of the
  6518. * individual properties. See http://bugs.jquery.com/ticket/12385.
  6519. * The 4-value 'clock' properties like margin, padding, border-width seem to
  6520. * behave without any problems. Curiously, list-style works too without any
  6521. * special prodding.
  6522. */
  6523. var shorthandPropertyExpansions = {
  6524. background: {
  6525. backgroundAttachment: true,
  6526. backgroundColor: true,
  6527. backgroundImage: true,
  6528. backgroundPositionX: true,
  6529. backgroundPositionY: true,
  6530. backgroundRepeat: true
  6531. },
  6532. backgroundPosition: {
  6533. backgroundPositionX: true,
  6534. backgroundPositionY: true
  6535. },
  6536. border: {
  6537. borderWidth: true,
  6538. borderStyle: true,
  6539. borderColor: true
  6540. },
  6541. borderBottom: {
  6542. borderBottomWidth: true,
  6543. borderBottomStyle: true,
  6544. borderBottomColor: true
  6545. },
  6546. borderLeft: {
  6547. borderLeftWidth: true,
  6548. borderLeftStyle: true,
  6549. borderLeftColor: true
  6550. },
  6551. borderRight: {
  6552. borderRightWidth: true,
  6553. borderRightStyle: true,
  6554. borderRightColor: true
  6555. },
  6556. borderTop: {
  6557. borderTopWidth: true,
  6558. borderTopStyle: true,
  6559. borderTopColor: true
  6560. },
  6561. font: {
  6562. fontStyle: true,
  6563. fontVariant: true,
  6564. fontWeight: true,
  6565. fontSize: true,
  6566. lineHeight: true,
  6567. fontFamily: true
  6568. },
  6569. outline: {
  6570. outlineWidth: true,
  6571. outlineStyle: true,
  6572. outlineColor: true
  6573. }
  6574. };
  6575. var CSSProperty = {
  6576. isUnitlessNumber: isUnitlessNumber,
  6577. shorthandPropertyExpansions: shorthandPropertyExpansions
  6578. };
  6579. module.exports = CSSProperty;
  6580. /***/ }),
  6581. /* 67 */
  6582. /***/ (function(module, exports, __webpack_require__) {
  6583. "use strict";
  6584. /* WEBPACK VAR INJECTION */(function(process) {/**
  6585. * Copyright 2013-present, Facebook, Inc.
  6586. * All rights reserved.
  6587. *
  6588. * This source code is licensed under the BSD-style license found in the
  6589. * LICENSE file in the root directory of this source tree. An additional grant
  6590. * of patent rights can be found in the PATENTS file in the same directory.
  6591. *
  6592. */
  6593. var DOMProperty = __webpack_require__(13);
  6594. var ReactDOMComponentTree = __webpack_require__(5);
  6595. var ReactInstrumentation = __webpack_require__(9);
  6596. var quoteAttributeValueForBrowser = __webpack_require__(135);
  6597. var warning = __webpack_require__(2);
  6598. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
  6599. var illegalAttributeNameCache = {};
  6600. var validatedAttributeNameCache = {};
  6601. function isAttributeNameSafe(attributeName) {
  6602. if (validatedAttributeNameCache.hasOwnProperty(attributeName)) {
  6603. return true;
  6604. }
  6605. if (illegalAttributeNameCache.hasOwnProperty(attributeName)) {
  6606. return false;
  6607. }
  6608. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  6609. validatedAttributeNameCache[attributeName] = true;
  6610. return true;
  6611. }
  6612. illegalAttributeNameCache[attributeName] = true;
  6613. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid attribute name: `%s`', attributeName) : void 0;
  6614. return false;
  6615. }
  6616. function shouldIgnoreValue(propertyInfo, value) {
  6617. return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false;
  6618. }
  6619. /**
  6620. * Operations for dealing with DOM properties.
  6621. */
  6622. var DOMPropertyOperations = {
  6623. /**
  6624. * Creates markup for the ID property.
  6625. *
  6626. * @param {string} id Unescaped ID.
  6627. * @return {string} Markup string.
  6628. */
  6629. createMarkupForID: function (id) {
  6630. return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id);
  6631. },
  6632. setAttributeForID: function (node, id) {
  6633. node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id);
  6634. },
  6635. createMarkupForRoot: function () {
  6636. return DOMProperty.ROOT_ATTRIBUTE_NAME + '=""';
  6637. },
  6638. setAttributeForRoot: function (node) {
  6639. node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, '');
  6640. },
  6641. /**
  6642. * Creates markup for a property.
  6643. *
  6644. * @param {string} name
  6645. * @param {*} value
  6646. * @return {?string} Markup string, or null if the property was invalid.
  6647. */
  6648. createMarkupForProperty: function (name, value) {
  6649. var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
  6650. if (propertyInfo) {
  6651. if (shouldIgnoreValue(propertyInfo, value)) {
  6652. return '';
  6653. }
  6654. var attributeName = propertyInfo.attributeName;
  6655. if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {
  6656. return attributeName + '=""';
  6657. }
  6658. return attributeName + '=' + quoteAttributeValueForBrowser(value);
  6659. } else if (DOMProperty.isCustomAttribute(name)) {
  6660. if (value == null) {
  6661. return '';
  6662. }
  6663. return name + '=' + quoteAttributeValueForBrowser(value);
  6664. }
  6665. return null;
  6666. },
  6667. /**
  6668. * Creates markup for a custom property.
  6669. *
  6670. * @param {string} name
  6671. * @param {*} value
  6672. * @return {string} Markup string, or empty string if the property was invalid.
  6673. */
  6674. createMarkupForCustomAttribute: function (name, value) {
  6675. if (!isAttributeNameSafe(name) || value == null) {
  6676. return '';
  6677. }
  6678. return name + '=' + quoteAttributeValueForBrowser(value);
  6679. },
  6680. /**
  6681. * Sets the value for a property on a node.
  6682. *
  6683. * @param {DOMElement} node
  6684. * @param {string} name
  6685. * @param {*} value
  6686. */
  6687. setValueForProperty: function (node, name, value) {
  6688. var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
  6689. if (propertyInfo) {
  6690. var mutationMethod = propertyInfo.mutationMethod;
  6691. if (mutationMethod) {
  6692. mutationMethod(node, value);
  6693. } else if (shouldIgnoreValue(propertyInfo, value)) {
  6694. this.deleteValueForProperty(node, name);
  6695. return;
  6696. } else if (propertyInfo.mustUseProperty) {
  6697. // Contrary to `setAttribute`, object properties are properly
  6698. // `toString`ed by IE8/9.
  6699. node[propertyInfo.propertyName] = value;
  6700. } else {
  6701. var attributeName = propertyInfo.attributeName;
  6702. var namespace = propertyInfo.attributeNamespace;
  6703. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  6704. // ('' + value) makes it output the correct toString()-value.
  6705. if (namespace) {
  6706. node.setAttributeNS(namespace, attributeName, '' + value);
  6707. } else if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {
  6708. node.setAttribute(attributeName, '');
  6709. } else {
  6710. node.setAttribute(attributeName, '' + value);
  6711. }
  6712. }
  6713. } else if (DOMProperty.isCustomAttribute(name)) {
  6714. DOMPropertyOperations.setValueForAttribute(node, name, value);
  6715. return;
  6716. }
  6717. if (process.env.NODE_ENV !== 'production') {
  6718. var payload = {};
  6719. payload[name] = value;
  6720. ReactInstrumentation.debugTool.onHostOperation({
  6721. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6722. type: 'update attribute',
  6723. payload: payload
  6724. });
  6725. }
  6726. },
  6727. setValueForAttribute: function (node, name, value) {
  6728. if (!isAttributeNameSafe(name)) {
  6729. return;
  6730. }
  6731. if (value == null) {
  6732. node.removeAttribute(name);
  6733. } else {
  6734. node.setAttribute(name, '' + value);
  6735. }
  6736. if (process.env.NODE_ENV !== 'production') {
  6737. var payload = {};
  6738. payload[name] = value;
  6739. ReactInstrumentation.debugTool.onHostOperation({
  6740. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6741. type: 'update attribute',
  6742. payload: payload
  6743. });
  6744. }
  6745. },
  6746. /**
  6747. * Deletes an attributes from a node.
  6748. *
  6749. * @param {DOMElement} node
  6750. * @param {string} name
  6751. */
  6752. deleteValueForAttribute: function (node, name) {
  6753. node.removeAttribute(name);
  6754. if (process.env.NODE_ENV !== 'production') {
  6755. ReactInstrumentation.debugTool.onHostOperation({
  6756. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6757. type: 'remove attribute',
  6758. payload: name
  6759. });
  6760. }
  6761. },
  6762. /**
  6763. * Deletes the value for a property on a node.
  6764. *
  6765. * @param {DOMElement} node
  6766. * @param {string} name
  6767. */
  6768. deleteValueForProperty: function (node, name) {
  6769. var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
  6770. if (propertyInfo) {
  6771. var mutationMethod = propertyInfo.mutationMethod;
  6772. if (mutationMethod) {
  6773. mutationMethod(node, undefined);
  6774. } else if (propertyInfo.mustUseProperty) {
  6775. var propName = propertyInfo.propertyName;
  6776. if (propertyInfo.hasBooleanValue) {
  6777. node[propName] = false;
  6778. } else {
  6779. node[propName] = '';
  6780. }
  6781. } else {
  6782. node.removeAttribute(propertyInfo.attributeName);
  6783. }
  6784. } else if (DOMProperty.isCustomAttribute(name)) {
  6785. node.removeAttribute(name);
  6786. }
  6787. if (process.env.NODE_ENV !== 'production') {
  6788. ReactInstrumentation.debugTool.onHostOperation({
  6789. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6790. type: 'remove attribute',
  6791. payload: name
  6792. });
  6793. }
  6794. }
  6795. };
  6796. module.exports = DOMPropertyOperations;
  6797. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6798. /***/ }),
  6799. /* 68 */
  6800. /***/ (function(module, exports, __webpack_require__) {
  6801. "use strict";
  6802. /**
  6803. * Copyright 2013-present, Facebook, Inc.
  6804. * All rights reserved.
  6805. *
  6806. * This source code is licensed under the BSD-style license found in the
  6807. * LICENSE file in the root directory of this source tree. An additional grant
  6808. * of patent rights can be found in the PATENTS file in the same directory.
  6809. *
  6810. *
  6811. */
  6812. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  6813. module.exports = ReactPropTypesSecret;
  6814. /***/ }),
  6815. /* 69 */
  6816. /***/ (function(module, exports, __webpack_require__) {
  6817. "use strict";
  6818. /**
  6819. * Copyright 2013-present, Facebook, Inc.
  6820. * All rights reserved.
  6821. *
  6822. * This source code is licensed under the BSD-style license found in the
  6823. * LICENSE file in the root directory of this source tree. An additional grant
  6824. * of patent rights can be found in the PATENTS file in the same directory.
  6825. */
  6826. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  6827. module.exports = ReactPropTypesSecret;
  6828. /***/ }),
  6829. /* 70 */
  6830. /***/ (function(module, exports, __webpack_require__) {
  6831. "use strict";
  6832. /* WEBPACK VAR INJECTION */(function(process) {/**
  6833. * Copyright 2013-present, Facebook, Inc.
  6834. * All rights reserved.
  6835. *
  6836. * This source code is licensed under the BSD-style license found in the
  6837. * LICENSE file in the root directory of this source tree. An additional grant
  6838. * of patent rights can be found in the PATENTS file in the same directory.
  6839. *
  6840. */
  6841. var _assign = __webpack_require__(4);
  6842. var LinkedValueUtils = __webpack_require__(43);
  6843. var ReactDOMComponentTree = __webpack_require__(5);
  6844. var ReactUpdates = __webpack_require__(11);
  6845. var warning = __webpack_require__(2);
  6846. var didWarnValueLink = false;
  6847. var didWarnValueDefaultValue = false;
  6848. function updateOptionsIfPendingUpdateAndMounted() {
  6849. if (this._rootNodeID && this._wrapperState.pendingUpdate) {
  6850. this._wrapperState.pendingUpdate = false;
  6851. var props = this._currentElement.props;
  6852. var value = LinkedValueUtils.getValue(props);
  6853. if (value != null) {
  6854. updateOptions(this, Boolean(props.multiple), value);
  6855. }
  6856. }
  6857. }
  6858. function getDeclarationErrorAddendum(owner) {
  6859. if (owner) {
  6860. var name = owner.getName();
  6861. if (name) {
  6862. return ' Check the render method of `' + name + '`.';
  6863. }
  6864. }
  6865. return '';
  6866. }
  6867. var valuePropNames = ['value', 'defaultValue'];
  6868. /**
  6869. * Validation function for `value` and `defaultValue`.
  6870. * @private
  6871. */
  6872. function checkSelectPropTypes(inst, props) {
  6873. var owner = inst._currentElement._owner;
  6874. LinkedValueUtils.checkPropTypes('select', props, owner);
  6875. if (props.valueLink !== undefined && !didWarnValueLink) {
  6876. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead.') : void 0;
  6877. didWarnValueLink = true;
  6878. }
  6879. for (var i = 0; i < valuePropNames.length; i++) {
  6880. var propName = valuePropNames[i];
  6881. if (props[propName] == null) {
  6882. continue;
  6883. }
  6884. var isArray = Array.isArray(props[propName]);
  6885. if (props.multiple && !isArray) {
  6886. process.env.NODE_ENV !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;
  6887. } else if (!props.multiple && isArray) {
  6888. process.env.NODE_ENV !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;
  6889. }
  6890. }
  6891. }
  6892. /**
  6893. * @param {ReactDOMComponent} inst
  6894. * @param {boolean} multiple
  6895. * @param {*} propValue A stringable (with `multiple`, a list of stringables).
  6896. * @private
  6897. */
  6898. function updateOptions(inst, multiple, propValue) {
  6899. var selectedValue, i;
  6900. var options = ReactDOMComponentTree.getNodeFromInstance(inst).options;
  6901. if (multiple) {
  6902. selectedValue = {};
  6903. for (i = 0; i < propValue.length; i++) {
  6904. selectedValue['' + propValue[i]] = true;
  6905. }
  6906. for (i = 0; i < options.length; i++) {
  6907. var selected = selectedValue.hasOwnProperty(options[i].value);
  6908. if (options[i].selected !== selected) {
  6909. options[i].selected = selected;
  6910. }
  6911. }
  6912. } else {
  6913. // Do not set `select.value` as exact behavior isn't consistent across all
  6914. // browsers for all cases.
  6915. selectedValue = '' + propValue;
  6916. for (i = 0; i < options.length; i++) {
  6917. if (options[i].value === selectedValue) {
  6918. options[i].selected = true;
  6919. return;
  6920. }
  6921. }
  6922. if (options.length) {
  6923. options[0].selected = true;
  6924. }
  6925. }
  6926. }
  6927. /**
  6928. * Implements a <select> host component that allows optionally setting the
  6929. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  6930. * stringable. If `multiple` is true, the prop must be an array of stringables.
  6931. *
  6932. * If `value` is not supplied (or null/undefined), user actions that change the
  6933. * selected option will trigger updates to the rendered options.
  6934. *
  6935. * If it is supplied (and not null/undefined), the rendered options will not
  6936. * update in response to user actions. Instead, the `value` prop must change in
  6937. * order for the rendered options to update.
  6938. *
  6939. * If `defaultValue` is provided, any options with the supplied values will be
  6940. * selected.
  6941. */
  6942. var ReactDOMSelect = {
  6943. getHostProps: function (inst, props) {
  6944. return _assign({}, props, {
  6945. onChange: inst._wrapperState.onChange,
  6946. value: undefined
  6947. });
  6948. },
  6949. mountWrapper: function (inst, props) {
  6950. if (process.env.NODE_ENV !== 'production') {
  6951. checkSelectPropTypes(inst, props);
  6952. }
  6953. var value = LinkedValueUtils.getValue(props);
  6954. inst._wrapperState = {
  6955. pendingUpdate: false,
  6956. initialValue: value != null ? value : props.defaultValue,
  6957. listeners: null,
  6958. onChange: _handleChange.bind(inst),
  6959. wasMultiple: Boolean(props.multiple)
  6960. };
  6961. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  6962. process.env.NODE_ENV !== 'production' ? warning(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') : void 0;
  6963. didWarnValueDefaultValue = true;
  6964. }
  6965. },
  6966. getSelectValueContext: function (inst) {
  6967. // ReactDOMOption looks at this initial value so the initial generated
  6968. // markup has correct `selected` attributes
  6969. return inst._wrapperState.initialValue;
  6970. },
  6971. postUpdateWrapper: function (inst) {
  6972. var props = inst._currentElement.props;
  6973. // After the initial mount, we control selected-ness manually so don't pass
  6974. // this value down
  6975. inst._wrapperState.initialValue = undefined;
  6976. var wasMultiple = inst._wrapperState.wasMultiple;
  6977. inst._wrapperState.wasMultiple = Boolean(props.multiple);
  6978. var value = LinkedValueUtils.getValue(props);
  6979. if (value != null) {
  6980. inst._wrapperState.pendingUpdate = false;
  6981. updateOptions(inst, Boolean(props.multiple), value);
  6982. } else if (wasMultiple !== Boolean(props.multiple)) {
  6983. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  6984. if (props.defaultValue != null) {
  6985. updateOptions(inst, Boolean(props.multiple), props.defaultValue);
  6986. } else {
  6987. // Revert the select back to its default unselected state.
  6988. updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : '');
  6989. }
  6990. }
  6991. }
  6992. };
  6993. function _handleChange(event) {
  6994. var props = this._currentElement.props;
  6995. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  6996. if (this._rootNodeID) {
  6997. this._wrapperState.pendingUpdate = true;
  6998. }
  6999. ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this);
  7000. return returnValue;
  7001. }
  7002. module.exports = ReactDOMSelect;
  7003. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7004. /***/ }),
  7005. /* 71 */
  7006. /***/ (function(module, exports, __webpack_require__) {
  7007. "use strict";
  7008. /* WEBPACK VAR INJECTION */(function(process) {/**
  7009. * Copyright 2013-present, Facebook, Inc.
  7010. * All rights reserved.
  7011. *
  7012. * This source code is licensed under the BSD-style license found in the
  7013. * LICENSE file in the root directory of this source tree. An additional grant
  7014. * of patent rights can be found in the PATENTS file in the same directory.
  7015. *
  7016. */
  7017. var _prodInvariant = __webpack_require__(3),
  7018. _assign = __webpack_require__(4);
  7019. var ReactCompositeComponent = __webpack_require__(146);
  7020. var ReactEmptyComponent = __webpack_require__(73);
  7021. var ReactHostComponent = __webpack_require__(74);
  7022. var getNextDebugID = __webpack_require__(149);
  7023. var invariant = __webpack_require__(1);
  7024. var warning = __webpack_require__(2);
  7025. // To avoid a cyclic dependency, we create the final class in this module
  7026. var ReactCompositeComponentWrapper = function (element) {
  7027. this.construct(element);
  7028. };
  7029. function getDeclarationErrorAddendum(owner) {
  7030. if (owner) {
  7031. var name = owner.getName();
  7032. if (name) {
  7033. return ' Check the render method of `' + name + '`.';
  7034. }
  7035. }
  7036. return '';
  7037. }
  7038. /**
  7039. * Check if the type reference is a known internal type. I.e. not a user
  7040. * provided composite type.
  7041. *
  7042. * @param {function} type
  7043. * @return {boolean} Returns true if this is a valid internal type.
  7044. */
  7045. function isInternalComponentType(type) {
  7046. return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function';
  7047. }
  7048. /**
  7049. * Given a ReactNode, create an instance that will actually be mounted.
  7050. *
  7051. * @param {ReactNode} node
  7052. * @param {boolean} shouldHaveDebugID
  7053. * @return {object} A new instance of the element's constructor.
  7054. * @protected
  7055. */
  7056. function instantiateReactComponent(node, shouldHaveDebugID) {
  7057. var instance;
  7058. if (node === null || node === false) {
  7059. instance = ReactEmptyComponent.create(instantiateReactComponent);
  7060. } else if (typeof node === 'object') {
  7061. var element = node;
  7062. var type = element.type;
  7063. if (typeof type !== 'function' && typeof type !== 'string') {
  7064. var info = '';
  7065. if (process.env.NODE_ENV !== 'production') {
  7066. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  7067. info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
  7068. }
  7069. }
  7070. info += getDeclarationErrorAddendum(element._owner);
  7071. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info) : _prodInvariant('130', type == null ? type : typeof type, info) : void 0;
  7072. }
  7073. // Special case string values
  7074. if (typeof element.type === 'string') {
  7075. instance = ReactHostComponent.createInternalComponent(element);
  7076. } else if (isInternalComponentType(element.type)) {
  7077. // This is temporarily available for custom components that are not string
  7078. // representations. I.e. ART. Once those are updated to use the string
  7079. // representation, we can drop this code path.
  7080. instance = new element.type(element);
  7081. // We renamed this. Allow the old name for compat. :(
  7082. if (!instance.getHostNode) {
  7083. instance.getHostNode = instance.getNativeNode;
  7084. }
  7085. } else {
  7086. instance = new ReactCompositeComponentWrapper(element);
  7087. }
  7088. } else if (typeof node === 'string' || typeof node === 'number') {
  7089. instance = ReactHostComponent.createInstanceForText(node);
  7090. } else {
  7091. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : _prodInvariant('131', typeof node) : void 0;
  7092. }
  7093. if (process.env.NODE_ENV !== 'production') {
  7094. process.env.NODE_ENV !== 'production' ? warning(typeof instance.mountComponent === 'function' && typeof instance.receiveComponent === 'function' && typeof instance.getHostNode === 'function' && typeof instance.unmountComponent === 'function', 'Only React Components can be mounted.') : void 0;
  7095. }
  7096. // These two fields are used by the DOM and ART diffing algorithms
  7097. // respectively. Instead of using expandos on components, we should be
  7098. // storing the state needed by the diffing algorithms elsewhere.
  7099. instance._mountIndex = 0;
  7100. instance._mountImage = null;
  7101. if (process.env.NODE_ENV !== 'production') {
  7102. instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0;
  7103. }
  7104. // Internal instances should fully constructed at this point, so they should
  7105. // not get any new fields added to them at this point.
  7106. if (process.env.NODE_ENV !== 'production') {
  7107. if (Object.preventExtensions) {
  7108. Object.preventExtensions(instance);
  7109. }
  7110. }
  7111. return instance;
  7112. }
  7113. _assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
  7114. _instantiateReactComponent: instantiateReactComponent
  7115. });
  7116. module.exports = instantiateReactComponent;
  7117. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7118. /***/ }),
  7119. /* 72 */
  7120. /***/ (function(module, exports, __webpack_require__) {
  7121. "use strict";
  7122. /* WEBPACK VAR INJECTION */(function(process) {/**
  7123. * Copyright 2013-present, Facebook, Inc.
  7124. * All rights reserved.
  7125. *
  7126. * This source code is licensed under the BSD-style license found in the
  7127. * LICENSE file in the root directory of this source tree. An additional grant
  7128. * of patent rights can be found in the PATENTS file in the same directory.
  7129. *
  7130. *
  7131. */
  7132. var _prodInvariant = __webpack_require__(3);
  7133. var React = __webpack_require__(17);
  7134. var invariant = __webpack_require__(1);
  7135. var ReactNodeTypes = {
  7136. HOST: 0,
  7137. COMPOSITE: 1,
  7138. EMPTY: 2,
  7139. getType: function (node) {
  7140. if (node === null || node === false) {
  7141. return ReactNodeTypes.EMPTY;
  7142. } else if (React.isValidElement(node)) {
  7143. if (typeof node.type === 'function') {
  7144. return ReactNodeTypes.COMPOSITE;
  7145. } else {
  7146. return ReactNodeTypes.HOST;
  7147. }
  7148. }
  7149. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Unexpected node: %s', node) : _prodInvariant('26', node) : void 0;
  7150. }
  7151. };
  7152. module.exports = ReactNodeTypes;
  7153. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7154. /***/ }),
  7155. /* 73 */
  7156. /***/ (function(module, exports, __webpack_require__) {
  7157. "use strict";
  7158. /**
  7159. * Copyright 2014-present, Facebook, Inc.
  7160. * All rights reserved.
  7161. *
  7162. * This source code is licensed under the BSD-style license found in the
  7163. * LICENSE file in the root directory of this source tree. An additional grant
  7164. * of patent rights can be found in the PATENTS file in the same directory.
  7165. *
  7166. */
  7167. var emptyComponentFactory;
  7168. var ReactEmptyComponentInjection = {
  7169. injectEmptyComponentFactory: function (factory) {
  7170. emptyComponentFactory = factory;
  7171. }
  7172. };
  7173. var ReactEmptyComponent = {
  7174. create: function (instantiate) {
  7175. return emptyComponentFactory(instantiate);
  7176. }
  7177. };
  7178. ReactEmptyComponent.injection = ReactEmptyComponentInjection;
  7179. module.exports = ReactEmptyComponent;
  7180. /***/ }),
  7181. /* 74 */
  7182. /***/ (function(module, exports, __webpack_require__) {
  7183. "use strict";
  7184. /* WEBPACK VAR INJECTION */(function(process) {/**
  7185. * Copyright 2014-present, Facebook, Inc.
  7186. * All rights reserved.
  7187. *
  7188. * This source code is licensed under the BSD-style license found in the
  7189. * LICENSE file in the root directory of this source tree. An additional grant
  7190. * of patent rights can be found in the PATENTS file in the same directory.
  7191. *
  7192. */
  7193. var _prodInvariant = __webpack_require__(3);
  7194. var invariant = __webpack_require__(1);
  7195. var genericComponentClass = null;
  7196. var textComponentClass = null;
  7197. var ReactHostComponentInjection = {
  7198. // This accepts a class that receives the tag string. This is a catch all
  7199. // that can render any kind of tag.
  7200. injectGenericComponentClass: function (componentClass) {
  7201. genericComponentClass = componentClass;
  7202. },
  7203. // This accepts a text component class that takes the text string to be
  7204. // rendered as props.
  7205. injectTextComponentClass: function (componentClass) {
  7206. textComponentClass = componentClass;
  7207. }
  7208. };
  7209. /**
  7210. * Get a host internal component class for a specific tag.
  7211. *
  7212. * @param {ReactElement} element The element to create.
  7213. * @return {function} The internal class constructor function.
  7214. */
  7215. function createInternalComponent(element) {
  7216. !genericComponentClass ? process.env.NODE_ENV !== 'production' ? invariant(false, 'There is no registered component for the tag %s', element.type) : _prodInvariant('111', element.type) : void 0;
  7217. return new genericComponentClass(element);
  7218. }
  7219. /**
  7220. * @param {ReactText} text
  7221. * @return {ReactComponent}
  7222. */
  7223. function createInstanceForText(text) {
  7224. return new textComponentClass(text);
  7225. }
  7226. /**
  7227. * @param {ReactComponent} component
  7228. * @return {boolean}
  7229. */
  7230. function isTextComponent(component) {
  7231. return component instanceof textComponentClass;
  7232. }
  7233. var ReactHostComponent = {
  7234. createInternalComponent: createInternalComponent,
  7235. createInstanceForText: createInstanceForText,
  7236. isTextComponent: isTextComponent,
  7237. injection: ReactHostComponentInjection
  7238. };
  7239. module.exports = ReactHostComponent;
  7240. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7241. /***/ }),
  7242. /* 75 */
  7243. /***/ (function(module, exports, __webpack_require__) {
  7244. "use strict";
  7245. /* WEBPACK VAR INJECTION */(function(process) {/**
  7246. * Copyright 2013-present, Facebook, Inc.
  7247. * All rights reserved.
  7248. *
  7249. * This source code is licensed under the BSD-style license found in the
  7250. * LICENSE file in the root directory of this source tree. An additional grant
  7251. * of patent rights can be found in the PATENTS file in the same directory.
  7252. *
  7253. */
  7254. var _prodInvariant = __webpack_require__(3);
  7255. var ReactCurrentOwner = __webpack_require__(10);
  7256. var REACT_ELEMENT_TYPE = __webpack_require__(150);
  7257. var getIteratorFn = __webpack_require__(151);
  7258. var invariant = __webpack_require__(1);
  7259. var KeyEscapeUtils = __webpack_require__(47);
  7260. var warning = __webpack_require__(2);
  7261. var SEPARATOR = '.';
  7262. var SUBSEPARATOR = ':';
  7263. /**
  7264. * This is inlined from ReactElement since this file is shared between
  7265. * isomorphic and renderers. We could extract this to a
  7266. *
  7267. */
  7268. /**
  7269. * TODO: Test that a single child and an array with one item have the same key
  7270. * pattern.
  7271. */
  7272. var didWarnAboutMaps = false;
  7273. /**
  7274. * Generate a key string that identifies a component within a set.
  7275. *
  7276. * @param {*} component A component that could contain a manual key.
  7277. * @param {number} index Index that is used if a manual key is not provided.
  7278. * @return {string}
  7279. */
  7280. function getComponentKey(component, index) {
  7281. // Do some typechecking here since we call this blindly. We want to ensure
  7282. // that we don't block potential future ES APIs.
  7283. if (component && typeof component === 'object' && component.key != null) {
  7284. // Explicit key
  7285. return KeyEscapeUtils.escape(component.key);
  7286. }
  7287. // Implicit key determined by the index in the set
  7288. return index.toString(36);
  7289. }
  7290. /**
  7291. * @param {?*} children Children tree container.
  7292. * @param {!string} nameSoFar Name of the key path so far.
  7293. * @param {!function} callback Callback to invoke with each child found.
  7294. * @param {?*} traverseContext Used to pass information throughout the traversal
  7295. * process.
  7296. * @return {!number} The number of children in this subtree.
  7297. */
  7298. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  7299. var type = typeof children;
  7300. if (type === 'undefined' || type === 'boolean') {
  7301. // All of the above are perceived as null.
  7302. children = null;
  7303. }
  7304. if (children === null || type === 'string' || type === 'number' ||
  7305. // The following is inlined from ReactElement. This means we can optimize
  7306. // some checks. React Fiber also inlines this logic for similar purposes.
  7307. type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
  7308. callback(traverseContext, children,
  7309. // If it's the only child, treat the name as if it was wrapped in an array
  7310. // so that it's consistent if the number of children grows.
  7311. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  7312. return 1;
  7313. }
  7314. var child;
  7315. var nextName;
  7316. var subtreeCount = 0; // Count of children found in the current subtree.
  7317. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  7318. if (Array.isArray(children)) {
  7319. for (var i = 0; i < children.length; i++) {
  7320. child = children[i];
  7321. nextName = nextNamePrefix + getComponentKey(child, i);
  7322. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  7323. }
  7324. } else {
  7325. var iteratorFn = getIteratorFn(children);
  7326. if (iteratorFn) {
  7327. var iterator = iteratorFn.call(children);
  7328. var step;
  7329. if (iteratorFn !== children.entries) {
  7330. var ii = 0;
  7331. while (!(step = iterator.next()).done) {
  7332. child = step.value;
  7333. nextName = nextNamePrefix + getComponentKey(child, ii++);
  7334. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  7335. }
  7336. } else {
  7337. if (process.env.NODE_ENV !== 'production') {
  7338. var mapsAsChildrenAddendum = '';
  7339. if (ReactCurrentOwner.current) {
  7340. var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
  7341. if (mapsAsChildrenOwnerName) {
  7342. mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
  7343. }
  7344. }
  7345. process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
  7346. didWarnAboutMaps = true;
  7347. }
  7348. // Iterator will provide entry [k,v] tuples rather than values.
  7349. while (!(step = iterator.next()).done) {
  7350. var entry = step.value;
  7351. if (entry) {
  7352. child = entry[1];
  7353. nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
  7354. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  7355. }
  7356. }
  7357. }
  7358. } else if (type === 'object') {
  7359. var addendum = '';
  7360. if (process.env.NODE_ENV !== 'production') {
  7361. addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
  7362. if (children._isReactElement) {
  7363. addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
  7364. }
  7365. if (ReactCurrentOwner.current) {
  7366. var name = ReactCurrentOwner.current.getName();
  7367. if (name) {
  7368. addendum += ' Check the render method of `' + name + '`.';
  7369. }
  7370. }
  7371. }
  7372. var childrenString = String(children);
  7373. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
  7374. }
  7375. }
  7376. return subtreeCount;
  7377. }
  7378. /**
  7379. * Traverses children that are typically specified as `props.children`, but
  7380. * might also be specified through attributes:
  7381. *
  7382. * - `traverseAllChildren(this.props.children, ...)`
  7383. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  7384. *
  7385. * The `traverseContext` is an optional argument that is passed through the
  7386. * entire traversal. It can be used to store accumulations or anything else that
  7387. * the callback might find relevant.
  7388. *
  7389. * @param {?*} children Children tree object.
  7390. * @param {!function} callback To invoke upon traversing each child.
  7391. * @param {?*} traverseContext Context for traversal.
  7392. * @return {!number} The number of children in this subtree.
  7393. */
  7394. function traverseAllChildren(children, callback, traverseContext) {
  7395. if (children == null) {
  7396. return 0;
  7397. }
  7398. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  7399. }
  7400. module.exports = traverseAllChildren;
  7401. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7402. /***/ }),
  7403. /* 76 */
  7404. /***/ (function(module, exports, __webpack_require__) {
  7405. "use strict";
  7406. /* WEBPACK VAR INJECTION */(function(process) {
  7407. /**
  7408. * Copyright (c) 2013-present, Facebook, Inc.
  7409. *
  7410. * This source code is licensed under the MIT license found in the
  7411. * LICENSE file in the root directory of this source tree.
  7412. *
  7413. * @typechecks
  7414. */
  7415. var emptyFunction = __webpack_require__(8);
  7416. /**
  7417. * Upstream version of event listener. Does not take into account specific
  7418. * nature of platform.
  7419. */
  7420. var EventListener = {
  7421. /**
  7422. * Listen to DOM events during the bubble phase.
  7423. *
  7424. * @param {DOMEventTarget} target DOM element to register listener on.
  7425. * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
  7426. * @param {function} callback Callback function.
  7427. * @return {object} Object with a `remove` method.
  7428. */
  7429. listen: function listen(target, eventType, callback) {
  7430. if (target.addEventListener) {
  7431. target.addEventListener(eventType, callback, false);
  7432. return {
  7433. remove: function remove() {
  7434. target.removeEventListener(eventType, callback, false);
  7435. }
  7436. };
  7437. } else if (target.attachEvent) {
  7438. target.attachEvent('on' + eventType, callback);
  7439. return {
  7440. remove: function remove() {
  7441. target.detachEvent('on' + eventType, callback);
  7442. }
  7443. };
  7444. }
  7445. },
  7446. /**
  7447. * Listen to DOM events during the capture phase.
  7448. *
  7449. * @param {DOMEventTarget} target DOM element to register listener on.
  7450. * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
  7451. * @param {function} callback Callback function.
  7452. * @return {object} Object with a `remove` method.
  7453. */
  7454. capture: function capture(target, eventType, callback) {
  7455. if (target.addEventListener) {
  7456. target.addEventListener(eventType, callback, true);
  7457. return {
  7458. remove: function remove() {
  7459. target.removeEventListener(eventType, callback, true);
  7460. }
  7461. };
  7462. } else {
  7463. if (process.env.NODE_ENV !== 'production') {
  7464. console.error('Attempted to listen to events during the capture phase on a ' + 'browser that does not support the capture phase. Your application ' + 'will not receive some events.');
  7465. }
  7466. return {
  7467. remove: emptyFunction
  7468. };
  7469. }
  7470. },
  7471. registerDefault: function registerDefault() {}
  7472. };
  7473. module.exports = EventListener;
  7474. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7475. /***/ }),
  7476. /* 77 */
  7477. /***/ (function(module, exports, __webpack_require__) {
  7478. "use strict";
  7479. /**
  7480. * Copyright 2013-present, Facebook, Inc.
  7481. * All rights reserved.
  7482. *
  7483. * This source code is licensed under the BSD-style license found in the
  7484. * LICENSE file in the root directory of this source tree. An additional grant
  7485. * of patent rights can be found in the PATENTS file in the same directory.
  7486. *
  7487. */
  7488. var ReactDOMSelection = __webpack_require__(163);
  7489. var containsNode = __webpack_require__(165);
  7490. var focusNode = __webpack_require__(65);
  7491. var getActiveElement = __webpack_require__(78);
  7492. function isInDocument(node) {
  7493. return containsNode(document.documentElement, node);
  7494. }
  7495. /**
  7496. * @ReactInputSelection: React input selection module. Based on Selection.js,
  7497. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  7498. * assume buttons have range selections allowed).
  7499. * Input selection module for React.
  7500. */
  7501. var ReactInputSelection = {
  7502. hasSelectionCapabilities: function (elem) {
  7503. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  7504. return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true');
  7505. },
  7506. getSelectionInformation: function () {
  7507. var focusedElem = getActiveElement();
  7508. return {
  7509. focusedElem: focusedElem,
  7510. selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) ? ReactInputSelection.getSelection(focusedElem) : null
  7511. };
  7512. },
  7513. /**
  7514. * @restoreSelection: If any selection information was potentially lost,
  7515. * restore it. This is useful when performing operations that could remove dom
  7516. * nodes and place them back in, resulting in focus being lost.
  7517. */
  7518. restoreSelection: function (priorSelectionInformation) {
  7519. var curFocusedElem = getActiveElement();
  7520. var priorFocusedElem = priorSelectionInformation.focusedElem;
  7521. var priorSelectionRange = priorSelectionInformation.selectionRange;
  7522. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  7523. if (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)) {
  7524. ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange);
  7525. }
  7526. focusNode(priorFocusedElem);
  7527. }
  7528. },
  7529. /**
  7530. * @getSelection: Gets the selection bounds of a focused textarea, input or
  7531. * contentEditable node.
  7532. * -@input: Look up selection bounds of this input
  7533. * -@return {start: selectionStart, end: selectionEnd}
  7534. */
  7535. getSelection: function (input) {
  7536. var selection;
  7537. if ('selectionStart' in input) {
  7538. // Modern browser with input or textarea.
  7539. selection = {
  7540. start: input.selectionStart,
  7541. end: input.selectionEnd
  7542. };
  7543. } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {
  7544. // IE8 input.
  7545. var range = document.selection.createRange();
  7546. // There can only be one selection per document in IE, so it must
  7547. // be in our element.
  7548. if (range.parentElement() === input) {
  7549. selection = {
  7550. start: -range.moveStart('character', -input.value.length),
  7551. end: -range.moveEnd('character', -input.value.length)
  7552. };
  7553. }
  7554. } else {
  7555. // Content editable or old IE textarea.
  7556. selection = ReactDOMSelection.getOffsets(input);
  7557. }
  7558. return selection || { start: 0, end: 0 };
  7559. },
  7560. /**
  7561. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  7562. * the input.
  7563. * -@input Set selection bounds of this input or textarea
  7564. * -@offsets Object of same form that is returned from get*
  7565. */
  7566. setSelection: function (input, offsets) {
  7567. var start = offsets.start;
  7568. var end = offsets.end;
  7569. if (end === undefined) {
  7570. end = start;
  7571. }
  7572. if ('selectionStart' in input) {
  7573. input.selectionStart = start;
  7574. input.selectionEnd = Math.min(end, input.value.length);
  7575. } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {
  7576. var range = input.createTextRange();
  7577. range.collapse(true);
  7578. range.moveStart('character', start);
  7579. range.moveEnd('character', end - start);
  7580. range.select();
  7581. } else {
  7582. ReactDOMSelection.setOffsets(input, offsets);
  7583. }
  7584. }
  7585. };
  7586. module.exports = ReactInputSelection;
  7587. /***/ }),
  7588. /* 78 */
  7589. /***/ (function(module, exports, __webpack_require__) {
  7590. "use strict";
  7591. /**
  7592. * Copyright (c) 2013-present, Facebook, Inc.
  7593. *
  7594. * This source code is licensed under the MIT license found in the
  7595. * LICENSE file in the root directory of this source tree.
  7596. *
  7597. * @typechecks
  7598. */
  7599. /* eslint-disable fb-www/typeof-undefined */
  7600. /**
  7601. * Same as document.activeElement but wraps in a try-catch block. In IE it is
  7602. * not safe to call document.activeElement if there is nothing focused.
  7603. *
  7604. * The activeElement will be null only if the document or document body is not
  7605. * yet defined.
  7606. *
  7607. * @param {?DOMDocument} doc Defaults to current document.
  7608. * @return {?DOMElement}
  7609. */
  7610. function getActiveElement(doc) /*?DOMElement*/{
  7611. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  7612. if (typeof doc === 'undefined') {
  7613. return null;
  7614. }
  7615. try {
  7616. return doc.activeElement || doc.body;
  7617. } catch (e) {
  7618. return doc.body;
  7619. }
  7620. }
  7621. module.exports = getActiveElement;
  7622. /***/ }),
  7623. /* 79 */
  7624. /***/ (function(module, exports, __webpack_require__) {
  7625. "use strict";
  7626. /* WEBPACK VAR INJECTION */(function(process) {/**
  7627. * Copyright 2013-present, Facebook, Inc.
  7628. * All rights reserved.
  7629. *
  7630. * This source code is licensed under the BSD-style license found in the
  7631. * LICENSE file in the root directory of this source tree. An additional grant
  7632. * of patent rights can be found in the PATENTS file in the same directory.
  7633. *
  7634. */
  7635. var _prodInvariant = __webpack_require__(3);
  7636. var DOMLazyTree = __webpack_require__(19);
  7637. var DOMProperty = __webpack_require__(13);
  7638. var React = __webpack_require__(17);
  7639. var ReactBrowserEventEmitter = __webpack_require__(32);
  7640. var ReactCurrentOwner = __webpack_require__(10);
  7641. var ReactDOMComponentTree = __webpack_require__(5);
  7642. var ReactDOMContainerInfo = __webpack_require__(180);
  7643. var ReactDOMFeatureFlags = __webpack_require__(181);
  7644. var ReactFeatureFlags = __webpack_require__(61);
  7645. var ReactInstanceMap = __webpack_require__(24);
  7646. var ReactInstrumentation = __webpack_require__(9);
  7647. var ReactMarkupChecksum = __webpack_require__(182);
  7648. var ReactReconciler = __webpack_require__(18);
  7649. var ReactUpdateQueue = __webpack_require__(48);
  7650. var ReactUpdates = __webpack_require__(11);
  7651. var emptyObject = __webpack_require__(20);
  7652. var instantiateReactComponent = __webpack_require__(71);
  7653. var invariant = __webpack_require__(1);
  7654. var setInnerHTML = __webpack_require__(30);
  7655. var shouldUpdateReactComponent = __webpack_require__(46);
  7656. var warning = __webpack_require__(2);
  7657. var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
  7658. var ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME;
  7659. var ELEMENT_NODE_TYPE = 1;
  7660. var DOC_NODE_TYPE = 9;
  7661. var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
  7662. var instancesByReactRootID = {};
  7663. /**
  7664. * Finds the index of the first character
  7665. * that's not common between the two given strings.
  7666. *
  7667. * @return {number} the index of the character where the strings diverge
  7668. */
  7669. function firstDifferenceIndex(string1, string2) {
  7670. var minLen = Math.min(string1.length, string2.length);
  7671. for (var i = 0; i < minLen; i++) {
  7672. if (string1.charAt(i) !== string2.charAt(i)) {
  7673. return i;
  7674. }
  7675. }
  7676. return string1.length === string2.length ? -1 : minLen;
  7677. }
  7678. /**
  7679. * @param {DOMElement|DOMDocument} container DOM element that may contain
  7680. * a React component
  7681. * @return {?*} DOM element that may have the reactRoot ID, or null.
  7682. */
  7683. function getReactRootElementInContainer(container) {
  7684. if (!container) {
  7685. return null;
  7686. }
  7687. if (container.nodeType === DOC_NODE_TYPE) {
  7688. return container.documentElement;
  7689. } else {
  7690. return container.firstChild;
  7691. }
  7692. }
  7693. function internalGetID(node) {
  7694. // If node is something like a window, document, or text node, none of
  7695. // which support attributes or a .getAttribute method, gracefully return
  7696. // the empty string, as if the attribute were missing.
  7697. return node.getAttribute && node.getAttribute(ATTR_NAME) || '';
  7698. }
  7699. /**
  7700. * Mounts this component and inserts it into the DOM.
  7701. *
  7702. * @param {ReactComponent} componentInstance The instance to mount.
  7703. * @param {DOMElement} container DOM element to mount into.
  7704. * @param {ReactReconcileTransaction} transaction
  7705. * @param {boolean} shouldReuseMarkup If true, do not insert markup
  7706. */
  7707. function mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) {
  7708. var markerName;
  7709. if (ReactFeatureFlags.logTopLevelRenders) {
  7710. var wrappedElement = wrapperInstance._currentElement.props.child;
  7711. var type = wrappedElement.type;
  7712. markerName = 'React mount: ' + (typeof type === 'string' ? type : type.displayName || type.name);
  7713. console.time(markerName);
  7714. }
  7715. var markup = ReactReconciler.mountComponent(wrapperInstance, transaction, null, ReactDOMContainerInfo(wrapperInstance, container), context, 0 /* parentDebugID */
  7716. );
  7717. if (markerName) {
  7718. console.timeEnd(markerName);
  7719. }
  7720. wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance;
  7721. ReactMount._mountImageIntoNode(markup, container, wrapperInstance, shouldReuseMarkup, transaction);
  7722. }
  7723. /**
  7724. * Batched mount.
  7725. *
  7726. * @param {ReactComponent} componentInstance The instance to mount.
  7727. * @param {DOMElement} container DOM element to mount into.
  7728. * @param {boolean} shouldReuseMarkup If true, do not insert markup
  7729. */
  7730. function batchedMountComponentIntoNode(componentInstance, container, shouldReuseMarkup, context) {
  7731. var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(
  7732. /* useCreateElement */
  7733. !shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement);
  7734. transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context);
  7735. ReactUpdates.ReactReconcileTransaction.release(transaction);
  7736. }
  7737. /**
  7738. * Unmounts a component and removes it from the DOM.
  7739. *
  7740. * @param {ReactComponent} instance React component instance.
  7741. * @param {DOMElement} container DOM element to unmount from.
  7742. * @final
  7743. * @internal
  7744. * @see {ReactMount.unmountComponentAtNode}
  7745. */
  7746. function unmountComponentFromNode(instance, container, safely) {
  7747. if (process.env.NODE_ENV !== 'production') {
  7748. ReactInstrumentation.debugTool.onBeginFlush();
  7749. }
  7750. ReactReconciler.unmountComponent(instance, safely);
  7751. if (process.env.NODE_ENV !== 'production') {
  7752. ReactInstrumentation.debugTool.onEndFlush();
  7753. }
  7754. if (container.nodeType === DOC_NODE_TYPE) {
  7755. container = container.documentElement;
  7756. }
  7757. // http://jsperf.com/emptying-a-node
  7758. while (container.lastChild) {
  7759. container.removeChild(container.lastChild);
  7760. }
  7761. }
  7762. /**
  7763. * True if the supplied DOM node has a direct React-rendered child that is
  7764. * not a React root element. Useful for warning in `render`,
  7765. * `unmountComponentAtNode`, etc.
  7766. *
  7767. * @param {?DOMElement} node The candidate DOM node.
  7768. * @return {boolean} True if the DOM element contains a direct child that was
  7769. * rendered by React but is not a root element.
  7770. * @internal
  7771. */
  7772. function hasNonRootReactChild(container) {
  7773. var rootEl = getReactRootElementInContainer(container);
  7774. if (rootEl) {
  7775. var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl);
  7776. return !!(inst && inst._hostParent);
  7777. }
  7778. }
  7779. /**
  7780. * True if the supplied DOM node is a React DOM element and
  7781. * it has been rendered by another copy of React.
  7782. *
  7783. * @param {?DOMElement} node The candidate DOM node.
  7784. * @return {boolean} True if the DOM has been rendered by another copy of React
  7785. * @internal
  7786. */
  7787. function nodeIsRenderedByOtherInstance(container) {
  7788. var rootEl = getReactRootElementInContainer(container);
  7789. return !!(rootEl && isReactNode(rootEl) && !ReactDOMComponentTree.getInstanceFromNode(rootEl));
  7790. }
  7791. /**
  7792. * True if the supplied DOM node is a valid node element.
  7793. *
  7794. * @param {?DOMElement} node The candidate DOM node.
  7795. * @return {boolean} True if the DOM is a valid DOM node.
  7796. * @internal
  7797. */
  7798. function isValidContainer(node) {
  7799. return !!(node && (node.nodeType === ELEMENT_NODE_TYPE || node.nodeType === DOC_NODE_TYPE || node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE));
  7800. }
  7801. /**
  7802. * True if the supplied DOM node is a valid React node element.
  7803. *
  7804. * @param {?DOMElement} node The candidate DOM node.
  7805. * @return {boolean} True if the DOM is a valid React DOM node.
  7806. * @internal
  7807. */
  7808. function isReactNode(node) {
  7809. return isValidContainer(node) && (node.hasAttribute(ROOT_ATTR_NAME) || node.hasAttribute(ATTR_NAME));
  7810. }
  7811. function getHostRootInstanceInContainer(container) {
  7812. var rootEl = getReactRootElementInContainer(container);
  7813. var prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl);
  7814. return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null;
  7815. }
  7816. function getTopLevelWrapperInContainer(container) {
  7817. var root = getHostRootInstanceInContainer(container);
  7818. return root ? root._hostContainerInfo._topLevelWrapper : null;
  7819. }
  7820. /**
  7821. * Temporary (?) hack so that we can store all top-level pending updates on
  7822. * composites instead of having to worry about different types of components
  7823. * here.
  7824. */
  7825. var topLevelRootCounter = 1;
  7826. var TopLevelWrapper = function () {
  7827. this.rootID = topLevelRootCounter++;
  7828. };
  7829. TopLevelWrapper.prototype.isReactComponent = {};
  7830. if (process.env.NODE_ENV !== 'production') {
  7831. TopLevelWrapper.displayName = 'TopLevelWrapper';
  7832. }
  7833. TopLevelWrapper.prototype.render = function () {
  7834. return this.props.child;
  7835. };
  7836. TopLevelWrapper.isReactTopLevelWrapper = true;
  7837. /**
  7838. * Mounting is the process of initializing a React component by creating its
  7839. * representative DOM elements and inserting them into a supplied `container`.
  7840. * Any prior content inside `container` is destroyed in the process.
  7841. *
  7842. * ReactMount.render(
  7843. * component,
  7844. * document.getElementById('container')
  7845. * );
  7846. *
  7847. * <div id="container"> <-- Supplied `container`.
  7848. * <div data-reactid=".3"> <-- Rendered reactRoot of React
  7849. * // ... component.
  7850. * </div>
  7851. * </div>
  7852. *
  7853. * Inside of `container`, the first element rendered is the "reactRoot".
  7854. */
  7855. var ReactMount = {
  7856. TopLevelWrapper: TopLevelWrapper,
  7857. /**
  7858. * Used by devtools. The keys are not important.
  7859. */
  7860. _instancesByReactRootID: instancesByReactRootID,
  7861. /**
  7862. * This is a hook provided to support rendering React components while
  7863. * ensuring that the apparent scroll position of its `container` does not
  7864. * change.
  7865. *
  7866. * @param {DOMElement} container The `container` being rendered into.
  7867. * @param {function} renderCallback This must be called once to do the render.
  7868. */
  7869. scrollMonitor: function (container, renderCallback) {
  7870. renderCallback();
  7871. },
  7872. /**
  7873. * Take a component that's already mounted into the DOM and replace its props
  7874. * @param {ReactComponent} prevComponent component instance already in the DOM
  7875. * @param {ReactElement} nextElement component instance to render
  7876. * @param {DOMElement} container container to render into
  7877. * @param {?function} callback function triggered on completion
  7878. */
  7879. _updateRootComponent: function (prevComponent, nextElement, nextContext, container, callback) {
  7880. ReactMount.scrollMonitor(container, function () {
  7881. ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext);
  7882. if (callback) {
  7883. ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback);
  7884. }
  7885. });
  7886. return prevComponent;
  7887. },
  7888. /**
  7889. * Render a new component into the DOM. Hooked by hooks!
  7890. *
  7891. * @param {ReactElement} nextElement element to render
  7892. * @param {DOMElement} container container to render into
  7893. * @param {boolean} shouldReuseMarkup if we should skip the markup insertion
  7894. * @return {ReactComponent} nextComponent
  7895. */
  7896. _renderNewRootComponent: function (nextElement, container, shouldReuseMarkup, context) {
  7897. // Various parts of our code (such as ReactCompositeComponent's
  7898. // _renderValidatedComponent) assume that calls to render aren't nested;
  7899. // verify that that's the case.
  7900. process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '_renderNewRootComponent(): 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. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;
  7901. !isValidContainer(container) ? process.env.NODE_ENV !== 'production' ? invariant(false, '_registerComponent(...): Target container is not a DOM element.') : _prodInvariant('37') : void 0;
  7902. ReactBrowserEventEmitter.ensureScrollValueMonitoring();
  7903. var componentInstance = instantiateReactComponent(nextElement, false);
  7904. // The initial render is synchronous but any updates that happen during
  7905. // rendering, in componentWillMount or componentDidMount, will be batched
  7906. // according to the current batching strategy.
  7907. ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context);
  7908. var wrapperID = componentInstance._instance.rootID;
  7909. instancesByReactRootID[wrapperID] = componentInstance;
  7910. return componentInstance;
  7911. },
  7912. /**
  7913. * Renders a React component into the DOM in the supplied `container`.
  7914. *
  7915. * If the React component was previously rendered into `container`, this will
  7916. * perform an update on it and only mutate the DOM as necessary to reflect the
  7917. * latest React component.
  7918. *
  7919. * @param {ReactComponent} parentComponent The conceptual parent of this render tree.
  7920. * @param {ReactElement} nextElement Component element to render.
  7921. * @param {DOMElement} container DOM element to render into.
  7922. * @param {?function} callback function triggered on completion
  7923. * @return {ReactComponent} Component instance rendered in `container`.
  7924. */
  7925. renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {
  7926. !(parentComponent != null && ReactInstanceMap.has(parentComponent)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'parentComponent must be a valid React Component') : _prodInvariant('38') : void 0;
  7927. return ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback);
  7928. },
  7929. _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {
  7930. ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render');
  7931. !React.isValidElement(nextElement) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' :
  7932. // Check if it quacks like an element
  7933. nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : _prodInvariant('39', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : void 0;
  7934. process.env.NODE_ENV !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', '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;
  7935. var nextWrappedElement = React.createElement(TopLevelWrapper, { child: nextElement });
  7936. var nextContext;
  7937. if (parentComponent) {
  7938. var parentInst = ReactInstanceMap.get(parentComponent);
  7939. nextContext = parentInst._processChildContext(parentInst._context);
  7940. } else {
  7941. nextContext = emptyObject;
  7942. }
  7943. var prevComponent = getTopLevelWrapperInContainer(container);
  7944. if (prevComponent) {
  7945. var prevWrappedElement = prevComponent._currentElement;
  7946. var prevElement = prevWrappedElement.props.child;
  7947. if (shouldUpdateReactComponent(prevElement, nextElement)) {
  7948. var publicInst = prevComponent._renderedComponent.getPublicInstance();
  7949. var updatedCallback = callback && function () {
  7950. callback.call(publicInst);
  7951. };
  7952. ReactMount._updateRootComponent(prevComponent, nextWrappedElement, nextContext, container, updatedCallback);
  7953. return publicInst;
  7954. } else {
  7955. ReactMount.unmountComponentAtNode(container);
  7956. }
  7957. }
  7958. var reactRootElement = getReactRootElementInContainer(container);
  7959. var containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement);
  7960. var containerHasNonRootReactChild = hasNonRootReactChild(container);
  7961. if (process.env.NODE_ENV !== 'production') {
  7962. process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, '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;
  7963. if (!containerHasReactMarkup || reactRootElement.nextSibling) {
  7964. var rootElementSibling = reactRootElement;
  7965. while (rootElementSibling) {
  7966. if (internalGetID(rootElementSibling)) {
  7967. process.env.NODE_ENV !== 'production' ? warning(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.') : void 0;
  7968. break;
  7969. }
  7970. rootElementSibling = rootElementSibling.nextSibling;
  7971. }
  7972. }
  7973. }
  7974. var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild;
  7975. var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext)._renderedComponent.getPublicInstance();
  7976. if (callback) {
  7977. callback.call(component);
  7978. }
  7979. return component;
  7980. },
  7981. /**
  7982. * Renders a React component into the DOM in the supplied `container`.
  7983. * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.render
  7984. *
  7985. * If the React component was previously rendered into `container`, this will
  7986. * perform an update on it and only mutate the DOM as necessary to reflect the
  7987. * latest React component.
  7988. *
  7989. * @param {ReactElement} nextElement Component element to render.
  7990. * @param {DOMElement} container DOM element to render into.
  7991. * @param {?function} callback function triggered on completion
  7992. * @return {ReactComponent} Component instance rendered in `container`.
  7993. */
  7994. render: function (nextElement, container, callback) {
  7995. return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);
  7996. },
  7997. /**
  7998. * Unmounts and destroys the React component rendered in the `container`.
  7999. * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.unmountcomponentatnode
  8000. *
  8001. * @param {DOMElement} container DOM element containing a React component.
  8002. * @return {boolean} True if a component was found in and unmounted from
  8003. * `container`
  8004. */
  8005. unmountComponentAtNode: function (container) {
  8006. // Various parts of our code (such as ReactCompositeComponent's
  8007. // _renderValidatedComponent) assume that calls to render aren't nested;
  8008. // verify that that's the case. (Strictly speaking, unmounting won't cause a
  8009. // render but we still don't expect to be in a render call here.)
  8010. process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, 'unmountComponentAtNode(): 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. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;
  8011. !isValidContainer(container) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : _prodInvariant('40') : void 0;
  8012. if (process.env.NODE_ENV !== 'production') {
  8013. process.env.NODE_ENV !== 'production' ? warning(!nodeIsRenderedByOtherInstance(container), 'unmountComponentAtNode(): The node you\'re attempting to unmount ' + 'was rendered by another copy of React.') : void 0;
  8014. }
  8015. var prevComponent = getTopLevelWrapperInContainer(container);
  8016. if (!prevComponent) {
  8017. // Check if the node being unmounted was rendered by React, but isn't a
  8018. // root node.
  8019. var containerHasNonRootReactChild = hasNonRootReactChild(container);
  8020. // Check if the container itself is a React root node.
  8021. var isContainerReactRoot = container.nodeType === 1 && container.hasAttribute(ROOT_ATTR_NAME);
  8022. if (process.env.NODE_ENV !== 'production') {
  8023. process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, '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;
  8024. }
  8025. return false;
  8026. }
  8027. delete instancesByReactRootID[prevComponent._instance.rootID];
  8028. ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container, false);
  8029. return true;
  8030. },
  8031. _mountImageIntoNode: function (markup, container, instance, shouldReuseMarkup, transaction) {
  8032. !isValidContainer(container) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mountComponentIntoNode(...): Target container is not valid.') : _prodInvariant('41') : void 0;
  8033. if (shouldReuseMarkup) {
  8034. var rootElement = getReactRootElementInContainer(container);
  8035. if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) {
  8036. ReactDOMComponentTree.precacheNode(instance, rootElement);
  8037. return;
  8038. } else {
  8039. var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
  8040. rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
  8041. var rootMarkup = rootElement.outerHTML;
  8042. rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum);
  8043. var normalizedMarkup = markup;
  8044. if (process.env.NODE_ENV !== 'production') {
  8045. // because rootMarkup is retrieved from the DOM, various normalizations
  8046. // will have occurred which will not be present in `markup`. Here,
  8047. // insert markup into a <div> or <iframe> depending on the container
  8048. // type to perform the same normalizations before comparing.
  8049. var normalizer;
  8050. if (container.nodeType === ELEMENT_NODE_TYPE) {
  8051. normalizer = document.createElement('div');
  8052. normalizer.innerHTML = markup;
  8053. normalizedMarkup = normalizer.innerHTML;
  8054. } else {
  8055. normalizer = document.createElement('iframe');
  8056. document.body.appendChild(normalizer);
  8057. normalizer.contentDocument.write(markup);
  8058. normalizedMarkup = normalizer.contentDocument.documentElement.outerHTML;
  8059. document.body.removeChild(normalizer);
  8060. }
  8061. }
  8062. var diffIndex = firstDifferenceIndex(normalizedMarkup, rootMarkup);
  8063. var difference = ' (client) ' + normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + '\n (server) ' + rootMarkup.substring(diffIndex - 20, diffIndex + 20);
  8064. !(container.nodeType !== DOC_NODE_TYPE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'You\'re trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s', difference) : _prodInvariant('42', difference) : void 0;
  8065. if (process.env.NODE_ENV !== 'production') {
  8066. process.env.NODE_ENV !== 'production' ? warning(false, 'React attempted to reuse markup in a container but the ' + 'checksum was invalid. This generally means that you are ' + 'using server rendering and the markup generated on the ' + 'server was not what the client was expecting. React injected ' + 'new markup to compensate which works but you have lost many ' + 'of the benefits of server rendering. Instead, figure out ' + 'why the markup being generated is different on the client ' + 'or server:\n%s', difference) : void 0;
  8067. }
  8068. }
  8069. }
  8070. !(container.nodeType !== DOC_NODE_TYPE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'You\'re trying to render a component to the document but you didn\'t use server rendering. We can\'t do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('43') : void 0;
  8071. if (transaction.useCreateElement) {
  8072. while (container.lastChild) {
  8073. container.removeChild(container.lastChild);
  8074. }
  8075. DOMLazyTree.insertTreeBefore(container, markup, null);
  8076. } else {
  8077. setInnerHTML(container, markup);
  8078. ReactDOMComponentTree.precacheNode(instance, container.firstChild);
  8079. }
  8080. if (process.env.NODE_ENV !== 'production') {
  8081. var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild);
  8082. if (hostNode._debugID !== 0) {
  8083. ReactInstrumentation.debugTool.onHostOperation({
  8084. instanceID: hostNode._debugID,
  8085. type: 'mount',
  8086. payload: markup.toString()
  8087. });
  8088. }
  8089. }
  8090. }
  8091. };
  8092. module.exports = ReactMount;
  8093. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  8094. /***/ }),
  8095. /* 80 */
  8096. /***/ (function(module, exports, __webpack_require__) {
  8097. "use strict";
  8098. /**
  8099. * Copyright 2013-present, Facebook, Inc.
  8100. * All rights reserved.
  8101. *
  8102. * This source code is licensed under the BSD-style license found in the
  8103. * LICENSE file in the root directory of this source tree. An additional grant
  8104. * of patent rights can be found in the PATENTS file in the same directory.
  8105. *
  8106. */
  8107. var ReactNodeTypes = __webpack_require__(72);
  8108. function getHostComponentFromComposite(inst) {
  8109. var type;
  8110. while ((type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE) {
  8111. inst = inst._renderedComponent;
  8112. }
  8113. if (type === ReactNodeTypes.HOST) {
  8114. return inst._renderedComponent;
  8115. } else if (type === ReactNodeTypes.EMPTY) {
  8116. return null;
  8117. }
  8118. }
  8119. module.exports = getHostComponentFromComposite;
  8120. /***/ }),
  8121. /* 81 */
  8122. /***/ (function(module, exports, __webpack_require__) {
  8123. /* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
  8124. true ? module.exports = factory() :
  8125. typeof define === 'function' && define.amd ? define(factory) :
  8126. (global.BrowserSpriteSymbol = factory());
  8127. }(this, (function () { 'use strict';
  8128. var SpriteSymbol = function SpriteSymbol(ref) {
  8129. var id = ref.id;
  8130. var viewBox = ref.viewBox;
  8131. var content = ref.content;
  8132. this.id = id;
  8133. this.viewBox = viewBox;
  8134. this.content = content;
  8135. };
  8136. /**
  8137. * @return {string}
  8138. */
  8139. SpriteSymbol.prototype.stringify = function stringify () {
  8140. return this.content;
  8141. };
  8142. /**
  8143. * @return {string}
  8144. */
  8145. SpriteSymbol.prototype.toString = function toString () {
  8146. return this.stringify();
  8147. };
  8148. SpriteSymbol.prototype.destroy = function destroy () {
  8149. var this$1 = this;
  8150. ['id', 'viewBox', 'content'].forEach(function (prop) { return delete this$1[prop]; });
  8151. };
  8152. /**
  8153. * @param {string} content
  8154. * @return {Element}
  8155. */
  8156. var parse = function (content) {
  8157. var hasImportNode = !!document.importNode;
  8158. var doc = new DOMParser().parseFromString(content, 'image/svg+xml').documentElement;
  8159. /**
  8160. * Fix for browser which are throwing WrongDocumentError
  8161. * if you insert an element which is not part of the document
  8162. * @see http://stackoverflow.com/a/7986519/4624403
  8163. */
  8164. if (hasImportNode) {
  8165. return document.importNode(doc, true);
  8166. }
  8167. return doc;
  8168. };
  8169. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  8170. function createCommonjsModule(fn, module) {
  8171. return module = { exports: {} }, fn(module, module.exports), module.exports;
  8172. }
  8173. var deepmerge = createCommonjsModule(function (module, exports) {
  8174. (function (root, factory) {
  8175. if (false) {
  8176. undefined(factory);
  8177. } else {
  8178. module.exports = factory();
  8179. }
  8180. }(commonjsGlobal, function () {
  8181. function isMergeableObject(val) {
  8182. var nonNullObject = val && typeof val === 'object';
  8183. return nonNullObject
  8184. && Object.prototype.toString.call(val) !== '[object RegExp]'
  8185. && Object.prototype.toString.call(val) !== '[object Date]'
  8186. }
  8187. function emptyTarget(val) {
  8188. return Array.isArray(val) ? [] : {}
  8189. }
  8190. function cloneIfNecessary(value, optionsArgument) {
  8191. var clone = optionsArgument && optionsArgument.clone === true;
  8192. return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
  8193. }
  8194. function defaultArrayMerge(target, source, optionsArgument) {
  8195. var destination = target.slice();
  8196. source.forEach(function(e, i) {
  8197. if (typeof destination[i] === 'undefined') {
  8198. destination[i] = cloneIfNecessary(e, optionsArgument);
  8199. } else if (isMergeableObject(e)) {
  8200. destination[i] = deepmerge(target[i], e, optionsArgument);
  8201. } else if (target.indexOf(e) === -1) {
  8202. destination.push(cloneIfNecessary(e, optionsArgument));
  8203. }
  8204. });
  8205. return destination
  8206. }
  8207. function mergeObject(target, source, optionsArgument) {
  8208. var destination = {};
  8209. if (isMergeableObject(target)) {
  8210. Object.keys(target).forEach(function (key) {
  8211. destination[key] = cloneIfNecessary(target[key], optionsArgument);
  8212. });
  8213. }
  8214. Object.keys(source).forEach(function (key) {
  8215. if (!isMergeableObject(source[key]) || !target[key]) {
  8216. destination[key] = cloneIfNecessary(source[key], optionsArgument);
  8217. } else {
  8218. destination[key] = deepmerge(target[key], source[key], optionsArgument);
  8219. }
  8220. });
  8221. return destination
  8222. }
  8223. function deepmerge(target, source, optionsArgument) {
  8224. var array = Array.isArray(source);
  8225. var options = optionsArgument || { arrayMerge: defaultArrayMerge };
  8226. var arrayMerge = options.arrayMerge || defaultArrayMerge;
  8227. if (array) {
  8228. return Array.isArray(target) ? arrayMerge(target, source, optionsArgument) : cloneIfNecessary(source, optionsArgument)
  8229. } else {
  8230. return mergeObject(target, source, optionsArgument)
  8231. }
  8232. }
  8233. deepmerge.all = function deepmergeAll(array, optionsArgument) {
  8234. if (!Array.isArray(array) || array.length < 2) {
  8235. throw new Error('first argument should be an array with at least two elements')
  8236. }
  8237. // we are sure there are at least 2 values, so it is safe to have no initial value
  8238. return array.reduce(function(prev, next) {
  8239. return deepmerge(prev, next, optionsArgument)
  8240. })
  8241. };
  8242. return deepmerge
  8243. }));
  8244. });
  8245. var namespaces_1 = createCommonjsModule(function (module, exports) {
  8246. var namespaces = {
  8247. svg: {
  8248. name: 'xmlns',
  8249. uri: 'http://www.w3.org/2000/svg'
  8250. },
  8251. xlink: {
  8252. name: 'xmlns:xlink',
  8253. uri: 'http://www.w3.org/1999/xlink'
  8254. }
  8255. };
  8256. exports.default = namespaces;
  8257. module.exports = exports.default;
  8258. });
  8259. /**
  8260. * @param {Object} attrs
  8261. * @return {string}
  8262. */
  8263. var objectToAttrsString = function (attrs) {
  8264. return Object.keys(attrs).map(function (attr) {
  8265. var value = attrs[attr].toString().replace(/"/g, '&quot;');
  8266. return (attr + "=\"" + value + "\"");
  8267. }).join(' ');
  8268. };
  8269. var svg = namespaces_1.svg;
  8270. var xlink = namespaces_1.xlink;
  8271. var defaultAttrs = {};
  8272. defaultAttrs[svg.name] = svg.uri;
  8273. defaultAttrs[xlink.name] = xlink.uri;
  8274. /**
  8275. * @param {string} [content]
  8276. * @param {Object} [attributes]
  8277. * @return {string}
  8278. */
  8279. var wrapInSvgString = function (content, attributes) {
  8280. if ( content === void 0 ) content = '';
  8281. var attrs = deepmerge(defaultAttrs, attributes || {});
  8282. var attrsRendered = objectToAttrsString(attrs);
  8283. return ("<svg " + attrsRendered + ">" + content + "</svg>");
  8284. };
  8285. var BrowserSpriteSymbol = (function (SpriteSymbol$$1) {
  8286. function BrowserSpriteSymbol () {
  8287. SpriteSymbol$$1.apply(this, arguments);
  8288. }
  8289. if ( SpriteSymbol$$1 ) BrowserSpriteSymbol.__proto__ = SpriteSymbol$$1;
  8290. BrowserSpriteSymbol.prototype = Object.create( SpriteSymbol$$1 && SpriteSymbol$$1.prototype );
  8291. BrowserSpriteSymbol.prototype.constructor = BrowserSpriteSymbol;
  8292. var prototypeAccessors = { isMounted: {} };
  8293. prototypeAccessors.isMounted.get = function () {
  8294. return !!this.node;
  8295. };
  8296. /**
  8297. * @param {Element} node
  8298. * @return {BrowserSpriteSymbol}
  8299. */
  8300. BrowserSpriteSymbol.createFromExistingNode = function createFromExistingNode (node) {
  8301. return new BrowserSpriteSymbol({
  8302. id: node.getAttribute('id'),
  8303. viewBox: node.getAttribute('viewBox'),
  8304. content: node.outerHTML
  8305. });
  8306. };
  8307. BrowserSpriteSymbol.prototype.destroy = function destroy () {
  8308. if (this.isMounted) {
  8309. this.unmount();
  8310. }
  8311. SpriteSymbol$$1.prototype.destroy.call(this);
  8312. };
  8313. /**
  8314. * @param {Element|string} target
  8315. * @return {Element}
  8316. */
  8317. BrowserSpriteSymbol.prototype.mount = function mount (target) {
  8318. if (this.isMounted) {
  8319. return this.node;
  8320. }
  8321. var mountTarget = typeof target === 'string' ? document.querySelector(target) : target;
  8322. var node = this.render();
  8323. this.node = node;
  8324. mountTarget.appendChild(node);
  8325. return node;
  8326. };
  8327. /**
  8328. * @return {Element}
  8329. */
  8330. BrowserSpriteSymbol.prototype.render = function render () {
  8331. var content = this.stringify();
  8332. return parse(wrapInSvgString(content)).childNodes[0];
  8333. };
  8334. BrowserSpriteSymbol.prototype.unmount = function unmount () {
  8335. this.node.parentNode.removeChild(this.node);
  8336. };
  8337. Object.defineProperties( BrowserSpriteSymbol.prototype, prototypeAccessors );
  8338. return BrowserSpriteSymbol;
  8339. }(SpriteSymbol));
  8340. return BrowserSpriteSymbol;
  8341. })));
  8342. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(82)))
  8343. /***/ }),
  8344. /* 82 */
  8345. /***/ (function(module, exports) {
  8346. var g;
  8347. // This works in non-strict mode
  8348. g = (function() {
  8349. return this;
  8350. })();
  8351. try {
  8352. // This works if eval is allowed (see CSP)
  8353. g = g || Function("return this")() || (1,eval)("this");
  8354. } catch(e) {
  8355. // This works if the window reference is available
  8356. if(typeof window === "object")
  8357. g = window;
  8358. }
  8359. // g can still be undefined, but nothing to do about it...
  8360. // We return undefined, instead of nothing here, so it's
  8361. // easier to handle this case. if(!global) { ...}
  8362. module.exports = g;
  8363. /***/ }),
  8364. /* 83 */
  8365. /***/ (function(module, exports, __webpack_require__) {
  8366. /* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
  8367. true ? module.exports = factory() :
  8368. typeof define === 'function' && define.amd ? define(factory) :
  8369. (global.BrowserSprite = factory());
  8370. }(this, (function () { 'use strict';
  8371. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  8372. function createCommonjsModule(fn, module) {
  8373. return module = { exports: {} }, fn(module, module.exports), module.exports;
  8374. }
  8375. var deepmerge = createCommonjsModule(function (module, exports) {
  8376. (function (root, factory) {
  8377. if (false) {
  8378. undefined(factory);
  8379. } else {
  8380. module.exports = factory();
  8381. }
  8382. }(commonjsGlobal, function () {
  8383. function isMergeableObject(val) {
  8384. var nonNullObject = val && typeof val === 'object';
  8385. return nonNullObject
  8386. && Object.prototype.toString.call(val) !== '[object RegExp]'
  8387. && Object.prototype.toString.call(val) !== '[object Date]'
  8388. }
  8389. function emptyTarget(val) {
  8390. return Array.isArray(val) ? [] : {}
  8391. }
  8392. function cloneIfNecessary(value, optionsArgument) {
  8393. var clone = optionsArgument && optionsArgument.clone === true;
  8394. return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
  8395. }
  8396. function defaultArrayMerge(target, source, optionsArgument) {
  8397. var destination = target.slice();
  8398. source.forEach(function(e, i) {
  8399. if (typeof destination[i] === 'undefined') {
  8400. destination[i] = cloneIfNecessary(e, optionsArgument);
  8401. } else if (isMergeableObject(e)) {
  8402. destination[i] = deepmerge(target[i], e, optionsArgument);
  8403. } else if (target.indexOf(e) === -1) {
  8404. destination.push(cloneIfNecessary(e, optionsArgument));
  8405. }
  8406. });
  8407. return destination
  8408. }
  8409. function mergeObject(target, source, optionsArgument) {
  8410. var destination = {};
  8411. if (isMergeableObject(target)) {
  8412. Object.keys(target).forEach(function (key) {
  8413. destination[key] = cloneIfNecessary(target[key], optionsArgument);
  8414. });
  8415. }
  8416. Object.keys(source).forEach(function (key) {
  8417. if (!isMergeableObject(source[key]) || !target[key]) {
  8418. destination[key] = cloneIfNecessary(source[key], optionsArgument);
  8419. } else {
  8420. destination[key] = deepmerge(target[key], source[key], optionsArgument);
  8421. }
  8422. });
  8423. return destination
  8424. }
  8425. function deepmerge(target, source, optionsArgument) {
  8426. var array = Array.isArray(source);
  8427. var options = optionsArgument || { arrayMerge: defaultArrayMerge };
  8428. var arrayMerge = options.arrayMerge || defaultArrayMerge;
  8429. if (array) {
  8430. return Array.isArray(target) ? arrayMerge(target, source, optionsArgument) : cloneIfNecessary(source, optionsArgument)
  8431. } else {
  8432. return mergeObject(target, source, optionsArgument)
  8433. }
  8434. }
  8435. deepmerge.all = function deepmergeAll(array, optionsArgument) {
  8436. if (!Array.isArray(array) || array.length < 2) {
  8437. throw new Error('first argument should be an array with at least two elements')
  8438. }
  8439. // we are sure there are at least 2 values, so it is safe to have no initial value
  8440. return array.reduce(function(prev, next) {
  8441. return deepmerge(prev, next, optionsArgument)
  8442. })
  8443. };
  8444. return deepmerge
  8445. }));
  8446. });
  8447. //
  8448. // An event handler can take an optional event argument
  8449. // and should not return a value
  8450. // An array of all currently registered event handlers for a type
  8451. // A map of event types and their corresponding event handlers.
  8452. /** Mitt: Tiny (~200b) functional event emitter / pubsub.
  8453. * @name mitt
  8454. * @returns {Mitt}
  8455. */
  8456. function mitt(all ) {
  8457. all = all || Object.create(null);
  8458. return {
  8459. /**
  8460. * Register an event handler for the given type.
  8461. *
  8462. * @param {String} type Type of event to listen for, or `"*"` for all events
  8463. * @param {Function} handler Function to call in response to given event
  8464. * @memberOf mitt
  8465. */
  8466. on: function on(type , handler ) {
  8467. (all[type] || (all[type] = [])).push(handler);
  8468. },
  8469. /**
  8470. * Remove an event handler for the given type.
  8471. *
  8472. * @param {String} type Type of event to unregister `handler` from, or `"*"`
  8473. * @param {Function} handler Handler function to remove
  8474. * @memberOf mitt
  8475. */
  8476. off: function off(type , handler ) {
  8477. if (all[type]) {
  8478. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  8479. }
  8480. },
  8481. /**
  8482. * Invoke all handlers for the given type.
  8483. * If present, `"*"` handlers are invoked after type-matched handlers.
  8484. *
  8485. * @param {String} type The event type to invoke
  8486. * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
  8487. * @memberof mitt
  8488. */
  8489. emit: function emit(type , evt ) {
  8490. (all[type] || []).map(function (handler) { handler(evt); });
  8491. (all['*'] || []).map(function (handler) { handler(type, evt); });
  8492. }
  8493. };
  8494. }
  8495. var namespaces_1 = createCommonjsModule(function (module, exports) {
  8496. var namespaces = {
  8497. svg: {
  8498. name: 'xmlns',
  8499. uri: 'http://www.w3.org/2000/svg'
  8500. },
  8501. xlink: {
  8502. name: 'xmlns:xlink',
  8503. uri: 'http://www.w3.org/1999/xlink'
  8504. }
  8505. };
  8506. exports.default = namespaces;
  8507. module.exports = exports.default;
  8508. });
  8509. /**
  8510. * @param {Object} attrs
  8511. * @return {string}
  8512. */
  8513. var objectToAttrsString = function (attrs) {
  8514. return Object.keys(attrs).map(function (attr) {
  8515. var value = attrs[attr].toString().replace(/"/g, '&quot;');
  8516. return (attr + "=\"" + value + "\"");
  8517. }).join(' ');
  8518. };
  8519. var svg = namespaces_1.svg;
  8520. var xlink = namespaces_1.xlink;
  8521. var defaultAttrs = {};
  8522. defaultAttrs[svg.name] = svg.uri;
  8523. defaultAttrs[xlink.name] = xlink.uri;
  8524. /**
  8525. * @param {string} [content]
  8526. * @param {Object} [attributes]
  8527. * @return {string}
  8528. */
  8529. var wrapInSvgString = function (content, attributes) {
  8530. if ( content === void 0 ) content = '';
  8531. var attrs = deepmerge(defaultAttrs, attributes || {});
  8532. var attrsRendered = objectToAttrsString(attrs);
  8533. return ("<svg " + attrsRendered + ">" + content + "</svg>");
  8534. };
  8535. var svg$1 = namespaces_1.svg;
  8536. var xlink$1 = namespaces_1.xlink;
  8537. var defaultConfig = {
  8538. attrs: ( obj = {
  8539. style: ['position: absolute', 'width: 0', 'height: 0'].join('; '),
  8540. 'aria-hidden': 'true'
  8541. }, obj[svg$1.name] = svg$1.uri, obj[xlink$1.name] = xlink$1.uri, obj )
  8542. };
  8543. var obj;
  8544. var Sprite = function Sprite(config) {
  8545. this.config = deepmerge(defaultConfig, config || {});
  8546. this.symbols = [];
  8547. };
  8548. /**
  8549. * Add new symbol. If symbol with the same id exists it will be replaced.
  8550. * @param {SpriteSymbol} symbol
  8551. * @return {boolean} `true` - symbol was added, `false` - replaced
  8552. */
  8553. Sprite.prototype.add = function add (symbol) {
  8554. var ref = this;
  8555. var symbols = ref.symbols;
  8556. var existing = this.find(symbol.id);
  8557. if (existing) {
  8558. symbols[symbols.indexOf(existing)] = symbol;
  8559. return false;
  8560. }
  8561. symbols.push(symbol);
  8562. return true;
  8563. };
  8564. /**
  8565. * Remove symbol & destroy it
  8566. * @param {string} id
  8567. * @return {boolean} `true` - symbol was found & successfully destroyed, `false` - otherwise
  8568. */
  8569. Sprite.prototype.remove = function remove (id) {
  8570. var ref = this;
  8571. var symbols = ref.symbols;
  8572. var symbol = this.find(id);
  8573. if (symbol) {
  8574. symbols.splice(symbols.indexOf(symbol), 1);
  8575. symbol.destroy();
  8576. return true;
  8577. }
  8578. return false;
  8579. };
  8580. /**
  8581. * @param {string} id
  8582. * @return {SpriteSymbol|null}
  8583. */
  8584. Sprite.prototype.find = function find (id) {
  8585. return this.symbols.filter(function (s) { return s.id === id; })[0] || null;
  8586. };
  8587. /**
  8588. * @param {string} id
  8589. * @return {boolean}
  8590. */
  8591. Sprite.prototype.has = function has (id) {
  8592. return this.find(id) !== null;
  8593. };
  8594. /**
  8595. * @return {string}
  8596. */
  8597. Sprite.prototype.stringify = function stringify () {
  8598. var ref = this.config;
  8599. var attrs = ref.attrs;
  8600. var stringifiedSymbols = this.symbols.map(function (s) { return s.stringify(); }).join('');
  8601. return wrapInSvgString(stringifiedSymbols, attrs);
  8602. };
  8603. /**
  8604. * @return {string}
  8605. */
  8606. Sprite.prototype.toString = function toString () {
  8607. return this.stringify();
  8608. };
  8609. Sprite.prototype.destroy = function destroy () {
  8610. this.symbols.forEach(function (s) { return s.destroy(); });
  8611. };
  8612. var SpriteSymbol = function SpriteSymbol(ref) {
  8613. var id = ref.id;
  8614. var viewBox = ref.viewBox;
  8615. var content = ref.content;
  8616. this.id = id;
  8617. this.viewBox = viewBox;
  8618. this.content = content;
  8619. };
  8620. /**
  8621. * @return {string}
  8622. */
  8623. SpriteSymbol.prototype.stringify = function stringify () {
  8624. return this.content;
  8625. };
  8626. /**
  8627. * @return {string}
  8628. */
  8629. SpriteSymbol.prototype.toString = function toString () {
  8630. return this.stringify();
  8631. };
  8632. SpriteSymbol.prototype.destroy = function destroy () {
  8633. var this$1 = this;
  8634. ['id', 'viewBox', 'content'].forEach(function (prop) { return delete this$1[prop]; });
  8635. };
  8636. /**
  8637. * @param {string} content
  8638. * @return {Element}
  8639. */
  8640. var parse = function (content) {
  8641. var hasImportNode = !!document.importNode;
  8642. var doc = new DOMParser().parseFromString(content, 'image/svg+xml').documentElement;
  8643. /**
  8644. * Fix for browser which are throwing WrongDocumentError
  8645. * if you insert an element which is not part of the document
  8646. * @see http://stackoverflow.com/a/7986519/4624403
  8647. */
  8648. if (hasImportNode) {
  8649. return document.importNode(doc, true);
  8650. }
  8651. return doc;
  8652. };
  8653. var BrowserSpriteSymbol = (function (SpriteSymbol$$1) {
  8654. function BrowserSpriteSymbol () {
  8655. SpriteSymbol$$1.apply(this, arguments);
  8656. }
  8657. if ( SpriteSymbol$$1 ) BrowserSpriteSymbol.__proto__ = SpriteSymbol$$1;
  8658. BrowserSpriteSymbol.prototype = Object.create( SpriteSymbol$$1 && SpriteSymbol$$1.prototype );
  8659. BrowserSpriteSymbol.prototype.constructor = BrowserSpriteSymbol;
  8660. var prototypeAccessors = { isMounted: {} };
  8661. prototypeAccessors.isMounted.get = function () {
  8662. return !!this.node;
  8663. };
  8664. /**
  8665. * @param {Element} node
  8666. * @return {BrowserSpriteSymbol}
  8667. */
  8668. BrowserSpriteSymbol.createFromExistingNode = function createFromExistingNode (node) {
  8669. return new BrowserSpriteSymbol({
  8670. id: node.getAttribute('id'),
  8671. viewBox: node.getAttribute('viewBox'),
  8672. content: node.outerHTML
  8673. });
  8674. };
  8675. BrowserSpriteSymbol.prototype.destroy = function destroy () {
  8676. if (this.isMounted) {
  8677. this.unmount();
  8678. }
  8679. SpriteSymbol$$1.prototype.destroy.call(this);
  8680. };
  8681. /**
  8682. * @param {Element|string} target
  8683. * @return {Element}
  8684. */
  8685. BrowserSpriteSymbol.prototype.mount = function mount (target) {
  8686. if (this.isMounted) {
  8687. return this.node;
  8688. }
  8689. var mountTarget = typeof target === 'string' ? document.querySelector(target) : target;
  8690. var node = this.render();
  8691. this.node = node;
  8692. mountTarget.appendChild(node);
  8693. return node;
  8694. };
  8695. /**
  8696. * @return {Element}
  8697. */
  8698. BrowserSpriteSymbol.prototype.render = function render () {
  8699. var content = this.stringify();
  8700. return parse(wrapInSvgString(content)).childNodes[0];
  8701. };
  8702. BrowserSpriteSymbol.prototype.unmount = function unmount () {
  8703. this.node.parentNode.removeChild(this.node);
  8704. };
  8705. Object.defineProperties( BrowserSpriteSymbol.prototype, prototypeAccessors );
  8706. return BrowserSpriteSymbol;
  8707. }(SpriteSymbol));
  8708. var defaultConfig$1 = {
  8709. /**
  8710. * Should following options be automatically configured:
  8711. * - `syncUrlsWithBaseTag`
  8712. * - `locationChangeAngularEmitter`
  8713. * - `moveGradientsOutsideSymbol`
  8714. * @type {boolean}
  8715. */
  8716. autoConfigure: true,
  8717. /**
  8718. * Default mounting selector
  8719. * @type {string}
  8720. */
  8721. mountTo: 'body',
  8722. /**
  8723. * Fix disappearing SVG elements when <base href> exists.
  8724. * Executes when sprite mounted.
  8725. * @see http://stackoverflow.com/a/18265336/796152
  8726. * @see https://github.com/everdimension/angular-svg-base-fix
  8727. * @see https://github.com/angular/angular.js/issues/8934#issuecomment-56568466
  8728. * @type {boolean}
  8729. */
  8730. syncUrlsWithBaseTag: false,
  8731. /**
  8732. * Should sprite listen custom location change event
  8733. * @type {boolean}
  8734. */
  8735. listenLocationChangeEvent: true,
  8736. /**
  8737. * Custom window event name which should be emitted to update sprite urls
  8738. * @type {string}
  8739. */
  8740. locationChangeEvent: 'locationChange',
  8741. /**
  8742. * Emit location change event in Angular automatically
  8743. * @type {boolean}
  8744. */
  8745. locationChangeAngularEmitter: false,
  8746. /**
  8747. * Selector to find symbols usages when updating sprite urls
  8748. * @type {string}
  8749. */
  8750. usagesToUpdate: 'use[*|href]',
  8751. /**
  8752. * Fix Firefox bug when gradients and patterns don't work if they are within a symbol.
  8753. * Executes when sprite is rendered, but not mounted.
  8754. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=306674
  8755. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=353575
  8756. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=1235364
  8757. * @type {boolean}
  8758. */
  8759. moveGradientsOutsideSymbol: false
  8760. };
  8761. /**
  8762. * @param {*} arrayLike
  8763. * @return {Array}
  8764. */
  8765. var arrayFrom = function (arrayLike) {
  8766. return Array.prototype.slice.call(arrayLike, 0);
  8767. };
  8768. var browser = {
  8769. isChrome: function () { return /chrome/i.test(navigator.userAgent); },
  8770. isFirefox: function () { return /firefox/i.test(navigator.userAgent); },
  8771. // https://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
  8772. isIE: function () { return /msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent); },
  8773. isEdge: function () { return /edge/i.test(navigator.userAgent); }
  8774. };
  8775. /**
  8776. * @param {string} name
  8777. * @param {*} data
  8778. */
  8779. var dispatchEvent = function (name, data) {
  8780. var event = document.createEvent('CustomEvent');
  8781. event.initCustomEvent(name, false, false, data);
  8782. window.dispatchEvent(event);
  8783. };
  8784. /**
  8785. * IE doesn't evaluate <style> tags in SVGs that are dynamically added to the page.
  8786. * This trick will trigger IE to read and use any existing SVG <style> tags.
  8787. * @see https://github.com/iconic/SVGInjector/issues/23
  8788. * @see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10898469/
  8789. *
  8790. * @param {Element} node DOM Element to search <style> tags in
  8791. * @return {Array<HTMLStyleElement>}
  8792. */
  8793. var evalStylesIEWorkaround = function (node) {
  8794. var updatedNodes = [];
  8795. arrayFrom(node.querySelectorAll('style'))
  8796. .forEach(function (style) {
  8797. style.textContent += '';
  8798. updatedNodes.push(style);
  8799. });
  8800. return updatedNodes;
  8801. };
  8802. /**
  8803. * @param {string} [url] If not provided - current URL will be used
  8804. * @return {string}
  8805. */
  8806. var getUrlWithoutFragment = function (url) {
  8807. return (url || window.location.href).split('#')[0];
  8808. };
  8809. /* global angular */
  8810. /**
  8811. * @param {string} eventName
  8812. */
  8813. var locationChangeAngularEmitter = function (eventName) {
  8814. angular.module('ng').run(['$rootScope', function ($rootScope) {
  8815. $rootScope.$on('$locationChangeSuccess', function (e, newUrl, oldUrl) {
  8816. dispatchEvent(eventName, { oldUrl: oldUrl, newUrl: newUrl });
  8817. });
  8818. }]);
  8819. };
  8820. var defaultSelector = 'linearGradient, radialGradient, pattern, mask, clipPath';
  8821. /**
  8822. * @param {Element} svg
  8823. * @param {string} [selector]
  8824. * @return {Element}
  8825. */
  8826. var moveGradientsOutsideSymbol = function (svg, selector) {
  8827. if ( selector === void 0 ) selector = defaultSelector;
  8828. arrayFrom(svg.querySelectorAll('symbol')).forEach(function (symbol) {
  8829. arrayFrom(symbol.querySelectorAll(selector)).forEach(function (node) {
  8830. symbol.parentNode.insertBefore(node, symbol);
  8831. });
  8832. });
  8833. return svg;
  8834. };
  8835. /**
  8836. * @param {NodeList} nodes
  8837. * @param {Function} [matcher]
  8838. * @return {Attr[]}
  8839. */
  8840. function selectAttributes(nodes, matcher) {
  8841. var attrs = arrayFrom(nodes).reduce(function (acc, node) {
  8842. if (!node.attributes) {
  8843. return acc;
  8844. }
  8845. var arrayfied = arrayFrom(node.attributes);
  8846. var matched = matcher ? arrayfied.filter(matcher) : arrayfied;
  8847. return acc.concat(matched);
  8848. }, []);
  8849. return attrs;
  8850. }
  8851. /**
  8852. * @param {NodeList|Node} nodes
  8853. * @param {boolean} [clone=true]
  8854. * @return {string}
  8855. */
  8856. var xLinkNS = namespaces_1.xlink.uri;
  8857. var xLinkAttrName = 'xlink:href';
  8858. // eslint-disable-next-line no-useless-escape
  8859. var specialUrlCharsPattern = /[{}|\\\^\[\]`"<>]/g;
  8860. function encoder(url) {
  8861. return url.replace(specialUrlCharsPattern, function (match) {
  8862. return ("%" + (match[0].charCodeAt(0).toString(16).toUpperCase()));
  8863. });
  8864. }
  8865. function escapeRegExp(str) {
  8866. return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
  8867. }
  8868. /**
  8869. * @param {NodeList} nodes
  8870. * @param {string} startsWith
  8871. * @param {string} replaceWith
  8872. * @return {NodeList}
  8873. */
  8874. function updateReferences(nodes, startsWith, replaceWith) {
  8875. arrayFrom(nodes).forEach(function (node) {
  8876. var href = node.getAttribute(xLinkAttrName);
  8877. if (href && href.indexOf(startsWith) === 0) {
  8878. var newUrl = href.replace(startsWith, replaceWith);
  8879. node.setAttributeNS(xLinkNS, xLinkAttrName, newUrl);
  8880. }
  8881. });
  8882. return nodes;
  8883. }
  8884. /**
  8885. * List of SVG attributes to update url() target in them
  8886. */
  8887. var attList = [
  8888. 'clipPath',
  8889. 'colorProfile',
  8890. 'src',
  8891. 'cursor',
  8892. 'fill',
  8893. 'filter',
  8894. 'marker',
  8895. 'markerStart',
  8896. 'markerMid',
  8897. 'markerEnd',
  8898. 'mask',
  8899. 'stroke',
  8900. 'style'
  8901. ];
  8902. var attSelector = attList.map(function (attr) { return ("[" + attr + "]"); }).join(',');
  8903. /**
  8904. * Update URLs in svg image (like `fill="url(...)"`) and update referencing elements
  8905. * @param {Element} svg
  8906. * @param {NodeList} references
  8907. * @param {string|RegExp} startsWith
  8908. * @param {string} replaceWith
  8909. * @return {void}
  8910. *
  8911. * @example
  8912. * const sprite = document.querySelector('svg.sprite');
  8913. * const usages = document.querySelectorAll('use');
  8914. * updateUrls(sprite, usages, '#', 'prefix#');
  8915. */
  8916. var updateUrls = function (svg, references, startsWith, replaceWith) {
  8917. var startsWithEncoded = encoder(startsWith);
  8918. var replaceWithEncoded = encoder(replaceWith);
  8919. var nodes = svg.querySelectorAll(attSelector);
  8920. var attrs = selectAttributes(nodes, function (ref) {
  8921. var localName = ref.localName;
  8922. var value = ref.value;
  8923. return attList.indexOf(localName) !== -1 && value.indexOf(("url(" + startsWithEncoded)) !== -1;
  8924. });
  8925. attrs.forEach(function (attr) { return attr.value = attr.value.replace(new RegExp(escapeRegExp(startsWithEncoded), 'g'), replaceWithEncoded); });
  8926. updateReferences(references, startsWithEncoded, replaceWithEncoded);
  8927. };
  8928. /**
  8929. * Internal emitter events
  8930. * @enum
  8931. * @private
  8932. */
  8933. var Events = {
  8934. MOUNT: 'mount',
  8935. SYMBOL_MOUNT: 'symbol_mount'
  8936. };
  8937. var BrowserSprite = (function (Sprite$$1) {
  8938. function BrowserSprite(cfg) {
  8939. var this$1 = this;
  8940. if ( cfg === void 0 ) cfg = {};
  8941. Sprite$$1.call(this, deepmerge(defaultConfig$1, cfg));
  8942. var emitter = mitt();
  8943. this._emitter = emitter;
  8944. this.node = null;
  8945. var ref = this;
  8946. var config = ref.config;
  8947. if (config.autoConfigure) {
  8948. this._autoConfigure(cfg);
  8949. }
  8950. if (config.syncUrlsWithBaseTag) {
  8951. var baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');
  8952. emitter.on(Events.MOUNT, function () { return this$1.updateUrls('#', baseUrl); });
  8953. }
  8954. var handleLocationChange = this._handleLocationChange.bind(this);
  8955. this._handleLocationChange = handleLocationChange;
  8956. // Provide way to update sprite urls externally via dispatching custom window event
  8957. if (config.listenLocationChangeEvent) {
  8958. window.addEventListener(config.locationChangeEvent, handleLocationChange);
  8959. }
  8960. // Emit location change event in Angular automatically
  8961. if (config.locationChangeAngularEmitter) {
  8962. locationChangeAngularEmitter(config.locationChangeEvent);
  8963. }
  8964. // After sprite mounted
  8965. emitter.on(Events.MOUNT, function (spriteNode) {
  8966. if (config.moveGradientsOutsideSymbol) {
  8967. moveGradientsOutsideSymbol(spriteNode);
  8968. }
  8969. });
  8970. // After symbol mounted into sprite
  8971. emitter.on(Events.SYMBOL_MOUNT, function (symbolNode) {
  8972. if (config.moveGradientsOutsideSymbol) {
  8973. moveGradientsOutsideSymbol(symbolNode.parentNode);
  8974. }
  8975. if (browser.isIE() || browser.isEdge()) {
  8976. evalStylesIEWorkaround(symbolNode);
  8977. }
  8978. });
  8979. }
  8980. if ( Sprite$$1 ) BrowserSprite.__proto__ = Sprite$$1;
  8981. BrowserSprite.prototype = Object.create( Sprite$$1 && Sprite$$1.prototype );
  8982. BrowserSprite.prototype.constructor = BrowserSprite;
  8983. var prototypeAccessors = { isMounted: {} };
  8984. /**
  8985. * @return {boolean}
  8986. */
  8987. prototypeAccessors.isMounted.get = function () {
  8988. return !!this.node;
  8989. };
  8990. /**
  8991. * Automatically configure following options
  8992. * - `syncUrlsWithBaseTag`
  8993. * - `locationChangeAngularEmitter`
  8994. * - `moveGradientsOutsideSymbol`
  8995. * @param {Object} cfg
  8996. * @private
  8997. */
  8998. BrowserSprite.prototype._autoConfigure = function _autoConfigure (cfg) {
  8999. var ref = this;
  9000. var config = ref.config;
  9001. if (typeof cfg.syncUrlsWithBaseTag === 'undefined') {
  9002. config.syncUrlsWithBaseTag = typeof document.getElementsByTagName('base')[0] !== 'undefined';
  9003. }
  9004. if (typeof cfg.locationChangeAngularEmitter === 'undefined') {
  9005. config.locationChangeAngularEmitter = typeof window.angular !== 'undefined';
  9006. }
  9007. if (typeof cfg.moveGradientsOutsideSymbol === 'undefined') {
  9008. config.moveGradientsOutsideSymbol = browser.isFirefox();
  9009. }
  9010. };
  9011. /**
  9012. * @param {Event} event
  9013. * @param {Object} event.detail
  9014. * @param {string} event.detail.oldUrl
  9015. * @param {string} event.detail.newUrl
  9016. * @private
  9017. */
  9018. BrowserSprite.prototype._handleLocationChange = function _handleLocationChange (event) {
  9019. var ref = event.detail;
  9020. var oldUrl = ref.oldUrl;
  9021. var newUrl = ref.newUrl;
  9022. this.updateUrls(oldUrl, newUrl);
  9023. };
  9024. /**
  9025. * Add new symbol. If symbol with the same id exists it will be replaced.
  9026. * If sprite already mounted - `symbol.mount(sprite.node)` will be called.
  9027. * @fires Events#SYMBOL_MOUNT
  9028. * @param {BrowserSpriteSymbol} symbol
  9029. * @return {boolean} `true` - symbol was added, `false` - replaced
  9030. */
  9031. BrowserSprite.prototype.add = function add (symbol) {
  9032. var sprite = this;
  9033. var isNewSymbol = Sprite$$1.prototype.add.call(this, symbol);
  9034. if (this.isMounted && isNewSymbol) {
  9035. symbol.mount(sprite.node);
  9036. this._emitter.emit(Events.SYMBOL_MOUNT, symbol.node);
  9037. }
  9038. return isNewSymbol;
  9039. };
  9040. /**
  9041. * Attach to existing DOM node
  9042. * @param {string|Element} target
  9043. * @return {Element|null} attached DOM Element. null if node to attach not found.
  9044. */
  9045. BrowserSprite.prototype.attach = function attach (target) {
  9046. var this$1 = this;
  9047. var sprite = this;
  9048. if (sprite.isMounted) {
  9049. return sprite.node;
  9050. }
  9051. /** @type Element */
  9052. var node = typeof target === 'string' ? document.querySelector(target) : target;
  9053. sprite.node = node;
  9054. // Already added symbols needs to be mounted
  9055. this.symbols.forEach(function (symbol) {
  9056. symbol.mount(sprite.node);
  9057. this$1._emitter.emit(Events.SYMBOL_MOUNT, symbol.node);
  9058. });
  9059. // Create symbols from existing DOM nodes, add and mount them
  9060. arrayFrom(node.querySelectorAll('symbol'))
  9061. .forEach(function (symbolNode) {
  9062. var symbol = BrowserSpriteSymbol.createFromExistingNode(symbolNode);
  9063. symbol.node = symbolNode; // hack to prevent symbol mounting to sprite when adding
  9064. sprite.add(symbol);
  9065. });
  9066. this._emitter.emit(Events.MOUNT, node);
  9067. return node;
  9068. };
  9069. BrowserSprite.prototype.destroy = function destroy () {
  9070. var ref = this;
  9071. var config = ref.config;
  9072. var symbols = ref.symbols;
  9073. var _emitter = ref._emitter;
  9074. symbols.forEach(function (s) { return s.destroy(); });
  9075. _emitter.off('*');
  9076. window.removeEventListener(config.locationChangeEvent, this._handleLocationChange);
  9077. if (this.isMounted) {
  9078. this.unmount();
  9079. }
  9080. };
  9081. /**
  9082. * @fires Events#MOUNT
  9083. * @param {string|Element} [target]
  9084. * @param {boolean} [prepend=false]
  9085. * @return {Element|null} rendered sprite node. null if mount node not found.
  9086. */
  9087. BrowserSprite.prototype.mount = function mount (target, prepend) {
  9088. if ( target === void 0 ) target = this.config.mountTo;
  9089. if ( prepend === void 0 ) prepend = false;
  9090. var sprite = this;
  9091. if (sprite.isMounted) {
  9092. return sprite.node;
  9093. }
  9094. var mountNode = typeof target === 'string' ? document.querySelector(target) : target;
  9095. var node = sprite.render();
  9096. this.node = node;
  9097. if (prepend && mountNode.childNodes[0]) {
  9098. mountNode.insertBefore(node, mountNode.childNodes[0]);
  9099. } else {
  9100. mountNode.appendChild(node);
  9101. }
  9102. this._emitter.emit(Events.MOUNT, node);
  9103. return node;
  9104. };
  9105. /**
  9106. * @return {Element}
  9107. */
  9108. BrowserSprite.prototype.render = function render () {
  9109. return parse(this.stringify());
  9110. };
  9111. /**
  9112. * Detach sprite from the DOM
  9113. */
  9114. BrowserSprite.prototype.unmount = function unmount () {
  9115. this.node.parentNode.removeChild(this.node);
  9116. };
  9117. /**
  9118. * Update URLs in sprite and usage elements
  9119. * @param {string} oldUrl
  9120. * @param {string} newUrl
  9121. * @return {boolean} `true` - URLs was updated, `false` - sprite is not mounted
  9122. */
  9123. BrowserSprite.prototype.updateUrls = function updateUrls$1 (oldUrl, newUrl) {
  9124. if (!this.isMounted) {
  9125. return false;
  9126. }
  9127. var usages = document.querySelectorAll(this.config.usagesToUpdate);
  9128. updateUrls(
  9129. this.node,
  9130. usages,
  9131. ((getUrlWithoutFragment(oldUrl)) + "#"),
  9132. ((getUrlWithoutFragment(newUrl)) + "#")
  9133. );
  9134. return true;
  9135. };
  9136. Object.defineProperties( BrowserSprite.prototype, prototypeAccessors );
  9137. return BrowserSprite;
  9138. }(Sprite));
  9139. var ready$1 = createCommonjsModule(function (module) {
  9140. /*!
  9141. * domready (c) Dustin Diaz 2014 - License MIT
  9142. */
  9143. !function (name, definition) {
  9144. { module.exports = definition(); }
  9145. }('domready', function () {
  9146. var fns = [], listener
  9147. , doc = document
  9148. , hack = doc.documentElement.doScroll
  9149. , domContentLoaded = 'DOMContentLoaded'
  9150. , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);
  9151. if (!loaded)
  9152. { doc.addEventListener(domContentLoaded, listener = function () {
  9153. doc.removeEventListener(domContentLoaded, listener);
  9154. loaded = 1;
  9155. while (listener = fns.shift()) { listener(); }
  9156. }); }
  9157. return function (fn) {
  9158. loaded ? setTimeout(fn, 0) : fns.push(fn);
  9159. }
  9160. });
  9161. });
  9162. var spriteNodeId = '__SVG_SPRITE_NODE__';
  9163. var spriteGlobalVarName = '__SVG_SPRITE__';
  9164. var isSpriteExists = !!window[spriteGlobalVarName];
  9165. // eslint-disable-next-line import/no-mutable-exports
  9166. var sprite;
  9167. if (isSpriteExists) {
  9168. sprite = window[spriteGlobalVarName];
  9169. } else {
  9170. sprite = new BrowserSprite({
  9171. attrs: {
  9172. id: spriteNodeId,
  9173. 'aria-hidden': 'true'
  9174. }
  9175. });
  9176. window[spriteGlobalVarName] = sprite;
  9177. }
  9178. var loadSprite = function () {
  9179. /**
  9180. * Check for page already contains sprite node
  9181. * If found - attach to and reuse it's content
  9182. * If not - render and mount the new sprite
  9183. */
  9184. var existing = document.getElementById(spriteNodeId);
  9185. if (existing) {
  9186. sprite.attach(existing);
  9187. } else {
  9188. sprite.mount(document.body, true);
  9189. }
  9190. };
  9191. if (document.body) {
  9192. loadSprite();
  9193. } else {
  9194. ready$1(loadSprite);
  9195. }
  9196. var sprite$1 = sprite;
  9197. return sprite$1;
  9198. })));
  9199. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(82)))
  9200. /***/ }),
  9201. /* 84 */
  9202. /***/ (function(module, exports, __webpack_require__) {
  9203. "use strict";
  9204. Object.defineProperty(exports, "__esModule", {
  9205. value: true
  9206. });
  9207. 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; };
  9208. 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; }; }();
  9209. var _react = __webpack_require__(25);
  9210. var _react2 = _interopRequireDefault(_react);
  9211. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9212. 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; }
  9213. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  9214. 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; }
  9215. 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; }
  9216. var Icon = function (_PureComponent) {
  9217. _inherits(Icon, _PureComponent);
  9218. function Icon() {
  9219. _classCallCheck(this, Icon);
  9220. return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments));
  9221. }
  9222. _createClass(Icon, [{
  9223. key: 'render',
  9224. value: function render() {
  9225. var _props = this.props,
  9226. className = _props.className,
  9227. glyph = _props.glyph,
  9228. restProps = _objectWithoutProperties(_props, ['className', 'glyph']);
  9229. return _react2.default.createElement(
  9230. 'svg',
  9231. _extends({ className: className }, restProps),
  9232. _react2.default.createElement('use', { xlinkHref: '#' + glyph })
  9233. );
  9234. }
  9235. }]);
  9236. return Icon;
  9237. }(_react.PureComponent);
  9238. exports.default = Icon;
  9239. Icon.defaultProps = {
  9240. glyph: '',
  9241. className: 'icon'
  9242. };
  9243. /***/ }),
  9244. /* 85 */
  9245. /***/ (function(module, exports, __webpack_require__) {
  9246. "use strict";
  9247. var _react = __webpack_require__(25);
  9248. var _react2 = _interopRequireDefault(_react);
  9249. var _reactDom = __webpack_require__(101);
  9250. var _twitter = __webpack_require__(190);
  9251. var _twitter2 = _interopRequireDefault(_twitter);
  9252. var _wikipedia = __webpack_require__(191);
  9253. var _wikipedia2 = _interopRequireDefault(_wikipedia);
  9254. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9255. document.addEventListener('DOMContentLoaded', function () {
  9256. (0, _reactDom.render)(_react2.default.createElement(
  9257. 'div',
  9258. null,
  9259. _react2.default.createElement(_twitter2.default, { width: '100' }),
  9260. _react2.default.createElement(_wikipedia2.default, { width: '200' })
  9261. ), document.querySelector('.app'));
  9262. });
  9263. /***/ }),
  9264. /* 86 */
  9265. /***/ (function(module, exports, __webpack_require__) {
  9266. "use strict";
  9267. /**
  9268. * Copyright 2013-present, Facebook, Inc.
  9269. * All rights reserved.
  9270. *
  9271. * This source code is licensed under the BSD-style license found in the
  9272. * LICENSE file in the root directory of this source tree. An additional grant
  9273. * of patent rights can be found in the PATENTS file in the same directory.
  9274. *
  9275. */
  9276. var PooledClass = __webpack_require__(87);
  9277. var ReactElement = __webpack_require__(15);
  9278. var emptyFunction = __webpack_require__(8);
  9279. var traverseAllChildren = __webpack_require__(88);
  9280. var twoArgumentPooler = PooledClass.twoArgumentPooler;
  9281. var fourArgumentPooler = PooledClass.fourArgumentPooler;
  9282. var userProvidedKeyEscapeRegex = /\/+/g;
  9283. function escapeUserProvidedKey(text) {
  9284. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  9285. }
  9286. /**
  9287. * PooledClass representing the bookkeeping associated with performing a child
  9288. * traversal. Allows avoiding binding callbacks.
  9289. *
  9290. * @constructor ForEachBookKeeping
  9291. * @param {!function} forEachFunction Function to perform traversal with.
  9292. * @param {?*} forEachContext Context to perform context with.
  9293. */
  9294. function ForEachBookKeeping(forEachFunction, forEachContext) {
  9295. this.func = forEachFunction;
  9296. this.context = forEachContext;
  9297. this.count = 0;
  9298. }
  9299. ForEachBookKeeping.prototype.destructor = function () {
  9300. this.func = null;
  9301. this.context = null;
  9302. this.count = 0;
  9303. };
  9304. PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler);
  9305. function forEachSingleChild(bookKeeping, child, name) {
  9306. var func = bookKeeping.func,
  9307. context = bookKeeping.context;
  9308. func.call(context, child, bookKeeping.count++);
  9309. }
  9310. /**
  9311. * Iterates through children that are typically specified as `props.children`.
  9312. *
  9313. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach
  9314. *
  9315. * The provided forEachFunc(child, index) will be called for each
  9316. * leaf child.
  9317. *
  9318. * @param {?*} children Children tree container.
  9319. * @param {function(*, int)} forEachFunc
  9320. * @param {*} forEachContext Context for forEachContext.
  9321. */
  9322. function forEachChildren(children, forEachFunc, forEachContext) {
  9323. if (children == null) {
  9324. return children;
  9325. }
  9326. var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);
  9327. traverseAllChildren(children, forEachSingleChild, traverseContext);
  9328. ForEachBookKeeping.release(traverseContext);
  9329. }
  9330. /**
  9331. * PooledClass representing the bookkeeping associated with performing a child
  9332. * mapping. Allows avoiding binding callbacks.
  9333. *
  9334. * @constructor MapBookKeeping
  9335. * @param {!*} mapResult Object containing the ordered map of results.
  9336. * @param {!function} mapFunction Function to perform mapping with.
  9337. * @param {?*} mapContext Context to perform mapping with.
  9338. */
  9339. function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {
  9340. this.result = mapResult;
  9341. this.keyPrefix = keyPrefix;
  9342. this.func = mapFunction;
  9343. this.context = mapContext;
  9344. this.count = 0;
  9345. }
  9346. MapBookKeeping.prototype.destructor = function () {
  9347. this.result = null;
  9348. this.keyPrefix = null;
  9349. this.func = null;
  9350. this.context = null;
  9351. this.count = 0;
  9352. };
  9353. PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);
  9354. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  9355. var result = bookKeeping.result,
  9356. keyPrefix = bookKeeping.keyPrefix,
  9357. func = bookKeeping.func,
  9358. context = bookKeeping.context;
  9359. var mappedChild = func.call(context, child, bookKeeping.count++);
  9360. if (Array.isArray(mappedChild)) {
  9361. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
  9362. } else if (mappedChild != null) {
  9363. if (ReactElement.isValidElement(mappedChild)) {
  9364. mappedChild = ReactElement.cloneAndReplaceKey(mappedChild,
  9365. // Keep both the (mapped) and old keys if they differ, just as
  9366. // traverseAllChildren used to do for objects as children
  9367. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  9368. }
  9369. result.push(mappedChild);
  9370. }
  9371. }
  9372. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  9373. var escapedPrefix = '';
  9374. if (prefix != null) {
  9375. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  9376. }
  9377. var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
  9378. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  9379. MapBookKeeping.release(traverseContext);
  9380. }
  9381. /**
  9382. * Maps children that are typically specified as `props.children`.
  9383. *
  9384. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.map
  9385. *
  9386. * The provided mapFunction(child, key, index) will be called for each
  9387. * leaf child.
  9388. *
  9389. * @param {?*} children Children tree container.
  9390. * @param {function(*, int)} func The map function.
  9391. * @param {*} context Context for mapFunction.
  9392. * @return {object} Object containing the ordered map of results.
  9393. */
  9394. function mapChildren(children, func, context) {
  9395. if (children == null) {
  9396. return children;
  9397. }
  9398. var result = [];
  9399. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  9400. return result;
  9401. }
  9402. function forEachSingleChildDummy(traverseContext, child, name) {
  9403. return null;
  9404. }
  9405. /**
  9406. * Count the number of children that are typically specified as
  9407. * `props.children`.
  9408. *
  9409. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.count
  9410. *
  9411. * @param {?*} children Children tree container.
  9412. * @return {number} The number of children.
  9413. */
  9414. function countChildren(children, context) {
  9415. return traverseAllChildren(children, forEachSingleChildDummy, null);
  9416. }
  9417. /**
  9418. * Flatten a children object (typically specified as `props.children`) and
  9419. * return an array with appropriately re-keyed children.
  9420. *
  9421. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray
  9422. */
  9423. function toArray(children) {
  9424. var result = [];
  9425. mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
  9426. return result;
  9427. }
  9428. var ReactChildren = {
  9429. forEach: forEachChildren,
  9430. map: mapChildren,
  9431. mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,
  9432. count: countChildren,
  9433. toArray: toArray
  9434. };
  9435. module.exports = ReactChildren;
  9436. /***/ }),
  9437. /* 87 */
  9438. /***/ (function(module, exports, __webpack_require__) {
  9439. "use strict";
  9440. /* WEBPACK VAR INJECTION */(function(process) {/**
  9441. * Copyright 2013-present, Facebook, Inc.
  9442. * All rights reserved.
  9443. *
  9444. * This source code is licensed under the BSD-style license found in the
  9445. * LICENSE file in the root directory of this source tree. An additional grant
  9446. * of patent rights can be found in the PATENTS file in the same directory.
  9447. *
  9448. *
  9449. */
  9450. var _prodInvariant = __webpack_require__(14);
  9451. var invariant = __webpack_require__(1);
  9452. /**
  9453. * Static poolers. Several custom versions for each potential number of
  9454. * arguments. A completely generic pooler is easy to implement, but would
  9455. * require accessing the `arguments` object. In each of these, `this` refers to
  9456. * the Class itself, not an instance. If any others are needed, simply add them
  9457. * here, or in their own files.
  9458. */
  9459. var oneArgumentPooler = function (copyFieldsFrom) {
  9460. var Klass = this;
  9461. if (Klass.instancePool.length) {
  9462. var instance = Klass.instancePool.pop();
  9463. Klass.call(instance, copyFieldsFrom);
  9464. return instance;
  9465. } else {
  9466. return new Klass(copyFieldsFrom);
  9467. }
  9468. };
  9469. var twoArgumentPooler = function (a1, a2) {
  9470. var Klass = this;
  9471. if (Klass.instancePool.length) {
  9472. var instance = Klass.instancePool.pop();
  9473. Klass.call(instance, a1, a2);
  9474. return instance;
  9475. } else {
  9476. return new Klass(a1, a2);
  9477. }
  9478. };
  9479. var threeArgumentPooler = function (a1, a2, a3) {
  9480. var Klass = this;
  9481. if (Klass.instancePool.length) {
  9482. var instance = Klass.instancePool.pop();
  9483. Klass.call(instance, a1, a2, a3);
  9484. return instance;
  9485. } else {
  9486. return new Klass(a1, a2, a3);
  9487. }
  9488. };
  9489. var fourArgumentPooler = function (a1, a2, a3, a4) {
  9490. var Klass = this;
  9491. if (Klass.instancePool.length) {
  9492. var instance = Klass.instancePool.pop();
  9493. Klass.call(instance, a1, a2, a3, a4);
  9494. return instance;
  9495. } else {
  9496. return new Klass(a1, a2, a3, a4);
  9497. }
  9498. };
  9499. var standardReleaser = function (instance) {
  9500. var Klass = this;
  9501. !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
  9502. instance.destructor();
  9503. if (Klass.instancePool.length < Klass.poolSize) {
  9504. Klass.instancePool.push(instance);
  9505. }
  9506. };
  9507. var DEFAULT_POOL_SIZE = 10;
  9508. var DEFAULT_POOLER = oneArgumentPooler;
  9509. /**
  9510. * Augments `CopyConstructor` to be a poolable class, augmenting only the class
  9511. * itself (statically) not adding any prototypical fields. Any CopyConstructor
  9512. * you give this may have a `poolSize` property, and will look for a
  9513. * prototypical `destructor` on instances.
  9514. *
  9515. * @param {Function} CopyConstructor Constructor that can be used to reset.
  9516. * @param {Function} pooler Customizable pooler.
  9517. */
  9518. var addPoolingTo = function (CopyConstructor, pooler) {
  9519. // Casting as any so that flow ignores the actual implementation and trusts
  9520. // it to match the type we declared
  9521. var NewKlass = CopyConstructor;
  9522. NewKlass.instancePool = [];
  9523. NewKlass.getPooled = pooler || DEFAULT_POOLER;
  9524. if (!NewKlass.poolSize) {
  9525. NewKlass.poolSize = DEFAULT_POOL_SIZE;
  9526. }
  9527. NewKlass.release = standardReleaser;
  9528. return NewKlass;
  9529. };
  9530. var PooledClass = {
  9531. addPoolingTo: addPoolingTo,
  9532. oneArgumentPooler: oneArgumentPooler,
  9533. twoArgumentPooler: twoArgumentPooler,
  9534. threeArgumentPooler: threeArgumentPooler,
  9535. fourArgumentPooler: fourArgumentPooler
  9536. };
  9537. module.exports = PooledClass;
  9538. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  9539. /***/ }),
  9540. /* 88 */
  9541. /***/ (function(module, exports, __webpack_require__) {
  9542. "use strict";
  9543. /* WEBPACK VAR INJECTION */(function(process) {/**
  9544. * Copyright 2013-present, Facebook, Inc.
  9545. * All rights reserved.
  9546. *
  9547. * This source code is licensed under the BSD-style license found in the
  9548. * LICENSE file in the root directory of this source tree. An additional grant
  9549. * of patent rights can be found in the PATENTS file in the same directory.
  9550. *
  9551. */
  9552. var _prodInvariant = __webpack_require__(14);
  9553. var ReactCurrentOwner = __webpack_require__(10);
  9554. var REACT_ELEMENT_TYPE = __webpack_require__(51);
  9555. var getIteratorFn = __webpack_require__(52);
  9556. var invariant = __webpack_require__(1);
  9557. var KeyEscapeUtils = __webpack_require__(89);
  9558. var warning = __webpack_require__(2);
  9559. var SEPARATOR = '.';
  9560. var SUBSEPARATOR = ':';
  9561. /**
  9562. * This is inlined from ReactElement since this file is shared between
  9563. * isomorphic and renderers. We could extract this to a
  9564. *
  9565. */
  9566. /**
  9567. * TODO: Test that a single child and an array with one item have the same key
  9568. * pattern.
  9569. */
  9570. var didWarnAboutMaps = false;
  9571. /**
  9572. * Generate a key string that identifies a component within a set.
  9573. *
  9574. * @param {*} component A component that could contain a manual key.
  9575. * @param {number} index Index that is used if a manual key is not provided.
  9576. * @return {string}
  9577. */
  9578. function getComponentKey(component, index) {
  9579. // Do some typechecking here since we call this blindly. We want to ensure
  9580. // that we don't block potential future ES APIs.
  9581. if (component && typeof component === 'object' && component.key != null) {
  9582. // Explicit key
  9583. return KeyEscapeUtils.escape(component.key);
  9584. }
  9585. // Implicit key determined by the index in the set
  9586. return index.toString(36);
  9587. }
  9588. /**
  9589. * @param {?*} children Children tree container.
  9590. * @param {!string} nameSoFar Name of the key path so far.
  9591. * @param {!function} callback Callback to invoke with each child found.
  9592. * @param {?*} traverseContext Used to pass information throughout the traversal
  9593. * process.
  9594. * @return {!number} The number of children in this subtree.
  9595. */
  9596. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  9597. var type = typeof children;
  9598. if (type === 'undefined' || type === 'boolean') {
  9599. // All of the above are perceived as null.
  9600. children = null;
  9601. }
  9602. if (children === null || type === 'string' || type === 'number' ||
  9603. // The following is inlined from ReactElement. This means we can optimize
  9604. // some checks. React Fiber also inlines this logic for similar purposes.
  9605. type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
  9606. callback(traverseContext, children,
  9607. // If it's the only child, treat the name as if it was wrapped in an array
  9608. // so that it's consistent if the number of children grows.
  9609. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  9610. return 1;
  9611. }
  9612. var child;
  9613. var nextName;
  9614. var subtreeCount = 0; // Count of children found in the current subtree.
  9615. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  9616. if (Array.isArray(children)) {
  9617. for (var i = 0; i < children.length; i++) {
  9618. child = children[i];
  9619. nextName = nextNamePrefix + getComponentKey(child, i);
  9620. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9621. }
  9622. } else {
  9623. var iteratorFn = getIteratorFn(children);
  9624. if (iteratorFn) {
  9625. var iterator = iteratorFn.call(children);
  9626. var step;
  9627. if (iteratorFn !== children.entries) {
  9628. var ii = 0;
  9629. while (!(step = iterator.next()).done) {
  9630. child = step.value;
  9631. nextName = nextNamePrefix + getComponentKey(child, ii++);
  9632. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9633. }
  9634. } else {
  9635. if (process.env.NODE_ENV !== 'production') {
  9636. var mapsAsChildrenAddendum = '';
  9637. if (ReactCurrentOwner.current) {
  9638. var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
  9639. if (mapsAsChildrenOwnerName) {
  9640. mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
  9641. }
  9642. }
  9643. process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
  9644. didWarnAboutMaps = true;
  9645. }
  9646. // Iterator will provide entry [k,v] tuples rather than values.
  9647. while (!(step = iterator.next()).done) {
  9648. var entry = step.value;
  9649. if (entry) {
  9650. child = entry[1];
  9651. nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
  9652. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9653. }
  9654. }
  9655. }
  9656. } else if (type === 'object') {
  9657. var addendum = '';
  9658. if (process.env.NODE_ENV !== 'production') {
  9659. addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
  9660. if (children._isReactElement) {
  9661. addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
  9662. }
  9663. if (ReactCurrentOwner.current) {
  9664. var name = ReactCurrentOwner.current.getName();
  9665. if (name) {
  9666. addendum += ' Check the render method of `' + name + '`.';
  9667. }
  9668. }
  9669. }
  9670. var childrenString = String(children);
  9671. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
  9672. }
  9673. }
  9674. return subtreeCount;
  9675. }
  9676. /**
  9677. * Traverses children that are typically specified as `props.children`, but
  9678. * might also be specified through attributes:
  9679. *
  9680. * - `traverseAllChildren(this.props.children, ...)`
  9681. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  9682. *
  9683. * The `traverseContext` is an optional argument that is passed through the
  9684. * entire traversal. It can be used to store accumulations or anything else that
  9685. * the callback might find relevant.
  9686. *
  9687. * @param {?*} children Children tree object.
  9688. * @param {!function} callback To invoke upon traversing each child.
  9689. * @param {?*} traverseContext Context for traversal.
  9690. * @return {!number} The number of children in this subtree.
  9691. */
  9692. function traverseAllChildren(children, callback, traverseContext) {
  9693. if (children == null) {
  9694. return 0;
  9695. }
  9696. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  9697. }
  9698. module.exports = traverseAllChildren;
  9699. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  9700. /***/ }),
  9701. /* 89 */
  9702. /***/ (function(module, exports, __webpack_require__) {
  9703. "use strict";
  9704. /**
  9705. * Copyright 2013-present, Facebook, Inc.
  9706. * All rights reserved.
  9707. *
  9708. * This source code is licensed under the BSD-style license found in the
  9709. * LICENSE file in the root directory of this source tree. An additional grant
  9710. * of patent rights can be found in the PATENTS file in the same directory.
  9711. *
  9712. *
  9713. */
  9714. /**
  9715. * Escape and wrap key so it is safe to use as a reactid
  9716. *
  9717. * @param {string} key to be escaped.
  9718. * @return {string} the escaped key.
  9719. */
  9720. function escape(key) {
  9721. var escapeRegex = /[=:]/g;
  9722. var escaperLookup = {
  9723. '=': '=0',
  9724. ':': '=2'
  9725. };
  9726. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  9727. return escaperLookup[match];
  9728. });
  9729. return '$' + escapedString;
  9730. }
  9731. /**
  9732. * Unescape and unwrap key for human-readable display
  9733. *
  9734. * @param {string} key to unescape.
  9735. * @return {string} the unescaped key.
  9736. */
  9737. function unescape(key) {
  9738. var unescapeRegex = /(=0|=2)/g;
  9739. var unescaperLookup = {
  9740. '=0': '=',
  9741. '=2': ':'
  9742. };
  9743. var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
  9744. return ('' + keySubstring).replace(unescapeRegex, function (match) {
  9745. return unescaperLookup[match];
  9746. });
  9747. }
  9748. var KeyEscapeUtils = {
  9749. escape: escape,
  9750. unescape: unescape
  9751. };
  9752. module.exports = KeyEscapeUtils;
  9753. /***/ }),
  9754. /* 90 */
  9755. /***/ (function(module, exports, __webpack_require__) {
  9756. "use strict";
  9757. /**
  9758. * Copyright 2013-present, Facebook, Inc.
  9759. * All rights reserved.
  9760. *
  9761. * This source code is licensed under the BSD-style license found in the
  9762. * LICENSE file in the root directory of this source tree. An additional grant
  9763. * of patent rights can be found in the PATENTS file in the same directory.
  9764. *
  9765. */
  9766. var _assign = __webpack_require__(4);
  9767. var ReactComponent = __webpack_require__(33);
  9768. var ReactNoopUpdateQueue = __webpack_require__(34);
  9769. var emptyObject = __webpack_require__(20);
  9770. /**
  9771. * Base class helpers for the updating state of a component.
  9772. */
  9773. function ReactPureComponent(props, context, updater) {
  9774. // Duplicated from ReactComponent.
  9775. this.props = props;
  9776. this.context = context;
  9777. this.refs = emptyObject;
  9778. // We initialize the default updater but the real one gets injected by the
  9779. // renderer.
  9780. this.updater = updater || ReactNoopUpdateQueue;
  9781. }
  9782. function ComponentDummy() {}
  9783. ComponentDummy.prototype = ReactComponent.prototype;
  9784. ReactPureComponent.prototype = new ComponentDummy();
  9785. ReactPureComponent.prototype.constructor = ReactPureComponent;
  9786. // Avoid an extra prototype jump for these methods.
  9787. _assign(ReactPureComponent.prototype, ReactComponent.prototype);
  9788. ReactPureComponent.prototype.isPureReactComponent = true;
  9789. module.exports = ReactPureComponent;
  9790. /***/ }),
  9791. /* 91 */
  9792. /***/ (function(module, exports, __webpack_require__) {
  9793. "use strict";
  9794. /* WEBPACK VAR INJECTION */(function(process) {/**
  9795. * Copyright 2013-present, Facebook, Inc.
  9796. * All rights reserved.
  9797. *
  9798. * This source code is licensed under the BSD-style license found in the
  9799. * LICENSE file in the root directory of this source tree. An additional grant
  9800. * of patent rights can be found in the PATENTS file in the same directory.
  9801. *
  9802. */
  9803. var _prodInvariant = __webpack_require__(14),
  9804. _assign = __webpack_require__(4);
  9805. var ReactComponent = __webpack_require__(33);
  9806. var ReactElement = __webpack_require__(15);
  9807. var ReactPropTypeLocationNames = __webpack_require__(53);
  9808. var ReactNoopUpdateQueue = __webpack_require__(34);
  9809. var emptyObject = __webpack_require__(20);
  9810. var invariant = __webpack_require__(1);
  9811. var warning = __webpack_require__(2);
  9812. var MIXINS_KEY = 'mixins';
  9813. // Helper function to allow the creation of anonymous functions which do not
  9814. // have .name set to the name of the variable being assigned to.
  9815. function identity(fn) {
  9816. return fn;
  9817. }
  9818. /**
  9819. * Policies that describe methods in `ReactClassInterface`.
  9820. */
  9821. var injectedMixins = [];
  9822. /**
  9823. * Composite components are higher-level components that compose other composite
  9824. * or host components.
  9825. *
  9826. * To create a new type of `ReactClass`, pass a specification of
  9827. * your new class to `React.createClass`. The only requirement of your class
  9828. * specification is that you implement a `render` method.
  9829. *
  9830. * var MyComponent = React.createClass({
  9831. * render: function() {
  9832. * return <div>Hello World</div>;
  9833. * }
  9834. * });
  9835. *
  9836. * The class specification supports a specific protocol of methods that have
  9837. * special meaning (e.g. `render`). See `ReactClassInterface` for
  9838. * more the comprehensive protocol. Any other properties and methods in the
  9839. * class specification will be available on the prototype.
  9840. *
  9841. * @interface ReactClassInterface
  9842. * @internal
  9843. */
  9844. var ReactClassInterface = {
  9845. /**
  9846. * An array of Mixin objects to include when defining your component.
  9847. *
  9848. * @type {array}
  9849. * @optional
  9850. */
  9851. mixins: 'DEFINE_MANY',
  9852. /**
  9853. * An object containing properties and methods that should be defined on
  9854. * the component's constructor instead of its prototype (static methods).
  9855. *
  9856. * @type {object}
  9857. * @optional
  9858. */
  9859. statics: 'DEFINE_MANY',
  9860. /**
  9861. * Definition of prop types for this component.
  9862. *
  9863. * @type {object}
  9864. * @optional
  9865. */
  9866. propTypes: 'DEFINE_MANY',
  9867. /**
  9868. * Definition of context types for this component.
  9869. *
  9870. * @type {object}
  9871. * @optional
  9872. */
  9873. contextTypes: 'DEFINE_MANY',
  9874. /**
  9875. * Definition of context types this component sets for its children.
  9876. *
  9877. * @type {object}
  9878. * @optional
  9879. */
  9880. childContextTypes: 'DEFINE_MANY',
  9881. // ==== Definition methods ====
  9882. /**
  9883. * Invoked when the component is mounted. Values in the mapping will be set on
  9884. * `this.props` if that prop is not specified (i.e. using an `in` check).
  9885. *
  9886. * This method is invoked before `getInitialState` and therefore cannot rely
  9887. * on `this.state` or use `this.setState`.
  9888. *
  9889. * @return {object}
  9890. * @optional
  9891. */
  9892. getDefaultProps: 'DEFINE_MANY_MERGED',
  9893. /**
  9894. * Invoked once before the component is mounted. The return value will be used
  9895. * as the initial value of `this.state`.
  9896. *
  9897. * getInitialState: function() {
  9898. * return {
  9899. * isOn: false,
  9900. * fooBaz: new BazFoo()
  9901. * }
  9902. * }
  9903. *
  9904. * @return {object}
  9905. * @optional
  9906. */
  9907. getInitialState: 'DEFINE_MANY_MERGED',
  9908. /**
  9909. * @return {object}
  9910. * @optional
  9911. */
  9912. getChildContext: 'DEFINE_MANY_MERGED',
  9913. /**
  9914. * Uses props from `this.props` and state from `this.state` to render the
  9915. * structure of the component.
  9916. *
  9917. * No guarantees are made about when or how often this method is invoked, so
  9918. * it must not have side effects.
  9919. *
  9920. * render: function() {
  9921. * var name = this.props.name;
  9922. * return <div>Hello, {name}!</div>;
  9923. * }
  9924. *
  9925. * @return {ReactComponent}
  9926. * @required
  9927. */
  9928. render: 'DEFINE_ONCE',
  9929. // ==== Delegate methods ====
  9930. /**
  9931. * Invoked when the component is initially created and about to be mounted.
  9932. * This may have side effects, but any external subscriptions or data created
  9933. * by this method must be cleaned up in `componentWillUnmount`.
  9934. *
  9935. * @optional
  9936. */
  9937. componentWillMount: 'DEFINE_MANY',
  9938. /**
  9939. * Invoked when the component has been mounted and has a DOM representation.
  9940. * However, there is no guarantee that the DOM node is in the document.
  9941. *
  9942. * Use this as an opportunity to operate on the DOM when the component has
  9943. * been mounted (initialized and rendered) for the first time.
  9944. *
  9945. * @param {DOMElement} rootNode DOM element representing the component.
  9946. * @optional
  9947. */
  9948. componentDidMount: 'DEFINE_MANY',
  9949. /**
  9950. * Invoked before the component receives new props.
  9951. *
  9952. * Use this as an opportunity to react to a prop transition by updating the
  9953. * state using `this.setState`. Current props are accessed via `this.props`.
  9954. *
  9955. * componentWillReceiveProps: function(nextProps, nextContext) {
  9956. * this.setState({
  9957. * likesIncreasing: nextProps.likeCount > this.props.likeCount
  9958. * });
  9959. * }
  9960. *
  9961. * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop
  9962. * transition may cause a state change, but the opposite is not true. If you
  9963. * need it, you are probably looking for `componentWillUpdate`.
  9964. *
  9965. * @param {object} nextProps
  9966. * @optional
  9967. */
  9968. componentWillReceiveProps: 'DEFINE_MANY',
  9969. /**
  9970. * Invoked while deciding if the component should be updated as a result of
  9971. * receiving new props, state and/or context.
  9972. *
  9973. * Use this as an opportunity to `return false` when you're certain that the
  9974. * transition to the new props/state/context will not require a component
  9975. * update.
  9976. *
  9977. * shouldComponentUpdate: function(nextProps, nextState, nextContext) {
  9978. * return !equal(nextProps, this.props) ||
  9979. * !equal(nextState, this.state) ||
  9980. * !equal(nextContext, this.context);
  9981. * }
  9982. *
  9983. * @param {object} nextProps
  9984. * @param {?object} nextState
  9985. * @param {?object} nextContext
  9986. * @return {boolean} True if the component should update.
  9987. * @optional
  9988. */
  9989. shouldComponentUpdate: 'DEFINE_ONCE',
  9990. /**
  9991. * Invoked when the component is about to update due to a transition from
  9992. * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`
  9993. * and `nextContext`.
  9994. *
  9995. * Use this as an opportunity to perform preparation before an update occurs.
  9996. *
  9997. * NOTE: You **cannot** use `this.setState()` in this method.
  9998. *
  9999. * @param {object} nextProps
  10000. * @param {?object} nextState
  10001. * @param {?object} nextContext
  10002. * @param {ReactReconcileTransaction} transaction
  10003. * @optional
  10004. */
  10005. componentWillUpdate: 'DEFINE_MANY',
  10006. /**
  10007. * Invoked when the component's DOM representation has been updated.
  10008. *
  10009. * Use this as an opportunity to operate on the DOM when the component has
  10010. * been updated.
  10011. *
  10012. * @param {object} prevProps
  10013. * @param {?object} prevState
  10014. * @param {?object} prevContext
  10015. * @param {DOMElement} rootNode DOM element representing the component.
  10016. * @optional
  10017. */
  10018. componentDidUpdate: 'DEFINE_MANY',
  10019. /**
  10020. * Invoked when the component is about to be removed from its parent and have
  10021. * its DOM representation destroyed.
  10022. *
  10023. * Use this as an opportunity to deallocate any external resources.
  10024. *
  10025. * NOTE: There is no `componentDidUnmount` since your component will have been
  10026. * destroyed by that point.
  10027. *
  10028. * @optional
  10029. */
  10030. componentWillUnmount: 'DEFINE_MANY',
  10031. // ==== Advanced methods ====
  10032. /**
  10033. * Updates the component's currently mounted DOM representation.
  10034. *
  10035. * By default, this implements React's rendering and reconciliation algorithm.
  10036. * Sophisticated clients may wish to override this.
  10037. *
  10038. * @param {ReactReconcileTransaction} transaction
  10039. * @internal
  10040. * @overridable
  10041. */
  10042. updateComponent: 'OVERRIDE_BASE'
  10043. };
  10044. /**
  10045. * Mapping from class specification keys to special processing functions.
  10046. *
  10047. * Although these are declared like instance properties in the specification
  10048. * when defining classes using `React.createClass`, they are actually static
  10049. * and are accessible on the constructor instead of the prototype. Despite
  10050. * being static, they must be defined outside of the "statics" key under
  10051. * which all other static methods are defined.
  10052. */
  10053. var RESERVED_SPEC_KEYS = {
  10054. displayName: function (Constructor, displayName) {
  10055. Constructor.displayName = displayName;
  10056. },
  10057. mixins: function (Constructor, mixins) {
  10058. if (mixins) {
  10059. for (var i = 0; i < mixins.length; i++) {
  10060. mixSpecIntoComponent(Constructor, mixins[i]);
  10061. }
  10062. }
  10063. },
  10064. childContextTypes: function (Constructor, childContextTypes) {
  10065. if (process.env.NODE_ENV !== 'production') {
  10066. validateTypeDef(Constructor, childContextTypes, 'childContext');
  10067. }
  10068. Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
  10069. },
  10070. contextTypes: function (Constructor, contextTypes) {
  10071. if (process.env.NODE_ENV !== 'production') {
  10072. validateTypeDef(Constructor, contextTypes, 'context');
  10073. }
  10074. Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
  10075. },
  10076. /**
  10077. * Special case getDefaultProps which should move into statics but requires
  10078. * automatic merging.
  10079. */
  10080. getDefaultProps: function (Constructor, getDefaultProps) {
  10081. if (Constructor.getDefaultProps) {
  10082. Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);
  10083. } else {
  10084. Constructor.getDefaultProps = getDefaultProps;
  10085. }
  10086. },
  10087. propTypes: function (Constructor, propTypes) {
  10088. if (process.env.NODE_ENV !== 'production') {
  10089. validateTypeDef(Constructor, propTypes, 'prop');
  10090. }
  10091. Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
  10092. },
  10093. statics: function (Constructor, statics) {
  10094. mixStaticSpecIntoComponent(Constructor, statics);
  10095. },
  10096. autobind: function () {} };
  10097. function validateTypeDef(Constructor, typeDef, location) {
  10098. for (var propName in typeDef) {
  10099. if (typeDef.hasOwnProperty(propName)) {
  10100. // use a warning instead of an invariant so components
  10101. // don't show up in prod but only in __DEV__
  10102. process.env.NODE_ENV !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;
  10103. }
  10104. }
  10105. }
  10106. function validateMethodOverride(isAlreadyDefined, name) {
  10107. var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;
  10108. // Disallow overriding of base class methods unless explicitly allowed.
  10109. if (ReactClassMixin.hasOwnProperty(name)) {
  10110. !(specPolicy === 'OVERRIDE_BASE') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0;
  10111. }
  10112. // Disallow defining methods more than once unless explicitly allowed.
  10113. if (isAlreadyDefined) {
  10114. !(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0;
  10115. }
  10116. }
  10117. /**
  10118. * Mixin helper which handles policy validation and reserved
  10119. * specification keys when building React classes.
  10120. */
  10121. function mixSpecIntoComponent(Constructor, spec) {
  10122. if (!spec) {
  10123. if (process.env.NODE_ENV !== 'production') {
  10124. var typeofSpec = typeof spec;
  10125. var isMixinValid = typeofSpec === 'object' && spec !== null;
  10126. process.env.NODE_ENV !== 'production' ? warning(isMixinValid, '%s: You\'re attempting to include a mixin that is either null ' + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec) : void 0;
  10127. }
  10128. return;
  10129. }
  10130. !(typeof spec !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component class or function as a mixin. Instead, just use a regular object.') : _prodInvariant('75') : void 0;
  10131. !!ReactElement.isValidElement(spec) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component as a mixin. Instead, just use a regular object.') : _prodInvariant('76') : void 0;
  10132. var proto = Constructor.prototype;
  10133. var autoBindPairs = proto.__reactAutoBindPairs;
  10134. // By handling mixins before any other properties, we ensure the same
  10135. // chaining order is applied to methods with DEFINE_MANY policy, whether
  10136. // mixins are listed before or after these methods in the spec.
  10137. if (spec.hasOwnProperty(MIXINS_KEY)) {
  10138. RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
  10139. }
  10140. for (var name in spec) {
  10141. if (!spec.hasOwnProperty(name)) {
  10142. continue;
  10143. }
  10144. if (name === MIXINS_KEY) {
  10145. // We have already handled mixins in a special case above.
  10146. continue;
  10147. }
  10148. var property = spec[name];
  10149. var isAlreadyDefined = proto.hasOwnProperty(name);
  10150. validateMethodOverride(isAlreadyDefined, name);
  10151. if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
  10152. RESERVED_SPEC_KEYS[name](Constructor, property);
  10153. } else {
  10154. // Setup methods on prototype:
  10155. // The following member methods should not be automatically bound:
  10156. // 1. Expected ReactClass methods (in the "interface").
  10157. // 2. Overridden methods (that were mixed in).
  10158. var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
  10159. var isFunction = typeof property === 'function';
  10160. var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;
  10161. if (shouldAutoBind) {
  10162. autoBindPairs.push(name, property);
  10163. proto[name] = property;
  10164. } else {
  10165. if (isAlreadyDefined) {
  10166. var specPolicy = ReactClassInterface[name];
  10167. // These cases should already be caught by validateMethodOverride.
  10168. !(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0;
  10169. // For methods which are defined more than once, call the existing
  10170. // methods before calling the new property, merging if appropriate.
  10171. if (specPolicy === 'DEFINE_MANY_MERGED') {
  10172. proto[name] = createMergedResultFunction(proto[name], property);
  10173. } else if (specPolicy === 'DEFINE_MANY') {
  10174. proto[name] = createChainedFunction(proto[name], property);
  10175. }
  10176. } else {
  10177. proto[name] = property;
  10178. if (process.env.NODE_ENV !== 'production') {
  10179. // Add verbose displayName to the function, which helps when looking
  10180. // at profiling tools.
  10181. if (typeof property === 'function' && spec.displayName) {
  10182. proto[name].displayName = spec.displayName + '_' + name;
  10183. }
  10184. }
  10185. }
  10186. }
  10187. }
  10188. }
  10189. }
  10190. function mixStaticSpecIntoComponent(Constructor, statics) {
  10191. if (!statics) {
  10192. return;
  10193. }
  10194. for (var name in statics) {
  10195. var property = statics[name];
  10196. if (!statics.hasOwnProperty(name)) {
  10197. continue;
  10198. }
  10199. var isReserved = name in RESERVED_SPEC_KEYS;
  10200. !!isReserved ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', name) : _prodInvariant('78', name) : void 0;
  10201. var isInherited = name in Constructor;
  10202. !!isInherited ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('79', name) : void 0;
  10203. Constructor[name] = property;
  10204. }
  10205. }
  10206. /**
  10207. * Merge two objects, but throw if both contain the same key.
  10208. *
  10209. * @param {object} one The first object, which is mutated.
  10210. * @param {object} two The second object
  10211. * @return {object} one after it has been mutated to contain everything in two.
  10212. */
  10213. function mergeIntoWithNoDuplicateKeys(one, two) {
  10214. !(one && two && typeof one === 'object' && typeof two === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;
  10215. for (var key in two) {
  10216. if (two.hasOwnProperty(key)) {
  10217. !(one[key] === undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;
  10218. one[key] = two[key];
  10219. }
  10220. }
  10221. return one;
  10222. }
  10223. /**
  10224. * Creates a function that invokes two functions and merges their return values.
  10225. *
  10226. * @param {function} one Function to invoke first.
  10227. * @param {function} two Function to invoke second.
  10228. * @return {function} Function that invokes the two argument functions.
  10229. * @private
  10230. */
  10231. function createMergedResultFunction(one, two) {
  10232. return function mergedResult() {
  10233. var a = one.apply(this, arguments);
  10234. var b = two.apply(this, arguments);
  10235. if (a == null) {
  10236. return b;
  10237. } else if (b == null) {
  10238. return a;
  10239. }
  10240. var c = {};
  10241. mergeIntoWithNoDuplicateKeys(c, a);
  10242. mergeIntoWithNoDuplicateKeys(c, b);
  10243. return c;
  10244. };
  10245. }
  10246. /**
  10247. * Creates a function that invokes two functions and ignores their return vales.
  10248. *
  10249. * @param {function} one Function to invoke first.
  10250. * @param {function} two Function to invoke second.
  10251. * @return {function} Function that invokes the two argument functions.
  10252. * @private
  10253. */
  10254. function createChainedFunction(one, two) {
  10255. return function chainedFunction() {
  10256. one.apply(this, arguments);
  10257. two.apply(this, arguments);
  10258. };
  10259. }
  10260. /**
  10261. * Binds a method to the component.
  10262. *
  10263. * @param {object} component Component whose method is going to be bound.
  10264. * @param {function} method Method to be bound.
  10265. * @return {function} The bound method.
  10266. */
  10267. function bindAutoBindMethod(component, method) {
  10268. var boundMethod = method.bind(component);
  10269. if (process.env.NODE_ENV !== 'production') {
  10270. boundMethod.__reactBoundContext = component;
  10271. boundMethod.__reactBoundMethod = method;
  10272. boundMethod.__reactBoundArguments = null;
  10273. var componentName = component.constructor.displayName;
  10274. var _bind = boundMethod.bind;
  10275. boundMethod.bind = function (newThis) {
  10276. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  10277. args[_key - 1] = arguments[_key];
  10278. }
  10279. // User is trying to bind() an autobound method; we effectively will
  10280. // ignore the value of "this" that the user is trying to use, so
  10281. // let's warn.
  10282. if (newThis !== component && newThis !== null) {
  10283. process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;
  10284. } else if (!args.length) {
  10285. process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;
  10286. return boundMethod;
  10287. }
  10288. var reboundMethod = _bind.apply(boundMethod, arguments);
  10289. reboundMethod.__reactBoundContext = component;
  10290. reboundMethod.__reactBoundMethod = method;
  10291. reboundMethod.__reactBoundArguments = args;
  10292. return reboundMethod;
  10293. };
  10294. }
  10295. return boundMethod;
  10296. }
  10297. /**
  10298. * Binds all auto-bound methods in a component.
  10299. *
  10300. * @param {object} component Component whose method is going to be bound.
  10301. */
  10302. function bindAutoBindMethods(component) {
  10303. var pairs = component.__reactAutoBindPairs;
  10304. for (var i = 0; i < pairs.length; i += 2) {
  10305. var autoBindKey = pairs[i];
  10306. var method = pairs[i + 1];
  10307. component[autoBindKey] = bindAutoBindMethod(component, method);
  10308. }
  10309. }
  10310. /**
  10311. * Add more to the ReactClass base class. These are all legacy features and
  10312. * therefore not already part of the modern ReactComponent.
  10313. */
  10314. var ReactClassMixin = {
  10315. /**
  10316. * TODO: This will be deprecated because state should always keep a consistent
  10317. * type signature and the only use case for this, is to avoid that.
  10318. */
  10319. replaceState: function (newState, callback) {
  10320. this.updater.enqueueReplaceState(this, newState);
  10321. if (callback) {
  10322. this.updater.enqueueCallback(this, callback, 'replaceState');
  10323. }
  10324. },
  10325. /**
  10326. * Checks whether or not this composite component is mounted.
  10327. * @return {boolean} True if mounted, false otherwise.
  10328. * @protected
  10329. * @final
  10330. */
  10331. isMounted: function () {
  10332. return this.updater.isMounted(this);
  10333. }
  10334. };
  10335. var ReactClassComponent = function () {};
  10336. _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
  10337. var didWarnDeprecated = false;
  10338. /**
  10339. * Module for creating composite components.
  10340. *
  10341. * @class ReactClass
  10342. */
  10343. var ReactClass = {
  10344. /**
  10345. * Creates a composite component class given a class specification.
  10346. * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass
  10347. *
  10348. * @param {object} spec Class specification (which must define `render`).
  10349. * @return {function} Component constructor function.
  10350. * @public
  10351. */
  10352. createClass: function (spec) {
  10353. if (process.env.NODE_ENV !== 'production') {
  10354. process.env.NODE_ENV !== 'production' ? warning(didWarnDeprecated, '%s: React.createClass is deprecated and will be removed in version 16. ' + 'Use plain JavaScript classes instead. If you\'re not yet ready to ' + 'migrate, create-react-class is available on npm as a ' + 'drop-in replacement.', spec && spec.displayName || 'A Component') : void 0;
  10355. didWarnDeprecated = true;
  10356. }
  10357. // To keep our warnings more understandable, we'll use a little hack here to
  10358. // ensure that Constructor.name !== 'Constructor'. This makes sure we don't
  10359. // unnecessarily identify a class without displayName as 'Constructor'.
  10360. var Constructor = identity(function (props, context, updater) {
  10361. // This constructor gets overridden by mocks. The argument is used
  10362. // by mocks to assert on what gets mounted.
  10363. if (process.env.NODE_ENV !== 'production') {
  10364. process.env.NODE_ENV !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0;
  10365. }
  10366. // Wire up auto-binding
  10367. if (this.__reactAutoBindPairs.length) {
  10368. bindAutoBindMethods(this);
  10369. }
  10370. this.props = props;
  10371. this.context = context;
  10372. this.refs = emptyObject;
  10373. this.updater = updater || ReactNoopUpdateQueue;
  10374. this.state = null;
  10375. // ReactClasses doesn't have constructors. Instead, they use the
  10376. // getInitialState and componentWillMount methods for initialization.
  10377. var initialState = this.getInitialState ? this.getInitialState() : null;
  10378. if (process.env.NODE_ENV !== 'production') {
  10379. // We allow auto-mocks to proceed as if they're returning null.
  10380. if (initialState === undefined && this.getInitialState._isMockFunction) {
  10381. // This is probably bad practice. Consider warning here and
  10382. // deprecating this convenience.
  10383. initialState = null;
  10384. }
  10385. }
  10386. !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0;
  10387. this.state = initialState;
  10388. });
  10389. Constructor.prototype = new ReactClassComponent();
  10390. Constructor.prototype.constructor = Constructor;
  10391. Constructor.prototype.__reactAutoBindPairs = [];
  10392. injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));
  10393. mixSpecIntoComponent(Constructor, spec);
  10394. // Initialize the defaultProps property after all mixins have been merged.
  10395. if (Constructor.getDefaultProps) {
  10396. Constructor.defaultProps = Constructor.getDefaultProps();
  10397. }
  10398. if (process.env.NODE_ENV !== 'production') {
  10399. // This is a tag to indicate that the use of these method names is ok,
  10400. // since it's used with createClass. If it's not, then it's likely a
  10401. // mistake so we'll warn you to use the static property, property
  10402. // initializer or constructor respectively.
  10403. if (Constructor.getDefaultProps) {
  10404. Constructor.getDefaultProps.isReactClassApproved = {};
  10405. }
  10406. if (Constructor.prototype.getInitialState) {
  10407. Constructor.prototype.getInitialState.isReactClassApproved = {};
  10408. }
  10409. }
  10410. !Constructor.prototype.render ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;
  10411. if (process.env.NODE_ENV !== 'production') {
  10412. process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%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.', spec.displayName || 'A component') : void 0;
  10413. process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0;
  10414. }
  10415. // Reduce time spent doing lookups by setting these on the prototype.
  10416. for (var methodName in ReactClassInterface) {
  10417. if (!Constructor.prototype[methodName]) {
  10418. Constructor.prototype[methodName] = null;
  10419. }
  10420. }
  10421. return Constructor;
  10422. },
  10423. injection: {
  10424. injectMixin: function (mixin) {
  10425. injectedMixins.push(mixin);
  10426. }
  10427. }
  10428. };
  10429. module.exports = ReactClass;
  10430. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10431. /***/ }),
  10432. /* 92 */
  10433. /***/ (function(module, exports, __webpack_require__) {
  10434. "use strict";
  10435. /* WEBPACK VAR INJECTION */(function(process) {/**
  10436. * Copyright 2013-present, Facebook, Inc.
  10437. * All rights reserved.
  10438. *
  10439. * This source code is licensed under the BSD-style license found in the
  10440. * LICENSE file in the root directory of this source tree. An additional grant
  10441. * of patent rights can be found in the PATENTS file in the same directory.
  10442. *
  10443. */
  10444. var ReactElement = __webpack_require__(15);
  10445. /**
  10446. * Create a factory that creates HTML tag elements.
  10447. *
  10448. * @private
  10449. */
  10450. var createDOMFactory = ReactElement.createFactory;
  10451. if (process.env.NODE_ENV !== 'production') {
  10452. var ReactElementValidator = __webpack_require__(54);
  10453. createDOMFactory = ReactElementValidator.createFactory;
  10454. }
  10455. /**
  10456. * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.
  10457. * This is also accessible via `React.DOM`.
  10458. *
  10459. * @public
  10460. */
  10461. var ReactDOMFactories = {
  10462. a: createDOMFactory('a'),
  10463. abbr: createDOMFactory('abbr'),
  10464. address: createDOMFactory('address'),
  10465. area: createDOMFactory('area'),
  10466. article: createDOMFactory('article'),
  10467. aside: createDOMFactory('aside'),
  10468. audio: createDOMFactory('audio'),
  10469. b: createDOMFactory('b'),
  10470. base: createDOMFactory('base'),
  10471. bdi: createDOMFactory('bdi'),
  10472. bdo: createDOMFactory('bdo'),
  10473. big: createDOMFactory('big'),
  10474. blockquote: createDOMFactory('blockquote'),
  10475. body: createDOMFactory('body'),
  10476. br: createDOMFactory('br'),
  10477. button: createDOMFactory('button'),
  10478. canvas: createDOMFactory('canvas'),
  10479. caption: createDOMFactory('caption'),
  10480. cite: createDOMFactory('cite'),
  10481. code: createDOMFactory('code'),
  10482. col: createDOMFactory('col'),
  10483. colgroup: createDOMFactory('colgroup'),
  10484. data: createDOMFactory('data'),
  10485. datalist: createDOMFactory('datalist'),
  10486. dd: createDOMFactory('dd'),
  10487. del: createDOMFactory('del'),
  10488. details: createDOMFactory('details'),
  10489. dfn: createDOMFactory('dfn'),
  10490. dialog: createDOMFactory('dialog'),
  10491. div: createDOMFactory('div'),
  10492. dl: createDOMFactory('dl'),
  10493. dt: createDOMFactory('dt'),
  10494. em: createDOMFactory('em'),
  10495. embed: createDOMFactory('embed'),
  10496. fieldset: createDOMFactory('fieldset'),
  10497. figcaption: createDOMFactory('figcaption'),
  10498. figure: createDOMFactory('figure'),
  10499. footer: createDOMFactory('footer'),
  10500. form: createDOMFactory('form'),
  10501. h1: createDOMFactory('h1'),
  10502. h2: createDOMFactory('h2'),
  10503. h3: createDOMFactory('h3'),
  10504. h4: createDOMFactory('h4'),
  10505. h5: createDOMFactory('h5'),
  10506. h6: createDOMFactory('h6'),
  10507. head: createDOMFactory('head'),
  10508. header: createDOMFactory('header'),
  10509. hgroup: createDOMFactory('hgroup'),
  10510. hr: createDOMFactory('hr'),
  10511. html: createDOMFactory('html'),
  10512. i: createDOMFactory('i'),
  10513. iframe: createDOMFactory('iframe'),
  10514. img: createDOMFactory('img'),
  10515. input: createDOMFactory('input'),
  10516. ins: createDOMFactory('ins'),
  10517. kbd: createDOMFactory('kbd'),
  10518. keygen: createDOMFactory('keygen'),
  10519. label: createDOMFactory('label'),
  10520. legend: createDOMFactory('legend'),
  10521. li: createDOMFactory('li'),
  10522. link: createDOMFactory('link'),
  10523. main: createDOMFactory('main'),
  10524. map: createDOMFactory('map'),
  10525. mark: createDOMFactory('mark'),
  10526. menu: createDOMFactory('menu'),
  10527. menuitem: createDOMFactory('menuitem'),
  10528. meta: createDOMFactory('meta'),
  10529. meter: createDOMFactory('meter'),
  10530. nav: createDOMFactory('nav'),
  10531. noscript: createDOMFactory('noscript'),
  10532. object: createDOMFactory('object'),
  10533. ol: createDOMFactory('ol'),
  10534. optgroup: createDOMFactory('optgroup'),
  10535. option: createDOMFactory('option'),
  10536. output: createDOMFactory('output'),
  10537. p: createDOMFactory('p'),
  10538. param: createDOMFactory('param'),
  10539. picture: createDOMFactory('picture'),
  10540. pre: createDOMFactory('pre'),
  10541. progress: createDOMFactory('progress'),
  10542. q: createDOMFactory('q'),
  10543. rp: createDOMFactory('rp'),
  10544. rt: createDOMFactory('rt'),
  10545. ruby: createDOMFactory('ruby'),
  10546. s: createDOMFactory('s'),
  10547. samp: createDOMFactory('samp'),
  10548. script: createDOMFactory('script'),
  10549. section: createDOMFactory('section'),
  10550. select: createDOMFactory('select'),
  10551. small: createDOMFactory('small'),
  10552. source: createDOMFactory('source'),
  10553. span: createDOMFactory('span'),
  10554. strong: createDOMFactory('strong'),
  10555. style: createDOMFactory('style'),
  10556. sub: createDOMFactory('sub'),
  10557. summary: createDOMFactory('summary'),
  10558. sup: createDOMFactory('sup'),
  10559. table: createDOMFactory('table'),
  10560. tbody: createDOMFactory('tbody'),
  10561. td: createDOMFactory('td'),
  10562. textarea: createDOMFactory('textarea'),
  10563. tfoot: createDOMFactory('tfoot'),
  10564. th: createDOMFactory('th'),
  10565. thead: createDOMFactory('thead'),
  10566. time: createDOMFactory('time'),
  10567. title: createDOMFactory('title'),
  10568. tr: createDOMFactory('tr'),
  10569. track: createDOMFactory('track'),
  10570. u: createDOMFactory('u'),
  10571. ul: createDOMFactory('ul'),
  10572. 'var': createDOMFactory('var'),
  10573. video: createDOMFactory('video'),
  10574. wbr: createDOMFactory('wbr'),
  10575. // SVG
  10576. circle: createDOMFactory('circle'),
  10577. clipPath: createDOMFactory('clipPath'),
  10578. defs: createDOMFactory('defs'),
  10579. ellipse: createDOMFactory('ellipse'),
  10580. g: createDOMFactory('g'),
  10581. image: createDOMFactory('image'),
  10582. line: createDOMFactory('line'),
  10583. linearGradient: createDOMFactory('linearGradient'),
  10584. mask: createDOMFactory('mask'),
  10585. path: createDOMFactory('path'),
  10586. pattern: createDOMFactory('pattern'),
  10587. polygon: createDOMFactory('polygon'),
  10588. polyline: createDOMFactory('polyline'),
  10589. radialGradient: createDOMFactory('radialGradient'),
  10590. rect: createDOMFactory('rect'),
  10591. stop: createDOMFactory('stop'),
  10592. svg: createDOMFactory('svg'),
  10593. text: createDOMFactory('text'),
  10594. tspan: createDOMFactory('tspan')
  10595. };
  10596. module.exports = ReactDOMFactories;
  10597. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10598. /***/ }),
  10599. /* 93 */
  10600. /***/ (function(module, exports, __webpack_require__) {
  10601. "use strict";
  10602. /* WEBPACK VAR INJECTION */(function(process) {/**
  10603. * Copyright 2013-present, Facebook, Inc.
  10604. * All rights reserved.
  10605. *
  10606. * This source code is licensed under the BSD-style license found in the
  10607. * LICENSE file in the root directory of this source tree. An additional grant
  10608. * of patent rights can be found in the PATENTS file in the same directory.
  10609. *
  10610. */
  10611. var _prodInvariant = __webpack_require__(14);
  10612. var ReactPropTypeLocationNames = __webpack_require__(53);
  10613. var ReactPropTypesSecret = __webpack_require__(94);
  10614. var invariant = __webpack_require__(1);
  10615. var warning = __webpack_require__(2);
  10616. var ReactComponentTreeHook;
  10617. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  10618. // Temporary hack.
  10619. // Inline requires don't work well with Jest:
  10620. // https://github.com/facebook/react/issues/7240
  10621. // Remove the inline requires when we don't need them anymore:
  10622. // https://github.com/facebook/react/pull/7178
  10623. ReactComponentTreeHook = __webpack_require__(7);
  10624. }
  10625. var loggedTypeFailures = {};
  10626. /**
  10627. * Assert that the values match with the type specs.
  10628. * Error messages are memorized and will only be shown once.
  10629. *
  10630. * @param {object} typeSpecs Map of name to a ReactPropType
  10631. * @param {object} values Runtime values that need to be type-checked
  10632. * @param {string} location e.g. "prop", "context", "child context"
  10633. * @param {string} componentName Name of the component for error messages.
  10634. * @param {?object} element The React element that is being type-checked
  10635. * @param {?number} debugID The React component instance that is being type-checked
  10636. * @private
  10637. */
  10638. function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
  10639. for (var typeSpecName in typeSpecs) {
  10640. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  10641. var error;
  10642. // Prop type validation may throw. In case they do, we don't want to
  10643. // fail the render phase where it didn't fail before. So we log it.
  10644. // After these have been cleaned up, we'll let them throw.
  10645. try {
  10646. // This is intentionally an invariant that gets caught. It's the same
  10647. // behavior as without this statement except with a better message.
  10648. !(typeof typeSpecs[typeSpecName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
  10649. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  10650. } catch (ex) {
  10651. error = ex;
  10652. }
  10653. process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
  10654. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  10655. // Only monitor this failure once because there tends to be a lot of the
  10656. // same error.
  10657. loggedTypeFailures[error.message] = true;
  10658. var componentStackInfo = '';
  10659. if (process.env.NODE_ENV !== 'production') {
  10660. if (!ReactComponentTreeHook) {
  10661. ReactComponentTreeHook = __webpack_require__(7);
  10662. }
  10663. if (debugID !== null) {
  10664. componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
  10665. } else if (element !== null) {
  10666. componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
  10667. }
  10668. }
  10669. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
  10670. }
  10671. }
  10672. }
  10673. }
  10674. module.exports = checkReactTypeSpec;
  10675. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10676. /***/ }),
  10677. /* 94 */
  10678. /***/ (function(module, exports, __webpack_require__) {
  10679. "use strict";
  10680. /**
  10681. * Copyright 2013-present, Facebook, Inc.
  10682. * All rights reserved.
  10683. *
  10684. * This source code is licensed under the BSD-style license found in the
  10685. * LICENSE file in the root directory of this source tree. An additional grant
  10686. * of patent rights can be found in the PATENTS file in the same directory.
  10687. *
  10688. *
  10689. */
  10690. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  10691. module.exports = ReactPropTypesSecret;
  10692. /***/ }),
  10693. /* 95 */
  10694. /***/ (function(module, exports, __webpack_require__) {
  10695. "use strict";
  10696. /**
  10697. * Copyright 2013-present, Facebook, Inc.
  10698. * All rights reserved.
  10699. *
  10700. * This source code is licensed under the BSD-style license found in the
  10701. * LICENSE file in the root directory of this source tree. An additional grant
  10702. * of patent rights can be found in the PATENTS file in the same directory.
  10703. *
  10704. */
  10705. var _require = __webpack_require__(15),
  10706. isValidElement = _require.isValidElement;
  10707. var factory = __webpack_require__(96);
  10708. module.exports = factory(isValidElement);
  10709. /***/ }),
  10710. /* 96 */
  10711. /***/ (function(module, exports, __webpack_require__) {
  10712. "use strict";
  10713. /**
  10714. * Copyright (c) 2013-present, Facebook, Inc.
  10715. *
  10716. * This source code is licensed under the MIT license found in the
  10717. * LICENSE file in the root directory of this source tree.
  10718. */
  10719. // React 15.5 references this module, and assumes PropTypes are still callable in production.
  10720. // Therefore we re-export development-only version with all the PropTypes checks here.
  10721. // However if one is migrating to the `prop-types` npm library, they will go through the
  10722. // `index.js` entry point, and it will branch depending on the environment.
  10723. var factory = __webpack_require__(97);
  10724. module.exports = function(isValidElement) {
  10725. // It is still allowed in 15.5.
  10726. var throwOnDirectAccess = false;
  10727. return factory(isValidElement, throwOnDirectAccess);
  10728. };
  10729. /***/ }),
  10730. /* 97 */
  10731. /***/ (function(module, exports, __webpack_require__) {
  10732. "use strict";
  10733. /* WEBPACK VAR INJECTION */(function(process) {/**
  10734. * Copyright (c) 2013-present, Facebook, Inc.
  10735. *
  10736. * This source code is licensed under the MIT license found in the
  10737. * LICENSE file in the root directory of this source tree.
  10738. */
  10739. var emptyFunction = __webpack_require__(8);
  10740. var invariant = __webpack_require__(1);
  10741. var warning = __webpack_require__(2);
  10742. var assign = __webpack_require__(4);
  10743. var ReactPropTypesSecret = __webpack_require__(55);
  10744. var checkPropTypes = __webpack_require__(98);
  10745. module.exports = function(isValidElement, throwOnDirectAccess) {
  10746. /* global Symbol */
  10747. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  10748. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  10749. /**
  10750. * Returns the iterator method function contained on the iterable object.
  10751. *
  10752. * Be sure to invoke the function with the iterable as context:
  10753. *
  10754. * var iteratorFn = getIteratorFn(myIterable);
  10755. * if (iteratorFn) {
  10756. * var iterator = iteratorFn.call(myIterable);
  10757. * ...
  10758. * }
  10759. *
  10760. * @param {?object} maybeIterable
  10761. * @return {?function}
  10762. */
  10763. function getIteratorFn(maybeIterable) {
  10764. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  10765. if (typeof iteratorFn === 'function') {
  10766. return iteratorFn;
  10767. }
  10768. }
  10769. /**
  10770. * Collection of methods that allow declaration and validation of props that are
  10771. * supplied to React components. Example usage:
  10772. *
  10773. * var Props = require('ReactPropTypes');
  10774. * var MyArticle = React.createClass({
  10775. * propTypes: {
  10776. * // An optional string prop named "description".
  10777. * description: Props.string,
  10778. *
  10779. * // A required enum prop named "category".
  10780. * category: Props.oneOf(['News','Photos']).isRequired,
  10781. *
  10782. * // A prop named "dialog" that requires an instance of Dialog.
  10783. * dialog: Props.instanceOf(Dialog).isRequired
  10784. * },
  10785. * render: function() { ... }
  10786. * });
  10787. *
  10788. * A more formal specification of how these methods are used:
  10789. *
  10790. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  10791. * decl := ReactPropTypes.{type}(.isRequired)?
  10792. *
  10793. * Each and every declaration produces a function with the same signature. This
  10794. * allows the creation of custom validation functions. For example:
  10795. *
  10796. * var MyLink = React.createClass({
  10797. * propTypes: {
  10798. * // An optional string or URI prop named "href".
  10799. * href: function(props, propName, componentName) {
  10800. * var propValue = props[propName];
  10801. * if (propValue != null && typeof propValue !== 'string' &&
  10802. * !(propValue instanceof URI)) {
  10803. * return new Error(
  10804. * 'Expected a string or an URI for ' + propName + ' in ' +
  10805. * componentName
  10806. * );
  10807. * }
  10808. * }
  10809. * },
  10810. * render: function() {...}
  10811. * });
  10812. *
  10813. * @internal
  10814. */
  10815. var ANONYMOUS = '<<anonymous>>';
  10816. // Important!
  10817. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  10818. var ReactPropTypes = {
  10819. array: createPrimitiveTypeChecker('array'),
  10820. bool: createPrimitiveTypeChecker('boolean'),
  10821. func: createPrimitiveTypeChecker('function'),
  10822. number: createPrimitiveTypeChecker('number'),
  10823. object: createPrimitiveTypeChecker('object'),
  10824. string: createPrimitiveTypeChecker('string'),
  10825. symbol: createPrimitiveTypeChecker('symbol'),
  10826. any: createAnyTypeChecker(),
  10827. arrayOf: createArrayOfTypeChecker,
  10828. element: createElementTypeChecker(),
  10829. instanceOf: createInstanceTypeChecker,
  10830. node: createNodeChecker(),
  10831. objectOf: createObjectOfTypeChecker,
  10832. oneOf: createEnumTypeChecker,
  10833. oneOfType: createUnionTypeChecker,
  10834. shape: createShapeTypeChecker,
  10835. exact: createStrictShapeTypeChecker,
  10836. };
  10837. /**
  10838. * inlined Object.is polyfill to avoid requiring consumers ship their own
  10839. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  10840. */
  10841. /*eslint-disable no-self-compare*/
  10842. function is(x, y) {
  10843. // SameValue algorithm
  10844. if (x === y) {
  10845. // Steps 1-5, 7-10
  10846. // Steps 6.b-6.e: +0 != -0
  10847. return x !== 0 || 1 / x === 1 / y;
  10848. } else {
  10849. // Step 6.a: NaN == NaN
  10850. return x !== x && y !== y;
  10851. }
  10852. }
  10853. /*eslint-enable no-self-compare*/
  10854. /**
  10855. * We use an Error-like object for backward compatibility as people may call
  10856. * PropTypes directly and inspect their output. However, we don't use real
  10857. * Errors anymore. We don't inspect their stack anyway, and creating them
  10858. * is prohibitively expensive if they are created too often, such as what
  10859. * happens in oneOfType() for any type before the one that matched.
  10860. */
  10861. function PropTypeError(message) {
  10862. this.message = message;
  10863. this.stack = '';
  10864. }
  10865. // Make `instanceof Error` still work for returned errors.
  10866. PropTypeError.prototype = Error.prototype;
  10867. function createChainableTypeChecker(validate) {
  10868. if (process.env.NODE_ENV !== 'production') {
  10869. var manualPropTypeCallCache = {};
  10870. var manualPropTypeWarningCount = 0;
  10871. }
  10872. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  10873. componentName = componentName || ANONYMOUS;
  10874. propFullName = propFullName || propName;
  10875. if (secret !== ReactPropTypesSecret) {
  10876. if (throwOnDirectAccess) {
  10877. // New behavior only for users of `prop-types` package
  10878. invariant(
  10879. false,
  10880. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  10881. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  10882. 'Read more at http://fb.me/use-check-prop-types'
  10883. );
  10884. } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
  10885. // Old behavior for people using React.PropTypes
  10886. var cacheKey = componentName + ':' + propName;
  10887. if (
  10888. !manualPropTypeCallCache[cacheKey] &&
  10889. // Avoid spamming the console because they are often not actionable except for lib authors
  10890. manualPropTypeWarningCount < 3
  10891. ) {
  10892. warning(
  10893. false,
  10894. 'You are manually calling a React.PropTypes validation ' +
  10895. 'function for the `%s` prop on `%s`. This is deprecated ' +
  10896. 'and will throw in the standalone `prop-types` package. ' +
  10897. 'You may be seeing this warning due to a third-party PropTypes ' +
  10898. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
  10899. propFullName,
  10900. componentName
  10901. );
  10902. manualPropTypeCallCache[cacheKey] = true;
  10903. manualPropTypeWarningCount++;
  10904. }
  10905. }
  10906. }
  10907. if (props[propName] == null) {
  10908. if (isRequired) {
  10909. if (props[propName] === null) {
  10910. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  10911. }
  10912. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  10913. }
  10914. return null;
  10915. } else {
  10916. return validate(props, propName, componentName, location, propFullName);
  10917. }
  10918. }
  10919. var chainedCheckType = checkType.bind(null, false);
  10920. chainedCheckType.isRequired = checkType.bind(null, true);
  10921. return chainedCheckType;
  10922. }
  10923. function createPrimitiveTypeChecker(expectedType) {
  10924. function validate(props, propName, componentName, location, propFullName, secret) {
  10925. var propValue = props[propName];
  10926. var propType = getPropType(propValue);
  10927. if (propType !== expectedType) {
  10928. // `propValue` being instance of, say, date/regexp, pass the 'object'
  10929. // check, but we can offer a more precise error message here rather than
  10930. // 'of type `object`'.
  10931. var preciseType = getPreciseType(propValue);
  10932. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  10933. }
  10934. return null;
  10935. }
  10936. return createChainableTypeChecker(validate);
  10937. }
  10938. function createAnyTypeChecker() {
  10939. return createChainableTypeChecker(emptyFunction.thatReturnsNull);
  10940. }
  10941. function createArrayOfTypeChecker(typeChecker) {
  10942. function validate(props, propName, componentName, location, propFullName) {
  10943. if (typeof typeChecker !== 'function') {
  10944. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  10945. }
  10946. var propValue = props[propName];
  10947. if (!Array.isArray(propValue)) {
  10948. var propType = getPropType(propValue);
  10949. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  10950. }
  10951. for (var i = 0; i < propValue.length; i++) {
  10952. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  10953. if (error instanceof Error) {
  10954. return error;
  10955. }
  10956. }
  10957. return null;
  10958. }
  10959. return createChainableTypeChecker(validate);
  10960. }
  10961. function createElementTypeChecker() {
  10962. function validate(props, propName, componentName, location, propFullName) {
  10963. var propValue = props[propName];
  10964. if (!isValidElement(propValue)) {
  10965. var propType = getPropType(propValue);
  10966. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  10967. }
  10968. return null;
  10969. }
  10970. return createChainableTypeChecker(validate);
  10971. }
  10972. function createInstanceTypeChecker(expectedClass) {
  10973. function validate(props, propName, componentName, location, propFullName) {
  10974. if (!(props[propName] instanceof expectedClass)) {
  10975. var expectedClassName = expectedClass.name || ANONYMOUS;
  10976. var actualClassName = getClassName(props[propName]);
  10977. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  10978. }
  10979. return null;
  10980. }
  10981. return createChainableTypeChecker(validate);
  10982. }
  10983. function createEnumTypeChecker(expectedValues) {
  10984. if (!Array.isArray(expectedValues)) {
  10985. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
  10986. return emptyFunction.thatReturnsNull;
  10987. }
  10988. function validate(props, propName, componentName, location, propFullName) {
  10989. var propValue = props[propName];
  10990. for (var i = 0; i < expectedValues.length; i++) {
  10991. if (is(propValue, expectedValues[i])) {
  10992. return null;
  10993. }
  10994. }
  10995. var valuesString = JSON.stringify(expectedValues);
  10996. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  10997. }
  10998. return createChainableTypeChecker(validate);
  10999. }
  11000. function createObjectOfTypeChecker(typeChecker) {
  11001. function validate(props, propName, componentName, location, propFullName) {
  11002. if (typeof typeChecker !== 'function') {
  11003. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  11004. }
  11005. var propValue = props[propName];
  11006. var propType = getPropType(propValue);
  11007. if (propType !== 'object') {
  11008. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  11009. }
  11010. for (var key in propValue) {
  11011. if (propValue.hasOwnProperty(key)) {
  11012. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11013. if (error instanceof Error) {
  11014. return error;
  11015. }
  11016. }
  11017. }
  11018. return null;
  11019. }
  11020. return createChainableTypeChecker(validate);
  11021. }
  11022. function createUnionTypeChecker(arrayOfTypeCheckers) {
  11023. if (!Array.isArray(arrayOfTypeCheckers)) {
  11024. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
  11025. return emptyFunction.thatReturnsNull;
  11026. }
  11027. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  11028. var checker = arrayOfTypeCheckers[i];
  11029. if (typeof checker !== 'function') {
  11030. warning(
  11031. false,
  11032. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  11033. 'received %s at index %s.',
  11034. getPostfixForTypeWarning(checker),
  11035. i
  11036. );
  11037. return emptyFunction.thatReturnsNull;
  11038. }
  11039. }
  11040. function validate(props, propName, componentName, location, propFullName) {
  11041. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  11042. var checker = arrayOfTypeCheckers[i];
  11043. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  11044. return null;
  11045. }
  11046. }
  11047. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  11048. }
  11049. return createChainableTypeChecker(validate);
  11050. }
  11051. function createNodeChecker() {
  11052. function validate(props, propName, componentName, location, propFullName) {
  11053. if (!isNode(props[propName])) {
  11054. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  11055. }
  11056. return null;
  11057. }
  11058. return createChainableTypeChecker(validate);
  11059. }
  11060. function createShapeTypeChecker(shapeTypes) {
  11061. function validate(props, propName, componentName, location, propFullName) {
  11062. var propValue = props[propName];
  11063. var propType = getPropType(propValue);
  11064. if (propType !== 'object') {
  11065. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  11066. }
  11067. for (var key in shapeTypes) {
  11068. var checker = shapeTypes[key];
  11069. if (!checker) {
  11070. continue;
  11071. }
  11072. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11073. if (error) {
  11074. return error;
  11075. }
  11076. }
  11077. return null;
  11078. }
  11079. return createChainableTypeChecker(validate);
  11080. }
  11081. function createStrictShapeTypeChecker(shapeTypes) {
  11082. function validate(props, propName, componentName, location, propFullName) {
  11083. var propValue = props[propName];
  11084. var propType = getPropType(propValue);
  11085. if (propType !== 'object') {
  11086. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  11087. }
  11088. // We need to check all keys in case some are required but missing from
  11089. // props.
  11090. var allKeys = assign({}, props[propName], shapeTypes);
  11091. for (var key in allKeys) {
  11092. var checker = shapeTypes[key];
  11093. if (!checker) {
  11094. return new PropTypeError(
  11095. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  11096. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  11097. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  11098. );
  11099. }
  11100. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11101. if (error) {
  11102. return error;
  11103. }
  11104. }
  11105. return null;
  11106. }
  11107. return createChainableTypeChecker(validate);
  11108. }
  11109. function isNode(propValue) {
  11110. switch (typeof propValue) {
  11111. case 'number':
  11112. case 'string':
  11113. case 'undefined':
  11114. return true;
  11115. case 'boolean':
  11116. return !propValue;
  11117. case 'object':
  11118. if (Array.isArray(propValue)) {
  11119. return propValue.every(isNode);
  11120. }
  11121. if (propValue === null || isValidElement(propValue)) {
  11122. return true;
  11123. }
  11124. var iteratorFn = getIteratorFn(propValue);
  11125. if (iteratorFn) {
  11126. var iterator = iteratorFn.call(propValue);
  11127. var step;
  11128. if (iteratorFn !== propValue.entries) {
  11129. while (!(step = iterator.next()).done) {
  11130. if (!isNode(step.value)) {
  11131. return false;
  11132. }
  11133. }
  11134. } else {
  11135. // Iterator will provide entry [k,v] tuples rather than values.
  11136. while (!(step = iterator.next()).done) {
  11137. var entry = step.value;
  11138. if (entry) {
  11139. if (!isNode(entry[1])) {
  11140. return false;
  11141. }
  11142. }
  11143. }
  11144. }
  11145. } else {
  11146. return false;
  11147. }
  11148. return true;
  11149. default:
  11150. return false;
  11151. }
  11152. }
  11153. function isSymbol(propType, propValue) {
  11154. // Native Symbol.
  11155. if (propType === 'symbol') {
  11156. return true;
  11157. }
  11158. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  11159. if (propValue['@@toStringTag'] === 'Symbol') {
  11160. return true;
  11161. }
  11162. // Fallback for non-spec compliant Symbols which are polyfilled.
  11163. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  11164. return true;
  11165. }
  11166. return false;
  11167. }
  11168. // Equivalent of `typeof` but with special handling for array and regexp.
  11169. function getPropType(propValue) {
  11170. var propType = typeof propValue;
  11171. if (Array.isArray(propValue)) {
  11172. return 'array';
  11173. }
  11174. if (propValue instanceof RegExp) {
  11175. // Old webkits (at least until Android 4.0) return 'function' rather than
  11176. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  11177. // passes PropTypes.object.
  11178. return 'object';
  11179. }
  11180. if (isSymbol(propType, propValue)) {
  11181. return 'symbol';
  11182. }
  11183. return propType;
  11184. }
  11185. // This handles more types than `getPropType`. Only used for error messages.
  11186. // See `createPrimitiveTypeChecker`.
  11187. function getPreciseType(propValue) {
  11188. if (typeof propValue === 'undefined' || propValue === null) {
  11189. return '' + propValue;
  11190. }
  11191. var propType = getPropType(propValue);
  11192. if (propType === 'object') {
  11193. if (propValue instanceof Date) {
  11194. return 'date';
  11195. } else if (propValue instanceof RegExp) {
  11196. return 'regexp';
  11197. }
  11198. }
  11199. return propType;
  11200. }
  11201. // Returns a string that is postfixed to a warning about an invalid type.
  11202. // For example, "undefined" or "of type array"
  11203. function getPostfixForTypeWarning(value) {
  11204. var type = getPreciseType(value);
  11205. switch (type) {
  11206. case 'array':
  11207. case 'object':
  11208. return 'an ' + type;
  11209. case 'boolean':
  11210. case 'date':
  11211. case 'regexp':
  11212. return 'a ' + type;
  11213. default:
  11214. return type;
  11215. }
  11216. }
  11217. // Returns class name of the object, if any.
  11218. function getClassName(propValue) {
  11219. if (!propValue.constructor || !propValue.constructor.name) {
  11220. return ANONYMOUS;
  11221. }
  11222. return propValue.constructor.name;
  11223. }
  11224. ReactPropTypes.checkPropTypes = checkPropTypes;
  11225. ReactPropTypes.PropTypes = ReactPropTypes;
  11226. return ReactPropTypes;
  11227. };
  11228. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11229. /***/ }),
  11230. /* 98 */
  11231. /***/ (function(module, exports, __webpack_require__) {
  11232. "use strict";
  11233. /* WEBPACK VAR INJECTION */(function(process) {/**
  11234. * Copyright (c) 2013-present, Facebook, Inc.
  11235. *
  11236. * This source code is licensed under the MIT license found in the
  11237. * LICENSE file in the root directory of this source tree.
  11238. */
  11239. if (process.env.NODE_ENV !== 'production') {
  11240. var invariant = __webpack_require__(1);
  11241. var warning = __webpack_require__(2);
  11242. var ReactPropTypesSecret = __webpack_require__(55);
  11243. var loggedTypeFailures = {};
  11244. }
  11245. /**
  11246. * Assert that the values match with the type specs.
  11247. * Error messages are memorized and will only be shown once.
  11248. *
  11249. * @param {object} typeSpecs Map of name to a ReactPropType
  11250. * @param {object} values Runtime values that need to be type-checked
  11251. * @param {string} location e.g. "prop", "context", "child context"
  11252. * @param {string} componentName Name of the component for error messages.
  11253. * @param {?Function} getStack Returns the component stack.
  11254. * @private
  11255. */
  11256. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  11257. if (process.env.NODE_ENV !== 'production') {
  11258. for (var typeSpecName in typeSpecs) {
  11259. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  11260. var error;
  11261. // Prop type validation may throw. In case they do, we don't want to
  11262. // fail the render phase where it didn't fail before. So we log it.
  11263. // After these have been cleaned up, we'll let them throw.
  11264. try {
  11265. // This is intentionally an invariant that gets caught. It's the same
  11266. // behavior as without this statement except with a better message.
  11267. invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);
  11268. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  11269. } catch (ex) {
  11270. error = ex;
  11271. }
  11272. warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
  11273. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  11274. // Only monitor this failure once because there tends to be a lot of the
  11275. // same error.
  11276. loggedTypeFailures[error.message] = true;
  11277. var stack = getStack ? getStack() : '';
  11278. warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
  11279. }
  11280. }
  11281. }
  11282. }
  11283. }
  11284. module.exports = checkPropTypes;
  11285. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11286. /***/ }),
  11287. /* 99 */
  11288. /***/ (function(module, exports, __webpack_require__) {
  11289. "use strict";
  11290. /**
  11291. * Copyright 2013-present, Facebook, Inc.
  11292. * All rights reserved.
  11293. *
  11294. * This source code is licensed under the BSD-style license found in the
  11295. * LICENSE file in the root directory of this source tree. An additional grant
  11296. * of patent rights can be found in the PATENTS file in the same directory.
  11297. *
  11298. */
  11299. module.exports = '15.5.4';
  11300. /***/ }),
  11301. /* 100 */
  11302. /***/ (function(module, exports, __webpack_require__) {
  11303. "use strict";
  11304. /* WEBPACK VAR INJECTION */(function(process) {/**
  11305. * Copyright 2013-present, Facebook, Inc.
  11306. * All rights reserved.
  11307. *
  11308. * This source code is licensed under the BSD-style license found in the
  11309. * LICENSE file in the root directory of this source tree. An additional grant
  11310. * of patent rights can be found in the PATENTS file in the same directory.
  11311. *
  11312. */
  11313. var _prodInvariant = __webpack_require__(14);
  11314. var ReactElement = __webpack_require__(15);
  11315. var invariant = __webpack_require__(1);
  11316. /**
  11317. * Returns the first child in a collection of children and verifies that there
  11318. * is only one child in the collection.
  11319. *
  11320. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only
  11321. *
  11322. * The current implementation of this function assumes that a single child gets
  11323. * passed without a wrapper, but the purpose of this helper function is to
  11324. * abstract away the particular structure of children.
  11325. *
  11326. * @param {?object} children Child collection structure.
  11327. * @return {ReactElement} The first and only `ReactElement` contained in the
  11328. * structure.
  11329. */
  11330. function onlyChild(children) {
  11331. !ReactElement.isValidElement(children) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;
  11332. return children;
  11333. }
  11334. module.exports = onlyChild;
  11335. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11336. /***/ }),
  11337. /* 101 */
  11338. /***/ (function(module, exports, __webpack_require__) {
  11339. "use strict";
  11340. module.exports = __webpack_require__(102);
  11341. /***/ }),
  11342. /* 102 */
  11343. /***/ (function(module, exports, __webpack_require__) {
  11344. "use strict";
  11345. /* WEBPACK VAR INJECTION */(function(process) {/**
  11346. * Copyright 2013-present, Facebook, Inc.
  11347. * All rights reserved.
  11348. *
  11349. * This source code is licensed under the BSD-style license found in the
  11350. * LICENSE file in the root directory of this source tree. An additional grant
  11351. * of patent rights can be found in the PATENTS file in the same directory.
  11352. *
  11353. */
  11354. /* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/
  11355. var ReactDOMComponentTree = __webpack_require__(5);
  11356. var ReactDefaultInjection = __webpack_require__(103);
  11357. var ReactMount = __webpack_require__(79);
  11358. var ReactReconciler = __webpack_require__(18);
  11359. var ReactUpdates = __webpack_require__(11);
  11360. var ReactVersion = __webpack_require__(184);
  11361. var findDOMNode = __webpack_require__(185);
  11362. var getHostComponentFromComposite = __webpack_require__(80);
  11363. var renderSubtreeIntoContainer = __webpack_require__(186);
  11364. var warning = __webpack_require__(2);
  11365. ReactDefaultInjection.inject();
  11366. var ReactDOM = {
  11367. findDOMNode: findDOMNode,
  11368. render: ReactMount.render,
  11369. unmountComponentAtNode: ReactMount.unmountComponentAtNode,
  11370. version: ReactVersion,
  11371. /* eslint-disable camelcase */
  11372. unstable_batchedUpdates: ReactUpdates.batchedUpdates,
  11373. unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
  11374. };
  11375. // Inject the runtime into a devtools global hook regardless of browser.
  11376. // Allows for debugging when the hook is injected on the page.
  11377. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') {
  11378. __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
  11379. ComponentTree: {
  11380. getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,
  11381. getNodeFromInstance: function (inst) {
  11382. // inst is an internal instance (but could be a composite)
  11383. if (inst._renderedComponent) {
  11384. inst = getHostComponentFromComposite(inst);
  11385. }
  11386. if (inst) {
  11387. return ReactDOMComponentTree.getNodeFromInstance(inst);
  11388. } else {
  11389. return null;
  11390. }
  11391. }
  11392. },
  11393. Mount: ReactMount,
  11394. Reconciler: ReactReconciler
  11395. });
  11396. }
  11397. if (process.env.NODE_ENV !== 'production') {
  11398. var ExecutionEnvironment = __webpack_require__(6);
  11399. if (ExecutionEnvironment.canUseDOM && window.top === window.self) {
  11400. // First check if devtools is not installed
  11401. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  11402. // If we're in Chrome or Firefox, provide a download link if not installed.
  11403. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  11404. // Firefox does not have the issue with devtools loaded over file://
  11405. var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 && navigator.userAgent.indexOf('Firefox') === -1;
  11406. console.debug('Download the React DevTools ' + (showFileUrlMessage ? 'and use an HTTP server (instead of a file: URL) ' : '') + 'for a better development experience: ' + 'https://fb.me/react-devtools');
  11407. }
  11408. }
  11409. var testFunc = function testFn() {};
  11410. process.env.NODE_ENV !== 'production' ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, 'It looks like you\'re using a minified copy of the development build ' + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0;
  11411. // If we're in IE8, check to see if we are in compatibility mode and provide
  11412. // information on preventing compatibility mode
  11413. var ieCompatibilityMode = document.documentMode && document.documentMode < 8;
  11414. process.env.NODE_ENV !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '<meta http-equiv="X-UA-Compatible" content="IE=edge" />') : void 0;
  11415. var expectedFeatures = [
  11416. // shims
  11417. Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim];
  11418. for (var i = 0; i < expectedFeatures.length; i++) {
  11419. if (!expectedFeatures[i]) {
  11420. process.env.NODE_ENV !== 'production' ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0;
  11421. break;
  11422. }
  11423. }
  11424. }
  11425. }
  11426. if (process.env.NODE_ENV !== 'production') {
  11427. var ReactInstrumentation = __webpack_require__(9);
  11428. var ReactDOMUnknownPropertyHook = __webpack_require__(187);
  11429. var ReactDOMNullInputValuePropHook = __webpack_require__(188);
  11430. var ReactDOMInvalidARIAHook = __webpack_require__(189);
  11431. ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook);
  11432. ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook);
  11433. ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook);
  11434. }
  11435. module.exports = ReactDOM;
  11436. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11437. /***/ }),
  11438. /* 103 */
  11439. /***/ (function(module, exports, __webpack_require__) {
  11440. "use strict";
  11441. /**
  11442. * Copyright 2013-present, Facebook, Inc.
  11443. * All rights reserved.
  11444. *
  11445. * This source code is licensed under the BSD-style license found in the
  11446. * LICENSE file in the root directory of this source tree. An additional grant
  11447. * of patent rights can be found in the PATENTS file in the same directory.
  11448. *
  11449. */
  11450. var ARIADOMPropertyConfig = __webpack_require__(104);
  11451. var BeforeInputEventPlugin = __webpack_require__(105);
  11452. var ChangeEventPlugin = __webpack_require__(109);
  11453. var DefaultEventPluginOrder = __webpack_require__(117);
  11454. var EnterLeaveEventPlugin = __webpack_require__(118);
  11455. var HTMLDOMPropertyConfig = __webpack_require__(119);
  11456. var ReactComponentBrowserEnvironment = __webpack_require__(120);
  11457. var ReactDOMComponent = __webpack_require__(126);
  11458. var ReactDOMComponentTree = __webpack_require__(5);
  11459. var ReactDOMEmptyComponent = __webpack_require__(155);
  11460. var ReactDOMTreeTraversal = __webpack_require__(156);
  11461. var ReactDOMTextComponent = __webpack_require__(157);
  11462. var ReactDefaultBatchingStrategy = __webpack_require__(158);
  11463. var ReactEventListener = __webpack_require__(159);
  11464. var ReactInjection = __webpack_require__(161);
  11465. var ReactReconcileTransaction = __webpack_require__(162);
  11466. var SVGDOMPropertyConfig = __webpack_require__(168);
  11467. var SelectEventPlugin = __webpack_require__(169);
  11468. var SimpleEventPlugin = __webpack_require__(170);
  11469. var alreadyInjected = false;
  11470. function inject() {
  11471. if (alreadyInjected) {
  11472. // TODO: This is currently true because these injections are shared between
  11473. // the client and the server package. They should be built independently
  11474. // and not share any injection state. Then this problem will be solved.
  11475. return;
  11476. }
  11477. alreadyInjected = true;
  11478. ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener);
  11479. /**
  11480. * Inject modules for resolving DOM hierarchy and plugin ordering.
  11481. */
  11482. ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder);
  11483. ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree);
  11484. ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal);
  11485. /**
  11486. * Some important event plugins included by default (without having to require
  11487. * them).
  11488. */
  11489. ReactInjection.EventPluginHub.injectEventPluginsByName({
  11490. SimpleEventPlugin: SimpleEventPlugin,
  11491. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  11492. ChangeEventPlugin: ChangeEventPlugin,
  11493. SelectEventPlugin: SelectEventPlugin,
  11494. BeforeInputEventPlugin: BeforeInputEventPlugin
  11495. });
  11496. ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent);
  11497. ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent);
  11498. ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig);
  11499. ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig);
  11500. ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig);
  11501. ReactInjection.EmptyComponent.injectEmptyComponentFactory(function (instantiate) {
  11502. return new ReactDOMEmptyComponent(instantiate);
  11503. });
  11504. ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction);
  11505. ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy);
  11506. ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment);
  11507. }
  11508. module.exports = {
  11509. inject: inject
  11510. };
  11511. /***/ }),
  11512. /* 104 */
  11513. /***/ (function(module, exports, __webpack_require__) {
  11514. "use strict";
  11515. /**
  11516. * Copyright 2013-present, Facebook, Inc.
  11517. * All rights reserved.
  11518. *
  11519. * This source code is licensed under the BSD-style license found in the
  11520. * LICENSE file in the root directory of this source tree. An additional grant
  11521. * of patent rights can be found in the PATENTS file in the same directory.
  11522. *
  11523. */
  11524. var ARIADOMPropertyConfig = {
  11525. Properties: {
  11526. // Global States and Properties
  11527. 'aria-current': 0, // state
  11528. 'aria-details': 0,
  11529. 'aria-disabled': 0, // state
  11530. 'aria-hidden': 0, // state
  11531. 'aria-invalid': 0, // state
  11532. 'aria-keyshortcuts': 0,
  11533. 'aria-label': 0,
  11534. 'aria-roledescription': 0,
  11535. // Widget Attributes
  11536. 'aria-autocomplete': 0,
  11537. 'aria-checked': 0,
  11538. 'aria-expanded': 0,
  11539. 'aria-haspopup': 0,
  11540. 'aria-level': 0,
  11541. 'aria-modal': 0,
  11542. 'aria-multiline': 0,
  11543. 'aria-multiselectable': 0,
  11544. 'aria-orientation': 0,
  11545. 'aria-placeholder': 0,
  11546. 'aria-pressed': 0,
  11547. 'aria-readonly': 0,
  11548. 'aria-required': 0,
  11549. 'aria-selected': 0,
  11550. 'aria-sort': 0,
  11551. 'aria-valuemax': 0,
  11552. 'aria-valuemin': 0,
  11553. 'aria-valuenow': 0,
  11554. 'aria-valuetext': 0,
  11555. // Live Region Attributes
  11556. 'aria-atomic': 0,
  11557. 'aria-busy': 0,
  11558. 'aria-live': 0,
  11559. 'aria-relevant': 0,
  11560. // Drag-and-Drop Attributes
  11561. 'aria-dropeffect': 0,
  11562. 'aria-grabbed': 0,
  11563. // Relationship Attributes
  11564. 'aria-activedescendant': 0,
  11565. 'aria-colcount': 0,
  11566. 'aria-colindex': 0,
  11567. 'aria-colspan': 0,
  11568. 'aria-controls': 0,
  11569. 'aria-describedby': 0,
  11570. 'aria-errormessage': 0,
  11571. 'aria-flowto': 0,
  11572. 'aria-labelledby': 0,
  11573. 'aria-owns': 0,
  11574. 'aria-posinset': 0,
  11575. 'aria-rowcount': 0,
  11576. 'aria-rowindex': 0,
  11577. 'aria-rowspan': 0,
  11578. 'aria-setsize': 0
  11579. },
  11580. DOMAttributeNames: {},
  11581. DOMPropertyNames: {}
  11582. };
  11583. module.exports = ARIADOMPropertyConfig;
  11584. /***/ }),
  11585. /* 105 */
  11586. /***/ (function(module, exports, __webpack_require__) {
  11587. "use strict";
  11588. /**
  11589. * Copyright 2013-present Facebook, Inc.
  11590. * All rights reserved.
  11591. *
  11592. * This source code is licensed under the BSD-style license found in the
  11593. * LICENSE file in the root directory of this source tree. An additional grant
  11594. * of patent rights can be found in the PATENTS file in the same directory.
  11595. *
  11596. */
  11597. var EventPropagators = __webpack_require__(21);
  11598. var ExecutionEnvironment = __webpack_require__(6);
  11599. var FallbackCompositionState = __webpack_require__(106);
  11600. var SyntheticCompositionEvent = __webpack_require__(107);
  11601. var SyntheticInputEvent = __webpack_require__(108);
  11602. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  11603. var START_KEYCODE = 229;
  11604. var canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window;
  11605. var documentMode = null;
  11606. if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {
  11607. documentMode = document.documentMode;
  11608. }
  11609. // Webkit offers a very useful `textInput` event that can be used to
  11610. // directly represent `beforeInput`. The IE `textinput` event is not as
  11611. // useful, so we don't use it.
  11612. var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto();
  11613. // In IE9+, we have access to composition events, but the data supplied
  11614. // by the native compositionend event may be incorrect. Japanese ideographic
  11615. // spaces, for instance (\u3000) are not recorded correctly.
  11616. var useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  11617. /**
  11618. * Opera <= 12 includes TextEvent in window, but does not fire
  11619. * text input events. Rely on keypress instead.
  11620. */
  11621. function isPresto() {
  11622. var opera = window.opera;
  11623. return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;
  11624. }
  11625. var SPACEBAR_CODE = 32;
  11626. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  11627. // Events and their corresponding property names.
  11628. var eventTypes = {
  11629. beforeInput: {
  11630. phasedRegistrationNames: {
  11631. bubbled: 'onBeforeInput',
  11632. captured: 'onBeforeInputCapture'
  11633. },
  11634. dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste']
  11635. },
  11636. compositionEnd: {
  11637. phasedRegistrationNames: {
  11638. bubbled: 'onCompositionEnd',
  11639. captured: 'onCompositionEndCapture'
  11640. },
  11641. dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11642. },
  11643. compositionStart: {
  11644. phasedRegistrationNames: {
  11645. bubbled: 'onCompositionStart',
  11646. captured: 'onCompositionStartCapture'
  11647. },
  11648. dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11649. },
  11650. compositionUpdate: {
  11651. phasedRegistrationNames: {
  11652. bubbled: 'onCompositionUpdate',
  11653. captured: 'onCompositionUpdateCapture'
  11654. },
  11655. dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11656. }
  11657. };
  11658. // Track whether we've ever handled a keypress on the space key.
  11659. var hasSpaceKeypress = false;
  11660. /**
  11661. * Return whether a native keypress event is assumed to be a command.
  11662. * This is required because Firefox fires `keypress` events for key commands
  11663. * (cut, copy, select-all, etc.) even though no character is inserted.
  11664. */
  11665. function isKeypressCommand(nativeEvent) {
  11666. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  11667. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  11668. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  11669. }
  11670. /**
  11671. * Translate native top level events into event types.
  11672. *
  11673. * @param {string} topLevelType
  11674. * @return {object}
  11675. */
  11676. function getCompositionEventType(topLevelType) {
  11677. switch (topLevelType) {
  11678. case 'topCompositionStart':
  11679. return eventTypes.compositionStart;
  11680. case 'topCompositionEnd':
  11681. return eventTypes.compositionEnd;
  11682. case 'topCompositionUpdate':
  11683. return eventTypes.compositionUpdate;
  11684. }
  11685. }
  11686. /**
  11687. * Does our fallback best-guess model think this event signifies that
  11688. * composition has begun?
  11689. *
  11690. * @param {string} topLevelType
  11691. * @param {object} nativeEvent
  11692. * @return {boolean}
  11693. */
  11694. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  11695. return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE;
  11696. }
  11697. /**
  11698. * Does our fallback mode think that this event is the end of composition?
  11699. *
  11700. * @param {string} topLevelType
  11701. * @param {object} nativeEvent
  11702. * @return {boolean}
  11703. */
  11704. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  11705. switch (topLevelType) {
  11706. case 'topKeyUp':
  11707. // Command keys insert or clear IME input.
  11708. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  11709. case 'topKeyDown':
  11710. // Expect IME keyCode on each keydown. If we get any other
  11711. // code we must have exited earlier.
  11712. return nativeEvent.keyCode !== START_KEYCODE;
  11713. case 'topKeyPress':
  11714. case 'topMouseDown':
  11715. case 'topBlur':
  11716. // Events are not possible without cancelling IME.
  11717. return true;
  11718. default:
  11719. return false;
  11720. }
  11721. }
  11722. /**
  11723. * Google Input Tools provides composition data via a CustomEvent,
  11724. * with the `data` property populated in the `detail` object. If this
  11725. * is available on the event object, use it. If not, this is a plain
  11726. * composition event and we have nothing special to extract.
  11727. *
  11728. * @param {object} nativeEvent
  11729. * @return {?string}
  11730. */
  11731. function getDataFromCustomEvent(nativeEvent) {
  11732. var detail = nativeEvent.detail;
  11733. if (typeof detail === 'object' && 'data' in detail) {
  11734. return detail.data;
  11735. }
  11736. return null;
  11737. }
  11738. // Track the current IME composition fallback object, if any.
  11739. var currentComposition = null;
  11740. /**
  11741. * @return {?object} A SyntheticCompositionEvent.
  11742. */
  11743. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11744. var eventType;
  11745. var fallbackData;
  11746. if (canUseCompositionEvent) {
  11747. eventType = getCompositionEventType(topLevelType);
  11748. } else if (!currentComposition) {
  11749. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  11750. eventType = eventTypes.compositionStart;
  11751. }
  11752. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  11753. eventType = eventTypes.compositionEnd;
  11754. }
  11755. if (!eventType) {
  11756. return null;
  11757. }
  11758. if (useFallbackCompositionData) {
  11759. // The current composition is stored statically and must not be
  11760. // overwritten while composition continues.
  11761. if (!currentComposition && eventType === eventTypes.compositionStart) {
  11762. currentComposition = FallbackCompositionState.getPooled(nativeEventTarget);
  11763. } else if (eventType === eventTypes.compositionEnd) {
  11764. if (currentComposition) {
  11765. fallbackData = currentComposition.getData();
  11766. }
  11767. }
  11768. }
  11769. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  11770. if (fallbackData) {
  11771. // Inject data generated from fallback path into the synthetic event.
  11772. // This matches the property of native CompositionEventInterface.
  11773. event.data = fallbackData;
  11774. } else {
  11775. var customData = getDataFromCustomEvent(nativeEvent);
  11776. if (customData !== null) {
  11777. event.data = customData;
  11778. }
  11779. }
  11780. EventPropagators.accumulateTwoPhaseDispatches(event);
  11781. return event;
  11782. }
  11783. /**
  11784. * @param {string} topLevelType Record from `EventConstants`.
  11785. * @param {object} nativeEvent Native browser event.
  11786. * @return {?string} The string corresponding to this `beforeInput` event.
  11787. */
  11788. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  11789. switch (topLevelType) {
  11790. case 'topCompositionEnd':
  11791. return getDataFromCustomEvent(nativeEvent);
  11792. case 'topKeyPress':
  11793. /**
  11794. * If native `textInput` events are available, our goal is to make
  11795. * use of them. However, there is a special case: the spacebar key.
  11796. * In Webkit, preventing default on a spacebar `textInput` event
  11797. * cancels character insertion, but it *also* causes the browser
  11798. * to fall back to its default spacebar behavior of scrolling the
  11799. * page.
  11800. *
  11801. * Tracking at:
  11802. * https://code.google.com/p/chromium/issues/detail?id=355103
  11803. *
  11804. * To avoid this issue, use the keypress event as if no `textInput`
  11805. * event is available.
  11806. */
  11807. var which = nativeEvent.which;
  11808. if (which !== SPACEBAR_CODE) {
  11809. return null;
  11810. }
  11811. hasSpaceKeypress = true;
  11812. return SPACEBAR_CHAR;
  11813. case 'topTextInput':
  11814. // Record the characters to be added to the DOM.
  11815. var chars = nativeEvent.data;
  11816. // If it's a spacebar character, assume that we have already handled
  11817. // it at the keypress level and bail immediately. Android Chrome
  11818. // doesn't give us keycodes, so we need to blacklist it.
  11819. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  11820. return null;
  11821. }
  11822. return chars;
  11823. default:
  11824. // For other native event types, do nothing.
  11825. return null;
  11826. }
  11827. }
  11828. /**
  11829. * For browsers that do not provide the `textInput` event, extract the
  11830. * appropriate string to use for SyntheticInputEvent.
  11831. *
  11832. * @param {string} topLevelType Record from `EventConstants`.
  11833. * @param {object} nativeEvent Native browser event.
  11834. * @return {?string} The fallback string for this `beforeInput` event.
  11835. */
  11836. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  11837. // If we are currently composing (IME) and using a fallback to do so,
  11838. // try to extract the composed characters from the fallback object.
  11839. // If composition event is available, we extract a string only at
  11840. // compositionevent, otherwise extract it at fallback events.
  11841. if (currentComposition) {
  11842. if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  11843. var chars = currentComposition.getData();
  11844. FallbackCompositionState.release(currentComposition);
  11845. currentComposition = null;
  11846. return chars;
  11847. }
  11848. return null;
  11849. }
  11850. switch (topLevelType) {
  11851. case 'topPaste':
  11852. // If a paste event occurs after a keypress, throw out the input
  11853. // chars. Paste events should not lead to BeforeInput events.
  11854. return null;
  11855. case 'topKeyPress':
  11856. /**
  11857. * As of v27, Firefox may fire keypress events even when no character
  11858. * will be inserted. A few possibilities:
  11859. *
  11860. * - `which` is `0`. Arrow keys, Esc key, etc.
  11861. *
  11862. * - `which` is the pressed key code, but no char is available.
  11863. * Ex: 'AltGr + d` in Polish. There is no modified character for
  11864. * this key combination and no character is inserted into the
  11865. * document, but FF fires the keypress for char code `100` anyway.
  11866. * No `input` event will occur.
  11867. *
  11868. * - `which` is the pressed key code, but a command combination is
  11869. * being used. Ex: `Cmd+C`. No character is inserted, and no
  11870. * `input` event will occur.
  11871. */
  11872. if (nativeEvent.which && !isKeypressCommand(nativeEvent)) {
  11873. return String.fromCharCode(nativeEvent.which);
  11874. }
  11875. return null;
  11876. case 'topCompositionEnd':
  11877. return useFallbackCompositionData ? null : nativeEvent.data;
  11878. default:
  11879. return null;
  11880. }
  11881. }
  11882. /**
  11883. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  11884. * `textInput` or fallback behavior.
  11885. *
  11886. * @return {?object} A SyntheticInputEvent.
  11887. */
  11888. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11889. var chars;
  11890. if (canUseTextInputEvent) {
  11891. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  11892. } else {
  11893. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  11894. }
  11895. // If no characters are being inserted, no BeforeInput event should
  11896. // be fired.
  11897. if (!chars) {
  11898. return null;
  11899. }
  11900. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  11901. event.data = chars;
  11902. EventPropagators.accumulateTwoPhaseDispatches(event);
  11903. return event;
  11904. }
  11905. /**
  11906. * Create an `onBeforeInput` event to match
  11907. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  11908. *
  11909. * This event plugin is based on the native `textInput` event
  11910. * available in Chrome, Safari, Opera, and IE. This event fires after
  11911. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  11912. *
  11913. * `beforeInput` is spec'd but not implemented in any browsers, and
  11914. * the `input` event does not provide any useful information about what has
  11915. * actually been added, contrary to the spec. Thus, `textInput` is the best
  11916. * available event to identify the characters that have actually been inserted
  11917. * into the target node.
  11918. *
  11919. * This plugin is also responsible for emitting `composition` events, thus
  11920. * allowing us to share composition fallback code for both `beforeInput` and
  11921. * `composition` event types.
  11922. */
  11923. var BeforeInputEventPlugin = {
  11924. eventTypes: eventTypes,
  11925. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11926. return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)];
  11927. }
  11928. };
  11929. module.exports = BeforeInputEventPlugin;
  11930. /***/ }),
  11931. /* 106 */
  11932. /***/ (function(module, exports, __webpack_require__) {
  11933. "use strict";
  11934. /**
  11935. * Copyright 2013-present, Facebook, Inc.
  11936. * All rights reserved.
  11937. *
  11938. * This source code is licensed under the BSD-style license found in the
  11939. * LICENSE file in the root directory of this source tree. An additional grant
  11940. * of patent rights can be found in the PATENTS file in the same directory.
  11941. *
  11942. */
  11943. var _assign = __webpack_require__(4);
  11944. var PooledClass = __webpack_require__(16);
  11945. var getTextContentAccessor = __webpack_require__(59);
  11946. /**
  11947. * This helper class stores information about text content of a target node,
  11948. * allowing comparison of content before and after a given event.
  11949. *
  11950. * Identify the node where selection currently begins, then observe
  11951. * both its text content and its current position in the DOM. Since the
  11952. * browser may natively replace the target node during composition, we can
  11953. * use its position to find its replacement.
  11954. *
  11955. * @param {DOMEventTarget} root
  11956. */
  11957. function FallbackCompositionState(root) {
  11958. this._root = root;
  11959. this._startText = this.getText();
  11960. this._fallbackText = null;
  11961. }
  11962. _assign(FallbackCompositionState.prototype, {
  11963. destructor: function () {
  11964. this._root = null;
  11965. this._startText = null;
  11966. this._fallbackText = null;
  11967. },
  11968. /**
  11969. * Get current text of input.
  11970. *
  11971. * @return {string}
  11972. */
  11973. getText: function () {
  11974. if ('value' in this._root) {
  11975. return this._root.value;
  11976. }
  11977. return this._root[getTextContentAccessor()];
  11978. },
  11979. /**
  11980. * Determine the differing substring between the initially stored
  11981. * text content and the current content.
  11982. *
  11983. * @return {string}
  11984. */
  11985. getData: function () {
  11986. if (this._fallbackText) {
  11987. return this._fallbackText;
  11988. }
  11989. var start;
  11990. var startValue = this._startText;
  11991. var startLength = startValue.length;
  11992. var end;
  11993. var endValue = this.getText();
  11994. var endLength = endValue.length;
  11995. for (start = 0; start < startLength; start++) {
  11996. if (startValue[start] !== endValue[start]) {
  11997. break;
  11998. }
  11999. }
  12000. var minEnd = startLength - start;
  12001. for (end = 1; end <= minEnd; end++) {
  12002. if (startValue[startLength - end] !== endValue[endLength - end]) {
  12003. break;
  12004. }
  12005. }
  12006. var sliceTail = end > 1 ? 1 - end : undefined;
  12007. this._fallbackText = endValue.slice(start, sliceTail);
  12008. return this._fallbackText;
  12009. }
  12010. });
  12011. PooledClass.addPoolingTo(FallbackCompositionState);
  12012. module.exports = FallbackCompositionState;
  12013. /***/ }),
  12014. /* 107 */
  12015. /***/ (function(module, exports, __webpack_require__) {
  12016. "use strict";
  12017. /**
  12018. * Copyright 2013-present, Facebook, Inc.
  12019. * All rights reserved.
  12020. *
  12021. * This source code is licensed under the BSD-style license found in the
  12022. * LICENSE file in the root directory of this source tree. An additional grant
  12023. * of patent rights can be found in the PATENTS file in the same directory.
  12024. *
  12025. */
  12026. var SyntheticEvent = __webpack_require__(12);
  12027. /**
  12028. * @interface Event
  12029. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  12030. */
  12031. var CompositionEventInterface = {
  12032. data: null
  12033. };
  12034. /**
  12035. * @param {object} dispatchConfig Configuration used to dispatch this event.
  12036. * @param {string} dispatchMarker Marker identifying the event target.
  12037. * @param {object} nativeEvent Native browser event.
  12038. * @extends {SyntheticUIEvent}
  12039. */
  12040. function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  12041. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  12042. }
  12043. SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
  12044. module.exports = SyntheticCompositionEvent;
  12045. /***/ }),
  12046. /* 108 */
  12047. /***/ (function(module, exports, __webpack_require__) {
  12048. "use strict";
  12049. /**
  12050. * Copyright 2013-present, Facebook, Inc.
  12051. * All rights reserved.
  12052. *
  12053. * This source code is licensed under the BSD-style license found in the
  12054. * LICENSE file in the root directory of this source tree. An additional grant
  12055. * of patent rights can be found in the PATENTS file in the same directory.
  12056. *
  12057. */
  12058. var SyntheticEvent = __webpack_require__(12);
  12059. /**
  12060. * @interface Event
  12061. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  12062. * /#events-inputevents
  12063. */
  12064. var InputEventInterface = {
  12065. data: null
  12066. };
  12067. /**
  12068. * @param {object} dispatchConfig Configuration used to dispatch this event.
  12069. * @param {string} dispatchMarker Marker identifying the event target.
  12070. * @param {object} nativeEvent Native browser event.
  12071. * @extends {SyntheticUIEvent}
  12072. */
  12073. function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  12074. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  12075. }
  12076. SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);
  12077. module.exports = SyntheticInputEvent;
  12078. /***/ }),
  12079. /* 109 */
  12080. /***/ (function(module, exports, __webpack_require__) {
  12081. "use strict";
  12082. /**
  12083. * Copyright 2013-present, Facebook, Inc.
  12084. * All rights reserved.
  12085. *
  12086. * This source code is licensed under the BSD-style license found in the
  12087. * LICENSE file in the root directory of this source tree. An additional grant
  12088. * of patent rights can be found in the PATENTS file in the same directory.
  12089. *
  12090. */
  12091. var EventPluginHub = __webpack_require__(22);
  12092. var EventPropagators = __webpack_require__(21);
  12093. var ExecutionEnvironment = __webpack_require__(6);
  12094. var ReactDOMComponentTree = __webpack_require__(5);
  12095. var ReactUpdates = __webpack_require__(11);
  12096. var SyntheticEvent = __webpack_require__(12);
  12097. var getEventTarget = __webpack_require__(37);
  12098. var isEventSupported = __webpack_require__(38);
  12099. var isTextInputElement = __webpack_require__(62);
  12100. var eventTypes = {
  12101. change: {
  12102. phasedRegistrationNames: {
  12103. bubbled: 'onChange',
  12104. captured: 'onChangeCapture'
  12105. },
  12106. dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange']
  12107. }
  12108. };
  12109. /**
  12110. * For IE shims
  12111. */
  12112. var activeElement = null;
  12113. var activeElementInst = null;
  12114. var activeElementValue = null;
  12115. var activeElementValueProp = null;
  12116. /**
  12117. * SECTION: handle `change` event
  12118. */
  12119. function shouldUseChangeEvent(elem) {
  12120. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  12121. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  12122. }
  12123. var doesChangeEventBubble = false;
  12124. if (ExecutionEnvironment.canUseDOM) {
  12125. // See `handleChange` comment below
  12126. doesChangeEventBubble = isEventSupported('change') && (!document.documentMode || document.documentMode > 8);
  12127. }
  12128. function manualDispatchChangeEvent(nativeEvent) {
  12129. var event = SyntheticEvent.getPooled(eventTypes.change, activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  12130. EventPropagators.accumulateTwoPhaseDispatches(event);
  12131. // If change and propertychange bubbled, we'd just bind to it like all the
  12132. // other events and have it go through ReactBrowserEventEmitter. Since it
  12133. // doesn't, we manually listen for the events and so we have to enqueue and
  12134. // process the abstract event manually.
  12135. //
  12136. // Batching is necessary here in order to ensure that all event handlers run
  12137. // before the next rerender (including event handlers attached to ancestor
  12138. // elements instead of directly on the input). Without this, controlled
  12139. // components don't work properly in conjunction with event bubbling because
  12140. // the component is rerendered and the value reverted before all the event
  12141. // handlers can run. See https://github.com/facebook/react/issues/708.
  12142. ReactUpdates.batchedUpdates(runEventInBatch, event);
  12143. }
  12144. function runEventInBatch(event) {
  12145. EventPluginHub.enqueueEvents(event);
  12146. EventPluginHub.processEventQueue(false);
  12147. }
  12148. function startWatchingForChangeEventIE8(target, targetInst) {
  12149. activeElement = target;
  12150. activeElementInst = targetInst;
  12151. activeElement.attachEvent('onchange', manualDispatchChangeEvent);
  12152. }
  12153. function stopWatchingForChangeEventIE8() {
  12154. if (!activeElement) {
  12155. return;
  12156. }
  12157. activeElement.detachEvent('onchange', manualDispatchChangeEvent);
  12158. activeElement = null;
  12159. activeElementInst = null;
  12160. }
  12161. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  12162. if (topLevelType === 'topChange') {
  12163. return targetInst;
  12164. }
  12165. }
  12166. function handleEventsForChangeEventIE8(topLevelType, target, targetInst) {
  12167. if (topLevelType === 'topFocus') {
  12168. // stopWatching() should be a noop here but we call it just in case we
  12169. // missed a blur event somehow.
  12170. stopWatchingForChangeEventIE8();
  12171. startWatchingForChangeEventIE8(target, targetInst);
  12172. } else if (topLevelType === 'topBlur') {
  12173. stopWatchingForChangeEventIE8();
  12174. }
  12175. }
  12176. /**
  12177. * SECTION: handle `input` event
  12178. */
  12179. var isInputEventSupported = false;
  12180. if (ExecutionEnvironment.canUseDOM) {
  12181. // IE9 claims to support the input event but fails to trigger it when
  12182. // deleting text, so we ignore its input events.
  12183. // IE10+ fire input events to often, such when a placeholder
  12184. // changes or when an input with a placeholder is focused.
  12185. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 11);
  12186. }
  12187. /**
  12188. * (For IE <=11) Replacement getter/setter for the `value` property that gets
  12189. * set on the active element.
  12190. */
  12191. var newValueProp = {
  12192. get: function () {
  12193. return activeElementValueProp.get.call(this);
  12194. },
  12195. set: function (val) {
  12196. // Cast to a string so we can do equality checks.
  12197. activeElementValue = '' + val;
  12198. activeElementValueProp.set.call(this, val);
  12199. }
  12200. };
  12201. /**
  12202. * (For IE <=11) Starts tracking propertychange events on the passed-in element
  12203. * and override the value property so that we can distinguish user events from
  12204. * value changes in JS.
  12205. */
  12206. function startWatchingForValueChange(target, targetInst) {
  12207. activeElement = target;
  12208. activeElementInst = targetInst;
  12209. activeElementValue = target.value;
  12210. activeElementValueProp = Object.getOwnPropertyDescriptor(target.constructor.prototype, 'value');
  12211. // Not guarded in a canDefineProperty check: IE8 supports defineProperty only
  12212. // on DOM elements
  12213. Object.defineProperty(activeElement, 'value', newValueProp);
  12214. if (activeElement.attachEvent) {
  12215. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  12216. } else {
  12217. activeElement.addEventListener('propertychange', handlePropertyChange, false);
  12218. }
  12219. }
  12220. /**
  12221. * (For IE <=11) Removes the event listeners from the currently-tracked element,
  12222. * if any exists.
  12223. */
  12224. function stopWatchingForValueChange() {
  12225. if (!activeElement) {
  12226. return;
  12227. }
  12228. // delete restores the original property definition
  12229. delete activeElement.value;
  12230. if (activeElement.detachEvent) {
  12231. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  12232. } else {
  12233. activeElement.removeEventListener('propertychange', handlePropertyChange, false);
  12234. }
  12235. activeElement = null;
  12236. activeElementInst = null;
  12237. activeElementValue = null;
  12238. activeElementValueProp = null;
  12239. }
  12240. /**
  12241. * (For IE <=11) Handles a propertychange event, sending a `change` event if
  12242. * the value of the active element has changed.
  12243. */
  12244. function handlePropertyChange(nativeEvent) {
  12245. if (nativeEvent.propertyName !== 'value') {
  12246. return;
  12247. }
  12248. var value = nativeEvent.srcElement.value;
  12249. if (value === activeElementValue) {
  12250. return;
  12251. }
  12252. activeElementValue = value;
  12253. manualDispatchChangeEvent(nativeEvent);
  12254. }
  12255. /**
  12256. * If a `change` event should be fired, returns the target's ID.
  12257. */
  12258. function getTargetInstForInputEvent(topLevelType, targetInst) {
  12259. if (topLevelType === 'topInput') {
  12260. // In modern browsers (i.e., not IE8 or IE9), the input event is exactly
  12261. // what we want so fall through here and trigger an abstract event
  12262. return targetInst;
  12263. }
  12264. }
  12265. function handleEventsForInputEventIE(topLevelType, target, targetInst) {
  12266. if (topLevelType === 'topFocus') {
  12267. // In IE8, we can capture almost all .value changes by adding a
  12268. // propertychange handler and looking for events with propertyName
  12269. // equal to 'value'
  12270. // In IE9-11, propertychange fires for most input events but is buggy and
  12271. // doesn't fire when text is deleted, but conveniently, selectionchange
  12272. // appears to fire in all of the remaining cases so we catch those and
  12273. // forward the event if the value has changed
  12274. // In either case, we don't want to call the event handler if the value
  12275. // is changed from JS so we redefine a setter for `.value` that updates
  12276. // our activeElementValue variable, allowing us to ignore those changes
  12277. //
  12278. // stopWatching() should be a noop here but we call it just in case we
  12279. // missed a blur event somehow.
  12280. stopWatchingForValueChange();
  12281. startWatchingForValueChange(target, targetInst);
  12282. } else if (topLevelType === 'topBlur') {
  12283. stopWatchingForValueChange();
  12284. }
  12285. }
  12286. // For IE8 and IE9.
  12287. function getTargetInstForInputEventIE(topLevelType, targetInst) {
  12288. if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') {
  12289. // On the selectionchange event, the target is just document which isn't
  12290. // helpful for us so just check activeElement instead.
  12291. //
  12292. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  12293. // propertychange on the first input event after setting `value` from a
  12294. // script and fires only keydown, keypress, keyup. Catching keyup usually
  12295. // gets it and catching keydown lets us fire an event for the first
  12296. // keystroke if user does a key repeat (it'll be a little delayed: right
  12297. // before the second keystroke). Other input methods (e.g., paste) seem to
  12298. // fire selectionchange normally.
  12299. if (activeElement && activeElement.value !== activeElementValue) {
  12300. activeElementValue = activeElement.value;
  12301. return activeElementInst;
  12302. }
  12303. }
  12304. }
  12305. /**
  12306. * SECTION: handle `click` event
  12307. */
  12308. function shouldUseClickEvent(elem) {
  12309. // Use the `click` event to detect changes to checkbox and radio inputs.
  12310. // This approach works across all browsers, whereas `change` does not fire
  12311. // until `blur` in IE8.
  12312. return elem.nodeName && elem.nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  12313. }
  12314. function getTargetInstForClickEvent(topLevelType, targetInst) {
  12315. if (topLevelType === 'topClick') {
  12316. return targetInst;
  12317. }
  12318. }
  12319. function handleControlledInputBlur(inst, node) {
  12320. // TODO: In IE, inst is occasionally null. Why?
  12321. if (inst == null) {
  12322. return;
  12323. }
  12324. // Fiber and ReactDOM keep wrapper state in separate places
  12325. var state = inst._wrapperState || node._wrapperState;
  12326. if (!state || !state.controlled || node.type !== 'number') {
  12327. return;
  12328. }
  12329. // If controlled, assign the value attribute to the current value on blur
  12330. var value = '' + node.value;
  12331. if (node.getAttribute('value') !== value) {
  12332. node.setAttribute('value', value);
  12333. }
  12334. }
  12335. /**
  12336. * This plugin creates an `onChange` event that normalizes change events
  12337. * across form elements. This event fires at a time when it's possible to
  12338. * change the element's value without seeing a flicker.
  12339. *
  12340. * Supported elements are:
  12341. * - input (see `isTextInputElement`)
  12342. * - textarea
  12343. * - select
  12344. */
  12345. var ChangeEventPlugin = {
  12346. eventTypes: eventTypes,
  12347. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  12348. var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
  12349. var getTargetInstFunc, handleEventFunc;
  12350. if (shouldUseChangeEvent(targetNode)) {
  12351. if (doesChangeEventBubble) {
  12352. getTargetInstFunc = getTargetInstForChangeEvent;
  12353. } else {
  12354. handleEventFunc = handleEventsForChangeEventIE8;
  12355. }
  12356. } else if (isTextInputElement(targetNode)) {
  12357. if (isInputEventSupported) {
  12358. getTargetInstFunc = getTargetInstForInputEvent;
  12359. } else {
  12360. getTargetInstFunc = getTargetInstForInputEventIE;
  12361. handleEventFunc = handleEventsForInputEventIE;
  12362. }
  12363. } else if (shouldUseClickEvent(targetNode)) {
  12364. getTargetInstFunc = getTargetInstForClickEvent;
  12365. }
  12366. if (getTargetInstFunc) {
  12367. var inst = getTargetInstFunc(topLevelType, targetInst);
  12368. if (inst) {
  12369. var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, nativeEventTarget);
  12370. event.type = 'change';
  12371. EventPropagators.accumulateTwoPhaseDispatches(event);
  12372. return event;
  12373. }
  12374. }
  12375. if (handleEventFunc) {
  12376. handleEventFunc(topLevelType, targetNode, targetInst);
  12377. }
  12378. // When blurring, set the value attribute for number inputs
  12379. if (topLevelType === 'topBlur') {
  12380. handleControlledInputBlur(targetInst, targetNode);
  12381. }
  12382. }
  12383. };
  12384. module.exports = ChangeEventPlugin;
  12385. /***/ }),
  12386. /* 110 */
  12387. /***/ (function(module, exports, __webpack_require__) {
  12388. "use strict";
  12389. /**
  12390. * Copyright 2013-present, Facebook, Inc.
  12391. * All rights reserved.
  12392. *
  12393. * This source code is licensed under the BSD-style license found in the
  12394. * LICENSE file in the root directory of this source tree. An additional grant
  12395. * of patent rights can be found in the PATENTS file in the same directory.
  12396. *
  12397. *
  12398. */
  12399. var ReactOwner = __webpack_require__(111);
  12400. var ReactRef = {};
  12401. function attachRef(ref, component, owner) {
  12402. if (typeof ref === 'function') {
  12403. ref(component.getPublicInstance());
  12404. } else {
  12405. // Legacy ref
  12406. ReactOwner.addComponentAsRefTo(component, ref, owner);
  12407. }
  12408. }
  12409. function detachRef(ref, component, owner) {
  12410. if (typeof ref === 'function') {
  12411. ref(null);
  12412. } else {
  12413. // Legacy ref
  12414. ReactOwner.removeComponentAsRefFrom(component, ref, owner);
  12415. }
  12416. }
  12417. ReactRef.attachRefs = function (instance, element) {
  12418. if (element === null || typeof element !== 'object') {
  12419. return;
  12420. }
  12421. var ref = element.ref;
  12422. if (ref != null) {
  12423. attachRef(ref, instance, element._owner);
  12424. }
  12425. };
  12426. ReactRef.shouldUpdateRefs = function (prevElement, nextElement) {
  12427. // If either the owner or a `ref` has changed, make sure the newest owner
  12428. // has stored a reference to `this`, and the previous owner (if different)
  12429. // has forgotten the reference to `this`. We use the element instead
  12430. // of the public this.props because the post processing cannot determine
  12431. // a ref. The ref conceptually lives on the element.
  12432. // TODO: Should this even be possible? The owner cannot change because
  12433. // it's forbidden by shouldUpdateReactComponent. The ref can change
  12434. // if you swap the keys of but not the refs. Reconsider where this check
  12435. // is made. It probably belongs where the key checking and
  12436. // instantiateReactComponent is done.
  12437. var prevRef = null;
  12438. var prevOwner = null;
  12439. if (prevElement !== null && typeof prevElement === 'object') {
  12440. prevRef = prevElement.ref;
  12441. prevOwner = prevElement._owner;
  12442. }
  12443. var nextRef = null;
  12444. var nextOwner = null;
  12445. if (nextElement !== null && typeof nextElement === 'object') {
  12446. nextRef = nextElement.ref;
  12447. nextOwner = nextElement._owner;
  12448. }
  12449. return prevRef !== nextRef ||
  12450. // If owner changes but we have an unchanged function ref, don't update refs
  12451. typeof nextRef === 'string' && nextOwner !== prevOwner;
  12452. };
  12453. ReactRef.detachRefs = function (instance, element) {
  12454. if (element === null || typeof element !== 'object') {
  12455. return;
  12456. }
  12457. var ref = element.ref;
  12458. if (ref != null) {
  12459. detachRef(ref, instance, element._owner);
  12460. }
  12461. };
  12462. module.exports = ReactRef;
  12463. /***/ }),
  12464. /* 111 */
  12465. /***/ (function(module, exports, __webpack_require__) {
  12466. "use strict";
  12467. /* WEBPACK VAR INJECTION */(function(process) {/**
  12468. * Copyright 2013-present, Facebook, Inc.
  12469. * All rights reserved.
  12470. *
  12471. * This source code is licensed under the BSD-style license found in the
  12472. * LICENSE file in the root directory of this source tree. An additional grant
  12473. * of patent rights can be found in the PATENTS file in the same directory.
  12474. *
  12475. *
  12476. */
  12477. var _prodInvariant = __webpack_require__(3);
  12478. var invariant = __webpack_require__(1);
  12479. /**
  12480. * @param {?object} object
  12481. * @return {boolean} True if `object` is a valid owner.
  12482. * @final
  12483. */
  12484. function isValidOwner(object) {
  12485. return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function');
  12486. }
  12487. /**
  12488. * ReactOwners are capable of storing references to owned components.
  12489. *
  12490. * All components are capable of //being// referenced by owner components, but
  12491. * only ReactOwner components are capable of //referencing// owned components.
  12492. * The named reference is known as a "ref".
  12493. *
  12494. * Refs are available when mounted and updated during reconciliation.
  12495. *
  12496. * var MyComponent = React.createClass({
  12497. * render: function() {
  12498. * return (
  12499. * <div onClick={this.handleClick}>
  12500. * <CustomComponent ref="custom" />
  12501. * </div>
  12502. * );
  12503. * },
  12504. * handleClick: function() {
  12505. * this.refs.custom.handleClick();
  12506. * },
  12507. * componentDidMount: function() {
  12508. * this.refs.custom.initialize();
  12509. * }
  12510. * });
  12511. *
  12512. * Refs should rarely be used. When refs are used, they should only be done to
  12513. * control data that is not handled by React's data flow.
  12514. *
  12515. * @class ReactOwner
  12516. */
  12517. var ReactOwner = {
  12518. /**
  12519. * Adds a component by ref to an owner component.
  12520. *
  12521. * @param {ReactComponent} component Component to reference.
  12522. * @param {string} ref Name by which to refer to the component.
  12523. * @param {ReactOwner} owner Component on which to record the ref.
  12524. * @final
  12525. * @internal
  12526. */
  12527. addComponentAsRefTo: function (component, ref, owner) {
  12528. !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0;
  12529. owner.attachRef(ref, component);
  12530. },
  12531. /**
  12532. * Removes a component by ref from an owner component.
  12533. *
  12534. * @param {ReactComponent} component Component to dereference.
  12535. * @param {string} ref Name of the ref to remove.
  12536. * @param {ReactOwner} owner Component on which the ref is recorded.
  12537. * @final
  12538. * @internal
  12539. */
  12540. removeComponentAsRefFrom: function (component, ref, owner) {
  12541. !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0;
  12542. var ownerPublicInstance = owner.getPublicInstance();
  12543. // Check that `component`'s owner is still alive and that `component` is still the current ref
  12544. // because we do not want to detach the ref if another component stole it.
  12545. if (ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance()) {
  12546. owner.detachRef(ref);
  12547. }
  12548. }
  12549. };
  12550. module.exports = ReactOwner;
  12551. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12552. /***/ }),
  12553. /* 112 */
  12554. /***/ (function(module, exports, __webpack_require__) {
  12555. "use strict";
  12556. /* WEBPACK VAR INJECTION */(function(process) {/**
  12557. * Copyright 2016-present, Facebook, Inc.
  12558. * All rights reserved.
  12559. *
  12560. * This source code is licensed under the BSD-style license found in the
  12561. * LICENSE file in the root directory of this source tree. An additional grant
  12562. * of patent rights can be found in the PATENTS file in the same directory.
  12563. *
  12564. *
  12565. */
  12566. var ReactInvalidSetStateWarningHook = __webpack_require__(113);
  12567. var ReactHostOperationHistoryHook = __webpack_require__(114);
  12568. var ReactComponentTreeHook = __webpack_require__(7);
  12569. var ExecutionEnvironment = __webpack_require__(6);
  12570. var performanceNow = __webpack_require__(115);
  12571. var warning = __webpack_require__(2);
  12572. var hooks = [];
  12573. var didHookThrowForEvent = {};
  12574. function callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {
  12575. try {
  12576. fn.call(context, arg1, arg2, arg3, arg4, arg5);
  12577. } catch (e) {
  12578. process.env.NODE_ENV !== 'production' ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack) : void 0;
  12579. didHookThrowForEvent[event] = true;
  12580. }
  12581. }
  12582. function emitEvent(event, arg1, arg2, arg3, arg4, arg5) {
  12583. for (var i = 0; i < hooks.length; i++) {
  12584. var hook = hooks[i];
  12585. var fn = hook[event];
  12586. if (fn) {
  12587. callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
  12588. }
  12589. }
  12590. }
  12591. var isProfiling = false;
  12592. var flushHistory = [];
  12593. var lifeCycleTimerStack = [];
  12594. var currentFlushNesting = 0;
  12595. var currentFlushMeasurements = [];
  12596. var currentFlushStartTime = 0;
  12597. var currentTimerDebugID = null;
  12598. var currentTimerStartTime = 0;
  12599. var currentTimerNestedFlushDuration = 0;
  12600. var currentTimerType = null;
  12601. var lifeCycleTimerHasWarned = false;
  12602. function clearHistory() {
  12603. ReactComponentTreeHook.purgeUnmountedComponents();
  12604. ReactHostOperationHistoryHook.clearHistory();
  12605. }
  12606. function getTreeSnapshot(registeredIDs) {
  12607. return registeredIDs.reduce(function (tree, id) {
  12608. var ownerID = ReactComponentTreeHook.getOwnerID(id);
  12609. var parentID = ReactComponentTreeHook.getParentID(id);
  12610. tree[id] = {
  12611. displayName: ReactComponentTreeHook.getDisplayName(id),
  12612. text: ReactComponentTreeHook.getText(id),
  12613. updateCount: ReactComponentTreeHook.getUpdateCount(id),
  12614. childIDs: ReactComponentTreeHook.getChildIDs(id),
  12615. // Text nodes don't have owners but this is close enough.
  12616. ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,
  12617. parentID: parentID
  12618. };
  12619. return tree;
  12620. }, {});
  12621. }
  12622. function resetMeasurements() {
  12623. var previousStartTime = currentFlushStartTime;
  12624. var previousMeasurements = currentFlushMeasurements;
  12625. var previousOperations = ReactHostOperationHistoryHook.getHistory();
  12626. if (currentFlushNesting === 0) {
  12627. currentFlushStartTime = 0;
  12628. currentFlushMeasurements = [];
  12629. clearHistory();
  12630. return;
  12631. }
  12632. if (previousMeasurements.length || previousOperations.length) {
  12633. var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
  12634. flushHistory.push({
  12635. duration: performanceNow() - previousStartTime,
  12636. measurements: previousMeasurements || [],
  12637. operations: previousOperations || [],
  12638. treeSnapshot: getTreeSnapshot(registeredIDs)
  12639. });
  12640. }
  12641. clearHistory();
  12642. currentFlushStartTime = performanceNow();
  12643. currentFlushMeasurements = [];
  12644. }
  12645. function checkDebugID(debugID) {
  12646. var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  12647. if (allowRoot && debugID === 0) {
  12648. return;
  12649. }
  12650. if (!debugID) {
  12651. process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0;
  12652. }
  12653. }
  12654. function beginLifeCycleTimer(debugID, timerType) {
  12655. if (currentFlushNesting === 0) {
  12656. return;
  12657. }
  12658. if (currentTimerType && !lifeCycleTimerHasWarned) {
  12659. process.env.NODE_ENV !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'Did not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
  12660. lifeCycleTimerHasWarned = true;
  12661. }
  12662. currentTimerStartTime = performanceNow();
  12663. currentTimerNestedFlushDuration = 0;
  12664. currentTimerDebugID = debugID;
  12665. currentTimerType = timerType;
  12666. }
  12667. function endLifeCycleTimer(debugID, timerType) {
  12668. if (currentFlushNesting === 0) {
  12669. return;
  12670. }
  12671. if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {
  12672. process.env.NODE_ENV !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
  12673. lifeCycleTimerHasWarned = true;
  12674. }
  12675. if (isProfiling) {
  12676. currentFlushMeasurements.push({
  12677. timerType: timerType,
  12678. instanceID: debugID,
  12679. duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration
  12680. });
  12681. }
  12682. currentTimerStartTime = 0;
  12683. currentTimerNestedFlushDuration = 0;
  12684. currentTimerDebugID = null;
  12685. currentTimerType = null;
  12686. }
  12687. function pauseCurrentLifeCycleTimer() {
  12688. var currentTimer = {
  12689. startTime: currentTimerStartTime,
  12690. nestedFlushStartTime: performanceNow(),
  12691. debugID: currentTimerDebugID,
  12692. timerType: currentTimerType
  12693. };
  12694. lifeCycleTimerStack.push(currentTimer);
  12695. currentTimerStartTime = 0;
  12696. currentTimerNestedFlushDuration = 0;
  12697. currentTimerDebugID = null;
  12698. currentTimerType = null;
  12699. }
  12700. function resumeCurrentLifeCycleTimer() {
  12701. var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),
  12702. startTime = _lifeCycleTimerStack$.startTime,
  12703. nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,
  12704. debugID = _lifeCycleTimerStack$.debugID,
  12705. timerType = _lifeCycleTimerStack$.timerType;
  12706. var nestedFlushDuration = performanceNow() - nestedFlushStartTime;
  12707. currentTimerStartTime = startTime;
  12708. currentTimerNestedFlushDuration += nestedFlushDuration;
  12709. currentTimerDebugID = debugID;
  12710. currentTimerType = timerType;
  12711. }
  12712. var lastMarkTimeStamp = 0;
  12713. var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  12714. function shouldMark(debugID) {
  12715. if (!isProfiling || !canUsePerformanceMeasure) {
  12716. return false;
  12717. }
  12718. var element = ReactComponentTreeHook.getElement(debugID);
  12719. if (element == null || typeof element !== 'object') {
  12720. return false;
  12721. }
  12722. var isHostElement = typeof element.type === 'string';
  12723. if (isHostElement) {
  12724. return false;
  12725. }
  12726. return true;
  12727. }
  12728. function markBegin(debugID, markType) {
  12729. if (!shouldMark(debugID)) {
  12730. return;
  12731. }
  12732. var markName = debugID + '::' + markType;
  12733. lastMarkTimeStamp = performanceNow();
  12734. performance.mark(markName);
  12735. }
  12736. function markEnd(debugID, markType) {
  12737. if (!shouldMark(debugID)) {
  12738. return;
  12739. }
  12740. var markName = debugID + '::' + markType;
  12741. var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';
  12742. // Chrome has an issue of dropping markers recorded too fast:
  12743. // https://bugs.chromium.org/p/chromium/issues/detail?id=640652
  12744. // To work around this, we will not report very small measurements.
  12745. // I determined the magic number by tweaking it back and forth.
  12746. // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.
  12747. // When the bug is fixed, we can `measure()` unconditionally if we want to.
  12748. var timeStamp = performanceNow();
  12749. if (timeStamp - lastMarkTimeStamp > 0.1) {
  12750. var measurementName = displayName + ' [' + markType + ']';
  12751. performance.measure(measurementName, markName);
  12752. }
  12753. performance.clearMarks(markName);
  12754. performance.clearMeasures(measurementName);
  12755. }
  12756. var ReactDebugTool = {
  12757. addHook: function (hook) {
  12758. hooks.push(hook);
  12759. },
  12760. removeHook: function (hook) {
  12761. for (var i = 0; i < hooks.length; i++) {
  12762. if (hooks[i] === hook) {
  12763. hooks.splice(i, 1);
  12764. i--;
  12765. }
  12766. }
  12767. },
  12768. isProfiling: function () {
  12769. return isProfiling;
  12770. },
  12771. beginProfiling: function () {
  12772. if (isProfiling) {
  12773. return;
  12774. }
  12775. isProfiling = true;
  12776. flushHistory.length = 0;
  12777. resetMeasurements();
  12778. ReactDebugTool.addHook(ReactHostOperationHistoryHook);
  12779. },
  12780. endProfiling: function () {
  12781. if (!isProfiling) {
  12782. return;
  12783. }
  12784. isProfiling = false;
  12785. resetMeasurements();
  12786. ReactDebugTool.removeHook(ReactHostOperationHistoryHook);
  12787. },
  12788. getFlushHistory: function () {
  12789. return flushHistory;
  12790. },
  12791. onBeginFlush: function () {
  12792. currentFlushNesting++;
  12793. resetMeasurements();
  12794. pauseCurrentLifeCycleTimer();
  12795. emitEvent('onBeginFlush');
  12796. },
  12797. onEndFlush: function () {
  12798. resetMeasurements();
  12799. currentFlushNesting--;
  12800. resumeCurrentLifeCycleTimer();
  12801. emitEvent('onEndFlush');
  12802. },
  12803. onBeginLifeCycleTimer: function (debugID, timerType) {
  12804. checkDebugID(debugID);
  12805. emitEvent('onBeginLifeCycleTimer', debugID, timerType);
  12806. markBegin(debugID, timerType);
  12807. beginLifeCycleTimer(debugID, timerType);
  12808. },
  12809. onEndLifeCycleTimer: function (debugID, timerType) {
  12810. checkDebugID(debugID);
  12811. endLifeCycleTimer(debugID, timerType);
  12812. markEnd(debugID, timerType);
  12813. emitEvent('onEndLifeCycleTimer', debugID, timerType);
  12814. },
  12815. onBeginProcessingChildContext: function () {
  12816. emitEvent('onBeginProcessingChildContext');
  12817. },
  12818. onEndProcessingChildContext: function () {
  12819. emitEvent('onEndProcessingChildContext');
  12820. },
  12821. onHostOperation: function (operation) {
  12822. checkDebugID(operation.instanceID);
  12823. emitEvent('onHostOperation', operation);
  12824. },
  12825. onSetState: function () {
  12826. emitEvent('onSetState');
  12827. },
  12828. onSetChildren: function (debugID, childDebugIDs) {
  12829. checkDebugID(debugID);
  12830. childDebugIDs.forEach(checkDebugID);
  12831. emitEvent('onSetChildren', debugID, childDebugIDs);
  12832. },
  12833. onBeforeMountComponent: function (debugID, element, parentDebugID) {
  12834. checkDebugID(debugID);
  12835. checkDebugID(parentDebugID, true);
  12836. emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);
  12837. markBegin(debugID, 'mount');
  12838. },
  12839. onMountComponent: function (debugID) {
  12840. checkDebugID(debugID);
  12841. markEnd(debugID, 'mount');
  12842. emitEvent('onMountComponent', debugID);
  12843. },
  12844. onBeforeUpdateComponent: function (debugID, element) {
  12845. checkDebugID(debugID);
  12846. emitEvent('onBeforeUpdateComponent', debugID, element);
  12847. markBegin(debugID, 'update');
  12848. },
  12849. onUpdateComponent: function (debugID) {
  12850. checkDebugID(debugID);
  12851. markEnd(debugID, 'update');
  12852. emitEvent('onUpdateComponent', debugID);
  12853. },
  12854. onBeforeUnmountComponent: function (debugID) {
  12855. checkDebugID(debugID);
  12856. emitEvent('onBeforeUnmountComponent', debugID);
  12857. markBegin(debugID, 'unmount');
  12858. },
  12859. onUnmountComponent: function (debugID) {
  12860. checkDebugID(debugID);
  12861. markEnd(debugID, 'unmount');
  12862. emitEvent('onUnmountComponent', debugID);
  12863. },
  12864. onTestEvent: function () {
  12865. emitEvent('onTestEvent');
  12866. }
  12867. };
  12868. // TODO remove these when RN/www gets updated
  12869. ReactDebugTool.addDevtool = ReactDebugTool.addHook;
  12870. ReactDebugTool.removeDevtool = ReactDebugTool.removeHook;
  12871. ReactDebugTool.addHook(ReactInvalidSetStateWarningHook);
  12872. ReactDebugTool.addHook(ReactComponentTreeHook);
  12873. var url = ExecutionEnvironment.canUseDOM && window.location.href || '';
  12874. if (/[?&]react_perf\b/.test(url)) {
  12875. ReactDebugTool.beginProfiling();
  12876. }
  12877. module.exports = ReactDebugTool;
  12878. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12879. /***/ }),
  12880. /* 113 */
  12881. /***/ (function(module, exports, __webpack_require__) {
  12882. "use strict";
  12883. /* WEBPACK VAR INJECTION */(function(process) {/**
  12884. * Copyright 2016-present, Facebook, Inc.
  12885. * All rights reserved.
  12886. *
  12887. * This source code is licensed under the BSD-style license found in the
  12888. * LICENSE file in the root directory of this source tree. An additional grant
  12889. * of patent rights can be found in the PATENTS file in the same directory.
  12890. *
  12891. *
  12892. */
  12893. var warning = __webpack_require__(2);
  12894. if (process.env.NODE_ENV !== 'production') {
  12895. var processingChildContext = false;
  12896. var warnInvalidSetState = function () {
  12897. process.env.NODE_ENV !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;
  12898. };
  12899. }
  12900. var ReactInvalidSetStateWarningHook = {
  12901. onBeginProcessingChildContext: function () {
  12902. processingChildContext = true;
  12903. },
  12904. onEndProcessingChildContext: function () {
  12905. processingChildContext = false;
  12906. },
  12907. onSetState: function () {
  12908. warnInvalidSetState();
  12909. }
  12910. };
  12911. module.exports = ReactInvalidSetStateWarningHook;
  12912. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12913. /***/ }),
  12914. /* 114 */
  12915. /***/ (function(module, exports, __webpack_require__) {
  12916. "use strict";
  12917. /**
  12918. * Copyright 2016-present, Facebook, Inc.
  12919. * All rights reserved.
  12920. *
  12921. * This source code is licensed under the BSD-style license found in the
  12922. * LICENSE file in the root directory of this source tree. An additional grant
  12923. * of patent rights can be found in the PATENTS file in the same directory.
  12924. *
  12925. *
  12926. */
  12927. var history = [];
  12928. var ReactHostOperationHistoryHook = {
  12929. onHostOperation: function (operation) {
  12930. history.push(operation);
  12931. },
  12932. clearHistory: function () {
  12933. if (ReactHostOperationHistoryHook._preventClearing) {
  12934. // Should only be used for tests.
  12935. return;
  12936. }
  12937. history = [];
  12938. },
  12939. getHistory: function () {
  12940. return history;
  12941. }
  12942. };
  12943. module.exports = ReactHostOperationHistoryHook;
  12944. /***/ }),
  12945. /* 115 */
  12946. /***/ (function(module, exports, __webpack_require__) {
  12947. "use strict";
  12948. /**
  12949. * Copyright (c) 2013-present, Facebook, Inc.
  12950. *
  12951. * This source code is licensed under the MIT license found in the
  12952. * LICENSE file in the root directory of this source tree.
  12953. *
  12954. * @typechecks
  12955. */
  12956. var performance = __webpack_require__(116);
  12957. var performanceNow;
  12958. /**
  12959. * Detect if we can use `window.performance.now()` and gracefully fallback to
  12960. * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
  12961. * because of Facebook's testing infrastructure.
  12962. */
  12963. if (performance.now) {
  12964. performanceNow = function performanceNow() {
  12965. return performance.now();
  12966. };
  12967. } else {
  12968. performanceNow = function performanceNow() {
  12969. return Date.now();
  12970. };
  12971. }
  12972. module.exports = performanceNow;
  12973. /***/ }),
  12974. /* 116 */
  12975. /***/ (function(module, exports, __webpack_require__) {
  12976. "use strict";
  12977. /**
  12978. * Copyright (c) 2013-present, Facebook, Inc.
  12979. *
  12980. * This source code is licensed under the MIT license found in the
  12981. * LICENSE file in the root directory of this source tree.
  12982. *
  12983. * @typechecks
  12984. */
  12985. var ExecutionEnvironment = __webpack_require__(6);
  12986. var performance;
  12987. if (ExecutionEnvironment.canUseDOM) {
  12988. performance = window.performance || window.msPerformance || window.webkitPerformance;
  12989. }
  12990. module.exports = performance || {};
  12991. /***/ }),
  12992. /* 117 */
  12993. /***/ (function(module, exports, __webpack_require__) {
  12994. "use strict";
  12995. /**
  12996. * Copyright 2013-present, Facebook, Inc.
  12997. * All rights reserved.
  12998. *
  12999. * This source code is licensed under the BSD-style license found in the
  13000. * LICENSE file in the root directory of this source tree. An additional grant
  13001. * of patent rights can be found in the PATENTS file in the same directory.
  13002. *
  13003. */
  13004. /**
  13005. * Module that is injectable into `EventPluginHub`, that specifies a
  13006. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  13007. * plugins, without having to package every one of them. This is better than
  13008. * having plugins be ordered in the same order that they are injected because
  13009. * that ordering would be influenced by the packaging order.
  13010. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  13011. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  13012. */
  13013. var DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  13014. module.exports = DefaultEventPluginOrder;
  13015. /***/ }),
  13016. /* 118 */
  13017. /***/ (function(module, exports, __webpack_require__) {
  13018. "use strict";
  13019. /**
  13020. * Copyright 2013-present, Facebook, Inc.
  13021. * All rights reserved.
  13022. *
  13023. * This source code is licensed under the BSD-style license found in the
  13024. * LICENSE file in the root directory of this source tree. An additional grant
  13025. * of patent rights can be found in the PATENTS file in the same directory.
  13026. *
  13027. */
  13028. var EventPropagators = __webpack_require__(21);
  13029. var ReactDOMComponentTree = __webpack_require__(5);
  13030. var SyntheticMouseEvent = __webpack_require__(29);
  13031. var eventTypes = {
  13032. mouseEnter: {
  13033. registrationName: 'onMouseEnter',
  13034. dependencies: ['topMouseOut', 'topMouseOver']
  13035. },
  13036. mouseLeave: {
  13037. registrationName: 'onMouseLeave',
  13038. dependencies: ['topMouseOut', 'topMouseOver']
  13039. }
  13040. };
  13041. var EnterLeaveEventPlugin = {
  13042. eventTypes: eventTypes,
  13043. /**
  13044. * For almost every interaction we care about, there will be both a top-level
  13045. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  13046. * we do not extract duplicate events. However, moving the mouse into the
  13047. * browser from outside will not fire a `mouseout` event. In this case, we use
  13048. * the `mouseover` top-level event.
  13049. */
  13050. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  13051. if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  13052. return null;
  13053. }
  13054. if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') {
  13055. // Must not be a mouse in or mouse out - ignoring.
  13056. return null;
  13057. }
  13058. var win;
  13059. if (nativeEventTarget.window === nativeEventTarget) {
  13060. // `nativeEventTarget` is probably a window object.
  13061. win = nativeEventTarget;
  13062. } else {
  13063. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  13064. var doc = nativeEventTarget.ownerDocument;
  13065. if (doc) {
  13066. win = doc.defaultView || doc.parentWindow;
  13067. } else {
  13068. win = window;
  13069. }
  13070. }
  13071. var from;
  13072. var to;
  13073. if (topLevelType === 'topMouseOut') {
  13074. from = targetInst;
  13075. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  13076. to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null;
  13077. } else {
  13078. // Moving to a node from outside the window.
  13079. from = null;
  13080. to = targetInst;
  13081. }
  13082. if (from === to) {
  13083. // Nothing pertains to our managed components.
  13084. return null;
  13085. }
  13086. var fromNode = from == null ? win : ReactDOMComponentTree.getNodeFromInstance(from);
  13087. var toNode = to == null ? win : ReactDOMComponentTree.getNodeFromInstance(to);
  13088. var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget);
  13089. leave.type = 'mouseleave';
  13090. leave.target = fromNode;
  13091. leave.relatedTarget = toNode;
  13092. var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget);
  13093. enter.type = 'mouseenter';
  13094. enter.target = toNode;
  13095. enter.relatedTarget = fromNode;
  13096. EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to);
  13097. return [leave, enter];
  13098. }
  13099. };
  13100. module.exports = EnterLeaveEventPlugin;
  13101. /***/ }),
  13102. /* 119 */
  13103. /***/ (function(module, exports, __webpack_require__) {
  13104. "use strict";
  13105. /**
  13106. * Copyright 2013-present, Facebook, Inc.
  13107. * All rights reserved.
  13108. *
  13109. * This source code is licensed under the BSD-style license found in the
  13110. * LICENSE file in the root directory of this source tree. An additional grant
  13111. * of patent rights can be found in the PATENTS file in the same directory.
  13112. *
  13113. */
  13114. var DOMProperty = __webpack_require__(13);
  13115. var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;
  13116. var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE;
  13117. var HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE;
  13118. var HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE;
  13119. var HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE;
  13120. var HTMLDOMPropertyConfig = {
  13121. isCustomAttribute: RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$')),
  13122. Properties: {
  13123. /**
  13124. * Standard Properties
  13125. */
  13126. accept: 0,
  13127. acceptCharset: 0,
  13128. accessKey: 0,
  13129. action: 0,
  13130. allowFullScreen: HAS_BOOLEAN_VALUE,
  13131. allowTransparency: 0,
  13132. alt: 0,
  13133. // specifies target context for links with `preload` type
  13134. as: 0,
  13135. async: HAS_BOOLEAN_VALUE,
  13136. autoComplete: 0,
  13137. // autoFocus is polyfilled/normalized by AutoFocusUtils
  13138. // autoFocus: HAS_BOOLEAN_VALUE,
  13139. autoPlay: HAS_BOOLEAN_VALUE,
  13140. capture: HAS_BOOLEAN_VALUE,
  13141. cellPadding: 0,
  13142. cellSpacing: 0,
  13143. charSet: 0,
  13144. challenge: 0,
  13145. checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13146. cite: 0,
  13147. classID: 0,
  13148. className: 0,
  13149. cols: HAS_POSITIVE_NUMERIC_VALUE,
  13150. colSpan: 0,
  13151. content: 0,
  13152. contentEditable: 0,
  13153. contextMenu: 0,
  13154. controls: HAS_BOOLEAN_VALUE,
  13155. coords: 0,
  13156. crossOrigin: 0,
  13157. data: 0, // For `<object />` acts as `src`.
  13158. dateTime: 0,
  13159. 'default': HAS_BOOLEAN_VALUE,
  13160. defer: HAS_BOOLEAN_VALUE,
  13161. dir: 0,
  13162. disabled: HAS_BOOLEAN_VALUE,
  13163. download: HAS_OVERLOADED_BOOLEAN_VALUE,
  13164. draggable: 0,
  13165. encType: 0,
  13166. form: 0,
  13167. formAction: 0,
  13168. formEncType: 0,
  13169. formMethod: 0,
  13170. formNoValidate: HAS_BOOLEAN_VALUE,
  13171. formTarget: 0,
  13172. frameBorder: 0,
  13173. headers: 0,
  13174. height: 0,
  13175. hidden: HAS_BOOLEAN_VALUE,
  13176. high: 0,
  13177. href: 0,
  13178. hrefLang: 0,
  13179. htmlFor: 0,
  13180. httpEquiv: 0,
  13181. icon: 0,
  13182. id: 0,
  13183. inputMode: 0,
  13184. integrity: 0,
  13185. is: 0,
  13186. keyParams: 0,
  13187. keyType: 0,
  13188. kind: 0,
  13189. label: 0,
  13190. lang: 0,
  13191. list: 0,
  13192. loop: HAS_BOOLEAN_VALUE,
  13193. low: 0,
  13194. manifest: 0,
  13195. marginHeight: 0,
  13196. marginWidth: 0,
  13197. max: 0,
  13198. maxLength: 0,
  13199. media: 0,
  13200. mediaGroup: 0,
  13201. method: 0,
  13202. min: 0,
  13203. minLength: 0,
  13204. // Caution; `option.selected` is not updated if `select.multiple` is
  13205. // disabled with `removeAttribute`.
  13206. multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13207. muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13208. name: 0,
  13209. nonce: 0,
  13210. noValidate: HAS_BOOLEAN_VALUE,
  13211. open: HAS_BOOLEAN_VALUE,
  13212. optimum: 0,
  13213. pattern: 0,
  13214. placeholder: 0,
  13215. playsInline: HAS_BOOLEAN_VALUE,
  13216. poster: 0,
  13217. preload: 0,
  13218. profile: 0,
  13219. radioGroup: 0,
  13220. readOnly: HAS_BOOLEAN_VALUE,
  13221. referrerPolicy: 0,
  13222. rel: 0,
  13223. required: HAS_BOOLEAN_VALUE,
  13224. reversed: HAS_BOOLEAN_VALUE,
  13225. role: 0,
  13226. rows: HAS_POSITIVE_NUMERIC_VALUE,
  13227. rowSpan: HAS_NUMERIC_VALUE,
  13228. sandbox: 0,
  13229. scope: 0,
  13230. scoped: HAS_BOOLEAN_VALUE,
  13231. scrolling: 0,
  13232. seamless: HAS_BOOLEAN_VALUE,
  13233. selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13234. shape: 0,
  13235. size: HAS_POSITIVE_NUMERIC_VALUE,
  13236. sizes: 0,
  13237. span: HAS_POSITIVE_NUMERIC_VALUE,
  13238. spellCheck: 0,
  13239. src: 0,
  13240. srcDoc: 0,
  13241. srcLang: 0,
  13242. srcSet: 0,
  13243. start: HAS_NUMERIC_VALUE,
  13244. step: 0,
  13245. style: 0,
  13246. summary: 0,
  13247. tabIndex: 0,
  13248. target: 0,
  13249. title: 0,
  13250. // Setting .type throws on non-<input> tags
  13251. type: 0,
  13252. useMap: 0,
  13253. value: 0,
  13254. width: 0,
  13255. wmode: 0,
  13256. wrap: 0,
  13257. /**
  13258. * RDFa Properties
  13259. */
  13260. about: 0,
  13261. datatype: 0,
  13262. inlist: 0,
  13263. prefix: 0,
  13264. // property is also supported for OpenGraph in meta tags.
  13265. property: 0,
  13266. resource: 0,
  13267. 'typeof': 0,
  13268. vocab: 0,
  13269. /**
  13270. * Non-standard Properties
  13271. */
  13272. // autoCapitalize and autoCorrect are supported in Mobile Safari for
  13273. // keyboard hints.
  13274. autoCapitalize: 0,
  13275. autoCorrect: 0,
  13276. // autoSave allows WebKit/Blink to persist values of input fields on page reloads
  13277. autoSave: 0,
  13278. // color is for Safari mask-icon link
  13279. color: 0,
  13280. // itemProp, itemScope, itemType are for
  13281. // Microdata support. See http://schema.org/docs/gs.html
  13282. itemProp: 0,
  13283. itemScope: HAS_BOOLEAN_VALUE,
  13284. itemType: 0,
  13285. // itemID and itemRef are for Microdata support as well but
  13286. // only specified in the WHATWG spec document. See
  13287. // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
  13288. itemID: 0,
  13289. itemRef: 0,
  13290. // results show looking glass icon and recent searches on input
  13291. // search fields in WebKit/Blink
  13292. results: 0,
  13293. // IE-only attribute that specifies security restrictions on an iframe
  13294. // as an alternative to the sandbox attribute on IE<10
  13295. security: 0,
  13296. // IE-only attribute that controls focus behavior
  13297. unselectable: 0
  13298. },
  13299. DOMAttributeNames: {
  13300. acceptCharset: 'accept-charset',
  13301. className: 'class',
  13302. htmlFor: 'for',
  13303. httpEquiv: 'http-equiv'
  13304. },
  13305. DOMPropertyNames: {},
  13306. DOMMutationMethods: {
  13307. value: function (node, value) {
  13308. if (value == null) {
  13309. return node.removeAttribute('value');
  13310. }
  13311. // Number inputs get special treatment due to some edge cases in
  13312. // Chrome. Let everything else assign the value attribute as normal.
  13313. // https://github.com/facebook/react/issues/7253#issuecomment-236074326
  13314. if (node.type !== 'number' || node.hasAttribute('value') === false) {
  13315. node.setAttribute('value', '' + value);
  13316. } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) {
  13317. // Don't assign an attribute if validation reports bad
  13318. // input. Chrome will clear the value. Additionally, don't
  13319. // operate on inputs that have focus, otherwise Chrome might
  13320. // strip off trailing decimal places and cause the user's
  13321. // cursor position to jump to the beginning of the input.
  13322. //
  13323. // In ReactDOMInput, we have an onBlur event that will trigger
  13324. // this function again when focus is lost.
  13325. node.setAttribute('value', '' + value);
  13326. }
  13327. }
  13328. }
  13329. };
  13330. module.exports = HTMLDOMPropertyConfig;
  13331. /***/ }),
  13332. /* 120 */
  13333. /***/ (function(module, exports, __webpack_require__) {
  13334. "use strict";
  13335. /**
  13336. * Copyright 2013-present, Facebook, Inc.
  13337. * All rights reserved.
  13338. *
  13339. * This source code is licensed under the BSD-style license found in the
  13340. * LICENSE file in the root directory of this source tree. An additional grant
  13341. * of patent rights can be found in the PATENTS file in the same directory.
  13342. *
  13343. */
  13344. var DOMChildrenOperations = __webpack_require__(40);
  13345. var ReactDOMIDOperations = __webpack_require__(125);
  13346. /**
  13347. * Abstracts away all functionality of the reconciler that requires knowledge of
  13348. * the browser context. TODO: These callers should be refactored to avoid the
  13349. * need for this injection.
  13350. */
  13351. var ReactComponentBrowserEnvironment = {
  13352. processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,
  13353. replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup
  13354. };
  13355. module.exports = ReactComponentBrowserEnvironment;
  13356. /***/ }),
  13357. /* 121 */
  13358. /***/ (function(module, exports, __webpack_require__) {
  13359. "use strict";
  13360. /* WEBPACK VAR INJECTION */(function(process) {/**
  13361. * Copyright 2013-present, Facebook, Inc.
  13362. * All rights reserved.
  13363. *
  13364. * This source code is licensed under the BSD-style license found in the
  13365. * LICENSE file in the root directory of this source tree. An additional grant
  13366. * of patent rights can be found in the PATENTS file in the same directory.
  13367. *
  13368. */
  13369. var _prodInvariant = __webpack_require__(3);
  13370. var DOMLazyTree = __webpack_require__(19);
  13371. var ExecutionEnvironment = __webpack_require__(6);
  13372. var createNodesFromMarkup = __webpack_require__(122);
  13373. var emptyFunction = __webpack_require__(8);
  13374. var invariant = __webpack_require__(1);
  13375. var Danger = {
  13376. /**
  13377. * Replaces a node with a string of markup at its current position within its
  13378. * parent. The markup must render into a single root node.
  13379. *
  13380. * @param {DOMElement} oldChild Child node to replace.
  13381. * @param {string} markup Markup to render in place of the child node.
  13382. * @internal
  13383. */
  13384. dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) {
  13385. !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0;
  13386. !markup ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;
  13387. !(oldChild.nodeName !== 'HTML') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0;
  13388. if (typeof markup === 'string') {
  13389. var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
  13390. oldChild.parentNode.replaceChild(newChild, oldChild);
  13391. } else {
  13392. DOMLazyTree.replaceChildWithTree(oldChild, markup);
  13393. }
  13394. }
  13395. };
  13396. module.exports = Danger;
  13397. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13398. /***/ }),
  13399. /* 122 */
  13400. /***/ (function(module, exports, __webpack_require__) {
  13401. "use strict";
  13402. /* WEBPACK VAR INJECTION */(function(process) {
  13403. /**
  13404. * Copyright (c) 2013-present, Facebook, Inc.
  13405. *
  13406. * This source code is licensed under the MIT license found in the
  13407. * LICENSE file in the root directory of this source tree.
  13408. *
  13409. * @typechecks
  13410. */
  13411. /*eslint-disable fb-www/unsafe-html*/
  13412. var ExecutionEnvironment = __webpack_require__(6);
  13413. var createArrayFromMixed = __webpack_require__(123);
  13414. var getMarkupWrap = __webpack_require__(124);
  13415. var invariant = __webpack_require__(1);
  13416. /**
  13417. * Dummy container used to render all markup.
  13418. */
  13419. var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
  13420. /**
  13421. * Pattern used by `getNodeName`.
  13422. */
  13423. var nodeNamePattern = /^\s*<(\w+)/;
  13424. /**
  13425. * Extracts the `nodeName` of the first element in a string of markup.
  13426. *
  13427. * @param {string} markup String of markup.
  13428. * @return {?string} Node name of the supplied markup.
  13429. */
  13430. function getNodeName(markup) {
  13431. var nodeNameMatch = markup.match(nodeNamePattern);
  13432. return nodeNameMatch && nodeNameMatch[1].toLowerCase();
  13433. }
  13434. /**
  13435. * Creates an array containing the nodes rendered from the supplied markup. The
  13436. * optionally supplied `handleScript` function will be invoked once for each
  13437. * <script> element that is rendered. If no `handleScript` function is supplied,
  13438. * an exception is thrown if any <script> elements are rendered.
  13439. *
  13440. * @param {string} markup A string of valid HTML markup.
  13441. * @param {?function} handleScript Invoked once for each rendered <script>.
  13442. * @return {array<DOMElement|DOMTextNode>} An array of rendered nodes.
  13443. */
  13444. function createNodesFromMarkup(markup, handleScript) {
  13445. var node = dummyNode;
  13446. !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0;
  13447. var nodeName = getNodeName(markup);
  13448. var wrap = nodeName && getMarkupWrap(nodeName);
  13449. if (wrap) {
  13450. node.innerHTML = wrap[1] + markup + wrap[2];
  13451. var wrapDepth = wrap[0];
  13452. while (wrapDepth--) {
  13453. node = node.lastChild;
  13454. }
  13455. } else {
  13456. node.innerHTML = markup;
  13457. }
  13458. var scripts = node.getElementsByTagName('script');
  13459. if (scripts.length) {
  13460. !handleScript ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup(...): Unexpected <script> element rendered.') : invariant(false) : void 0;
  13461. createArrayFromMixed(scripts).forEach(handleScript);
  13462. }
  13463. var nodes = Array.from(node.childNodes);
  13464. while (node.lastChild) {
  13465. node.removeChild(node.lastChild);
  13466. }
  13467. return nodes;
  13468. }
  13469. module.exports = createNodesFromMarkup;
  13470. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13471. /***/ }),
  13472. /* 123 */
  13473. /***/ (function(module, exports, __webpack_require__) {
  13474. "use strict";
  13475. /* WEBPACK VAR INJECTION */(function(process) {
  13476. /**
  13477. * Copyright (c) 2013-present, Facebook, Inc.
  13478. *
  13479. * This source code is licensed under the MIT license found in the
  13480. * LICENSE file in the root directory of this source tree.
  13481. *
  13482. * @typechecks
  13483. */
  13484. var invariant = __webpack_require__(1);
  13485. /**
  13486. * Convert array-like objects to arrays.
  13487. *
  13488. * This API assumes the caller knows the contents of the data type. For less
  13489. * well defined inputs use createArrayFromMixed.
  13490. *
  13491. * @param {object|function|filelist} obj
  13492. * @return {array}
  13493. */
  13494. function toArray(obj) {
  13495. var length = obj.length;
  13496. // Some browsers builtin objects can report typeof 'function' (e.g. NodeList
  13497. // in old versions of Safari).
  13498. !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : void 0;
  13499. !(typeof length === 'number') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0;
  13500. !(length === 0 || length - 1 in obj) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0;
  13501. !(typeof obj.callee !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object can\'t be `arguments`. Use rest params ' + '(function(...args) {}) or Array.from() instead.') : invariant(false) : void 0;
  13502. // Old IE doesn't give collections access to hasOwnProperty. Assume inputs
  13503. // without method will throw during the slice call and skip straight to the
  13504. // fallback.
  13505. if (obj.hasOwnProperty) {
  13506. try {
  13507. return Array.prototype.slice.call(obj);
  13508. } catch (e) {
  13509. // IE < 9 does not support Array#slice on collections objects
  13510. }
  13511. }
  13512. // Fall back to copying key by key. This assumes all keys have a value,
  13513. // so will not preserve sparsely populated inputs.
  13514. var ret = Array(length);
  13515. for (var ii = 0; ii < length; ii++) {
  13516. ret[ii] = obj[ii];
  13517. }
  13518. return ret;
  13519. }
  13520. /**
  13521. * Perform a heuristic test to determine if an object is "array-like".
  13522. *
  13523. * A monk asked Joshu, a Zen master, "Has a dog Buddha nature?"
  13524. * Joshu replied: "Mu."
  13525. *
  13526. * This function determines if its argument has "array nature": it returns
  13527. * true if the argument is an actual array, an `arguments' object, or an
  13528. * HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()).
  13529. *
  13530. * It will return false for other array-like objects like Filelist.
  13531. *
  13532. * @param {*} obj
  13533. * @return {boolean}
  13534. */
  13535. function hasArrayNature(obj) {
  13536. return (
  13537. // not null/false
  13538. !!obj && (
  13539. // arrays are objects, NodeLists are functions in Safari
  13540. typeof obj == 'object' || typeof obj == 'function') &&
  13541. // quacks like an array
  13542. 'length' in obj &&
  13543. // not window
  13544. !('setInterval' in obj) &&
  13545. // no DOM node should be considered an array-like
  13546. // a 'select' element has 'length' and 'item' properties on IE8
  13547. typeof obj.nodeType != 'number' && (
  13548. // a real array
  13549. Array.isArray(obj) ||
  13550. // arguments
  13551. 'callee' in obj ||
  13552. // HTMLCollection/NodeList
  13553. 'item' in obj)
  13554. );
  13555. }
  13556. /**
  13557. * Ensure that the argument is an array by wrapping it in an array if it is not.
  13558. * Creates a copy of the argument if it is already an array.
  13559. *
  13560. * This is mostly useful idiomatically:
  13561. *
  13562. * var createArrayFromMixed = require('createArrayFromMixed');
  13563. *
  13564. * function takesOneOrMoreThings(things) {
  13565. * things = createArrayFromMixed(things);
  13566. * ...
  13567. * }
  13568. *
  13569. * This allows you to treat `things' as an array, but accept scalars in the API.
  13570. *
  13571. * If you need to convert an array-like object, like `arguments`, into an array
  13572. * use toArray instead.
  13573. *
  13574. * @param {*} obj
  13575. * @return {array}
  13576. */
  13577. function createArrayFromMixed(obj) {
  13578. if (!hasArrayNature(obj)) {
  13579. return [obj];
  13580. } else if (Array.isArray(obj)) {
  13581. return obj.slice();
  13582. } else {
  13583. return toArray(obj);
  13584. }
  13585. }
  13586. module.exports = createArrayFromMixed;
  13587. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13588. /***/ }),
  13589. /* 124 */
  13590. /***/ (function(module, exports, __webpack_require__) {
  13591. "use strict";
  13592. /* WEBPACK VAR INJECTION */(function(process) {
  13593. /**
  13594. * Copyright (c) 2013-present, Facebook, Inc.
  13595. *
  13596. * This source code is licensed under the MIT license found in the
  13597. * LICENSE file in the root directory of this source tree.
  13598. *
  13599. */
  13600. /*eslint-disable fb-www/unsafe-html */
  13601. var ExecutionEnvironment = __webpack_require__(6);
  13602. var invariant = __webpack_require__(1);
  13603. /**
  13604. * Dummy container used to detect which wraps are necessary.
  13605. */
  13606. var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
  13607. /**
  13608. * Some browsers cannot use `innerHTML` to render certain elements standalone,
  13609. * so we wrap them, render the wrapped nodes, then extract the desired node.
  13610. *
  13611. * In IE8, certain elements cannot render alone, so wrap all elements ('*').
  13612. */
  13613. var shouldWrap = {};
  13614. var selectWrap = [1, '<select multiple="true">', '</select>'];
  13615. var tableWrap = [1, '<table>', '</table>'];
  13616. var trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
  13617. var svgWrap = [1, '<svg xmlns="http://www.w3.org/2000/svg">', '</svg>'];
  13618. var markupWrap = {
  13619. '*': [1, '?<div>', '</div>'],
  13620. 'area': [1, '<map>', '</map>'],
  13621. 'col': [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
  13622. 'legend': [1, '<fieldset>', '</fieldset>'],
  13623. 'param': [1, '<object>', '</object>'],
  13624. 'tr': [2, '<table><tbody>', '</tbody></table>'],
  13625. 'optgroup': selectWrap,
  13626. 'option': selectWrap,
  13627. 'caption': tableWrap,
  13628. 'colgroup': tableWrap,
  13629. 'tbody': tableWrap,
  13630. 'tfoot': tableWrap,
  13631. 'thead': tableWrap,
  13632. 'td': trWrap,
  13633. 'th': trWrap
  13634. };
  13635. // Initialize the SVG elements since we know they'll always need to be wrapped
  13636. // consistently. If they are created inside a <div> they will be initialized in
  13637. // the wrong namespace (and will not display).
  13638. var svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan'];
  13639. svgElements.forEach(function (nodeName) {
  13640. markupWrap[nodeName] = svgWrap;
  13641. shouldWrap[nodeName] = true;
  13642. });
  13643. /**
  13644. * Gets the markup wrap configuration for the supplied `nodeName`.
  13645. *
  13646. * NOTE: This lazily detects which wraps are necessary for the current browser.
  13647. *
  13648. * @param {string} nodeName Lowercase `nodeName`.
  13649. * @return {?array} Markup wrap configuration, if applicable.
  13650. */
  13651. function getMarkupWrap(nodeName) {
  13652. !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : void 0;
  13653. if (!markupWrap.hasOwnProperty(nodeName)) {
  13654. nodeName = '*';
  13655. }
  13656. if (!shouldWrap.hasOwnProperty(nodeName)) {
  13657. if (nodeName === '*') {
  13658. dummyNode.innerHTML = '<link />';
  13659. } else {
  13660. dummyNode.innerHTML = '<' + nodeName + '></' + nodeName + '>';
  13661. }
  13662. shouldWrap[nodeName] = !dummyNode.firstChild;
  13663. }
  13664. return shouldWrap[nodeName] ? markupWrap[nodeName] : null;
  13665. }
  13666. module.exports = getMarkupWrap;
  13667. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13668. /***/ }),
  13669. /* 125 */
  13670. /***/ (function(module, exports, __webpack_require__) {
  13671. "use strict";
  13672. /**
  13673. * Copyright 2013-present, Facebook, Inc.
  13674. * All rights reserved.
  13675. *
  13676. * This source code is licensed under the BSD-style license found in the
  13677. * LICENSE file in the root directory of this source tree. An additional grant
  13678. * of patent rights can be found in the PATENTS file in the same directory.
  13679. *
  13680. */
  13681. var DOMChildrenOperations = __webpack_require__(40);
  13682. var ReactDOMComponentTree = __webpack_require__(5);
  13683. /**
  13684. * Operations used to process updates to DOM nodes.
  13685. */
  13686. var ReactDOMIDOperations = {
  13687. /**
  13688. * Updates a component's children by processing a series of updates.
  13689. *
  13690. * @param {array<object>} updates List of update configurations.
  13691. * @internal
  13692. */
  13693. dangerouslyProcessChildrenUpdates: function (parentInst, updates) {
  13694. var node = ReactDOMComponentTree.getNodeFromInstance(parentInst);
  13695. DOMChildrenOperations.processUpdates(node, updates);
  13696. }
  13697. };
  13698. module.exports = ReactDOMIDOperations;
  13699. /***/ }),
  13700. /* 126 */
  13701. /***/ (function(module, exports, __webpack_require__) {
  13702. "use strict";
  13703. /* WEBPACK VAR INJECTION */(function(process) {/**
  13704. * Copyright 2013-present, Facebook, Inc.
  13705. * All rights reserved.
  13706. *
  13707. * This source code is licensed under the BSD-style license found in the
  13708. * LICENSE file in the root directory of this source tree. An additional grant
  13709. * of patent rights can be found in the PATENTS file in the same directory.
  13710. *
  13711. */
  13712. /* global hasOwnProperty:true */
  13713. var _prodInvariant = __webpack_require__(3),
  13714. _assign = __webpack_require__(4);
  13715. var AutoFocusUtils = __webpack_require__(127);
  13716. var CSSPropertyOperations = __webpack_require__(128);
  13717. var DOMLazyTree = __webpack_require__(19);
  13718. var DOMNamespaces = __webpack_require__(41);
  13719. var DOMProperty = __webpack_require__(13);
  13720. var DOMPropertyOperations = __webpack_require__(67);
  13721. var EventPluginHub = __webpack_require__(22);
  13722. var EventPluginRegistry = __webpack_require__(27);
  13723. var ReactBrowserEventEmitter = __webpack_require__(32);
  13724. var ReactDOMComponentFlags = __webpack_require__(56);
  13725. var ReactDOMComponentTree = __webpack_require__(5);
  13726. var ReactDOMInput = __webpack_require__(138);
  13727. var ReactDOMOption = __webpack_require__(142);
  13728. var ReactDOMSelect = __webpack_require__(70);
  13729. var ReactDOMTextarea = __webpack_require__(143);
  13730. var ReactInstrumentation = __webpack_require__(9);
  13731. var ReactMultiChild = __webpack_require__(144);
  13732. var ReactServerRenderingTransaction = __webpack_require__(153);
  13733. var emptyFunction = __webpack_require__(8);
  13734. var escapeTextContentForBrowser = __webpack_require__(31);
  13735. var invariant = __webpack_require__(1);
  13736. var isEventSupported = __webpack_require__(38);
  13737. var shallowEqual = __webpack_require__(45);
  13738. var validateDOMNesting = __webpack_require__(49);
  13739. var warning = __webpack_require__(2);
  13740. var Flags = ReactDOMComponentFlags;
  13741. var deleteListener = EventPluginHub.deleteListener;
  13742. var getNode = ReactDOMComponentTree.getNodeFromInstance;
  13743. var listenTo = ReactBrowserEventEmitter.listenTo;
  13744. var registrationNameModules = EventPluginRegistry.registrationNameModules;
  13745. // For quickly matching children type, to test if can be treated as content.
  13746. var CONTENT_TYPES = { 'string': true, 'number': true };
  13747. var STYLE = 'style';
  13748. var HTML = '__html';
  13749. var RESERVED_PROPS = {
  13750. children: null,
  13751. dangerouslySetInnerHTML: null,
  13752. suppressContentEditableWarning: null
  13753. };
  13754. // Node type for document fragments (Node.DOCUMENT_FRAGMENT_NODE).
  13755. var DOC_FRAGMENT_TYPE = 11;
  13756. function getDeclarationErrorAddendum(internalInstance) {
  13757. if (internalInstance) {
  13758. var owner = internalInstance._currentElement._owner || null;
  13759. if (owner) {
  13760. var name = owner.getName();
  13761. if (name) {
  13762. return ' This DOM node was rendered by `' + name + '`.';
  13763. }
  13764. }
  13765. }
  13766. return '';
  13767. }
  13768. function friendlyStringify(obj) {
  13769. if (typeof obj === 'object') {
  13770. if (Array.isArray(obj)) {
  13771. return '[' + obj.map(friendlyStringify).join(', ') + ']';
  13772. } else {
  13773. var pairs = [];
  13774. for (var key in obj) {
  13775. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  13776. var keyEscaped = /^[a-z$_][\w$_]*$/i.test(key) ? key : JSON.stringify(key);
  13777. pairs.push(keyEscaped + ': ' + friendlyStringify(obj[key]));
  13778. }
  13779. }
  13780. return '{' + pairs.join(', ') + '}';
  13781. }
  13782. } else if (typeof obj === 'string') {
  13783. return JSON.stringify(obj);
  13784. } else if (typeof obj === 'function') {
  13785. return '[function object]';
  13786. }
  13787. // Differs from JSON.stringify in that undefined because undefined and that
  13788. // inf and nan don't become null
  13789. return String(obj);
  13790. }
  13791. var styleMutationWarning = {};
  13792. function checkAndWarnForMutatedStyle(style1, style2, component) {
  13793. if (style1 == null || style2 == null) {
  13794. return;
  13795. }
  13796. if (shallowEqual(style1, style2)) {
  13797. return;
  13798. }
  13799. var componentName = component._tag;
  13800. var owner = component._currentElement._owner;
  13801. var ownerName;
  13802. if (owner) {
  13803. ownerName = owner.getName();
  13804. }
  13805. var hash = ownerName + '|' + componentName;
  13806. if (styleMutationWarning.hasOwnProperty(hash)) {
  13807. return;
  13808. }
  13809. styleMutationWarning[hash] = true;
  13810. process.env.NODE_ENV !== 'production' ? warning(false, '`%s` was passed a style object that has previously been mutated. ' + 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' + 'the `render` %s. Previous style: %s. Mutated style: %s.', componentName, owner ? 'of `' + ownerName + '`' : 'using <' + componentName + '>', friendlyStringify(style1), friendlyStringify(style2)) : void 0;
  13811. }
  13812. /**
  13813. * @param {object} component
  13814. * @param {?object} props
  13815. */
  13816. function assertValidProps(component, props) {
  13817. if (!props) {
  13818. return;
  13819. }
  13820. // Note the use of `==` which checks for null or undefined.
  13821. if (voidElementTags[component._tag]) {
  13822. !(props.children == null && props.dangerouslySetInnerHTML == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : _prodInvariant('137', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : void 0;
  13823. }
  13824. if (props.dangerouslySetInnerHTML != null) {
  13825. !(props.children == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : _prodInvariant('60') : void 0;
  13826. !(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? process.env.NODE_ENV !== 'production' ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : _prodInvariant('61') : void 0;
  13827. }
  13828. if (process.env.NODE_ENV !== 'production') {
  13829. process.env.NODE_ENV !== 'production' ? warning(props.innerHTML == null, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.') : void 0;
  13830. process.env.NODE_ENV !== 'production' ? warning(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, '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;
  13831. process.env.NODE_ENV !== 'production' ? warning(props.onFocusIn == null && props.onFocusOut == null, '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.') : void 0;
  13832. }
  13833. !(props.style == null || typeof props.style === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', getDeclarationErrorAddendum(component)) : _prodInvariant('62', getDeclarationErrorAddendum(component)) : void 0;
  13834. }
  13835. function enqueuePutListener(inst, registrationName, listener, transaction) {
  13836. if (transaction instanceof ReactServerRenderingTransaction) {
  13837. return;
  13838. }
  13839. if (process.env.NODE_ENV !== 'production') {
  13840. // IE8 has no API for event capturing and the `onScroll` event doesn't
  13841. // bubble.
  13842. process.env.NODE_ENV !== 'production' ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), 'This browser doesn\'t support the `onScroll` event') : void 0;
  13843. }
  13844. var containerInfo = inst._hostContainerInfo;
  13845. var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE;
  13846. var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
  13847. listenTo(registrationName, doc);
  13848. transaction.getReactMountReady().enqueue(putListener, {
  13849. inst: inst,
  13850. registrationName: registrationName,
  13851. listener: listener
  13852. });
  13853. }
  13854. function putListener() {
  13855. var listenerToPut = this;
  13856. EventPluginHub.putListener(listenerToPut.inst, listenerToPut.registrationName, listenerToPut.listener);
  13857. }
  13858. function inputPostMount() {
  13859. var inst = this;
  13860. ReactDOMInput.postMountWrapper(inst);
  13861. }
  13862. function textareaPostMount() {
  13863. var inst = this;
  13864. ReactDOMTextarea.postMountWrapper(inst);
  13865. }
  13866. function optionPostMount() {
  13867. var inst = this;
  13868. ReactDOMOption.postMountWrapper(inst);
  13869. }
  13870. var setAndValidateContentChildDev = emptyFunction;
  13871. if (process.env.NODE_ENV !== 'production') {
  13872. setAndValidateContentChildDev = function (content) {
  13873. var hasExistingContent = this._contentDebugID != null;
  13874. var debugID = this._debugID;
  13875. // This ID represents the inlined child that has no backing instance:
  13876. var contentDebugID = -debugID;
  13877. if (content == null) {
  13878. if (hasExistingContent) {
  13879. ReactInstrumentation.debugTool.onUnmountComponent(this._contentDebugID);
  13880. }
  13881. this._contentDebugID = null;
  13882. return;
  13883. }
  13884. validateDOMNesting(null, String(content), this, this._ancestorInfo);
  13885. this._contentDebugID = contentDebugID;
  13886. if (hasExistingContent) {
  13887. ReactInstrumentation.debugTool.onBeforeUpdateComponent(contentDebugID, content);
  13888. ReactInstrumentation.debugTool.onUpdateComponent(contentDebugID);
  13889. } else {
  13890. ReactInstrumentation.debugTool.onBeforeMountComponent(contentDebugID, content, debugID);
  13891. ReactInstrumentation.debugTool.onMountComponent(contentDebugID);
  13892. ReactInstrumentation.debugTool.onSetChildren(debugID, [contentDebugID]);
  13893. }
  13894. };
  13895. }
  13896. // There are so many media events, it makes sense to just
  13897. // maintain a list rather than create a `trapBubbledEvent` for each
  13898. var mediaEvents = {
  13899. topAbort: 'abort',
  13900. topCanPlay: 'canplay',
  13901. topCanPlayThrough: 'canplaythrough',
  13902. topDurationChange: 'durationchange',
  13903. topEmptied: 'emptied',
  13904. topEncrypted: 'encrypted',
  13905. topEnded: 'ended',
  13906. topError: 'error',
  13907. topLoadedData: 'loadeddata',
  13908. topLoadedMetadata: 'loadedmetadata',
  13909. topLoadStart: 'loadstart',
  13910. topPause: 'pause',
  13911. topPlay: 'play',
  13912. topPlaying: 'playing',
  13913. topProgress: 'progress',
  13914. topRateChange: 'ratechange',
  13915. topSeeked: 'seeked',
  13916. topSeeking: 'seeking',
  13917. topStalled: 'stalled',
  13918. topSuspend: 'suspend',
  13919. topTimeUpdate: 'timeupdate',
  13920. topVolumeChange: 'volumechange',
  13921. topWaiting: 'waiting'
  13922. };
  13923. function trapBubbledEventsLocal() {
  13924. var inst = this;
  13925. // If a component renders to null or if another component fatals and causes
  13926. // the state of the tree to be corrupted, `node` here can be null.
  13927. !inst._rootNodeID ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Must be mounted to trap events') : _prodInvariant('63') : void 0;
  13928. var node = getNode(inst);
  13929. !node ? process.env.NODE_ENV !== 'production' ? invariant(false, 'trapBubbledEvent(...): Requires node to be rendered.') : _prodInvariant('64') : void 0;
  13930. switch (inst._tag) {
  13931. case 'iframe':
  13932. case 'object':
  13933. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
  13934. break;
  13935. case 'video':
  13936. case 'audio':
  13937. inst._wrapperState.listeners = [];
  13938. // Create listener for each media event
  13939. for (var event in mediaEvents) {
  13940. if (mediaEvents.hasOwnProperty(event)) {
  13941. inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node));
  13942. }
  13943. }
  13944. break;
  13945. case 'source':
  13946. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node)];
  13947. break;
  13948. case 'img':
  13949. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
  13950. break;
  13951. case 'form':
  13952. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node)];
  13953. break;
  13954. case 'input':
  13955. case 'select':
  13956. case 'textarea':
  13957. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node)];
  13958. break;
  13959. }
  13960. }
  13961. function postUpdateSelectWrapper() {
  13962. ReactDOMSelect.postUpdateWrapper(this);
  13963. }
  13964. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  13965. // those special-case tags.
  13966. var omittedCloseTags = {
  13967. 'area': true,
  13968. 'base': true,
  13969. 'br': true,
  13970. 'col': true,
  13971. 'embed': true,
  13972. 'hr': true,
  13973. 'img': true,
  13974. 'input': true,
  13975. 'keygen': true,
  13976. 'link': true,
  13977. 'meta': true,
  13978. 'param': true,
  13979. 'source': true,
  13980. 'track': true,
  13981. 'wbr': true
  13982. };
  13983. var newlineEatingTags = {
  13984. 'listing': true,
  13985. 'pre': true,
  13986. 'textarea': true
  13987. };
  13988. // For HTML, certain tags cannot have children. This has the same purpose as
  13989. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  13990. var voidElementTags = _assign({
  13991. 'menuitem': true
  13992. }, omittedCloseTags);
  13993. // We accept any tag to be rendered but since this gets injected into arbitrary
  13994. // HTML, we want to make sure that it's a safe tag.
  13995. // http://www.w3.org/TR/REC-xml/#NT-Name
  13996. var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; // Simplified subset
  13997. var validatedTagCache = {};
  13998. var hasOwnProperty = {}.hasOwnProperty;
  13999. function validateDangerousTag(tag) {
  14000. if (!hasOwnProperty.call(validatedTagCache, tag)) {
  14001. !VALID_TAG_REGEX.test(tag) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Invalid tag: %s', tag) : _prodInvariant('65', tag) : void 0;
  14002. validatedTagCache[tag] = true;
  14003. }
  14004. }
  14005. function isCustomComponent(tagName, props) {
  14006. return tagName.indexOf('-') >= 0 || props.is != null;
  14007. }
  14008. var globalIdCounter = 1;
  14009. /**
  14010. * Creates a new React class that is idempotent and capable of containing other
  14011. * React components. It accepts event listeners and DOM properties that are
  14012. * valid according to `DOMProperty`.
  14013. *
  14014. * - Event listeners: `onClick`, `onMouseDown`, etc.
  14015. * - DOM properties: `className`, `name`, `title`, etc.
  14016. *
  14017. * The `style` property functions differently from the DOM API. It accepts an
  14018. * object mapping of style properties to values.
  14019. *
  14020. * @constructor ReactDOMComponent
  14021. * @extends ReactMultiChild
  14022. */
  14023. function ReactDOMComponent(element) {
  14024. var tag = element.type;
  14025. validateDangerousTag(tag);
  14026. this._currentElement = element;
  14027. this._tag = tag.toLowerCase();
  14028. this._namespaceURI = null;
  14029. this._renderedChildren = null;
  14030. this._previousStyle = null;
  14031. this._previousStyleCopy = null;
  14032. this._hostNode = null;
  14033. this._hostParent = null;
  14034. this._rootNodeID = 0;
  14035. this._domID = 0;
  14036. this._hostContainerInfo = null;
  14037. this._wrapperState = null;
  14038. this._topLevelWrapper = null;
  14039. this._flags = 0;
  14040. if (process.env.NODE_ENV !== 'production') {
  14041. this._ancestorInfo = null;
  14042. setAndValidateContentChildDev.call(this, null);
  14043. }
  14044. }
  14045. ReactDOMComponent.displayName = 'ReactDOMComponent';
  14046. ReactDOMComponent.Mixin = {
  14047. /**
  14048. * Generates root tag markup then recurses. This method has side effects and
  14049. * is not idempotent.
  14050. *
  14051. * @internal
  14052. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14053. * @param {?ReactDOMComponent} the parent component instance
  14054. * @param {?object} info about the host container
  14055. * @param {object} context
  14056. * @return {string} The computed markup.
  14057. */
  14058. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  14059. this._rootNodeID = globalIdCounter++;
  14060. this._domID = hostContainerInfo._idCounter++;
  14061. this._hostParent = hostParent;
  14062. this._hostContainerInfo = hostContainerInfo;
  14063. var props = this._currentElement.props;
  14064. switch (this._tag) {
  14065. case 'audio':
  14066. case 'form':
  14067. case 'iframe':
  14068. case 'img':
  14069. case 'link':
  14070. case 'object':
  14071. case 'source':
  14072. case 'video':
  14073. this._wrapperState = {
  14074. listeners: null
  14075. };
  14076. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14077. break;
  14078. case 'input':
  14079. ReactDOMInput.mountWrapper(this, props, hostParent);
  14080. props = ReactDOMInput.getHostProps(this, props);
  14081. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14082. break;
  14083. case 'option':
  14084. ReactDOMOption.mountWrapper(this, props, hostParent);
  14085. props = ReactDOMOption.getHostProps(this, props);
  14086. break;
  14087. case 'select':
  14088. ReactDOMSelect.mountWrapper(this, props, hostParent);
  14089. props = ReactDOMSelect.getHostProps(this, props);
  14090. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14091. break;
  14092. case 'textarea':
  14093. ReactDOMTextarea.mountWrapper(this, props, hostParent);
  14094. props = ReactDOMTextarea.getHostProps(this, props);
  14095. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14096. break;
  14097. }
  14098. assertValidProps(this, props);
  14099. // We create tags in the namespace of their parent container, except HTML
  14100. // tags get no namespace.
  14101. var namespaceURI;
  14102. var parentTag;
  14103. if (hostParent != null) {
  14104. namespaceURI = hostParent._namespaceURI;
  14105. parentTag = hostParent._tag;
  14106. } else if (hostContainerInfo._tag) {
  14107. namespaceURI = hostContainerInfo._namespaceURI;
  14108. parentTag = hostContainerInfo._tag;
  14109. }
  14110. if (namespaceURI == null || namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject') {
  14111. namespaceURI = DOMNamespaces.html;
  14112. }
  14113. if (namespaceURI === DOMNamespaces.html) {
  14114. if (this._tag === 'svg') {
  14115. namespaceURI = DOMNamespaces.svg;
  14116. } else if (this._tag === 'math') {
  14117. namespaceURI = DOMNamespaces.mathml;
  14118. }
  14119. }
  14120. this._namespaceURI = namespaceURI;
  14121. if (process.env.NODE_ENV !== 'production') {
  14122. var parentInfo;
  14123. if (hostParent != null) {
  14124. parentInfo = hostParent._ancestorInfo;
  14125. } else if (hostContainerInfo._tag) {
  14126. parentInfo = hostContainerInfo._ancestorInfo;
  14127. }
  14128. if (parentInfo) {
  14129. // parentInfo should always be present except for the top-level
  14130. // component when server rendering
  14131. validateDOMNesting(this._tag, null, this, parentInfo);
  14132. }
  14133. this._ancestorInfo = validateDOMNesting.updatedAncestorInfo(parentInfo, this._tag, this);
  14134. }
  14135. var mountImage;
  14136. if (transaction.useCreateElement) {
  14137. var ownerDocument = hostContainerInfo._ownerDocument;
  14138. var el;
  14139. if (namespaceURI === DOMNamespaces.html) {
  14140. if (this._tag === 'script') {
  14141. // Create the script via .innerHTML so its "parser-inserted" flag is
  14142. // set to true and it does not execute
  14143. var div = ownerDocument.createElement('div');
  14144. var type = this._currentElement.type;
  14145. div.innerHTML = '<' + type + '></' + type + '>';
  14146. el = div.removeChild(div.firstChild);
  14147. } else if (props.is) {
  14148. el = ownerDocument.createElement(this._currentElement.type, props.is);
  14149. } else {
  14150. // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
  14151. // See discussion in https://github.com/facebook/react/pull/6896
  14152. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  14153. el = ownerDocument.createElement(this._currentElement.type);
  14154. }
  14155. } else {
  14156. el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type);
  14157. }
  14158. ReactDOMComponentTree.precacheNode(this, el);
  14159. this._flags |= Flags.hasCachedChildNodes;
  14160. if (!this._hostParent) {
  14161. DOMPropertyOperations.setAttributeForRoot(el);
  14162. }
  14163. this._updateDOMProperties(null, props, transaction);
  14164. var lazyTree = DOMLazyTree(el);
  14165. this._createInitialChildren(transaction, props, context, lazyTree);
  14166. mountImage = lazyTree;
  14167. } else {
  14168. var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props);
  14169. var tagContent = this._createContentMarkup(transaction, props, context);
  14170. if (!tagContent && omittedCloseTags[this._tag]) {
  14171. mountImage = tagOpen + '/>';
  14172. } else {
  14173. mountImage = tagOpen + '>' + tagContent + '</' + this._currentElement.type + '>';
  14174. }
  14175. }
  14176. switch (this._tag) {
  14177. case 'input':
  14178. transaction.getReactMountReady().enqueue(inputPostMount, this);
  14179. if (props.autoFocus) {
  14180. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14181. }
  14182. break;
  14183. case 'textarea':
  14184. transaction.getReactMountReady().enqueue(textareaPostMount, this);
  14185. if (props.autoFocus) {
  14186. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14187. }
  14188. break;
  14189. case 'select':
  14190. if (props.autoFocus) {
  14191. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14192. }
  14193. break;
  14194. case 'button':
  14195. if (props.autoFocus) {
  14196. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14197. }
  14198. break;
  14199. case 'option':
  14200. transaction.getReactMountReady().enqueue(optionPostMount, this);
  14201. break;
  14202. }
  14203. return mountImage;
  14204. },
  14205. /**
  14206. * Creates markup for the open tag and all attributes.
  14207. *
  14208. * This method has side effects because events get registered.
  14209. *
  14210. * Iterating over object properties is faster than iterating over arrays.
  14211. * @see http://jsperf.com/obj-vs-arr-iteration
  14212. *
  14213. * @private
  14214. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14215. * @param {object} props
  14216. * @return {string} Markup of opening tag.
  14217. */
  14218. _createOpenTagMarkupAndPutListeners: function (transaction, props) {
  14219. var ret = '<' + this._currentElement.type;
  14220. for (var propKey in props) {
  14221. if (!props.hasOwnProperty(propKey)) {
  14222. continue;
  14223. }
  14224. var propValue = props[propKey];
  14225. if (propValue == null) {
  14226. continue;
  14227. }
  14228. if (registrationNameModules.hasOwnProperty(propKey)) {
  14229. if (propValue) {
  14230. enqueuePutListener(this, propKey, propValue, transaction);
  14231. }
  14232. } else {
  14233. if (propKey === STYLE) {
  14234. if (propValue) {
  14235. if (process.env.NODE_ENV !== 'production') {
  14236. // See `_updateDOMProperties`. style block
  14237. this._previousStyle = propValue;
  14238. }
  14239. propValue = this._previousStyleCopy = _assign({}, props.style);
  14240. }
  14241. propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this);
  14242. }
  14243. var markup = null;
  14244. if (this._tag != null && isCustomComponent(this._tag, props)) {
  14245. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14246. markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue);
  14247. }
  14248. } else {
  14249. markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue);
  14250. }
  14251. if (markup) {
  14252. ret += ' ' + markup;
  14253. }
  14254. }
  14255. }
  14256. // For static pages, no need to put React ID and checksum. Saves lots of
  14257. // bytes.
  14258. if (transaction.renderToStaticMarkup) {
  14259. return ret;
  14260. }
  14261. if (!this._hostParent) {
  14262. ret += ' ' + DOMPropertyOperations.createMarkupForRoot();
  14263. }
  14264. ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID);
  14265. return ret;
  14266. },
  14267. /**
  14268. * Creates markup for the content between the tags.
  14269. *
  14270. * @private
  14271. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14272. * @param {object} props
  14273. * @param {object} context
  14274. * @return {string} Content markup.
  14275. */
  14276. _createContentMarkup: function (transaction, props, context) {
  14277. var ret = '';
  14278. // Intentional use of != to avoid catching zero/false.
  14279. var innerHTML = props.dangerouslySetInnerHTML;
  14280. if (innerHTML != null) {
  14281. if (innerHTML.__html != null) {
  14282. ret = innerHTML.__html;
  14283. }
  14284. } else {
  14285. var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
  14286. var childrenToUse = contentToUse != null ? null : props.children;
  14287. if (contentToUse != null) {
  14288. // TODO: Validate that text is allowed as a child of this node
  14289. ret = escapeTextContentForBrowser(contentToUse);
  14290. if (process.env.NODE_ENV !== 'production') {
  14291. setAndValidateContentChildDev.call(this, contentToUse);
  14292. }
  14293. } else if (childrenToUse != null) {
  14294. var mountImages = this.mountChildren(childrenToUse, transaction, context);
  14295. ret = mountImages.join('');
  14296. }
  14297. }
  14298. if (newlineEatingTags[this._tag] && ret.charAt(0) === '\n') {
  14299. // text/html ignores the first character in these tags if it's a newline
  14300. // Prefer to break application/xml over text/html (for now) by adding
  14301. // a newline specifically to get eaten by the parser. (Alternately for
  14302. // textareas, replacing "^\n" with "\r\n" doesn't get eaten, and the first
  14303. // \r is normalized out by HTMLTextAreaElement#value.)
  14304. // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>
  14305. // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>
  14306. // See: <http://www.w3.org/TR/html5/syntax.html#newlines>
  14307. // See: Parsing of "textarea" "listing" and "pre" elements
  14308. // from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>
  14309. return '\n' + ret;
  14310. } else {
  14311. return ret;
  14312. }
  14313. },
  14314. _createInitialChildren: function (transaction, props, context, lazyTree) {
  14315. // Intentional use of != to avoid catching zero/false.
  14316. var innerHTML = props.dangerouslySetInnerHTML;
  14317. if (innerHTML != null) {
  14318. if (innerHTML.__html != null) {
  14319. DOMLazyTree.queueHTML(lazyTree, innerHTML.__html);
  14320. }
  14321. } else {
  14322. var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
  14323. var childrenToUse = contentToUse != null ? null : props.children;
  14324. // TODO: Validate that text is allowed as a child of this node
  14325. if (contentToUse != null) {
  14326. // Avoid setting textContent when the text is empty. In IE11 setting
  14327. // textContent on a text area will cause the placeholder to not
  14328. // show within the textarea until it has been focused and blurred again.
  14329. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  14330. if (contentToUse !== '') {
  14331. if (process.env.NODE_ENV !== 'production') {
  14332. setAndValidateContentChildDev.call(this, contentToUse);
  14333. }
  14334. DOMLazyTree.queueText(lazyTree, contentToUse);
  14335. }
  14336. } else if (childrenToUse != null) {
  14337. var mountImages = this.mountChildren(childrenToUse, transaction, context);
  14338. for (var i = 0; i < mountImages.length; i++) {
  14339. DOMLazyTree.queueChild(lazyTree, mountImages[i]);
  14340. }
  14341. }
  14342. }
  14343. },
  14344. /**
  14345. * Receives a next element and updates the component.
  14346. *
  14347. * @internal
  14348. * @param {ReactElement} nextElement
  14349. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14350. * @param {object} context
  14351. */
  14352. receiveComponent: function (nextElement, transaction, context) {
  14353. var prevElement = this._currentElement;
  14354. this._currentElement = nextElement;
  14355. this.updateComponent(transaction, prevElement, nextElement, context);
  14356. },
  14357. /**
  14358. * Updates a DOM component after it has already been allocated and
  14359. * attached to the DOM. Reconciles the root DOM node, then recurses.
  14360. *
  14361. * @param {ReactReconcileTransaction} transaction
  14362. * @param {ReactElement} prevElement
  14363. * @param {ReactElement} nextElement
  14364. * @internal
  14365. * @overridable
  14366. */
  14367. updateComponent: function (transaction, prevElement, nextElement, context) {
  14368. var lastProps = prevElement.props;
  14369. var nextProps = this._currentElement.props;
  14370. switch (this._tag) {
  14371. case 'input':
  14372. lastProps = ReactDOMInput.getHostProps(this, lastProps);
  14373. nextProps = ReactDOMInput.getHostProps(this, nextProps);
  14374. break;
  14375. case 'option':
  14376. lastProps = ReactDOMOption.getHostProps(this, lastProps);
  14377. nextProps = ReactDOMOption.getHostProps(this, nextProps);
  14378. break;
  14379. case 'select':
  14380. lastProps = ReactDOMSelect.getHostProps(this, lastProps);
  14381. nextProps = ReactDOMSelect.getHostProps(this, nextProps);
  14382. break;
  14383. case 'textarea':
  14384. lastProps = ReactDOMTextarea.getHostProps(this, lastProps);
  14385. nextProps = ReactDOMTextarea.getHostProps(this, nextProps);
  14386. break;
  14387. }
  14388. assertValidProps(this, nextProps);
  14389. this._updateDOMProperties(lastProps, nextProps, transaction);
  14390. this._updateDOMChildren(lastProps, nextProps, transaction, context);
  14391. switch (this._tag) {
  14392. case 'input':
  14393. // Update the wrapper around inputs *after* updating props. This has to
  14394. // happen after `_updateDOMProperties`. Otherwise HTML5 input validations
  14395. // raise warnings and prevent the new value from being assigned.
  14396. ReactDOMInput.updateWrapper(this);
  14397. break;
  14398. case 'textarea':
  14399. ReactDOMTextarea.updateWrapper(this);
  14400. break;
  14401. case 'select':
  14402. // <select> value update needs to occur after <option> children
  14403. // reconciliation
  14404. transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this);
  14405. break;
  14406. }
  14407. },
  14408. /**
  14409. * Reconciles the properties by detecting differences in property values and
  14410. * updating the DOM as necessary. This function is probably the single most
  14411. * critical path for performance optimization.
  14412. *
  14413. * TODO: Benchmark whether checking for changed values in memory actually
  14414. * improves performance (especially statically positioned elements).
  14415. * TODO: Benchmark the effects of putting this at the top since 99% of props
  14416. * do not change for a given reconciliation.
  14417. * TODO: Benchmark areas that can be improved with caching.
  14418. *
  14419. * @private
  14420. * @param {object} lastProps
  14421. * @param {object} nextProps
  14422. * @param {?DOMElement} node
  14423. */
  14424. _updateDOMProperties: function (lastProps, nextProps, transaction) {
  14425. var propKey;
  14426. var styleName;
  14427. var styleUpdates;
  14428. for (propKey in lastProps) {
  14429. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  14430. continue;
  14431. }
  14432. if (propKey === STYLE) {
  14433. var lastStyle = this._previousStyleCopy;
  14434. for (styleName in lastStyle) {
  14435. if (lastStyle.hasOwnProperty(styleName)) {
  14436. styleUpdates = styleUpdates || {};
  14437. styleUpdates[styleName] = '';
  14438. }
  14439. }
  14440. this._previousStyleCopy = null;
  14441. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  14442. if (lastProps[propKey]) {
  14443. // Only call deleteListener if there was a listener previously or
  14444. // else willDeleteListener gets called when there wasn't actually a
  14445. // listener (e.g., onClick={null})
  14446. deleteListener(this, propKey);
  14447. }
  14448. } else if (isCustomComponent(this._tag, lastProps)) {
  14449. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14450. DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey);
  14451. }
  14452. } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
  14453. DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
  14454. }
  14455. }
  14456. for (propKey in nextProps) {
  14457. var nextProp = nextProps[propKey];
  14458. var lastProp = propKey === STYLE ? this._previousStyleCopy : lastProps != null ? lastProps[propKey] : undefined;
  14459. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  14460. continue;
  14461. }
  14462. if (propKey === STYLE) {
  14463. if (nextProp) {
  14464. if (process.env.NODE_ENV !== 'production') {
  14465. checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this);
  14466. this._previousStyle = nextProp;
  14467. }
  14468. nextProp = this._previousStyleCopy = _assign({}, nextProp);
  14469. } else {
  14470. this._previousStyleCopy = null;
  14471. }
  14472. if (lastProp) {
  14473. // Unset styles on `lastProp` but not on `nextProp`.
  14474. for (styleName in lastProp) {
  14475. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  14476. styleUpdates = styleUpdates || {};
  14477. styleUpdates[styleName] = '';
  14478. }
  14479. }
  14480. // Update styles that changed since `lastProp`.
  14481. for (styleName in nextProp) {
  14482. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  14483. styleUpdates = styleUpdates || {};
  14484. styleUpdates[styleName] = nextProp[styleName];
  14485. }
  14486. }
  14487. } else {
  14488. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  14489. styleUpdates = nextProp;
  14490. }
  14491. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  14492. if (nextProp) {
  14493. enqueuePutListener(this, propKey, nextProp, transaction);
  14494. } else if (lastProp) {
  14495. deleteListener(this, propKey);
  14496. }
  14497. } else if (isCustomComponent(this._tag, nextProps)) {
  14498. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14499. DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp);
  14500. }
  14501. } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
  14502. var node = getNode(this);
  14503. // If we're updating to null or undefined, we should remove the property
  14504. // from the DOM node instead of inadvertently setting to a string. This
  14505. // brings us in line with the same behavior we have on initial render.
  14506. if (nextProp != null) {
  14507. DOMPropertyOperations.setValueForProperty(node, propKey, nextProp);
  14508. } else {
  14509. DOMPropertyOperations.deleteValueForProperty(node, propKey);
  14510. }
  14511. }
  14512. }
  14513. if (styleUpdates) {
  14514. CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this);
  14515. }
  14516. },
  14517. /**
  14518. * Reconciles the children with the various properties that affect the
  14519. * children content.
  14520. *
  14521. * @param {object} lastProps
  14522. * @param {object} nextProps
  14523. * @param {ReactReconcileTransaction} transaction
  14524. * @param {object} context
  14525. */
  14526. _updateDOMChildren: function (lastProps, nextProps, transaction, context) {
  14527. var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null;
  14528. var nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null;
  14529. var lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html;
  14530. var nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html;
  14531. // Note the use of `!=` which checks for null or undefined.
  14532. var lastChildren = lastContent != null ? null : lastProps.children;
  14533. var nextChildren = nextContent != null ? null : nextProps.children;
  14534. // If we're switching from children to content/html or vice versa, remove
  14535. // the old content
  14536. var lastHasContentOrHtml = lastContent != null || lastHtml != null;
  14537. var nextHasContentOrHtml = nextContent != null || nextHtml != null;
  14538. if (lastChildren != null && nextChildren == null) {
  14539. this.updateChildren(null, transaction, context);
  14540. } else if (lastHasContentOrHtml && !nextHasContentOrHtml) {
  14541. this.updateTextContent('');
  14542. if (process.env.NODE_ENV !== 'production') {
  14543. ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
  14544. }
  14545. }
  14546. if (nextContent != null) {
  14547. if (lastContent !== nextContent) {
  14548. this.updateTextContent('' + nextContent);
  14549. if (process.env.NODE_ENV !== 'production') {
  14550. setAndValidateContentChildDev.call(this, nextContent);
  14551. }
  14552. }
  14553. } else if (nextHtml != null) {
  14554. if (lastHtml !== nextHtml) {
  14555. this.updateMarkup('' + nextHtml);
  14556. }
  14557. if (process.env.NODE_ENV !== 'production') {
  14558. ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
  14559. }
  14560. } else if (nextChildren != null) {
  14561. if (process.env.NODE_ENV !== 'production') {
  14562. setAndValidateContentChildDev.call(this, null);
  14563. }
  14564. this.updateChildren(nextChildren, transaction, context);
  14565. }
  14566. },
  14567. getHostNode: function () {
  14568. return getNode(this);
  14569. },
  14570. /**
  14571. * Destroys all event registrations for this instance. Does not remove from
  14572. * the DOM. That must be done by the parent.
  14573. *
  14574. * @internal
  14575. */
  14576. unmountComponent: function (safely) {
  14577. switch (this._tag) {
  14578. case 'audio':
  14579. case 'form':
  14580. case 'iframe':
  14581. case 'img':
  14582. case 'link':
  14583. case 'object':
  14584. case 'source':
  14585. case 'video':
  14586. var listeners = this._wrapperState.listeners;
  14587. if (listeners) {
  14588. for (var i = 0; i < listeners.length; i++) {
  14589. listeners[i].remove();
  14590. }
  14591. }
  14592. break;
  14593. case 'html':
  14594. case 'head':
  14595. case 'body':
  14596. /**
  14597. * Components like <html> <head> and <body> can't be removed or added
  14598. * easily in a cross-browser way, however it's valuable to be able to
  14599. * take advantage of React's reconciliation for styling and <title>
  14600. * management. So we just document it and throw in dangerous cases.
  14601. */
  14602. true ? process.env.NODE_ENV !== 'production' ? invariant(false, '<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.', this._tag) : _prodInvariant('66', this._tag) : void 0;
  14603. break;
  14604. }
  14605. this.unmountChildren(safely);
  14606. ReactDOMComponentTree.uncacheNode(this);
  14607. EventPluginHub.deleteAllListeners(this);
  14608. this._rootNodeID = 0;
  14609. this._domID = 0;
  14610. this._wrapperState = null;
  14611. if (process.env.NODE_ENV !== 'production') {
  14612. setAndValidateContentChildDev.call(this, null);
  14613. }
  14614. },
  14615. getPublicInstance: function () {
  14616. return getNode(this);
  14617. }
  14618. };
  14619. _assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin);
  14620. module.exports = ReactDOMComponent;
  14621. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14622. /***/ }),
  14623. /* 127 */
  14624. /***/ (function(module, exports, __webpack_require__) {
  14625. "use strict";
  14626. /**
  14627. * Copyright 2013-present, Facebook, Inc.
  14628. * All rights reserved.
  14629. *
  14630. * This source code is licensed under the BSD-style license found in the
  14631. * LICENSE file in the root directory of this source tree. An additional grant
  14632. * of patent rights can be found in the PATENTS file in the same directory.
  14633. *
  14634. */
  14635. var ReactDOMComponentTree = __webpack_require__(5);
  14636. var focusNode = __webpack_require__(65);
  14637. var AutoFocusUtils = {
  14638. focusDOMComponent: function () {
  14639. focusNode(ReactDOMComponentTree.getNodeFromInstance(this));
  14640. }
  14641. };
  14642. module.exports = AutoFocusUtils;
  14643. /***/ }),
  14644. /* 128 */
  14645. /***/ (function(module, exports, __webpack_require__) {
  14646. "use strict";
  14647. /* WEBPACK VAR INJECTION */(function(process) {/**
  14648. * Copyright 2013-present, Facebook, Inc.
  14649. * All rights reserved.
  14650. *
  14651. * This source code is licensed under the BSD-style license found in the
  14652. * LICENSE file in the root directory of this source tree. An additional grant
  14653. * of patent rights can be found in the PATENTS file in the same directory.
  14654. *
  14655. */
  14656. var CSSProperty = __webpack_require__(66);
  14657. var ExecutionEnvironment = __webpack_require__(6);
  14658. var ReactInstrumentation = __webpack_require__(9);
  14659. var camelizeStyleName = __webpack_require__(129);
  14660. var dangerousStyleValue = __webpack_require__(131);
  14661. var hyphenateStyleName = __webpack_require__(132);
  14662. var memoizeStringOnly = __webpack_require__(134);
  14663. var warning = __webpack_require__(2);
  14664. var processStyleName = memoizeStringOnly(function (styleName) {
  14665. return hyphenateStyleName(styleName);
  14666. });
  14667. var hasShorthandPropertyBug = false;
  14668. var styleFloatAccessor = 'cssFloat';
  14669. if (ExecutionEnvironment.canUseDOM) {
  14670. var tempStyle = document.createElement('div').style;
  14671. try {
  14672. // IE8 throws "Invalid argument." if resetting shorthand style properties.
  14673. tempStyle.font = '';
  14674. } catch (e) {
  14675. hasShorthandPropertyBug = true;
  14676. }
  14677. // IE8 only supports accessing cssFloat (standard) as styleFloat
  14678. if (document.documentElement.style.cssFloat === undefined) {
  14679. styleFloatAccessor = 'styleFloat';
  14680. }
  14681. }
  14682. if (process.env.NODE_ENV !== 'production') {
  14683. // 'msTransform' is correct, but the other prefixes should be capitalized
  14684. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  14685. // style values shouldn't contain a semicolon
  14686. var badStyleValueWithSemicolonPattern = /;\s*$/;
  14687. var warnedStyleNames = {};
  14688. var warnedStyleValues = {};
  14689. var warnedForNaNValue = false;
  14690. var warnHyphenatedStyleName = function (name, owner) {
  14691. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14692. return;
  14693. }
  14694. warnedStyleNames[name] = true;
  14695. process.env.NODE_ENV !== 'production' ? warning(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner)) : void 0;
  14696. };
  14697. var warnBadVendoredStyleName = function (name, owner) {
  14698. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14699. return;
  14700. }
  14701. warnedStyleNames[name] = true;
  14702. process.env.NODE_ENV !== 'production' ? warning(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0;
  14703. };
  14704. var warnStyleValueWithSemicolon = function (name, value, owner) {
  14705. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  14706. return;
  14707. }
  14708. warnedStyleValues[value] = true;
  14709. process.env.NODE_ENV !== 'production' ? warning(false, 'Style property values shouldn\'t contain a semicolon.%s ' + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0;
  14710. };
  14711. var warnStyleValueIsNaN = function (name, value, owner) {
  14712. if (warnedForNaNValue) {
  14713. return;
  14714. }
  14715. warnedForNaNValue = true;
  14716. process.env.NODE_ENV !== 'production' ? warning(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0;
  14717. };
  14718. var checkRenderMessage = function (owner) {
  14719. if (owner) {
  14720. var name = owner.getName();
  14721. if (name) {
  14722. return ' Check the render method of `' + name + '`.';
  14723. }
  14724. }
  14725. return '';
  14726. };
  14727. /**
  14728. * @param {string} name
  14729. * @param {*} value
  14730. * @param {ReactDOMComponent} component
  14731. */
  14732. var warnValidStyle = function (name, value, component) {
  14733. var owner;
  14734. if (component) {
  14735. owner = component._currentElement._owner;
  14736. }
  14737. if (name.indexOf('-') > -1) {
  14738. warnHyphenatedStyleName(name, owner);
  14739. } else if (badVendoredStyleNamePattern.test(name)) {
  14740. warnBadVendoredStyleName(name, owner);
  14741. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  14742. warnStyleValueWithSemicolon(name, value, owner);
  14743. }
  14744. if (typeof value === 'number' && isNaN(value)) {
  14745. warnStyleValueIsNaN(name, value, owner);
  14746. }
  14747. };
  14748. }
  14749. /**
  14750. * Operations for dealing with CSS properties.
  14751. */
  14752. var CSSPropertyOperations = {
  14753. /**
  14754. * Serializes a mapping of style properties for use as inline styles:
  14755. *
  14756. * > createMarkupForStyles({width: '200px', height: 0})
  14757. * "width:200px;height:0;"
  14758. *
  14759. * Undefined values are ignored so that declarative programming is easier.
  14760. * The result should be HTML-escaped before insertion into the DOM.
  14761. *
  14762. * @param {object} styles
  14763. * @param {ReactDOMComponent} component
  14764. * @return {?string}
  14765. */
  14766. createMarkupForStyles: function (styles, component) {
  14767. var serialized = '';
  14768. for (var styleName in styles) {
  14769. if (!styles.hasOwnProperty(styleName)) {
  14770. continue;
  14771. }
  14772. var styleValue = styles[styleName];
  14773. if (process.env.NODE_ENV !== 'production') {
  14774. warnValidStyle(styleName, styleValue, component);
  14775. }
  14776. if (styleValue != null) {
  14777. serialized += processStyleName(styleName) + ':';
  14778. serialized += dangerousStyleValue(styleName, styleValue, component) + ';';
  14779. }
  14780. }
  14781. return serialized || null;
  14782. },
  14783. /**
  14784. * Sets the value for multiple styles on a node. If a value is specified as
  14785. * '' (empty string), the corresponding style property will be unset.
  14786. *
  14787. * @param {DOMElement} node
  14788. * @param {object} styles
  14789. * @param {ReactDOMComponent} component
  14790. */
  14791. setValueForStyles: function (node, styles, component) {
  14792. if (process.env.NODE_ENV !== 'production') {
  14793. ReactInstrumentation.debugTool.onHostOperation({
  14794. instanceID: component._debugID,
  14795. type: 'update styles',
  14796. payload: styles
  14797. });
  14798. }
  14799. var style = node.style;
  14800. for (var styleName in styles) {
  14801. if (!styles.hasOwnProperty(styleName)) {
  14802. continue;
  14803. }
  14804. if (process.env.NODE_ENV !== 'production') {
  14805. warnValidStyle(styleName, styles[styleName], component);
  14806. }
  14807. var styleValue = dangerousStyleValue(styleName, styles[styleName], component);
  14808. if (styleName === 'float' || styleName === 'cssFloat') {
  14809. styleName = styleFloatAccessor;
  14810. }
  14811. if (styleValue) {
  14812. style[styleName] = styleValue;
  14813. } else {
  14814. var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName];
  14815. if (expansion) {
  14816. // Shorthand property that IE8 won't like unsetting, so unset each
  14817. // component to placate it
  14818. for (var individualStyleName in expansion) {
  14819. style[individualStyleName] = '';
  14820. }
  14821. } else {
  14822. style[styleName] = '';
  14823. }
  14824. }
  14825. }
  14826. }
  14827. };
  14828. module.exports = CSSPropertyOperations;
  14829. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14830. /***/ }),
  14831. /* 129 */
  14832. /***/ (function(module, exports, __webpack_require__) {
  14833. "use strict";
  14834. /**
  14835. * Copyright (c) 2013-present, Facebook, Inc.
  14836. *
  14837. * This source code is licensed under the MIT license found in the
  14838. * LICENSE file in the root directory of this source tree.
  14839. *
  14840. * @typechecks
  14841. */
  14842. var camelize = __webpack_require__(130);
  14843. var msPattern = /^-ms-/;
  14844. /**
  14845. * Camelcases a hyphenated CSS property name, for example:
  14846. *
  14847. * > camelizeStyleName('background-color')
  14848. * < "backgroundColor"
  14849. * > camelizeStyleName('-moz-transition')
  14850. * < "MozTransition"
  14851. * > camelizeStyleName('-ms-transition')
  14852. * < "msTransition"
  14853. *
  14854. * As Andi Smith suggests
  14855. * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  14856. * is converted to lowercase `ms`.
  14857. *
  14858. * @param {string} string
  14859. * @return {string}
  14860. */
  14861. function camelizeStyleName(string) {
  14862. return camelize(string.replace(msPattern, 'ms-'));
  14863. }
  14864. module.exports = camelizeStyleName;
  14865. /***/ }),
  14866. /* 130 */
  14867. /***/ (function(module, exports, __webpack_require__) {
  14868. "use strict";
  14869. /**
  14870. * Copyright (c) 2013-present, Facebook, Inc.
  14871. *
  14872. * This source code is licensed under the MIT license found in the
  14873. * LICENSE file in the root directory of this source tree.
  14874. *
  14875. * @typechecks
  14876. */
  14877. var _hyphenPattern = /-(.)/g;
  14878. /**
  14879. * Camelcases a hyphenated string, for example:
  14880. *
  14881. * > camelize('background-color')
  14882. * < "backgroundColor"
  14883. *
  14884. * @param {string} string
  14885. * @return {string}
  14886. */
  14887. function camelize(string) {
  14888. return string.replace(_hyphenPattern, function (_, character) {
  14889. return character.toUpperCase();
  14890. });
  14891. }
  14892. module.exports = camelize;
  14893. /***/ }),
  14894. /* 131 */
  14895. /***/ (function(module, exports, __webpack_require__) {
  14896. "use strict";
  14897. /* WEBPACK VAR INJECTION */(function(process) {/**
  14898. * Copyright 2013-present, Facebook, Inc.
  14899. * All rights reserved.
  14900. *
  14901. * This source code is licensed under the BSD-style license found in the
  14902. * LICENSE file in the root directory of this source tree. An additional grant
  14903. * of patent rights can be found in the PATENTS file in the same directory.
  14904. *
  14905. */
  14906. var CSSProperty = __webpack_require__(66);
  14907. var warning = __webpack_require__(2);
  14908. var isUnitlessNumber = CSSProperty.isUnitlessNumber;
  14909. var styleWarnings = {};
  14910. /**
  14911. * Convert a value into the proper css writable value. The style name `name`
  14912. * should be logical (no hyphens), as specified
  14913. * in `CSSProperty.isUnitlessNumber`.
  14914. *
  14915. * @param {string} name CSS property name such as `topMargin`.
  14916. * @param {*} value CSS property value such as `10px`.
  14917. * @param {ReactDOMComponent} component
  14918. * @return {string} Normalized style value with dimensions applied.
  14919. */
  14920. function dangerousStyleValue(name, value, component) {
  14921. // Note that we've removed escapeTextForBrowser() calls here since the
  14922. // whole string will be escaped when the attribute is injected into
  14923. // the markup. If you provide unsafe user data here they can inject
  14924. // arbitrary CSS which may be problematic (I couldn't repro this):
  14925. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  14926. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  14927. // This is not an XSS hole but instead a potential CSS injection issue
  14928. // which has lead to a greater discussion about how we're going to
  14929. // trust URLs moving forward. See #2115901
  14930. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  14931. if (isEmpty) {
  14932. return '';
  14933. }
  14934. var isNonNumeric = isNaN(value);
  14935. if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {
  14936. return '' + value; // cast to string
  14937. }
  14938. if (typeof value === 'string') {
  14939. if (process.env.NODE_ENV !== 'production') {
  14940. // Allow '0' to pass through without warning. 0 is already special and
  14941. // doesn't require units, so we don't need to warn about it.
  14942. if (component && value !== '0') {
  14943. var owner = component._currentElement._owner;
  14944. var ownerName = owner ? owner.getName() : null;
  14945. if (ownerName && !styleWarnings[ownerName]) {
  14946. styleWarnings[ownerName] = {};
  14947. }
  14948. var warned = false;
  14949. if (ownerName) {
  14950. var warnings = styleWarnings[ownerName];
  14951. warned = warnings[name];
  14952. if (!warned) {
  14953. warnings[name] = true;
  14954. }
  14955. }
  14956. if (!warned) {
  14957. process.env.NODE_ENV !== 'production' ? warning(false, 'a `%s` tag (owner: `%s`) was passed a numeric string value ' + 'for CSS property `%s` (value: `%s`) which will be treated ' + 'as a unitless number in a future version of React.', component._currentElement.type, ownerName || 'unknown', name, value) : void 0;
  14958. }
  14959. }
  14960. }
  14961. value = value.trim();
  14962. }
  14963. return value + 'px';
  14964. }
  14965. module.exports = dangerousStyleValue;
  14966. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14967. /***/ }),
  14968. /* 132 */
  14969. /***/ (function(module, exports, __webpack_require__) {
  14970. "use strict";
  14971. /**
  14972. * Copyright (c) 2013-present, Facebook, Inc.
  14973. *
  14974. * This source code is licensed under the MIT license found in the
  14975. * LICENSE file in the root directory of this source tree.
  14976. *
  14977. * @typechecks
  14978. */
  14979. var hyphenate = __webpack_require__(133);
  14980. var msPattern = /^ms-/;
  14981. /**
  14982. * Hyphenates a camelcased CSS property name, for example:
  14983. *
  14984. * > hyphenateStyleName('backgroundColor')
  14985. * < "background-color"
  14986. * > hyphenateStyleName('MozTransition')
  14987. * < "-moz-transition"
  14988. * > hyphenateStyleName('msTransition')
  14989. * < "-ms-transition"
  14990. *
  14991. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  14992. * is converted to `-ms-`.
  14993. *
  14994. * @param {string} string
  14995. * @return {string}
  14996. */
  14997. function hyphenateStyleName(string) {
  14998. return hyphenate(string).replace(msPattern, '-ms-');
  14999. }
  15000. module.exports = hyphenateStyleName;
  15001. /***/ }),
  15002. /* 133 */
  15003. /***/ (function(module, exports, __webpack_require__) {
  15004. "use strict";
  15005. /**
  15006. * Copyright (c) 2013-present, Facebook, Inc.
  15007. *
  15008. * This source code is licensed under the MIT license found in the
  15009. * LICENSE file in the root directory of this source tree.
  15010. *
  15011. * @typechecks
  15012. */
  15013. var _uppercasePattern = /([A-Z])/g;
  15014. /**
  15015. * Hyphenates a camelcased string, for example:
  15016. *
  15017. * > hyphenate('backgroundColor')
  15018. * < "background-color"
  15019. *
  15020. * For CSS style names, use `hyphenateStyleName` instead which works properly
  15021. * with all vendor prefixes, including `ms`.
  15022. *
  15023. * @param {string} string
  15024. * @return {string}
  15025. */
  15026. function hyphenate(string) {
  15027. return string.replace(_uppercasePattern, '-$1').toLowerCase();
  15028. }
  15029. module.exports = hyphenate;
  15030. /***/ }),
  15031. /* 134 */
  15032. /***/ (function(module, exports, __webpack_require__) {
  15033. "use strict";
  15034. /**
  15035. * Copyright (c) 2013-present, Facebook, Inc.
  15036. *
  15037. * This source code is licensed under the MIT license found in the
  15038. * LICENSE file in the root directory of this source tree.
  15039. *
  15040. *
  15041. * @typechecks static-only
  15042. */
  15043. /**
  15044. * Memoizes the return value of a function that accepts one string argument.
  15045. */
  15046. function memoizeStringOnly(callback) {
  15047. var cache = {};
  15048. return function (string) {
  15049. if (!cache.hasOwnProperty(string)) {
  15050. cache[string] = callback.call(this, string);
  15051. }
  15052. return cache[string];
  15053. };
  15054. }
  15055. module.exports = memoizeStringOnly;
  15056. /***/ }),
  15057. /* 135 */
  15058. /***/ (function(module, exports, __webpack_require__) {
  15059. "use strict";
  15060. /**
  15061. * Copyright 2013-present, Facebook, Inc.
  15062. * All rights reserved.
  15063. *
  15064. * This source code is licensed under the BSD-style license found in the
  15065. * LICENSE file in the root directory of this source tree. An additional grant
  15066. * of patent rights can be found in the PATENTS file in the same directory.
  15067. *
  15068. */
  15069. var escapeTextContentForBrowser = __webpack_require__(31);
  15070. /**
  15071. * Escapes attribute value to prevent scripting attacks.
  15072. *
  15073. * @param {*} value Value to escape.
  15074. * @return {string} An escaped string.
  15075. */
  15076. function quoteAttributeValueForBrowser(value) {
  15077. return '"' + escapeTextContentForBrowser(value) + '"';
  15078. }
  15079. module.exports = quoteAttributeValueForBrowser;
  15080. /***/ }),
  15081. /* 136 */
  15082. /***/ (function(module, exports, __webpack_require__) {
  15083. "use strict";
  15084. /**
  15085. * Copyright 2013-present, Facebook, Inc.
  15086. * All rights reserved.
  15087. *
  15088. * This source code is licensed under the BSD-style license found in the
  15089. * LICENSE file in the root directory of this source tree. An additional grant
  15090. * of patent rights can be found in the PATENTS file in the same directory.
  15091. *
  15092. */
  15093. var EventPluginHub = __webpack_require__(22);
  15094. function runEventQueueInBatch(events) {
  15095. EventPluginHub.enqueueEvents(events);
  15096. EventPluginHub.processEventQueue(false);
  15097. }
  15098. var ReactEventEmitterMixin = {
  15099. /**
  15100. * Streams a fired top-level event to `EventPluginHub` where plugins have the
  15101. * opportunity to create `ReactEvent`s to be dispatched.
  15102. */
  15103. handleTopLevel: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  15104. var events = EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  15105. runEventQueueInBatch(events);
  15106. }
  15107. };
  15108. module.exports = ReactEventEmitterMixin;
  15109. /***/ }),
  15110. /* 137 */
  15111. /***/ (function(module, exports, __webpack_require__) {
  15112. "use strict";
  15113. /**
  15114. * Copyright 2013-present, Facebook, Inc.
  15115. * All rights reserved.
  15116. *
  15117. * This source code is licensed under the BSD-style license found in the
  15118. * LICENSE file in the root directory of this source tree. An additional grant
  15119. * of patent rights can be found in the PATENTS file in the same directory.
  15120. *
  15121. */
  15122. var ExecutionEnvironment = __webpack_require__(6);
  15123. /**
  15124. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  15125. *
  15126. * @param {string} styleProp
  15127. * @param {string} eventName
  15128. * @returns {object}
  15129. */
  15130. function makePrefixMap(styleProp, eventName) {
  15131. var prefixes = {};
  15132. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  15133. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  15134. prefixes['Moz' + styleProp] = 'moz' + eventName;
  15135. prefixes['ms' + styleProp] = 'MS' + eventName;
  15136. prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();
  15137. return prefixes;
  15138. }
  15139. /**
  15140. * A list of event names to a configurable list of vendor prefixes.
  15141. */
  15142. var vendorPrefixes = {
  15143. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  15144. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  15145. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  15146. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  15147. };
  15148. /**
  15149. * Event names that have already been detected and prefixed (if applicable).
  15150. */
  15151. var prefixedEventNames = {};
  15152. /**
  15153. * Element to check for prefixes on.
  15154. */
  15155. var style = {};
  15156. /**
  15157. * Bootstrap if a DOM exists.
  15158. */
  15159. if (ExecutionEnvironment.canUseDOM) {
  15160. style = document.createElement('div').style;
  15161. // On some platforms, in particular some releases of Android 4.x,
  15162. // the un-prefixed "animation" and "transition" properties are defined on the
  15163. // style object but the events that fire will still be prefixed, so we need
  15164. // to check if the un-prefixed events are usable, and if not remove them from the map.
  15165. if (!('AnimationEvent' in window)) {
  15166. delete vendorPrefixes.animationend.animation;
  15167. delete vendorPrefixes.animationiteration.animation;
  15168. delete vendorPrefixes.animationstart.animation;
  15169. }
  15170. // Same as above
  15171. if (!('TransitionEvent' in window)) {
  15172. delete vendorPrefixes.transitionend.transition;
  15173. }
  15174. }
  15175. /**
  15176. * Attempts to determine the correct vendor prefixed event name.
  15177. *
  15178. * @param {string} eventName
  15179. * @returns {string}
  15180. */
  15181. function getVendorPrefixedEventName(eventName) {
  15182. if (prefixedEventNames[eventName]) {
  15183. return prefixedEventNames[eventName];
  15184. } else if (!vendorPrefixes[eventName]) {
  15185. return eventName;
  15186. }
  15187. var prefixMap = vendorPrefixes[eventName];
  15188. for (var styleProp in prefixMap) {
  15189. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  15190. return prefixedEventNames[eventName] = prefixMap[styleProp];
  15191. }
  15192. }
  15193. return '';
  15194. }
  15195. module.exports = getVendorPrefixedEventName;
  15196. /***/ }),
  15197. /* 138 */
  15198. /***/ (function(module, exports, __webpack_require__) {
  15199. "use strict";
  15200. /* WEBPACK VAR INJECTION */(function(process) {/**
  15201. * Copyright 2013-present, Facebook, Inc.
  15202. * All rights reserved.
  15203. *
  15204. * This source code is licensed under the BSD-style license found in the
  15205. * LICENSE file in the root directory of this source tree. An additional grant
  15206. * of patent rights can be found in the PATENTS file in the same directory.
  15207. *
  15208. */
  15209. var _prodInvariant = __webpack_require__(3),
  15210. _assign = __webpack_require__(4);
  15211. var DOMPropertyOperations = __webpack_require__(67);
  15212. var LinkedValueUtils = __webpack_require__(43);
  15213. var ReactDOMComponentTree = __webpack_require__(5);
  15214. var ReactUpdates = __webpack_require__(11);
  15215. var invariant = __webpack_require__(1);
  15216. var warning = __webpack_require__(2);
  15217. var didWarnValueLink = false;
  15218. var didWarnCheckedLink = false;
  15219. var didWarnValueDefaultValue = false;
  15220. var didWarnCheckedDefaultChecked = false;
  15221. var didWarnControlledToUncontrolled = false;
  15222. var didWarnUncontrolledToControlled = false;
  15223. function forceUpdateIfMounted() {
  15224. if (this._rootNodeID) {
  15225. // DOM component is still mounted; update
  15226. ReactDOMInput.updateWrapper(this);
  15227. }
  15228. }
  15229. function isControlled(props) {
  15230. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  15231. return usesChecked ? props.checked != null : props.value != null;
  15232. }
  15233. /**
  15234. * Implements an <input> host component that allows setting these optional
  15235. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  15236. *
  15237. * If `checked` or `value` are not supplied (or null/undefined), user actions
  15238. * that affect the checked state or value will trigger updates to the element.
  15239. *
  15240. * If they are supplied (and not null/undefined), the rendered element will not
  15241. * trigger updates to the element. Instead, the props must change in order for
  15242. * the rendered element to be updated.
  15243. *
  15244. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  15245. * with an empty value (or `defaultValue`).
  15246. *
  15247. * @see http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  15248. */
  15249. var ReactDOMInput = {
  15250. getHostProps: function (inst, props) {
  15251. var value = LinkedValueUtils.getValue(props);
  15252. var checked = LinkedValueUtils.getChecked(props);
  15253. var hostProps = _assign({
  15254. // Make sure we set .type before any other properties (setting .value
  15255. // before .type means .value is lost in IE11 and below)
  15256. type: undefined,
  15257. // Make sure we set .step before .value (setting .value before .step
  15258. // means .value is rounded on mount, based upon step precision)
  15259. step: undefined,
  15260. // Make sure we set .min & .max before .value (to ensure proper order
  15261. // in corner cases such as min or max deriving from value, e.g. Issue #7170)
  15262. min: undefined,
  15263. max: undefined
  15264. }, props, {
  15265. defaultChecked: undefined,
  15266. defaultValue: undefined,
  15267. value: value != null ? value : inst._wrapperState.initialValue,
  15268. checked: checked != null ? checked : inst._wrapperState.initialChecked,
  15269. onChange: inst._wrapperState.onChange
  15270. });
  15271. return hostProps;
  15272. },
  15273. mountWrapper: function (inst, props) {
  15274. if (process.env.NODE_ENV !== 'production') {
  15275. LinkedValueUtils.checkPropTypes('input', props, inst._currentElement._owner);
  15276. var owner = inst._currentElement._owner;
  15277. if (props.valueLink !== undefined && !didWarnValueLink) {
  15278. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;
  15279. didWarnValueLink = true;
  15280. }
  15281. if (props.checkedLink !== undefined && !didWarnCheckedLink) {
  15282. process.env.NODE_ENV !== 'production' ? warning(false, '`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;
  15283. didWarnCheckedLink = true;
  15284. }
  15285. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  15286. process.env.NODE_ENV !== 'production' ? warning(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', owner && owner.getName() || 'A component', props.type) : void 0;
  15287. didWarnCheckedDefaultChecked = true;
  15288. }
  15289. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  15290. process.env.NODE_ENV !== 'production' ? warning(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', owner && owner.getName() || 'A component', props.type) : void 0;
  15291. didWarnValueDefaultValue = true;
  15292. }
  15293. }
  15294. var defaultValue = props.defaultValue;
  15295. inst._wrapperState = {
  15296. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  15297. initialValue: props.value != null ? props.value : defaultValue,
  15298. listeners: null,
  15299. onChange: _handleChange.bind(inst),
  15300. controlled: isControlled(props)
  15301. };
  15302. },
  15303. updateWrapper: function (inst) {
  15304. var props = inst._currentElement.props;
  15305. if (process.env.NODE_ENV !== 'production') {
  15306. var controlled = isControlled(props);
  15307. var owner = inst._currentElement._owner;
  15308. if (!inst._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
  15309. process.env.NODE_ENV !== 'production' ? warning(false, '%s 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', owner && owner.getName() || 'A component', props.type) : void 0;
  15310. didWarnUncontrolledToControlled = true;
  15311. }
  15312. if (inst._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
  15313. process.env.NODE_ENV !== 'production' ? warning(false, '%s 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', owner && owner.getName() || 'A component', props.type) : void 0;
  15314. didWarnControlledToUncontrolled = true;
  15315. }
  15316. }
  15317. // TODO: Shouldn't this be getChecked(props)?
  15318. var checked = props.checked;
  15319. if (checked != null) {
  15320. DOMPropertyOperations.setValueForProperty(ReactDOMComponentTree.getNodeFromInstance(inst), 'checked', checked || false);
  15321. }
  15322. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  15323. var value = LinkedValueUtils.getValue(props);
  15324. if (value != null) {
  15325. if (value === 0 && node.value === '') {
  15326. node.value = '0';
  15327. // Note: IE9 reports a number inputs as 'text', so check props instead.
  15328. } else if (props.type === 'number') {
  15329. // Simulate `input.valueAsNumber`. IE9 does not support it
  15330. var valueAsNumber = parseFloat(node.value, 10) || 0;
  15331. // eslint-disable-next-line
  15332. if (value != valueAsNumber) {
  15333. // Cast `value` to a string to ensure the value is set correctly. While
  15334. // browsers typically do this as necessary, jsdom doesn't.
  15335. node.value = '' + value;
  15336. }
  15337. // eslint-disable-next-line
  15338. } else if (value != node.value) {
  15339. // Cast `value` to a string to ensure the value is set correctly. While
  15340. // browsers typically do this as necessary, jsdom doesn't.
  15341. node.value = '' + value;
  15342. }
  15343. } else {
  15344. if (props.value == null && props.defaultValue != null) {
  15345. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  15346. // For number inputs, the display value loses trailing decimal points. For email inputs,
  15347. // Chrome raises "The specified value <x> is not a valid email address".
  15348. //
  15349. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  15350. // when the user is inputting text
  15351. //
  15352. // https://github.com/facebook/react/issues/7253
  15353. if (node.defaultValue !== '' + props.defaultValue) {
  15354. node.defaultValue = '' + props.defaultValue;
  15355. }
  15356. }
  15357. if (props.checked == null && props.defaultChecked != null) {
  15358. node.defaultChecked = !!props.defaultChecked;
  15359. }
  15360. }
  15361. },
  15362. postMountWrapper: function (inst) {
  15363. var props = inst._currentElement.props;
  15364. // This is in postMount because we need access to the DOM node, which is not
  15365. // available until after the component has mounted.
  15366. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  15367. // Detach value from defaultValue. We won't do anything if we're working on
  15368. // submit or reset inputs as those values & defaultValues are linked. They
  15369. // are not resetable nodes so this operation doesn't matter and actually
  15370. // removes browser-default values (eg "Submit Query") when no value is
  15371. // provided.
  15372. switch (props.type) {
  15373. case 'submit':
  15374. case 'reset':
  15375. break;
  15376. case 'color':
  15377. case 'date':
  15378. case 'datetime':
  15379. case 'datetime-local':
  15380. case 'month':
  15381. case 'time':
  15382. case 'week':
  15383. // This fixes the no-show issue on iOS Safari and Android Chrome:
  15384. // https://github.com/facebook/react/issues/7233
  15385. node.value = '';
  15386. node.value = node.defaultValue;
  15387. break;
  15388. default:
  15389. node.value = node.value;
  15390. break;
  15391. }
  15392. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  15393. // this is needed to work around a chrome bug where setting defaultChecked
  15394. // will sometimes influence the value of checked (even after detachment).
  15395. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  15396. // We need to temporarily unset name to avoid disrupting radio button groups.
  15397. var name = node.name;
  15398. if (name !== '') {
  15399. node.name = '';
  15400. }
  15401. node.defaultChecked = !node.defaultChecked;
  15402. node.defaultChecked = !node.defaultChecked;
  15403. if (name !== '') {
  15404. node.name = name;
  15405. }
  15406. }
  15407. };
  15408. function _handleChange(event) {
  15409. var props = this._currentElement.props;
  15410. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  15411. // Here we use asap to wait until all updates have propagated, which
  15412. // is important when using controlled components within layers:
  15413. // https://github.com/facebook/react/issues/1698
  15414. ReactUpdates.asap(forceUpdateIfMounted, this);
  15415. var name = props.name;
  15416. if (props.type === 'radio' && name != null) {
  15417. var rootNode = ReactDOMComponentTree.getNodeFromInstance(this);
  15418. var queryRoot = rootNode;
  15419. while (queryRoot.parentNode) {
  15420. queryRoot = queryRoot.parentNode;
  15421. }
  15422. // If `rootNode.form` was non-null, then we could try `form.elements`,
  15423. // but that sometimes behaves strangely in IE8. We could also try using
  15424. // `form.getElementsByName`, but that will only return direct children
  15425. // and won't include inputs that use the HTML5 `form=` attribute. Since
  15426. // the input might not even be in a form, let's just use the global
  15427. // `querySelectorAll` to ensure we don't miss anything.
  15428. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  15429. for (var i = 0; i < group.length; i++) {
  15430. var otherNode = group[i];
  15431. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  15432. continue;
  15433. }
  15434. // This will throw if radio buttons rendered by different copies of React
  15435. // and the same name are rendered into the same form (same as #1939).
  15436. // That's probably okay; we don't support it just as we don't support
  15437. // mixing React radio buttons with non-React ones.
  15438. var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode);
  15439. !otherInstance ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : _prodInvariant('90') : void 0;
  15440. // If this is a controlled radio button group, forcing the input that
  15441. // was previously checked to update will cause it to be come re-checked
  15442. // as appropriate.
  15443. ReactUpdates.asap(forceUpdateIfMounted, otherInstance);
  15444. }
  15445. }
  15446. return returnValue;
  15447. }
  15448. module.exports = ReactDOMInput;
  15449. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15450. /***/ }),
  15451. /* 139 */
  15452. /***/ (function(module, exports, __webpack_require__) {
  15453. "use strict";
  15454. /**
  15455. * Copyright 2013-present, Facebook, Inc.
  15456. * All rights reserved.
  15457. *
  15458. * This source code is licensed under the BSD-style license found in the
  15459. * LICENSE file in the root directory of this source tree. An additional grant
  15460. * of patent rights can be found in the PATENTS file in the same directory.
  15461. */
  15462. // React 15.5 references this module, and assumes PropTypes are still callable in production.
  15463. // Therefore we re-export development-only version with all the PropTypes checks here.
  15464. // However if one is migrating to the `prop-types` npm library, they will go through the
  15465. // `index.js` entry point, and it will branch depending on the environment.
  15466. var factory = __webpack_require__(140);
  15467. module.exports = function(isValidElement) {
  15468. // It is still allowed in 15.5.
  15469. var throwOnDirectAccess = false;
  15470. return factory(isValidElement, throwOnDirectAccess);
  15471. };
  15472. /***/ }),
  15473. /* 140 */
  15474. /***/ (function(module, exports, __webpack_require__) {
  15475. "use strict";
  15476. /* WEBPACK VAR INJECTION */(function(process) {/**
  15477. * Copyright 2013-present, Facebook, Inc.
  15478. * All rights reserved.
  15479. *
  15480. * This source code is licensed under the BSD-style license found in the
  15481. * LICENSE file in the root directory of this source tree. An additional grant
  15482. * of patent rights can be found in the PATENTS file in the same directory.
  15483. */
  15484. var emptyFunction = __webpack_require__(8);
  15485. var invariant = __webpack_require__(1);
  15486. var warning = __webpack_require__(2);
  15487. var ReactPropTypesSecret = __webpack_require__(69);
  15488. var checkPropTypes = __webpack_require__(141);
  15489. module.exports = function(isValidElement, throwOnDirectAccess) {
  15490. /* global Symbol */
  15491. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  15492. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  15493. /**
  15494. * Returns the iterator method function contained on the iterable object.
  15495. *
  15496. * Be sure to invoke the function with the iterable as context:
  15497. *
  15498. * var iteratorFn = getIteratorFn(myIterable);
  15499. * if (iteratorFn) {
  15500. * var iterator = iteratorFn.call(myIterable);
  15501. * ...
  15502. * }
  15503. *
  15504. * @param {?object} maybeIterable
  15505. * @return {?function}
  15506. */
  15507. function getIteratorFn(maybeIterable) {
  15508. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  15509. if (typeof iteratorFn === 'function') {
  15510. return iteratorFn;
  15511. }
  15512. }
  15513. /**
  15514. * Collection of methods that allow declaration and validation of props that are
  15515. * supplied to React components. Example usage:
  15516. *
  15517. * var Props = require('ReactPropTypes');
  15518. * var MyArticle = React.createClass({
  15519. * propTypes: {
  15520. * // An optional string prop named "description".
  15521. * description: Props.string,
  15522. *
  15523. * // A required enum prop named "category".
  15524. * category: Props.oneOf(['News','Photos']).isRequired,
  15525. *
  15526. * // A prop named "dialog" that requires an instance of Dialog.
  15527. * dialog: Props.instanceOf(Dialog).isRequired
  15528. * },
  15529. * render: function() { ... }
  15530. * });
  15531. *
  15532. * A more formal specification of how these methods are used:
  15533. *
  15534. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  15535. * decl := ReactPropTypes.{type}(.isRequired)?
  15536. *
  15537. * Each and every declaration produces a function with the same signature. This
  15538. * allows the creation of custom validation functions. For example:
  15539. *
  15540. * var MyLink = React.createClass({
  15541. * propTypes: {
  15542. * // An optional string or URI prop named "href".
  15543. * href: function(props, propName, componentName) {
  15544. * var propValue = props[propName];
  15545. * if (propValue != null && typeof propValue !== 'string' &&
  15546. * !(propValue instanceof URI)) {
  15547. * return new Error(
  15548. * 'Expected a string or an URI for ' + propName + ' in ' +
  15549. * componentName
  15550. * );
  15551. * }
  15552. * }
  15553. * },
  15554. * render: function() {...}
  15555. * });
  15556. *
  15557. * @internal
  15558. */
  15559. var ANONYMOUS = '<<anonymous>>';
  15560. // Important!
  15561. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  15562. var ReactPropTypes = {
  15563. array: createPrimitiveTypeChecker('array'),
  15564. bool: createPrimitiveTypeChecker('boolean'),
  15565. func: createPrimitiveTypeChecker('function'),
  15566. number: createPrimitiveTypeChecker('number'),
  15567. object: createPrimitiveTypeChecker('object'),
  15568. string: createPrimitiveTypeChecker('string'),
  15569. symbol: createPrimitiveTypeChecker('symbol'),
  15570. any: createAnyTypeChecker(),
  15571. arrayOf: createArrayOfTypeChecker,
  15572. element: createElementTypeChecker(),
  15573. instanceOf: createInstanceTypeChecker,
  15574. node: createNodeChecker(),
  15575. objectOf: createObjectOfTypeChecker,
  15576. oneOf: createEnumTypeChecker,
  15577. oneOfType: createUnionTypeChecker,
  15578. shape: createShapeTypeChecker
  15579. };
  15580. /**
  15581. * inlined Object.is polyfill to avoid requiring consumers ship their own
  15582. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  15583. */
  15584. /*eslint-disable no-self-compare*/
  15585. function is(x, y) {
  15586. // SameValue algorithm
  15587. if (x === y) {
  15588. // Steps 1-5, 7-10
  15589. // Steps 6.b-6.e: +0 != -0
  15590. return x !== 0 || 1 / x === 1 / y;
  15591. } else {
  15592. // Step 6.a: NaN == NaN
  15593. return x !== x && y !== y;
  15594. }
  15595. }
  15596. /*eslint-enable no-self-compare*/
  15597. /**
  15598. * We use an Error-like object for backward compatibility as people may call
  15599. * PropTypes directly and inspect their output. However, we don't use real
  15600. * Errors anymore. We don't inspect their stack anyway, and creating them
  15601. * is prohibitively expensive if they are created too often, such as what
  15602. * happens in oneOfType() for any type before the one that matched.
  15603. */
  15604. function PropTypeError(message) {
  15605. this.message = message;
  15606. this.stack = '';
  15607. }
  15608. // Make `instanceof Error` still work for returned errors.
  15609. PropTypeError.prototype = Error.prototype;
  15610. function createChainableTypeChecker(validate) {
  15611. if (process.env.NODE_ENV !== 'production') {
  15612. var manualPropTypeCallCache = {};
  15613. var manualPropTypeWarningCount = 0;
  15614. }
  15615. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  15616. componentName = componentName || ANONYMOUS;
  15617. propFullName = propFullName || propName;
  15618. if (secret !== ReactPropTypesSecret) {
  15619. if (throwOnDirectAccess) {
  15620. // New behavior only for users of `prop-types` package
  15621. invariant(
  15622. false,
  15623. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  15624. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  15625. 'Read more at http://fb.me/use-check-prop-types'
  15626. );
  15627. } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
  15628. // Old behavior for people using React.PropTypes
  15629. var cacheKey = componentName + ':' + propName;
  15630. if (
  15631. !manualPropTypeCallCache[cacheKey] &&
  15632. // Avoid spamming the console because they are often not actionable except for lib authors
  15633. manualPropTypeWarningCount < 3
  15634. ) {
  15635. warning(
  15636. false,
  15637. 'You are manually calling a React.PropTypes validation ' +
  15638. 'function for the `%s` prop on `%s`. This is deprecated ' +
  15639. 'and will throw in the standalone `prop-types` package. ' +
  15640. 'You may be seeing this warning due to a third-party PropTypes ' +
  15641. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
  15642. propFullName,
  15643. componentName
  15644. );
  15645. manualPropTypeCallCache[cacheKey] = true;
  15646. manualPropTypeWarningCount++;
  15647. }
  15648. }
  15649. }
  15650. if (props[propName] == null) {
  15651. if (isRequired) {
  15652. if (props[propName] === null) {
  15653. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  15654. }
  15655. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  15656. }
  15657. return null;
  15658. } else {
  15659. return validate(props, propName, componentName, location, propFullName);
  15660. }
  15661. }
  15662. var chainedCheckType = checkType.bind(null, false);
  15663. chainedCheckType.isRequired = checkType.bind(null, true);
  15664. return chainedCheckType;
  15665. }
  15666. function createPrimitiveTypeChecker(expectedType) {
  15667. function validate(props, propName, componentName, location, propFullName, secret) {
  15668. var propValue = props[propName];
  15669. var propType = getPropType(propValue);
  15670. if (propType !== expectedType) {
  15671. // `propValue` being instance of, say, date/regexp, pass the 'object'
  15672. // check, but we can offer a more precise error message here rather than
  15673. // 'of type `object`'.
  15674. var preciseType = getPreciseType(propValue);
  15675. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  15676. }
  15677. return null;
  15678. }
  15679. return createChainableTypeChecker(validate);
  15680. }
  15681. function createAnyTypeChecker() {
  15682. return createChainableTypeChecker(emptyFunction.thatReturnsNull);
  15683. }
  15684. function createArrayOfTypeChecker(typeChecker) {
  15685. function validate(props, propName, componentName, location, propFullName) {
  15686. if (typeof typeChecker !== 'function') {
  15687. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  15688. }
  15689. var propValue = props[propName];
  15690. if (!Array.isArray(propValue)) {
  15691. var propType = getPropType(propValue);
  15692. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  15693. }
  15694. for (var i = 0; i < propValue.length; i++) {
  15695. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  15696. if (error instanceof Error) {
  15697. return error;
  15698. }
  15699. }
  15700. return null;
  15701. }
  15702. return createChainableTypeChecker(validate);
  15703. }
  15704. function createElementTypeChecker() {
  15705. function validate(props, propName, componentName, location, propFullName) {
  15706. var propValue = props[propName];
  15707. if (!isValidElement(propValue)) {
  15708. var propType = getPropType(propValue);
  15709. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  15710. }
  15711. return null;
  15712. }
  15713. return createChainableTypeChecker(validate);
  15714. }
  15715. function createInstanceTypeChecker(expectedClass) {
  15716. function validate(props, propName, componentName, location, propFullName) {
  15717. if (!(props[propName] instanceof expectedClass)) {
  15718. var expectedClassName = expectedClass.name || ANONYMOUS;
  15719. var actualClassName = getClassName(props[propName]);
  15720. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  15721. }
  15722. return null;
  15723. }
  15724. return createChainableTypeChecker(validate);
  15725. }
  15726. function createEnumTypeChecker(expectedValues) {
  15727. if (!Array.isArray(expectedValues)) {
  15728. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
  15729. return emptyFunction.thatReturnsNull;
  15730. }
  15731. function validate(props, propName, componentName, location, propFullName) {
  15732. var propValue = props[propName];
  15733. for (var i = 0; i < expectedValues.length; i++) {
  15734. if (is(propValue, expectedValues[i])) {
  15735. return null;
  15736. }
  15737. }
  15738. var valuesString = JSON.stringify(expectedValues);
  15739. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  15740. }
  15741. return createChainableTypeChecker(validate);
  15742. }
  15743. function createObjectOfTypeChecker(typeChecker) {
  15744. function validate(props, propName, componentName, location, propFullName) {
  15745. if (typeof typeChecker !== 'function') {
  15746. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  15747. }
  15748. var propValue = props[propName];
  15749. var propType = getPropType(propValue);
  15750. if (propType !== 'object') {
  15751. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  15752. }
  15753. for (var key in propValue) {
  15754. if (propValue.hasOwnProperty(key)) {
  15755. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  15756. if (error instanceof Error) {
  15757. return error;
  15758. }
  15759. }
  15760. }
  15761. return null;
  15762. }
  15763. return createChainableTypeChecker(validate);
  15764. }
  15765. function createUnionTypeChecker(arrayOfTypeCheckers) {
  15766. if (!Array.isArray(arrayOfTypeCheckers)) {
  15767. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
  15768. return emptyFunction.thatReturnsNull;
  15769. }
  15770. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  15771. var checker = arrayOfTypeCheckers[i];
  15772. if (typeof checker !== 'function') {
  15773. warning(
  15774. false,
  15775. 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
  15776. 'received %s at index %s.',
  15777. getPostfixForTypeWarning(checker),
  15778. i
  15779. );
  15780. return emptyFunction.thatReturnsNull;
  15781. }
  15782. }
  15783. function validate(props, propName, componentName, location, propFullName) {
  15784. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  15785. var checker = arrayOfTypeCheckers[i];
  15786. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  15787. return null;
  15788. }
  15789. }
  15790. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  15791. }
  15792. return createChainableTypeChecker(validate);
  15793. }
  15794. function createNodeChecker() {
  15795. function validate(props, propName, componentName, location, propFullName) {
  15796. if (!isNode(props[propName])) {
  15797. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  15798. }
  15799. return null;
  15800. }
  15801. return createChainableTypeChecker(validate);
  15802. }
  15803. function createShapeTypeChecker(shapeTypes) {
  15804. function validate(props, propName, componentName, location, propFullName) {
  15805. var propValue = props[propName];
  15806. var propType = getPropType(propValue);
  15807. if (propType !== 'object') {
  15808. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  15809. }
  15810. for (var key in shapeTypes) {
  15811. var checker = shapeTypes[key];
  15812. if (!checker) {
  15813. continue;
  15814. }
  15815. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  15816. if (error) {
  15817. return error;
  15818. }
  15819. }
  15820. return null;
  15821. }
  15822. return createChainableTypeChecker(validate);
  15823. }
  15824. function isNode(propValue) {
  15825. switch (typeof propValue) {
  15826. case 'number':
  15827. case 'string':
  15828. case 'undefined':
  15829. return true;
  15830. case 'boolean':
  15831. return !propValue;
  15832. case 'object':
  15833. if (Array.isArray(propValue)) {
  15834. return propValue.every(isNode);
  15835. }
  15836. if (propValue === null || isValidElement(propValue)) {
  15837. return true;
  15838. }
  15839. var iteratorFn = getIteratorFn(propValue);
  15840. if (iteratorFn) {
  15841. var iterator = iteratorFn.call(propValue);
  15842. var step;
  15843. if (iteratorFn !== propValue.entries) {
  15844. while (!(step = iterator.next()).done) {
  15845. if (!isNode(step.value)) {
  15846. return false;
  15847. }
  15848. }
  15849. } else {
  15850. // Iterator will provide entry [k,v] tuples rather than values.
  15851. while (!(step = iterator.next()).done) {
  15852. var entry = step.value;
  15853. if (entry) {
  15854. if (!isNode(entry[1])) {
  15855. return false;
  15856. }
  15857. }
  15858. }
  15859. }
  15860. } else {
  15861. return false;
  15862. }
  15863. return true;
  15864. default:
  15865. return false;
  15866. }
  15867. }
  15868. function isSymbol(propType, propValue) {
  15869. // Native Symbol.
  15870. if (propType === 'symbol') {
  15871. return true;
  15872. }
  15873. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  15874. if (propValue['@@toStringTag'] === 'Symbol') {
  15875. return true;
  15876. }
  15877. // Fallback for non-spec compliant Symbols which are polyfilled.
  15878. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  15879. return true;
  15880. }
  15881. return false;
  15882. }
  15883. // Equivalent of `typeof` but with special handling for array and regexp.
  15884. function getPropType(propValue) {
  15885. var propType = typeof propValue;
  15886. if (Array.isArray(propValue)) {
  15887. return 'array';
  15888. }
  15889. if (propValue instanceof RegExp) {
  15890. // Old webkits (at least until Android 4.0) return 'function' rather than
  15891. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  15892. // passes PropTypes.object.
  15893. return 'object';
  15894. }
  15895. if (isSymbol(propType, propValue)) {
  15896. return 'symbol';
  15897. }
  15898. return propType;
  15899. }
  15900. // This handles more types than `getPropType`. Only used for error messages.
  15901. // See `createPrimitiveTypeChecker`.
  15902. function getPreciseType(propValue) {
  15903. if (typeof propValue === 'undefined' || propValue === null) {
  15904. return '' + propValue;
  15905. }
  15906. var propType = getPropType(propValue);
  15907. if (propType === 'object') {
  15908. if (propValue instanceof Date) {
  15909. return 'date';
  15910. } else if (propValue instanceof RegExp) {
  15911. return 'regexp';
  15912. }
  15913. }
  15914. return propType;
  15915. }
  15916. // Returns a string that is postfixed to a warning about an invalid type.
  15917. // For example, "undefined" or "of type array"
  15918. function getPostfixForTypeWarning(value) {
  15919. var type = getPreciseType(value);
  15920. switch (type) {
  15921. case 'array':
  15922. case 'object':
  15923. return 'an ' + type;
  15924. case 'boolean':
  15925. case 'date':
  15926. case 'regexp':
  15927. return 'a ' + type;
  15928. default:
  15929. return type;
  15930. }
  15931. }
  15932. // Returns class name of the object, if any.
  15933. function getClassName(propValue) {
  15934. if (!propValue.constructor || !propValue.constructor.name) {
  15935. return ANONYMOUS;
  15936. }
  15937. return propValue.constructor.name;
  15938. }
  15939. ReactPropTypes.checkPropTypes = checkPropTypes;
  15940. ReactPropTypes.PropTypes = ReactPropTypes;
  15941. return ReactPropTypes;
  15942. };
  15943. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15944. /***/ }),
  15945. /* 141 */
  15946. /***/ (function(module, exports, __webpack_require__) {
  15947. "use strict";
  15948. /* WEBPACK VAR INJECTION */(function(process) {/**
  15949. * Copyright 2013-present, Facebook, Inc.
  15950. * All rights reserved.
  15951. *
  15952. * This source code is licensed under the BSD-style license found in the
  15953. * LICENSE file in the root directory of this source tree. An additional grant
  15954. * of patent rights can be found in the PATENTS file in the same directory.
  15955. */
  15956. if (process.env.NODE_ENV !== 'production') {
  15957. var invariant = __webpack_require__(1);
  15958. var warning = __webpack_require__(2);
  15959. var ReactPropTypesSecret = __webpack_require__(69);
  15960. var loggedTypeFailures = {};
  15961. }
  15962. /**
  15963. * Assert that the values match with the type specs.
  15964. * Error messages are memorized and will only be shown once.
  15965. *
  15966. * @param {object} typeSpecs Map of name to a ReactPropType
  15967. * @param {object} values Runtime values that need to be type-checked
  15968. * @param {string} location e.g. "prop", "context", "child context"
  15969. * @param {string} componentName Name of the component for error messages.
  15970. * @param {?Function} getStack Returns the component stack.
  15971. * @private
  15972. */
  15973. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  15974. if (process.env.NODE_ENV !== 'production') {
  15975. for (var typeSpecName in typeSpecs) {
  15976. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  15977. var error;
  15978. // Prop type validation may throw. In case they do, we don't want to
  15979. // fail the render phase where it didn't fail before. So we log it.
  15980. // After these have been cleaned up, we'll let them throw.
  15981. try {
  15982. // This is intentionally an invariant that gets caught. It's the same
  15983. // behavior as without this statement except with a better message.
  15984. invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
  15985. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  15986. } catch (ex) {
  15987. error = ex;
  15988. }
  15989. warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
  15990. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  15991. // Only monitor this failure once because there tends to be a lot of the
  15992. // same error.
  15993. loggedTypeFailures[error.message] = true;
  15994. var stack = getStack ? getStack() : '';
  15995. warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
  15996. }
  15997. }
  15998. }
  15999. }
  16000. }
  16001. module.exports = checkPropTypes;
  16002. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16003. /***/ }),
  16004. /* 142 */
  16005. /***/ (function(module, exports, __webpack_require__) {
  16006. "use strict";
  16007. /* WEBPACK VAR INJECTION */(function(process) {/**
  16008. * Copyright 2013-present, Facebook, Inc.
  16009. * All rights reserved.
  16010. *
  16011. * This source code is licensed under the BSD-style license found in the
  16012. * LICENSE file in the root directory of this source tree. An additional grant
  16013. * of patent rights can be found in the PATENTS file in the same directory.
  16014. *
  16015. */
  16016. var _assign = __webpack_require__(4);
  16017. var React = __webpack_require__(17);
  16018. var ReactDOMComponentTree = __webpack_require__(5);
  16019. var ReactDOMSelect = __webpack_require__(70);
  16020. var warning = __webpack_require__(2);
  16021. var didWarnInvalidOptionChildren = false;
  16022. function flattenChildren(children) {
  16023. var content = '';
  16024. // Flatten children and warn if they aren't strings or numbers;
  16025. // invalid types are ignored.
  16026. React.Children.forEach(children, function (child) {
  16027. if (child == null) {
  16028. return;
  16029. }
  16030. if (typeof child === 'string' || typeof child === 'number') {
  16031. content += child;
  16032. } else if (!didWarnInvalidOptionChildren) {
  16033. didWarnInvalidOptionChildren = true;
  16034. process.env.NODE_ENV !== 'production' ? warning(false, 'Only strings and numbers are supported as <option> children.') : void 0;
  16035. }
  16036. });
  16037. return content;
  16038. }
  16039. /**
  16040. * Implements an <option> host component that warns when `selected` is set.
  16041. */
  16042. var ReactDOMOption = {
  16043. mountWrapper: function (inst, props, hostParent) {
  16044. // TODO (yungsters): Remove support for `selected` in <option>.
  16045. if (process.env.NODE_ENV !== 'production') {
  16046. process.env.NODE_ENV !== 'production' ? warning(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.') : void 0;
  16047. }
  16048. // Look up whether this option is 'selected'
  16049. var selectValue = null;
  16050. if (hostParent != null) {
  16051. var selectParent = hostParent;
  16052. if (selectParent._tag === 'optgroup') {
  16053. selectParent = selectParent._hostParent;
  16054. }
  16055. if (selectParent != null && selectParent._tag === 'select') {
  16056. selectValue = ReactDOMSelect.getSelectValueContext(selectParent);
  16057. }
  16058. }
  16059. // If the value is null (e.g., no specified value or after initial mount)
  16060. // or missing (e.g., for <datalist>), we don't change props.selected
  16061. var selected = null;
  16062. if (selectValue != null) {
  16063. var value;
  16064. if (props.value != null) {
  16065. value = props.value + '';
  16066. } else {
  16067. value = flattenChildren(props.children);
  16068. }
  16069. selected = false;
  16070. if (Array.isArray(selectValue)) {
  16071. // multiple
  16072. for (var i = 0; i < selectValue.length; i++) {
  16073. if ('' + selectValue[i] === value) {
  16074. selected = true;
  16075. break;
  16076. }
  16077. }
  16078. } else {
  16079. selected = '' + selectValue === value;
  16080. }
  16081. }
  16082. inst._wrapperState = { selected: selected };
  16083. },
  16084. postMountWrapper: function (inst) {
  16085. // value="" should make a value attribute (#6219)
  16086. var props = inst._currentElement.props;
  16087. if (props.value != null) {
  16088. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16089. node.setAttribute('value', props.value);
  16090. }
  16091. },
  16092. getHostProps: function (inst, props) {
  16093. var hostProps = _assign({ selected: undefined, children: undefined }, props);
  16094. // Read state only from initial mount because <select> updates value
  16095. // manually; we need the initial state only for server rendering
  16096. if (inst._wrapperState.selected != null) {
  16097. hostProps.selected = inst._wrapperState.selected;
  16098. }
  16099. var content = flattenChildren(props.children);
  16100. if (content) {
  16101. hostProps.children = content;
  16102. }
  16103. return hostProps;
  16104. }
  16105. };
  16106. module.exports = ReactDOMOption;
  16107. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16108. /***/ }),
  16109. /* 143 */
  16110. /***/ (function(module, exports, __webpack_require__) {
  16111. "use strict";
  16112. /* WEBPACK VAR INJECTION */(function(process) {/**
  16113. * Copyright 2013-present, Facebook, Inc.
  16114. * All rights reserved.
  16115. *
  16116. * This source code is licensed under the BSD-style license found in the
  16117. * LICENSE file in the root directory of this source tree. An additional grant
  16118. * of patent rights can be found in the PATENTS file in the same directory.
  16119. *
  16120. */
  16121. var _prodInvariant = __webpack_require__(3),
  16122. _assign = __webpack_require__(4);
  16123. var LinkedValueUtils = __webpack_require__(43);
  16124. var ReactDOMComponentTree = __webpack_require__(5);
  16125. var ReactUpdates = __webpack_require__(11);
  16126. var invariant = __webpack_require__(1);
  16127. var warning = __webpack_require__(2);
  16128. var didWarnValueLink = false;
  16129. var didWarnValDefaultVal = false;
  16130. function forceUpdateIfMounted() {
  16131. if (this._rootNodeID) {
  16132. // DOM component is still mounted; update
  16133. ReactDOMTextarea.updateWrapper(this);
  16134. }
  16135. }
  16136. /**
  16137. * Implements a <textarea> host component that allows setting `value`, and
  16138. * `defaultValue`. This differs from the traditional DOM API because value is
  16139. * usually set as PCDATA children.
  16140. *
  16141. * If `value` is not supplied (or null/undefined), user actions that affect the
  16142. * value will trigger updates to the element.
  16143. *
  16144. * If `value` is supplied (and not null/undefined), the rendered element will
  16145. * not trigger updates to the element. Instead, the `value` prop must change in
  16146. * order for the rendered element to be updated.
  16147. *
  16148. * The rendered element will be initialized with an empty value, the prop
  16149. * `defaultValue` if specified, or the children content (deprecated).
  16150. */
  16151. var ReactDOMTextarea = {
  16152. getHostProps: function (inst, props) {
  16153. !(props.dangerouslySetInnerHTML == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : _prodInvariant('91') : void 0;
  16154. // Always set children to the same thing. In IE9, the selection range will
  16155. // get reset if `textContent` is mutated. We could add a check in setTextContent
  16156. // to only set the value if/when the value differs from the node value (which would
  16157. // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution.
  16158. // The value can be a boolean or object so that's why it's forced to be a string.
  16159. var hostProps = _assign({}, props, {
  16160. value: undefined,
  16161. defaultValue: undefined,
  16162. children: '' + inst._wrapperState.initialValue,
  16163. onChange: inst._wrapperState.onChange
  16164. });
  16165. return hostProps;
  16166. },
  16167. mountWrapper: function (inst, props) {
  16168. if (process.env.NODE_ENV !== 'production') {
  16169. LinkedValueUtils.checkPropTypes('textarea', props, inst._currentElement._owner);
  16170. if (props.valueLink !== undefined && !didWarnValueLink) {
  16171. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead.') : void 0;
  16172. didWarnValueLink = true;
  16173. }
  16174. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  16175. process.env.NODE_ENV !== 'production' ? warning(false, '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') : void 0;
  16176. didWarnValDefaultVal = true;
  16177. }
  16178. }
  16179. var value = LinkedValueUtils.getValue(props);
  16180. var initialValue = value;
  16181. // Only bother fetching default value if we're going to use it
  16182. if (value == null) {
  16183. var defaultValue = props.defaultValue;
  16184. // TODO (yungsters): Remove support for children content in <textarea>.
  16185. var children = props.children;
  16186. if (children != null) {
  16187. if (process.env.NODE_ENV !== 'production') {
  16188. process.env.NODE_ENV !== 'production' ? warning(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.') : void 0;
  16189. }
  16190. !(defaultValue == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : _prodInvariant('92') : void 0;
  16191. if (Array.isArray(children)) {
  16192. !(children.length <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, '<textarea> can only have at most one child.') : _prodInvariant('93') : void 0;
  16193. children = children[0];
  16194. }
  16195. defaultValue = '' + children;
  16196. }
  16197. if (defaultValue == null) {
  16198. defaultValue = '';
  16199. }
  16200. initialValue = defaultValue;
  16201. }
  16202. inst._wrapperState = {
  16203. initialValue: '' + initialValue,
  16204. listeners: null,
  16205. onChange: _handleChange.bind(inst)
  16206. };
  16207. },
  16208. updateWrapper: function (inst) {
  16209. var props = inst._currentElement.props;
  16210. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16211. var value = LinkedValueUtils.getValue(props);
  16212. if (value != null) {
  16213. // Cast `value` to a string to ensure the value is set correctly. While
  16214. // browsers typically do this as necessary, jsdom doesn't.
  16215. var newValue = '' + value;
  16216. // To avoid side effects (such as losing text selection), only set value if changed
  16217. if (newValue !== node.value) {
  16218. node.value = newValue;
  16219. }
  16220. if (props.defaultValue == null) {
  16221. node.defaultValue = newValue;
  16222. }
  16223. }
  16224. if (props.defaultValue != null) {
  16225. node.defaultValue = props.defaultValue;
  16226. }
  16227. },
  16228. postMountWrapper: function (inst) {
  16229. // This is in postMount because we need access to the DOM node, which is not
  16230. // available until after the component has mounted.
  16231. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16232. var textContent = node.textContent;
  16233. // Only set node.value if textContent is equal to the expected
  16234. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  16235. // will populate textContent as well.
  16236. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  16237. if (textContent === inst._wrapperState.initialValue) {
  16238. node.value = textContent;
  16239. }
  16240. }
  16241. };
  16242. function _handleChange(event) {
  16243. var props = this._currentElement.props;
  16244. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  16245. ReactUpdates.asap(forceUpdateIfMounted, this);
  16246. return returnValue;
  16247. }
  16248. module.exports = ReactDOMTextarea;
  16249. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16250. /***/ }),
  16251. /* 144 */
  16252. /***/ (function(module, exports, __webpack_require__) {
  16253. "use strict";
  16254. /* WEBPACK VAR INJECTION */(function(process) {/**
  16255. * Copyright 2013-present, Facebook, Inc.
  16256. * All rights reserved.
  16257. *
  16258. * This source code is licensed under the BSD-style license found in the
  16259. * LICENSE file in the root directory of this source tree. An additional grant
  16260. * of patent rights can be found in the PATENTS file in the same directory.
  16261. *
  16262. */
  16263. var _prodInvariant = __webpack_require__(3);
  16264. var ReactComponentEnvironment = __webpack_require__(44);
  16265. var ReactInstanceMap = __webpack_require__(24);
  16266. var ReactInstrumentation = __webpack_require__(9);
  16267. var ReactCurrentOwner = __webpack_require__(10);
  16268. var ReactReconciler = __webpack_require__(18);
  16269. var ReactChildReconciler = __webpack_require__(145);
  16270. var emptyFunction = __webpack_require__(8);
  16271. var flattenChildren = __webpack_require__(152);
  16272. var invariant = __webpack_require__(1);
  16273. /**
  16274. * Make an update for markup to be rendered and inserted at a supplied index.
  16275. *
  16276. * @param {string} markup Markup that renders into an element.
  16277. * @param {number} toIndex Destination index.
  16278. * @private
  16279. */
  16280. function makeInsertMarkup(markup, afterNode, toIndex) {
  16281. // NOTE: Null values reduce hidden classes.
  16282. return {
  16283. type: 'INSERT_MARKUP',
  16284. content: markup,
  16285. fromIndex: null,
  16286. fromNode: null,
  16287. toIndex: toIndex,
  16288. afterNode: afterNode
  16289. };
  16290. }
  16291. /**
  16292. * Make an update for moving an existing element to another index.
  16293. *
  16294. * @param {number} fromIndex Source index of the existing element.
  16295. * @param {number} toIndex Destination index of the element.
  16296. * @private
  16297. */
  16298. function makeMove(child, afterNode, toIndex) {
  16299. // NOTE: Null values reduce hidden classes.
  16300. return {
  16301. type: 'MOVE_EXISTING',
  16302. content: null,
  16303. fromIndex: child._mountIndex,
  16304. fromNode: ReactReconciler.getHostNode(child),
  16305. toIndex: toIndex,
  16306. afterNode: afterNode
  16307. };
  16308. }
  16309. /**
  16310. * Make an update for removing an element at an index.
  16311. *
  16312. * @param {number} fromIndex Index of the element to remove.
  16313. * @private
  16314. */
  16315. function makeRemove(child, node) {
  16316. // NOTE: Null values reduce hidden classes.
  16317. return {
  16318. type: 'REMOVE_NODE',
  16319. content: null,
  16320. fromIndex: child._mountIndex,
  16321. fromNode: node,
  16322. toIndex: null,
  16323. afterNode: null
  16324. };
  16325. }
  16326. /**
  16327. * Make an update for setting the markup of a node.
  16328. *
  16329. * @param {string} markup Markup that renders into an element.
  16330. * @private
  16331. */
  16332. function makeSetMarkup(markup) {
  16333. // NOTE: Null values reduce hidden classes.
  16334. return {
  16335. type: 'SET_MARKUP',
  16336. content: markup,
  16337. fromIndex: null,
  16338. fromNode: null,
  16339. toIndex: null,
  16340. afterNode: null
  16341. };
  16342. }
  16343. /**
  16344. * Make an update for setting the text content.
  16345. *
  16346. * @param {string} textContent Text content to set.
  16347. * @private
  16348. */
  16349. function makeTextContent(textContent) {
  16350. // NOTE: Null values reduce hidden classes.
  16351. return {
  16352. type: 'TEXT_CONTENT',
  16353. content: textContent,
  16354. fromIndex: null,
  16355. fromNode: null,
  16356. toIndex: null,
  16357. afterNode: null
  16358. };
  16359. }
  16360. /**
  16361. * Push an update, if any, onto the queue. Creates a new queue if none is
  16362. * passed and always returns the queue. Mutative.
  16363. */
  16364. function enqueue(queue, update) {
  16365. if (update) {
  16366. queue = queue || [];
  16367. queue.push(update);
  16368. }
  16369. return queue;
  16370. }
  16371. /**
  16372. * Processes any enqueued updates.
  16373. *
  16374. * @private
  16375. */
  16376. function processQueue(inst, updateQueue) {
  16377. ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue);
  16378. }
  16379. var setChildrenForInstrumentation = emptyFunction;
  16380. if (process.env.NODE_ENV !== 'production') {
  16381. var getDebugID = function (inst) {
  16382. if (!inst._debugID) {
  16383. // Check for ART-like instances. TODO: This is silly/gross.
  16384. var internal;
  16385. if (internal = ReactInstanceMap.get(inst)) {
  16386. inst = internal;
  16387. }
  16388. }
  16389. return inst._debugID;
  16390. };
  16391. setChildrenForInstrumentation = function (children) {
  16392. var debugID = getDebugID(this);
  16393. // TODO: React Native empty components are also multichild.
  16394. // This means they still get into this method but don't have _debugID.
  16395. if (debugID !== 0) {
  16396. ReactInstrumentation.debugTool.onSetChildren(debugID, children ? Object.keys(children).map(function (key) {
  16397. return children[key]._debugID;
  16398. }) : []);
  16399. }
  16400. };
  16401. }
  16402. /**
  16403. * ReactMultiChild are capable of reconciling multiple children.
  16404. *
  16405. * @class ReactMultiChild
  16406. * @internal
  16407. */
  16408. var ReactMultiChild = {
  16409. /**
  16410. * Provides common functionality for components that must reconcile multiple
  16411. * children. This is used by `ReactDOMComponent` to mount, update, and
  16412. * unmount child components.
  16413. *
  16414. * @lends {ReactMultiChild.prototype}
  16415. */
  16416. Mixin: {
  16417. _reconcilerInstantiateChildren: function (nestedChildren, transaction, context) {
  16418. if (process.env.NODE_ENV !== 'production') {
  16419. var selfDebugID = getDebugID(this);
  16420. if (this._currentElement) {
  16421. try {
  16422. ReactCurrentOwner.current = this._currentElement._owner;
  16423. return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context, selfDebugID);
  16424. } finally {
  16425. ReactCurrentOwner.current = null;
  16426. }
  16427. }
  16428. }
  16429. return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context);
  16430. },
  16431. _reconcilerUpdateChildren: function (prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context) {
  16432. var nextChildren;
  16433. var selfDebugID = 0;
  16434. if (process.env.NODE_ENV !== 'production') {
  16435. selfDebugID = getDebugID(this);
  16436. if (this._currentElement) {
  16437. try {
  16438. ReactCurrentOwner.current = this._currentElement._owner;
  16439. nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
  16440. } finally {
  16441. ReactCurrentOwner.current = null;
  16442. }
  16443. ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16444. return nextChildren;
  16445. }
  16446. }
  16447. nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
  16448. ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16449. return nextChildren;
  16450. },
  16451. /**
  16452. * Generates a "mount image" for each of the supplied children. In the case
  16453. * of `ReactDOMComponent`, a mount image is a string of markup.
  16454. *
  16455. * @param {?object} nestedChildren Nested child maps.
  16456. * @return {array} An array of mounted representations.
  16457. * @internal
  16458. */
  16459. mountChildren: function (nestedChildren, transaction, context) {
  16460. var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context);
  16461. this._renderedChildren = children;
  16462. var mountImages = [];
  16463. var index = 0;
  16464. for (var name in children) {
  16465. if (children.hasOwnProperty(name)) {
  16466. var child = children[name];
  16467. var selfDebugID = 0;
  16468. if (process.env.NODE_ENV !== 'production') {
  16469. selfDebugID = getDebugID(this);
  16470. }
  16471. var mountImage = ReactReconciler.mountComponent(child, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16472. child._mountIndex = index++;
  16473. mountImages.push(mountImage);
  16474. }
  16475. }
  16476. if (process.env.NODE_ENV !== 'production') {
  16477. setChildrenForInstrumentation.call(this, children);
  16478. }
  16479. return mountImages;
  16480. },
  16481. /**
  16482. * Replaces any rendered children with a text content string.
  16483. *
  16484. * @param {string} nextContent String of content.
  16485. * @internal
  16486. */
  16487. updateTextContent: function (nextContent) {
  16488. var prevChildren = this._renderedChildren;
  16489. // Remove any rendered children.
  16490. ReactChildReconciler.unmountChildren(prevChildren, false);
  16491. for (var name in prevChildren) {
  16492. if (prevChildren.hasOwnProperty(name)) {
  16493. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
  16494. }
  16495. }
  16496. // Set new text content.
  16497. var updates = [makeTextContent(nextContent)];
  16498. processQueue(this, updates);
  16499. },
  16500. /**
  16501. * Replaces any rendered children with a markup string.
  16502. *
  16503. * @param {string} nextMarkup String of markup.
  16504. * @internal
  16505. */
  16506. updateMarkup: function (nextMarkup) {
  16507. var prevChildren = this._renderedChildren;
  16508. // Remove any rendered children.
  16509. ReactChildReconciler.unmountChildren(prevChildren, false);
  16510. for (var name in prevChildren) {
  16511. if (prevChildren.hasOwnProperty(name)) {
  16512. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
  16513. }
  16514. }
  16515. var updates = [makeSetMarkup(nextMarkup)];
  16516. processQueue(this, updates);
  16517. },
  16518. /**
  16519. * Updates the rendered children with new children.
  16520. *
  16521. * @param {?object} nextNestedChildrenElements Nested child element maps.
  16522. * @param {ReactReconcileTransaction} transaction
  16523. * @internal
  16524. */
  16525. updateChildren: function (nextNestedChildrenElements, transaction, context) {
  16526. // Hook used by React ART
  16527. this._updateChildren(nextNestedChildrenElements, transaction, context);
  16528. },
  16529. /**
  16530. * @param {?object} nextNestedChildrenElements Nested child element maps.
  16531. * @param {ReactReconcileTransaction} transaction
  16532. * @final
  16533. * @protected
  16534. */
  16535. _updateChildren: function (nextNestedChildrenElements, transaction, context) {
  16536. var prevChildren = this._renderedChildren;
  16537. var removedNodes = {};
  16538. var mountImages = [];
  16539. var nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context);
  16540. if (!nextChildren && !prevChildren) {
  16541. return;
  16542. }
  16543. var updates = null;
  16544. var name;
  16545. // `nextIndex` will increment for each child in `nextChildren`, but
  16546. // `lastIndex` will be the last index visited in `prevChildren`.
  16547. var nextIndex = 0;
  16548. var lastIndex = 0;
  16549. // `nextMountIndex` will increment for each newly mounted child.
  16550. var nextMountIndex = 0;
  16551. var lastPlacedNode = null;
  16552. for (name in nextChildren) {
  16553. if (!nextChildren.hasOwnProperty(name)) {
  16554. continue;
  16555. }
  16556. var prevChild = prevChildren && prevChildren[name];
  16557. var nextChild = nextChildren[name];
  16558. if (prevChild === nextChild) {
  16559. updates = enqueue(updates, this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex));
  16560. lastIndex = Math.max(prevChild._mountIndex, lastIndex);
  16561. prevChild._mountIndex = nextIndex;
  16562. } else {
  16563. if (prevChild) {
  16564. // Update `lastIndex` before `_mountIndex` gets unset by unmounting.
  16565. lastIndex = Math.max(prevChild._mountIndex, lastIndex);
  16566. // The `removedNodes` loop below will actually remove the child.
  16567. }
  16568. // The child must be instantiated before it's mounted.
  16569. updates = enqueue(updates, this._mountChildAtIndex(nextChild, mountImages[nextMountIndex], lastPlacedNode, nextIndex, transaction, context));
  16570. nextMountIndex++;
  16571. }
  16572. nextIndex++;
  16573. lastPlacedNode = ReactReconciler.getHostNode(nextChild);
  16574. }
  16575. // Remove children that are no longer present.
  16576. for (name in removedNodes) {
  16577. if (removedNodes.hasOwnProperty(name)) {
  16578. updates = enqueue(updates, this._unmountChild(prevChildren[name], removedNodes[name]));
  16579. }
  16580. }
  16581. if (updates) {
  16582. processQueue(this, updates);
  16583. }
  16584. this._renderedChildren = nextChildren;
  16585. if (process.env.NODE_ENV !== 'production') {
  16586. setChildrenForInstrumentation.call(this, nextChildren);
  16587. }
  16588. },
  16589. /**
  16590. * Unmounts all rendered children. This should be used to clean up children
  16591. * when this component is unmounted. It does not actually perform any
  16592. * backend operations.
  16593. *
  16594. * @internal
  16595. */
  16596. unmountChildren: function (safely) {
  16597. var renderedChildren = this._renderedChildren;
  16598. ReactChildReconciler.unmountChildren(renderedChildren, safely);
  16599. this._renderedChildren = null;
  16600. },
  16601. /**
  16602. * Moves a child component to the supplied index.
  16603. *
  16604. * @param {ReactComponent} child Component to move.
  16605. * @param {number} toIndex Destination index of the element.
  16606. * @param {number} lastIndex Last index visited of the siblings of `child`.
  16607. * @protected
  16608. */
  16609. moveChild: function (child, afterNode, toIndex, lastIndex) {
  16610. // If the index of `child` is less than `lastIndex`, then it needs to
  16611. // be moved. Otherwise, we do not need to move it because a child will be
  16612. // inserted or moved before `child`.
  16613. if (child._mountIndex < lastIndex) {
  16614. return makeMove(child, afterNode, toIndex);
  16615. }
  16616. },
  16617. /**
  16618. * Creates a child component.
  16619. *
  16620. * @param {ReactComponent} child Component to create.
  16621. * @param {string} mountImage Markup to insert.
  16622. * @protected
  16623. */
  16624. createChild: function (child, afterNode, mountImage) {
  16625. return makeInsertMarkup(mountImage, afterNode, child._mountIndex);
  16626. },
  16627. /**
  16628. * Removes a child component.
  16629. *
  16630. * @param {ReactComponent} child Child to remove.
  16631. * @protected
  16632. */
  16633. removeChild: function (child, node) {
  16634. return makeRemove(child, node);
  16635. },
  16636. /**
  16637. * Mounts a child with the supplied name.
  16638. *
  16639. * NOTE: This is part of `updateChildren` and is here for readability.
  16640. *
  16641. * @param {ReactComponent} child Component to mount.
  16642. * @param {string} name Name of the child.
  16643. * @param {number} index Index at which to insert the child.
  16644. * @param {ReactReconcileTransaction} transaction
  16645. * @private
  16646. */
  16647. _mountChildAtIndex: function (child, mountImage, afterNode, index, transaction, context) {
  16648. child._mountIndex = index;
  16649. return this.createChild(child, afterNode, mountImage);
  16650. },
  16651. /**
  16652. * Unmounts a rendered child.
  16653. *
  16654. * NOTE: This is part of `updateChildren` and is here for readability.
  16655. *
  16656. * @param {ReactComponent} child Component to unmount.
  16657. * @private
  16658. */
  16659. _unmountChild: function (child, node) {
  16660. var update = this.removeChild(child, node);
  16661. child._mountIndex = null;
  16662. return update;
  16663. }
  16664. }
  16665. };
  16666. module.exports = ReactMultiChild;
  16667. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16668. /***/ }),
  16669. /* 145 */
  16670. /***/ (function(module, exports, __webpack_require__) {
  16671. "use strict";
  16672. /* WEBPACK VAR INJECTION */(function(process) {/**
  16673. * Copyright 2014-present, Facebook, Inc.
  16674. * All rights reserved.
  16675. *
  16676. * This source code is licensed under the BSD-style license found in the
  16677. * LICENSE file in the root directory of this source tree. An additional grant
  16678. * of patent rights can be found in the PATENTS file in the same directory.
  16679. *
  16680. */
  16681. var ReactReconciler = __webpack_require__(18);
  16682. var instantiateReactComponent = __webpack_require__(71);
  16683. var KeyEscapeUtils = __webpack_require__(47);
  16684. var shouldUpdateReactComponent = __webpack_require__(46);
  16685. var traverseAllChildren = __webpack_require__(75);
  16686. var warning = __webpack_require__(2);
  16687. var ReactComponentTreeHook;
  16688. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  16689. // Temporary hack.
  16690. // Inline requires don't work well with Jest:
  16691. // https://github.com/facebook/react/issues/7240
  16692. // Remove the inline requires when we don't need them anymore:
  16693. // https://github.com/facebook/react/pull/7178
  16694. ReactComponentTreeHook = __webpack_require__(7);
  16695. }
  16696. function instantiateChild(childInstances, child, name, selfDebugID) {
  16697. // We found a component instance.
  16698. var keyUnique = childInstances[name] === undefined;
  16699. if (process.env.NODE_ENV !== 'production') {
  16700. if (!ReactComponentTreeHook) {
  16701. ReactComponentTreeHook = __webpack_require__(7);
  16702. }
  16703. if (!keyUnique) {
  16704. process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
  16705. }
  16706. }
  16707. if (child != null && keyUnique) {
  16708. childInstances[name] = instantiateReactComponent(child, true);
  16709. }
  16710. }
  16711. /**
  16712. * ReactChildReconciler provides helpers for initializing or updating a set of
  16713. * children. Its output is suitable for passing it onto ReactMultiChild which
  16714. * does diffed reordering and insertion.
  16715. */
  16716. var ReactChildReconciler = {
  16717. /**
  16718. * Generates a "mount image" for each of the supplied children. In the case
  16719. * of `ReactDOMComponent`, a mount image is a string of markup.
  16720. *
  16721. * @param {?object} nestedChildNodes Nested child maps.
  16722. * @return {?object} A set of child instances.
  16723. * @internal
  16724. */
  16725. instantiateChildren: function (nestedChildNodes, transaction, context, selfDebugID // 0 in production and for roots
  16726. ) {
  16727. if (nestedChildNodes == null) {
  16728. return null;
  16729. }
  16730. var childInstances = {};
  16731. if (process.env.NODE_ENV !== 'production') {
  16732. traverseAllChildren(nestedChildNodes, function (childInsts, child, name) {
  16733. return instantiateChild(childInsts, child, name, selfDebugID);
  16734. }, childInstances);
  16735. } else {
  16736. traverseAllChildren(nestedChildNodes, instantiateChild, childInstances);
  16737. }
  16738. return childInstances;
  16739. },
  16740. /**
  16741. * Updates the rendered children and returns a new set of children.
  16742. *
  16743. * @param {?object} prevChildren Previously initialized set of children.
  16744. * @param {?object} nextChildren Flat child element maps.
  16745. * @param {ReactReconcileTransaction} transaction
  16746. * @param {object} context
  16747. * @return {?object} A new set of child instances.
  16748. * @internal
  16749. */
  16750. updateChildren: function (prevChildren, nextChildren, mountImages, removedNodes, transaction, hostParent, hostContainerInfo, context, selfDebugID // 0 in production and for roots
  16751. ) {
  16752. // We currently don't have a way to track moves here but if we use iterators
  16753. // instead of for..in we can zip the iterators and check if an item has
  16754. // moved.
  16755. // TODO: If nothing has changed, return the prevChildren object so that we
  16756. // can quickly bailout if nothing has changed.
  16757. if (!nextChildren && !prevChildren) {
  16758. return;
  16759. }
  16760. var name;
  16761. var prevChild;
  16762. for (name in nextChildren) {
  16763. if (!nextChildren.hasOwnProperty(name)) {
  16764. continue;
  16765. }
  16766. prevChild = prevChildren && prevChildren[name];
  16767. var prevElement = prevChild && prevChild._currentElement;
  16768. var nextElement = nextChildren[name];
  16769. if (prevChild != null && shouldUpdateReactComponent(prevElement, nextElement)) {
  16770. ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context);
  16771. nextChildren[name] = prevChild;
  16772. } else {
  16773. if (prevChild) {
  16774. removedNodes[name] = ReactReconciler.getHostNode(prevChild);
  16775. ReactReconciler.unmountComponent(prevChild, false);
  16776. }
  16777. // The child must be instantiated before it's mounted.
  16778. var nextChildInstance = instantiateReactComponent(nextElement, true);
  16779. nextChildren[name] = nextChildInstance;
  16780. // Creating mount image now ensures refs are resolved in right order
  16781. // (see https://github.com/facebook/react/pull/7101 for explanation).
  16782. var nextChildMountImage = ReactReconciler.mountComponent(nextChildInstance, transaction, hostParent, hostContainerInfo, context, selfDebugID);
  16783. mountImages.push(nextChildMountImage);
  16784. }
  16785. }
  16786. // Unmount children that are no longer present.
  16787. for (name in prevChildren) {
  16788. if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) {
  16789. prevChild = prevChildren[name];
  16790. removedNodes[name] = ReactReconciler.getHostNode(prevChild);
  16791. ReactReconciler.unmountComponent(prevChild, false);
  16792. }
  16793. }
  16794. },
  16795. /**
  16796. * Unmounts all rendered children. This should be used to clean up children
  16797. * when this component is unmounted.
  16798. *
  16799. * @param {?object} renderedChildren Previously initialized set of children.
  16800. * @internal
  16801. */
  16802. unmountChildren: function (renderedChildren, safely) {
  16803. for (var name in renderedChildren) {
  16804. if (renderedChildren.hasOwnProperty(name)) {
  16805. var renderedChild = renderedChildren[name];
  16806. ReactReconciler.unmountComponent(renderedChild, safely);
  16807. }
  16808. }
  16809. }
  16810. };
  16811. module.exports = ReactChildReconciler;
  16812. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16813. /***/ }),
  16814. /* 146 */
  16815. /***/ (function(module, exports, __webpack_require__) {
  16816. "use strict";
  16817. /* WEBPACK VAR INJECTION */(function(process) {/**
  16818. * Copyright 2013-present, Facebook, Inc.
  16819. * All rights reserved.
  16820. *
  16821. * This source code is licensed under the BSD-style license found in the
  16822. * LICENSE file in the root directory of this source tree. An additional grant
  16823. * of patent rights can be found in the PATENTS file in the same directory.
  16824. *
  16825. */
  16826. var _prodInvariant = __webpack_require__(3),
  16827. _assign = __webpack_require__(4);
  16828. var React = __webpack_require__(17);
  16829. var ReactComponentEnvironment = __webpack_require__(44);
  16830. var ReactCurrentOwner = __webpack_require__(10);
  16831. var ReactErrorUtils = __webpack_require__(36);
  16832. var ReactInstanceMap = __webpack_require__(24);
  16833. var ReactInstrumentation = __webpack_require__(9);
  16834. var ReactNodeTypes = __webpack_require__(72);
  16835. var ReactReconciler = __webpack_require__(18);
  16836. if (process.env.NODE_ENV !== 'production') {
  16837. var checkReactTypeSpec = __webpack_require__(147);
  16838. }
  16839. var emptyObject = __webpack_require__(20);
  16840. var invariant = __webpack_require__(1);
  16841. var shallowEqual = __webpack_require__(45);
  16842. var shouldUpdateReactComponent = __webpack_require__(46);
  16843. var warning = __webpack_require__(2);
  16844. var CompositeTypes = {
  16845. ImpureClass: 0,
  16846. PureClass: 1,
  16847. StatelessFunctional: 2
  16848. };
  16849. function StatelessComponent(Component) {}
  16850. StatelessComponent.prototype.render = function () {
  16851. var Component = ReactInstanceMap.get(this)._currentElement.type;
  16852. var element = Component(this.props, this.context, this.updater);
  16853. warnIfInvalidElement(Component, element);
  16854. return element;
  16855. };
  16856. function warnIfInvalidElement(Component, element) {
  16857. if (process.env.NODE_ENV !== 'production') {
  16858. process.env.NODE_ENV !== 'production' ? warning(element === null || element === false || React.isValidElement(element), '%s(...): A valid React element (or null) must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : void 0;
  16859. process.env.NODE_ENV !== 'production' ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0;
  16860. }
  16861. }
  16862. function shouldConstruct(Component) {
  16863. return !!(Component.prototype && Component.prototype.isReactComponent);
  16864. }
  16865. function isPureComponent(Component) {
  16866. return !!(Component.prototype && Component.prototype.isPureReactComponent);
  16867. }
  16868. // Separated into a function to contain deoptimizations caused by try/finally.
  16869. function measureLifeCyclePerf(fn, debugID, timerType) {
  16870. if (debugID === 0) {
  16871. // Top-level wrappers (see ReactMount) and empty components (see
  16872. // ReactDOMEmptyComponent) are invisible to hooks and devtools.
  16873. // Both are implementation details that should go away in the future.
  16874. return fn();
  16875. }
  16876. ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);
  16877. try {
  16878. return fn();
  16879. } finally {
  16880. ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);
  16881. }
  16882. }
  16883. /**
  16884. * ------------------ The Life-Cycle of a Composite Component ------------------
  16885. *
  16886. * - constructor: Initialization of state. The instance is now retained.
  16887. * - componentWillMount
  16888. * - render
  16889. * - [children's constructors]
  16890. * - [children's componentWillMount and render]
  16891. * - [children's componentDidMount]
  16892. * - componentDidMount
  16893. *
  16894. * Update Phases:
  16895. * - componentWillReceiveProps (only called if parent updated)
  16896. * - shouldComponentUpdate
  16897. * - componentWillUpdate
  16898. * - render
  16899. * - [children's constructors or receive props phases]
  16900. * - componentDidUpdate
  16901. *
  16902. * - componentWillUnmount
  16903. * - [children's componentWillUnmount]
  16904. * - [children destroyed]
  16905. * - (destroyed): The instance is now blank, released by React and ready for GC.
  16906. *
  16907. * -----------------------------------------------------------------------------
  16908. */
  16909. /**
  16910. * An incrementing ID assigned to each component when it is mounted. This is
  16911. * used to enforce the order in which `ReactUpdates` updates dirty components.
  16912. *
  16913. * @private
  16914. */
  16915. var nextMountID = 1;
  16916. /**
  16917. * @lends {ReactCompositeComponent.prototype}
  16918. */
  16919. var ReactCompositeComponent = {
  16920. /**
  16921. * Base constructor for all composite component.
  16922. *
  16923. * @param {ReactElement} element
  16924. * @final
  16925. * @internal
  16926. */
  16927. construct: function (element) {
  16928. this._currentElement = element;
  16929. this._rootNodeID = 0;
  16930. this._compositeType = null;
  16931. this._instance = null;
  16932. this._hostParent = null;
  16933. this._hostContainerInfo = null;
  16934. // See ReactUpdateQueue
  16935. this._updateBatchNumber = null;
  16936. this._pendingElement = null;
  16937. this._pendingStateQueue = null;
  16938. this._pendingReplaceState = false;
  16939. this._pendingForceUpdate = false;
  16940. this._renderedNodeType = null;
  16941. this._renderedComponent = null;
  16942. this._context = null;
  16943. this._mountOrder = 0;
  16944. this._topLevelWrapper = null;
  16945. // See ReactUpdates and ReactUpdateQueue.
  16946. this._pendingCallbacks = null;
  16947. // ComponentWillUnmount shall only be called once
  16948. this._calledComponentWillUnmount = false;
  16949. if (process.env.NODE_ENV !== 'production') {
  16950. this._warnedAboutRefsInRender = false;
  16951. }
  16952. },
  16953. /**
  16954. * Initializes the component, renders markup, and registers event listeners.
  16955. *
  16956. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  16957. * @param {?object} hostParent
  16958. * @param {?object} hostContainerInfo
  16959. * @param {?object} context
  16960. * @return {?string} Rendered markup to be inserted into the DOM.
  16961. * @final
  16962. * @internal
  16963. */
  16964. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  16965. var _this = this;
  16966. this._context = context;
  16967. this._mountOrder = nextMountID++;
  16968. this._hostParent = hostParent;
  16969. this._hostContainerInfo = hostContainerInfo;
  16970. var publicProps = this._currentElement.props;
  16971. var publicContext = this._processContext(context);
  16972. var Component = this._currentElement.type;
  16973. var updateQueue = transaction.getUpdateQueue();
  16974. // Initialize the public class
  16975. var doConstruct = shouldConstruct(Component);
  16976. var inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue);
  16977. var renderedElement;
  16978. // Support functional components
  16979. if (!doConstruct && (inst == null || inst.render == null)) {
  16980. renderedElement = inst;
  16981. warnIfInvalidElement(Component, renderedElement);
  16982. !(inst === null || inst === false || React.isValidElement(inst)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : _prodInvariant('105', Component.displayName || Component.name || 'Component') : void 0;
  16983. inst = new StatelessComponent(Component);
  16984. this._compositeType = CompositeTypes.StatelessFunctional;
  16985. } else {
  16986. if (isPureComponent(Component)) {
  16987. this._compositeType = CompositeTypes.PureClass;
  16988. } else {
  16989. this._compositeType = CompositeTypes.ImpureClass;
  16990. }
  16991. }
  16992. if (process.env.NODE_ENV !== 'production') {
  16993. // This will throw later in _renderValidatedComponent, but add an early
  16994. // warning now to help debugging
  16995. if (inst.render == null) {
  16996. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', Component.displayName || Component.name || 'Component') : void 0;
  16997. }
  16998. var propsMutated = inst.props !== publicProps;
  16999. var componentName = Component.displayName || Component.name || 'Component';
  17000. process.env.NODE_ENV !== 'production' ? warning(inst.props === undefined || !propsMutated, '%s(...): When calling super() in `%s`, make sure to pass ' + 'up the same props that your component\'s constructor was passed.', componentName, componentName) : void 0;
  17001. }
  17002. // These should be set up in the constructor, but as a convenience for
  17003. // simpler class abstractions, we set them up after the fact.
  17004. inst.props = publicProps;
  17005. inst.context = publicContext;
  17006. inst.refs = emptyObject;
  17007. inst.updater = updateQueue;
  17008. this._instance = inst;
  17009. // Store a reference from the instance back to the internal representation
  17010. ReactInstanceMap.set(inst, this);
  17011. if (process.env.NODE_ENV !== 'production') {
  17012. // Since plain JS classes are defined without any special initialization
  17013. // logic, we can not catch common errors early. Therefore, we have to
  17014. // catch them here, at initialization time, instead.
  17015. process.env.NODE_ENV !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved || inst.state, '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?', this.getName() || 'a component') : void 0;
  17016. process.env.NODE_ENV !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, '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.', this.getName() || 'a component') : void 0;
  17017. process.env.NODE_ENV !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0;
  17018. process.env.NODE_ENV !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0;
  17019. process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentShouldUpdate !== 'function', '%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.', this.getName() || 'A component') : void 0;
  17020. process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentDidUnmount !== 'function', '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', this.getName() || 'A component') : void 0;
  17021. process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentWillRecieveProps !== 'function', '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', this.getName() || 'A component') : void 0;
  17022. }
  17023. var initialState = inst.state;
  17024. if (initialState === undefined) {
  17025. inst.state = initialState = null;
  17026. }
  17027. !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.state: must be set to an object or null', this.getName() || 'ReactCompositeComponent') : _prodInvariant('106', this.getName() || 'ReactCompositeComponent') : void 0;
  17028. this._pendingStateQueue = null;
  17029. this._pendingReplaceState = false;
  17030. this._pendingForceUpdate = false;
  17031. var markup;
  17032. if (inst.unstable_handleError) {
  17033. markup = this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17034. } else {
  17035. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17036. }
  17037. if (inst.componentDidMount) {
  17038. if (process.env.NODE_ENV !== 'production') {
  17039. transaction.getReactMountReady().enqueue(function () {
  17040. measureLifeCyclePerf(function () {
  17041. return inst.componentDidMount();
  17042. }, _this._debugID, 'componentDidMount');
  17043. });
  17044. } else {
  17045. transaction.getReactMountReady().enqueue(inst.componentDidMount, inst);
  17046. }
  17047. }
  17048. return markup;
  17049. },
  17050. _constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) {
  17051. if (process.env.NODE_ENV !== 'production') {
  17052. ReactCurrentOwner.current = this;
  17053. try {
  17054. return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
  17055. } finally {
  17056. ReactCurrentOwner.current = null;
  17057. }
  17058. } else {
  17059. return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
  17060. }
  17061. },
  17062. _constructComponentWithoutOwner: function (doConstruct, publicProps, publicContext, updateQueue) {
  17063. var Component = this._currentElement.type;
  17064. if (doConstruct) {
  17065. if (process.env.NODE_ENV !== 'production') {
  17066. return measureLifeCyclePerf(function () {
  17067. return new Component(publicProps, publicContext, updateQueue);
  17068. }, this._debugID, 'ctor');
  17069. } else {
  17070. return new Component(publicProps, publicContext, updateQueue);
  17071. }
  17072. }
  17073. // This can still be an instance in case of factory components
  17074. // but we'll count this as time spent rendering as the more common case.
  17075. if (process.env.NODE_ENV !== 'production') {
  17076. return measureLifeCyclePerf(function () {
  17077. return Component(publicProps, publicContext, updateQueue);
  17078. }, this._debugID, 'render');
  17079. } else {
  17080. return Component(publicProps, publicContext, updateQueue);
  17081. }
  17082. },
  17083. performInitialMountWithErrorHandling: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
  17084. var markup;
  17085. var checkpoint = transaction.checkpoint();
  17086. try {
  17087. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17088. } catch (e) {
  17089. // Roll back to checkpoint, handle error (which may add items to the transaction), and take a new checkpoint
  17090. transaction.rollback(checkpoint);
  17091. this._instance.unstable_handleError(e);
  17092. if (this._pendingStateQueue) {
  17093. this._instance.state = this._processPendingState(this._instance.props, this._instance.context);
  17094. }
  17095. checkpoint = transaction.checkpoint();
  17096. this._renderedComponent.unmountComponent(true);
  17097. transaction.rollback(checkpoint);
  17098. // Try again - we've informed the component about the error, so they can render an error message this time.
  17099. // If this throws again, the error will bubble up (and can be caught by a higher error boundary).
  17100. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17101. }
  17102. return markup;
  17103. },
  17104. performInitialMount: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
  17105. var inst = this._instance;
  17106. var debugID = 0;
  17107. if (process.env.NODE_ENV !== 'production') {
  17108. debugID = this._debugID;
  17109. }
  17110. if (inst.componentWillMount) {
  17111. if (process.env.NODE_ENV !== 'production') {
  17112. measureLifeCyclePerf(function () {
  17113. return inst.componentWillMount();
  17114. }, debugID, 'componentWillMount');
  17115. } else {
  17116. inst.componentWillMount();
  17117. }
  17118. // When mounting, calls to `setState` by `componentWillMount` will set
  17119. // `this._pendingStateQueue` without triggering a re-render.
  17120. if (this._pendingStateQueue) {
  17121. inst.state = this._processPendingState(inst.props, inst.context);
  17122. }
  17123. }
  17124. // If not a stateless component, we now render
  17125. if (renderedElement === undefined) {
  17126. renderedElement = this._renderValidatedComponent();
  17127. }
  17128. var nodeType = ReactNodeTypes.getType(renderedElement);
  17129. this._renderedNodeType = nodeType;
  17130. var child = this._instantiateReactComponent(renderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
  17131. );
  17132. this._renderedComponent = child;
  17133. var markup = ReactReconciler.mountComponent(child, transaction, hostParent, hostContainerInfo, this._processChildContext(context), debugID);
  17134. if (process.env.NODE_ENV !== 'production') {
  17135. if (debugID !== 0) {
  17136. var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
  17137. ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
  17138. }
  17139. }
  17140. return markup;
  17141. },
  17142. getHostNode: function () {
  17143. return ReactReconciler.getHostNode(this._renderedComponent);
  17144. },
  17145. /**
  17146. * Releases any resources allocated by `mountComponent`.
  17147. *
  17148. * @final
  17149. * @internal
  17150. */
  17151. unmountComponent: function (safely) {
  17152. if (!this._renderedComponent) {
  17153. return;
  17154. }
  17155. var inst = this._instance;
  17156. if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) {
  17157. inst._calledComponentWillUnmount = true;
  17158. if (safely) {
  17159. var name = this.getName() + '.componentWillUnmount()';
  17160. ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst));
  17161. } else {
  17162. if (process.env.NODE_ENV !== 'production') {
  17163. measureLifeCyclePerf(function () {
  17164. return inst.componentWillUnmount();
  17165. }, this._debugID, 'componentWillUnmount');
  17166. } else {
  17167. inst.componentWillUnmount();
  17168. }
  17169. }
  17170. }
  17171. if (this._renderedComponent) {
  17172. ReactReconciler.unmountComponent(this._renderedComponent, safely);
  17173. this._renderedNodeType = null;
  17174. this._renderedComponent = null;
  17175. this._instance = null;
  17176. }
  17177. // Reset pending fields
  17178. // Even if this component is scheduled for another update in ReactUpdates,
  17179. // it would still be ignored because these fields are reset.
  17180. this._pendingStateQueue = null;
  17181. this._pendingReplaceState = false;
  17182. this._pendingForceUpdate = false;
  17183. this._pendingCallbacks = null;
  17184. this._pendingElement = null;
  17185. // These fields do not really need to be reset since this object is no
  17186. // longer accessible.
  17187. this._context = null;
  17188. this._rootNodeID = 0;
  17189. this._topLevelWrapper = null;
  17190. // Delete the reference from the instance to this internal representation
  17191. // which allow the internals to be properly cleaned up even if the user
  17192. // leaks a reference to the public instance.
  17193. ReactInstanceMap.remove(inst);
  17194. // Some existing components rely on inst.props even after they've been
  17195. // destroyed (in event handlers).
  17196. // TODO: inst.props = null;
  17197. // TODO: inst.state = null;
  17198. // TODO: inst.context = null;
  17199. },
  17200. /**
  17201. * Filters the context object to only contain keys specified in
  17202. * `contextTypes`
  17203. *
  17204. * @param {object} context
  17205. * @return {?object}
  17206. * @private
  17207. */
  17208. _maskContext: function (context) {
  17209. var Component = this._currentElement.type;
  17210. var contextTypes = Component.contextTypes;
  17211. if (!contextTypes) {
  17212. return emptyObject;
  17213. }
  17214. var maskedContext = {};
  17215. for (var contextName in contextTypes) {
  17216. maskedContext[contextName] = context[contextName];
  17217. }
  17218. return maskedContext;
  17219. },
  17220. /**
  17221. * Filters the context object to only contain keys specified in
  17222. * `contextTypes`, and asserts that they are valid.
  17223. *
  17224. * @param {object} context
  17225. * @return {?object}
  17226. * @private
  17227. */
  17228. _processContext: function (context) {
  17229. var maskedContext = this._maskContext(context);
  17230. if (process.env.NODE_ENV !== 'production') {
  17231. var Component = this._currentElement.type;
  17232. if (Component.contextTypes) {
  17233. this._checkContextTypes(Component.contextTypes, maskedContext, 'context');
  17234. }
  17235. }
  17236. return maskedContext;
  17237. },
  17238. /**
  17239. * @param {object} currentContext
  17240. * @return {object}
  17241. * @private
  17242. */
  17243. _processChildContext: function (currentContext) {
  17244. var Component = this._currentElement.type;
  17245. var inst = this._instance;
  17246. var childContext;
  17247. if (inst.getChildContext) {
  17248. if (process.env.NODE_ENV !== 'production') {
  17249. ReactInstrumentation.debugTool.onBeginProcessingChildContext();
  17250. try {
  17251. childContext = inst.getChildContext();
  17252. } finally {
  17253. ReactInstrumentation.debugTool.onEndProcessingChildContext();
  17254. }
  17255. } else {
  17256. childContext = inst.getChildContext();
  17257. }
  17258. }
  17259. if (childContext) {
  17260. !(typeof Component.childContextTypes === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0;
  17261. if (process.env.NODE_ENV !== 'production') {
  17262. this._checkContextTypes(Component.childContextTypes, childContext, 'child context');
  17263. }
  17264. for (var name in childContext) {
  17265. !(name in Component.childContextTypes) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0;
  17266. }
  17267. return _assign({}, currentContext, childContext);
  17268. }
  17269. return currentContext;
  17270. },
  17271. /**
  17272. * Assert that the context types are valid
  17273. *
  17274. * @param {object} typeSpecs Map of context field to a ReactPropType
  17275. * @param {object} values Runtime values that need to be type-checked
  17276. * @param {string} location e.g. "prop", "context", "child context"
  17277. * @private
  17278. */
  17279. _checkContextTypes: function (typeSpecs, values, location) {
  17280. if (process.env.NODE_ENV !== 'production') {
  17281. checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID);
  17282. }
  17283. },
  17284. receiveComponent: function (nextElement, transaction, nextContext) {
  17285. var prevElement = this._currentElement;
  17286. var prevContext = this._context;
  17287. this._pendingElement = null;
  17288. this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext);
  17289. },
  17290. /**
  17291. * If any of `_pendingElement`, `_pendingStateQueue`, or `_pendingForceUpdate`
  17292. * is set, update the component.
  17293. *
  17294. * @param {ReactReconcileTransaction} transaction
  17295. * @internal
  17296. */
  17297. performUpdateIfNecessary: function (transaction) {
  17298. if (this._pendingElement != null) {
  17299. ReactReconciler.receiveComponent(this, this._pendingElement, transaction, this._context);
  17300. } else if (this._pendingStateQueue !== null || this._pendingForceUpdate) {
  17301. this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context);
  17302. } else {
  17303. this._updateBatchNumber = null;
  17304. }
  17305. },
  17306. /**
  17307. * Perform an update to a mounted component. The componentWillReceiveProps and
  17308. * shouldComponentUpdate methods are called, then (assuming the update isn't
  17309. * skipped) the remaining update lifecycle methods are called and the DOM
  17310. * representation is updated.
  17311. *
  17312. * By default, this implements React's rendering and reconciliation algorithm.
  17313. * Sophisticated clients may wish to override this.
  17314. *
  17315. * @param {ReactReconcileTransaction} transaction
  17316. * @param {ReactElement} prevParentElement
  17317. * @param {ReactElement} nextParentElement
  17318. * @internal
  17319. * @overridable
  17320. */
  17321. updateComponent: function (transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) {
  17322. var inst = this._instance;
  17323. !(inst != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Attempted to update component `%s` that has already been unmounted (or failed to mount).', this.getName() || 'ReactCompositeComponent') : _prodInvariant('136', this.getName() || 'ReactCompositeComponent') : void 0;
  17324. var willReceive = false;
  17325. var nextContext;
  17326. // Determine if the context has changed or not
  17327. if (this._context === nextUnmaskedContext) {
  17328. nextContext = inst.context;
  17329. } else {
  17330. nextContext = this._processContext(nextUnmaskedContext);
  17331. willReceive = true;
  17332. }
  17333. var prevProps = prevParentElement.props;
  17334. var nextProps = nextParentElement.props;
  17335. // Not a simple state update but a props update
  17336. if (prevParentElement !== nextParentElement) {
  17337. willReceive = true;
  17338. }
  17339. // An update here will schedule an update but immediately set
  17340. // _pendingStateQueue which will ensure that any state updates gets
  17341. // immediately reconciled instead of waiting for the next batch.
  17342. if (willReceive && inst.componentWillReceiveProps) {
  17343. if (process.env.NODE_ENV !== 'production') {
  17344. measureLifeCyclePerf(function () {
  17345. return inst.componentWillReceiveProps(nextProps, nextContext);
  17346. }, this._debugID, 'componentWillReceiveProps');
  17347. } else {
  17348. inst.componentWillReceiveProps(nextProps, nextContext);
  17349. }
  17350. }
  17351. var nextState = this._processPendingState(nextProps, nextContext);
  17352. var shouldUpdate = true;
  17353. if (!this._pendingForceUpdate) {
  17354. if (inst.shouldComponentUpdate) {
  17355. if (process.env.NODE_ENV !== 'production') {
  17356. shouldUpdate = measureLifeCyclePerf(function () {
  17357. return inst.shouldComponentUpdate(nextProps, nextState, nextContext);
  17358. }, this._debugID, 'shouldComponentUpdate');
  17359. } else {
  17360. shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext);
  17361. }
  17362. } else {
  17363. if (this._compositeType === CompositeTypes.PureClass) {
  17364. shouldUpdate = !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState);
  17365. }
  17366. }
  17367. }
  17368. if (process.env.NODE_ENV !== 'production') {
  17369. process.env.NODE_ENV !== 'production' ? warning(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', this.getName() || 'ReactCompositeComponent') : void 0;
  17370. }
  17371. this._updateBatchNumber = null;
  17372. if (shouldUpdate) {
  17373. this._pendingForceUpdate = false;
  17374. // Will set `this.props`, `this.state` and `this.context`.
  17375. this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext);
  17376. } else {
  17377. // If it's determined that a component should not update, we still want
  17378. // to set props and state but we shortcut the rest of the update.
  17379. this._currentElement = nextParentElement;
  17380. this._context = nextUnmaskedContext;
  17381. inst.props = nextProps;
  17382. inst.state = nextState;
  17383. inst.context = nextContext;
  17384. }
  17385. },
  17386. _processPendingState: function (props, context) {
  17387. var inst = this._instance;
  17388. var queue = this._pendingStateQueue;
  17389. var replace = this._pendingReplaceState;
  17390. this._pendingReplaceState = false;
  17391. this._pendingStateQueue = null;
  17392. if (!queue) {
  17393. return inst.state;
  17394. }
  17395. if (replace && queue.length === 1) {
  17396. return queue[0];
  17397. }
  17398. var nextState = _assign({}, replace ? queue[0] : inst.state);
  17399. for (var i = replace ? 1 : 0; i < queue.length; i++) {
  17400. var partial = queue[i];
  17401. _assign(nextState, typeof partial === 'function' ? partial.call(inst, nextState, props, context) : partial);
  17402. }
  17403. return nextState;
  17404. },
  17405. /**
  17406. * Merges new props and state, notifies delegate methods of update and
  17407. * performs update.
  17408. *
  17409. * @param {ReactElement} nextElement Next element
  17410. * @param {object} nextProps Next public object to set as properties.
  17411. * @param {?object} nextState Next object to set as state.
  17412. * @param {?object} nextContext Next public object to set as context.
  17413. * @param {ReactReconcileTransaction} transaction
  17414. * @param {?object} unmaskedContext
  17415. * @private
  17416. */
  17417. _performComponentUpdate: function (nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) {
  17418. var _this2 = this;
  17419. var inst = this._instance;
  17420. var hasComponentDidUpdate = Boolean(inst.componentDidUpdate);
  17421. var prevProps;
  17422. var prevState;
  17423. var prevContext;
  17424. if (hasComponentDidUpdate) {
  17425. prevProps = inst.props;
  17426. prevState = inst.state;
  17427. prevContext = inst.context;
  17428. }
  17429. if (inst.componentWillUpdate) {
  17430. if (process.env.NODE_ENV !== 'production') {
  17431. measureLifeCyclePerf(function () {
  17432. return inst.componentWillUpdate(nextProps, nextState, nextContext);
  17433. }, this._debugID, 'componentWillUpdate');
  17434. } else {
  17435. inst.componentWillUpdate(nextProps, nextState, nextContext);
  17436. }
  17437. }
  17438. this._currentElement = nextElement;
  17439. this._context = unmaskedContext;
  17440. inst.props = nextProps;
  17441. inst.state = nextState;
  17442. inst.context = nextContext;
  17443. this._updateRenderedComponent(transaction, unmaskedContext);
  17444. if (hasComponentDidUpdate) {
  17445. if (process.env.NODE_ENV !== 'production') {
  17446. transaction.getReactMountReady().enqueue(function () {
  17447. measureLifeCyclePerf(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), _this2._debugID, 'componentDidUpdate');
  17448. });
  17449. } else {
  17450. transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst);
  17451. }
  17452. }
  17453. },
  17454. /**
  17455. * Call the component's `render` method and update the DOM accordingly.
  17456. *
  17457. * @param {ReactReconcileTransaction} transaction
  17458. * @internal
  17459. */
  17460. _updateRenderedComponent: function (transaction, context) {
  17461. var prevComponentInstance = this._renderedComponent;
  17462. var prevRenderedElement = prevComponentInstance._currentElement;
  17463. var nextRenderedElement = this._renderValidatedComponent();
  17464. var debugID = 0;
  17465. if (process.env.NODE_ENV !== 'production') {
  17466. debugID = this._debugID;
  17467. }
  17468. if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) {
  17469. ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context));
  17470. } else {
  17471. var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance);
  17472. ReactReconciler.unmountComponent(prevComponentInstance, false);
  17473. var nodeType = ReactNodeTypes.getType(nextRenderedElement);
  17474. this._renderedNodeType = nodeType;
  17475. var child = this._instantiateReactComponent(nextRenderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
  17476. );
  17477. this._renderedComponent = child;
  17478. var nextMarkup = ReactReconciler.mountComponent(child, transaction, this._hostParent, this._hostContainerInfo, this._processChildContext(context), debugID);
  17479. if (process.env.NODE_ENV !== 'production') {
  17480. if (debugID !== 0) {
  17481. var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
  17482. ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
  17483. }
  17484. }
  17485. this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance);
  17486. }
  17487. },
  17488. /**
  17489. * Overridden in shallow rendering.
  17490. *
  17491. * @protected
  17492. */
  17493. _replaceNodeWithMarkup: function (oldHostNode, nextMarkup, prevInstance) {
  17494. ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance);
  17495. },
  17496. /**
  17497. * @protected
  17498. */
  17499. _renderValidatedComponentWithoutOwnerOrContext: function () {
  17500. var inst = this._instance;
  17501. var renderedElement;
  17502. if (process.env.NODE_ENV !== 'production') {
  17503. renderedElement = measureLifeCyclePerf(function () {
  17504. return inst.render();
  17505. }, this._debugID, 'render');
  17506. } else {
  17507. renderedElement = inst.render();
  17508. }
  17509. if (process.env.NODE_ENV !== 'production') {
  17510. // We allow auto-mocks to proceed as if they're returning null.
  17511. if (renderedElement === undefined && inst.render._isMockFunction) {
  17512. // This is probably bad practice. Consider warning here and
  17513. // deprecating this convenience.
  17514. renderedElement = null;
  17515. }
  17516. }
  17517. return renderedElement;
  17518. },
  17519. /**
  17520. * @private
  17521. */
  17522. _renderValidatedComponent: function () {
  17523. var renderedElement;
  17524. if (process.env.NODE_ENV !== 'production' || this._compositeType !== CompositeTypes.StatelessFunctional) {
  17525. ReactCurrentOwner.current = this;
  17526. try {
  17527. renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
  17528. } finally {
  17529. ReactCurrentOwner.current = null;
  17530. }
  17531. } else {
  17532. renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
  17533. }
  17534. !(
  17535. // TODO: An `isValidNode` function would probably be more appropriate
  17536. renderedElement === null || renderedElement === false || React.isValidElement(renderedElement)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : _prodInvariant('109', this.getName() || 'ReactCompositeComponent') : void 0;
  17537. return renderedElement;
  17538. },
  17539. /**
  17540. * Lazily allocates the refs object and stores `component` as `ref`.
  17541. *
  17542. * @param {string} ref Reference name.
  17543. * @param {component} component Component to store as `ref`.
  17544. * @final
  17545. * @private
  17546. */
  17547. attachRef: function (ref, component) {
  17548. var inst = this.getPublicInstance();
  17549. !(inst != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : _prodInvariant('110') : void 0;
  17550. var publicComponentInstance = component.getPublicInstance();
  17551. if (process.env.NODE_ENV !== 'production') {
  17552. var componentName = component && component.getName ? component.getName() : 'a component';
  17553. process.env.NODE_ENV !== 'production' ? warning(publicComponentInstance != null || component._compositeType !== CompositeTypes.StatelessFunctional, 'Stateless function components cannot be given refs ' + '(See ref "%s" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : void 0;
  17554. }
  17555. var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
  17556. refs[ref] = publicComponentInstance;
  17557. },
  17558. /**
  17559. * Detaches a reference name.
  17560. *
  17561. * @param {string} ref Name to dereference.
  17562. * @final
  17563. * @private
  17564. */
  17565. detachRef: function (ref) {
  17566. var refs = this.getPublicInstance().refs;
  17567. delete refs[ref];
  17568. },
  17569. /**
  17570. * Get a text description of the component that can be used to identify it
  17571. * in error messages.
  17572. * @return {string} The name or null.
  17573. * @internal
  17574. */
  17575. getName: function () {
  17576. var type = this._currentElement.type;
  17577. var constructor = this._instance && this._instance.constructor;
  17578. return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null;
  17579. },
  17580. /**
  17581. * Get the publicly accessible representation of this component - i.e. what
  17582. * is exposed by refs and returned by render. Can be null for stateless
  17583. * components.
  17584. *
  17585. * @return {ReactComponent} the public component instance.
  17586. * @internal
  17587. */
  17588. getPublicInstance: function () {
  17589. var inst = this._instance;
  17590. if (this._compositeType === CompositeTypes.StatelessFunctional) {
  17591. return null;
  17592. }
  17593. return inst;
  17594. },
  17595. // Stub
  17596. _instantiateReactComponent: null
  17597. };
  17598. module.exports = ReactCompositeComponent;
  17599. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17600. /***/ }),
  17601. /* 147 */
  17602. /***/ (function(module, exports, __webpack_require__) {
  17603. "use strict";
  17604. /* WEBPACK VAR INJECTION */(function(process) {/**
  17605. * Copyright 2013-present, Facebook, Inc.
  17606. * All rights reserved.
  17607. *
  17608. * This source code is licensed under the BSD-style license found in the
  17609. * LICENSE file in the root directory of this source tree. An additional grant
  17610. * of patent rights can be found in the PATENTS file in the same directory.
  17611. *
  17612. */
  17613. var _prodInvariant = __webpack_require__(3);
  17614. var ReactPropTypeLocationNames = __webpack_require__(148);
  17615. var ReactPropTypesSecret = __webpack_require__(68);
  17616. var invariant = __webpack_require__(1);
  17617. var warning = __webpack_require__(2);
  17618. var ReactComponentTreeHook;
  17619. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  17620. // Temporary hack.
  17621. // Inline requires don't work well with Jest:
  17622. // https://github.com/facebook/react/issues/7240
  17623. // Remove the inline requires when we don't need them anymore:
  17624. // https://github.com/facebook/react/pull/7178
  17625. ReactComponentTreeHook = __webpack_require__(7);
  17626. }
  17627. var loggedTypeFailures = {};
  17628. /**
  17629. * Assert that the values match with the type specs.
  17630. * Error messages are memorized and will only be shown once.
  17631. *
  17632. * @param {object} typeSpecs Map of name to a ReactPropType
  17633. * @param {object} values Runtime values that need to be type-checked
  17634. * @param {string} location e.g. "prop", "context", "child context"
  17635. * @param {string} componentName Name of the component for error messages.
  17636. * @param {?object} element The React element that is being type-checked
  17637. * @param {?number} debugID The React component instance that is being type-checked
  17638. * @private
  17639. */
  17640. function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
  17641. for (var typeSpecName in typeSpecs) {
  17642. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  17643. var error;
  17644. // Prop type validation may throw. In case they do, we don't want to
  17645. // fail the render phase where it didn't fail before. So we log it.
  17646. // After these have been cleaned up, we'll let them throw.
  17647. try {
  17648. // This is intentionally an invariant that gets caught. It's the same
  17649. // behavior as without this statement except with a better message.
  17650. !(typeof typeSpecs[typeSpecName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
  17651. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  17652. } catch (ex) {
  17653. error = ex;
  17654. }
  17655. process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
  17656. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  17657. // Only monitor this failure once because there tends to be a lot of the
  17658. // same error.
  17659. loggedTypeFailures[error.message] = true;
  17660. var componentStackInfo = '';
  17661. if (process.env.NODE_ENV !== 'production') {
  17662. if (!ReactComponentTreeHook) {
  17663. ReactComponentTreeHook = __webpack_require__(7);
  17664. }
  17665. if (debugID !== null) {
  17666. componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
  17667. } else if (element !== null) {
  17668. componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
  17669. }
  17670. }
  17671. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
  17672. }
  17673. }
  17674. }
  17675. }
  17676. module.exports = checkReactTypeSpec;
  17677. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17678. /***/ }),
  17679. /* 148 */
  17680. /***/ (function(module, exports, __webpack_require__) {
  17681. "use strict";
  17682. /* WEBPACK VAR INJECTION */(function(process) {/**
  17683. * Copyright 2013-present, Facebook, Inc.
  17684. * All rights reserved.
  17685. *
  17686. * This source code is licensed under the BSD-style license found in the
  17687. * LICENSE file in the root directory of this source tree. An additional grant
  17688. * of patent rights can be found in the PATENTS file in the same directory.
  17689. *
  17690. *
  17691. */
  17692. var ReactPropTypeLocationNames = {};
  17693. if (process.env.NODE_ENV !== 'production') {
  17694. ReactPropTypeLocationNames = {
  17695. prop: 'prop',
  17696. context: 'context',
  17697. childContext: 'child context'
  17698. };
  17699. }
  17700. module.exports = ReactPropTypeLocationNames;
  17701. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17702. /***/ }),
  17703. /* 149 */
  17704. /***/ (function(module, exports, __webpack_require__) {
  17705. "use strict";
  17706. /**
  17707. * Copyright 2013-present, Facebook, Inc.
  17708. * All rights reserved.
  17709. *
  17710. * This source code is licensed under the BSD-style license found in the
  17711. * LICENSE file in the root directory of this source tree. An additional grant
  17712. * of patent rights can be found in the PATENTS file in the same directory.
  17713. *
  17714. *
  17715. */
  17716. var nextDebugID = 1;
  17717. function getNextDebugID() {
  17718. return nextDebugID++;
  17719. }
  17720. module.exports = getNextDebugID;
  17721. /***/ }),
  17722. /* 150 */
  17723. /***/ (function(module, exports, __webpack_require__) {
  17724. "use strict";
  17725. /**
  17726. * Copyright 2014-present, Facebook, Inc.
  17727. * All rights reserved.
  17728. *
  17729. * This source code is licensed under the BSD-style license found in the
  17730. * LICENSE file in the root directory of this source tree. An additional grant
  17731. * of patent rights can be found in the PATENTS file in the same directory.
  17732. *
  17733. *
  17734. */
  17735. // The Symbol used to tag the ReactElement type. If there is no native Symbol
  17736. // nor polyfill, then a plain number is used for performance.
  17737. var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
  17738. module.exports = REACT_ELEMENT_TYPE;
  17739. /***/ }),
  17740. /* 151 */
  17741. /***/ (function(module, exports, __webpack_require__) {
  17742. "use strict";
  17743. /**
  17744. * Copyright 2013-present, Facebook, Inc.
  17745. * All rights reserved.
  17746. *
  17747. * This source code is licensed under the BSD-style license found in the
  17748. * LICENSE file in the root directory of this source tree. An additional grant
  17749. * of patent rights can be found in the PATENTS file in the same directory.
  17750. *
  17751. *
  17752. */
  17753. /* global Symbol */
  17754. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  17755. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  17756. /**
  17757. * Returns the iterator method function contained on the iterable object.
  17758. *
  17759. * Be sure to invoke the function with the iterable as context:
  17760. *
  17761. * var iteratorFn = getIteratorFn(myIterable);
  17762. * if (iteratorFn) {
  17763. * var iterator = iteratorFn.call(myIterable);
  17764. * ...
  17765. * }
  17766. *
  17767. * @param {?object} maybeIterable
  17768. * @return {?function}
  17769. */
  17770. function getIteratorFn(maybeIterable) {
  17771. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  17772. if (typeof iteratorFn === 'function') {
  17773. return iteratorFn;
  17774. }
  17775. }
  17776. module.exports = getIteratorFn;
  17777. /***/ }),
  17778. /* 152 */
  17779. /***/ (function(module, exports, __webpack_require__) {
  17780. "use strict";
  17781. /* WEBPACK VAR INJECTION */(function(process) {/**
  17782. * Copyright 2013-present, Facebook, Inc.
  17783. * All rights reserved.
  17784. *
  17785. * This source code is licensed under the BSD-style license found in the
  17786. * LICENSE file in the root directory of this source tree. An additional grant
  17787. * of patent rights can be found in the PATENTS file in the same directory.
  17788. *
  17789. *
  17790. */
  17791. var KeyEscapeUtils = __webpack_require__(47);
  17792. var traverseAllChildren = __webpack_require__(75);
  17793. var warning = __webpack_require__(2);
  17794. var ReactComponentTreeHook;
  17795. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  17796. // Temporary hack.
  17797. // Inline requires don't work well with Jest:
  17798. // https://github.com/facebook/react/issues/7240
  17799. // Remove the inline requires when we don't need them anymore:
  17800. // https://github.com/facebook/react/pull/7178
  17801. ReactComponentTreeHook = __webpack_require__(7);
  17802. }
  17803. /**
  17804. * @param {function} traverseContext Context passed through traversal.
  17805. * @param {?ReactComponent} child React child component.
  17806. * @param {!string} name String name of key path to child.
  17807. * @param {number=} selfDebugID Optional debugID of the current internal instance.
  17808. */
  17809. function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) {
  17810. // We found a component instance.
  17811. if (traverseContext && typeof traverseContext === 'object') {
  17812. var result = traverseContext;
  17813. var keyUnique = result[name] === undefined;
  17814. if (process.env.NODE_ENV !== 'production') {
  17815. if (!ReactComponentTreeHook) {
  17816. ReactComponentTreeHook = __webpack_require__(7);
  17817. }
  17818. if (!keyUnique) {
  17819. process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
  17820. }
  17821. }
  17822. if (keyUnique && child != null) {
  17823. result[name] = child;
  17824. }
  17825. }
  17826. }
  17827. /**
  17828. * Flattens children that are typically specified as `props.children`. Any null
  17829. * children will not be included in the resulting object.
  17830. * @return {!object} flattened children keyed by name.
  17831. */
  17832. function flattenChildren(children, selfDebugID) {
  17833. if (children == null) {
  17834. return children;
  17835. }
  17836. var result = {};
  17837. if (process.env.NODE_ENV !== 'production') {
  17838. traverseAllChildren(children, function (traverseContext, child, name) {
  17839. return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID);
  17840. }, result);
  17841. } else {
  17842. traverseAllChildren(children, flattenSingleChildIntoContext, result);
  17843. }
  17844. return result;
  17845. }
  17846. module.exports = flattenChildren;
  17847. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17848. /***/ }),
  17849. /* 153 */
  17850. /***/ (function(module, exports, __webpack_require__) {
  17851. "use strict";
  17852. /* WEBPACK VAR INJECTION */(function(process) {/**
  17853. * Copyright 2014-present, Facebook, Inc.
  17854. * All rights reserved.
  17855. *
  17856. * This source code is licensed under the BSD-style license found in the
  17857. * LICENSE file in the root directory of this source tree. An additional grant
  17858. * of patent rights can be found in the PATENTS file in the same directory.
  17859. *
  17860. */
  17861. var _assign = __webpack_require__(4);
  17862. var PooledClass = __webpack_require__(16);
  17863. var Transaction = __webpack_require__(28);
  17864. var ReactInstrumentation = __webpack_require__(9);
  17865. var ReactServerUpdateQueue = __webpack_require__(154);
  17866. /**
  17867. * Executed within the scope of the `Transaction` instance. Consider these as
  17868. * being member methods, but with an implied ordering while being isolated from
  17869. * each other.
  17870. */
  17871. var TRANSACTION_WRAPPERS = [];
  17872. if (process.env.NODE_ENV !== 'production') {
  17873. TRANSACTION_WRAPPERS.push({
  17874. initialize: ReactInstrumentation.debugTool.onBeginFlush,
  17875. close: ReactInstrumentation.debugTool.onEndFlush
  17876. });
  17877. }
  17878. var noopCallbackQueue = {
  17879. enqueue: function () {}
  17880. };
  17881. /**
  17882. * @class ReactServerRenderingTransaction
  17883. * @param {boolean} renderToStaticMarkup
  17884. */
  17885. function ReactServerRenderingTransaction(renderToStaticMarkup) {
  17886. this.reinitializeTransaction();
  17887. this.renderToStaticMarkup = renderToStaticMarkup;
  17888. this.useCreateElement = false;
  17889. this.updateQueue = new ReactServerUpdateQueue(this);
  17890. }
  17891. var Mixin = {
  17892. /**
  17893. * @see Transaction
  17894. * @abstract
  17895. * @final
  17896. * @return {array} Empty list of operation wrap procedures.
  17897. */
  17898. getTransactionWrappers: function () {
  17899. return TRANSACTION_WRAPPERS;
  17900. },
  17901. /**
  17902. * @return {object} The queue to collect `onDOMReady` callbacks with.
  17903. */
  17904. getReactMountReady: function () {
  17905. return noopCallbackQueue;
  17906. },
  17907. /**
  17908. * @return {object} The queue to collect React async events.
  17909. */
  17910. getUpdateQueue: function () {
  17911. return this.updateQueue;
  17912. },
  17913. /**
  17914. * `PooledClass` looks for this, and will invoke this before allowing this
  17915. * instance to be reused.
  17916. */
  17917. destructor: function () {},
  17918. checkpoint: function () {},
  17919. rollback: function () {}
  17920. };
  17921. _assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin);
  17922. PooledClass.addPoolingTo(ReactServerRenderingTransaction);
  17923. module.exports = ReactServerRenderingTransaction;
  17924. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17925. /***/ }),
  17926. /* 154 */
  17927. /***/ (function(module, exports, __webpack_require__) {
  17928. "use strict";
  17929. /* WEBPACK VAR INJECTION */(function(process) {/**
  17930. * Copyright 2015-present, Facebook, Inc.
  17931. * All rights reserved.
  17932. *
  17933. * This source code is licensed under the BSD-style license found in the
  17934. * LICENSE file in the root directory of this source tree. An additional grant
  17935. * of patent rights can be found in the PATENTS file in the same directory.
  17936. *
  17937. *
  17938. */
  17939. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  17940. var ReactUpdateQueue = __webpack_require__(48);
  17941. var warning = __webpack_require__(2);
  17942. function warnNoop(publicInstance, callerName) {
  17943. if (process.env.NODE_ENV !== 'production') {
  17944. var constructor = publicInstance.constructor;
  17945. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
  17946. }
  17947. }
  17948. /**
  17949. * This is the update queue used for server rendering.
  17950. * It delegates to ReactUpdateQueue while server rendering is in progress and
  17951. * switches to ReactNoopUpdateQueue after the transaction has completed.
  17952. * @class ReactServerUpdateQueue
  17953. * @param {Transaction} transaction
  17954. */
  17955. var ReactServerUpdateQueue = function () {
  17956. function ReactServerUpdateQueue(transaction) {
  17957. _classCallCheck(this, ReactServerUpdateQueue);
  17958. this.transaction = transaction;
  17959. }
  17960. /**
  17961. * Checks whether or not this composite component is mounted.
  17962. * @param {ReactClass} publicInstance The instance we want to test.
  17963. * @return {boolean} True if mounted, false otherwise.
  17964. * @protected
  17965. * @final
  17966. */
  17967. ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) {
  17968. return false;
  17969. };
  17970. /**
  17971. * Enqueue a callback that will be executed after all the pending updates
  17972. * have processed.
  17973. *
  17974. * @param {ReactClass} publicInstance The instance to use as `this` context.
  17975. * @param {?function} callback Called after state is updated.
  17976. * @internal
  17977. */
  17978. ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback(publicInstance, callback, callerName) {
  17979. if (this.transaction.isInTransaction()) {
  17980. ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName);
  17981. }
  17982. };
  17983. /**
  17984. * Forces an update. This should only be invoked when it is known with
  17985. * certainty that we are **not** in a DOM transaction.
  17986. *
  17987. * You may want to call this when you know that some deeper aspect of the
  17988. * component's state has changed but `setState` was not called.
  17989. *
  17990. * This will not invoke `shouldComponentUpdate`, but it will invoke
  17991. * `componentWillUpdate` and `componentDidUpdate`.
  17992. *
  17993. * @param {ReactClass} publicInstance The instance that should rerender.
  17994. * @internal
  17995. */
  17996. ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate(publicInstance) {
  17997. if (this.transaction.isInTransaction()) {
  17998. ReactUpdateQueue.enqueueForceUpdate(publicInstance);
  17999. } else {
  18000. warnNoop(publicInstance, 'forceUpdate');
  18001. }
  18002. };
  18003. /**
  18004. * Replaces all of the state. Always use this or `setState` to mutate state.
  18005. * You should treat `this.state` as immutable.
  18006. *
  18007. * There is no guarantee that `this.state` will be immediately updated, so
  18008. * accessing `this.state` after calling this method may return the old value.
  18009. *
  18010. * @param {ReactClass} publicInstance The instance that should rerender.
  18011. * @param {object|function} completeState Next state.
  18012. * @internal
  18013. */
  18014. ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState(publicInstance, completeState) {
  18015. if (this.transaction.isInTransaction()) {
  18016. ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState);
  18017. } else {
  18018. warnNoop(publicInstance, 'replaceState');
  18019. }
  18020. };
  18021. /**
  18022. * Sets a subset of the state. This only exists because _pendingState is
  18023. * internal. This provides a merging strategy that is not available to deep
  18024. * properties which is confusing. TODO: Expose pendingState or don't use it
  18025. * during the merge.
  18026. *
  18027. * @param {ReactClass} publicInstance The instance that should rerender.
  18028. * @param {object|function} partialState Next partial state to be merged with state.
  18029. * @internal
  18030. */
  18031. ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState(publicInstance, partialState) {
  18032. if (this.transaction.isInTransaction()) {
  18033. ReactUpdateQueue.enqueueSetState(publicInstance, partialState);
  18034. } else {
  18035. warnNoop(publicInstance, 'setState');
  18036. }
  18037. };
  18038. return ReactServerUpdateQueue;
  18039. }();
  18040. module.exports = ReactServerUpdateQueue;
  18041. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18042. /***/ }),
  18043. /* 155 */
  18044. /***/ (function(module, exports, __webpack_require__) {
  18045. "use strict";
  18046. /**
  18047. * Copyright 2014-present, Facebook, Inc.
  18048. * All rights reserved.
  18049. *
  18050. * This source code is licensed under the BSD-style license found in the
  18051. * LICENSE file in the root directory of this source tree. An additional grant
  18052. * of patent rights can be found in the PATENTS file in the same directory.
  18053. *
  18054. */
  18055. var _assign = __webpack_require__(4);
  18056. var DOMLazyTree = __webpack_require__(19);
  18057. var ReactDOMComponentTree = __webpack_require__(5);
  18058. var ReactDOMEmptyComponent = function (instantiate) {
  18059. // ReactCompositeComponent uses this:
  18060. this._currentElement = null;
  18061. // ReactDOMComponentTree uses these:
  18062. this._hostNode = null;
  18063. this._hostParent = null;
  18064. this._hostContainerInfo = null;
  18065. this._domID = 0;
  18066. };
  18067. _assign(ReactDOMEmptyComponent.prototype, {
  18068. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  18069. var domID = hostContainerInfo._idCounter++;
  18070. this._domID = domID;
  18071. this._hostParent = hostParent;
  18072. this._hostContainerInfo = hostContainerInfo;
  18073. var nodeValue = ' react-empty: ' + this._domID + ' ';
  18074. if (transaction.useCreateElement) {
  18075. var ownerDocument = hostContainerInfo._ownerDocument;
  18076. var node = ownerDocument.createComment(nodeValue);
  18077. ReactDOMComponentTree.precacheNode(this, node);
  18078. return DOMLazyTree(node);
  18079. } else {
  18080. if (transaction.renderToStaticMarkup) {
  18081. // Normally we'd insert a comment node, but since this is a situation
  18082. // where React won't take over (static pages), we can simply return
  18083. // nothing.
  18084. return '';
  18085. }
  18086. return '<!--' + nodeValue + '-->';
  18087. }
  18088. },
  18089. receiveComponent: function () {},
  18090. getHostNode: function () {
  18091. return ReactDOMComponentTree.getNodeFromInstance(this);
  18092. },
  18093. unmountComponent: function () {
  18094. ReactDOMComponentTree.uncacheNode(this);
  18095. }
  18096. });
  18097. module.exports = ReactDOMEmptyComponent;
  18098. /***/ }),
  18099. /* 156 */
  18100. /***/ (function(module, exports, __webpack_require__) {
  18101. "use strict";
  18102. /* WEBPACK VAR INJECTION */(function(process) {/**
  18103. * Copyright 2015-present, Facebook, Inc.
  18104. * All rights reserved.
  18105. *
  18106. * This source code is licensed under the BSD-style license found in the
  18107. * LICENSE file in the root directory of this source tree. An additional grant
  18108. * of patent rights can be found in the PATENTS file in the same directory.
  18109. *
  18110. */
  18111. var _prodInvariant = __webpack_require__(3);
  18112. var invariant = __webpack_require__(1);
  18113. /**
  18114. * Return the lowest common ancestor of A and B, or null if they are in
  18115. * different trees.
  18116. */
  18117. function getLowestCommonAncestor(instA, instB) {
  18118. !('_hostNode' in instA) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  18119. !('_hostNode' in instB) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  18120. var depthA = 0;
  18121. for (var tempA = instA; tempA; tempA = tempA._hostParent) {
  18122. depthA++;
  18123. }
  18124. var depthB = 0;
  18125. for (var tempB = instB; tempB; tempB = tempB._hostParent) {
  18126. depthB++;
  18127. }
  18128. // If A is deeper, crawl up.
  18129. while (depthA - depthB > 0) {
  18130. instA = instA._hostParent;
  18131. depthA--;
  18132. }
  18133. // If B is deeper, crawl up.
  18134. while (depthB - depthA > 0) {
  18135. instB = instB._hostParent;
  18136. depthB--;
  18137. }
  18138. // Walk in lockstep until we find a match.
  18139. var depth = depthA;
  18140. while (depth--) {
  18141. if (instA === instB) {
  18142. return instA;
  18143. }
  18144. instA = instA._hostParent;
  18145. instB = instB._hostParent;
  18146. }
  18147. return null;
  18148. }
  18149. /**
  18150. * Return if A is an ancestor of B.
  18151. */
  18152. function isAncestor(instA, instB) {
  18153. !('_hostNode' in instA) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;
  18154. !('_hostNode' in instB) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;
  18155. while (instB) {
  18156. if (instB === instA) {
  18157. return true;
  18158. }
  18159. instB = instB._hostParent;
  18160. }
  18161. return false;
  18162. }
  18163. /**
  18164. * Return the parent instance of the passed-in instance.
  18165. */
  18166. function getParentInstance(inst) {
  18167. !('_hostNode' in inst) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getParentInstance: Invalid argument.') : _prodInvariant('36') : void 0;
  18168. return inst._hostParent;
  18169. }
  18170. /**
  18171. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  18172. */
  18173. function traverseTwoPhase(inst, fn, arg) {
  18174. var path = [];
  18175. while (inst) {
  18176. path.push(inst);
  18177. inst = inst._hostParent;
  18178. }
  18179. var i;
  18180. for (i = path.length; i-- > 0;) {
  18181. fn(path[i], 'captured', arg);
  18182. }
  18183. for (i = 0; i < path.length; i++) {
  18184. fn(path[i], 'bubbled', arg);
  18185. }
  18186. }
  18187. /**
  18188. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  18189. * should would receive a `mouseEnter` or `mouseLeave` event.
  18190. *
  18191. * Does not invoke the callback on the nearest common ancestor because nothing
  18192. * "entered" or "left" that element.
  18193. */
  18194. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  18195. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  18196. var pathFrom = [];
  18197. while (from && from !== common) {
  18198. pathFrom.push(from);
  18199. from = from._hostParent;
  18200. }
  18201. var pathTo = [];
  18202. while (to && to !== common) {
  18203. pathTo.push(to);
  18204. to = to._hostParent;
  18205. }
  18206. var i;
  18207. for (i = 0; i < pathFrom.length; i++) {
  18208. fn(pathFrom[i], 'bubbled', argFrom);
  18209. }
  18210. for (i = pathTo.length; i-- > 0;) {
  18211. fn(pathTo[i], 'captured', argTo);
  18212. }
  18213. }
  18214. module.exports = {
  18215. isAncestor: isAncestor,
  18216. getLowestCommonAncestor: getLowestCommonAncestor,
  18217. getParentInstance: getParentInstance,
  18218. traverseTwoPhase: traverseTwoPhase,
  18219. traverseEnterLeave: traverseEnterLeave
  18220. };
  18221. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18222. /***/ }),
  18223. /* 157 */
  18224. /***/ (function(module, exports, __webpack_require__) {
  18225. "use strict";
  18226. /* WEBPACK VAR INJECTION */(function(process) {/**
  18227. * Copyright 2013-present, Facebook, Inc.
  18228. * All rights reserved.
  18229. *
  18230. * This source code is licensed under the BSD-style license found in the
  18231. * LICENSE file in the root directory of this source tree. An additional grant
  18232. * of patent rights can be found in the PATENTS file in the same directory.
  18233. *
  18234. */
  18235. var _prodInvariant = __webpack_require__(3),
  18236. _assign = __webpack_require__(4);
  18237. var DOMChildrenOperations = __webpack_require__(40);
  18238. var DOMLazyTree = __webpack_require__(19);
  18239. var ReactDOMComponentTree = __webpack_require__(5);
  18240. var escapeTextContentForBrowser = __webpack_require__(31);
  18241. var invariant = __webpack_require__(1);
  18242. var validateDOMNesting = __webpack_require__(49);
  18243. /**
  18244. * Text nodes violate a couple assumptions that React makes about components:
  18245. *
  18246. * - When mounting text into the DOM, adjacent text nodes are merged.
  18247. * - Text nodes cannot be assigned a React root ID.
  18248. *
  18249. * This component is used to wrap strings between comment nodes so that they
  18250. * can undergo the same reconciliation that is applied to elements.
  18251. *
  18252. * TODO: Investigate representing React components in the DOM with text nodes.
  18253. *
  18254. * @class ReactDOMTextComponent
  18255. * @extends ReactComponent
  18256. * @internal
  18257. */
  18258. var ReactDOMTextComponent = function (text) {
  18259. // TODO: This is really a ReactText (ReactNode), not a ReactElement
  18260. this._currentElement = text;
  18261. this._stringText = '' + text;
  18262. // ReactDOMComponentTree uses these:
  18263. this._hostNode = null;
  18264. this._hostParent = null;
  18265. // Properties
  18266. this._domID = 0;
  18267. this._mountIndex = 0;
  18268. this._closingComment = null;
  18269. this._commentNodes = null;
  18270. };
  18271. _assign(ReactDOMTextComponent.prototype, {
  18272. /**
  18273. * Creates the markup for this text node. This node is not intended to have
  18274. * any features besides containing text content.
  18275. *
  18276. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  18277. * @return {string} Markup for this text node.
  18278. * @internal
  18279. */
  18280. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  18281. if (process.env.NODE_ENV !== 'production') {
  18282. var parentInfo;
  18283. if (hostParent != null) {
  18284. parentInfo = hostParent._ancestorInfo;
  18285. } else if (hostContainerInfo != null) {
  18286. parentInfo = hostContainerInfo._ancestorInfo;
  18287. }
  18288. if (parentInfo) {
  18289. // parentInfo should always be present except for the top-level
  18290. // component when server rendering
  18291. validateDOMNesting(null, this._stringText, this, parentInfo);
  18292. }
  18293. }
  18294. var domID = hostContainerInfo._idCounter++;
  18295. var openingValue = ' react-text: ' + domID + ' ';
  18296. var closingValue = ' /react-text ';
  18297. this._domID = domID;
  18298. this._hostParent = hostParent;
  18299. if (transaction.useCreateElement) {
  18300. var ownerDocument = hostContainerInfo._ownerDocument;
  18301. var openingComment = ownerDocument.createComment(openingValue);
  18302. var closingComment = ownerDocument.createComment(closingValue);
  18303. var lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment());
  18304. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment));
  18305. if (this._stringText) {
  18306. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(ownerDocument.createTextNode(this._stringText)));
  18307. }
  18308. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment));
  18309. ReactDOMComponentTree.precacheNode(this, openingComment);
  18310. this._closingComment = closingComment;
  18311. return lazyTree;
  18312. } else {
  18313. var escapedText = escapeTextContentForBrowser(this._stringText);
  18314. if (transaction.renderToStaticMarkup) {
  18315. // Normally we'd wrap this between comment nodes for the reasons stated
  18316. // above, but since this is a situation where React won't take over
  18317. // (static pages), we can simply return the text as it is.
  18318. return escapedText;
  18319. }
  18320. return '<!--' + openingValue + '-->' + escapedText + '<!--' + closingValue + '-->';
  18321. }
  18322. },
  18323. /**
  18324. * Updates this component by updating the text content.
  18325. *
  18326. * @param {ReactText} nextText The next text content
  18327. * @param {ReactReconcileTransaction} transaction
  18328. * @internal
  18329. */
  18330. receiveComponent: function (nextText, transaction) {
  18331. if (nextText !== this._currentElement) {
  18332. this._currentElement = nextText;
  18333. var nextStringText = '' + nextText;
  18334. if (nextStringText !== this._stringText) {
  18335. // TODO: Save this as pending props and use performUpdateIfNecessary
  18336. // and/or updateComponent to do the actual update for consistency with
  18337. // other component types?
  18338. this._stringText = nextStringText;
  18339. var commentNodes = this.getHostNode();
  18340. DOMChildrenOperations.replaceDelimitedText(commentNodes[0], commentNodes[1], nextStringText);
  18341. }
  18342. }
  18343. },
  18344. getHostNode: function () {
  18345. var hostNode = this._commentNodes;
  18346. if (hostNode) {
  18347. return hostNode;
  18348. }
  18349. if (!this._closingComment) {
  18350. var openingComment = ReactDOMComponentTree.getNodeFromInstance(this);
  18351. var node = openingComment.nextSibling;
  18352. while (true) {
  18353. !(node != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Missing closing comment for text component %s', this._domID) : _prodInvariant('67', this._domID) : void 0;
  18354. if (node.nodeType === 8 && node.nodeValue === ' /react-text ') {
  18355. this._closingComment = node;
  18356. break;
  18357. }
  18358. node = node.nextSibling;
  18359. }
  18360. }
  18361. hostNode = [this._hostNode, this._closingComment];
  18362. this._commentNodes = hostNode;
  18363. return hostNode;
  18364. },
  18365. unmountComponent: function () {
  18366. this._closingComment = null;
  18367. this._commentNodes = null;
  18368. ReactDOMComponentTree.uncacheNode(this);
  18369. }
  18370. });
  18371. module.exports = ReactDOMTextComponent;
  18372. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18373. /***/ }),
  18374. /* 158 */
  18375. /***/ (function(module, exports, __webpack_require__) {
  18376. "use strict";
  18377. /**
  18378. * Copyright 2013-present, Facebook, Inc.
  18379. * All rights reserved.
  18380. *
  18381. * This source code is licensed under the BSD-style license found in the
  18382. * LICENSE file in the root directory of this source tree. An additional grant
  18383. * of patent rights can be found in the PATENTS file in the same directory.
  18384. *
  18385. */
  18386. var _assign = __webpack_require__(4);
  18387. var ReactUpdates = __webpack_require__(11);
  18388. var Transaction = __webpack_require__(28);
  18389. var emptyFunction = __webpack_require__(8);
  18390. var RESET_BATCHED_UPDATES = {
  18391. initialize: emptyFunction,
  18392. close: function () {
  18393. ReactDefaultBatchingStrategy.isBatchingUpdates = false;
  18394. }
  18395. };
  18396. var FLUSH_BATCHED_UPDATES = {
  18397. initialize: emptyFunction,
  18398. close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates)
  18399. };
  18400. var TRANSACTION_WRAPPERS = [FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES];
  18401. function ReactDefaultBatchingStrategyTransaction() {
  18402. this.reinitializeTransaction();
  18403. }
  18404. _assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, {
  18405. getTransactionWrappers: function () {
  18406. return TRANSACTION_WRAPPERS;
  18407. }
  18408. });
  18409. var transaction = new ReactDefaultBatchingStrategyTransaction();
  18410. var ReactDefaultBatchingStrategy = {
  18411. isBatchingUpdates: false,
  18412. /**
  18413. * Call the provided function in a context within which calls to `setState`
  18414. * and friends are batched such that components aren't updated unnecessarily.
  18415. */
  18416. batchedUpdates: function (callback, a, b, c, d, e) {
  18417. var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates;
  18418. ReactDefaultBatchingStrategy.isBatchingUpdates = true;
  18419. // The code is written this way to avoid extra allocations
  18420. if (alreadyBatchingUpdates) {
  18421. return callback(a, b, c, d, e);
  18422. } else {
  18423. return transaction.perform(callback, null, a, b, c, d, e);
  18424. }
  18425. }
  18426. };
  18427. module.exports = ReactDefaultBatchingStrategy;
  18428. /***/ }),
  18429. /* 159 */
  18430. /***/ (function(module, exports, __webpack_require__) {
  18431. "use strict";
  18432. /**
  18433. * Copyright 2013-present, Facebook, Inc.
  18434. * All rights reserved.
  18435. *
  18436. * This source code is licensed under the BSD-style license found in the
  18437. * LICENSE file in the root directory of this source tree. An additional grant
  18438. * of patent rights can be found in the PATENTS file in the same directory.
  18439. *
  18440. */
  18441. var _assign = __webpack_require__(4);
  18442. var EventListener = __webpack_require__(76);
  18443. var ExecutionEnvironment = __webpack_require__(6);
  18444. var PooledClass = __webpack_require__(16);
  18445. var ReactDOMComponentTree = __webpack_require__(5);
  18446. var ReactUpdates = __webpack_require__(11);
  18447. var getEventTarget = __webpack_require__(37);
  18448. var getUnboundedScrollPosition = __webpack_require__(160);
  18449. /**
  18450. * Find the deepest React component completely containing the root of the
  18451. * passed-in instance (for use when entire React trees are nested within each
  18452. * other). If React trees are not nested, returns null.
  18453. */
  18454. function findParent(inst) {
  18455. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  18456. // traversal, but caching is difficult to do correctly without using a
  18457. // mutation observer to listen for all DOM changes.
  18458. while (inst._hostParent) {
  18459. inst = inst._hostParent;
  18460. }
  18461. var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);
  18462. var container = rootNode.parentNode;
  18463. return ReactDOMComponentTree.getClosestInstanceFromNode(container);
  18464. }
  18465. // Used to store ancestor hierarchy in top level callback
  18466. function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) {
  18467. this.topLevelType = topLevelType;
  18468. this.nativeEvent = nativeEvent;
  18469. this.ancestors = [];
  18470. }
  18471. _assign(TopLevelCallbackBookKeeping.prototype, {
  18472. destructor: function () {
  18473. this.topLevelType = null;
  18474. this.nativeEvent = null;
  18475. this.ancestors.length = 0;
  18476. }
  18477. });
  18478. PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler);
  18479. function handleTopLevelImpl(bookKeeping) {
  18480. var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent);
  18481. var targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget);
  18482. // Loop through the hierarchy, in case there's any nested components.
  18483. // It's important that we build the array of ancestors before calling any
  18484. // event handlers, because event handlers can modify the DOM, leading to
  18485. // inconsistencies with ReactMount's node cache. See #1105.
  18486. var ancestor = targetInst;
  18487. do {
  18488. bookKeeping.ancestors.push(ancestor);
  18489. ancestor = ancestor && findParent(ancestor);
  18490. } while (ancestor);
  18491. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  18492. targetInst = bookKeeping.ancestors[i];
  18493. ReactEventListener._handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  18494. }
  18495. }
  18496. function scrollValueMonitor(cb) {
  18497. var scrollPosition = getUnboundedScrollPosition(window);
  18498. cb(scrollPosition);
  18499. }
  18500. var ReactEventListener = {
  18501. _enabled: true,
  18502. _handleTopLevel: null,
  18503. WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null,
  18504. setHandleTopLevel: function (handleTopLevel) {
  18505. ReactEventListener._handleTopLevel = handleTopLevel;
  18506. },
  18507. setEnabled: function (enabled) {
  18508. ReactEventListener._enabled = !!enabled;
  18509. },
  18510. isEnabled: function () {
  18511. return ReactEventListener._enabled;
  18512. },
  18513. /**
  18514. * Traps top-level events by using event bubbling.
  18515. *
  18516. * @param {string} topLevelType Record from `EventConstants`.
  18517. * @param {string} handlerBaseName Event name (e.g. "click").
  18518. * @param {object} element Element on which to attach listener.
  18519. * @return {?object} An object with a remove function which will forcefully
  18520. * remove the listener.
  18521. * @internal
  18522. */
  18523. trapBubbledEvent: function (topLevelType, handlerBaseName, element) {
  18524. if (!element) {
  18525. return null;
  18526. }
  18527. return EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  18528. },
  18529. /**
  18530. * Traps a top-level event by using event capturing.
  18531. *
  18532. * @param {string} topLevelType Record from `EventConstants`.
  18533. * @param {string} handlerBaseName Event name (e.g. "click").
  18534. * @param {object} element Element on which to attach listener.
  18535. * @return {?object} An object with a remove function which will forcefully
  18536. * remove the listener.
  18537. * @internal
  18538. */
  18539. trapCapturedEvent: function (topLevelType, handlerBaseName, element) {
  18540. if (!element) {
  18541. return null;
  18542. }
  18543. return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  18544. },
  18545. monitorScrollValue: function (refresh) {
  18546. var callback = scrollValueMonitor.bind(null, refresh);
  18547. EventListener.listen(window, 'scroll', callback);
  18548. },
  18549. dispatchEvent: function (topLevelType, nativeEvent) {
  18550. if (!ReactEventListener._enabled) {
  18551. return;
  18552. }
  18553. var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent);
  18554. try {
  18555. // Event queue being processed in the same cycle allows
  18556. // `preventDefault`.
  18557. ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping);
  18558. } finally {
  18559. TopLevelCallbackBookKeeping.release(bookKeeping);
  18560. }
  18561. }
  18562. };
  18563. module.exports = ReactEventListener;
  18564. /***/ }),
  18565. /* 160 */
  18566. /***/ (function(module, exports, __webpack_require__) {
  18567. "use strict";
  18568. /**
  18569. * Copyright (c) 2013-present, Facebook, Inc.
  18570. *
  18571. * This source code is licensed under the MIT license found in the
  18572. * LICENSE file in the root directory of this source tree.
  18573. *
  18574. * @typechecks
  18575. */
  18576. /**
  18577. * Gets the scroll position of the supplied element or window.
  18578. *
  18579. * The return values are unbounded, unlike `getScrollPosition`. This means they
  18580. * may be negative or exceed the element boundaries (which is possible using
  18581. * inertial scrolling).
  18582. *
  18583. * @param {DOMWindow|DOMElement} scrollable
  18584. * @return {object} Map with `x` and `y` keys.
  18585. */
  18586. function getUnboundedScrollPosition(scrollable) {
  18587. if (scrollable.Window && scrollable instanceof scrollable.Window) {
  18588. return {
  18589. x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft,
  18590. y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop
  18591. };
  18592. }
  18593. return {
  18594. x: scrollable.scrollLeft,
  18595. y: scrollable.scrollTop
  18596. };
  18597. }
  18598. module.exports = getUnboundedScrollPosition;
  18599. /***/ }),
  18600. /* 161 */
  18601. /***/ (function(module, exports, __webpack_require__) {
  18602. "use strict";
  18603. /**
  18604. * Copyright 2013-present, Facebook, Inc.
  18605. * All rights reserved.
  18606. *
  18607. * This source code is licensed under the BSD-style license found in the
  18608. * LICENSE file in the root directory of this source tree. An additional grant
  18609. * of patent rights can be found in the PATENTS file in the same directory.
  18610. *
  18611. */
  18612. var DOMProperty = __webpack_require__(13);
  18613. var EventPluginHub = __webpack_require__(22);
  18614. var EventPluginUtils = __webpack_require__(35);
  18615. var ReactComponentEnvironment = __webpack_require__(44);
  18616. var ReactEmptyComponent = __webpack_require__(73);
  18617. var ReactBrowserEventEmitter = __webpack_require__(32);
  18618. var ReactHostComponent = __webpack_require__(74);
  18619. var ReactUpdates = __webpack_require__(11);
  18620. var ReactInjection = {
  18621. Component: ReactComponentEnvironment.injection,
  18622. DOMProperty: DOMProperty.injection,
  18623. EmptyComponent: ReactEmptyComponent.injection,
  18624. EventPluginHub: EventPluginHub.injection,
  18625. EventPluginUtils: EventPluginUtils.injection,
  18626. EventEmitter: ReactBrowserEventEmitter.injection,
  18627. HostComponent: ReactHostComponent.injection,
  18628. Updates: ReactUpdates.injection
  18629. };
  18630. module.exports = ReactInjection;
  18631. /***/ }),
  18632. /* 162 */
  18633. /***/ (function(module, exports, __webpack_require__) {
  18634. "use strict";
  18635. /* WEBPACK VAR INJECTION */(function(process) {/**
  18636. * Copyright 2013-present, Facebook, Inc.
  18637. * All rights reserved.
  18638. *
  18639. * This source code is licensed under the BSD-style license found in the
  18640. * LICENSE file in the root directory of this source tree. An additional grant
  18641. * of patent rights can be found in the PATENTS file in the same directory.
  18642. *
  18643. */
  18644. var _assign = __webpack_require__(4);
  18645. var CallbackQueue = __webpack_require__(60);
  18646. var PooledClass = __webpack_require__(16);
  18647. var ReactBrowserEventEmitter = __webpack_require__(32);
  18648. var ReactInputSelection = __webpack_require__(77);
  18649. var ReactInstrumentation = __webpack_require__(9);
  18650. var Transaction = __webpack_require__(28);
  18651. var ReactUpdateQueue = __webpack_require__(48);
  18652. /**
  18653. * Ensures that, when possible, the selection range (currently selected text
  18654. * input) is not disturbed by performing the transaction.
  18655. */
  18656. var SELECTION_RESTORATION = {
  18657. /**
  18658. * @return {Selection} Selection information.
  18659. */
  18660. initialize: ReactInputSelection.getSelectionInformation,
  18661. /**
  18662. * @param {Selection} sel Selection information returned from `initialize`.
  18663. */
  18664. close: ReactInputSelection.restoreSelection
  18665. };
  18666. /**
  18667. * Suppresses events (blur/focus) that could be inadvertently dispatched due to
  18668. * high level DOM manipulations (like temporarily removing a text input from the
  18669. * DOM).
  18670. */
  18671. var EVENT_SUPPRESSION = {
  18672. /**
  18673. * @return {boolean} The enabled status of `ReactBrowserEventEmitter` before
  18674. * the reconciliation.
  18675. */
  18676. initialize: function () {
  18677. var currentlyEnabled = ReactBrowserEventEmitter.isEnabled();
  18678. ReactBrowserEventEmitter.setEnabled(false);
  18679. return currentlyEnabled;
  18680. },
  18681. /**
  18682. * @param {boolean} previouslyEnabled Enabled status of
  18683. * `ReactBrowserEventEmitter` before the reconciliation occurred. `close`
  18684. * restores the previous value.
  18685. */
  18686. close: function (previouslyEnabled) {
  18687. ReactBrowserEventEmitter.setEnabled(previouslyEnabled);
  18688. }
  18689. };
  18690. /**
  18691. * Provides a queue for collecting `componentDidMount` and
  18692. * `componentDidUpdate` callbacks during the transaction.
  18693. */
  18694. var ON_DOM_READY_QUEUEING = {
  18695. /**
  18696. * Initializes the internal `onDOMReady` queue.
  18697. */
  18698. initialize: function () {
  18699. this.reactMountReady.reset();
  18700. },
  18701. /**
  18702. * After DOM is flushed, invoke all registered `onDOMReady` callbacks.
  18703. */
  18704. close: function () {
  18705. this.reactMountReady.notifyAll();
  18706. }
  18707. };
  18708. /**
  18709. * Executed within the scope of the `Transaction` instance. Consider these as
  18710. * being member methods, but with an implied ordering while being isolated from
  18711. * each other.
  18712. */
  18713. var TRANSACTION_WRAPPERS = [SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING];
  18714. if (process.env.NODE_ENV !== 'production') {
  18715. TRANSACTION_WRAPPERS.push({
  18716. initialize: ReactInstrumentation.debugTool.onBeginFlush,
  18717. close: ReactInstrumentation.debugTool.onEndFlush
  18718. });
  18719. }
  18720. /**
  18721. * Currently:
  18722. * - The order that these are listed in the transaction is critical:
  18723. * - Suppresses events.
  18724. * - Restores selection range.
  18725. *
  18726. * Future:
  18727. * - Restore document/overflow scroll positions that were unintentionally
  18728. * modified via DOM insertions above the top viewport boundary.
  18729. * - Implement/integrate with customized constraint based layout system and keep
  18730. * track of which dimensions must be remeasured.
  18731. *
  18732. * @class ReactReconcileTransaction
  18733. */
  18734. function ReactReconcileTransaction(useCreateElement) {
  18735. this.reinitializeTransaction();
  18736. // Only server-side rendering really needs this option (see
  18737. // `ReactServerRendering`), but server-side uses
  18738. // `ReactServerRenderingTransaction` instead. This option is here so that it's
  18739. // accessible and defaults to false when `ReactDOMComponent` and
  18740. // `ReactDOMTextComponent` checks it in `mountComponent`.`
  18741. this.renderToStaticMarkup = false;
  18742. this.reactMountReady = CallbackQueue.getPooled(null);
  18743. this.useCreateElement = useCreateElement;
  18744. }
  18745. var Mixin = {
  18746. /**
  18747. * @see Transaction
  18748. * @abstract
  18749. * @final
  18750. * @return {array<object>} List of operation wrap procedures.
  18751. * TODO: convert to array<TransactionWrapper>
  18752. */
  18753. getTransactionWrappers: function () {
  18754. return TRANSACTION_WRAPPERS;
  18755. },
  18756. /**
  18757. * @return {object} The queue to collect `onDOMReady` callbacks with.
  18758. */
  18759. getReactMountReady: function () {
  18760. return this.reactMountReady;
  18761. },
  18762. /**
  18763. * @return {object} The queue to collect React async events.
  18764. */
  18765. getUpdateQueue: function () {
  18766. return ReactUpdateQueue;
  18767. },
  18768. /**
  18769. * Save current transaction state -- if the return value from this method is
  18770. * passed to `rollback`, the transaction will be reset to that state.
  18771. */
  18772. checkpoint: function () {
  18773. // reactMountReady is the our only stateful wrapper
  18774. return this.reactMountReady.checkpoint();
  18775. },
  18776. rollback: function (checkpoint) {
  18777. this.reactMountReady.rollback(checkpoint);
  18778. },
  18779. /**
  18780. * `PooledClass` looks for this, and will invoke this before allowing this
  18781. * instance to be reused.
  18782. */
  18783. destructor: function () {
  18784. CallbackQueue.release(this.reactMountReady);
  18785. this.reactMountReady = null;
  18786. }
  18787. };
  18788. _assign(ReactReconcileTransaction.prototype, Transaction, Mixin);
  18789. PooledClass.addPoolingTo(ReactReconcileTransaction);
  18790. module.exports = ReactReconcileTransaction;
  18791. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18792. /***/ }),
  18793. /* 163 */
  18794. /***/ (function(module, exports, __webpack_require__) {
  18795. "use strict";
  18796. /**
  18797. * Copyright 2013-present, Facebook, Inc.
  18798. * All rights reserved.
  18799. *
  18800. * This source code is licensed under the BSD-style license found in the
  18801. * LICENSE file in the root directory of this source tree. An additional grant
  18802. * of patent rights can be found in the PATENTS file in the same directory.
  18803. *
  18804. */
  18805. var ExecutionEnvironment = __webpack_require__(6);
  18806. var getNodeForCharacterOffset = __webpack_require__(164);
  18807. var getTextContentAccessor = __webpack_require__(59);
  18808. /**
  18809. * While `isCollapsed` is available on the Selection object and `collapsed`
  18810. * is available on the Range object, IE11 sometimes gets them wrong.
  18811. * If the anchor/focus nodes and offsets are the same, the range is collapsed.
  18812. */
  18813. function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) {
  18814. return anchorNode === focusNode && anchorOffset === focusOffset;
  18815. }
  18816. /**
  18817. * Get the appropriate anchor and focus node/offset pairs for IE.
  18818. *
  18819. * The catch here is that IE's selection API doesn't provide information
  18820. * about whether the selection is forward or backward, so we have to
  18821. * behave as though it's always forward.
  18822. *
  18823. * IE text differs from modern selection in that it behaves as though
  18824. * block elements end with a new line. This means character offsets will
  18825. * differ between the two APIs.
  18826. *
  18827. * @param {DOMElement} node
  18828. * @return {object}
  18829. */
  18830. function getIEOffsets(node) {
  18831. var selection = document.selection;
  18832. var selectedRange = selection.createRange();
  18833. var selectedLength = selectedRange.text.length;
  18834. // Duplicate selection so we can move range without breaking user selection.
  18835. var fromStart = selectedRange.duplicate();
  18836. fromStart.moveToElementText(node);
  18837. fromStart.setEndPoint('EndToStart', selectedRange);
  18838. var startOffset = fromStart.text.length;
  18839. var endOffset = startOffset + selectedLength;
  18840. return {
  18841. start: startOffset,
  18842. end: endOffset
  18843. };
  18844. }
  18845. /**
  18846. * @param {DOMElement} node
  18847. * @return {?object}
  18848. */
  18849. function getModernOffsets(node) {
  18850. var selection = window.getSelection && window.getSelection();
  18851. if (!selection || selection.rangeCount === 0) {
  18852. return null;
  18853. }
  18854. var anchorNode = selection.anchorNode;
  18855. var anchorOffset = selection.anchorOffset;
  18856. var focusNode = selection.focusNode;
  18857. var focusOffset = selection.focusOffset;
  18858. var currentRange = selection.getRangeAt(0);
  18859. // In Firefox, range.startContainer and range.endContainer can be "anonymous
  18860. // divs", e.g. the up/down buttons on an <input type="number">. Anonymous
  18861. // divs do not seem to expose properties, triggering a "Permission denied
  18862. // error" if any of its properties are accessed. The only seemingly possible
  18863. // way to avoid erroring is to access a property that typically works for
  18864. // non-anonymous divs and catch any error that may otherwise arise. See
  18865. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  18866. try {
  18867. /* eslint-disable no-unused-expressions */
  18868. currentRange.startContainer.nodeType;
  18869. currentRange.endContainer.nodeType;
  18870. /* eslint-enable no-unused-expressions */
  18871. } catch (e) {
  18872. return null;
  18873. }
  18874. // If the node and offset values are the same, the selection is collapsed.
  18875. // `Selection.isCollapsed` is available natively, but IE sometimes gets
  18876. // this value wrong.
  18877. var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset);
  18878. var rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length;
  18879. var tempRange = currentRange.cloneRange();
  18880. tempRange.selectNodeContents(node);
  18881. tempRange.setEnd(currentRange.startContainer, currentRange.startOffset);
  18882. var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset);
  18883. var start = isTempRangeCollapsed ? 0 : tempRange.toString().length;
  18884. var end = start + rangeLength;
  18885. // Detect whether the selection is backward.
  18886. var detectionRange = document.createRange();
  18887. detectionRange.setStart(anchorNode, anchorOffset);
  18888. detectionRange.setEnd(focusNode, focusOffset);
  18889. var isBackward = detectionRange.collapsed;
  18890. return {
  18891. start: isBackward ? end : start,
  18892. end: isBackward ? start : end
  18893. };
  18894. }
  18895. /**
  18896. * @param {DOMElement|DOMTextNode} node
  18897. * @param {object} offsets
  18898. */
  18899. function setIEOffsets(node, offsets) {
  18900. var range = document.selection.createRange().duplicate();
  18901. var start, end;
  18902. if (offsets.end === undefined) {
  18903. start = offsets.start;
  18904. end = start;
  18905. } else if (offsets.start > offsets.end) {
  18906. start = offsets.end;
  18907. end = offsets.start;
  18908. } else {
  18909. start = offsets.start;
  18910. end = offsets.end;
  18911. }
  18912. range.moveToElementText(node);
  18913. range.moveStart('character', start);
  18914. range.setEndPoint('EndToStart', range);
  18915. range.moveEnd('character', end - start);
  18916. range.select();
  18917. }
  18918. /**
  18919. * In modern non-IE browsers, we can support both forward and backward
  18920. * selections.
  18921. *
  18922. * Note: IE10+ supports the Selection object, but it does not support
  18923. * the `extend` method, which means that even in modern IE, it's not possible
  18924. * to programmatically create a backward selection. Thus, for all IE
  18925. * versions, we use the old IE API to create our selections.
  18926. *
  18927. * @param {DOMElement|DOMTextNode} node
  18928. * @param {object} offsets
  18929. */
  18930. function setModernOffsets(node, offsets) {
  18931. if (!window.getSelection) {
  18932. return;
  18933. }
  18934. var selection = window.getSelection();
  18935. var length = node[getTextContentAccessor()].length;
  18936. var start = Math.min(offsets.start, length);
  18937. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  18938. // IE 11 uses modern selection, but doesn't support the extend method.
  18939. // Flip backward selections, so we can set with a single range.
  18940. if (!selection.extend && start > end) {
  18941. var temp = end;
  18942. end = start;
  18943. start = temp;
  18944. }
  18945. var startMarker = getNodeForCharacterOffset(node, start);
  18946. var endMarker = getNodeForCharacterOffset(node, end);
  18947. if (startMarker && endMarker) {
  18948. var range = document.createRange();
  18949. range.setStart(startMarker.node, startMarker.offset);
  18950. selection.removeAllRanges();
  18951. if (start > end) {
  18952. selection.addRange(range);
  18953. selection.extend(endMarker.node, endMarker.offset);
  18954. } else {
  18955. range.setEnd(endMarker.node, endMarker.offset);
  18956. selection.addRange(range);
  18957. }
  18958. }
  18959. }
  18960. var useIEOffsets = ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window);
  18961. var ReactDOMSelection = {
  18962. /**
  18963. * @param {DOMElement} node
  18964. */
  18965. getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets,
  18966. /**
  18967. * @param {DOMElement|DOMTextNode} node
  18968. * @param {object} offsets
  18969. */
  18970. setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets
  18971. };
  18972. module.exports = ReactDOMSelection;
  18973. /***/ }),
  18974. /* 164 */
  18975. /***/ (function(module, exports, __webpack_require__) {
  18976. "use strict";
  18977. /**
  18978. * Copyright 2013-present, Facebook, Inc.
  18979. * All rights reserved.
  18980. *
  18981. * This source code is licensed under the BSD-style license found in the
  18982. * LICENSE file in the root directory of this source tree. An additional grant
  18983. * of patent rights can be found in the PATENTS file in the same directory.
  18984. *
  18985. */
  18986. /**
  18987. * Given any node return the first leaf node without children.
  18988. *
  18989. * @param {DOMElement|DOMTextNode} node
  18990. * @return {DOMElement|DOMTextNode}
  18991. */
  18992. function getLeafNode(node) {
  18993. while (node && node.firstChild) {
  18994. node = node.firstChild;
  18995. }
  18996. return node;
  18997. }
  18998. /**
  18999. * Get the next sibling within a container. This will walk up the
  19000. * DOM if a node's siblings have been exhausted.
  19001. *
  19002. * @param {DOMElement|DOMTextNode} node
  19003. * @return {?DOMElement|DOMTextNode}
  19004. */
  19005. function getSiblingNode(node) {
  19006. while (node) {
  19007. if (node.nextSibling) {
  19008. return node.nextSibling;
  19009. }
  19010. node = node.parentNode;
  19011. }
  19012. }
  19013. /**
  19014. * Get object describing the nodes which contain characters at offset.
  19015. *
  19016. * @param {DOMElement|DOMTextNode} root
  19017. * @param {number} offset
  19018. * @return {?object}
  19019. */
  19020. function getNodeForCharacterOffset(root, offset) {
  19021. var node = getLeafNode(root);
  19022. var nodeStart = 0;
  19023. var nodeEnd = 0;
  19024. while (node) {
  19025. if (node.nodeType === 3) {
  19026. nodeEnd = nodeStart + node.textContent.length;
  19027. if (nodeStart <= offset && nodeEnd >= offset) {
  19028. return {
  19029. node: node,
  19030. offset: offset - nodeStart
  19031. };
  19032. }
  19033. nodeStart = nodeEnd;
  19034. }
  19035. node = getLeafNode(getSiblingNode(node));
  19036. }
  19037. }
  19038. module.exports = getNodeForCharacterOffset;
  19039. /***/ }),
  19040. /* 165 */
  19041. /***/ (function(module, exports, __webpack_require__) {
  19042. "use strict";
  19043. /**
  19044. * Copyright (c) 2013-present, Facebook, Inc.
  19045. *
  19046. * This source code is licensed under the MIT license found in the
  19047. * LICENSE file in the root directory of this source tree.
  19048. *
  19049. *
  19050. */
  19051. var isTextNode = __webpack_require__(166);
  19052. /*eslint-disable no-bitwise */
  19053. /**
  19054. * Checks if a given DOM node contains or is another DOM node.
  19055. */
  19056. function containsNode(outerNode, innerNode) {
  19057. if (!outerNode || !innerNode) {
  19058. return false;
  19059. } else if (outerNode === innerNode) {
  19060. return true;
  19061. } else if (isTextNode(outerNode)) {
  19062. return false;
  19063. } else if (isTextNode(innerNode)) {
  19064. return containsNode(outerNode, innerNode.parentNode);
  19065. } else if ('contains' in outerNode) {
  19066. return outerNode.contains(innerNode);
  19067. } else if (outerNode.compareDocumentPosition) {
  19068. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  19069. } else {
  19070. return false;
  19071. }
  19072. }
  19073. module.exports = containsNode;
  19074. /***/ }),
  19075. /* 166 */
  19076. /***/ (function(module, exports, __webpack_require__) {
  19077. "use strict";
  19078. /**
  19079. * Copyright (c) 2013-present, Facebook, Inc.
  19080. *
  19081. * This source code is licensed under the MIT license found in the
  19082. * LICENSE file in the root directory of this source tree.
  19083. *
  19084. * @typechecks
  19085. */
  19086. var isNode = __webpack_require__(167);
  19087. /**
  19088. * @param {*} object The object to check.
  19089. * @return {boolean} Whether or not the object is a DOM text node.
  19090. */
  19091. function isTextNode(object) {
  19092. return isNode(object) && object.nodeType == 3;
  19093. }
  19094. module.exports = isTextNode;
  19095. /***/ }),
  19096. /* 167 */
  19097. /***/ (function(module, exports, __webpack_require__) {
  19098. "use strict";
  19099. /**
  19100. * Copyright (c) 2013-present, Facebook, Inc.
  19101. *
  19102. * This source code is licensed under the MIT license found in the
  19103. * LICENSE file in the root directory of this source tree.
  19104. *
  19105. * @typechecks
  19106. */
  19107. /**
  19108. * @param {*} object The object to check.
  19109. * @return {boolean} Whether or not the object is a DOM node.
  19110. */
  19111. function isNode(object) {
  19112. var doc = object ? object.ownerDocument || object : document;
  19113. var defaultView = doc.defaultView || window;
  19114. return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
  19115. }
  19116. module.exports = isNode;
  19117. /***/ }),
  19118. /* 168 */
  19119. /***/ (function(module, exports, __webpack_require__) {
  19120. "use strict";
  19121. /**
  19122. * Copyright 2013-present, Facebook, Inc.
  19123. * All rights reserved.
  19124. *
  19125. * This source code is licensed under the BSD-style license found in the
  19126. * LICENSE file in the root directory of this source tree. An additional grant
  19127. * of patent rights can be found in the PATENTS file in the same directory.
  19128. *
  19129. */
  19130. var NS = {
  19131. xlink: 'http://www.w3.org/1999/xlink',
  19132. xml: 'http://www.w3.org/XML/1998/namespace'
  19133. };
  19134. // We use attributes for everything SVG so let's avoid some duplication and run
  19135. // code instead.
  19136. // The following are all specified in the HTML config already so we exclude here.
  19137. // - class (as className)
  19138. // - color
  19139. // - height
  19140. // - id
  19141. // - lang
  19142. // - max
  19143. // - media
  19144. // - method
  19145. // - min
  19146. // - name
  19147. // - style
  19148. // - target
  19149. // - type
  19150. // - width
  19151. var ATTRS = {
  19152. accentHeight: 'accent-height',
  19153. accumulate: 0,
  19154. additive: 0,
  19155. alignmentBaseline: 'alignment-baseline',
  19156. allowReorder: 'allowReorder',
  19157. alphabetic: 0,
  19158. amplitude: 0,
  19159. arabicForm: 'arabic-form',
  19160. ascent: 0,
  19161. attributeName: 'attributeName',
  19162. attributeType: 'attributeType',
  19163. autoReverse: 'autoReverse',
  19164. azimuth: 0,
  19165. baseFrequency: 'baseFrequency',
  19166. baseProfile: 'baseProfile',
  19167. baselineShift: 'baseline-shift',
  19168. bbox: 0,
  19169. begin: 0,
  19170. bias: 0,
  19171. by: 0,
  19172. calcMode: 'calcMode',
  19173. capHeight: 'cap-height',
  19174. clip: 0,
  19175. clipPath: 'clip-path',
  19176. clipRule: 'clip-rule',
  19177. clipPathUnits: 'clipPathUnits',
  19178. colorInterpolation: 'color-interpolation',
  19179. colorInterpolationFilters: 'color-interpolation-filters',
  19180. colorProfile: 'color-profile',
  19181. colorRendering: 'color-rendering',
  19182. contentScriptType: 'contentScriptType',
  19183. contentStyleType: 'contentStyleType',
  19184. cursor: 0,
  19185. cx: 0,
  19186. cy: 0,
  19187. d: 0,
  19188. decelerate: 0,
  19189. descent: 0,
  19190. diffuseConstant: 'diffuseConstant',
  19191. direction: 0,
  19192. display: 0,
  19193. divisor: 0,
  19194. dominantBaseline: 'dominant-baseline',
  19195. dur: 0,
  19196. dx: 0,
  19197. dy: 0,
  19198. edgeMode: 'edgeMode',
  19199. elevation: 0,
  19200. enableBackground: 'enable-background',
  19201. end: 0,
  19202. exponent: 0,
  19203. externalResourcesRequired: 'externalResourcesRequired',
  19204. fill: 0,
  19205. fillOpacity: 'fill-opacity',
  19206. fillRule: 'fill-rule',
  19207. filter: 0,
  19208. filterRes: 'filterRes',
  19209. filterUnits: 'filterUnits',
  19210. floodColor: 'flood-color',
  19211. floodOpacity: 'flood-opacity',
  19212. focusable: 0,
  19213. fontFamily: 'font-family',
  19214. fontSize: 'font-size',
  19215. fontSizeAdjust: 'font-size-adjust',
  19216. fontStretch: 'font-stretch',
  19217. fontStyle: 'font-style',
  19218. fontVariant: 'font-variant',
  19219. fontWeight: 'font-weight',
  19220. format: 0,
  19221. from: 0,
  19222. fx: 0,
  19223. fy: 0,
  19224. g1: 0,
  19225. g2: 0,
  19226. glyphName: 'glyph-name',
  19227. glyphOrientationHorizontal: 'glyph-orientation-horizontal',
  19228. glyphOrientationVertical: 'glyph-orientation-vertical',
  19229. glyphRef: 'glyphRef',
  19230. gradientTransform: 'gradientTransform',
  19231. gradientUnits: 'gradientUnits',
  19232. hanging: 0,
  19233. horizAdvX: 'horiz-adv-x',
  19234. horizOriginX: 'horiz-origin-x',
  19235. ideographic: 0,
  19236. imageRendering: 'image-rendering',
  19237. 'in': 0,
  19238. in2: 0,
  19239. intercept: 0,
  19240. k: 0,
  19241. k1: 0,
  19242. k2: 0,
  19243. k3: 0,
  19244. k4: 0,
  19245. kernelMatrix: 'kernelMatrix',
  19246. kernelUnitLength: 'kernelUnitLength',
  19247. kerning: 0,
  19248. keyPoints: 'keyPoints',
  19249. keySplines: 'keySplines',
  19250. keyTimes: 'keyTimes',
  19251. lengthAdjust: 'lengthAdjust',
  19252. letterSpacing: 'letter-spacing',
  19253. lightingColor: 'lighting-color',
  19254. limitingConeAngle: 'limitingConeAngle',
  19255. local: 0,
  19256. markerEnd: 'marker-end',
  19257. markerMid: 'marker-mid',
  19258. markerStart: 'marker-start',
  19259. markerHeight: 'markerHeight',
  19260. markerUnits: 'markerUnits',
  19261. markerWidth: 'markerWidth',
  19262. mask: 0,
  19263. maskContentUnits: 'maskContentUnits',
  19264. maskUnits: 'maskUnits',
  19265. mathematical: 0,
  19266. mode: 0,
  19267. numOctaves: 'numOctaves',
  19268. offset: 0,
  19269. opacity: 0,
  19270. operator: 0,
  19271. order: 0,
  19272. orient: 0,
  19273. orientation: 0,
  19274. origin: 0,
  19275. overflow: 0,
  19276. overlinePosition: 'overline-position',
  19277. overlineThickness: 'overline-thickness',
  19278. paintOrder: 'paint-order',
  19279. panose1: 'panose-1',
  19280. pathLength: 'pathLength',
  19281. patternContentUnits: 'patternContentUnits',
  19282. patternTransform: 'patternTransform',
  19283. patternUnits: 'patternUnits',
  19284. pointerEvents: 'pointer-events',
  19285. points: 0,
  19286. pointsAtX: 'pointsAtX',
  19287. pointsAtY: 'pointsAtY',
  19288. pointsAtZ: 'pointsAtZ',
  19289. preserveAlpha: 'preserveAlpha',
  19290. preserveAspectRatio: 'preserveAspectRatio',
  19291. primitiveUnits: 'primitiveUnits',
  19292. r: 0,
  19293. radius: 0,
  19294. refX: 'refX',
  19295. refY: 'refY',
  19296. renderingIntent: 'rendering-intent',
  19297. repeatCount: 'repeatCount',
  19298. repeatDur: 'repeatDur',
  19299. requiredExtensions: 'requiredExtensions',
  19300. requiredFeatures: 'requiredFeatures',
  19301. restart: 0,
  19302. result: 0,
  19303. rotate: 0,
  19304. rx: 0,
  19305. ry: 0,
  19306. scale: 0,
  19307. seed: 0,
  19308. shapeRendering: 'shape-rendering',
  19309. slope: 0,
  19310. spacing: 0,
  19311. specularConstant: 'specularConstant',
  19312. specularExponent: 'specularExponent',
  19313. speed: 0,
  19314. spreadMethod: 'spreadMethod',
  19315. startOffset: 'startOffset',
  19316. stdDeviation: 'stdDeviation',
  19317. stemh: 0,
  19318. stemv: 0,
  19319. stitchTiles: 'stitchTiles',
  19320. stopColor: 'stop-color',
  19321. stopOpacity: 'stop-opacity',
  19322. strikethroughPosition: 'strikethrough-position',
  19323. strikethroughThickness: 'strikethrough-thickness',
  19324. string: 0,
  19325. stroke: 0,
  19326. strokeDasharray: 'stroke-dasharray',
  19327. strokeDashoffset: 'stroke-dashoffset',
  19328. strokeLinecap: 'stroke-linecap',
  19329. strokeLinejoin: 'stroke-linejoin',
  19330. strokeMiterlimit: 'stroke-miterlimit',
  19331. strokeOpacity: 'stroke-opacity',
  19332. strokeWidth: 'stroke-width',
  19333. surfaceScale: 'surfaceScale',
  19334. systemLanguage: 'systemLanguage',
  19335. tableValues: 'tableValues',
  19336. targetX: 'targetX',
  19337. targetY: 'targetY',
  19338. textAnchor: 'text-anchor',
  19339. textDecoration: 'text-decoration',
  19340. textRendering: 'text-rendering',
  19341. textLength: 'textLength',
  19342. to: 0,
  19343. transform: 0,
  19344. u1: 0,
  19345. u2: 0,
  19346. underlinePosition: 'underline-position',
  19347. underlineThickness: 'underline-thickness',
  19348. unicode: 0,
  19349. unicodeBidi: 'unicode-bidi',
  19350. unicodeRange: 'unicode-range',
  19351. unitsPerEm: 'units-per-em',
  19352. vAlphabetic: 'v-alphabetic',
  19353. vHanging: 'v-hanging',
  19354. vIdeographic: 'v-ideographic',
  19355. vMathematical: 'v-mathematical',
  19356. values: 0,
  19357. vectorEffect: 'vector-effect',
  19358. version: 0,
  19359. vertAdvY: 'vert-adv-y',
  19360. vertOriginX: 'vert-origin-x',
  19361. vertOriginY: 'vert-origin-y',
  19362. viewBox: 'viewBox',
  19363. viewTarget: 'viewTarget',
  19364. visibility: 0,
  19365. widths: 0,
  19366. wordSpacing: 'word-spacing',
  19367. writingMode: 'writing-mode',
  19368. x: 0,
  19369. xHeight: 'x-height',
  19370. x1: 0,
  19371. x2: 0,
  19372. xChannelSelector: 'xChannelSelector',
  19373. xlinkActuate: 'xlink:actuate',
  19374. xlinkArcrole: 'xlink:arcrole',
  19375. xlinkHref: 'xlink:href',
  19376. xlinkRole: 'xlink:role',
  19377. xlinkShow: 'xlink:show',
  19378. xlinkTitle: 'xlink:title',
  19379. xlinkType: 'xlink:type',
  19380. xmlBase: 'xml:base',
  19381. xmlns: 0,
  19382. xmlnsXlink: 'xmlns:xlink',
  19383. xmlLang: 'xml:lang',
  19384. xmlSpace: 'xml:space',
  19385. y: 0,
  19386. y1: 0,
  19387. y2: 0,
  19388. yChannelSelector: 'yChannelSelector',
  19389. z: 0,
  19390. zoomAndPan: 'zoomAndPan'
  19391. };
  19392. var SVGDOMPropertyConfig = {
  19393. Properties: {},
  19394. DOMAttributeNamespaces: {
  19395. xlinkActuate: NS.xlink,
  19396. xlinkArcrole: NS.xlink,
  19397. xlinkHref: NS.xlink,
  19398. xlinkRole: NS.xlink,
  19399. xlinkShow: NS.xlink,
  19400. xlinkTitle: NS.xlink,
  19401. xlinkType: NS.xlink,
  19402. xmlBase: NS.xml,
  19403. xmlLang: NS.xml,
  19404. xmlSpace: NS.xml
  19405. },
  19406. DOMAttributeNames: {}
  19407. };
  19408. Object.keys(ATTRS).forEach(function (key) {
  19409. SVGDOMPropertyConfig.Properties[key] = 0;
  19410. if (ATTRS[key]) {
  19411. SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key];
  19412. }
  19413. });
  19414. module.exports = SVGDOMPropertyConfig;
  19415. /***/ }),
  19416. /* 169 */
  19417. /***/ (function(module, exports, __webpack_require__) {
  19418. "use strict";
  19419. /**
  19420. * Copyright 2013-present, Facebook, Inc.
  19421. * All rights reserved.
  19422. *
  19423. * This source code is licensed under the BSD-style license found in the
  19424. * LICENSE file in the root directory of this source tree. An additional grant
  19425. * of patent rights can be found in the PATENTS file in the same directory.
  19426. *
  19427. */
  19428. var EventPropagators = __webpack_require__(21);
  19429. var ExecutionEnvironment = __webpack_require__(6);
  19430. var ReactDOMComponentTree = __webpack_require__(5);
  19431. var ReactInputSelection = __webpack_require__(77);
  19432. var SyntheticEvent = __webpack_require__(12);
  19433. var getActiveElement = __webpack_require__(78);
  19434. var isTextInputElement = __webpack_require__(62);
  19435. var shallowEqual = __webpack_require__(45);
  19436. var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  19437. var eventTypes = {
  19438. select: {
  19439. phasedRegistrationNames: {
  19440. bubbled: 'onSelect',
  19441. captured: 'onSelectCapture'
  19442. },
  19443. dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange']
  19444. }
  19445. };
  19446. var activeElement = null;
  19447. var activeElementInst = null;
  19448. var lastSelection = null;
  19449. var mouseDown = false;
  19450. // Track whether a listener exists for this plugin. If none exist, we do
  19451. // not extract events. See #3639.
  19452. var hasListener = false;
  19453. /**
  19454. * Get an object which is a unique representation of the current selection.
  19455. *
  19456. * The return value will not be consistent across nodes or browsers, but
  19457. * two identical selections on the same node will return identical objects.
  19458. *
  19459. * @param {DOMElement} node
  19460. * @return {object}
  19461. */
  19462. function getSelection(node) {
  19463. if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) {
  19464. return {
  19465. start: node.selectionStart,
  19466. end: node.selectionEnd
  19467. };
  19468. } else if (window.getSelection) {
  19469. var selection = window.getSelection();
  19470. return {
  19471. anchorNode: selection.anchorNode,
  19472. anchorOffset: selection.anchorOffset,
  19473. focusNode: selection.focusNode,
  19474. focusOffset: selection.focusOffset
  19475. };
  19476. } else if (document.selection) {
  19477. var range = document.selection.createRange();
  19478. return {
  19479. parentElement: range.parentElement(),
  19480. text: range.text,
  19481. top: range.boundingTop,
  19482. left: range.boundingLeft
  19483. };
  19484. }
  19485. }
  19486. /**
  19487. * Poll selection to see whether it's changed.
  19488. *
  19489. * @param {object} nativeEvent
  19490. * @return {?SyntheticEvent}
  19491. */
  19492. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  19493. // Ensure we have the right element, and that the user is not dragging a
  19494. // selection (this matches native `select` event behavior). In HTML5, select
  19495. // fires only on input and textarea thus if there's no focused element we
  19496. // won't dispatch.
  19497. if (mouseDown || activeElement == null || activeElement !== getActiveElement()) {
  19498. return null;
  19499. }
  19500. // Only fire when selection has actually changed.
  19501. var currentSelection = getSelection(activeElement);
  19502. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  19503. lastSelection = currentSelection;
  19504. var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementInst, nativeEvent, nativeEventTarget);
  19505. syntheticEvent.type = 'select';
  19506. syntheticEvent.target = activeElement;
  19507. EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent);
  19508. return syntheticEvent;
  19509. }
  19510. return null;
  19511. }
  19512. /**
  19513. * This plugin creates an `onSelect` event that normalizes select events
  19514. * across form elements.
  19515. *
  19516. * Supported elements are:
  19517. * - input (see `isTextInputElement`)
  19518. * - textarea
  19519. * - contentEditable
  19520. *
  19521. * This differs from native browser implementations in the following ways:
  19522. * - Fires on contentEditable fields as well as inputs.
  19523. * - Fires for collapsed selection.
  19524. * - Fires after user input.
  19525. */
  19526. var SelectEventPlugin = {
  19527. eventTypes: eventTypes,
  19528. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19529. if (!hasListener) {
  19530. return null;
  19531. }
  19532. var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
  19533. switch (topLevelType) {
  19534. // Track the input node that has focus.
  19535. case 'topFocus':
  19536. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  19537. activeElement = targetNode;
  19538. activeElementInst = targetInst;
  19539. lastSelection = null;
  19540. }
  19541. break;
  19542. case 'topBlur':
  19543. activeElement = null;
  19544. activeElementInst = null;
  19545. lastSelection = null;
  19546. break;
  19547. // Don't fire the event while the user is dragging. This matches the
  19548. // semantics of the native select event.
  19549. case 'topMouseDown':
  19550. mouseDown = true;
  19551. break;
  19552. case 'topContextMenu':
  19553. case 'topMouseUp':
  19554. mouseDown = false;
  19555. return constructSelectEvent(nativeEvent, nativeEventTarget);
  19556. // Chrome and IE fire non-standard event when selection is changed (and
  19557. // sometimes when it hasn't). IE's event fires out of order with respect
  19558. // to key and input events on deletion, so we discard it.
  19559. //
  19560. // Firefox doesn't support selectionchange, so check selection status
  19561. // after each key entry. The selection changes after keydown and before
  19562. // keyup, but we check on keydown as well in the case of holding down a
  19563. // key, when multiple keydown events are fired but only one keyup is.
  19564. // This is also our approach for IE handling, for the reason above.
  19565. case 'topSelectionChange':
  19566. if (skipSelectionChangeEvent) {
  19567. break;
  19568. }
  19569. // falls through
  19570. case 'topKeyDown':
  19571. case 'topKeyUp':
  19572. return constructSelectEvent(nativeEvent, nativeEventTarget);
  19573. }
  19574. return null;
  19575. },
  19576. didPutListener: function (inst, registrationName, listener) {
  19577. if (registrationName === 'onSelect') {
  19578. hasListener = true;
  19579. }
  19580. }
  19581. };
  19582. module.exports = SelectEventPlugin;
  19583. /***/ }),
  19584. /* 170 */
  19585. /***/ (function(module, exports, __webpack_require__) {
  19586. "use strict";
  19587. /* WEBPACK VAR INJECTION */(function(process) {/**
  19588. * Copyright 2013-present, Facebook, Inc.
  19589. * All rights reserved.
  19590. *
  19591. * This source code is licensed under the BSD-style license found in the
  19592. * LICENSE file in the root directory of this source tree. An additional grant
  19593. * of patent rights can be found in the PATENTS file in the same directory.
  19594. *
  19595. *
  19596. */
  19597. var _prodInvariant = __webpack_require__(3);
  19598. var EventListener = __webpack_require__(76);
  19599. var EventPropagators = __webpack_require__(21);
  19600. var ReactDOMComponentTree = __webpack_require__(5);
  19601. var SyntheticAnimationEvent = __webpack_require__(171);
  19602. var SyntheticClipboardEvent = __webpack_require__(172);
  19603. var SyntheticEvent = __webpack_require__(12);
  19604. var SyntheticFocusEvent = __webpack_require__(173);
  19605. var SyntheticKeyboardEvent = __webpack_require__(174);
  19606. var SyntheticMouseEvent = __webpack_require__(29);
  19607. var SyntheticDragEvent = __webpack_require__(176);
  19608. var SyntheticTouchEvent = __webpack_require__(177);
  19609. var SyntheticTransitionEvent = __webpack_require__(178);
  19610. var SyntheticUIEvent = __webpack_require__(23);
  19611. var SyntheticWheelEvent = __webpack_require__(179);
  19612. var emptyFunction = __webpack_require__(8);
  19613. var getEventCharCode = __webpack_require__(50);
  19614. var invariant = __webpack_require__(1);
  19615. /**
  19616. * Turns
  19617. * ['abort', ...]
  19618. * into
  19619. * eventTypes = {
  19620. * 'abort': {
  19621. * phasedRegistrationNames: {
  19622. * bubbled: 'onAbort',
  19623. * captured: 'onAbortCapture',
  19624. * },
  19625. * dependencies: ['topAbort'],
  19626. * },
  19627. * ...
  19628. * };
  19629. * topLevelEventsToDispatchConfig = {
  19630. * 'topAbort': { sameConfig }
  19631. * };
  19632. */
  19633. var eventTypes = {};
  19634. var topLevelEventsToDispatchConfig = {};
  19635. ['abort', 'animationEnd', 'animationIteration', 'animationStart', 'blur', 'canPlay', 'canPlayThrough', 'click', 'contextMenu', 'copy', 'cut', 'doubleClick', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'focus', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'progress', 'rateChange', 'reset', 'scroll', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchMove', 'touchStart', 'transitionEnd', 'volumeChange', 'waiting', 'wheel'].forEach(function (event) {
  19636. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  19637. var onEvent = 'on' + capitalizedEvent;
  19638. var topEvent = 'top' + capitalizedEvent;
  19639. var type = {
  19640. phasedRegistrationNames: {
  19641. bubbled: onEvent,
  19642. captured: onEvent + 'Capture'
  19643. },
  19644. dependencies: [topEvent]
  19645. };
  19646. eventTypes[event] = type;
  19647. topLevelEventsToDispatchConfig[topEvent] = type;
  19648. });
  19649. var onClickListeners = {};
  19650. function getDictionaryKey(inst) {
  19651. // Prevents V8 performance issue:
  19652. // https://github.com/facebook/react/pull/7232
  19653. return '.' + inst._rootNodeID;
  19654. }
  19655. function isInteractive(tag) {
  19656. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  19657. }
  19658. var SimpleEventPlugin = {
  19659. eventTypes: eventTypes,
  19660. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19661. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  19662. if (!dispatchConfig) {
  19663. return null;
  19664. }
  19665. var EventConstructor;
  19666. switch (topLevelType) {
  19667. case 'topAbort':
  19668. case 'topCanPlay':
  19669. case 'topCanPlayThrough':
  19670. case 'topDurationChange':
  19671. case 'topEmptied':
  19672. case 'topEncrypted':
  19673. case 'topEnded':
  19674. case 'topError':
  19675. case 'topInput':
  19676. case 'topInvalid':
  19677. case 'topLoad':
  19678. case 'topLoadedData':
  19679. case 'topLoadedMetadata':
  19680. case 'topLoadStart':
  19681. case 'topPause':
  19682. case 'topPlay':
  19683. case 'topPlaying':
  19684. case 'topProgress':
  19685. case 'topRateChange':
  19686. case 'topReset':
  19687. case 'topSeeked':
  19688. case 'topSeeking':
  19689. case 'topStalled':
  19690. case 'topSubmit':
  19691. case 'topSuspend':
  19692. case 'topTimeUpdate':
  19693. case 'topVolumeChange':
  19694. case 'topWaiting':
  19695. // HTML Events
  19696. // @see http://www.w3.org/TR/html5/index.html#events-0
  19697. EventConstructor = SyntheticEvent;
  19698. break;
  19699. case 'topKeyPress':
  19700. // Firefox creates a keypress event for function keys too. This removes
  19701. // the unwanted keypress events. Enter is however both printable and
  19702. // non-printable. One would expect Tab to be as well (but it isn't).
  19703. if (getEventCharCode(nativeEvent) === 0) {
  19704. return null;
  19705. }
  19706. /* falls through */
  19707. case 'topKeyDown':
  19708. case 'topKeyUp':
  19709. EventConstructor = SyntheticKeyboardEvent;
  19710. break;
  19711. case 'topBlur':
  19712. case 'topFocus':
  19713. EventConstructor = SyntheticFocusEvent;
  19714. break;
  19715. case 'topClick':
  19716. // Firefox creates a click event on right mouse clicks. This removes the
  19717. // unwanted click events.
  19718. if (nativeEvent.button === 2) {
  19719. return null;
  19720. }
  19721. /* falls through */
  19722. case 'topDoubleClick':
  19723. case 'topMouseDown':
  19724. case 'topMouseMove':
  19725. case 'topMouseUp':
  19726. // TODO: Disabled elements should not respond to mouse events
  19727. /* falls through */
  19728. case 'topMouseOut':
  19729. case 'topMouseOver':
  19730. case 'topContextMenu':
  19731. EventConstructor = SyntheticMouseEvent;
  19732. break;
  19733. case 'topDrag':
  19734. case 'topDragEnd':
  19735. case 'topDragEnter':
  19736. case 'topDragExit':
  19737. case 'topDragLeave':
  19738. case 'topDragOver':
  19739. case 'topDragStart':
  19740. case 'topDrop':
  19741. EventConstructor = SyntheticDragEvent;
  19742. break;
  19743. case 'topTouchCancel':
  19744. case 'topTouchEnd':
  19745. case 'topTouchMove':
  19746. case 'topTouchStart':
  19747. EventConstructor = SyntheticTouchEvent;
  19748. break;
  19749. case 'topAnimationEnd':
  19750. case 'topAnimationIteration':
  19751. case 'topAnimationStart':
  19752. EventConstructor = SyntheticAnimationEvent;
  19753. break;
  19754. case 'topTransitionEnd':
  19755. EventConstructor = SyntheticTransitionEvent;
  19756. break;
  19757. case 'topScroll':
  19758. EventConstructor = SyntheticUIEvent;
  19759. break;
  19760. case 'topWheel':
  19761. EventConstructor = SyntheticWheelEvent;
  19762. break;
  19763. case 'topCopy':
  19764. case 'topCut':
  19765. case 'topPaste':
  19766. EventConstructor = SyntheticClipboardEvent;
  19767. break;
  19768. }
  19769. !EventConstructor ? process.env.NODE_ENV !== 'production' ? invariant(false, 'SimpleEventPlugin: Unhandled event type, `%s`.', topLevelType) : _prodInvariant('86', topLevelType) : void 0;
  19770. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  19771. EventPropagators.accumulateTwoPhaseDispatches(event);
  19772. return event;
  19773. },
  19774. didPutListener: function (inst, registrationName, listener) {
  19775. // Mobile Safari does not fire properly bubble click events on
  19776. // non-interactive elements, which means delegated click listeners do not
  19777. // fire. The workaround for this bug involves attaching an empty click
  19778. // listener on the target node.
  19779. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  19780. if (registrationName === 'onClick' && !isInteractive(inst._tag)) {
  19781. var key = getDictionaryKey(inst);
  19782. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  19783. if (!onClickListeners[key]) {
  19784. onClickListeners[key] = EventListener.listen(node, 'click', emptyFunction);
  19785. }
  19786. }
  19787. },
  19788. willDeleteListener: function (inst, registrationName) {
  19789. if (registrationName === 'onClick' && !isInteractive(inst._tag)) {
  19790. var key = getDictionaryKey(inst);
  19791. onClickListeners[key].remove();
  19792. delete onClickListeners[key];
  19793. }
  19794. }
  19795. };
  19796. module.exports = SimpleEventPlugin;
  19797. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  19798. /***/ }),
  19799. /* 171 */
  19800. /***/ (function(module, exports, __webpack_require__) {
  19801. "use strict";
  19802. /**
  19803. * Copyright 2013-present, Facebook, Inc.
  19804. * All rights reserved.
  19805. *
  19806. * This source code is licensed under the BSD-style license found in the
  19807. * LICENSE file in the root directory of this source tree. An additional grant
  19808. * of patent rights can be found in the PATENTS file in the same directory.
  19809. *
  19810. */
  19811. var SyntheticEvent = __webpack_require__(12);
  19812. /**
  19813. * @interface Event
  19814. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  19815. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  19816. */
  19817. var AnimationEventInterface = {
  19818. animationName: null,
  19819. elapsedTime: null,
  19820. pseudoElement: null
  19821. };
  19822. /**
  19823. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19824. * @param {string} dispatchMarker Marker identifying the event target.
  19825. * @param {object} nativeEvent Native browser event.
  19826. * @extends {SyntheticEvent}
  19827. */
  19828. function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19829. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19830. }
  19831. SyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface);
  19832. module.exports = SyntheticAnimationEvent;
  19833. /***/ }),
  19834. /* 172 */
  19835. /***/ (function(module, exports, __webpack_require__) {
  19836. "use strict";
  19837. /**
  19838. * Copyright 2013-present, Facebook, Inc.
  19839. * All rights reserved.
  19840. *
  19841. * This source code is licensed under the BSD-style license found in the
  19842. * LICENSE file in the root directory of this source tree. An additional grant
  19843. * of patent rights can be found in the PATENTS file in the same directory.
  19844. *
  19845. */
  19846. var SyntheticEvent = __webpack_require__(12);
  19847. /**
  19848. * @interface Event
  19849. * @see http://www.w3.org/TR/clipboard-apis/
  19850. */
  19851. var ClipboardEventInterface = {
  19852. clipboardData: function (event) {
  19853. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  19854. }
  19855. };
  19856. /**
  19857. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19858. * @param {string} dispatchMarker Marker identifying the event target.
  19859. * @param {object} nativeEvent Native browser event.
  19860. * @extends {SyntheticUIEvent}
  19861. */
  19862. function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19863. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19864. }
  19865. SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
  19866. module.exports = SyntheticClipboardEvent;
  19867. /***/ }),
  19868. /* 173 */
  19869. /***/ (function(module, exports, __webpack_require__) {
  19870. "use strict";
  19871. /**
  19872. * Copyright 2013-present, Facebook, Inc.
  19873. * All rights reserved.
  19874. *
  19875. * This source code is licensed under the BSD-style license found in the
  19876. * LICENSE file in the root directory of this source tree. An additional grant
  19877. * of patent rights can be found in the PATENTS file in the same directory.
  19878. *
  19879. */
  19880. var SyntheticUIEvent = __webpack_require__(23);
  19881. /**
  19882. * @interface FocusEvent
  19883. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  19884. */
  19885. var FocusEventInterface = {
  19886. relatedTarget: null
  19887. };
  19888. /**
  19889. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19890. * @param {string} dispatchMarker Marker identifying the event target.
  19891. * @param {object} nativeEvent Native browser event.
  19892. * @extends {SyntheticUIEvent}
  19893. */
  19894. function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19895. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19896. }
  19897. SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
  19898. module.exports = SyntheticFocusEvent;
  19899. /***/ }),
  19900. /* 174 */
  19901. /***/ (function(module, exports, __webpack_require__) {
  19902. "use strict";
  19903. /**
  19904. * Copyright 2013-present, Facebook, Inc.
  19905. * All rights reserved.
  19906. *
  19907. * This source code is licensed under the BSD-style license found in the
  19908. * LICENSE file in the root directory of this source tree. An additional grant
  19909. * of patent rights can be found in the PATENTS file in the same directory.
  19910. *
  19911. */
  19912. var SyntheticUIEvent = __webpack_require__(23);
  19913. var getEventCharCode = __webpack_require__(50);
  19914. var getEventKey = __webpack_require__(175);
  19915. var getEventModifierState = __webpack_require__(39);
  19916. /**
  19917. * @interface KeyboardEvent
  19918. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  19919. */
  19920. var KeyboardEventInterface = {
  19921. key: getEventKey,
  19922. location: null,
  19923. ctrlKey: null,
  19924. shiftKey: null,
  19925. altKey: null,
  19926. metaKey: null,
  19927. repeat: null,
  19928. locale: null,
  19929. getModifierState: getEventModifierState,
  19930. // Legacy Interface
  19931. charCode: function (event) {
  19932. // `charCode` is the result of a KeyPress event and represents the value of
  19933. // the actual printable character.
  19934. // KeyPress is deprecated, but its replacement is not yet final and not
  19935. // implemented in any major browser. Only KeyPress has charCode.
  19936. if (event.type === 'keypress') {
  19937. return getEventCharCode(event);
  19938. }
  19939. return 0;
  19940. },
  19941. keyCode: function (event) {
  19942. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  19943. // physical keyboard key.
  19944. // The actual meaning of the value depends on the users' keyboard layout
  19945. // which cannot be detected. Assuming that it is a US keyboard layout
  19946. // provides a surprisingly accurate mapping for US and European users.
  19947. // Due to this, it is left to the user to implement at this time.
  19948. if (event.type === 'keydown' || event.type === 'keyup') {
  19949. return event.keyCode;
  19950. }
  19951. return 0;
  19952. },
  19953. which: function (event) {
  19954. // `which` is an alias for either `keyCode` or `charCode` depending on the
  19955. // type of the event.
  19956. if (event.type === 'keypress') {
  19957. return getEventCharCode(event);
  19958. }
  19959. if (event.type === 'keydown' || event.type === 'keyup') {
  19960. return event.keyCode;
  19961. }
  19962. return 0;
  19963. }
  19964. };
  19965. /**
  19966. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19967. * @param {string} dispatchMarker Marker identifying the event target.
  19968. * @param {object} nativeEvent Native browser event.
  19969. * @extends {SyntheticUIEvent}
  19970. */
  19971. function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19972. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19973. }
  19974. SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);
  19975. module.exports = SyntheticKeyboardEvent;
  19976. /***/ }),
  19977. /* 175 */
  19978. /***/ (function(module, exports, __webpack_require__) {
  19979. "use strict";
  19980. /**
  19981. * Copyright 2013-present, Facebook, Inc.
  19982. * All rights reserved.
  19983. *
  19984. * This source code is licensed under the BSD-style license found in the
  19985. * LICENSE file in the root directory of this source tree. An additional grant
  19986. * of patent rights can be found in the PATENTS file in the same directory.
  19987. *
  19988. */
  19989. var getEventCharCode = __webpack_require__(50);
  19990. /**
  19991. * Normalization of deprecated HTML5 `key` values
  19992. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  19993. */
  19994. var normalizeKey = {
  19995. 'Esc': 'Escape',
  19996. 'Spacebar': ' ',
  19997. 'Left': 'ArrowLeft',
  19998. 'Up': 'ArrowUp',
  19999. 'Right': 'ArrowRight',
  20000. 'Down': 'ArrowDown',
  20001. 'Del': 'Delete',
  20002. 'Win': 'OS',
  20003. 'Menu': 'ContextMenu',
  20004. 'Apps': 'ContextMenu',
  20005. 'Scroll': 'ScrollLock',
  20006. 'MozPrintableKey': 'Unidentified'
  20007. };
  20008. /**
  20009. * Translation from legacy `keyCode` to HTML5 `key`
  20010. * Only special keys supported, all others depend on keyboard layout or browser
  20011. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  20012. */
  20013. var translateToKey = {
  20014. 8: 'Backspace',
  20015. 9: 'Tab',
  20016. 12: 'Clear',
  20017. 13: 'Enter',
  20018. 16: 'Shift',
  20019. 17: 'Control',
  20020. 18: 'Alt',
  20021. 19: 'Pause',
  20022. 20: 'CapsLock',
  20023. 27: 'Escape',
  20024. 32: ' ',
  20025. 33: 'PageUp',
  20026. 34: 'PageDown',
  20027. 35: 'End',
  20028. 36: 'Home',
  20029. 37: 'ArrowLeft',
  20030. 38: 'ArrowUp',
  20031. 39: 'ArrowRight',
  20032. 40: 'ArrowDown',
  20033. 45: 'Insert',
  20034. 46: 'Delete',
  20035. 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6',
  20036. 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12',
  20037. 144: 'NumLock',
  20038. 145: 'ScrollLock',
  20039. 224: 'Meta'
  20040. };
  20041. /**
  20042. * @param {object} nativeEvent Native browser event.
  20043. * @return {string} Normalized `key` property.
  20044. */
  20045. function getEventKey(nativeEvent) {
  20046. if (nativeEvent.key) {
  20047. // Normalize inconsistent values reported by browsers due to
  20048. // implementations of a working draft specification.
  20049. // FireFox implements `key` but returns `MozPrintableKey` for all
  20050. // printable characters (normalized to `Unidentified`), ignore it.
  20051. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  20052. if (key !== 'Unidentified') {
  20053. return key;
  20054. }
  20055. }
  20056. // Browser does not implement `key`, polyfill as much of it as we can.
  20057. if (nativeEvent.type === 'keypress') {
  20058. var charCode = getEventCharCode(nativeEvent);
  20059. // The enter-key is technically both printable and non-printable and can
  20060. // thus be captured by `keypress`, no other non-printable key should.
  20061. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  20062. }
  20063. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  20064. // While user keyboard layout determines the actual meaning of each
  20065. // `keyCode` value, almost all function keys have a universal value.
  20066. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  20067. }
  20068. return '';
  20069. }
  20070. module.exports = getEventKey;
  20071. /***/ }),
  20072. /* 176 */
  20073. /***/ (function(module, exports, __webpack_require__) {
  20074. "use strict";
  20075. /**
  20076. * Copyright 2013-present, Facebook, Inc.
  20077. * All rights reserved.
  20078. *
  20079. * This source code is licensed under the BSD-style license found in the
  20080. * LICENSE file in the root directory of this source tree. An additional grant
  20081. * of patent rights can be found in the PATENTS file in the same directory.
  20082. *
  20083. */
  20084. var SyntheticMouseEvent = __webpack_require__(29);
  20085. /**
  20086. * @interface DragEvent
  20087. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  20088. */
  20089. var DragEventInterface = {
  20090. dataTransfer: null
  20091. };
  20092. /**
  20093. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20094. * @param {string} dispatchMarker Marker identifying the event target.
  20095. * @param {object} nativeEvent Native browser event.
  20096. * @extends {SyntheticUIEvent}
  20097. */
  20098. function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20099. return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20100. }
  20101. SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
  20102. module.exports = SyntheticDragEvent;
  20103. /***/ }),
  20104. /* 177 */
  20105. /***/ (function(module, exports, __webpack_require__) {
  20106. "use strict";
  20107. /**
  20108. * Copyright 2013-present, Facebook, Inc.
  20109. * All rights reserved.
  20110. *
  20111. * This source code is licensed under the BSD-style license found in the
  20112. * LICENSE file in the root directory of this source tree. An additional grant
  20113. * of patent rights can be found in the PATENTS file in the same directory.
  20114. *
  20115. */
  20116. var SyntheticUIEvent = __webpack_require__(23);
  20117. var getEventModifierState = __webpack_require__(39);
  20118. /**
  20119. * @interface TouchEvent
  20120. * @see http://www.w3.org/TR/touch-events/
  20121. */
  20122. var TouchEventInterface = {
  20123. touches: null,
  20124. targetTouches: null,
  20125. changedTouches: null,
  20126. altKey: null,
  20127. metaKey: null,
  20128. ctrlKey: null,
  20129. shiftKey: null,
  20130. getModifierState: getEventModifierState
  20131. };
  20132. /**
  20133. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20134. * @param {string} dispatchMarker Marker identifying the event target.
  20135. * @param {object} nativeEvent Native browser event.
  20136. * @extends {SyntheticUIEvent}
  20137. */
  20138. function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20139. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20140. }
  20141. SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
  20142. module.exports = SyntheticTouchEvent;
  20143. /***/ }),
  20144. /* 178 */
  20145. /***/ (function(module, exports, __webpack_require__) {
  20146. "use strict";
  20147. /**
  20148. * Copyright 2013-present, Facebook, Inc.
  20149. * All rights reserved.
  20150. *
  20151. * This source code is licensed under the BSD-style license found in the
  20152. * LICENSE file in the root directory of this source tree. An additional grant
  20153. * of patent rights can be found in the PATENTS file in the same directory.
  20154. *
  20155. */
  20156. var SyntheticEvent = __webpack_require__(12);
  20157. /**
  20158. * @interface Event
  20159. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  20160. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  20161. */
  20162. var TransitionEventInterface = {
  20163. propertyName: null,
  20164. elapsedTime: null,
  20165. pseudoElement: null
  20166. };
  20167. /**
  20168. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20169. * @param {string} dispatchMarker Marker identifying the event target.
  20170. * @param {object} nativeEvent Native browser event.
  20171. * @extends {SyntheticEvent}
  20172. */
  20173. function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20174. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20175. }
  20176. SyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface);
  20177. module.exports = SyntheticTransitionEvent;
  20178. /***/ }),
  20179. /* 179 */
  20180. /***/ (function(module, exports, __webpack_require__) {
  20181. "use strict";
  20182. /**
  20183. * Copyright 2013-present, Facebook, Inc.
  20184. * All rights reserved.
  20185. *
  20186. * This source code is licensed under the BSD-style license found in the
  20187. * LICENSE file in the root directory of this source tree. An additional grant
  20188. * of patent rights can be found in the PATENTS file in the same directory.
  20189. *
  20190. */
  20191. var SyntheticMouseEvent = __webpack_require__(29);
  20192. /**
  20193. * @interface WheelEvent
  20194. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  20195. */
  20196. var WheelEventInterface = {
  20197. deltaX: function (event) {
  20198. return 'deltaX' in event ? event.deltaX :
  20199. // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  20200. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  20201. },
  20202. deltaY: function (event) {
  20203. return 'deltaY' in event ? event.deltaY :
  20204. // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  20205. 'wheelDeltaY' in event ? -event.wheelDeltaY :
  20206. // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  20207. 'wheelDelta' in event ? -event.wheelDelta : 0;
  20208. },
  20209. deltaZ: null,
  20210. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  20211. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  20212. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  20213. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  20214. deltaMode: null
  20215. };
  20216. /**
  20217. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20218. * @param {string} dispatchMarker Marker identifying the event target.
  20219. * @param {object} nativeEvent Native browser event.
  20220. * @extends {SyntheticMouseEvent}
  20221. */
  20222. function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20223. return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20224. }
  20225. SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);
  20226. module.exports = SyntheticWheelEvent;
  20227. /***/ }),
  20228. /* 180 */
  20229. /***/ (function(module, exports, __webpack_require__) {
  20230. "use strict";
  20231. /* WEBPACK VAR INJECTION */(function(process) {/**
  20232. * Copyright 2013-present, Facebook, Inc.
  20233. * All rights reserved.
  20234. *
  20235. * This source code is licensed under the BSD-style license found in the
  20236. * LICENSE file in the root directory of this source tree. An additional grant
  20237. * of patent rights can be found in the PATENTS file in the same directory.
  20238. *
  20239. */
  20240. var validateDOMNesting = __webpack_require__(49);
  20241. var DOC_NODE_TYPE = 9;
  20242. function ReactDOMContainerInfo(topLevelWrapper, node) {
  20243. var info = {
  20244. _topLevelWrapper: topLevelWrapper,
  20245. _idCounter: 1,
  20246. _ownerDocument: node ? node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument : null,
  20247. _node: node,
  20248. _tag: node ? node.nodeName.toLowerCase() : null,
  20249. _namespaceURI: node ? node.namespaceURI : null
  20250. };
  20251. if (process.env.NODE_ENV !== 'production') {
  20252. info._ancestorInfo = node ? validateDOMNesting.updatedAncestorInfo(null, info._tag, null) : null;
  20253. }
  20254. return info;
  20255. }
  20256. module.exports = ReactDOMContainerInfo;
  20257. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20258. /***/ }),
  20259. /* 181 */
  20260. /***/ (function(module, exports, __webpack_require__) {
  20261. "use strict";
  20262. /**
  20263. * Copyright 2013-present, Facebook, Inc.
  20264. * All rights reserved.
  20265. *
  20266. * This source code is licensed under the BSD-style license found in the
  20267. * LICENSE file in the root directory of this source tree. An additional grant
  20268. * of patent rights can be found in the PATENTS file in the same directory.
  20269. *
  20270. */
  20271. var ReactDOMFeatureFlags = {
  20272. useCreateElement: true,
  20273. useFiber: false
  20274. };
  20275. module.exports = ReactDOMFeatureFlags;
  20276. /***/ }),
  20277. /* 182 */
  20278. /***/ (function(module, exports, __webpack_require__) {
  20279. "use strict";
  20280. /**
  20281. * Copyright 2013-present, Facebook, Inc.
  20282. * All rights reserved.
  20283. *
  20284. * This source code is licensed under the BSD-style license found in the
  20285. * LICENSE file in the root directory of this source tree. An additional grant
  20286. * of patent rights can be found in the PATENTS file in the same directory.
  20287. *
  20288. */
  20289. var adler32 = __webpack_require__(183);
  20290. var TAG_END = /\/?>/;
  20291. var COMMENT_START = /^<\!\-\-/;
  20292. var ReactMarkupChecksum = {
  20293. CHECKSUM_ATTR_NAME: 'data-react-checksum',
  20294. /**
  20295. * @param {string} markup Markup string
  20296. * @return {string} Markup string with checksum attribute attached
  20297. */
  20298. addChecksumToMarkup: function (markup) {
  20299. var checksum = adler32(markup);
  20300. // Add checksum (handle both parent tags, comments and self-closing tags)
  20301. if (COMMENT_START.test(markup)) {
  20302. return markup;
  20303. } else {
  20304. return markup.replace(TAG_END, ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&');
  20305. }
  20306. },
  20307. /**
  20308. * @param {string} markup to use
  20309. * @param {DOMElement} element root React element
  20310. * @returns {boolean} whether or not the markup is the same
  20311. */
  20312. canReuseMarkup: function (markup, element) {
  20313. var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
  20314. existingChecksum = existingChecksum && parseInt(existingChecksum, 10);
  20315. var markupChecksum = adler32(markup);
  20316. return markupChecksum === existingChecksum;
  20317. }
  20318. };
  20319. module.exports = ReactMarkupChecksum;
  20320. /***/ }),
  20321. /* 183 */
  20322. /***/ (function(module, exports, __webpack_require__) {
  20323. "use strict";
  20324. /**
  20325. * Copyright 2013-present, Facebook, Inc.
  20326. * All rights reserved.
  20327. *
  20328. * This source code is licensed under the BSD-style license found in the
  20329. * LICENSE file in the root directory of this source tree. An additional grant
  20330. * of patent rights can be found in the PATENTS file in the same directory.
  20331. *
  20332. *
  20333. */
  20334. var MOD = 65521;
  20335. // adler32 is not cryptographically strong, and is only used to sanity check that
  20336. // markup generated on the server matches the markup generated on the client.
  20337. // This implementation (a modified version of the SheetJS version) has been optimized
  20338. // for our use case, at the expense of conforming to the adler32 specification
  20339. // for non-ascii inputs.
  20340. function adler32(data) {
  20341. var a = 1;
  20342. var b = 0;
  20343. var i = 0;
  20344. var l = data.length;
  20345. var m = l & ~0x3;
  20346. while (i < m) {
  20347. var n = Math.min(i + 4096, m);
  20348. for (; i < n; i += 4) {
  20349. b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3));
  20350. }
  20351. a %= MOD;
  20352. b %= MOD;
  20353. }
  20354. for (; i < l; i++) {
  20355. b += a += data.charCodeAt(i);
  20356. }
  20357. a %= MOD;
  20358. b %= MOD;
  20359. return a | b << 16;
  20360. }
  20361. module.exports = adler32;
  20362. /***/ }),
  20363. /* 184 */
  20364. /***/ (function(module, exports, __webpack_require__) {
  20365. "use strict";
  20366. /**
  20367. * Copyright 2013-present, Facebook, Inc.
  20368. * All rights reserved.
  20369. *
  20370. * This source code is licensed under the BSD-style license found in the
  20371. * LICENSE file in the root directory of this source tree. An additional grant
  20372. * of patent rights can be found in the PATENTS file in the same directory.
  20373. *
  20374. */
  20375. module.exports = '15.5.4';
  20376. /***/ }),
  20377. /* 185 */
  20378. /***/ (function(module, exports, __webpack_require__) {
  20379. "use strict";
  20380. /* WEBPACK VAR INJECTION */(function(process) {/**
  20381. * Copyright 2013-present, Facebook, Inc.
  20382. * All rights reserved.
  20383. *
  20384. * This source code is licensed under the BSD-style license found in the
  20385. * LICENSE file in the root directory of this source tree. An additional grant
  20386. * of patent rights can be found in the PATENTS file in the same directory.
  20387. *
  20388. */
  20389. var _prodInvariant = __webpack_require__(3);
  20390. var ReactCurrentOwner = __webpack_require__(10);
  20391. var ReactDOMComponentTree = __webpack_require__(5);
  20392. var ReactInstanceMap = __webpack_require__(24);
  20393. var getHostComponentFromComposite = __webpack_require__(80);
  20394. var invariant = __webpack_require__(1);
  20395. var warning = __webpack_require__(2);
  20396. /**
  20397. * Returns the DOM node rendered by this element.
  20398. *
  20399. * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.finddomnode
  20400. *
  20401. * @param {ReactComponent|DOMElement} componentOrElement
  20402. * @return {?DOMElement} The root node of this element.
  20403. */
  20404. function findDOMNode(componentOrElement) {
  20405. if (process.env.NODE_ENV !== 'production') {
  20406. var owner = ReactCurrentOwner.current;
  20407. if (owner !== null) {
  20408. process.env.NODE_ENV !== 'production' ? warning(owner._warnedAboutRefsInRender, '%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.', owner.getName() || 'A component') : void 0;
  20409. owner._warnedAboutRefsInRender = true;
  20410. }
  20411. }
  20412. if (componentOrElement == null) {
  20413. return null;
  20414. }
  20415. if (componentOrElement.nodeType === 1) {
  20416. return componentOrElement;
  20417. }
  20418. var inst = ReactInstanceMap.get(componentOrElement);
  20419. if (inst) {
  20420. inst = getHostComponentFromComposite(inst);
  20421. return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
  20422. }
  20423. if (typeof componentOrElement.render === 'function') {
  20424. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'findDOMNode was called on an unmounted component.') : _prodInvariant('44') : void 0;
  20425. } else {
  20426. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Element appears to be neither ReactComponent nor DOMNode (keys: %s)', Object.keys(componentOrElement)) : _prodInvariant('45', Object.keys(componentOrElement)) : void 0;
  20427. }
  20428. }
  20429. module.exports = findDOMNode;
  20430. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20431. /***/ }),
  20432. /* 186 */
  20433. /***/ (function(module, exports, __webpack_require__) {
  20434. "use strict";
  20435. /**
  20436. * Copyright 2013-present, Facebook, Inc.
  20437. * All rights reserved.
  20438. *
  20439. * This source code is licensed under the BSD-style license found in the
  20440. * LICENSE file in the root directory of this source tree. An additional grant
  20441. * of patent rights can be found in the PATENTS file in the same directory.
  20442. *
  20443. */
  20444. var ReactMount = __webpack_require__(79);
  20445. module.exports = ReactMount.renderSubtreeIntoContainer;
  20446. /***/ }),
  20447. /* 187 */
  20448. /***/ (function(module, exports, __webpack_require__) {
  20449. "use strict";
  20450. /* WEBPACK VAR INJECTION */(function(process) {/**
  20451. * Copyright 2013-present, Facebook, Inc.
  20452. * All rights reserved.
  20453. *
  20454. * This source code is licensed under the BSD-style license found in the
  20455. * LICENSE file in the root directory of this source tree. An additional grant
  20456. * of patent rights can be found in the PATENTS file in the same directory.
  20457. *
  20458. */
  20459. var DOMProperty = __webpack_require__(13);
  20460. var EventPluginRegistry = __webpack_require__(27);
  20461. var ReactComponentTreeHook = __webpack_require__(7);
  20462. var warning = __webpack_require__(2);
  20463. if (process.env.NODE_ENV !== 'production') {
  20464. var reactProps = {
  20465. children: true,
  20466. dangerouslySetInnerHTML: true,
  20467. key: true,
  20468. ref: true,
  20469. autoFocus: true,
  20470. defaultValue: true,
  20471. valueLink: true,
  20472. defaultChecked: true,
  20473. checkedLink: true,
  20474. innerHTML: true,
  20475. suppressContentEditableWarning: true,
  20476. onFocusIn: true,
  20477. onFocusOut: true
  20478. };
  20479. var warnedProperties = {};
  20480. var validateProperty = function (tagName, name, debugID) {
  20481. if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) {
  20482. return true;
  20483. }
  20484. if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
  20485. return true;
  20486. }
  20487. if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) {
  20488. return true;
  20489. }
  20490. warnedProperties[name] = true;
  20491. var lowerCasedName = name.toLowerCase();
  20492. // data-* attributes should be lowercase; suggest the lowercase version
  20493. var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
  20494. var registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null;
  20495. if (standardName != null) {
  20496. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown DOM property %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20497. return true;
  20498. } else if (registrationName != null) {
  20499. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown event handler property %s. Did you mean `%s`?%s', name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20500. return true;
  20501. } else {
  20502. // We were unable to guess which prop the user intended.
  20503. // It is likely that the user was just blindly spreading/forwarding props
  20504. // Components should be careful to only render valid props/attributes.
  20505. // Warning will be invoked in warnUnknownProperties to allow grouping.
  20506. return false;
  20507. }
  20508. };
  20509. }
  20510. var warnUnknownProperties = function (debugID, element) {
  20511. var unknownProps = [];
  20512. for (var key in element.props) {
  20513. var isValid = validateProperty(element.type, key, debugID);
  20514. if (!isValid) {
  20515. unknownProps.push(key);
  20516. }
  20517. }
  20518. var unknownPropString = unknownProps.map(function (prop) {
  20519. return '`' + prop + '`';
  20520. }).join(', ');
  20521. if (unknownProps.length === 1) {
  20522. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown prop %s on <%s> tag. Remove this prop from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20523. } else if (unknownProps.length > 1) {
  20524. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown props %s on <%s> tag. Remove these props from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20525. }
  20526. };
  20527. function handleElement(debugID, element) {
  20528. if (element == null || typeof element.type !== 'string') {
  20529. return;
  20530. }
  20531. if (element.type.indexOf('-') >= 0 || element.props.is) {
  20532. return;
  20533. }
  20534. warnUnknownProperties(debugID, element);
  20535. }
  20536. var ReactDOMUnknownPropertyHook = {
  20537. onBeforeMountComponent: function (debugID, element) {
  20538. handleElement(debugID, element);
  20539. },
  20540. onBeforeUpdateComponent: function (debugID, element) {
  20541. handleElement(debugID, element);
  20542. }
  20543. };
  20544. module.exports = ReactDOMUnknownPropertyHook;
  20545. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20546. /***/ }),
  20547. /* 188 */
  20548. /***/ (function(module, exports, __webpack_require__) {
  20549. "use strict";
  20550. /* WEBPACK VAR INJECTION */(function(process) {/**
  20551. * Copyright 2013-present, Facebook, Inc.
  20552. * All rights reserved.
  20553. *
  20554. * This source code is licensed under the BSD-style license found in the
  20555. * LICENSE file in the root directory of this source tree. An additional grant
  20556. * of patent rights can be found in the PATENTS file in the same directory.
  20557. *
  20558. */
  20559. var ReactComponentTreeHook = __webpack_require__(7);
  20560. var warning = __webpack_require__(2);
  20561. var didWarnValueNull = false;
  20562. function handleElement(debugID, element) {
  20563. if (element == null) {
  20564. return;
  20565. }
  20566. if (element.type !== 'input' && element.type !== 'textarea' && element.type !== 'select') {
  20567. return;
  20568. }
  20569. if (element.props != null && element.props.value === null && !didWarnValueNull) {
  20570. process.env.NODE_ENV !== 'production' ? warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20571. didWarnValueNull = true;
  20572. }
  20573. }
  20574. var ReactDOMNullInputValuePropHook = {
  20575. onBeforeMountComponent: function (debugID, element) {
  20576. handleElement(debugID, element);
  20577. },
  20578. onBeforeUpdateComponent: function (debugID, element) {
  20579. handleElement(debugID, element);
  20580. }
  20581. };
  20582. module.exports = ReactDOMNullInputValuePropHook;
  20583. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20584. /***/ }),
  20585. /* 189 */
  20586. /***/ (function(module, exports, __webpack_require__) {
  20587. "use strict";
  20588. /* WEBPACK VAR INJECTION */(function(process) {/**
  20589. * Copyright 2013-present, Facebook, Inc.
  20590. * All rights reserved.
  20591. *
  20592. * This source code is licensed under the BSD-style license found in the
  20593. * LICENSE file in the root directory of this source tree. An additional grant
  20594. * of patent rights can be found in the PATENTS file in the same directory.
  20595. *
  20596. */
  20597. var DOMProperty = __webpack_require__(13);
  20598. var ReactComponentTreeHook = __webpack_require__(7);
  20599. var warning = __webpack_require__(2);
  20600. var warnedProperties = {};
  20601. var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
  20602. function validateProperty(tagName, name, debugID) {
  20603. if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
  20604. return true;
  20605. }
  20606. if (rARIA.test(name)) {
  20607. var lowerCasedName = name.toLowerCase();
  20608. var standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
  20609. // If this is an aria-* attribute, but is not listed in the known DOM
  20610. // DOM properties, then it is an invalid aria-* attribute.
  20611. if (standardName == null) {
  20612. warnedProperties[name] = true;
  20613. return false;
  20614. }
  20615. // aria-* attributes should be lowercase; suggest the lowercase version.
  20616. if (name !== standardName) {
  20617. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown ARIA attribute %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20618. warnedProperties[name] = true;
  20619. return true;
  20620. }
  20621. }
  20622. return true;
  20623. }
  20624. function warnInvalidARIAProps(debugID, element) {
  20625. var invalidProps = [];
  20626. for (var key in element.props) {
  20627. var isValid = validateProperty(element.type, key, debugID);
  20628. if (!isValid) {
  20629. invalidProps.push(key);
  20630. }
  20631. }
  20632. var unknownPropString = invalidProps.map(function (prop) {
  20633. return '`' + prop + '`';
  20634. }).join(', ');
  20635. if (invalidProps.length === 1) {
  20636. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20637. } else if (invalidProps.length > 1) {
  20638. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20639. }
  20640. }
  20641. function handleElement(debugID, element) {
  20642. if (element == null || typeof element.type !== 'string') {
  20643. return;
  20644. }
  20645. if (element.type.indexOf('-') >= 0 || element.props.is) {
  20646. return;
  20647. }
  20648. warnInvalidARIAProps(debugID, element);
  20649. }
  20650. var ReactDOMInvalidARIAHook = {
  20651. onBeforeMountComponent: function (debugID, element) {
  20652. if (process.env.NODE_ENV !== 'production') {
  20653. handleElement(debugID, element);
  20654. }
  20655. },
  20656. onBeforeUpdateComponent: function (debugID, element) {
  20657. if (process.env.NODE_ENV !== 'production') {
  20658. handleElement(debugID, element);
  20659. }
  20660. }
  20661. };
  20662. module.exports = ReactDOMInvalidARIAHook;
  20663. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20664. /***/ }),
  20665. /* 190 */
  20666. /***/ (function(module, exports, __webpack_require__) {
  20667. "use strict";
  20668. Object.defineProperty(exports, "__esModule", {
  20669. value: true
  20670. });
  20671. 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; };
  20672. 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; }; }();
  20673. var _react = __webpack_require__(25);
  20674. var _react2 = _interopRequireDefault(_react);
  20675. var _browserSymbol = __webpack_require__(81);
  20676. var _browserSymbol2 = _interopRequireDefault(_browserSymbol);
  20677. var _browserSpriteBuild = __webpack_require__(83);
  20678. var _browserSpriteBuild2 = _interopRequireDefault(_browserSpriteBuild);
  20679. var _icon = __webpack_require__(84);
  20680. var _icon2 = _interopRequireDefault(_icon);
  20681. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20682. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20683. 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; }
  20684. 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; }
  20685. var symbol = new _browserSymbol2.default({
  20686. "id": "twitter",
  20687. "use": "twitter-usage",
  20688. "viewBox": "0 0 273.4 222.2",
  20689. "content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 273.4 222.2\" id=\"twitter\">\n<path d=\"M273.4,26.3c-10.1,4.5-20.9,7.5-32.2,8.8c11.6-6.9,20.5-17.9,24.7-31C255,10.5,243,15.2,230.2,17.7\n\tC220,6.8,205.4,0,189.3,0c-31,0-56.1,25.1-56.1,56.1c0,4.4,0.5,8.7,1.5,12.8C88,66.5,46.7,44.2,19,10.3c-4.8,8.3-7.6,17.9-7.6,28.2\n\tc0,19.5,9.9,36.6,25,46.7c-9.2-0.3-17.8-2.8-25.4-7c0,0.2,0,0.5,0,0.7c0,27.2,19.3,49.8,45,55c-4.7,1.3-9.7,2-14.8,2\n\tc-3.6,0-7.1-0.4-10.6-1c7.1,22.3,27.9,38.5,52.4,39c-19.2,15-43.4,24-69.7,24c-4.5,0-9-0.3-13.4-0.8c24.8,15.9,54.3,25.2,86,25.2\n\tc103.2,0,159.6-85.5,159.6-159.6c0-2.4-0.1-4.9-0.2-7.3C256.4,47.4,265.9,37.5,273.4,26.3z\" />\n</symbol>"
  20690. });
  20691. _browserSpriteBuild2.default.add(symbol);
  20692. var TwitterSpriteSymbolComponent = function (_React$Component) {
  20693. _inherits(TwitterSpriteSymbolComponent, _React$Component);
  20694. function TwitterSpriteSymbolComponent() {
  20695. _classCallCheck(this, TwitterSpriteSymbolComponent);
  20696. return _possibleConstructorReturn(this, (TwitterSpriteSymbolComponent.__proto__ || Object.getPrototypeOf(TwitterSpriteSymbolComponent)).apply(this, arguments));
  20697. }
  20698. _createClass(TwitterSpriteSymbolComponent, [{
  20699. key: "render",
  20700. value: function render() {
  20701. return _react2.default.createElement(_icon2.default, _extends({ glyph: "twitter" }, this.props));
  20702. }
  20703. }]);
  20704. return TwitterSpriteSymbolComponent;
  20705. }(_react2.default.Component);
  20706. exports.default = TwitterSpriteSymbolComponent;
  20707. /***/ }),
  20708. /* 191 */
  20709. /***/ (function(module, exports, __webpack_require__) {
  20710. "use strict";
  20711. Object.defineProperty(exports, "__esModule", {
  20712. value: true
  20713. });
  20714. 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; };
  20715. 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; }; }();
  20716. var _react = __webpack_require__(25);
  20717. var _react2 = _interopRequireDefault(_react);
  20718. var _browserSymbol = __webpack_require__(81);
  20719. var _browserSymbol2 = _interopRequireDefault(_browserSymbol);
  20720. var _browserSpriteBuild = __webpack_require__(83);
  20721. var _browserSpriteBuild2 = _interopRequireDefault(_browserSpriteBuild);
  20722. var _icon = __webpack_require__(84);
  20723. var _icon2 = _interopRequireDefault(_icon);
  20724. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20725. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20726. 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; }
  20727. 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; }
  20728. var symbol = new _browserSymbol2.default({
  20729. "id": "wikipedia",
  20730. "use": "wikipedia-usage",
  20731. "viewBox": "-254 350 103 94",
  20732. "content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-254 350 103 94\" id=\"wikipedia\"><title>Wikipedia logo version 2</title><radialGradient id=\"wikipedia_a\" cx=\"-9.429\" cy=\"1569.139\" r=\"68.687\" gradientTransform=\"translate(-213.764 -1178.502)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".483\" stop-color=\"#EAEAEB\" /><stop offset=\".945\" stop-color=\"#A9ABAE\" /><stop offset=\"1\" stop-color=\"#999B9E\" /></radialGradient><path d=\"M-204.1 367c0-.6-.4-1.3-.4-1.3v-.1s-.5-.9-1.3-1.2c-.8-.3-1.5.3-1.5.3s-.1.1-.4.5c-.3.4-.5.7-1.2.9-.7.3-1.4.2-1.7 0-.4-.2-.5-.5-.5-.5s-.2-.7-.3-1c-.1-.3-.3-1.7-.3-1.7s-.5-2.7-.5-3.3c0 0 1.5-.1 3.7-.8 2.3-.7 3-1.2 3-1.2s-.4-.2-.5-.7c-.1-.5-.1-1.2-.1-1.2s-.1-.5.5-1.1c.6-.6 1.4-.9 1.8-1 .4-.1 1.3-.2 2.1-.1.8 0 1.3.1 1.6.3.3.2.4.6.4.6v1.1s0 .4.3.5c0 0 .5.3 2.2.1 0 0 .7-.1 1.8-.5 1.1-.3 4.1-1.2 4.6-1.3.4-.1 1-.3 1.6-.5.7-.2 2-.6 2.3-.7.3-.1 1.8-.6 2.9-.8 1.1-.2 2.2-.2 2.8.1 0 0 .4.3.5.7.2.4.5.9.9 1.1.5.2.8.4 1.9.3 0 0 0-.1-.4-.4-.4-.3-1-.7-1-.7s-.3-.2-.4-.4c-.1-.2 0-.3 0-.3l.9-1.4s0-.2.5-.2c.5-.1 1.1-.1 1.7-.3.7-.2.8-.3.8-.3l.6.2s3.5 2.9 4.7 3.6l.2-.2s.4 0 .8.2 1 .6 1 .6 1.6 1.3 2.1 2.2l.2.7-.1.2s.9 1.3 2.1 2.6c0 0 1.2 1.7 1.7 2.1l-.2-.8.3-.2.2-.1.6.3c3.6 4.8 6.4 10.4 8.1 16.3l-.1.5.4.5c1.1 4.2 1.7 8.6 1.7 13.2 0 1.1 0 2.2-.1 3.3l-.3.5.2.6c-2.2 26.1-24.1 46.6-50.8 46.6-18.5 0-34.7-9.9-43.6-24.6l-.1-.4-.2-.2c-3.4-5.7-5.7-12.2-6.6-19.1l.2-.5-.3-.5c-.2-1.9-.3-3.8-.3-5.8 0-3 .3-5.9.7-8.8l.3-.6-.1-.3c1.2-6.1 3.4-11.7 6.5-16.8l.7-.4h.1s.2-.2.4-.2h.1s1.2-2 1.6-2.6c0 0 .5-.3.7-.4 0 0 .1 0 .2.1 0 0 .5-.4 1.7-2.1 0 0-.1-.1-.1-.2s.1-.6.2-.7c.1-.1.1-.2.1-.2s1.7-2 3.2-3.2c0 0 .3-.2.7-.3 0 0 1.5-.6 3.3-2.2 0 0 .1-.3.5-.9.4-.6 1.5-1.2 2.2-1.3.8-.2.9 0 .9 0l.1.1.5.8s.6-.3 1.4-.6c.8-.3 1-.3 1-.3l.8 1.3-1 2s-.6 1.4-1.7 2.2c0 0-.5.3-1.1.1-.6-.2-1.1.3-1.1.3l-.2.1s.1 0 .3-.1c0 0 .2.1.3.2.1.2.9 1.2.9 1.2s0 .8-.4 1.9c-.4 1.1-1.5 2.9-1.5 2.9s-.7 1.4-1.1 2.3-.5 1.8-.5 2.3c0 0 .2.1.7-.2.7-.3 1.1 0 1.1 0s.7.5 1 .9c.3.3.8 1.8.2 3.2 0 0-.4 1-1.4 1.7 0 0-.2.3-1.5.2-.4 0-.6-.3-1.4-.2-.8.1-1.2.8-1.2.8-.7 1-1.2 2.5-1.2 2.5l-.1.2s-.2.5-.3 1.8c-.1 1.3.3 3.1.3 3.1s7.9-1.4 9.9-.1l.6.5v.4c-.1.2-.4.7-1 1.1-.6.4-1.2 1.6-.3 2.3 1 .8 1.7.8 3.4.5 1.7-.3 2.9-1.3 2.9-1.3s1-.7.8-1.6c-.2-.9-1-1.2-1-1.2s-.7-.4-.1-1.2c0 0 .1-.7 2.6-1.3 2.4-.6 6.8-1.5 10.6-2 0 0-2.5-8.2-.7-9.3 0 0 .4-.3 1.2-.4h1.5c.5 0 1 .1 1.7-.4.3-.7.4-1 .4-.9\" fill=\"url(#wikipedia_a)\" /><radialGradient id=\"wikipedia_b\" cx=\"-56.358\" cy=\"1513.861\" r=\"0\" gradientTransform=\"translate(-213.764 -1178.502)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".483\" stop-color=\"#EAEAEB\" /><stop offset=\".945\" stop-color=\"#A9ABAE\" /><stop offset=\"1\" stop-color=\"#999B9E\" /></radialGradient><linearGradient id=\"wikipedia_c\" gradientUnits=\"userSpaceOnUse\" x1=\"202.276\" y1=\"-64.159\" x2=\"248.778\" y2=\"-136.911\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#8A8A8A\" /><stop offset=\".569\" stop-color=\"#606060\" /><stop offset=\".591\" stop-color=\"#FFF\" /><stop offset=\".612\" stop-color=\"#585858\" /><stop offset=\"1\" stop-color=\"#303030\" /></linearGradient><path d=\"M-171.6 429.3l.5.2c0 .1-.1.1-.1.2-.9 1.6-.9 1.9-1.4 2.3-.4.3-.6.5-1.4.7-.9.2-1.8 1.2-1.8 1.2s-.9.8-.5.9c.4 0 1.2-.6 1.2-.6s.5-.4.6-.3c.1.1-.5.8-.5.8s-1.2 1.2-2.5 2l-.4.2s1.9-1.4 2.8-2.4c0 0 .2-.3-.2.1-.4.3-1.3.8-1.7.8-.4 0 0-.6 0-.6s.6-.8 1.8-1.8c1.2-1 2.2-.9 2.2-.9s.2 0 .3-.3c0-.3.3-.9.3-.9s.5-1 1.7-2.7c1.2-1.7 1.8-2.2 1.8-2.2s1.6-1.6 2.4-3.3c0 0 .6-1-.4-.3-1 .8-2.2 1.7-3.4 2-1.2.3-1.3-.8-1.3-.8s-.3-1.9 1-3.3c1.2-1.3 2.5-1.3 3.7-1.4 1.2-.1 2.2-1.6 2.2-1.6s.8-.9 1.3-3.8c.2-1.3.1-2.2-.1-2.8v-.6h-.4c-.1-.1-.1-.2-.1-.2s-.3-.3-.6-.5-.7-.6-1.1-1.5c0 0-1-2.1-.8-5.2.2-3 2.8-2.8 2.8-2.8s1.5.1 1.8-.3c.3-.4.6-1 .6-2.2.1-1.2-.4-2.4-.4-2.4s-.2-.6-1-.7c-.9-.1-1.1.2-1.1.2s-.3.1-.7 1.1c-.5 1-.8 1.5-1.6 1.7-.8.2-2 .1-2.5-1s-1.8-3.7-2.4-5.8l.1-.7-.3-.5c-.1-.4-.1-.8-.1-1.2 0-1-.3-2.1-.6-3.2s-1.5-3-1.7-3.4c-.3-.7-.6-.9-1-.9-.4.1-.3.1-.5.1s-.3.2-.3.4-.4 1.3-1.1 1.8c-.8.5-1.1.7-2.4.9 0 0-1.5.1-2.7-2.1-1.2-2.2-.9-3.6-.8-4.1.1-.5.5-1.2 1.2-1.4.7-.1 1.1-.2 1.1-.2s1.1 0 1.6-.1c.6-.1.3-1 .3-1s-.4-2.4-2.3-4.3l-.1-.5-.8-.4c-1.9-2-4.4-5.4-4.4-5.4s-1.1-1-.2-2.5c0 0 .4-1 1.7-.8.4.1.5.1.8.2.5.1 1 .2 1.5-.4 0 0 .4-.8-.3-1.8s-.9-1.7-1.8-1.7c0 0-.4-.1-.8.4-.4.4-1.4.7-2 .8-.7.1-2.3-.5-3.2-2.1-.5-.9-.8-1.4-.9-1.6l.2-.3.7.1c.2.4.5 1.1 1 1.8.6 1 1 1.1 1.4 1.3.3.1 1-.1 1.4-.3.4-.2.8-.7 1.4-.7.7 0 1.6.1 2.3.8.7.7 1.5 2.2 1.5 2.9-.1.7-.1 1.4-1 1.7-.9.3-1.3 0-1.9-.1-.6-.1-.9-.1-1.1.2-.2.3-.5.9-.4 1.2.1.3.2.5.8 1.3.6.8 3.5 4.3 4 4.8l-.2.7 1 .2c.6.7 1.4 1.7 1.7 2.3.5.9.8 2.3.8 3 0 .7-.3 1-.3 1s-.3.5-2 .5c-1.5 0-1.6.3-1.6.3s-.5.5-.4 1.6c.1 1.1.6 2.3 1.6 3.4.8.9 2.3 0 2.7-.3.5-.3.8-1.3.8-1.3s.1-1.2 1.4-1.2c1.4 0 2 1.3 2 1.3s1 1.3 1.9 4.1c.5 1.4.6 2.3.6 2.3l.1 1.7-.5.9.7.3c.1.5.3 1.2.7 2 0 0 1 2.4 1.4 3.3.4.9.9.8 1.3.8 0 0 .9.1 1.2-.3.3-.4.6-1.1.6-1.1s.7-1.8 2.1-1.7c1.5.2 1.8 1.1 2.1 2.2.3 1.1.3 3.2-.5 4.5-.8 1.3-1.7 1.1-1.7 1.1s-1.8-.2-2.2.2c-.4.4-.6.7-.7 1.6-.1.9 0 2.3.8 4.1.6 1.5 1.1 1.4 1.4 1.7.3.4 1.2 1.2 1.1 3.3-.1 2.1-.8 4.1-1.6 5.4-.8 1.3-2 2.1-2 2.1s-.3.2-1.1.3c-.7.1-1.8.1-2.5.5-.8.4-1 1.5-1.1 2-.1.5-.1 1.5.9 1.4 1-.1 2.6-1.4 2.6-1.4s1.5-1.1 1.7-.8c.2.4-.6 1.8-.6 1.8s-1 1.6-1.9 2.5c-.7.8-1.6 1.9-2.4 3.1l-.8.4z\" opacity=\".69\" fill=\"url(#wikipedia_c)\" /><linearGradient id=\"wikipedia_d\" gradientUnits=\"userSpaceOnUse\" x1=\"171.286\" y1=\"-56.951\" x2=\"191.786\" y2=\"-152.661\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#A8A9AB\" /><stop offset=\"1\" stop-color=\"#636668\" /></linearGradient><path d=\"M-230.6 372.7s0 .1 0 0c0 .1 0 0 0 0z\" fill=\"url(#wikipedia_d)\" /><linearGradient id=\"wikipedia_e\" gradientUnits=\"userSpaceOnUse\" x1=\"167.068\" y1=\"-58.37\" x2=\"187.068\" y2=\"-151.743\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#A8A9AB\" /><stop offset=\"1\" stop-color=\"#636668\" /></linearGradient><path d=\"M-215.8 439.7h.2c-.2-.1-.4-.3-.6-.4-.7-.4-3.7-2.4-4.7-3-.9-.6-2.6-1.7-3.3-1.5-.6.2-.5.4-.8.6-.3.2-.7.1-1.5-.4-.8-.4-1.4-.7-3-2.2-1.2-1.2 1.6-.1 1.6-.1s.6.3.3-.4c-.3-.6-1.7-2.3-3-3.7-1.1-1.1-1.7-1.9-2.4-3l-.6-.7v-.2s0-.1-.1-.1c0 0-1.9-3.4-1.7-4.6 0 0 .1-.8 1.2-1.2.8-.3.7.5 3.1 1 0 0 2.1.6 2.6-.9s-.6-3.4-.6-3.4-1.4-2.7-3.2-2.8c-.9-.1-.7.6-2.1.9 0 0-1.9.2-2.5-1-.7-1.4-1-3-1-4s.1-1.1.1-1.4c0-.2.2-.6.3-1.1l-.1-.7.2-.5v-.8c-.1-1.7-.2-4.2-.4-5.7s-.6-3.8-2-3.9c0 0-.7-.1-1.6.9-.9.9-1.7-.7-1.7-1.7-.1-1.1.1-2.3.4-2.8.3-.5 1-.6 1.2-.6.1 0 .6.2 1 .5.5.3 1.2.3 1.6-.1.4-.4.9-.9 1.2-2.6.2-1.7.2-3.5 0-5.7l-.2-.5 1.3-.3v-.2-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1c.1-1.2.3-1.8.3-1.8l.1-.2s.5-1.5 1.2-2.5c0 0 .4-.7 1.2-.8.8-.1 1 .2 1.4.2H-231.5c.3-.2.6-.5.8-.8 0-.1.1-.1.1-.2v-.1c.1-.1.1-.2.1-.2.6-1.5.1-2.9-.2-3.2-.3-.4-1-.9-1-.9s-.4-.4-1.1 0c-.5.3-.7.2-.7.2 0-.5.1-1.4.5-2.3.3-.8 1.1-2.3 1.1-2.3s1-1.8 1.5-2.9c.4-1.1.4-1.9.4-1.9s-.8-1-.9-1.2c-.1-.2-.3-.2-.3-.2-.2.1-.3.1-.3.1l.2-.1s.4-.5 1.1-.3c.6.2 1.1-.1 1.1-.1 1-.8 1.7-2.2 1.7-2.2l1-2-.8-1.3s-.1 0-1 .3c0 0-.8 1.9-1.7 3.1 0 0-.4.6-.7.4-.3-.1-.6-.1-.9-.1-.3.1-1.2.3-1.9 1.4-.8 1.1-.9 1.9-.5 2.1s1-.1 1.4-.4c.4-.3.6-.5.8-.5.1 0 .1.3.1.4 0 .1-.2 1.4-1.6 3.9-.4.6-.8 1.6-1.1 2l.6.4-1 .5c-.3.8-.6 1.9-.5 2.6.2 1 1.2 1 1.2 1s.6 0 1.3-.3c.7-.4.9 1.2.9 1.5 0 .3 0 1.7-1 2.4 0 0-.4.3-1 .3s-1-.2-1-.2-1-.3-1.6.1c-.6.4-1.3 1.1-1.9 2.2-.6 1.1-1 3-1 4.4 0 1.1.2 2.2.3 2.9l.7.4-.5.6c.1 1.1.2 3.4.2 4.1 0 .9-.2 2.8-1.1 3.3 0 0-.3.2-.9-.2-.5-.4-1.1-.4-1.4-.4-.2 0-1.3.2-1.7 1.3-.4 1.1-.4 2.7-.3 3.6.1.9.9 2.5 1.9 2.5 0 0 .5 0 1.1-.6.6-.6.9-.6 1.2-.6.3 0 .7.3 1.1 2.9.3 2.4.4 4.4.4 6.7l.6.4-.8.8c0 .2-.1.4-.1.6-.2.7-.2 1.4 0 2.6.2 1.2.8 3.7 1.8 4.4 1.3.9 2.1.9 2.9.8.8-.1 1.4-.7 1.4-.7s.3-.3.7-.2c.4.1 1.3.7 2.1 2.1.7 1.4.9 3-.3 3.3-1.2.3-3.2-.8-3.2-.8s-1.2-.6-2.1.1c-1 .7-1 1.8-.5 3.1.3.7.8 1.9 1.5 3.2l.7.3-.2.6c.5.7 1.1 1.5 1.7 2.1 0 0 2.5 2.7 3.8 4.5 0 0 .1.2-.2 0-.2-.1-1.3-.6-1.8-.6-.6.1-.4.4-.4.4s.2 1.3 4 3.4c0 0 1.4.8 2.2.8 0 0 .3 0 .6-.3.3-.4.4-.3.7-.3.2.1.6.2 1.7 1.1 1.2.9 3.5 2.2 4.3 2.7.8.6.8.7.6 1.1-.2.4.6.6.6.6s1.9.9 2.9.8c1 0 1.5-.1 2.1 0 .6.1 1.3.3 1.3.3.1.1-.3 0-.3 0s-2.4-.3-2.5-.2c-.1.1 0 .2 1 .4 1.2.2 2.5.4 3.8.5-.5-.1-2.5-.3-3.8-.7 0 0-.1-.1.2 0 .3.1 2 .2 2.5.2.4-.1-.1-.3-.1-.3s-.9-.4-2.9-.6c0 0-.8-.1-1.5 0s-1.4-.3-1.4-.3-1-.3-.8-.6c.1-.2.1-.3.1-.5l-.4-1z\" opacity=\".45\" fill=\"url(#wikipedia_e)\" /><linearGradient id=\"wikipedia_f\" gradientUnits=\"userSpaceOnUse\" x1=\"190.76\" y1=\"-104.815\" x2=\"219.842\" y2=\"-104.815\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#231F20\" /><stop offset=\"1\" stop-color=\"#474747\" /></linearGradient><path d=\"M-191.7 436.2l-.4.6c.1.7-.1.9-.3 1.1-.2.3-.6.6-.4 1.2.2.6 1.7.4 2.5.1.9-.3 1.6-.5 2.1-.7.6-.2.7.1.7.1s.2.2-.6.6c-.8.4-2.3.6-3.1.7-.7.1-.5 0-1.6.3-1.1.4-.1.7-.1.7 2.4.6 4.2.1 4.2.1l.3-.1c.3-.1.5-.2.8-.2-2 .5-3.3.1-3.7.1-.4-.1-.8-.1-.9-.4-.1-.2.5-.2.5-.2s1.7-.2 3.2-.7c1.6-.5 1.9-1 1.9-1.3-.1-.4-.8-.3-1.8 0-.9.3-2.3.8-2.7.8-.3.1-.7.1-.8-.1-.1-.2-.2-.5.1-.9.4-.4.4-.7.4-.7.1-.3.1-.5 0-.8l-.3-.3.5-.1c-.3-1.1-1.1-2.2-1.3-2.6-.3-.5-.8-.8-2.4-.5-1.6.3-3.4 1-3.4 1s-1.9 1-3.3.8c-1.4-.2-1.7-1.6-1.7-2.1 0-.4.3-.8 1-1.1.7-.3 2.5-.7 5-.8 2.5-.1 3.5-1.8 3.5-1.8.3-.5.9-1.5-.5-2.3-1.4-.8-1.4-.6-2.1-1.1-.7-.5-1.4-1.2-1.7-2 0-.1-.1-.2-.1-.3l-.8-.6.4-.4c-.3-.7-.7-1.3-.7-1.3s-1.3-1.9-.2-3.7c1-1.8 2.7-2.3 2.7-2.3s1.5-.3 3 0c1.4.3 2.1-.2 2.1-.2s.9-.4 1.1-2.1c.3-1.7 0-4.9-2.3-5.6-2.3-.6-3.5.6-3.5.6s-1.2 1.4-1.6 1.6c-.4.2-1 .6-1 .6s-.9.5-1.5.6c-.4.1-1.8-1.8-1.9-3.2-.1-1.3-.4-2.4-.3-5.1l-.5-.6.5-.5c.1-3-.4-5.1-1.2-6.5-.8-1.4-2.1-2.2-2.8-2.5-.6-.3-2.1-.5-3.2-.1-1 .4-1.2.7-1.6 1.3-.4.6-.8.6-.8.6s-1.4 0-1.9-2.1c-.6-3 .4-4 .4-4s.3-.5 1.4-.6c1.1-.1 1.7.1 2.5.3.8.2 1.4.1 2.4-.4s1.4-1.3 1.2-2.7c-.2-1.4-.3-1.7-1.5-6l-.9-.5.6-.6c-1.2-4.3-1.3-7-1.3-7-.1-1 0-1.3.6-1.5.6-.3 1.1-.2 1.9-.1.8.1 1.4-.1 1.8-.3s1.6-.9 1.5-2.2c-.1-1.3-1.1-2.8-2-3.4-.8-.5-2-.3-2.6.1-.6.4-.8 1-1.2 1.2-.4.2-.9.6-1.5.5-.6-.1-.6-1.4-.8-2.8-.2-.9-.3-1.6-.3-2l-.7-.3c0 .6.5 3.3.5 3.3s.2 1.4.3 1.7c.1.3.3 1 .3 1s.1.4.5.5c.4.2 1.1.2 1.7 0 .7-.3.9-.6 1.2-.9.3-.4.4-.5.4-.5s.7-.6 1.5-.3 1.3 1.2 1.3 1.2v.1s.4.7.4 1.3v-.1s0 .3-.7.8-1.2.5-1.7.4c-.5 0-.7-.1-.8 0h-.7c-.8.1-1.2.4-1.2.4-1.8 1.1.7 9.3.7 9.3l-.3.6s.5 2.1.9 3.4c.4 1.3.6 2.6.6 2.9.1.3 0 .8-.3 1.1-.4.3-1.2.5-1.4.6-.2 0-.5 0-1-.2s-.9-.2-.9-.2-1.1-.2-2.3.2c-1.2.4-2.1 1.6-2.1 3.1-.1 1.5-.1 2.3.5 3.6.6 1.3 1.7 2.1 2.5 2.1s1.5-.4 1.9-1.1c.5-.6.6-.8.6-.8.5-.3 1.9-.4 2.7-.2.7.3 2 1.1 2.7 2.7.6 1.3.8 2.8.7 5.4l.6.4-.6.7v.8c-.1 3.9.7 5.9.7 5.9.5 1.1 1 1.8 1.7 2.3.7.5 1.7.2 2 0 .3-.2 1.2-.6 1.9-1 .7-.5.7-.7 1.6-1.5.9-.8 2.1-.6 2.1-.6s1.1 0 1.7 1.3c.6 1.3.5 3.1.3 3.8-.2.7-.4 1.1-1.1 1-.6-.1-1.6-.2-2-.2-.4 0-1.4 0-2.4.2-.9.2-2.2.9-3.4 2.9-.9 1.5-.5 3-.3 3.6.2.5.6 1.1 1 1.9l.8.3-.3.7c.4 1 .7 1.5 1.3 2.2.6.7 1.7 1.3 2.9 1.7 1.2.5.7 1.3.7 1.3-.7 1.5-2.8 1.6-3.4 1.6-.6.1-1.9.2-3.1.4-1.2.3-2.3.4-3 1.2-.7.8-.4 1.6 0 2.4.4.8 1.4 1.3 2.9 1.2 1.4-.1 2.3-.5 3.2-.9.9-.4 2.4-.8 2.8-.9.4-.1 1.1-.4 1.5.3.5.7 1 1.7 1.2 2.4l1.2-.1z\" opacity=\".35\" fill=\"url(#wikipedia_f)\" /><path d=\"M-152.4 401.2s.3-3.2.5-4.4v-.5l-.1-.2c-.5 5.8-.9 7.7-.9 7.7v-.1c.2-.9.3-1.7.5-2.5zM-162.7 362.6l.3.4.3.5c1 1.6 2.8 4.3 2.8 4.3s.7 1 .9 1c.2 0-.1-.7-.1-.7s-.3-1 .5.3c.7 1.2 1.2 2.4 1.3 2.7.1.4 0 .4 0 .4s-.1.1-.1.3c0 .5.5 1.7.5 1.7s1.5 3.9 2.1 5.6c.5 1.6 1.1 4.4 1.1 4.4s.2.8.2 1.2c0 .4-.1.4-.2.2-.2-.2-.3-.1-.3-.1s-.2.1-.2.8c0 .7.1 2.3.2 3.6.2 1.5.6 2.1.6 2.1s.4.6.5-.6c.1-1 .2-.2.2-.2.2 1.6.1 4.5 0 5v.6l.1-.2c.2-3 .1-5.4.1-5.4s-.1-1.3-.3-1.3c-.2 0-.2.7-.2.7s-.1.5-.2.5-.4 0-.6-1.4c-.2-1.4-.2-2.9-.2-2.9v-.2c.1 0 .2.1.2.1s.1.2.3 0c.2-.2.2-.6-.3-3.1-.3-1.5-.7-2.9-1-3.8l-.3-.3-.1-.7s-.3-.9-1-2.7c-.7-1.8-.8-2.5-.8-2.5s0-.2.1-.2.1-.2.1-.2 0-.2-.3-1c-.3-.7-.4-1.3-1.4-2.9-.9-1.5-1.1-1.6-1.1-1.6s-.4-.2-.1.6c.3.8-.1.2-.1.2-.9-1.2-2.8-4.3-2.8-4.3l-.5-.4-.5-1.3M-252.5 382.7l-.2.4c-.5 2.5-.6 5.1-.6 5.3 0 .2 0 .2-.1.2v-.2c-.1 0-.1.2-.1.2 0 .3 0 .6-.1.9.1-.1.1 0 .1 0s0 .1.1.1c.1-.1.2-1.4.2-1.4s0-2.8.8-6.1 1.3-4.3 1.3-4.3.2-.4.1-.1c0 .3.2.4.2.4.4-.1.8-1.1 1.3-2.5.4-1.4.7-2.6.7-2.7 0-.1-.1-.2-.2-.1s-.1 0-.1 0c0-.2.4-1.1.4-1.1 1.3-3.2 3.1-5.7 3.1-5.7l.1-.5c-.2.3-.3.4-.4.7-.1.1 0 .3 0 .3-.2.2-.4.3-.5.5-2.7 4.5-3.1 6.6-3.1 6.6 0 .2 0 .3.1.3s.3-.3.1.4c-.1.5-.5 1.7-.7 2.2-.2.5-.4.9-.5.8-.1 0-.1-.2-.1-.2s0-.5-.4.2c-.4.8-.7 1.9-1.4 4.7 0 .1-.1.3-.1.4v.3zM-249.2 412.6c-.2-.4-.3-.7-.2-.6.1.1.2.4.5.7.3.3.4-.2-.6-3.1-1.1-2.9-1.4-3-1.4-3.1 0-.1-.2-.2-.2.2s0 .7-.5-1.1-1-4.8-1-5.1c0-.2-.2-1.8-.4-3.6s-.2-3.7-.2-4.3c0-.5-.1-.8-.1-.8-.1 0-.1 0-.1.3 0 .2 0 .4-.1.4s-.1-.5-.1-.5v1.1c0 .6.1.4.1.2v-.3s.1-.9.1 0 .2 4.6.2 4.6c0 .2 0 .5.1.7l.1.1v.1c.3 2.4.8 5.1.8 5.1.5 2.4 1.1 3.8 1.3 4.3.2.4.2.1.2-.3-.1-.4.5.7.9 1.7.3 1 .6 1.8.6 1.8s.3.8.1.8c-.1 0-.3-.3-.3-.3s-.5-.8-.3-.2c.4 1.2 1.6 3.8 1.6 3.8l1.4 2.5c-1-1.9-2.3-4.7-2.5-5.1zM-246.7 417.6c.1.1.1.2.2.4l-.2-.4zM-233.3 352.9c-.2.3-.2.5-.2.5l.2-.2v-.3zM-236.8 355.6c-.4 0-.7.3-.7.3s.4-.1.7-.3zM-170 354.9h.3c.1 0 .1-.2.1-.2s-.3-.4-.3-.6c-.3-.1-.6-.1-.6-.1v.3c-.1.1.4.5.5.6zM-166.5 357.9l.1-.2-.2-.7c0 .1 0 .1-.2.1 0 0-.1 0 0 .2 0 .2.2.4.3.6z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-152.4 401.2s.3-3.2.5-4.4v-.5l-.1-.2c-.5 5.8-.9 7.7-.9 7.7v-.1c.2-.9.3-1.7.5-2.5z\" opacity=\".1\" fill=\"#232323\" /><linearGradient id=\"wikipedia_g\" gradientUnits=\"userSpaceOnUse\" x1=\"12.492\" y1=\"1537.278\" x2=\"41.964\" y2=\"1627.035\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".009\" stop-color=\"#FCFCFC\" /><stop offset=\".066\" stop-color=\"#EEE\" /><stop offset=\".134\" stop-color=\"#E5E5E5\" /><stop offset=\".252\" stop-color=\"#E3E3E3\" /><stop offset=\".336\" stop-color=\"#8A8A8A\" /><stop offset=\".442\" stop-color=\"#B8B8B8\" /><stop offset=\"1\" stop-color=\"#3B3B3B\" /></linearGradient><path d=\"M-175 434.5s.7-.7.5-.8c-.1-.1-.6.3-.6.3s-.1.1-.2.1l.4-.3s0 .2-.4.6c0 0-.1.1-.3.2-1 .9-2.4 2-2.4 2l.4-.2c1.4-.7 2.6-1.9 2.6-1.9z\" opacity=\".5\" fill=\"url(#wikipedia_g)\" /><linearGradient id=\"wikipedia_h\" gradientUnits=\"userSpaceOnUse\" x1=\"206.463\" y1=\"-66.556\" x2=\"255.589\" y2=\"-127.306\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EFF0F0\" /><stop offset=\".591\" stop-color=\"#F0F1F2\" /><stop offset=\".599\" stop-color=\"#787878\" /><stop offset=\".646\" stop-color=\"#EEEFF0\" /><stop offset=\"1\" stop-color=\"#D8D9DB\" /></linearGradient><path d=\"M-171 389.7l.5-.9-.1-1.7s-.1-.9-.6-2.3c-1-2.8-1.9-4.1-1.9-4.1s-.6-1.3-2-1.3c-1.3 0-1.4 1.2-1.4 1.2s-.3 1-.8 1.3c-.5.3-2 1.1-2.7.3-.9-1-1.5-2.2-1.6-3.4-.1-1.1.4-1.6.4-1.6s.1-.3 1.6-.3c1.7 0 2-.5 2-.5s.3-.3.3-1-.3-2.1-.8-3c-.3-.6-1.1-1.5-1.7-2.3l-1-.2.1-.7c-.6-.5-3.5-4-4-4.8-.6-.8-.7-1-.8-1.3-.1-.3.2-.9.4-1.2.2-.3.5-.3 1.1-.2.6.1 1 .4 1.9.1.9-.3 1-1 1-1.7.1-.7-.8-2.2-1.5-2.9-.7-.7-1.6-.8-2.3-.8-.7 0-1 .5-1.4.7-.4.2-1.1.4-1.4.3-.3-.1-.8-.3-1.4-1.3-.4-.8-.8-1.5-1-1.8l-.7-.1s.6 1.7 1.6 2.8c1 1.2 2.3.9 2.3.9s.8-.1 1.5-.8c.7-.7 1.8-.1 2 0 .3.2.9.9 1.5 2.1.6 1.2-.4 2.1-.4 2.1s-.6.5-1.7.1-1.8.3-2 .6c-.2.4-.5 1 .1 1.7s3.2 4.3 4.9 5.9c1.7 1.7 2.3 3 2.7 4.3.4 1.3.1 1.9-.5 2-.6.1-1.1 0-2.1.2-.9.2-1.3.4-1.5 1.7-.2 1.3.6 3.4 1.7 4.4 1.1 1 2.3.4 2.8.2.4-.2 1.4-.7 1.7-2 .2-.8.9-.7.9-.7s.6-.1.9.1c.3.2.6.5 1.4 1.9.8 1.3 1.5 3.1 1.7 4.7.2 2 0 2.2.3 3.3.3 1.1 1.1 3.2 1.5 4.1.4.8.8 1.7 1 2.1.2.4.5.8 1.4.8.9 0 1.3-.2 1.5-.7.3-.4.6-1.1.7-1.3.1-.2.5-.9 1.1-1 .7-.1 1.8 0 2.1 1.2.3 1.1.8 2.6-.2 4.5-.6 1.3-1.1.9-2.5.9 0 0-1.2 0-1.8.9-.6.9-.4 2.6-.3 3.9.1 1.3 1 3.1 1.6 3.6.6.4.9.8 1.1 1.3.2.4.5 1.2.2 3.3-.3 2.1-1 3.7-1.9 4.5 0 0-.1 0-.1.1l-.2.2c-.5.5-.4.5-.9.8-.6.3-1 .2-2 .4s-1.6.3-2.1.8-1.2 1.4-1 3.2c.1 1 1.3.6 2.2.1-.3.1-.6.2-.8.2-1 .1-1-.9-.9-1.4.1-.5.3-1.5 1.1-2s1.8-.4 2.5-.5c.7-.1 1.1-.3 1.1-.3s1.2-.8 2-2.1 1.5-3.4 1.6-5.4c.1-2.1-.8-2.9-1.1-3.3-.3-.4-.8-.2-1.4-1.7-.7-1.7-.8-3.2-.8-4.1.1-.9.3-1.2.7-1.6.4-.4 2.2-.2 2.2-.2s.9.2 1.7-1.1c.8-1.3.7-3.5.5-4.5-.3-1.1-.6-2-2.1-2.2-1.5-.2-2.1 1.7-2.1 1.7s-.3.7-.6 1.1c-.3.4-1.2.3-1.2.3-.4 0-.8.1-1.3-.8-.4-.9-1.4-3.3-1.4-3.3-.3-.8-.6-1.5-.7-2.1l-.4-.4z\" opacity=\".73\" fill=\"url(#wikipedia_h)\" /><linearGradient id=\"wikipedia_i\" gradientUnits=\"userSpaceOnUse\" x1=\"18.871\" y1=\"1534.826\" x2=\"48.469\" y2=\"1624.965\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-171.5 429.3l.8-.5c.8-1.2 1.7-2.3 2.4-3.1.9-1 1.9-2.5 1.9-2.5s.8-1.4.6-1.8c-.1-.2-.7 0-1.7.8-3.7 2.7-4 1.2-4 1.2.4 2.4 4.7-1.6 5.1-1.4-.1.6-.5 1.2-1.3 2.3 0 0-.4.6-.8 1l-.6.6-.1.1c-.5.5-1 1.2-1.6 2l-.1.1c-.1.5-.3.8-.6 1.2-.3.4-.4.7-.5 1v.1s-.3.7-.5 1.1c-.1.4-.1.5-.6.6-.5.1-.3-.1-1 .2 0 0-.4.2-.9.6 0 0-.1 0-.1.1-.7.6-1.2 1.1-1.5 1.4-.1.1-.1.1-.1.2 0 0-.2.2.1.2.2 0 .6 0 1-.2l.1-.1c-.2.1-.4.2-.5.2-.4 0 .5-.9.5-.9s.9-1 1.8-1.2c.9-.2 1-.4 1.4-.7.4-.3.5-.7 1.4-2.3 0-.1.1-.1.1-.2l-.7-.1z\" opacity=\".53\" fill=\"url(#wikipedia_i)\" /><linearGradient id=\"wikipedia_j\" gradientUnits=\"userSpaceOnUse\" x1=\"190.694\" y1=\"-64.955\" x2=\"215.725\" y2=\"-146.069\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".747\" stop-color=\"#F9F9F9\" /><stop offset=\"1\" stop-color=\"#D5D7D8\" /></linearGradient><path d=\"M-198.9 422.7l.4-.4c-.3-.7-.7-1.3-.7-1.3s-1.3-1.9-.2-3.7c1-1.8 2.7-2.3 2.7-2.3s1.5-.3 3 0c1.4.3 2.1-.2 2.1-.2s.9-.4 1.1-2.1c.3-1.7 0-4.9-2.3-5.6-2.3-.6-3.5.6-3.5.6s-1.2 1.4-1.6 1.6c-.4.2-1 .6-1 .6s-.9.5-1.5.6c-.4.1-1.8-1.8-1.9-3.2-.1-1.3-.4-2.4-.3-5.1l-.5-.6.5-.5c.1-3-.4-5.1-1.2-6.5-.8-1.4-2.1-2.2-2.8-2.5-.6-.3-2.1-.5-3.2-.1-1 .4-1.2.7-1.6 1.3-.4.7-.8.6-.8.6s-1.4 0-1.9-2.1c-.6-3 .4-4 .4-4s.3-.5 1.4-.6c1.1-.1 1.7.1 2.5.3.8.2 1.4.1 2.4-.4s1.4-1.3 1.2-2.7c-.2-1.4-.2-1.7-1.5-6l-.9-.5.6-.6c-1.2-4.3-1.3-7-1.3-7-.1-1 0-1.3.6-1.5.6-.3 1.1-.2 1.9-.1.8.1 1.4-.1 1.8-.3.4-.2 1.6-.9 1.5-2.2-.1-1.3-1.1-2.8-2-3.3-.8-.5-2-.3-2.6.1-.6.4-.8 1-1.2 1.2-.4.2-.9.6-1.5.5-.6-.1-.6-1.4-.8-2.8-.2-.9-.3-1.6-.3-2l-.7-.3c0 .6.5 3.3.5 3.3l.3 1.6c0 .1 0 .2.1.3.1.2.4.5.9.5 1.1.1 1.8-.5 2-.7.3-.2.9-.9.9-.9s.3-.6 1.3-.5c.9.1 1.2.8 1.4 1 .2.2 1.6 2 .7 2.9 0 0-.1.1-.2.1l-.4.4c-.7.5-1.2.5-1.7.4-.5 0-.7-.1-.8 0h-.7c-.8.1-1.2.4-1.2.4-1.8 1.1.7 9.3.7 9.3s.7 2 1 3c.3.9.5 1.6.8 3.3.3 1.6-.2 2.1-.5 2.3-.3.2-1 .6-1.8.6s-1-.4-2.4-.4c-1.3-.1-2.2.3-2.7.9-.4.6-.9 1.9-.7 3.4.2 1.5.5 2.1 1.1 2.7.6.7 1.2 1 2 .7.8-.3.8-.8 1.2-1.2.5-.5.9-.8 2.1-.8 1.2 0 2 .3 2.6.8.6.5 1.9 1.6 2.3 3.4.4 1.7.4 2.3.4 3.7s-.1 3-.1 4.4c0 1.4.2 2.8.6 3.8.4 1 .9 1.8 1.4 2.2.5.4.9.4 1.4.3.5-.2 1.5-.8 2.4-1.3.9-.6.8-1 1.6-1.5.9-.6 1.8-.6 2.5-.5.7.1 1.7.6 2.1 1.9.4 1.3.4 2.7.4 2.7s0 1.2-.4 1.9c-.5.7-1.3.6-1.6.5-.4-.1-1.1-.1-1.1-.1s-1.5-.2-2.6.1c-1.1.3-2.1 1.1-2.7 1.9-.7.8-.9 1.6-1 2.2 0 .6 0 1.6.6 2.6s.7 1.4 1.4 2.8 2.1 2.2 2.2 2.2c0 0 1.4.5 1.9.9s.6.8.4 1.2c-.1.4-.4 1.1-1.6 1.6-1.2.5-2.6.5-3.5.6-.9.1-2.7.3-3.7.8s-1 1.5-1 1.5 0 1.6 1.3 2c1.4.4 2.6 0 3.2-.2.6-.2 1.5-.6 1.5-.6s1.8-.6 2.8-.8c1-.2 1.5-.3 2.2.8.7 1.2 1 1.9 1.1 2.6.1.7-.2 1.1-.5 1.4-.3.3-.2.5-.2.5-.1.9 1.2.8 1.2.8h.1c-.3 0-.5 0-.6-.2-.1-.2-.2-.5.1-.9.4-.4.4-.7.4-.7.3-1.4-1-3.4-1.4-3.9-.3-.5-.8-.8-2.4-.5-1.6.3-3.4 1-3.4 1s-1.9 1-3.3.8c-1.4-.2-1.7-1.6-1.7-2.1 0-.4.3-.8 1-1.1.7-.3 2.5-.7 5-.8 2.5-.1 3.5-1.8 3.5-1.8.3-.5.9-1.5-.5-2.3-1.4-.8-1.4-.6-2.1-1.1-.7-.5-1.4-1.2-1.7-2 0-.1-.1-.2-.1-.3l-.6-.7z\" opacity=\".96\" fill=\"url(#wikipedia_j)\" /><linearGradient id=\"wikipedia_k\" gradientUnits=\"userSpaceOnUse\" x1=\"136.042\" y1=\"-39.679\" x2=\"136.042\" y2=\"-39.679\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".747\" stop-color=\"#F9F9F9\" /><stop offset=\"1\" stop-color=\"#D5D7D8\" /></linearGradient><linearGradient id=\"wikipedia_l\" gradientUnits=\"userSpaceOnUse\" x1=\"136.042\" y1=\"-39.679\" x2=\"136.042\" y2=\"-39.679\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".747\" stop-color=\"#F9F9F9\" /><stop offset=\"1\" stop-color=\"#D5D7D8\" /></linearGradient><path d=\"M-162 363.4c1 1.6 2.8 4.3 2.8 4.3s.3.3.5.6c0-.4-.1-.6-.1-.6l-.1-.3c0-.4.4.1.6.3-.5-.8-.7-.8-.7-.8s-.4-.2-.1.6c.3.8-.1.2-.1.2-.9-1.2-2.8-4.3-2.8-4.3l-.6-.4.6.4zM-152.5 401.4v-.2-.1c.1.1.1.2 0 .3zM-153.2 385.7c.1 0 .2.1.2.1s.1.2.3 0c.1-.1.2-.4 0-1.3 0 .2-.1.4-.1.6-.1.3-.3 0-.4-.1-.1-.1-.2.1-.2.1v.2c0 .7.1 2.3.2 3.6.1.6.2 1.1.3 1.4v.1c.1.1.2.3.3.3.1-.1.3-.6.3-.6l.1-.6c.2.1.3.5.3 1v-.1s-.1-1.3-.3-1.3c-.2 0-.2.7-.2.7s-.1.5-.2.5-.4 0-.6-1.4c-.2-1.4-.2-2.9-.2-2.9s.1-.3.2-.3zM-154.3 378.6l.3.3c.5 1.5 1 3.8 1.1 4.3 0-.1-.1-.3-.1-.4-.3-1.5-.7-2.9-1-3.8l-.3-.4-.1-.7s-.3-.9-1-2.7c-.7-1.8-.8-2.5-.8-2.5s0-.2.1-.2.1-.2.1-.2 0-.2-.3-1c-.2-.5-.3-.9-.7-1.6.3.6.5 1.1.5 1.3v.1s.1.1.1.6c0 .4-.1.5-.1.5v.1c.1.5.4 1.2.4 1.2s1.1 2.7 1.7 4.5l.1.6z\" opacity=\".1\" fill=\"#232323\" /><linearGradient id=\"wikipedia_m\" gradientUnits=\"userSpaceOnUse\" x1=\"20.534\" y1=\"1538.158\" x2=\"1.209\" y2=\"1632.194\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-211 441.5c.9.2 1.7.4 1.9.4-.4-.1-1-.2-1.9-.4z\" fill=\"url(#wikipedia_m)\" /><linearGradient id=\"wikipedia_n\" gradientUnits=\"userSpaceOnUse\" x1=\"168.559\" y1=\"-72.757\" x2=\"173.288\" y2=\"-132.177\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\".22\" stop-color=\"#989A9C\" /><stop offset=\".253\" stop-color=\"#FFF\" /></linearGradient><path d=\"M-233.6 424.9v-.2l-.1-.1s-1.9-3.4-1.7-4.6c0 0 .1-.8 1.2-1.2.8-.3.7.5 3.1 1 0 0 2.1.6 2.6-.9s-.6-3.4-.6-3.4-1.4-2.7-3.2-2.8c-.9-.1-.7.6-2.1.9 0 0-1.9.2-2.5-1-.7-1.4-1-3-1-4 0-1.1 0-1 .1-1.4 0-.2.2-.5.2-1.1l-.1-.7.2-.5v-.8c-.1-1.7-.2-4.2-.4-5.7s-.6-3.8-2-3.9c0 0-.7-.1-1.6.9-.9.9-1.7-.7-1.7-1.7-.1-1.1.1-2.3.4-2.8.3-.5 1-.6 1.2-.6.1 0 .6.2 1 .5.5.3 1.2.3 1.6-.1.4-.4.9-.9 1.2-2.6.2-1.7.2-3.5 0-5.7l-.2-.5 1.3-.3v-.2-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1c.1-1.2.3-1.8.3-1.8l.1-.2s.5-1.5 1.2-2.5c0 0 .4-.7 1.2-.8.8-.1 1 .2 1.4.2H-231.6c.3-.2.6-.5.8-.8v-.1-.1c0-.1.1-.1.1-.2v-.1c.1-.1.1-.2.1-.2.6-1.5.1-2.9-.2-3.2-.3-.4-1-.9-1-.9s-.3-.2-.8-.1c.3 0 .8.1 1 .6.3.7.4 1.3.2 2.3 0 0-.3 1.4-1.4 2.2-1.1.8-1.9.1-2.9.1s-1.5.7-1.8 1.2c-.3.5-1.4 2.2-1.3 5.1.1 2.9.3 4.3.3 5.6 0 1.2.2 4-.6 5.3-.8 1.3-1.6.6-2.2.3-.6-.3-1.2-.2-1.7.1-.5.4-.8 1.1-.8 3.3 0 2.4 1.5 2.6 1.5 2.6s.3.1.9-.5c0 0 .7-.7 1.3-.6.6.1 1 .7 1.3 1.8.3 1.1.8 5.6.7 8.7 0 1.3-.6 1.3-.4 3.6 0 0 .4 3.1 1.4 4.1 1 1 2.4.8 2.7.8.3 0 .7-.3.7-.3s.3-.2.5-.4.5-.4 1-.3c.5.1 1.6.9 2.6 2.6.9 1.7.5 3.3-.3 3.5-.7.2-.8.2-2-.1-1.1-.3-1.5-.6-2-.8-.5-.2-1-.3-1.5.1s-1.3 1.1-.3 3.3c1 2.2 1.7 3.8 3.5 5.6-.5-.6-1-1.2-1.4-1.9v-.7z\" fill=\"url(#wikipedia_n)\" /><linearGradient id=\"wikipedia_o\" gradientUnits=\"userSpaceOnUse\" x1=\"-16.628\" y1=\"1530.36\" x2=\"-35.153\" y2=\"1620.502\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-231.5 357.4c-.1 0 0 0 0 0z\" fill=\"url(#wikipedia_o)\" /><linearGradient id=\"wikipedia_p\" gradientUnits=\"userSpaceOnUse\" x1=\"5.906\" y1=\"1621.338\" x2=\"5.898\" y2=\"1621.375\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-208 442.9h.4c-.1 0-.3 0-.6-.1.1 0 .2 0 .2.1z\" fill=\"url(#wikipedia_p)\" /><path d=\"M-229.9 355.5c-.6.4-.7 0-1.1 0-.4 0-1 .2-1.6 1-.6.8-.6 1.9.3 1.4 0 0 .4-.4.8-.6.1 0 .2-.1.4-.2l.1-.1s.4-.5 1.1-.3c.6.2 1.1-.1 1.1-.1 1-.8 1.7-2.2 1.7-2.2l1-2-.8-1.3s-.7 1.5-1.4 2.5c-.7 1.1-.7 1.4-1.6 1.9z\" fill=\"#9FA2A3\" /><path d=\"M-234.1 366.3s-.4 1.9 1.2 1.6h-.1c0-.5.1-1.4.5-2.3.3-.8 1.1-2.3 1.1-2.3s1-1.8 1.5-2.9c.4-1.1.4-1.9.4-1.9s-.8-1-.9-1.2c-.1-.2-.3-.2-.3-.2-.1 0-.1 0-.1.1.1 0 .2 0 .3.1.2.3-.4 2-.4 2s-.5 1.2-1.5 3c-1.2 1.9-1.7 4-1.7 4z\" fill=\"#9FA2A3\" /><linearGradient id=\"wikipedia_q\" gradientUnits=\"userSpaceOnUse\" x1=\"14.903\" y1=\"1536.638\" x2=\"-4.504\" y2=\"1631.072\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-215.8 439.7h.2c-.1-.1-.3-.2-.5-.3.2.1.5.4.3.7-.2.4 0 .5.5.9h.1c-.2-.1-.3-.2-.2-.4.1-.2.1-.3.1-.5l-.5-.4z\" fill=\"url(#wikipedia_q)\" /><linearGradient id=\"wikipedia_r\" gradientUnits=\"userSpaceOnUse\" x1=\".457\" y1=\"1533.599\" x2=\"-18.966\" y2=\"1628.111\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-229.6 432.7c-1.2-1.2 1.6-.1 1.6-.1s.6.3.3-.4c-.2-.6-1.4-2-2.5-3.2l.1.2s2.3 2.7 2.2 3c-.2.2-1.1-.3-1.1-.3s-1.4-.5-1.2.1c.1.5 1.1 1.3 1.5 1.6l-.9-.9z\" fill=\"url(#wikipedia_r)\" /><linearGradient id=\"wikipedia_s\" gradientUnits=\"userSpaceOnUse\" x1=\"8.651\" y1=\"1534.969\" x2=\"-10.844\" y2=\"1629.835\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-227 434.7c.4.3.9.5 1.4.7 0 0 .8.3 1.3-.1s.5-.6 1.2-.2c0 0 1.4.7 2.4 1.4s3.6 2.3 4.4 2.8c-.8-.4-3.7-2.4-4.6-3-.9-.6-2.6-1.7-3.3-1.5-.6.2-.5.4-.8.6-.3.2-.7.1-1.5-.4-.2-.1-.4-.2-.5-.3z\" fill=\"url(#wikipedia_s)\" /><linearGradient id=\"wikipedia_t\" gradientUnits=\"userSpaceOnUse\" x1=\"17.547\" y1=\"1532.957\" x2=\"-2.811\" y2=\"1632.017\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-214.1 441.4c.4.1.7.1.8 0-.7 0-1.4-.3-1.4-.3s-.1 0-.2-.1c.3.3.6.4.8.4z\" fill=\"url(#wikipedia_t)\" /><linearGradient id=\"wikipedia_u\" gradientUnits=\"userSpaceOnUse\" x1=\"20.658\" y1=\"1537.844\" x2=\"1.256\" y2=\"1632.257\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-209.7 442.2s-1.3-.2-1.9-.2c0 0 0 .1.2.2h.2c.3.1 2 .2 2.5.2.4-.1-.1-.3-.1-.3s-.1 0-.3-.1c-.3.2-.6.2-.6.2z\" fill=\"url(#wikipedia_u)\" /><path d=\"M-249.3 412c.1.1.2.4.5.7.1.2.3.1.2-.5-.3-.2-.4-.3-.5-.4-.1 0-.3-.3-.3-.3s-.5-.8-.3-.2c.4 1.2 1.6 3.8 1.6 3.8l1.4 2.5c-1-1.8-2.3-4.6-2.4-5-.2-.4-.3-.7-.2-.6zM-252.5 382.7v-.6c0-.1.1-.2.1-.4.7-2.8 1.1-3.9 1.4-4.6.4-.8.4-.2.4-.2s0 .2.1.2.3-.3.5-.8.6-1.7.7-2.2c.1-.7-.1-.4-.1-.4-.1 0-.1-.1-.1-.3 0 0 .4-2.1 3.1-6.6.2-.2.3-.3.5-.4-.1-.1 0-.3 0-.3.1-.2.3-.4.4-.7l-.1.5s-1.9 2.5-3.1 5.7c0 0-.3.8-.4 1.1 0 .2-.1.7.2.6h.1c-.1.5-.3 1.4-.6 2.3-.3.9-.6 1.6-.8 2.1-.1.1-.1 0-.1-.2s-.1-.2-.1-.2c-.2 0-.3.2-.4.4 0 .1-.1.2-.1.2s-.5.9-1.3 4.3c-.8 3.3-.8 6.1-.8 6.1s-.1 1.3-.2 1.4c-.1.1-.1-.1-.1-.1s0-.1-.1 0v-.9s0-.2.1-.2 0 .1 0 .2c0 0 .1 0 .1-.2s.1-2.8.6-5.3l.1-.5zM-253.6 392v.4c.1.4.2.4.2.4 0-.1.1-.3.2-.5v.4c0 .5 0 2.5.2 4.3.2 1.8.4 3.3.4 3.6 0 .2.5 3.3 1 5.1.3 1 .4 1.3.5 1.4 0 0 .1.2.3.3 0 0 .1-.1.1-.4 0 0 0 .1.1.1-.1.3-.1.4-.1.4s-.1 0 0 0c.1.4 0 .7-.2.3-.2-.4-.8-1.8-1.3-4.3 0 0-.5-2.7-.8-5.1v-.1l-.1-.1c0-.2 0-.5-.1-.7 0 0-.3-3.7-.2-4.6 0-.9-.1 0-.1 0v.3c0 .1-.1.4-.1-.2.1.3 0-.7 0-1zM-229.3 352l-.5-.8-.1-.1s-.1-.1-.9 0h-.1s.4-.1.2.2c-.2.3-.6.5-1.2 1.1-.6.7-.4.8 0 .7.4 0 1.1-.4 2.6-1.1zM-230.9 351.2z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-230.4 351.8c.3-.3.4-.5.5-.6 0 0-.1-.1-.9 0h-.1c.1 0 .3 0 .1.2-.2.3-.6.5-1.2 1.2s-.4.8 0 .7c.1 0 .2-.1.4-.2.2-.3.6-.8 1.2-1.3zM-170.5 354.1l-.2.2s.1.1.2.1l-.1-.1s0-.1.1-.2h.1-.1z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-191.4 440.3s1.7-.2 3.2-.7c1.6-.5 1.9-1 1.9-1.3 0-.2-.4-.3-.9-.2.3 0 .5 0 .4.3-.3.6-.9.8-.9.8s-.3.2-.9.4c-.8.2-1.8.4-2.3.4-.7.1-.5 0-1.5.3h-.1c-.3.2 1.1.5 1.1.5s1.3.4 3.3.2h.1c.3-.1.5-.2.8-.2-2 .5-3.3.1-3.7.1-.4-.1-.8-.1-.9-.4-.2-.2.4-.2.4-.2z\" opacity=\".53\" fill=\"#FFF\" /><path d=\"M-190.7 354.4l.7.1c1.4-.4 2.7-.8 2.7-.8s1.3-.4 1.9-.6c.6-.2 1.1-.3 1.7-.4.6-.1 1.3-.1 1.7-.1.4 0 .5.1.5.1s.2.1.2.3c.1.1.7 1.9 3 2 2.2.1 2.3-1.1 2.1-1.5-.2-.4-.9-.9-.9-.9s-.9-.6-1.1-.8c-.2-.3 0-.4.1-.4s2.4-.5 2.7-.6l-.6-.2s-.1.1-.8.3c-.7.2-1.2.2-1.7.3-.5.1-.5.2-.5.2l-.9 1.4v.3c.1.2.4.4.4.4s.6.4 1 .7c.4.3.4.4.4.4-1.1.1-1.4 0-1.9-.3-.4-.2-.8-.7-.9-1.1-.2-.4-.5-.7-.5-.7-.6-.3-1.7-.3-2.8-.1-1.1.2-2.7.7-2.9.8-.3.1-1.6.6-2.3.7-.7.2-1.2.4-1.6.5-.4.1-3.4 1-4.6 1.3-1.1.3-1.8.5-1.8.5-1.7.2-2.2-.1-2.2-.1-.3-.1-.3-.5-.3-.5v-1.1s0-.4-.4-.6c-.3-.2-.8-.3-1.6-.3s-1.7 0-2.1.1c-.4.1-1.2.3-1.8 1-.6.6-.5 1.1-.5 1.1s0 .7.1 1.2.5.7.5.7-.7.5-3 1.2c-2.2.6-3.7.8-3.7.8l.7.3s5.5-1 7.1-2.6c0 0 .6-.3 0-.9-.6-.6-.9-.8-.9-.8s-.4-.2 0-.8c.4-.5.9-.8 1.4-.9s1.8-.3 2.9-.1c0 0 .5 0 .5.4s-.1.9-.1 1c0 .2 0 .5.4.8.4.3 1.1.5 1.1.5s1.3.2 2.8-.2c1.6-.4 3.6-1.1 5.4-1.6l.4-.4z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-205.5 356.6c.3.2.5.2.5.4.1.3-.6.6-.6.6s-.4-.2-.5-.7c-.1-.5-.1-1.2-.1-1.2v.3c.2.3.3.4.7.6z\" fill=\"#616161\" /><path d=\"M-171.6 429.3l.5.2c1.1-.6 1.5-.8 1.8-1 1.2-.7 2.6-1.6 3-1.9 0 0 .8-.5.1.2-.6.7-1 1-1 1s-.6.6-.5.8c0 0 .2.2 1.2-.7 1-.9 2.2-2.3 2.3-2.4.1-.2.1-.3.1-.3s.1-.2.3-.4c.1-.1 1.4-1.5 2-2.1.3-.4.5-.7.8-1.1-.4.4-1.7 1.8-2.5 2.7 0 0-.7.8-.9 1.1-.2.3-.2.5-.2.5s-.1.2-.4.5l-1.2 1.2s-.6.5-.8.5c-.2 0 .4-.5.4-.5s.6-.6 1-1.1c.4-.5.1-.5.1-.5s-.2 0-1 .5-1.4.9-1.4.9-1.7 1-2.8 1.6c-1.1.6-3.6 1.9-5 2.5-1.4.6-2.2.7-2 .5.1-.2.5-.5.5-.5s.4-.4.4-.8c0 0 .1-.6-1.6-.2-1.7.4-3.3 1.2-3.3 1.2s-2.6 1.2-2 1.9c0 0 .1.2.6.4s-.9.6-.9.6c-1.4.4-2.4.7-3.7.9-2 .4-3.6.8-4.2.9-.2 0-.3.1-.3.1s-1.2.3-3.2 1.1-6 1.4-6 1.4-2.5.3-2.8.6c-.2.3.2.5.2.5s.4.2 1.7.3h.5s0 .1-.2.2c-.3.1-.9.3-2.8.6-1.9.2-1.9-.1-1.9-.1s0-.1.1-.2 0-.4-.3-.5c0 0-.4-.3-1.8-.3s-4.2 0-6.8-.1c-2.4-.1-5.6-.6-6.1-.7 0 0-.1 0-.2-.1s-.6-.4-1.2-.7c-.5-.3-2.1-.9-2.1-.9s-2-.8-1.9-.5c0 .1.1.2.3.2.4.2.7.4 1.1.6 0 0-.7-.4-.5-.4.2 0 .4.1.4.1s1.2.3 2 .7c.8.4 1.4.8 1.4.8s.9.5 2.3.7c1.3.2 3.2.4 3.8.4l.6-.3.4.4c1.1.1 2.6.1 2.6.1s3 .1 4.6 0c.7-.1.5.3.5.3s-.2.4.2.5c0 0 .8.4 3.3.2 2.6-.3 3.1-.9 3.1-.9s.3-.3-.4-.4c-.5-.1-.5-.1-1.2-.1-.7-.1-1-.2-.6-.3.4-.1 1.2-.2 1.2-.2s2.2-.3 4.1-.8c0 0 1.9-.5 3.9-1.1.8-.3 1.4-.5 1.9-.6l.4-.6.6.4h.1s2.3-.5 3.3-.7c1-.2 3.2-.6 4.1-1.1.9-.4 1.4-.8 1.5-1.1.1-.3-.4-.4-.4-.4s-.6-.1-.5-.3c.1-.2.3-.4 1.2-.8.9-.4 2.1-.9 3.2-1.1 1.2-.3.7.2.7.2s-.7.7-.8 1c-.1.3 0 .3.1.3.1.1.6 0 1-.1s3.5-1.3 5.3-2.3l.1-.1.5-1z\" opacity=\".17\" fill=\"#FFF\" /><linearGradient id=\"wikipedia_v\" gradientUnits=\"userSpaceOnUse\" x1=\"-32.817\" y1=\"1596.566\" x2=\"-32.627\" y2=\"1596.566\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"gray\" /><stop offset=\".087\" stop-color=\"#7A7A7A\" /><stop offset=\".36\" stop-color=\"#6B6B6B\" /><stop offset=\".519\" stop-color=\"#686868\" /><stop offset=\".638\" stop-color=\"#5F5F5F\" /><stop offset=\".743\" stop-color=\"#4E4E4E\" /><stop offset=\".841\" stop-color=\"#383838\" /><stop offset=\".932\" stop-color=\"#1B1B1B\" /><stop offset=\"1\" /></linearGradient><path d=\"M-246.6 418l.2.1c-.1-.1-.2-.1-.2-.1z\" opacity=\".68\" fill=\"url(#wikipedia_v)\" /><linearGradient id=\"wikipedia_w\" gradientUnits=\"userSpaceOnUse\" x1=\"-32.594\" y1=\"1591.799\" x2=\"62.024\" y2=\"1591.799\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"gray\" /><stop offset=\".087\" stop-color=\"#7A7A7A\" /><stop offset=\".382\" stop-color=\"#828282\" /><stop offset=\".518\" stop-color=\"gray\" /><stop offset=\".568\" stop-color=\"#797979\" /><stop offset=\".603\" stop-color=\"#6E6E6E\" /><stop offset=\".608\" stop-color=\"#6B6B6B\" /><stop offset=\"1\" stop-color=\"#4E4E4E\" /></linearGradient><path d=\"M-163.6 410h-.4c-1.8 1.5-2.3 1.9-3.8 3 0 0-1.6 1.2-3.4 2.2-1.8 1-3.9.9-3.9.9s-.6-.1-.3-.5.6-1.4.8-1.9c.1-.5.4-1.8-.6-2.2-1-.4-3 .2-3 .2s-4.5 1.2-6.4 3.2c-1.8 2-.3 2.8-.3 2.8s.7.5 1.4.7c.6.2.5.4.4.6 0 0-2 1.3-4.4 2 0 0-3.3 1-6.4 1.2-3.2.2-4.5.3-4.5.3l-.4.4-.8-.3c-1.3.2-3.5.5-5.6 1-2.6.6-5.1 1.1-6.9 2.3 0 0-1.3.9-.6 1.7.8.9 1.6 1.2 1.6 1.2s.5.2.5.3c0 .2 0 .3-.4.5 0 0-1.4.8-4.1.9-2.7 0-3.9 0-4.7-.7-.7-.6.2-1.8.2-1.8s.3-.6 0-1.5c-.3-.8-2.2-.9-2.2-.9l-2.6-.1c-3.1-.1-7.2-.4-9-.7v.2l-.7-.3c-1.1-.2-3.2-.7-4.1-1.1-.8-.4-1.2-.3-1.1-1.1.1-.8-.8-1.8-.8-1.8s-1.2-1.3-2.3-2.1c-1.1-.8-1.5-.6-1.5-.6s-.5.3 0 1.3c.4 1 .9 1.4.9 1.4s.2.2.1.3c-.1.1-.5-.2-.8-.5-.3-.2-1.9-1.7-2.5-2.3l.1.4s0 .1.1.1c.2.3.9 1.3 2.2 2.3 1.5 1.2 1.6.7 1.6.7s.1-.4-.3-.8-.9-1.4-.8-1.7c.1-.3.3-.3.3-.3s.1-.1.6.3 1.5 1.1 2 1.7c.5.6.5 1.2.5 1.2s-.1.6.5 1.2 1.7 1.7 5.9 2.4h.1l.2-.6.6.7c3.6.5 5.6.6 5.6.6s4.7.2 6 .2c1.3 0 1 .7 1 .7s-.1.4-.2.6c-.2.3-.5 1.4-.1 1.9 0 0 .6 1.4 4.4 1.5 0 0 3.3.3 5.6-.7s.2-2.3.2-2.3-.8-.5-1.1-.7c-.3-.2-.2-.5-.1-.6.1-.2.3-.4.6-.5.3-.1 1.2-.7 5.4-1.7 4.1-1.1 6.6-1.2 6.6-1.2h.1l.3-.7.9.6c.7-.1 1.7-.1 2.5-.2 1.7-.1 4.3-.5 5.9-.8 1.5-.3 3.9-1.1 5.6-2 1.7-.9 1.8-1.5 1.8-1.5s.3-.5-.4-1-1-.4-1.7-1c-.6-.6.6-1.6.6-1.6s.6-.9 4-2.2c3.4-1.3 4-.9 4.2-.7.2.1.2.6.1.9l-.7 2.1c-.2.6-.3 1.4.6 1.6.9.2 2.2 0 3.4-.4 2.9-1 3.8-2.3 8.5-5.8l-.6-.9.7.1c2-1.6 3.9-3.6 3.9-3.6s1.3-1.3 1.9-2.4c.6-1 0 .9 0 .9s-.3 1.5.2 2.1c.4.4 1.6-.8 1.6-.8s.7-.8 1-2.1c.4-1.9.2-2.2.2-2.2s-.2-.4-.1-.9c.2-.5 1.2-3 2-4l.5-.6-.2-.6.3-.5s-.3.3-1.4 2.2c-1.3 2.1-1.5 3.8-1.5 3.8s-.1.7-.1 1c.1.4.2.5.2.6 0 .1-.1 1-.5 1.8s-.8 1-.8 1-.8.5-.9.2c-.1-.4-.1-.7 0-1 0-.2.3-1.6.3-2.1s-.5-.1-.5-.1-.1.1-.3.4-1.3 1.6-1.7 2.1c-1 1.2-1.9 2-4.3 3.9l-.5.8z\" opacity=\".43\" fill=\"url(#wikipedia_w)\" /><linearGradient id=\"wikipedia_x\" gradientUnits=\"userSpaceOnUse\" x1=\"-39.407\" y1=\"1573.355\" x2=\"60.406\" y2=\"1573.355\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#555\" /><stop offset=\"1\" stop-color=\"#231F20\" /></linearGradient><path d=\"M-252.8 398.5l.1 1c.2.3.6.7 1.1 1.2 1.1 1.1 1.4.4 1.4.4s.3-.7-.1-2c-.3-1.3-.3-2 .3-2s2.3.4 2.8 1.8c0 0 .2.6 0 1.5-.2.8-.2 1.6 0 2.3.1.7.8 1.4 1.5 2 .7.6 2.7 1.5 4.7 1.7 2 .1 2.6 0 2.6 0l.7-.8.1.7c.8-.1 2.1-.2 3.6-.4 2.5-.3 4.2-.5 5.8-.3 1.6.2 2.1 1.5 2.1 1.5s.1.3-.3.5c-.3.2-.7.5-.9.9-.2.3-.4 1.1.2 2 .6 1 2.1 1.6 3.5 1.4 1.3-.2 3.3-.7 4.5-1 1.3-.3 2.4-1 2.6-2 .1-1-1.5-2.3-1.5-2.3s-.8-.6-.9-.8c-.1-.1.1-.2.1-.2s.9-.2 1.4-.4c.4-.2 1.5-.6 3.4-1.2 1.8-.6 5.6-1.2 5.6-1.2s2.1-.3 4.7-.5l.6-.7.5.6c.4 0 .8 0 1.2-.1 3.6-.1 5.3-.6 7.2-1 1.9-.4 4.6-2 5-2.3.4-.3 1.2-.7 1.4-2 .2-1.3-1.4-2.2-1.4-2.2s-1.2-.6-1.5-.9c-.3-.3 0-.6 0-.6s.7-1.5 2.9-2.4c2.2-.9 3.7-1.1 4.6-1.2.9-.1 1.2.2 1.4.4.1.2.1.5 0 .8-.1.3-.4 1-.6 1.4-.2.4-.5 1.2-.3 1.6.2.4.8.6 1.7.4.8-.1 3-.8 4.9-1.6s5.1-2.3 5.1-2.3l.1-.7.7.3c1-.6 2.8-1.6 4-2.6 1.9-1.6 3.7-3.2 4.2-3.6.5-.4.9-.8 1.3-.7.4 0 .7.3 1 1.4.3 1.1.3 2 .4 2.6.1.5.3 1.2.9 1.3.6.1 1.5-.4 1.8-.7.3-.3.9-1.2.9-2.4 0 0 .1-1.6-.8-3.1 0 0-.4-.6-.5-.8-.1-.1-.2-.2 0-.5.1-.3.5-.8 1.1-1.2.4-.3.9-.3 1.1-.4 0 0 .3-.1.6-.3l-.1-.4.3.3c.4-.2.7 0 .7 0l-.4-.5.1-.5s-.3-.2-.7-.1c-.4.1-.4.4-1 .5-.6.1-1.3.3-1.9 1.3-.7 1 0 2.3 0 2.3s.4.6.5.9c.2.3 1.1 2.2 0 3.6 0 0-.6.6-1.5.9-.9.2-.6-.8-.7-1.4 0 0-.1-2.3-1.2-3.6-1-1.1-2.7.9-3.6 1.6-.8.6-3.2 3.1-6.7 4.9l-.5.9-.3-.5c-1.7.8-5.4 2.7-7.9 3.5 0 0-1.9.8-2.6.8 0 0-.2 0 0-.2.1-.2.3-.3.5-.7.2-.4.6-1.4.6-2.3 0-1-1.1-1.9-2.7-1.7-1.6.2-3.1.6-4.8 1.3-1.8.7-3.3 2.2-3.6 3.4-.2 1.2 1.1 1.9 1.1 1.9s1.5.8 1.7 1.2c.2.4 0 .8 0 .8s-.1.4-.8.8c-.6.4-2.4 1.3-2.4 1.3s-2.2 1.2-5.6 1.5c0 0-3.1.3-4.8.3h-.1l-.5.5-.6-.4c-1.6.1-3.5.4-3.5.4s-4.3.6-8.2 1.8c-3.3 1-4 1.6-4 1.6s-.7.6-.1 1.5c0 0 .3.5 1 1.1.7.5 1.2 1.1 1.2 1.3-.1.3-.3.4-.3.4s-1 .9-4.9 1.5c0 0-2.5.5-3.3-.3-.8-.8-.4-1.3-.4-1.3s.1-.2.6-.5c0 0 1-.6.6-1.7-.3-1.1-2.1-2.5-4.1-2.5 0 0-2.3 0-8.2.8l-.2.5-.6-.4c-.3 0-.7.1-1.1.1-1 .1-2.5-.1-4.3-.6-1.8-.5-3-1.5-3.1-2.1-.1-.4 0-1 0-1s.3-1.3.1-2.4c-.2-1.1-.6-1.9-1.6-2.6-1-.6-1.6-.5-1.6-.5s-.9-.1-.9 1.4c0 1.6.2 2.3.2 2.3s.2.6-.1.6c-.3.1-.7-.4-.7-.4s-1-.9-1.6-1.7v.1l-.2.5s.1.1.3.4l-.1-.8z\" opacity=\".31\" fill=\"url(#wikipedia_x)\" /><linearGradient id=\"wikipedia_y\" gradientUnits=\"userSpaceOnUse\" x1=\"-39.103\" y1=\"1552.882\" x2=\"52.501\" y2=\"1552.882\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#A0A0A0\" /><stop offset=\".077\" stop-color=\"#656767\" /><stop offset=\"1\" stop-color=\"#717375\" /></linearGradient><path d=\"M-162.9 361.7l.2.8s-.6.3-1.7.6-2.2.8-2.2.8-.9.3-.6 1c.3.7.8 1.1.8 1.1s.7.7.7 1.2-.2.8-.8 1.1c-.6.3-1.1.4-1.1.4s-1.3.2-2-.4c-.7-.6-.8-1.7-.8-1.7s-.1-.9-1.1-1.3c-1.1-.4-2.5.4-2.5.4s-1.1.6-2.2 1.3c-1.1.7-3.3 1.6-4.6 2.1l-.2.7-.8-.4c-1.4.5-3.3 1.1-3.3 1.1s-2.5.9-4.2 1.2c-1.6.2-2 0-2.2-.2-.2-.2 0-1 0-1s.7-1.4.3-2.1c-.3-.7-2.5-.9-2.5-.9s-2.3-.3-4.5.9c-1.9 1.1-2.1 1.6-2.1 1.6s-.6.9.1 1.9c.8 1.1 1.9 1.1 1.9 1.1s1 .1 1.3.4c.2.3.1.6.1.6s-.3.9-2.2 1.3c0 0-3.2.9-9.1 1.8l-.6.6c-3.7.5-8.1 1.4-10.6 2-2.4.6-2.6 1.3-2.6 1.3-.5.8.1 1.2.1 1.2s.8.3 1 1.2c.2.9-.8 1.6-.8 1.6s-1.2 1-2.9 1.3-2.4.4-3.4-.5c-.9-.7-.3-1.9.3-2.3.6-.4.9-.9 1-1.1.1-.2 0-.4 0-.4l-.6-.5c-2-1.3-9.9.1-9.9.1l-1.3.3-.7-.4s-2.3.6-4.9.6c-2.7 0-1.3-2.1-1.3-2.1s.6-1.1.8-1.8c0 0 .2-1.7-1.4-1.6-1.6.1-2 1.5-2 1.5s-.1.8-.1 1.4c0 .6 0 1.8-.7 2.6-.7.7-1.5.5-1.5.5s-1.3-.6-1.6-.7c-.3-.1-.5-.2-.8-.1h-.1l-.2.8v-.6c-.2.2-.3.4-.3.4l.1.3-.2.6.2-.4.2-.4-.1.2c.1 0 .1-.1.2-.1.3 0 .6.2.6.2s1.1.6 1.6.7c.5.1.9-.1 1.2-.3.5-.4 1.1-1.1 1.4-1.8.2-.6.3-2.4.3-2.4v-.5c0-.1-.1-.6.2-.8.3-.2.5-.3 1.1-.4.7 0 .9.4.9.4s.2.3.2.5-.1.3-.1.3-.4.6-.5.9c-.1.3-.6 1.3-.5 2.2.1.9 1.5 1.3 1.5 1.3s1.1.3 2.6 0l3.1-.5.5-.6.2.5c.8-.1 2.1-.4 3.6-.5 2.3-.2 4.8-.3 5.8-.1 0 0 .5.1.4.2l-.4.4-.7.7s-.7 1.2-.7 1.7.5 2 2.4 2.4c1.9.4 4.1-.3 4.1-.3s1.4-.3 2.8-1.7 0-3.1 0-3.1-.2-.3-.6-.4c0 0-.2 0-.1-.2.1-.1.4-.6 1.4-.9 1-.3 4-1.2 11.1-2.1l.3-.6.9.5c2.7-.4 4.6-.7 7.8-1.5 0 0 3-.5 3.7-1.7.4-.6 1-1.5 0-2.4 0 0-.1-.2-.8-.3-.7-.2-1.2-.3-1.7-.7-.6-.4-.6-.9-.6-.9s0-.4.9-1c0 0 .9-.6 2.5-1.2 1.7-.5 3.6-.3 3.6-.3s.8.1.7.6c-.1.6-.6 1.5-.6 2s0 1 .9 1.4c.9.4 2.3.3 2.3.3s1.4-.1 3.6-.8c2.3-.7 4.6-1.6 4.6-1.6l-.1-.5 1 .2c.6-.2 1.4-.5 2.3-.9 1.8-.8 2.7-1.5 3.5-2 0 0 1.8-1.1 2.9-1.1 0 0 .3 0 .3.3s.1.8.2 1.1c.1.3.7 1.8 2.7 2 2 .2 2.8-1.1 2.8-1.1s.7-1-.5-2.3c0 0-1-1-1-1.1 0 0-.1-.2.2-.2.3-.1 3.2-.9 4.3-1.4l-.3-.5.5.4c.2-.1.4-.2.5-.4.2-.3-.1-.8-.1-.8-.1-.2-.3-.4-.4-.5l-.6-.3h-.1l.4.6\" opacity=\".34\" fill=\"url(#wikipedia_y)\" /><path d=\"M-245.9 366.3l-.3.4c.1 0 .2-.1.2-.1s.4-.1 1.1.1c.9.2 2.1-.5 2.1-.5s.9-.5 1.3-1.4l.4-1s.3-1 1.1-1.3c0 0 .3-.2.8-.2s.4.4.4.4-.1.2-.6.9-.7 1.2-.7 1.2-.3.7.2 1c0 0 .2.1.9-.1s3-.8 4.4-1.1l1-.5-.6-.4c-2.4.4-4.2 1-4.8 1.2-.6.2-.6.1-.6.1-.2-.2.4-1 .4-1s.7-.9.9-1.7c.3-.8-.9-.7-.9-.7-.8.1-1.3.5-1.9 1.2-.5.6-.8 1.4-.9 1.8-.1.3-.2.5-.2.5s-.1.2-.4.3c-.4.2-1.2.4-1.2.4s-.5 0-.9-.1c-.2-.1-.9 0-.9 0l.1-.5h-.1l-.7.4-.3.6c-.1.1-.2.5 0 .5h.2l.5-.4zM-240.7 359.2s.3-.3.3 0c0 .2-.3.7-.3.7s-.1.1-.2.1c0 0 0-.5.2-.8zM-243.4 362.5s-.4.5 0 .5l.8-.8s-.1-.1-.2-.1c.1 0-.4.2-.6.4z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-176.2 435.7s-1.8.8-3.4 1.6c-1.6.8-2.3 1.1-2.3 1.1s-.1 0 0 .1c.1 0 0 .1 0 .1-.8.4-2.7 1.1-2.7 1.1s-.2.1-.2 0l.2-.1s.4-.1.3-.2c-.1-.1-1.2.3-1.2.3s-1.9.6-2.9.9c-.9.3-2.8.7-2.8.7-1.2.3-3.8.8-4.3.9-.6.1-.4.1-.4.1s.5-.2-.4-.2c-1.1-.1-2.4.1-3.6.3-1.3.2-1.2.3-1.2.3s0 .2.7.1h.5c-1.4.2-4.2.2-4.2.2h3.2c.2 0 1.5-.1 1.9-.2.5-.1-.1-.1-.1-.1h-.7s-.8 0-.1-.2c.7-.1 1.8-.2 2.4-.3.8-.1.5.1.5.1s0 .1.5.1 4.7-.8 7.1-1.5c2.3-.7 4.1-1.3 4.1-1.3s.2-.1.1 0-.5.2-.5.2-.6.3.8-.1c.1 0 .1 0 .2-.1l3.6-1.5s.1-.1 0-.1c-.2.1 0-.1.2-.1.2-.1 2.3-1.2 3.4-1.6.5-.1.9-.3 1.3-.6z\" opacity=\".3\" fill=\"#FFF\" /><linearGradient id=\"wikipedia_z\" gradientUnits=\"userSpaceOnUse\" x1=\"-36.343\" y1=\"1578.751\" x2=\"-36.343\" y2=\"1578.751\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".078\" stop-color=\"#F4F4F4\" /><stop offset=\".381\" stop-color=\"#CECECE\" /><stop offset=\".54\" stop-color=\"#BFBFBF\" /><stop offset=\".836\" stop-color=\"#7C7C7C\" /><stop offset=\".9\" stop-color=\"#A8A8A8\" /><stop offset=\".909\" stop-color=\"#9A9A9A\" /><stop offset=\".933\" stop-color=\"#7D7D7D\" /><stop offset=\".956\" stop-color=\"#686868\" /><stop offset=\".979\" stop-color=\"#5B5B5B\" /><stop offset=\"1\" stop-color=\"#575757\" /></linearGradient><path d=\"M-250.1 400.2z\" fill=\"url(#wikipedia_z)\" /><linearGradient id=\"wikipedia_A\" gradientUnits=\"userSpaceOnUse\" x1=\"-39.674\" y1=\"1578.511\" x2=\"68.872\" y2=\"1566.485\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".078\" stop-color=\"#F4F4F4\" /><stop offset=\".381\" stop-color=\"#CECECE\" /><stop offset=\".54\" stop-color=\"#BFBFBF\" /><stop offset=\".836\" stop-color=\"#7C7C7C\" /><stop offset=\".9\" stop-color=\"#A8A8A8\" /><stop offset=\".909\" stop-color=\"#9A9A9A\" /><stop offset=\".933\" stop-color=\"#7D7D7D\" /><stop offset=\".956\" stop-color=\"#686868\" /><stop offset=\".979\" stop-color=\"#5B5B5B\" /><stop offset=\"1\" stop-color=\"#575757\" /></linearGradient><path d=\"M-252.8 398.5l.1 1c.2.3.6.7 1.1 1.2 1.1 1.1 1.4.4 1.4.4s.1-.2.1-.6c0 .2-.2.4-.8-.1-.3-.2-.7-.6-1.1-1-.3-.3-.7-.7-1-1.1v.1l-.2.5s.1.1.3.4l.1-.8z\" fill=\"url(#wikipedia_A)\" /><linearGradient id=\"wikipedia_B\" gradientUnits=\"userSpaceOnUse\" x1=\"-40.111\" y1=\"1578.477\" x2=\"82.882\" y2=\"1564.851\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".078\" stop-color=\"#F4F4F4\" /><stop offset=\".381\" stop-color=\"#CECECE\" /><stop offset=\".54\" stop-color=\"#BFBFBF\" /><stop offset=\".836\" stop-color=\"#7C7C7C\" /><stop offset=\".9\" stop-color=\"#A8A8A8\" /><stop offset=\".909\" stop-color=\"#9A9A9A\" /><stop offset=\".933\" stop-color=\"#7D7D7D\" /><stop offset=\".956\" stop-color=\"#686868\" /><stop offset=\".979\" stop-color=\"#5B5B5B\" /><stop offset=\"1\" stop-color=\"#575757\" /></linearGradient><path d=\"M-250.3 399.1v.2s.1.4.1.8c.1-.3 0-.6-.1-1z\" fill=\"url(#wikipedia_B)\" /><linearGradient id=\"wikipedia_C\" gradientUnits=\"userSpaceOnUse\" x1=\"157.253\" y1=\"-110.999\" x2=\"253.236\" y2=\"-91.625\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\"1\" stop-color=\"#BFC0C2\" /></linearGradient><path d=\"M-154.3 378.6l.3.3c.4-.2.7 0 .7 0l-.4-.5c-.4.1-1.1.3-2.2.6 0 0-1.4.6-1.6 1.5 0 .3 0 .6.1.9.8 1.4.9 1.7.9 1.7.5 1.1.4 2 .3 2.8-.2.9-1.2 1.7-1.8 1.8-.6.2-1 0-1.1-.5-.2-.5-.2-.8-.4-2.3-.3-1.5-.7-2.2-1.2-2.4-.6-.2-1.3.5-1.7.8-.4.3-2.4 2.2-2.4 2.2s-2.3 2.1-5.7 4c-3.4 1.9-7.7 3.4-7.7 3.4s-2.8 1.1-3.5 1c-.7-.1-.5-.7-.3-1.1.2-.4.5-.9.8-1.5.3-.8.2-1.7-.4-2-.6-.3-1.2-.5-3.5.1s-3.2 1.1-3.8 1.5c-.6.4-1.6 1.2-1.8 1.7-.3.5-.6 1 .1 1.6.7.6.8.5 1.6 1 .8.6.9.6 1 1.5 0 .8-.8 1.3-.8 1.3s-3.1 2.1-6.6 2.8c-2.3.5-6.8.6-6.8.6s-1.3 0-5.4.5c-4.1.6-6.8 1.5-7.7 1.9-1 .3-2.3.8-3.1 1.2-.8.4-.4.9-.2 1 .2.1 1.2 1.1 1.5 1.4.3.3 1.5 1.3.1 2.1s-3.6 1.3-3.6 1.3-3.1.7-4.1.2c-1-.4-1.2-.8-1.5-1.4-.3-.7 0-1.3.8-1.8s.5-1.2.5-1.2c-1-1.9-3.1-2.1-4.8-1.9-2.7.2-5.4.5-7.4.7-3.1.4-4.5-.1-6-.5-1.5-.5-3-1.5-3.2-2.5v-.3c-.1-.8.1-1.1.2-1.8.1-.6 0-1.5-.1-1.8v-.1c-.5-1.3-1.7-1.9-2.7-2.1-1-.2-1 .9-1 .9.1-.2.2-.3.4-.3.6 0 2.3.4 2.8 1.8 0 0 .2.6 0 1.5-.2.8-.2 1.6 0 2.3.1.7.8 1.4 1.5 2 .7.6 2.7 1.5 4.7 1.7 1.8.1 2.5 0 2.6 0l.8-.8.1.7c.8-.1 2.1-.2 3.6-.4 2.5-.3 4.2-.5 5.8-.3 1.6.2 2.1 1.5 2.1 1.5s.1.3-.3.5c-.3.2-.8.5-.9.9-.2.3-.4 1.1.2 2 .6 1 2.1 1.6 3.5 1.4 1.3-.2 3.3-.7 4.5-1 1.3-.3 2.4-1 2.6-2 .1-1-1.5-2.3-1.5-2.3s-.8-.6-.9-.8c-.1-.1.1-.2.1-.2s1-.2 1.4-.4c.4-.2 1.5-.6 3.4-1.2 1.8-.6 5.6-1.2 5.6-1.2s2.1-.3 4.7-.5l.6-.7.5.6c.4 0 .8 0 1.2-.1 3.6-.1 5.3-.6 7.2-1 1.9-.4 4.6-2 5-2.3.4-.3 1.2-.7 1.4-2 .2-1.3-1.4-2.2-1.4-2.2s-1.2-.6-1.5-.9c-.3-.3 0-.6 0-.6s.7-1.5 2.9-2.4c2.2-.9 3.7-1.1 4.6-1.2.9-.1 1.2.2 1.4.4.1.2.1.5 0 .8-.1.3-.4 1-.6 1.4-.2.4-.5 1.2-.3 1.6.2.4.8.6 1.7.4.8-.1 3-.8 4.9-1.6 1.9-.8 5.1-2.3 5.1-2.3l.1-.7.7.3c1-.6 2.8-1.6 4-2.6 1.9-1.6 3.7-3.2 4.2-3.6.5-.4.9-.8 1.3-.7.4 0 .7.3 1 1.4.3 1.1.3 2 .4 2.6.1.5.3 1.2.9 1.3.6.1 1.5-.4 1.8-.7.3-.3.9-1.2.9-2.4 0 0 .1-1.6-.8-3.1 0 0-.3-.6-.5-.8-.1-.1-.2-.2 0-.5.1-.3.5-.8 1.1-1.2.4-.3.9-.3 1.1-.4 0 0 .3-.1.6-.3h-.7z\" fill=\"url(#wikipedia_C)\" /><path d=\"M-252.5 382.7l-.1.2c.1 0 .1-.1.2-.1.3 0 .6.2.6.2s1.1.6 1.6.7c.5.1.9-.1 1.2-.3.3-.2.5-.4.8-.7-.3.3-.7.5-1.4.6 0 0-.6 0-1.4-.6-.8-.5-1.3-.2-1.7.1l-.2.6.2-.4.2-.3z\" fill=\"#FFF\" /><path d=\"M-247.6 382c.1-.1.1-.2.2-.4 0-.1.1-.3.1-.5-.1.4-.2.7-.2.7s-.1.1-.1.2zM-247.2 378.7v1.5c0-.5.1-.9.1-.9-.1-.1-.1-.5-.1-.6z\" opacity=\".73\" fill=\"#FFF\" /><linearGradient id=\"wikipedia_D\" gradientUnits=\"userSpaceOnUse\" x1=\"159.514\" y1=\"-70.412\" x2=\"163.999\" y2=\"-70.412\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#E2E3E4\" /><stop offset=\".505\" stop-color=\"#FFF\" /></linearGradient><path d=\"M-245.9 366.3l-.3.4c.1 0 .1 0 .2-.1 0 0 .4-.1 1.1.1.9.2 2.1-.5 2.1-.5s.3-.2.6-.5c-.4.2-1.4.8-2.1.6-1-.2-1 0-1.3 0-.3 0-.3-.1-.3-.3v-.1c.1-.3.3-.7.3-.7l-.7.4-.3.6c-.1.1-.2.5 0 .5h.2l.5-.4z\" fill=\"url(#wikipedia_D)\" /><path d=\"M-237 365c-1 .3-2 .7-2.5.6-.4-.1-.1-.8 0-1 .1-.1.2-.3.2-.4.3-.5.8-1.4.8-1.4v-.1c.1-.2.1-.5-.5-.6-.8-.1-1.6.6-1.6.6s-.5.3-.8 1.4l.1-.3s.3-1 1.1-1.3c0 0 .3-.2.8-.2s.4.4.4.4-.1.2-.6.9-.7 1.2-.7 1.2-.3.7.2 1c0 0 .2.1.9-.1s3-.8 4.4-1.1l1-.5c-.4.2-2.2.7-3.2.9z\" fill=\"#FFF\" /><path d=\"M-163.4 424.2zM-163.2 424c0-.1 0-.1 0 0 0-.1 0-.1 0 0zM-163.3 424z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-166.1 426.7l-.2.2c-.6.7-1 1-1 1l-.2.3s.2 0 .6-.2c-.1 0-.1.1-.2.1-.2 0 .4-.5.4-.5s.6-.6 1-1.1c.4-.5.1-.5.1-.5s-.1 0-.4.1c.1-.1.3.1-.1.6z\" opacity=\".25\" fill=\"#231F20\" /><path d=\"M-163.3 424.1z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-181.1 431.2s2.2-.9 3.4-.8c0 0 .6.1-.1.7-.7.7-.9 1.2.4.8 0 0 .1 0 .2-.1-.5.1-.7.1-.7 0 .1-.2.5-.5.5-.5s.4-.4.4-.8c0 0 .1-.6-1.6-.2-.9.3-1.8.6-2.5.9z\" opacity=\".22\" fill=\"#231F20\" /><path d=\"M-181.8 431.6zM-165.9 426c-.1 0-.1 0 0 0-.1 0-.1 0 0 0z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-175.7 431.3c1.4-.5 3.9-1.9 5-2.5-1.1.6-3.6 1.9-5 2.5z\" opacity=\".28\" fill=\"#231F20\" /><path d=\"M-166.5 426.3s.1 0 0 0c.1 0 0 0 0 0zM-162.4 423.1zM-162.6 423.3s.1 0 0 0c.1 0 0 0 0 0zM-162.5 423.2zM-163.1 423.9zM-182.8 432.1zM-162.7 423.4c.1 0 .1 0 0 0 .1 0 .1 0 0 0zM-162.9 423.7zM-162.7 423.5zM-163 423.8zM-162.8 423.6zM-182.2 431.8zM-182 431.6s0 .1 0 0c0 .1 0 0 0 0zM-182.7 432.1zM-182 431.7zM-181.9 431.6zM-182 431.7zM-181.8 431.6zM-181.9 431.6zM-182.1 431.7zM-181.8 431.6zM-181.8 431.6zM-181.9 431.6zM-182.1 431.7s-.1 0 0 0c-.1 0 0 0 0 0zM-182.4 431.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-181.8 431.6zM-182.6 432zM-182.6 432s-.1 0 0 0c-.1 0 0 0 0 0zM-182.5 431.9c0 .1 0 .1 0 0 0 .1 0 .1 0 0zM-182.2 431.8s-.1 0 0 0zM-162.3 423zM-182.3 431.8zM-182.3 431.8c0 .1-.1.1 0 0-.1.1 0 .1 0 0zM-182.4 431.9zM-161.6 422.2zM-161.6 422.3c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-161.5 422.1s0 .1 0 0c0 .1 0 0 0 0zM-162.2 422.9zM-161.7 422.4s-.1 0 0 0c-.1 0 0 0 0 0zM-161.4 422.1zM-161.2 421.9zM-161.3 421.9zM-166.1 426.1zM-161.4 422zM-166.3 426.2c-.1 0-.1.1 0 0-.1.1-.1 0 0 0zM-205.8 441zM-205.9 441zM-205.9 441zM-206 441zM-206.1 441zM-166.1 426.1s-.1 0 0 0c-.1 0 0 0 0 0zM-166.2 426.1c0 .1 0 .1 0 0 0 .1 0 .1 0 0zM-166.3 426.2zM-166 426.1s0-.1 0 0c0-.1 0 0 0 0zM-166.3 427.5s-.1.1-.2.1c.1 0 .2 0 .2-.1zM-161.8 422.5zM-225.9 437c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-182.9 432.2c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-208.1 439.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-226.3 436.9zM-226.4 436.8h.1c-.1.1-.1.1-.1 0zM-226.1 436.9h-.1.1zM-162.1 422.8zM-225.9 437h.1-.1zM-162 422.7zM-161.9 422.6zM-226 437s-.1 0 0 0c-.1 0 0 0 0 0zM-182.9 432.2c.1-.1.1-.1 0 0 .1-.1.1-.1 0 0zM-207.6 439.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-182.9 432.2zM-207.6 439.9zM-207.5 440c0-.1 0-.1 0 0 0-.1 0-.1 0 0zM-207.9 439.9h-.1.1zM-207.7 439.9s-.1 0 0 0c-.1 0 0 0 0 0zM-207.8 439.9s-.1 0 0 0c-.1 0 0 0 0 0zM-208 439.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-226.1 437zM-206.6 441zM-206.6 441zM-206.6 441zM-206.5 441zM-206.6 441zM-206.7 441zM-207.4 440zM-207.2 440s-.1 0 0 0c-.1 0 0 0 0 0zM-205 441zM-207.3 440c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-206.2 441zM-206.2 441zM-208.8 439.9h0zM-206.3 441z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-207.2 440s.2 0 .1.3.1.5.5.6c-.1 0-.1-.1-.1-.1s0-.1.1-.2 0-.4-.3-.5c-.1 0-.1 0-.3-.1z\" opacity=\".36\" fill=\"#231F20\" /><path d=\"M-206.1 441zM-206.5 441zM-206.3 441zM-206.5 441zM-206.4 441zM-206.4 441zM-207.3 440zM-225.3 437.3s0-.1 0 0zM-225.2 437.3zM-225.3 437.2zM-208.3 439.9zM-225.2 437.3zM-226.6 436.8h0zM-226.5 436.8zM-225.2 437.3zM-225.4 437.2z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-226.3 437.2c-.3-.2-.4-.5-.4-.5h.1c-.3-.1-.5-.1-.5 0s.1.2.3.2c.1.2.3.3.5.3z\" opacity=\".38\" fill=\"#231F20\" /><path d=\"M-225.3 437.2zM-225.4 437.2zM-225.2 437.3zM-225.8 437.1zM-208.5 439.9c.1 0 .1 0 0 0 .1 0 .1 0 0 0zM-208.6 439.9s.1 0 0 0c.1 0 0 0 0 0zM-225.7 437.1h-.1.1zM-225.5 437.2zM-225.6 437.1zM-225.4 437.2c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-225.5 437.1c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-184 434.4zM-183.2 434.1zM-183.2 434.1zM-183.3 434.1zM-183.3 434.1zM-183.6 434.2zM-183.6 434.3zM-183.3 434.1zM-183.7 434.3zM-183.7 434.3zM-183.6 434.3zM-205.1 441zM-183.7 434.3zM-183.2 432.4zM-183 432.3zM-183.1 432.3z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-183.1 433.8c.2.1.1.2-.1.3h.1s.8-.4.5-.6c-.3-.2-1.1-.3-.6-1-.4.3-.8.7-.5 1 0-.1.1.1.6.3z\" opacity=\".19\" fill=\"#231F20\" /><path d=\"M-183.4 434.2zM-183.4 434.2zM-183.4 434.2zM-183.5 434.2zM-183.5 434.2zM-183.2 432.4c.1 0 .1-.1 0 0 .1-.1.1 0 0 0zM-205.7 441zM-205.6 441zM-205.6 441z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-204 439.9s.4.2 1.7.3h.5s0 .1-.1.1c.1 0 .8-.3.5-.4h-.1-.1-.1c-.1 0-.3 0-.4-.1h-.2s-.5 0-.7-.3c-.1-.2.5-.3.5-.3s1-.2 1.9-.3c0 0-2.5.3-2.8.6-1 .2-.6.4-.6.4z\" opacity=\".25\" fill=\"#231F20\" /><path d=\"M-184 434.4zM-184 434.4zM-205.2 441zM-205.3 441zM-205.4 441zM-205.4 441c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-183.9 434.4s0-.1 0 0c0-.1 0 0 0 0zM-183.9 434.4zM-183.8 434.3zM-183.9 434.4zM-183.8 434.3zM-184 434.4zM-184 434.4zM-181.8 431.6zM-183.9 434.4zM-184 434.4z\" opacity=\".1\" fill=\"#231F20\" /><linearGradient id=\"wikipedia_E\" gradientUnits=\"userSpaceOnUse\" x1=\"160.245\" y1=\"-122.267\" x2=\"255.006\" y2=\"-99.729\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-246.4 418.1l-.1-.1.1.1z\" fill=\"url(#wikipedia_E)\" /><linearGradient id=\"wikipedia_F\" gradientUnits=\"userSpaceOnUse\" x1=\"162.699\" y1=\"-132.563\" x2=\"257.822\" y2=\"-109.938\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-163.6 410l.7.1c2-1.6 3.9-3.6 3.9-3.6s1.3-1.3 1.9-2.4c.2-.4.3-.4.3-.2 0-.1.1-.5 0-.7-.1-.2-.4.3-.8.9-.1 0-2.2 2.9-6 5.9-3.7 2.9-4.7 3.7-8 5.6 0 0-2.3 1-3.9.7-1.2-.3 0-1.5.3-2.7.3-1.1.1-1.6-.2-1.8-.3-.2-.9-.4-2.1-.1 0 0-4.7 1.3-6.8 3.3-1.9 1.9.5 2.6 1 2.9 0 0 .8.3.7.7-.1.3-.5.6-.7.8-.2.2-3.3 2-8.3 2.8-4 .6-3.3.3-7.1.7-3.9.4-5 .7-8.1 1.5-3.1.7-4.9 1.5-5.4 2.3-.3.7.5 1.1 1 1.4.5.3 1.4.8 1.1 1.3-.3.5-1.6 1.3-4.9 1.4-3.2.1-4.6-.3-5.2-1-.5-.6-.1-1.3.1-1.9 0 0 .4-.8.2-1.2-.2-.4-.7-.5-1.3-.6-.5-.1-3.2-.2-5.3-.3-2.4-.1-5.2-.2-8.6-.9 0 0-2.2-.4-3.7-1.3-.1-.1-.2-.1-.3-.2-.1-.1-.2-.1-.3-.2-.4-.4 0-.7-.2-1.2-.1-.4-.4-.9-.9-1.5l-.7-.7c-.1-.1-.2-.1-.3-.2-1.3-1-1.4-1.1-2-1.2-.5 0-.2.9-.1 1.2 0 .1.1.3.2.5-.2-.4-.3-.7-.3-.9.1-.3.3-.3.3-.3s.1-.1.6.3 1.5 1.1 2 1.7c.5.6.5 1.2.5 1.2s-.1.6.5 1.2 1.7 1.7 5.9 2.3h.1l.2-.5.6.7c3.6.5 5.5.6 5.5.6s4.7.2 6 .2c1.3 0 1 .7 1 .7s-.1.4-.2.6c-.2.3-.5 1.4-.1 1.9 0 0 .6 1.4 4.4 1.5 0 0 3.3.3 5.6-.7s.2-2.3.2-2.3-.8-.5-1.1-.7c-.3-.2-.2-.5-.1-.6.1-.2.3-.4.6-.5.3-.1 1.2-.7 5.4-1.7 4.1-1.1 6.6-1.2 6.6-1.2h.1l.3-.7.8.6c.7-.1 1.7-.1 2.5-.2 1.7-.1 4.3-.5 5.9-.8 1.5-.3 3.9-1.1 5.6-2 1.7-.9 1.8-1.5 1.8-1.5s.3-.5-.4-1-1-.4-1.7-1c-.6-.6.6-1.6.6-1.6s.6-.9 4-2.2c3.4-1.3 4-.9 4.2-.7.2.1.2.6.1.9l-.7 2.1c-.2.6-.3 1.4.6 1.6.9.2 2.2 0 3.4-.4 2.9-1 3.8-2.3 8.5-5.8v-.9z\" opacity=\".83\" fill=\"url(#wikipedia_F)\" /><linearGradient id=\"wikipedia_G\" gradientUnits=\"userSpaceOnUse\" x1=\"161.474\" y1=\"-127.42\" x2=\"256.587\" y2=\"-104.797\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-153.1 397.6c-.6 1.2-1.2 2.6-1.4 3.5 0 .2-.1.3-.1.3s-.1.7-.1 1c0 .2.1.3.1.4 0 .1 0 .1.1.1v.1c0 .1 0 .6-.3 1.2-.1.2-.1.4-.2.5 0 .1-.1.1-.1.1-.5.8-1.1 1.5-1.6 1.5-.3 0-.5-.1-.6-.4 0 .4.1.7.3 1 .4.4 1.6-.8 1.6-.8s.7-.8 1-2.1c.4-1.9.2-2.2.2-2.2s-.2-.4-.1-.9c.2-.5 1.2-3 2-4l.5-.6-.2-.5c-.1.1-.3.3-.4.5-.2.5-.4.8-.7 1.3z\" fill=\"url(#wikipedia_G)\" /><linearGradient id=\"wikipedia_H\" gradientUnits=\"userSpaceOnUse\" x1=\"160.775\" y1=\"-124.479\" x2=\"255.87\" y2=\"-101.862\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-243.4 420.8c-.1-.1-.3-.2-.5-.4-.1-.1-.6-.6-1.2-1.1-.2-.2-.4-.4-.6-.5-.3-.3-.5-.5-.7-.6l.1.4s0 .1.1.1c.2.3.9 1.3 2.2 2.3 1.5 1.2 1.6.7 1.6.7s.1-.4-.3-.8c-.1-.1-.1-.2-.2-.3-.1-.1.9 1.4-.5.2z\" fill=\"url(#wikipedia_H)\" /><linearGradient id=\"wikipedia_I\" gradientUnits=\"userSpaceOnUse\" x1=\"160.915\" y1=\"-125.065\" x2=\"256.04\" y2=\"-102.44\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-243.3 420c.1.2.2.4.3.5 0 0-.2-.2-.3-.5z\" fill=\"url(#wikipedia_I)\" /><linearGradient id=\"wikipedia_J\" gradientUnits=\"userSpaceOnUse\" x1=\"162.103\" y1=\"-130.065\" x2=\"257.229\" y2=\"-107.44\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-157.1 405s.2-.8.2-1.1-.5 1.4-.3 2.2c0-.5.1-1.1.1-1.1z\" fill=\"url(#wikipedia_J)\" /><path d=\"M-190.7 354.4l.7.1c1.4-.4 2.6-.8 2.6-.8s1.3-.4 1.9-.6c.6-.2 1.1-.3 1.7-.4.6-.1 1.3-.1 1.7-.1.4 0 .5.1.5.1s.2.1.2.3c.1.1.7 1.9 3 2 2.2.1 2.3-1.1 2.1-1.5-.2-.4-.9-.9-.9-.9s-.9-.6-1.1-.8c-.2-.3 0-.4.1-.4s2.4-.5 2.7-.6l-.6-.2s-.1.1-.8.3c-.7.2-1.2.2-1.7.3-.5.1-.5.2-.5.2l-.1.1c0 .1-.1.3.4.6.5.4 1.2.8 1.4 1 .3.3.6.8 0 1.1-.3.2-.5.2-.8.3h-.6-.2c-.5 0-.7-.1-1.1-.3-.4-.2-.8-.7-.9-1.1-.2-.4-.5-.7-.5-.7-.6-.3-1.7-.3-2.8-.1-1.1.2-2.7.7-2.9.8-.3.1-1.6.6-2.3.7-.7.2-1.2.4-1.6.5-.4.1-3.4 1-4.6 1.3-1.1.3-1.8.5-1.8.5-1.7.2-2.2-.1-2.2-.1-.3-.1-.3-.5-.3-.5v-1.1s0-.4-.4-.6c-.3-.2-.8-.3-1.6-.3s-1.7 0-2.1.1c-.4.1-1.2.3-1.8 1-.6.6-.5 1.1-.5 1.1v.2c.2.2.4.5.9.7 1 .5-1.1 1.3-1.1 1.3-.5.2-1.2.5-2.2.8-2.2.6-3.7.8-3.7.8l.7.3s5.5-1 7.1-2.6c0 0 .6-.3 0-.9-.6-.6-.9-.8-.9-.8s-.4-.2 0-.8c.4-.5.9-.8 1.4-.9.4-.1 1.8-.2 2.9-.1 0 0 .5 0 .5.4s-.1.9-.1 1c0 .2 0 .5.4.8.4.3 1.1.5 1.1.5s1.3.2 2.8-.2c1.6-.4 3.6-1.1 5.4-1.6l.5-.2z\" opacity=\".1\" fill=\"#232323\" /><linearGradient id=\"wikipedia_K\" gradientUnits=\"userSpaceOnUse\" x1=\"158.615\" y1=\"-89.399\" x2=\"247.586\" y2=\"-68.884\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".654\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#CBCCCE\" /></linearGradient><path d=\"M-162.4 363l.3.5c-1.1.5-4 1.3-4.3 1.4-.3.1-.2.2-.2.2 0 .1 1 1.1 1 1.1 1.2 1.2.5 2.3.5 2.3s-.9 1.3-2.8 1.1c-2-.2-2.6-1.8-2.7-2-.1-.3-.2-.8-.2-1.1 0-.3-.3-.3-.3-.3-1.1 0-2.9 1.1-2.9 1.1-.8.5-1.7 1.1-3.5 2-.9.4-1.7.7-2.3.9l-1-.2.1.5h-.1s-2.3.8-4.5 1.6c-2.3.7-3.7.8-3.7.8s-1.3.1-2.3-.3c-.9-.4-1-.9-.9-1.4 0-.5.5-1.4.6-2 .1-.6-.7-.6-.7-.6s-2-.2-3.7.3c-1.7.5-2.5 1.2-2.5 1.2-.9.5-.9 1-.9 1s0 .5.6.9 1.1.5 1.7.7c.7.1.8.3.8.3 1.1.9.4 1.8 0 2.4-.6 1.1-3.7 1.7-3.7 1.7-3.3.8-5.1 1.1-7.8 1.5l-.9-.5-.3.6c-7.1.9-10.1 1.9-11.1 2.1-1 .3-1.3.8-1.4.9-.1.1.1.2.1.2.4.1.6.4.6.4s1.4 1.7 0 3.1c-1.4 1.4-2.8 1.7-2.8 1.7s-2.2.7-4.1.3c-1.9-.4-2.4-1.9-2.4-2.4s.2-1.1.7-1.7c.5-.6.7-.7.7-.7s.4-.3.4-.4c.1-.2-.4-.2-.4-.2-1-.1-3.5-.1-5.8.1-1.4.1-2.8.4-3.6.5l-.2-.5-.5.6-3.1.5c-1.5.2-2.6 0-2.6 0s-1.3-.4-1.5-1.3c-.1-.9.4-1.9.5-2.2.1-.3.5-.9.5-.9s.1-.1.1-.3c0-.2-.2-.5-.2-.5s-.2-.4-.9-.4-.9.1-1.1.4l-.1.1c0-.1 0-.1.1-.2.2-.3.7-.7 1.4-.7s1 .2 1 .2c.7.8.1 1.8-.4 2.8-.1.1-.2.3-.2.5 0 .1-.1.2-.1.2-.4 1.1.3 1.6.7 1.7.4.1 1.1.6 4.3 0 3.1-.6 3.6-.7 3.6-.7s6.1-1.1 9-.4c0 0 1.3.4.3 1.3-1 1-1.7 1.6-1.5 2.4.2.8 1.3 1.9 3.6 1.6 0 0 .8-.1 1.1-.2 1.7-.3 2.9-1.3 2.9-1.3s1-.7.8-1.6c-.2-.9-1-1.2-1-1.2s-.7-.4-.1-1.2c0 0 .1-.7 2.6-1.3 2.4-.6 6.8-1.5 10.6-2 3.5-.4 9.7-1.6 10.9-2.1 1.2-.5 1.5-1.4 1.5-1.7 0-.3.1-.8-1.1-1.1-1.2-.3-1.8-.7-1.9-.8-.2-.1-.5-.5-.5-1.3s1.6-1.7 3.4-2.4c1.8-.6 3.9-.3 3.9-.3 1.9.2.9 2 .9 2-.1.3-.9 1.8.5 2.2 1.5.4 4.2-.3 5.2-.7.8-.3 3.1-1.1 4.7-1.6.4-.1.7-.2.9-.3 1.7-.6 3-1.2 3.8-1.7.8-.5 2.1-1.3 2.1-1.3s1.4-.7 1.8-.8c.5-.1 1.6-.3 1.8.8.2 1.1.6 1.9 1.4 2.3.8.4 2.1.5 3.2-.2 1.2-.8.4-1.9.4-1.9s0-.1-.1-.1c-.2-.3-.4-.5-.5-.6-.4-.5-.7-.8-.7-.8-.3-.4.1-.7.4-.8.4-.1 2.4-.8 2.4-.8 1.2-.4 1.6-.6 2.1-1 .4-.4-.2-1.3-.2-1.4l.6.3c.1.2.3.4.4.5 0 0 .2.5.1.8-.1.1-.3.3-.5.4l-.8-.6z\" fill=\"url(#wikipedia_K)\" /><linearGradient id=\"wikipedia_L\" gradientUnits=\"userSpaceOnUse\" x1=\"136.042\" y1=\"-39.679\" x2=\"136.042\" y2=\"-39.679\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".654\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#CBCCCE\" /></linearGradient><path d=\"M-196.5 442.3c-.1-.1-.1-.1 0 0 0-.1.1-.1.1-.2 0 0-1.2-.1-2.1.1-1 .1-1.9.3-1.9.3l.3.1s.1-.1 1-.2 1.3-.1 1.3-.1.8-.1 1-.1c.2 0 .1.1.1.1s-.1.1.4.1c0 0 .7 0 1.3-.2-.2.1-1.3.3-1.5.1zM-199.5 442.7s.1.3-2.9.4c0 0 1.8.1 3.3-.2 1.1-.2-.4-.2-.4-.2zM-240.9 359.9v.1l.1.1s.3-.5.2-.4c0 0-.1.2-.2.2l-.1.1v-.1zM-243.4 362.5s-.4.5 0 .5l.5-.5s.1-.2.1-.4c.1 0-.4.2-.6.4z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-232.9 373.7c1.2.1 1.5-.1 1.5-.2.3 0 1.5 0 2.9-.2 1.7-.2 3.6-.9 3.6-.9s1.6-.6 2.1-1.2c0 0-.7-.6-1.1-1.1 0 0-.3-.6 0-1 .3-.5.8-1 2.3-1.6 1.5-.6 2.4-.5 2.4-.5s.6 0 1 .4c.4.5.6 1 .6 1s0 .4-.1.6c-.1.3-.2.3-.2.3h.4c.3 0 1.2-.1 2.7-.5 1.5-.4 3.4-1 3.4-1s4.9-1.6 5.4-1.7c.5-.1 1.4-.4 1.4-.4v.1s.4.7.4 1.3v-.1s0 .3-.7.8-1.2.5-1.7.4c-.5 0-.7-.1-.8 0h-.7c-.8.1-1.2.4-1.2.4-1.8 1.1.7 9.3.7 9.3-3.7.5-8.1 1.4-10.6 2-2.4.6-2.6 1.3-2.6 1.3-.5.8.1 1.2.1 1.2s.8.3 1 1.2c.2.9-.8 1.6-.8 1.6s-1.2 1-2.9 1.3c-1.7.3-2.4.4-3.4-.5-.9-.7-.3-1.9.3-2.3.6-.4.9-.9 1-1.1s0-.4 0-.4l-.6-.5c-2-1.3-9.9.1-9.9.1-.2-1.2-.4-1.2-.3-3.1.1-1.2.3-1.8.3-1.8l.1-.2s.4-1.4 1.1-2.4c0 0 .6-.2 1.4-.3l1.5-.3z\" fill=\"#6B6B6B\" /><linearGradient id=\"wikipedia_M\" gradientUnits=\"userSpaceOnUse\" x1=\"-22.768\" y1=\"1549.871\" x2=\"9.619\" y2=\"1549.871\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#696969\" /><stop offset=\".37\" stop-color=\"#2E2E2E\" /><stop offset=\".455\" stop-color=\"#424242\" /><stop offset=\".601\" stop-color=\"#303030\" /><stop offset=\".695\" stop-color=\"#4A4A4A\" /><stop offset=\"1\" stop-color=\"#666\" /></linearGradient><path d=\"M-204.1 366.9s-4.1 1.3-3.9 1.3c0 0-.4.1-.7.2-.3.1-.5.2-.5.2s-3.3 1.2-6.4 1.8c-3.1.6-3-.4-2.7-.8.2-.4.8-1.1-.2-1.3-1-.1-1.8.3-2.2.4-.4.2-3.2 1.4-1.3 2.3 0 0 1.4.6-.4 1.8 0 0-1.8 1.2-5.4 1.8 0 0-.6.1-1.9.1-1.3 0-2.6.2-4.1.7-1.4.4-2 .6-2.7 1.1l.2-.5.2-.5c1.1-.5 3.7-1.3 5.7-1.4 2-.1 2.9-.2 4.7-.6 2.1-.5 2.7-1 2.9-1.2.2-.1.8-.5.5-.6-.4-.2-.9-.7-.9-.7-.2-.3-.4-.4-.2-1 .4-1 2.2-1.6 2.2-1.6s1-.5 2.3-.5c1.3 0 1.3.8 1.3.8s.1.3-.3.8c0 0-.5.6 0 .7.5.1 1.6.2 5.5-1s8.1-2.6 8.1-2.6.2.1.2.3z\" opacity=\".45\" fill=\"url(#wikipedia_M)\" /><linearGradient id=\"wikipedia_N\" gradientUnits=\"userSpaceOnUse\" x1=\"-22.377\" y1=\"1549.063\" x2=\"9.494\" y2=\"1549.063\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#525252\" /><stop offset=\".186\" stop-color=\"#333\" /><stop offset=\".354\" stop-color=\"#AEAEAE\" /><stop offset=\".42\" stop-color=\"#ADADAD\" /><stop offset=\".428\" stop-color=\"#9D9D9D\" /><stop offset=\".443\" stop-color=\"#818181\" /><stop offset=\".461\" stop-color=\"#6A6A6A\" /><stop offset=\".481\" stop-color=\"#585858\" /><stop offset=\".506\" stop-color=\"#4C4C4C\" /><stop offset=\".539\" stop-color=\"#444\" /><stop offset=\".617\" stop-color=\"#424242\" /><stop offset=\".668\" stop-color=\"#454545\" /><stop offset=\"1\" stop-color=\"#BDBDBD\" /></linearGradient><path d=\"M-222.9 371.3c-.5.6-2.1 1.2-2.1 1.2s-1.9.7-3.6.9c-1.6.2-2.8.2-2.8.2h-.1c-.2.1-.5.2-.7.2h-.8s-2.2.4-2.6.6c0 0-.3.4-.3.5-.1.1-.3.6-.3.6 1.1-.5 3.7-1.3 5.7-1.4 2-.1 2.9-.2 4.7-.6 2.1-.5 2.7-1 2.9-1.2.2-.1.8-.5.5-.6-.4-.2-.9-.7-.9-.7-.2-.3-.4-.4-.2-1 .4-1 2.2-1.6 2.2-1.6s1-.5 2.3-.5c1.3 0 1.3.8 1.3.8s.1.3-.3.8c0 0-.5.6 0 .7.5.1 1.6.2 5.5-1s8.1-2.6 8.1-2.6c-.1-.3-.3-.7-.3-.7s-.8.3-1.4.4c-.5.1-5.4 1.7-5.4 1.7s-1.9.6-3.4 1-2.3.5-2.7.5h-.4l.2-.3c.1-.2.1-.6.1-.6s-.2-.5-.6-1c-.4-.5-1-.5-1-.5s-.8-.1-2.4.5c-1.5.6-2 1.2-2.3 1.6-.3.5 0 1 0 1 .5.5 1.2 1.1 1.1 1.1\" fill=\"url(#wikipedia_N)\" /><linearGradient id=\"wikipedia_O\" gradientUnits=\"userSpaceOnUse\" x1=\"-17.084\" y1=\"1559.333\" x2=\"-18.113\" y2=\"1552.527\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#969696\" /><stop offset=\"1\" /></linearGradient><path d=\"M-232.4 381.2s-.1-.3.2-.9c.2-.6.9-.6 1.4-.5.5.1.8.3 1.5-.1.6-.4.5-1.6 0-2.9-.4-1.3-.3-2.1-.3-2.1l-.6-.6-.2.7c0 1.3.7 3.2.8 3.8.2.5.3.8-.7.5-1-.3-1.5.1-1.5.1-1.3.9-1.1 2.2-1.1 2.2l.5-.2z\" opacity=\".2\" fill=\"url(#wikipedia_O)\" /><path d=\"M-226.5 386.6c-.3-1.8-.9-2.7-.9-2.7-.3.2-.5.7-.5.7s.2.2.5 1.6c0 0 .1.1.4.3.3.1.5.1.5.1zM-220.8 382.9s-.8.9-.4 2.3c0 0 .5-.4.6-.7 0 0-.1-.5.1-1 0 0-.1-.4-.3-.6z\" opacity=\".5\" fill=\"#141414\" /><linearGradient id=\"wikipedia_P\" gradientUnits=\"userSpaceOnUse\" x1=\"174.78\" y1=\"-86.053\" x2=\"175.53\" y2=\"-78.469\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#333\" /><stop offset=\".431\" /><stop offset=\"1\" stop-color=\"#2E2E2E\" /></linearGradient><path d=\"M-232.8 381.3c0-1.3.5-1.5.9-1.8.4-.3 1.3 0 1.3 0s.7.2 1-.1c.4-.3 0-1.5-.2-2.1-.2-.7-.4-1.6-.4-2.3 0-.5-.1-.7-.1-.8l-.2.6c0 1.3.7 3.2.8 3.8.2.5.3.8-.7.5-1-.3-1.5.1-1.5.1-1.3.9-1.1 2.2-1.1 2.2l.2-.1z\" opacity=\".18\" fill=\"url(#wikipedia_P)\" /><path d=\"M-227.8 384.3c0 .1.4.6.7 2.1.3.2.5.2.5.2-.3-1.8-.9-2.7-.9-2.7 0 .1-.2.2-.3.4zM-220.8 382.9s-.8.9-.4 2.3c0 0 .1-.1.3-.2v-.1c-.3-1 .3-1.8.3-1.8-.1 0-.2-.1-.2-.2z\" opacity=\".3\" fill=\"#505050\" /><path d=\"M-236.8 358.2h.1c-.2.5-.8 1.1-1.1 1.6-.2.2-.3.6-.5.8.1.1.8-.1.9-.2h.1c0 .1-.5 1-.6 1.1.2 0 .5-.1.6-.2.4-.3.5-.9.8-1.3v-.2c-.2 0-.7 0-.9.2.1-.5.9-1.3 1.1-1.7.5-.6.9-1.3 1.3-1.9.2-.3.6-.6.8-.9.3-.4.6-.9.9-1.1v-.1h-.2c-.2.1-.7.2-.9.4 0 .1 0 .1.1.2-.1.4-.6.7-.8 1-.4.5-.8 1-1.1 1.5-.1.2-.2.4-.4.6-.2.2-.9.2-1.2.4h-.1c.1-.3.9-1.4 1.1-1.6-.4.1-.7.3-1 .5 0 .1 0 .1.1.1-.1.2-.4.4-.5.6-.2.3-.3.6-.5.9v.1c.6-.4 1.7-.7 1.9-.8zm34.7 5.3c.2.1.4.1.6.2h.4c0-.7-.4-.9-.6-1.3-.1-.2-.2-.5-.4-.7.1-.2.7-.3 1-.4.6-.2 1.4-.4 2-.6.3-.1.7-.1.9-.2.1 0 .2 0 .3.1.1.2.3 1.7.2 2.1-.4 1.7-.9 3-1.9 4 .4-.1.6-.4.8-.6 1.1-.8 1.8-2 2.1-3.4.2-.9-.1-1.7.2-2.5-.1-.2-1.1-.6-1.4-.6-.2.2-.4.4-.6.5-.4.2-.8.1-1.1.3-.3 0-.5-.6-.3-.8v-.2c-.2-.2-.8-.2-1.3-.2-.1.1-.3.1-.3.4v.1h.2c.4 0 .4.6.7.8v.1c-.2.1-1.3.5-1.5.5-.2 0-.4-.1-.6-.1-.3 0-.6.2-.8.3.1.2.4.1.6.3.3.6.5 1.3.8 1.9zm7.9-.5c.2.1.2.3.3.5l.6 1.2v.3c.1.3.4.3.6.4.2 0 .2-.1.3-.1-.1-.8-.5-1.4-.8-2-.1-.2-.2-.5-.2-.6 0-.1.1-.2 0-.3l-.2-.2c-.1 0 0 0 0-.1.1-.1.2-.3.3-.4.1-.3.1-.6.4-.8 0-.4-.6-.5-1.1-.4-.1 0-.2.1-.2.1l.2.2c.1 1.2-.7 2.2-1.2 2.9-.2.3-.6.5-.8.8.4 0 1.5-1.1 1.8-1.5zm-47.4 9.8h-.1c-.3.1-.8 1.4-1.3 1.1-.3 0-.3-.1-.5-.2 0-.4.7-1.1.9-1.2 0-.6.2-1.3.1-1.8h-.1c-.1 0-.3.2-.4.3l-.9.9c-.3 0-1.4 0-1.6.1h-.1c.1-.3.9-1.1.6-1.5v-.1c-.7 0-1.6 1.3-1.8 1.8-.1.3-.1.6-.3.8.5-.1 1.1-.1 1.6-.2.2 0 .5.1.6 0h.6c.1-.1.2-.2.3-.4.3-.3.8-.7 1-1.1h.1v.6c-.3.3-.8.7-.9 1.1v.3c-.2.9.2 1.3 1 1.3.5-.4 1.3-.8 1.2-1.8 0 0 0 .1 0 0zm-4.6-.7h-.2c.1-.4.5-.9 1.1-1v.2c-.2.2-.4.5-.6.7-.1.1-.2.1-.3.1zm85.2.2c-.2-.4-.3-.7-.5-1.1-.3-.6-.6-1.4-1.5-1.4-.2.2-.4.3-.6.6-.8 1.8.8 3.7 1.5 4.7.3.3.6.7.9.9-.1 1.4-1.3 1.8-2.5 1.3-.9-.4-1.6-1.2-2.2-2l-.7-.7c-.2-.2-.3-.5-.5-.7h-.1c.1.4.4.8.5 1.2.7 1.5 1.5 2.6 2.8 3.5.6.4 1.6 1.1 2.5.5 1.8-1.2 1.1-5.2.4-6.8zm-.1 1.9c-.1.1-.5-.4-.6-.5-.4-.4-1.3-1.2-.8-2h.2c.4.4.7.8 1 1.3.1.4.1.9.2 1.2 0 0 .1 0 0 0zm-26.2 7.9v-.4c.2-.8.1-1.8.3-2.6.2-1.1-.1-2.1 1-2.4 0-.1.1-.1 0-.2v-.1h-.1c-.3.2-1.1.4-1.5.5-.3.1-.6 0-.9.2h-.1v.2c.5.1.9 0 1.1.4.1.3.1 1.2 0 1.5-.3 1.2-.1 2.5-.4 3.6-.1.4 0 1.2-.2 1.5v.1c-.2-.1-.4-.4-.6-.6-.4-.5-.9-.8-1.2-1.3-.2-.3-.4-.6-.7-.8 0-.8.3-1.6.4-2.3.1-.5.1-1 .4-1.4.1-.2.5-.4.8-.5v-.2-.1c-.5.1-1 .3-1.5.5-.5.1-.9.1-1.3.3V378.3c1.4-.1 1.2.7.9 1.7-.1.3 0 .8-.2 1v.1c-.3-.4-.7-.9-1.1-1.2l-.4-.4c-.1-.1-.2-.3-.3-.4 0-.4.4-.5.7-.7 0-.2-.1-.2-.1-.3-1 .2-1.9.7-3.1.8V379.2c.2 0 .6-.1.8 0 .4.1.8.6 1.1 1 .4.5 1 .9 1.4 1.5.2.3.4.6.7.8 0 .7-.2 1.4-.4 2.1-.1.3 0 .7-.2 1v.1c-.4-.7-1.1-1.3-1.6-1.9-.9-1.2-1.9-2.3-2.9-3.5 0-.2 0-.3.1-.4.1-.2.4-.4.6-.5v-.2-.1c-.8.1-1.5.5-2.3.7-.4.1-.9.1-1.2.3h-.1c0 .2.1.2.1.3.3 0 .6-.1.9 0 .8.2 1.4 1.1 1.8 1.7.2.3.5.5.7.8.8 1.1 1.8 2.1 2.6 3.3.3.4.8.8 1.1 1.3.2 0 .2 0 .3-.1.2-.9.3-1.9.6-2.8.1-.4.3-.9.3-1.4.3.1.6.6.8.9.6.8 1.5 1.5 2.1 2.4.2 0 .2 0 .3-.1.2-1.6.3-2.9.5-4.3zm-62.4 6.8c0 2.5-.1 6.3 1.8 6.8.7.2 1.1-.3 1.3-.6.8-1.2.6-3.4-.2-4.4-.3 0-.8.8-1 1.1h-.1c-.1 0-.1-.1-.2-.1-.1-.9.1-1.8.2-2.7 1 .1 1.9.7 3 .8 0-.2 0-.4.1-.6v-.2c-.1-.1-.9-.3-1.2-.3.1-1.2-.2-2.1-1-2.4-.4-.1-.9-.2-1.3-.2-.2-.1-.3-.3-.5-.4-.1-.4-.1-.8.2-1 0-.1 0-.2-.1-.2-.1.2-.2.5-.3.8-.2 1 .3 1.8.9 2 .4.1.8.1 1.2.2.3.1.5.4.7.6 0 .5-.5.6-.9.4-.6-.2-1.3-.4-2-.6-.2-.1-.3-.2-.6-.2 0 .3-.1.5-.1.8.6.2 1.1.3 1.7.5 0 1.4-.6 3.1.1 4.2.1 0 .1 0 .2.1.8-.1.9-.7 1.3-1.1.3.8.1 2.3-.7 2.5-.3.2-.8-.1-1-.2-.6-.6-.8-1.5-1-2.5-.1-.3 0-1-.1-1.3-.2-.8-.1-1.6-.4-1.8zm95 6.6c-.1-.7.1-1.5-.1-2.1v-.6c-.1-.5-.1-1.1-.2-1.5-.2-.9 0-1.9-.4-2.7-.2 0-.4-.1-.7-.1-.1.1-.2.2-.2.3.1.4.5.4.7.8v.5c.1.6.1 1.3.2 1.9v.5c.1.3.2 1 .1 1.3-.1.4-.6.8-.9 1.1-.8.8-1.6 1.7-3 1.9v.1c0 .5.5.4.8.6h.2c.1-.1.2-.2.3-.4.2-.3.6-.4.8-.7v3.7h.1c.3-1.2.3-2.6.2-4 .5-.5.9-1.2 1.4-1.7v-.1 3.8c0 .4-.1 1.4 0 1.5v.2h.1c.1-.4.1-1 .2-1.5v-.7c.6-.5.5-1.5.4-2.1zm-71 2.6c-.3-.1-.8-.5-1-.8-.6-.9-1.3-2.9-.9-4.5.4-1.3 1.2-2.1 2.5-2.5.7-.2 1.4.1 1.8.3 1.2.6 1.7 1.5 2.1 3 .5 1.9-.1 3.6-1.4 4.2.1.8.2 1.5.2 2.3.4 0 .9-.1 1.2-.2.6-.2 1.3-.2 1.9-.3.4-.1 1.1 0 1.4-.2.1-.2-.2-1.4-.3-1.6-.1-.2 0-.5-.1-.6v-.2h-.3c0 1.2-.8 1-1.8 1.3-.5.1-1 .3-1.6.3v-.5c0-.1.7-.4.9-.5.5-.3.9-.8 1.2-1.3.2-.3.4-.8.5-1.1.1-.5.2-1.2 0-1.7-.1-.3 0-.6-.2-.9-.4-1.2-1.3-2.1-2.5-2.5-.5-.2-1.1-.2-1.7-.4-.5-.1-1.5.1-1.9.2-1.9.6-3.2 1.5-3.8 3.3-.2.7-.2 1.7 0 2.4.5 1.6 1.8 3 3.7 3 .1.1.1.3.1.4v.1c-.2.1-.4.1-.6.1-.5.1-2 .5-2.3.2-.2-.1-.4-.4-.4-.6H-229.3c.1.8.3 1.5.4 2.3 1.4-.2 2.8-.5 4.2-.7-.2-.7-.4-1.5-.6-2.2.2-.1-.2 0-.4-.1zm67.7-4.4c.1.2.3.6.4.7.1.1.1 0 .2.1 1.3.1 1.8-2.1 1.3-3.4-.1-.2-.5-.9-.9-.6h-.1v-.1c0-.2 0-.3-.1-.4h-.2-.1c0 .2.1.2.1.5-.5.6-1.1 2-.6 3.2zm.4-2.1c.1-.2.3-.4.4-.5h.1c.3 0 .4.1.6.2.3.7.3 2-.2 2.5-.1.1-.2.1-.3.2-.8-.2-.9-1.7-.6-2.4zm-18.3 15.6c-.4-.3-.5-1.7-.7-2.3-.3-1.2-.5-2.5-.8-3.7-.2-.8-.5-1.6-.4-2.6.1-.1.2-.3.4-.4.2-.2.6-.2.8-.4v-.2c-.5.1-.9.4-1.3.5-.8.3-1.6.5-2.4.9-.3.1-.5.3-.8.3v.2h.1s1-.4 1.3-.1c.4.1.3.6.5.9-.1.6-.7 1.6-.9 2.1-.6 1.3-1.2 2.6-1.8 3.8-.2.5-.5 1.3-.9 1.7-.2-.3-.2-1.1-.3-1.5-.4-1.2-.6-2.6-1-3.8-.1-.2-.3-1.3-.2-1.5.1-.5.8-.8 1.3-1v-.3c-.7.1-1.4.5-2.1.7-.6.2-1.1.3-1.7.5-.3.1-.6.3-1 .3 0 .1 0 .2.1.2.2.1 1-.4 1.4-.1.6.2.6 1.1.8 1.7.5 1.6.7 3.3 1.2 4.9.1.4.4 1.7.1 2-.1.4-.9.6-1.3.8v.2c.6-.1 1.2-.4 1.7-.6 1.1-.4 2.1-.6 3.1-1v-.3c-.4.1-.8.2-1.4.2-.1-.1-.2-.1-.2-.2-.1-.2-.1-.4-.2-.6 0-.5.7-1.4.9-1.9.7-1.3 1.3-2.6 1.9-4 .2-.5.8-1.3.8-1.9.2.1.1.4.2.7.1.5.2 1 .4 1.5.3 1 .4 2.1.7 3.1.1.4.3 1 .1 1.5-.2.4-.8.7-1.3.8 0 .1 0 .2.1.2 0 0 .9-.3 1.1-.4 1.1-.5 2.2-1 3.4-1.4v-.3c-.7.6-1.3 1-1.7.8zm18.7 3.3c-.1.1-.4.2-.5.3-.5.4-1 1-1.4 1.5-.3.4-.5.8-.8 1.3-.1.2-.1.4-.3.6v.1c.3-.1.5-.3.8-.4.7-.4 1.2-.8 1.9-1.2.3-.2.5-.6.8-.8 0-.5.1-.8-.1-1.2-.1-.2-.2-.2-.4-.2zm-.5 1.4c-.2.2-.5.4-.7.6-.2.1-.5.2-.6.4.1-.4.8-1.1 1.1-1.3l.6-.3h.2l.1.1c-.2.3-.5.4-.7.5zm-85.5 1.6c-.2-.5-.3-1-.4-1.5-.1-.2-.1-.5-.2-.7v-.1c.3.1.7.1.9.2h.2c0-.2-.1-.6-.2-.7-.1-.2-.9-.2-1.1-.4-.3-.2-.6-.9-.8-1.3-.6-.9-1.3-1.8-2.1-2.5-.4-.3-.8-.7-1.5-.7-.1.1-.2.1-.3.2-.2.8.1 2.2.6 2.6v.1c-.2-.1-.4-.2-.5-.3 0 .2.1.5.2.7 0 .2.4.4.6.4.2 1 .6 2.1.9 3 .3.8.4 1.5.8 2.2.2.4.5.6.6 1h.1c-.1-.3-.3-.6-.4-.9-.4-.9-.7-1.8-1-2.7-.2-.6-.3-1.1-.5-1.7-.1-.2 0-.4-.2-.6.3 0 .4.2.6.3.5.2.9.3 1.4.5.4.1.8.3 1.2.4 0 .4.3 1.3.4 1.5v.1c-.6-.4-.6-1-1.7-.9l-.2.2c-.1.2-.1.6 0 .9.3.6 1.1 2 1.7 2.2.3.2.6 0 .8-.2.2.1.3.7.4 1 .2.6.5 1.3 1 1.5h.1c-.1-.4-.3-.9-.5-1.2-.3-.9-.6-1.8-.9-2.6zm-1.1-3.2c-.4 0-.8-.2-1.1-.3-.9-.3-1.7-.6-2.5-1-.1-.4-.8-1.6-.4-2.1l.1-.1h.1c1.2.1 2.4 1.6 3 2.5.3.2.5.7.8 1zm.6 3.4c-.1.1-.2.3-.4.4-.1.1-.2.1-.3.2-.7 0-.7-.7-1-1.1 0-.4.2-.4.3-.6h.2c.6 0 .8.3 1.1.5.1.2.1.3.1.6zm23.3 6.1c-.2-.3-.5-.3-.7-.6h-.1c.5-.3 1.1-.6 1.6-.8.1.2.8.8 1 .7h.1v-.7c-.5-.5-1.2-.9-2.1-1.1.1.3.4.5.6.7v.1c-.5.1-.9.3-1.3.4-.3.1-.6.1-.9.2h-.1c.2-.5.7-.9 1-1.3.6-.8 1-1.7 1.9-2.2 0-.4-1.1-1.1-1.5-.9l-.1.1c-.1.1.1.3.1.6-.1.3-.8 1.7-1 1.9-.4-.1-.7-.5-1.1-.7.1-.4.4-.6.6-.9.5-.7.8-1.3 1.5-1.8 0-.5-.9-1.1-1.4-1.1 0 .2.1.4.1.6-.1.6-.4 1.3-.7 1.9-.2.4-.2.8-.5 1.1-.1 0-.5 0-.6-.1h-.4v.1c.7.6 1.4.9 2.3 1.3-.1.7-.8 1.1-1.1 1.6-.2 0-.3 0-.4-.1h-.2c0 .6.5 1.1 1 1.2.3-.4.7-.5 1.2-.8.4.5.6 1.1.8 1.9.1.3 0 .7 0 1 .2.5.4.7.7 1h.3c.2-.9-.3-1.8-.5-2.6 0-.1-.1-.4-.1-.7zm62.5-6.7c-.2.2-.6.3-.8.5-.4.3-.8.7-1.1.9-.2.1-.4.3-.6.4-.2.3-.2.8-.4 1.1v.2c.3-.1.5-.5.7-.7.3-.2.6-.5.9-.8.2-.1.4-.2.6-.4.1 0 .1 0 .2.1 0 1-.5 1.7-.9 2.5-.1.2-.1.6-.3.7-.1.1-.2.1-.3.2-.3.3-.5.6-.8.9-.3.3-.4.8-.6 1.1v.3s.1.1.2.1c.5-.5 1-.9 1.4-1.5.7-.9 1-2 1.5-3.1.3-.7.7-1.4.7-2.3 0 0-.1-.1-.1-.2h-.3zm-2.8 6.3c0-.4.4-.6.6-.9h.1c-.1.3-.4.7-.7.9zm-59.1.6c-.1.3.8 1.1 1 1.3.1.1.3.3.5.2h.2c0-.1.1-.2 0-.4 0-.5-1.3-1-1.7-1.1zm3.8 3h.2c.1-.1.1-.3.2-.5.2-.2.6-.1.9-.2.8-.2 1.8-.2 2.6-.4.4-.1 1.1.2 1.5 0h.1c0-.5-1-.7-1.5-.6-.2.1-.5.2-.8.3h-.6c-.1-.6-.4-1.1-.4-1.8.6 0 1.3-.1 1.7-.3 0-.2 0-.2-.1-.3-.5-.1-1.2-.1-1.6.1h-.2c-.2-.3-.1-.9-.3-1.1v-.2c.4-.1 1.1-.2 1.3-.5v-.1l-.1-.1c-.6-.2-.9 0-1.4.2-.2-.5 0-1-.5-1.1.1-.2.5-.2.8-.3.4-.1.8-.3 1.1-.5v-.1c0-.2-.1-.2-.2-.3-.6 0-1 0-1.3.3h-.1c0-.3.2-.7.4-.9.1-.2.3-.1.4-.4-.1-.1-.2-.2-.2-.3-.2-.1-.5-.1-.6-.3-.3 0-.5 0-.7.1 0 .2.1.2.1.4.1.4-.3 1.7-.4 1.9-.1.2-1.6.7-1.9.6-.1 0-.4-.2-.4-.2v-.1c.6-.5 1-1.7 1.7-1.9v-.2c-.2-.2-1.1-1.2-1.6-.9h-.1c0 .3.2.6.1.9-.2.7-.6 1.6-.9 2.1-.2.4-.7.7-.7 1.2.6-.1.8-.7 1.3-.9l.4.4c.2.3.2.8.3 1.2.2.9.4 1.7.6 2.6 0 .4.1.8.1 1.3 0 .2.4.8.8.9zm1.2-3c0 .4.3 1.4.4 1.7v.1c-.5.1-1 .2-1.5.2-.1-.6-.4-1.1-.4-1.7.7 0 1-.2 1.5-.3zm-2.3-3.2c.1-.1 1.1-.3 1.2-.2.4.2.3.8.5 1.2-.1.2-1 .5-1.3.5 0-.5-.1-1.3-.4-1.5zm1.9 1.5c.1.4.2 1 .4 1.3-.1.3-1 .3-1.3.5-.1-.1-.3-1.1-.3-1.3.2-.1.9-.4 1.2-.5zm-6.9 2.2c-.1.1-.1.4-.1.5-.3.8-.5 1 .1 1.8.2 0 .3 0 .4-.1.1-.6.2-1.9-.4-2.2zm45.1.2c-1.2-.3-2.1.3-3.3.2-.1-.1-.2-.2-.3-.4-.8 0-1.8 1.9-.9 2.5.5.3 1.7.1 2.3 0 .3-.1.8-.1 1 0 .3.2.3 1.2.2 1.7-.1 1-.3 2-.4 2.9-.1.6-.2 1.2-.4 1.8.6 0 1.2-.6 1.3-1.1.1-.3 0-.5.1-.8.2-.8.2-1.8.4-2.7.1-.6 0-1.1.2-1.6.1-.4.1-1.7 0-2.1.1 0-.1-.2-.2-.4zm-54.1 12c-.1-.1-.2-.3-.4-.4l-1.5-1.2c-.4-.3-1-.5-1.4-.8 0-.1.1-.3 0-.5-.3-.9-1.6-1.9-2.4-2.4-.4-.2-1-.3-1.3-.6-.2 0-.4 0-.4.2-.1.2.2.5.3.7.3.4.6.8.9 1.1.3.2.6.4.8.6h.1c-.2-.4-.6-.7-.9-.9-.3-.2-.4-.6-.7-.9 0-.1 0-.1.1-.2 1.1 0 1.8 1 2.3 1.7.2.3.6.5.6 1h-.4c.2.5.8.5 1.3.8.9.5 1.6 1.4 2.4 2.1.3.2.7.5.8.9-.5 0-.9-.3-1.3-.6-.6-.4-1.6-1.1-2-1.7-.1-.1-.1-.3-.2-.4-.1-.1-.3-.1-.4-.3h-.2c0 .4.4.7.7.9.8.8 1.7 1.4 2.7 2 .4.2 1.1.5 1.5.3 0-.7-.7-1.1-1-1.4zm24.3 2.6c-2-1.4-5-2.8-8.4-2.7-.2.1-.5 0-.7.1-.3.1-.5.2-.7.4 0 1 1.4 1.5 2.3 1.7.5.1.9-.1 1.2-.2.2-.8-.8-.9-1.2-1.3h-.1c3-.1 5.3.7 7 2 .4.3.9.8 1.1 1.3.1.2.1.5 0 .7-.2.4-.7.4-1.2.5-1.2.3-2.8-.4-3.3-.9-.1.2 0 .5-.1.7-.2.5-.8.4-1.3.5-.9.2-2.4-.3-2.9-.6l-.4-.4v-.2c.1-.1.2-.2.2-.3 1.1-.1 1.7 0 2.4.6v.1c-.1.2-.2.2-.5.2v.1c.4 0 .6-.1.8-.2v-.2c-.1-.1-.2-.3-.4-.4-.6-.4-2-.6-2.7-.2-.1.6.2.9.6 1.1.6.5 1.2.8 2.1 1 .3.1.5 0 .9.1.3.1.8.1 1.1 0 .5-.1 1.2-.7.6-1.3.3.1.5.4.8.6.8.4 2 .7 3.2.5.6-.1 1.1-.1 1.3-.6.2-.3-.1-.7-.2-.8-.4-1-.9-1.5-1.5-1.9zm-7.3-1.8c.1.1.2.3.4.4v.2c-.3.7-1.7.2-2.1-.1-.1-.1-.2-.2-.2-.4v-.1c.1-.3.4-.2.7-.4.4.1.9.2 1.2.4zm36.7.4h-.4c-.3.2-.7.2-1 .4-.3.1-.6.3-.8.5-.2.1-.3.4-.5.6 0 .2 0 .2.2.3h.1l.1-.1v-.2c.4-.4.7-.6 1.2-.8.1-.1.4-.2.6-.1h.1c0 .4-.9 1.6-1.2 1.8v.1c.7-.2 1.2-1.6 1.7-2.2-.1-.2 0-.2-.1-.3zm-3.1 2.9c-.2.2-.8.2-1.1.4.1-.1.3-.2.4-.4.1-.1.1-.2.2-.3v-.2c-1.2-.2-3.1.8-3.7 1.3-.2.1-.2.3-.4.5v.2c.7 0 2-.4 2.2-.9v-.1c-.5 0-1.1.1-1.4.4.3-.4 1.2-.7 1.7-.9.2-.1.6-.1.7 0h.1c-.1.4-.7.8-1 .9v.1c.6-.1 1.2-.4 1.7-.6.4-.1.8-.2 1.1-.4.2-.1 1-1.2 1.1-1.5-1 .1-1.1 1-1.6 1.5zm-3.2.8v.1c-.1 0-.1.2-.2.2-.2.1-.5.1-.7.2h-.2c.2-.3.8-.5 1.1-.5zm-16.5 3.7v-.1c-1 0-2-.1-2.9-.1-.1.1-.3 0-.5.1s-.4.1-.6.2v.1c.2.2 1.6.2 1.9 0h.1v-.1c-.4-.1-1.2.2-1.5 0 1.1-.1 2.2 0 3.3 0-.1.1-.3.1-.4.1h-.1v.1c.2 0 .5.1.7.1-.3.2-1.3.1-1.6 0v-.1c-.2-.1-1 .1-1.1.1h-.4c-.2 0-.2 0-.3.1 0 .1 0 .1.1.2.3.1.7.1 1 .2-.1-.1-.6 0-.7-.1h-.1c.1-.1 1.4-.3 1.7-.1h.1c-.2 0-.4.1-.6.1v.1h.3c0 .1-.1.1-.1.2v.1c.6 0 1-.1 1.5-.2.3-.1.6.1.8-.1h.3v-.1c-.5 0-1.9-.1-2.2.2h-.1c.2-.2.5-.1.8-.2.4-.1 1.2-.3 1.5 0 .1.1 0 0 0 .1h.5v-.2c-.4-.1-.9-.3-1.2-.4.1-.1.1-.3-.2-.3zm-40.2-72.9c-.1.3-.3.6-.4.9-.3.6-.5 1.2-.8 1.8-.2.5-.3 1.3-.6 1.7v.1c.4-.1.7-.5.9-.8.6-.6 1.9-2.2 1.9-3.4-.1-.1-.1-.2-.2-.2-.1-.1-.4-.1-.8-.1zm.2 1.6c-.2.3-.3.6-.5.9-.2.3-.5.5-.6.7.1-.3.2-.5.3-.8.2-.6.4-1.1.7-1.6.2 0 .3 0 .4.1l.1.1c-.1.1-.3.5-.4.6zm70.2-12.1c-.4-.4-.7-.9-1.1-1.3-.2.1-.9.7-1 .9-.3-.1-.4-.4-.6-.5-.7-.5-1.3-1.2-2.5-1.1-.1.1-.4.1-.6.2-.5.2-1.1.7-1.3 1.2-.2.6 0 1.5.2 1.9.4.9 1 1.7 1.6 2.4.5.6 1 1.3 1.8 1.5 1 .2 1.4-.9 1.8-1.3.4-.4 1.2-.5 1.5-1.1.1-.2 0-.6 0-.8-.2-.4-1.1-1.6-1.4-1.9 0-.2.1-.2.2-.4.2.1.3.5.5.7.2.3.5.4.8.6.4 0 .6-.1.8-.3-.1-.4-.5-.5-.7-.7zm-2.2 4.2c-.7.2-1-.3-1.4-.7-.9-.9-1.6-2.1-2.3-3.2-.2-.4-.9-1.1-.6-1.7h.2c.2.3.5.5.8.8.6.8 1.3 1.5 1.9 2.3.4.5.8.9 1.1 1.4.2.2.3.6.6.8-.2.1-.3.2-.3.3zm.6-2.8c.3.4.8.7.8 1.5-.1.1-.2.2-.4.3h-.1c-.6-.9-1.4-1.7-2-2.6-.2-.3-.5-.5-.8-.8-.4-.5-.8-.9-1.2-1.3-.1-.1-.2-.3-.3-.4 0-.1 0-.1.1-.1.7 0 1 .5 1.4.8.9.8 1.7 1.7 2.5 2.6z\" opacity=\".88\" fill=\"#231F20\" /><radialGradient id=\"wikipedia_Q\" cx=\"-2.191\" cy=\"1550.361\" r=\"72.751\" gradientTransform=\"translate(-213.764 -1178.502)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-opacity=\"0\" /><stop offset=\".802\" stop-opacity=\".08\" /><stop offset=\"1\" stop-opacity=\".388\" /></radialGradient><path d=\"M-204.1 367c0-.6-.4-1.3-.4-1.3v-.1s-.5-.9-1.3-1.2c-.8-.3-1.5.3-1.5.3s-.1.1-.4.5c-.3.4-.5.7-1.2.9-.7.3-1.4.2-1.7 0-.4-.2-.5-.5-.5-.5s-.2-.7-.3-1c-.1-.3-.3-1.7-.3-1.7s-.5-2.7-.5-3.3c0 0 1.5-.1 3.7-.8 2.3-.7 3-1.2 3-1.2s-.4-.2-.5-.7c-.1-.5-.1-1.2-.1-1.2s-.1-.5.5-1.1c.6-.6 1.4-.9 1.8-1 .4-.1 1.3-.2 2.1-.1.8 0 1.3.1 1.6.3.3.2.4.6.4.6v1.1s0 .4.3.5c0 0 .5.3 2.2.1 0 0 .7-.1 1.8-.5 1.1-.3 4.1-1.2 4.6-1.3.4-.1 1-.3 1.6-.5.7-.2 2-.6 2.3-.7.3-.1 1.8-.6 2.9-.8 1.1-.2 2.2-.2 2.8.1 0 0 .4.3.5.7.2.4.5.9.9 1.1.5.2.8.4 1.9.3 0 0 0-.1-.4-.4-.4-.3-1-.7-1-.7s-.3-.2-.4-.4c-.1-.2 0-.3 0-.3l.9-1.4s0-.2.5-.2c.5-.1 1.1-.1 1.7-.3.7-.2.8-.3.8-.3l.6.2s3.5 2.9 4.7 3.6l.2-.2s.4 0 .8.2 1 .6 1 .6 1.6 1.3 2.1 2.2l.2.7-.1.2s.9 1.3 2.1 2.6c0 0 1.2 1.7 1.7 2.1l-.2-.8.3-.2.2-.1.6.3c3.6 4.8 6.4 10.4 8.1 16.3l-.1.5.4.5c1.1 4.2 1.7 8.6 1.7 13.2 0 1.1 0 2.2-.1 3.3l-.3.5.2.6c-2.2 26.1-24.1 46.6-50.8 46.6-18.5 0-34.7-9.9-43.6-24.6l-.1-.4-.2-.2c-3.4-5.7-5.7-12.2-6.6-19.1l.2-.5-.3-.5c-.2-1.9-.3-3.8-.3-5.8 0-3 .3-5.9.7-8.8l.3-.6-.1-.3c1.2-6 3.4-11.7 6.5-16.8l.7-.4h.1s.2-.2.4-.2h.1s1.2-2 1.6-2.6c0 0 .5-.3.7-.4 0 0 .1 0 .2.1 0 0 .5-.4 1.7-2.1 0 0-.1-.1-.1-.2s.1-.6.2-.7c.1-.1.1-.2.1-.2s1.7-2 3.2-3.2c0 0 .3-.2.7-.3 0 0 1.5-.6 3.3-2.2 0 0 .1-.3.5-.9.4-.6 1.5-1.2 2.2-1.3.8-.2.9 0 .9 0l.1.1.5.8s.6-.3 1.4-.6c.8-.3 1-.3 1-.3l.8 1.3-1 2s-.6 1.4-1.7 2.2c0 0-.5.3-1.1.1s-1.1.3-1.1.3l-.2.1s.1 0 .3-.1c0 0 .2.1.3.2.1.2.9 1.2.9 1.2s0 .8-.4 1.9c-.4 1.1-1.5 2.9-1.5 2.9s-.7 1.4-1.1 2.3c-.3.8-.5 1.8-.5 2.3 0 0 .2.1.7-.2.7-.3 1.1 0 1.1 0s.7.5 1 .9c.3.3.8 1.8.2 3.2 0 0-.4 1-1.4 1.7 0 0-.2.3-1.5.2-.4 0-.6-.3-1.4-.2-.8.1-1.2.8-1.2.8-.7 1-1.2 2.5-1.2 2.5l-.1.2s-.2.5-.3 1.8c-.1 1.3.3 3.1.3 3.1s7.9-1.4 9.9-.1l.6.5v.4c-.1.2-.4.7-1 1.1-.6.4-1.2 1.6-.3 2.3 1 .8 1.7.8 3.4.5 1.7-.3 2.9-1.3 2.9-1.3s1-.7.8-1.6c-.2-.9-1-1.2-1-1.2s-.7-.4-.1-1.2c0 0 .1-.7 2.6-1.3 2.4-.6 6.8-1.5 10.6-2 0 0-2.5-8.2-.7-9.3 0 0 .4-.3 1.2-.4h1.5c.5 0 1 .1 1.7-.4.4-.6.4-.9.4-.9\" opacity=\".38\" fill=\"url(#wikipedia_Q)\" /></symbol>"
  20733. });
  20734. _browserSpriteBuild2.default.add(symbol);
  20735. var WikipediaSpriteSymbolComponent = function (_React$Component) {
  20736. _inherits(WikipediaSpriteSymbolComponent, _React$Component);
  20737. function WikipediaSpriteSymbolComponent() {
  20738. _classCallCheck(this, WikipediaSpriteSymbolComponent);
  20739. return _possibleConstructorReturn(this, (WikipediaSpriteSymbolComponent.__proto__ || Object.getPrototypeOf(WikipediaSpriteSymbolComponent)).apply(this, arguments));
  20740. }
  20741. _createClass(WikipediaSpriteSymbolComponent, [{
  20742. key: "render",
  20743. value: function render() {
  20744. return _react2.default.createElement(_icon2.default, _extends({ glyph: "wikipedia" }, this.props));
  20745. }
  20746. }]);
  20747. return WikipediaSpriteSymbolComponent;
  20748. }(_react2.default.Component);
  20749. exports.default = WikipediaSpriteSymbolComponent;
  20750. /***/ })
  20751. /******/ ]);