react-dom-server-legacy.node.development.js 386 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877
  1. /**
  2. * @license React
  3. * react-dom-server-legacy.node.development.js
  4. *
  5. * Copyright (c) Meta Platforms, Inc. and affiliates.
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE file in the root directory of this source tree.
  9. */
  10. /*
  11. JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
  12. Copyright (c) 2011 Gary Court
  13. Permission is hereby granted, free of charge, to any person obtaining a copy
  14. of this software and associated documentation files (the "Software"), to deal
  15. in the Software without restriction, including without limitation the rights
  16. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  17. copies of the Software, and to permit persons to whom the Software is
  18. furnished to do so, subject to the following conditions:
  19. The above copyright notice and this permission notice shall be included in
  20. all copies or substantial portions of the Software.
  21. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  22. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  23. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  24. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  25. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  26. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  27. SOFTWARE.
  28. */
  29. "use strict";
  30. "production" !== process.env.NODE_ENV &&
  31. (function () {
  32. function styleReplacer(match, prefix, s, suffix) {
  33. return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
  34. }
  35. function scriptReplacer(match, prefix, s, suffix) {
  36. return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
  37. }
  38. function getIteratorFn(maybeIterable) {
  39. if (null === maybeIterable || "object" !== typeof maybeIterable)
  40. return null;
  41. maybeIterable =
  42. (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
  43. maybeIterable["@@iterator"];
  44. return "function" === typeof maybeIterable ? maybeIterable : null;
  45. }
  46. function objectName(object) {
  47. object = Object.prototype.toString.call(object);
  48. return object.slice(8, object.length - 1);
  49. }
  50. function describeKeyForErrorMessage(key) {
  51. var encodedKey = JSON.stringify(key);
  52. return '"' + key + '"' === encodedKey ? key : encodedKey;
  53. }
  54. function describeValueForErrorMessage(value) {
  55. switch (typeof value) {
  56. case "string":
  57. return JSON.stringify(
  58. 10 >= value.length ? value : value.slice(0, 10) + "..."
  59. );
  60. case "object":
  61. if (isArrayImpl(value)) return "[...]";
  62. if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)
  63. return "client";
  64. value = objectName(value);
  65. return "Object" === value ? "{...}" : value;
  66. case "function":
  67. return value.$$typeof === CLIENT_REFERENCE_TAG
  68. ? "client"
  69. : (value = value.displayName || value.name)
  70. ? "function " + value
  71. : "function";
  72. default:
  73. return String(value);
  74. }
  75. }
  76. function describeElementType(type) {
  77. if ("string" === typeof type) return type;
  78. switch (type) {
  79. case REACT_SUSPENSE_TYPE:
  80. return "Suspense";
  81. case REACT_SUSPENSE_LIST_TYPE:
  82. return "SuspenseList";
  83. }
  84. if ("object" === typeof type)
  85. switch (type.$$typeof) {
  86. case REACT_FORWARD_REF_TYPE:
  87. return describeElementType(type.render);
  88. case REACT_MEMO_TYPE:
  89. return describeElementType(type.type);
  90. case REACT_LAZY_TYPE:
  91. var payload = type._payload;
  92. type = type._init;
  93. try {
  94. return describeElementType(type(payload));
  95. } catch (x) {}
  96. }
  97. return "";
  98. }
  99. function describeObjectForErrorMessage(objectOrArray, expandedName) {
  100. var objKind = objectName(objectOrArray);
  101. if ("Object" !== objKind && "Array" !== objKind) return objKind;
  102. var start = -1,
  103. length = 0;
  104. if (isArrayImpl(objectOrArray))
  105. if (jsxChildrenParents.has(objectOrArray)) {
  106. var type = jsxChildrenParents.get(objectOrArray);
  107. objKind = "<" + describeElementType(type) + ">";
  108. for (var i = 0; i < objectOrArray.length; i++) {
  109. var value = objectOrArray[i];
  110. value =
  111. "string" === typeof value
  112. ? value
  113. : "object" === typeof value && null !== value
  114. ? "{" + describeObjectForErrorMessage(value) + "}"
  115. : "{" + describeValueForErrorMessage(value) + "}";
  116. "" + i === expandedName
  117. ? ((start = objKind.length),
  118. (length = value.length),
  119. (objKind += value))
  120. : (objKind =
  121. 15 > value.length && 40 > objKind.length + value.length
  122. ? objKind + value
  123. : objKind + "{...}");
  124. }
  125. objKind += "</" + describeElementType(type) + ">";
  126. } else {
  127. objKind = "[";
  128. for (type = 0; type < objectOrArray.length; type++)
  129. 0 < type && (objKind += ", "),
  130. (i = objectOrArray[type]),
  131. (i =
  132. "object" === typeof i && null !== i
  133. ? describeObjectForErrorMessage(i)
  134. : describeValueForErrorMessage(i)),
  135. "" + type === expandedName
  136. ? ((start = objKind.length),
  137. (length = i.length),
  138. (objKind += i))
  139. : (objKind =
  140. 10 > i.length && 40 > objKind.length + i.length
  141. ? objKind + i
  142. : objKind + "...");
  143. objKind += "]";
  144. }
  145. else if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE)
  146. objKind = "<" + describeElementType(objectOrArray.type) + "/>";
  147. else {
  148. if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) return "client";
  149. if (jsxPropsParents.has(objectOrArray)) {
  150. objKind = jsxPropsParents.get(objectOrArray);
  151. objKind = "<" + (describeElementType(objKind) || "...");
  152. type = Object.keys(objectOrArray);
  153. for (i = 0; i < type.length; i++) {
  154. objKind += " ";
  155. value = type[i];
  156. objKind += describeKeyForErrorMessage(value) + "=";
  157. var _value2 = objectOrArray[value];
  158. var _substr2 =
  159. value === expandedName &&
  160. "object" === typeof _value2 &&
  161. null !== _value2
  162. ? describeObjectForErrorMessage(_value2)
  163. : describeValueForErrorMessage(_value2);
  164. "string" !== typeof _value2 && (_substr2 = "{" + _substr2 + "}");
  165. value === expandedName
  166. ? ((start = objKind.length),
  167. (length = _substr2.length),
  168. (objKind += _substr2))
  169. : (objKind =
  170. 10 > _substr2.length && 40 > objKind.length + _substr2.length
  171. ? objKind + _substr2
  172. : objKind + "...");
  173. }
  174. objKind += ">";
  175. } else {
  176. objKind = "{";
  177. type = Object.keys(objectOrArray);
  178. for (i = 0; i < type.length; i++)
  179. 0 < i && (objKind += ", "),
  180. (value = type[i]),
  181. (objKind += describeKeyForErrorMessage(value) + ": "),
  182. (_value2 = objectOrArray[value]),
  183. (_value2 =
  184. "object" === typeof _value2 && null !== _value2
  185. ? describeObjectForErrorMessage(_value2)
  186. : describeValueForErrorMessage(_value2)),
  187. value === expandedName
  188. ? ((start = objKind.length),
  189. (length = _value2.length),
  190. (objKind += _value2))
  191. : (objKind =
  192. 10 > _value2.length && 40 > objKind.length + _value2.length
  193. ? objKind + _value2
  194. : objKind + "...");
  195. objKind += "}";
  196. }
  197. }
  198. return void 0 === expandedName
  199. ? objKind
  200. : -1 < start && 0 < length
  201. ? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
  202. "\n " + objKind + "\n " + objectOrArray)
  203. : "\n " + objKind;
  204. }
  205. function murmurhash3_32_gc(key, seed) {
  206. var remainder = key.length & 3;
  207. var bytes = key.length - remainder;
  208. var h1 = seed;
  209. for (seed = 0; seed < bytes; ) {
  210. var k1 =
  211. (key.charCodeAt(seed) & 255) |
  212. ((key.charCodeAt(++seed) & 255) << 8) |
  213. ((key.charCodeAt(++seed) & 255) << 16) |
  214. ((key.charCodeAt(++seed) & 255) << 24);
  215. ++seed;
  216. k1 =
  217. (3432918353 * (k1 & 65535) +
  218. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  219. 4294967295;
  220. k1 = (k1 << 15) | (k1 >>> 17);
  221. k1 =
  222. (461845907 * (k1 & 65535) +
  223. (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  224. 4294967295;
  225. h1 ^= k1;
  226. h1 = (h1 << 13) | (h1 >>> 19);
  227. h1 =
  228. (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;
  229. h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);
  230. }
  231. k1 = 0;
  232. switch (remainder) {
  233. case 3:
  234. k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;
  235. case 2:
  236. k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;
  237. case 1:
  238. (k1 ^= key.charCodeAt(seed) & 255),
  239. (k1 =
  240. (3432918353 * (k1 & 65535) +
  241. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  242. 4294967295),
  243. (k1 = (k1 << 15) | (k1 >>> 17)),
  244. (h1 ^=
  245. (461845907 * (k1 & 65535) +
  246. (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  247. 4294967295);
  248. }
  249. h1 ^= key.length;
  250. h1 ^= h1 >>> 16;
  251. h1 =
  252. (2246822507 * (h1 & 65535) +
  253. (((2246822507 * (h1 >>> 16)) & 65535) << 16)) &
  254. 4294967295;
  255. h1 ^= h1 >>> 13;
  256. h1 =
  257. (3266489909 * (h1 & 65535) +
  258. (((3266489909 * (h1 >>> 16)) & 65535) << 16)) &
  259. 4294967295;
  260. return (h1 ^ (h1 >>> 16)) >>> 0;
  261. }
  262. function typeName(value) {
  263. return (
  264. ("function" === typeof Symbol &&
  265. Symbol.toStringTag &&
  266. value[Symbol.toStringTag]) ||
  267. value.constructor.name ||
  268. "Object"
  269. );
  270. }
  271. function willCoercionThrow(value) {
  272. try {
  273. return testStringCoercion(value), !1;
  274. } catch (e) {
  275. return !0;
  276. }
  277. }
  278. function testStringCoercion(value) {
  279. return "" + value;
  280. }
  281. function checkAttributeStringCoercion(value, attributeName) {
  282. if (willCoercionThrow(value))
  283. return (
  284. console.error(
  285. "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
  286. attributeName,
  287. typeName(value)
  288. ),
  289. testStringCoercion(value)
  290. );
  291. }
  292. function checkCSSPropertyStringCoercion(value, propName) {
  293. if (willCoercionThrow(value))
  294. return (
  295. console.error(
  296. "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",
  297. propName,
  298. typeName(value)
  299. ),
  300. testStringCoercion(value)
  301. );
  302. }
  303. function checkHtmlStringCoercion(value) {
  304. if (willCoercionThrow(value))
  305. return (
  306. console.error(
  307. "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",
  308. typeName(value)
  309. ),
  310. testStringCoercion(value)
  311. );
  312. }
  313. function isAttributeNameSafe(attributeName) {
  314. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
  315. return !0;
  316. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))
  317. return !1;
  318. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
  319. return (validatedAttributeNameCache[attributeName] = !0);
  320. illegalAttributeNameCache[attributeName] = !0;
  321. console.error("Invalid attribute name: `%s`", attributeName);
  322. return !1;
  323. }
  324. function checkControlledValueProps(tagName, props) {
  325. hasReadOnlyValue[props.type] ||
  326. props.onChange ||
  327. props.onInput ||
  328. props.readOnly ||
  329. props.disabled ||
  330. null == props.value ||
  331. ("select" === tagName
  332. ? console.error(
  333. "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 `onChange`."
  334. )
  335. : console.error(
  336. "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`."
  337. ));
  338. props.onChange ||
  339. props.readOnly ||
  340. props.disabled ||
  341. null == props.checked ||
  342. console.error(
  343. "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`."
  344. );
  345. }
  346. function validateProperty$1(tagName, name) {
  347. if (
  348. hasOwnProperty.call(warnedProperties$1, name) &&
  349. warnedProperties$1[name]
  350. )
  351. return !0;
  352. if (rARIACamel$1.test(name)) {
  353. tagName = "aria-" + name.slice(4).toLowerCase();
  354. tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
  355. if (null == tagName)
  356. return (
  357. console.error(
  358. "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",
  359. name
  360. ),
  361. (warnedProperties$1[name] = !0)
  362. );
  363. if (name !== tagName)
  364. return (
  365. console.error(
  366. "Invalid ARIA attribute `%s`. Did you mean `%s`?",
  367. name,
  368. tagName
  369. ),
  370. (warnedProperties$1[name] = !0)
  371. );
  372. }
  373. if (rARIA$1.test(name)) {
  374. tagName = name.toLowerCase();
  375. tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
  376. if (null == tagName) return (warnedProperties$1[name] = !0), !1;
  377. name !== tagName &&
  378. (console.error(
  379. "Unknown ARIA attribute `%s`. Did you mean `%s`?",
  380. name,
  381. tagName
  382. ),
  383. (warnedProperties$1[name] = !0));
  384. }
  385. return !0;
  386. }
  387. function validateProperties$2(type, props) {
  388. var invalidProps = [],
  389. key;
  390. for (key in props)
  391. validateProperty$1(type, key) || invalidProps.push(key);
  392. props = invalidProps
  393. .map(function (prop) {
  394. return "`" + prop + "`";
  395. })
  396. .join(", ");
  397. 1 === invalidProps.length
  398. ? console.error(
  399. "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
  400. props,
  401. type
  402. )
  403. : 1 < invalidProps.length &&
  404. console.error(
  405. "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
  406. props,
  407. type
  408. );
  409. }
  410. function validateProperty(tagName, name, value, eventRegistry) {
  411. if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name])
  412. return !0;
  413. var lowerCasedName = name.toLowerCase();
  414. if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)
  415. return (
  416. console.error(
  417. "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."
  418. ),
  419. (warnedProperties[name] = !0)
  420. );
  421. if (
  422. "function" === typeof value &&
  423. (("form" === tagName && "action" === name) ||
  424. ("input" === tagName && "formAction" === name) ||
  425. ("button" === tagName && "formAction" === name))
  426. )
  427. return !0;
  428. if (null != eventRegistry) {
  429. tagName = eventRegistry.possibleRegistrationNames;
  430. if (eventRegistry.registrationNameDependencies.hasOwnProperty(name))
  431. return !0;
  432. eventRegistry = tagName.hasOwnProperty(lowerCasedName)
  433. ? tagName[lowerCasedName]
  434. : null;
  435. if (null != eventRegistry)
  436. return (
  437. console.error(
  438. "Invalid event handler property `%s`. Did you mean `%s`?",
  439. name,
  440. eventRegistry
  441. ),
  442. (warnedProperties[name] = !0)
  443. );
  444. if (EVENT_NAME_REGEX.test(name))
  445. return (
  446. console.error(
  447. "Unknown event handler property `%s`. It will be ignored.",
  448. name
  449. ),
  450. (warnedProperties[name] = !0)
  451. );
  452. } else if (EVENT_NAME_REGEX.test(name))
  453. return (
  454. INVALID_EVENT_NAME_REGEX.test(name) &&
  455. console.error(
  456. "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
  457. name
  458. ),
  459. (warnedProperties[name] = !0)
  460. );
  461. if (rARIA.test(name) || rARIACamel.test(name)) return !0;
  462. if ("innerhtml" === lowerCasedName)
  463. return (
  464. console.error(
  465. "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."
  466. ),
  467. (warnedProperties[name] = !0)
  468. );
  469. if ("aria" === lowerCasedName)
  470. return (
  471. console.error(
  472. "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."
  473. ),
  474. (warnedProperties[name] = !0)
  475. );
  476. if (
  477. "is" === lowerCasedName &&
  478. null !== value &&
  479. void 0 !== value &&
  480. "string" !== typeof value
  481. )
  482. return (
  483. console.error(
  484. "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
  485. typeof value
  486. ),
  487. (warnedProperties[name] = !0)
  488. );
  489. if ("number" === typeof value && isNaN(value))
  490. return (
  491. console.error(
  492. "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
  493. name
  494. ),
  495. (warnedProperties[name] = !0)
  496. );
  497. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  498. if (
  499. ((lowerCasedName = possibleStandardNames[lowerCasedName]),
  500. lowerCasedName !== name)
  501. )
  502. return (
  503. console.error(
  504. "Invalid DOM property `%s`. Did you mean `%s`?",
  505. name,
  506. lowerCasedName
  507. ),
  508. (warnedProperties[name] = !0)
  509. );
  510. } else if (name !== lowerCasedName)
  511. return (
  512. console.error(
  513. "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
  514. name,
  515. lowerCasedName
  516. ),
  517. (warnedProperties[name] = !0)
  518. );
  519. switch (name) {
  520. case "dangerouslySetInnerHTML":
  521. case "children":
  522. case "style":
  523. case "suppressContentEditableWarning":
  524. case "suppressHydrationWarning":
  525. case "defaultValue":
  526. case "defaultChecked":
  527. case "innerHTML":
  528. case "ref":
  529. return !0;
  530. case "innerText":
  531. case "textContent":
  532. return !0;
  533. }
  534. switch (typeof value) {
  535. case "boolean":
  536. switch (name) {
  537. case "autoFocus":
  538. case "checked":
  539. case "multiple":
  540. case "muted":
  541. case "selected":
  542. case "contentEditable":
  543. case "spellCheck":
  544. case "draggable":
  545. case "value":
  546. case "autoReverse":
  547. case "externalResourcesRequired":
  548. case "focusable":
  549. case "preserveAlpha":
  550. case "allowFullScreen":
  551. case "async":
  552. case "autoPlay":
  553. case "controls":
  554. case "default":
  555. case "defer":
  556. case "disabled":
  557. case "disablePictureInPicture":
  558. case "disableRemotePlayback":
  559. case "formNoValidate":
  560. case "hidden":
  561. case "loop":
  562. case "noModule":
  563. case "noValidate":
  564. case "open":
  565. case "playsInline":
  566. case "readOnly":
  567. case "required":
  568. case "reversed":
  569. case "scoped":
  570. case "seamless":
  571. case "itemScope":
  572. case "capture":
  573. case "download":
  574. case "inert":
  575. return !0;
  576. default:
  577. lowerCasedName = name.toLowerCase().slice(0, 5);
  578. if ("data-" === lowerCasedName || "aria-" === lowerCasedName)
  579. return !0;
  580. value
  581. ? console.error(
  582. 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',
  583. value,
  584. name,
  585. name,
  586. value,
  587. name
  588. )
  589. : console.error(
  590. 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',
  591. value,
  592. name,
  593. name,
  594. value,
  595. name,
  596. name,
  597. name
  598. );
  599. return (warnedProperties[name] = !0);
  600. }
  601. case "function":
  602. case "symbol":
  603. return (warnedProperties[name] = !0), !1;
  604. case "string":
  605. if ("false" === value || "true" === value) {
  606. switch (name) {
  607. case "checked":
  608. case "selected":
  609. case "multiple":
  610. case "muted":
  611. case "allowFullScreen":
  612. case "async":
  613. case "autoPlay":
  614. case "controls":
  615. case "default":
  616. case "defer":
  617. case "disabled":
  618. case "disablePictureInPicture":
  619. case "disableRemotePlayback":
  620. case "formNoValidate":
  621. case "hidden":
  622. case "loop":
  623. case "noModule":
  624. case "noValidate":
  625. case "open":
  626. case "playsInline":
  627. case "readOnly":
  628. case "required":
  629. case "reversed":
  630. case "scoped":
  631. case "seamless":
  632. case "itemScope":
  633. case "inert":
  634. break;
  635. default:
  636. return !0;
  637. }
  638. console.error(
  639. "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
  640. value,
  641. name,
  642. "false" === value
  643. ? "The browser will interpret it as a truthy value."
  644. : 'Although this works, it will not work as expected if you pass the string "false".',
  645. name,
  646. value
  647. );
  648. warnedProperties[name] = !0;
  649. }
  650. }
  651. return !0;
  652. }
  653. function warnUnknownProperties(type, props, eventRegistry) {
  654. var unknownProps = [],
  655. key;
  656. for (key in props)
  657. validateProperty(type, key, props[key], eventRegistry) ||
  658. unknownProps.push(key);
  659. props = unknownProps
  660. .map(function (prop) {
  661. return "`" + prop + "`";
  662. })
  663. .join(", ");
  664. 1 === unknownProps.length
  665. ? console.error(
  666. "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",
  667. props,
  668. type
  669. )
  670. : 1 < unknownProps.length &&
  671. console.error(
  672. "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",
  673. props,
  674. type
  675. );
  676. }
  677. function camelize(string) {
  678. return string.replace(hyphenPattern, function (_, character) {
  679. return character.toUpperCase();
  680. });
  681. }
  682. function escapeTextForBrowser(text) {
  683. if (
  684. "boolean" === typeof text ||
  685. "number" === typeof text ||
  686. "bigint" === typeof text
  687. )
  688. return "" + text;
  689. checkHtmlStringCoercion(text);
  690. text = "" + text;
  691. var match = matchHtmlRegExp.exec(text);
  692. if (match) {
  693. var html = "",
  694. index,
  695. lastIndex = 0;
  696. for (index = match.index; index < text.length; index++) {
  697. switch (text.charCodeAt(index)) {
  698. case 34:
  699. match = "&quot;";
  700. break;
  701. case 38:
  702. match = "&amp;";
  703. break;
  704. case 39:
  705. match = "&#x27;";
  706. break;
  707. case 60:
  708. match = "&lt;";
  709. break;
  710. case 62:
  711. match = "&gt;";
  712. break;
  713. default:
  714. continue;
  715. }
  716. lastIndex !== index && (html += text.slice(lastIndex, index));
  717. lastIndex = index + 1;
  718. html += match;
  719. }
  720. text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
  721. }
  722. return text;
  723. }
  724. function sanitizeURL(url) {
  725. return isJavaScriptProtocol.test("" + url)
  726. ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
  727. : url;
  728. }
  729. function escapeEntireInlineScriptContent(scriptText) {
  730. checkHtmlStringCoercion(scriptText);
  731. return ("" + scriptText).replace(scriptRegex, scriptReplacer);
  732. }
  733. function createResumableState(
  734. identifierPrefix,
  735. externalRuntimeConfig,
  736. bootstrapScriptContent,
  737. bootstrapScripts,
  738. bootstrapModules
  739. ) {
  740. return {
  741. idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
  742. nextFormID: 0,
  743. streamingFormat: 0,
  744. bootstrapScriptContent: bootstrapScriptContent,
  745. bootstrapScripts: bootstrapScripts,
  746. bootstrapModules: bootstrapModules,
  747. instructions: NothingSent,
  748. hasBody: !1,
  749. hasHtml: !1,
  750. unknownResources: {},
  751. dnsResources: {},
  752. connectResources: { default: {}, anonymous: {}, credentials: {} },
  753. imageResources: {},
  754. styleResources: {},
  755. scriptResources: {},
  756. moduleUnknownResources: {},
  757. moduleScriptResources: {}
  758. };
  759. }
  760. function createFormatContext(
  761. insertionMode,
  762. selectedValue,
  763. tagScope,
  764. viewTransition
  765. ) {
  766. return {
  767. insertionMode: insertionMode,
  768. selectedValue: selectedValue,
  769. tagScope: tagScope,
  770. viewTransition: viewTransition
  771. };
  772. }
  773. function getChildFormatContext(parentContext, type, props) {
  774. var subtreeScope = parentContext.tagScope & -25;
  775. switch (type) {
  776. case "noscript":
  777. return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
  778. case "select":
  779. return createFormatContext(
  780. HTML_MODE,
  781. null != props.value ? props.value : props.defaultValue,
  782. subtreeScope,
  783. null
  784. );
  785. case "svg":
  786. return createFormatContext(SVG_MODE, null, subtreeScope, null);
  787. case "picture":
  788. return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
  789. case "math":
  790. return createFormatContext(MATHML_MODE, null, subtreeScope, null);
  791. case "foreignObject":
  792. return createFormatContext(HTML_MODE, null, subtreeScope, null);
  793. case "table":
  794. return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
  795. case "thead":
  796. case "tbody":
  797. case "tfoot":
  798. return createFormatContext(
  799. HTML_TABLE_BODY_MODE,
  800. null,
  801. subtreeScope,
  802. null
  803. );
  804. case "colgroup":
  805. return createFormatContext(
  806. HTML_COLGROUP_MODE,
  807. null,
  808. subtreeScope,
  809. null
  810. );
  811. case "tr":
  812. return createFormatContext(
  813. HTML_TABLE_ROW_MODE,
  814. null,
  815. subtreeScope,
  816. null
  817. );
  818. case "head":
  819. if (parentContext.insertionMode < HTML_MODE)
  820. return createFormatContext(
  821. HTML_HEAD_MODE,
  822. null,
  823. subtreeScope,
  824. null
  825. );
  826. break;
  827. case "html":
  828. if (parentContext.insertionMode === ROOT_HTML_MODE)
  829. return createFormatContext(
  830. HTML_HTML_MODE,
  831. null,
  832. subtreeScope,
  833. null
  834. );
  835. }
  836. return parentContext.insertionMode >= HTML_TABLE_MODE ||
  837. parentContext.insertionMode < HTML_MODE
  838. ? createFormatContext(HTML_MODE, null, subtreeScope, null)
  839. : parentContext.tagScope !== subtreeScope
  840. ? createFormatContext(
  841. parentContext.insertionMode,
  842. parentContext.selectedValue,
  843. subtreeScope,
  844. null
  845. )
  846. : parentContext;
  847. }
  848. function getSuspenseViewTransition(parentViewTransition) {
  849. return null === parentViewTransition
  850. ? null
  851. : {
  852. update: parentViewTransition.update,
  853. enter: "none",
  854. exit: "none",
  855. share: parentViewTransition.update,
  856. name: parentViewTransition.autoName,
  857. autoName: parentViewTransition.autoName,
  858. nameIdx: 0
  859. };
  860. }
  861. function getSuspenseFallbackFormatContext(resumableState, parentContext) {
  862. parentContext.tagScope & 32 && (resumableState.instructions |= 128);
  863. return createFormatContext(
  864. parentContext.insertionMode,
  865. parentContext.selectedValue,
  866. parentContext.tagScope | 12,
  867. getSuspenseViewTransition(parentContext.viewTransition)
  868. );
  869. }
  870. function getSuspenseContentFormatContext(resumableState, parentContext) {
  871. resumableState = getSuspenseViewTransition(parentContext.viewTransition);
  872. var subtreeScope = parentContext.tagScope | 16;
  873. null !== resumableState &&
  874. "none" !== resumableState.share &&
  875. (subtreeScope |= 64);
  876. return createFormatContext(
  877. parentContext.insertionMode,
  878. parentContext.selectedValue,
  879. subtreeScope,
  880. resumableState
  881. );
  882. }
  883. function pushStyleAttribute(target, style) {
  884. if ("object" !== typeof style)
  885. throw Error(
  886. "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."
  887. );
  888. var isFirst = !0,
  889. styleName;
  890. for (styleName in style)
  891. if (hasOwnProperty.call(style, styleName)) {
  892. var styleValue = style[styleName];
  893. if (
  894. null != styleValue &&
  895. "boolean" !== typeof styleValue &&
  896. "" !== styleValue
  897. ) {
  898. if (0 === styleName.indexOf("--")) {
  899. var nameChunk = escapeTextForBrowser(styleName);
  900. checkCSSPropertyStringCoercion(styleValue, styleName);
  901. styleValue = escapeTextForBrowser(("" + styleValue).trim());
  902. } else {
  903. nameChunk = styleName;
  904. var value = styleValue;
  905. if (-1 < nameChunk.indexOf("-")) {
  906. var name = nameChunk;
  907. (warnedStyleNames.hasOwnProperty(name) &&
  908. warnedStyleNames[name]) ||
  909. ((warnedStyleNames[name] = !0),
  910. console.error(
  911. "Unsupported style property %s. Did you mean %s?",
  912. name,
  913. camelize(name.replace(msPattern$1, "ms-"))
  914. ));
  915. } else if (badVendoredStyleNamePattern.test(nameChunk))
  916. (name = nameChunk),
  917. (warnedStyleNames.hasOwnProperty(name) &&
  918. warnedStyleNames[name]) ||
  919. ((warnedStyleNames[name] = !0),
  920. console.error(
  921. "Unsupported vendor-prefixed style property %s. Did you mean %s?",
  922. name,
  923. name.charAt(0).toUpperCase() + name.slice(1)
  924. ));
  925. else if (badStyleValueWithSemicolonPattern.test(value)) {
  926. name = nameChunk;
  927. var value$jscomp$0 = value;
  928. (warnedStyleValues.hasOwnProperty(value$jscomp$0) &&
  929. warnedStyleValues[value$jscomp$0]) ||
  930. ((warnedStyleValues[value$jscomp$0] = !0),
  931. console.error(
  932. 'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',
  933. name,
  934. value$jscomp$0.replace(
  935. badStyleValueWithSemicolonPattern,
  936. ""
  937. )
  938. ));
  939. }
  940. "number" === typeof value &&
  941. (isNaN(value)
  942. ? warnedForNaNValue ||
  943. ((warnedForNaNValue = !0),
  944. console.error(
  945. "`NaN` is an invalid value for the `%s` css style property.",
  946. nameChunk
  947. ))
  948. : isFinite(value) ||
  949. warnedForInfinityValue ||
  950. ((warnedForInfinityValue = !0),
  951. console.error(
  952. "`Infinity` is an invalid value for the `%s` css style property.",
  953. nameChunk
  954. )));
  955. nameChunk = styleName;
  956. value = styleNameCache.get(nameChunk);
  957. void 0 !== value
  958. ? (nameChunk = value)
  959. : ((value = escapeTextForBrowser(
  960. nameChunk
  961. .replace(uppercasePattern, "-$1")
  962. .toLowerCase()
  963. .replace(msPattern, "-ms-")
  964. )),
  965. styleNameCache.set(nameChunk, value),
  966. (nameChunk = value));
  967. "number" === typeof styleValue
  968. ? (styleValue =
  969. 0 === styleValue || unitlessNumbers.has(styleName)
  970. ? "" + styleValue
  971. : styleValue + "px")
  972. : (checkCSSPropertyStringCoercion(styleValue, styleName),
  973. (styleValue = escapeTextForBrowser(
  974. ("" + styleValue).trim()
  975. )));
  976. }
  977. isFirst
  978. ? ((isFirst = !1),
  979. target.push(
  980. styleAttributeStart,
  981. nameChunk,
  982. styleAssign,
  983. styleValue
  984. ))
  985. : target.push(styleSeparator, nameChunk, styleAssign, styleValue);
  986. }
  987. }
  988. isFirst || target.push(attributeEnd);
  989. }
  990. function pushBooleanAttribute(target, name, value) {
  991. value &&
  992. "function" !== typeof value &&
  993. "symbol" !== typeof value &&
  994. target.push(attributeSeparator, name, attributeEmptyString);
  995. }
  996. function pushStringAttribute(target, name, value) {
  997. "function" !== typeof value &&
  998. "symbol" !== typeof value &&
  999. "boolean" !== typeof value &&
  1000. target.push(
  1001. attributeSeparator,
  1002. name,
  1003. attributeAssign,
  1004. escapeTextForBrowser(value),
  1005. attributeEnd
  1006. );
  1007. }
  1008. function pushAdditionalFormField(value, key) {
  1009. this.push('<input type="hidden"');
  1010. validateAdditionalFormField(value);
  1011. pushStringAttribute(this, "name", key);
  1012. pushStringAttribute(this, "value", value);
  1013. this.push(endOfStartTagSelfClosing);
  1014. }
  1015. function validateAdditionalFormField(value) {
  1016. if ("string" !== typeof value)
  1017. throw Error(
  1018. "File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration."
  1019. );
  1020. }
  1021. function getCustomFormFields(resumableState, formAction) {
  1022. if ("function" === typeof formAction.$$FORM_ACTION) {
  1023. var id = resumableState.nextFormID++;
  1024. resumableState = resumableState.idPrefix + id;
  1025. try {
  1026. var customFields = formAction.$$FORM_ACTION(resumableState);
  1027. if (customFields) {
  1028. var formData = customFields.data;
  1029. null != formData && formData.forEach(validateAdditionalFormField);
  1030. }
  1031. return customFields;
  1032. } catch (x) {
  1033. if (
  1034. "object" === typeof x &&
  1035. null !== x &&
  1036. "function" === typeof x.then
  1037. )
  1038. throw x;
  1039. console.error(
  1040. "Failed to serialize an action for progressive enhancement:\n%s",
  1041. x
  1042. );
  1043. }
  1044. }
  1045. return null;
  1046. }
  1047. function pushFormActionAttribute(
  1048. target,
  1049. resumableState,
  1050. renderState,
  1051. formAction,
  1052. formEncType,
  1053. formMethod,
  1054. formTarget,
  1055. name
  1056. ) {
  1057. var formData = null;
  1058. if ("function" === typeof formAction) {
  1059. null === name ||
  1060. didWarnFormActionName ||
  1061. ((didWarnFormActionName = !0),
  1062. console.error(
  1063. 'Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.'
  1064. ));
  1065. (null === formEncType && null === formMethod) ||
  1066. didWarnFormActionMethod ||
  1067. ((didWarnFormActionMethod = !0),
  1068. console.error(
  1069. "Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden."
  1070. ));
  1071. null === formTarget ||
  1072. didWarnFormActionTarget ||
  1073. ((didWarnFormActionTarget = !0),
  1074. console.error(
  1075. "Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."
  1076. ));
  1077. var customFields = getCustomFormFields(resumableState, formAction);
  1078. null !== customFields
  1079. ? ((name = customFields.name),
  1080. (formAction = customFields.action || ""),
  1081. (formEncType = customFields.encType),
  1082. (formMethod = customFields.method),
  1083. (formTarget = customFields.target),
  1084. (formData = customFields.data))
  1085. : (target.push(
  1086. attributeSeparator,
  1087. "formAction",
  1088. attributeAssign,
  1089. actionJavaScriptURL,
  1090. attributeEnd
  1091. ),
  1092. (formTarget = formMethod = formEncType = formAction = name = null),
  1093. injectFormReplayingRuntime(resumableState, renderState));
  1094. }
  1095. null != name && pushAttribute(target, "name", name);
  1096. null != formAction && pushAttribute(target, "formAction", formAction);
  1097. null != formEncType && pushAttribute(target, "formEncType", formEncType);
  1098. null != formMethod && pushAttribute(target, "formMethod", formMethod);
  1099. null != formTarget && pushAttribute(target, "formTarget", formTarget);
  1100. return formData;
  1101. }
  1102. function pushAttribute(target, name, value) {
  1103. switch (name) {
  1104. case "className":
  1105. pushStringAttribute(target, "class", value);
  1106. break;
  1107. case "tabIndex":
  1108. pushStringAttribute(target, "tabindex", value);
  1109. break;
  1110. case "dir":
  1111. case "role":
  1112. case "viewBox":
  1113. case "width":
  1114. case "height":
  1115. pushStringAttribute(target, name, value);
  1116. break;
  1117. case "style":
  1118. pushStyleAttribute(target, value);
  1119. break;
  1120. case "src":
  1121. case "href":
  1122. if ("" === value) {
  1123. "src" === name
  1124. ? console.error(
  1125. 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
  1126. name,
  1127. name
  1128. )
  1129. : console.error(
  1130. 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
  1131. name,
  1132. name
  1133. );
  1134. break;
  1135. }
  1136. case "action":
  1137. case "formAction":
  1138. if (
  1139. null == value ||
  1140. "function" === typeof value ||
  1141. "symbol" === typeof value ||
  1142. "boolean" === typeof value
  1143. )
  1144. break;
  1145. checkAttributeStringCoercion(value, name);
  1146. value = sanitizeURL("" + value);
  1147. target.push(
  1148. attributeSeparator,
  1149. name,
  1150. attributeAssign,
  1151. escapeTextForBrowser(value),
  1152. attributeEnd
  1153. );
  1154. break;
  1155. case "defaultValue":
  1156. case "defaultChecked":
  1157. case "innerHTML":
  1158. case "suppressContentEditableWarning":
  1159. case "suppressHydrationWarning":
  1160. case "ref":
  1161. break;
  1162. case "autoFocus":
  1163. case "multiple":
  1164. case "muted":
  1165. pushBooleanAttribute(target, name.toLowerCase(), value);
  1166. break;
  1167. case "xlinkHref":
  1168. if (
  1169. "function" === typeof value ||
  1170. "symbol" === typeof value ||
  1171. "boolean" === typeof value
  1172. )
  1173. break;
  1174. checkAttributeStringCoercion(value, name);
  1175. value = sanitizeURL("" + value);
  1176. target.push(
  1177. attributeSeparator,
  1178. "xlink:href",
  1179. attributeAssign,
  1180. escapeTextForBrowser(value),
  1181. attributeEnd
  1182. );
  1183. break;
  1184. case "contentEditable":
  1185. case "spellCheck":
  1186. case "draggable":
  1187. case "value":
  1188. case "autoReverse":
  1189. case "externalResourcesRequired":
  1190. case "focusable":
  1191. case "preserveAlpha":
  1192. "function" !== typeof value &&
  1193. "symbol" !== typeof value &&
  1194. target.push(
  1195. attributeSeparator,
  1196. name,
  1197. attributeAssign,
  1198. escapeTextForBrowser(value),
  1199. attributeEnd
  1200. );
  1201. break;
  1202. case "inert":
  1203. "" !== value ||
  1204. didWarnForNewBooleanPropsWithEmptyValue[name] ||
  1205. ((didWarnForNewBooleanPropsWithEmptyValue[name] = !0),
  1206. console.error(
  1207. "Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",
  1208. name
  1209. ));
  1210. case "allowFullScreen":
  1211. case "async":
  1212. case "autoPlay":
  1213. case "controls":
  1214. case "default":
  1215. case "defer":
  1216. case "disabled":
  1217. case "disablePictureInPicture":
  1218. case "disableRemotePlayback":
  1219. case "formNoValidate":
  1220. case "hidden":
  1221. case "loop":
  1222. case "noModule":
  1223. case "noValidate":
  1224. case "open":
  1225. case "playsInline":
  1226. case "readOnly":
  1227. case "required":
  1228. case "reversed":
  1229. case "scoped":
  1230. case "seamless":
  1231. case "itemScope":
  1232. value &&
  1233. "function" !== typeof value &&
  1234. "symbol" !== typeof value &&
  1235. target.push(attributeSeparator, name, attributeEmptyString);
  1236. break;
  1237. case "capture":
  1238. case "download":
  1239. !0 === value
  1240. ? target.push(attributeSeparator, name, attributeEmptyString)
  1241. : !1 !== value &&
  1242. "function" !== typeof value &&
  1243. "symbol" !== typeof value &&
  1244. target.push(
  1245. attributeSeparator,
  1246. name,
  1247. attributeAssign,
  1248. escapeTextForBrowser(value),
  1249. attributeEnd
  1250. );
  1251. break;
  1252. case "cols":
  1253. case "rows":
  1254. case "size":
  1255. case "span":
  1256. "function" !== typeof value &&
  1257. "symbol" !== typeof value &&
  1258. !isNaN(value) &&
  1259. 1 <= value &&
  1260. target.push(
  1261. attributeSeparator,
  1262. name,
  1263. attributeAssign,
  1264. escapeTextForBrowser(value),
  1265. attributeEnd
  1266. );
  1267. break;
  1268. case "rowSpan":
  1269. case "start":
  1270. "function" === typeof value ||
  1271. "symbol" === typeof value ||
  1272. isNaN(value) ||
  1273. target.push(
  1274. attributeSeparator,
  1275. name,
  1276. attributeAssign,
  1277. escapeTextForBrowser(value),
  1278. attributeEnd
  1279. );
  1280. break;
  1281. case "xlinkActuate":
  1282. pushStringAttribute(target, "xlink:actuate", value);
  1283. break;
  1284. case "xlinkArcrole":
  1285. pushStringAttribute(target, "xlink:arcrole", value);
  1286. break;
  1287. case "xlinkRole":
  1288. pushStringAttribute(target, "xlink:role", value);
  1289. break;
  1290. case "xlinkShow":
  1291. pushStringAttribute(target, "xlink:show", value);
  1292. break;
  1293. case "xlinkTitle":
  1294. pushStringAttribute(target, "xlink:title", value);
  1295. break;
  1296. case "xlinkType":
  1297. pushStringAttribute(target, "xlink:type", value);
  1298. break;
  1299. case "xmlBase":
  1300. pushStringAttribute(target, "xml:base", value);
  1301. break;
  1302. case "xmlLang":
  1303. pushStringAttribute(target, "xml:lang", value);
  1304. break;
  1305. case "xmlSpace":
  1306. pushStringAttribute(target, "xml:space", value);
  1307. break;
  1308. default:
  1309. if (
  1310. !(2 < name.length) ||
  1311. ("o" !== name[0] && "O" !== name[0]) ||
  1312. ("n" !== name[1] && "N" !== name[1])
  1313. )
  1314. if (
  1315. ((name = aliases.get(name) || name), isAttributeNameSafe(name))
  1316. ) {
  1317. switch (typeof value) {
  1318. case "function":
  1319. case "symbol":
  1320. return;
  1321. case "boolean":
  1322. var prefix = name.toLowerCase().slice(0, 5);
  1323. if ("data-" !== prefix && "aria-" !== prefix) return;
  1324. }
  1325. target.push(
  1326. attributeSeparator,
  1327. name,
  1328. attributeAssign,
  1329. escapeTextForBrowser(value),
  1330. attributeEnd
  1331. );
  1332. }
  1333. }
  1334. }
  1335. function pushInnerHTML(target, innerHTML, children) {
  1336. if (null != innerHTML) {
  1337. if (null != children)
  1338. throw Error(
  1339. "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
  1340. );
  1341. if ("object" !== typeof innerHTML || !("__html" in innerHTML))
  1342. throw Error(
  1343. "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
  1344. );
  1345. innerHTML = innerHTML.__html;
  1346. null !== innerHTML &&
  1347. void 0 !== innerHTML &&
  1348. (checkHtmlStringCoercion(innerHTML), target.push("" + innerHTML));
  1349. }
  1350. }
  1351. function checkSelectProp(props, propName) {
  1352. var value = props[propName];
  1353. null != value &&
  1354. ((value = isArrayImpl(value)),
  1355. props.multiple && !value
  1356. ? console.error(
  1357. "The `%s` prop supplied to <select> must be an array if `multiple` is true.",
  1358. propName
  1359. )
  1360. : !props.multiple &&
  1361. value &&
  1362. console.error(
  1363. "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",
  1364. propName
  1365. ));
  1366. }
  1367. function flattenOptionChildren(children) {
  1368. var content = "";
  1369. React.Children.forEach(children, function (child) {
  1370. null != child &&
  1371. ((content += child),
  1372. didWarnInvalidOptionChildren ||
  1373. "string" === typeof child ||
  1374. "number" === typeof child ||
  1375. "bigint" === typeof child ||
  1376. ((didWarnInvalidOptionChildren = !0),
  1377. console.error(
  1378. "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
  1379. )));
  1380. });
  1381. return content;
  1382. }
  1383. function injectFormReplayingRuntime(resumableState, renderState) {
  1384. if ((resumableState.instructions & 16) === NothingSent) {
  1385. resumableState.instructions |= 16;
  1386. var preamble = renderState.preamble,
  1387. bootstrapChunks = renderState.bootstrapChunks;
  1388. (preamble.htmlChunks || preamble.headChunks) &&
  1389. 0 === bootstrapChunks.length
  1390. ? (bootstrapChunks.push(renderState.startInlineScript),
  1391. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  1392. bootstrapChunks.push(
  1393. endOfStartTag,
  1394. formReplayingRuntimeScript,
  1395. endInlineScript
  1396. ))
  1397. : bootstrapChunks.unshift(
  1398. renderState.startInlineScript,
  1399. endOfStartTag,
  1400. formReplayingRuntimeScript,
  1401. endInlineScript
  1402. );
  1403. }
  1404. }
  1405. function pushLinkImpl(target, props) {
  1406. target.push(startChunkForTag("link"));
  1407. for (var propKey in props)
  1408. if (hasOwnProperty.call(props, propKey)) {
  1409. var propValue = props[propKey];
  1410. if (null != propValue)
  1411. switch (propKey) {
  1412. case "children":
  1413. case "dangerouslySetInnerHTML":
  1414. throw Error(
  1415. "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  1416. );
  1417. default:
  1418. pushAttribute(target, propKey, propValue);
  1419. }
  1420. }
  1421. target.push(endOfStartTagSelfClosing);
  1422. return null;
  1423. }
  1424. function escapeStyleTextContent(styleText) {
  1425. checkHtmlStringCoercion(styleText);
  1426. return ("" + styleText).replace(styleRegex, styleReplacer);
  1427. }
  1428. function pushSelfClosing(target, props, tag) {
  1429. target.push(startChunkForTag(tag));
  1430. for (var propKey in props)
  1431. if (hasOwnProperty.call(props, propKey)) {
  1432. var propValue = props[propKey];
  1433. if (null != propValue)
  1434. switch (propKey) {
  1435. case "children":
  1436. case "dangerouslySetInnerHTML":
  1437. throw Error(
  1438. tag +
  1439. " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  1440. );
  1441. default:
  1442. pushAttribute(target, propKey, propValue);
  1443. }
  1444. }
  1445. target.push(endOfStartTagSelfClosing);
  1446. return null;
  1447. }
  1448. function pushTitleImpl(target, props) {
  1449. target.push(startChunkForTag("title"));
  1450. var children = null,
  1451. innerHTML = null,
  1452. propKey;
  1453. for (propKey in props)
  1454. if (hasOwnProperty.call(props, propKey)) {
  1455. var propValue = props[propKey];
  1456. if (null != propValue)
  1457. switch (propKey) {
  1458. case "children":
  1459. children = propValue;
  1460. break;
  1461. case "dangerouslySetInnerHTML":
  1462. innerHTML = propValue;
  1463. break;
  1464. default:
  1465. pushAttribute(target, propKey, propValue);
  1466. }
  1467. }
  1468. target.push(endOfStartTag);
  1469. props = Array.isArray(children)
  1470. ? 2 > children.length
  1471. ? children[0]
  1472. : null
  1473. : children;
  1474. "function" !== typeof props &&
  1475. "symbol" !== typeof props &&
  1476. null !== props &&
  1477. void 0 !== props &&
  1478. target.push(escapeTextForBrowser("" + props));
  1479. pushInnerHTML(target, innerHTML, children);
  1480. target.push(endChunkForTag("title"));
  1481. return null;
  1482. }
  1483. function pushScriptImpl(target, props) {
  1484. target.push(startChunkForTag("script"));
  1485. var children = null,
  1486. innerHTML = null,
  1487. propKey;
  1488. for (propKey in props)
  1489. if (hasOwnProperty.call(props, propKey)) {
  1490. var propValue = props[propKey];
  1491. if (null != propValue)
  1492. switch (propKey) {
  1493. case "children":
  1494. children = propValue;
  1495. break;
  1496. case "dangerouslySetInnerHTML":
  1497. innerHTML = propValue;
  1498. break;
  1499. default:
  1500. pushAttribute(target, propKey, propValue);
  1501. }
  1502. }
  1503. target.push(endOfStartTag);
  1504. null != children &&
  1505. "string" !== typeof children &&
  1506. ((props =
  1507. "number" === typeof children
  1508. ? "a number for children"
  1509. : Array.isArray(children)
  1510. ? "an array for children"
  1511. : "something unexpected for children"),
  1512. console.error(
  1513. "A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",
  1514. props
  1515. ));
  1516. pushInnerHTML(target, innerHTML, children);
  1517. "string" === typeof children &&
  1518. target.push(escapeEntireInlineScriptContent(children));
  1519. target.push(endChunkForTag("script"));
  1520. return null;
  1521. }
  1522. function pushStartSingletonElement(target, props, tag) {
  1523. target.push(startChunkForTag(tag));
  1524. var innerHTML = (tag = null),
  1525. propKey;
  1526. for (propKey in props)
  1527. if (hasOwnProperty.call(props, propKey)) {
  1528. var propValue = props[propKey];
  1529. if (null != propValue)
  1530. switch (propKey) {
  1531. case "children":
  1532. tag = propValue;
  1533. break;
  1534. case "dangerouslySetInnerHTML":
  1535. innerHTML = propValue;
  1536. break;
  1537. default:
  1538. pushAttribute(target, propKey, propValue);
  1539. }
  1540. }
  1541. target.push(endOfStartTag);
  1542. pushInnerHTML(target, innerHTML, tag);
  1543. return tag;
  1544. }
  1545. function pushStartGenericElement(target, props, tag) {
  1546. target.push(startChunkForTag(tag));
  1547. var innerHTML = (tag = null),
  1548. propKey;
  1549. for (propKey in props)
  1550. if (hasOwnProperty.call(props, propKey)) {
  1551. var propValue = props[propKey];
  1552. if (null != propValue)
  1553. switch (propKey) {
  1554. case "children":
  1555. tag = propValue;
  1556. break;
  1557. case "dangerouslySetInnerHTML":
  1558. innerHTML = propValue;
  1559. break;
  1560. default:
  1561. pushAttribute(target, propKey, propValue);
  1562. }
  1563. }
  1564. target.push(endOfStartTag);
  1565. pushInnerHTML(target, innerHTML, tag);
  1566. return "string" === typeof tag
  1567. ? (target.push(escapeTextForBrowser(tag)), null)
  1568. : tag;
  1569. }
  1570. function startChunkForTag(tag) {
  1571. var tagStartChunk = validatedTagCache.get(tag);
  1572. if (void 0 === tagStartChunk) {
  1573. if (!VALID_TAG_REGEX.test(tag)) throw Error("Invalid tag: " + tag);
  1574. tagStartChunk = "<" + tag;
  1575. validatedTagCache.set(tag, tagStartChunk);
  1576. }
  1577. return tagStartChunk;
  1578. }
  1579. function pushStartInstance(
  1580. target$jscomp$0,
  1581. type,
  1582. props,
  1583. resumableState,
  1584. renderState,
  1585. preambleState,
  1586. hoistableState,
  1587. formatContext,
  1588. textEmbedded
  1589. ) {
  1590. validateProperties$2(type, props);
  1591. ("input" !== type && "textarea" !== type && "select" !== type) ||
  1592. null == props ||
  1593. null !== props.value ||
  1594. didWarnValueNull ||
  1595. ((didWarnValueNull = !0),
  1596. "select" === type && props.multiple
  1597. ? console.error(
  1598. "`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",
  1599. type
  1600. )
  1601. : console.error(
  1602. "`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
  1603. type
  1604. ));
  1605. b: if (-1 === type.indexOf("-")) var JSCompiler_inline_result = !1;
  1606. else
  1607. switch (type) {
  1608. case "annotation-xml":
  1609. case "color-profile":
  1610. case "font-face":
  1611. case "font-face-src":
  1612. case "font-face-uri":
  1613. case "font-face-format":
  1614. case "font-face-name":
  1615. case "missing-glyph":
  1616. JSCompiler_inline_result = !1;
  1617. break b;
  1618. default:
  1619. JSCompiler_inline_result = !0;
  1620. }
  1621. JSCompiler_inline_result ||
  1622. "string" === typeof props.is ||
  1623. warnUnknownProperties(type, props, null);
  1624. !props.suppressContentEditableWarning &&
  1625. props.contentEditable &&
  1626. null != props.children &&
  1627. console.error(
  1628. "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."
  1629. );
  1630. formatContext.insertionMode !== SVG_MODE &&
  1631. formatContext.insertionMode !== MATHML_MODE &&
  1632. -1 === type.indexOf("-") &&
  1633. type.toLowerCase() !== type &&
  1634. console.error(
  1635. "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",
  1636. type
  1637. );
  1638. switch (type) {
  1639. case "div":
  1640. case "span":
  1641. case "svg":
  1642. case "path":
  1643. break;
  1644. case "a":
  1645. target$jscomp$0.push(startChunkForTag("a"));
  1646. var children = null,
  1647. innerHTML = null,
  1648. propKey;
  1649. for (propKey in props)
  1650. if (hasOwnProperty.call(props, propKey)) {
  1651. var propValue = props[propKey];
  1652. if (null != propValue)
  1653. switch (propKey) {
  1654. case "children":
  1655. children = propValue;
  1656. break;
  1657. case "dangerouslySetInnerHTML":
  1658. innerHTML = propValue;
  1659. break;
  1660. case "href":
  1661. "" === propValue
  1662. ? pushStringAttribute(target$jscomp$0, "href", "")
  1663. : pushAttribute(target$jscomp$0, propKey, propValue);
  1664. break;
  1665. default:
  1666. pushAttribute(target$jscomp$0, propKey, propValue);
  1667. }
  1668. }
  1669. target$jscomp$0.push(endOfStartTag);
  1670. pushInnerHTML(target$jscomp$0, innerHTML, children);
  1671. if ("string" === typeof children) {
  1672. target$jscomp$0.push(escapeTextForBrowser(children));
  1673. var JSCompiler_inline_result$jscomp$0 = null;
  1674. } else JSCompiler_inline_result$jscomp$0 = children;
  1675. return JSCompiler_inline_result$jscomp$0;
  1676. case "g":
  1677. case "p":
  1678. case "li":
  1679. break;
  1680. case "select":
  1681. checkControlledValueProps("select", props);
  1682. checkSelectProp(props, "value");
  1683. checkSelectProp(props, "defaultValue");
  1684. void 0 === props.value ||
  1685. void 0 === props.defaultValue ||
  1686. didWarnDefaultSelectValue ||
  1687. (console.error(
  1688. "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://react.dev/link/controlled-components"
  1689. ),
  1690. (didWarnDefaultSelectValue = !0));
  1691. target$jscomp$0.push(startChunkForTag("select"));
  1692. var children$jscomp$0 = null,
  1693. innerHTML$jscomp$0 = null,
  1694. propKey$jscomp$0;
  1695. for (propKey$jscomp$0 in props)
  1696. if (hasOwnProperty.call(props, propKey$jscomp$0)) {
  1697. var propValue$jscomp$0 = props[propKey$jscomp$0];
  1698. if (null != propValue$jscomp$0)
  1699. switch (propKey$jscomp$0) {
  1700. case "children":
  1701. children$jscomp$0 = propValue$jscomp$0;
  1702. break;
  1703. case "dangerouslySetInnerHTML":
  1704. innerHTML$jscomp$0 = propValue$jscomp$0;
  1705. break;
  1706. case "defaultValue":
  1707. case "value":
  1708. break;
  1709. default:
  1710. pushAttribute(
  1711. target$jscomp$0,
  1712. propKey$jscomp$0,
  1713. propValue$jscomp$0
  1714. );
  1715. }
  1716. }
  1717. target$jscomp$0.push(endOfStartTag);
  1718. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
  1719. return children$jscomp$0;
  1720. case "option":
  1721. var selectedValue = formatContext.selectedValue;
  1722. target$jscomp$0.push(startChunkForTag("option"));
  1723. var children$jscomp$1 = null,
  1724. value = null,
  1725. selected = null,
  1726. innerHTML$jscomp$1 = null,
  1727. propKey$jscomp$1;
  1728. for (propKey$jscomp$1 in props)
  1729. if (hasOwnProperty.call(props, propKey$jscomp$1)) {
  1730. var propValue$jscomp$1 = props[propKey$jscomp$1];
  1731. if (null != propValue$jscomp$1)
  1732. switch (propKey$jscomp$1) {
  1733. case "children":
  1734. children$jscomp$1 = propValue$jscomp$1;
  1735. break;
  1736. case "selected":
  1737. selected = propValue$jscomp$1;
  1738. didWarnSelectedSetOnOption ||
  1739. (console.error(
  1740. "Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."
  1741. ),
  1742. (didWarnSelectedSetOnOption = !0));
  1743. break;
  1744. case "dangerouslySetInnerHTML":
  1745. innerHTML$jscomp$1 = propValue$jscomp$1;
  1746. break;
  1747. case "value":
  1748. value = propValue$jscomp$1;
  1749. default:
  1750. pushAttribute(
  1751. target$jscomp$0,
  1752. propKey$jscomp$1,
  1753. propValue$jscomp$1
  1754. );
  1755. }
  1756. }
  1757. if (null != selectedValue) {
  1758. if (null !== value) {
  1759. checkAttributeStringCoercion(value, "value");
  1760. var stringValue = "" + value;
  1761. } else
  1762. null === innerHTML$jscomp$1 ||
  1763. didWarnInvalidOptionInnerHTML ||
  1764. ((didWarnInvalidOptionInnerHTML = !0),
  1765. console.error(
  1766. "Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."
  1767. )),
  1768. (stringValue = flattenOptionChildren(children$jscomp$1));
  1769. if (isArrayImpl(selectedValue))
  1770. for (var i = 0; i < selectedValue.length; i++) {
  1771. if (
  1772. (checkAttributeStringCoercion(selectedValue[i], "value"),
  1773. "" + selectedValue[i] === stringValue)
  1774. ) {
  1775. target$jscomp$0.push(' selected=""');
  1776. break;
  1777. }
  1778. }
  1779. else
  1780. checkAttributeStringCoercion(selectedValue, "select.value"),
  1781. "" + selectedValue === stringValue &&
  1782. target$jscomp$0.push(' selected=""');
  1783. } else selected && target$jscomp$0.push(' selected=""');
  1784. target$jscomp$0.push(endOfStartTag);
  1785. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1);
  1786. return children$jscomp$1;
  1787. case "textarea":
  1788. checkControlledValueProps("textarea", props);
  1789. void 0 === props.value ||
  1790. void 0 === props.defaultValue ||
  1791. didWarnDefaultTextareaValue ||
  1792. (console.error(
  1793. "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://react.dev/link/controlled-components"
  1794. ),
  1795. (didWarnDefaultTextareaValue = !0));
  1796. target$jscomp$0.push(startChunkForTag("textarea"));
  1797. var value$jscomp$0 = null,
  1798. defaultValue = null,
  1799. children$jscomp$2 = null,
  1800. propKey$jscomp$2;
  1801. for (propKey$jscomp$2 in props)
  1802. if (hasOwnProperty.call(props, propKey$jscomp$2)) {
  1803. var propValue$jscomp$2 = props[propKey$jscomp$2];
  1804. if (null != propValue$jscomp$2)
  1805. switch (propKey$jscomp$2) {
  1806. case "children":
  1807. children$jscomp$2 = propValue$jscomp$2;
  1808. break;
  1809. case "value":
  1810. value$jscomp$0 = propValue$jscomp$2;
  1811. break;
  1812. case "defaultValue":
  1813. defaultValue = propValue$jscomp$2;
  1814. break;
  1815. case "dangerouslySetInnerHTML":
  1816. throw Error(
  1817. "`dangerouslySetInnerHTML` does not make sense on <textarea>."
  1818. );
  1819. default:
  1820. pushAttribute(
  1821. target$jscomp$0,
  1822. propKey$jscomp$2,
  1823. propValue$jscomp$2
  1824. );
  1825. }
  1826. }
  1827. null === value$jscomp$0 &&
  1828. null !== defaultValue &&
  1829. (value$jscomp$0 = defaultValue);
  1830. target$jscomp$0.push(endOfStartTag);
  1831. if (null != children$jscomp$2) {
  1832. console.error(
  1833. "Use the `defaultValue` or `value` props instead of setting children on <textarea>."
  1834. );
  1835. if (null != value$jscomp$0)
  1836. throw Error(
  1837. "If you supply `defaultValue` on a <textarea>, do not pass children."
  1838. );
  1839. if (isArrayImpl(children$jscomp$2)) {
  1840. if (1 < children$jscomp$2.length)
  1841. throw Error("<textarea> can only have at most one child.");
  1842. checkHtmlStringCoercion(children$jscomp$2[0]);
  1843. value$jscomp$0 = "" + children$jscomp$2[0];
  1844. }
  1845. checkHtmlStringCoercion(children$jscomp$2);
  1846. value$jscomp$0 = "" + children$jscomp$2;
  1847. }
  1848. "string" === typeof value$jscomp$0 &&
  1849. "\n" === value$jscomp$0[0] &&
  1850. target$jscomp$0.push(leadingNewline);
  1851. null !== value$jscomp$0 &&
  1852. (checkAttributeStringCoercion(value$jscomp$0, "value"),
  1853. target$jscomp$0.push(escapeTextForBrowser("" + value$jscomp$0)));
  1854. return null;
  1855. case "input":
  1856. checkControlledValueProps("input", props);
  1857. target$jscomp$0.push(startChunkForTag("input"));
  1858. var name = null,
  1859. formAction = null,
  1860. formEncType = null,
  1861. formMethod = null,
  1862. formTarget = null,
  1863. value$jscomp$1 = null,
  1864. defaultValue$jscomp$0 = null,
  1865. checked = null,
  1866. defaultChecked = null,
  1867. propKey$jscomp$3;
  1868. for (propKey$jscomp$3 in props)
  1869. if (hasOwnProperty.call(props, propKey$jscomp$3)) {
  1870. var propValue$jscomp$3 = props[propKey$jscomp$3];
  1871. if (null != propValue$jscomp$3)
  1872. switch (propKey$jscomp$3) {
  1873. case "children":
  1874. case "dangerouslySetInnerHTML":
  1875. throw Error(
  1876. "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  1877. );
  1878. case "name":
  1879. name = propValue$jscomp$3;
  1880. break;
  1881. case "formAction":
  1882. formAction = propValue$jscomp$3;
  1883. break;
  1884. case "formEncType":
  1885. formEncType = propValue$jscomp$3;
  1886. break;
  1887. case "formMethod":
  1888. formMethod = propValue$jscomp$3;
  1889. break;
  1890. case "formTarget":
  1891. formTarget = propValue$jscomp$3;
  1892. break;
  1893. case "defaultChecked":
  1894. defaultChecked = propValue$jscomp$3;
  1895. break;
  1896. case "defaultValue":
  1897. defaultValue$jscomp$0 = propValue$jscomp$3;
  1898. break;
  1899. case "checked":
  1900. checked = propValue$jscomp$3;
  1901. break;
  1902. case "value":
  1903. value$jscomp$1 = propValue$jscomp$3;
  1904. break;
  1905. default:
  1906. pushAttribute(
  1907. target$jscomp$0,
  1908. propKey$jscomp$3,
  1909. propValue$jscomp$3
  1910. );
  1911. }
  1912. }
  1913. null === formAction ||
  1914. "image" === props.type ||
  1915. "submit" === props.type ||
  1916. didWarnFormActionType ||
  1917. ((didWarnFormActionType = !0),
  1918. console.error(
  1919. 'An input can only specify a formAction along with type="submit" or type="image".'
  1920. ));
  1921. var formData = pushFormActionAttribute(
  1922. target$jscomp$0,
  1923. resumableState,
  1924. renderState,
  1925. formAction,
  1926. formEncType,
  1927. formMethod,
  1928. formTarget,
  1929. name
  1930. );
  1931. null === checked ||
  1932. null === defaultChecked ||
  1933. didWarnDefaultChecked ||
  1934. (console.error(
  1935. "%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://react.dev/link/controlled-components",
  1936. "A component",
  1937. props.type
  1938. ),
  1939. (didWarnDefaultChecked = !0));
  1940. null === value$jscomp$1 ||
  1941. null === defaultValue$jscomp$0 ||
  1942. didWarnDefaultInputValue ||
  1943. (console.error(
  1944. "%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://react.dev/link/controlled-components",
  1945. "A component",
  1946. props.type
  1947. ),
  1948. (didWarnDefaultInputValue = !0));
  1949. null !== checked
  1950. ? pushBooleanAttribute(target$jscomp$0, "checked", checked)
  1951. : null !== defaultChecked &&
  1952. pushBooleanAttribute(target$jscomp$0, "checked", defaultChecked);
  1953. null !== value$jscomp$1
  1954. ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
  1955. : null !== defaultValue$jscomp$0 &&
  1956. pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
  1957. target$jscomp$0.push(endOfStartTagSelfClosing);
  1958. null != formData &&
  1959. formData.forEach(pushAdditionalFormField, target$jscomp$0);
  1960. return null;
  1961. case "button":
  1962. target$jscomp$0.push(startChunkForTag("button"));
  1963. var children$jscomp$3 = null,
  1964. innerHTML$jscomp$2 = null,
  1965. name$jscomp$0 = null,
  1966. formAction$jscomp$0 = null,
  1967. formEncType$jscomp$0 = null,
  1968. formMethod$jscomp$0 = null,
  1969. formTarget$jscomp$0 = null,
  1970. propKey$jscomp$4;
  1971. for (propKey$jscomp$4 in props)
  1972. if (hasOwnProperty.call(props, propKey$jscomp$4)) {
  1973. var propValue$jscomp$4 = props[propKey$jscomp$4];
  1974. if (null != propValue$jscomp$4)
  1975. switch (propKey$jscomp$4) {
  1976. case "children":
  1977. children$jscomp$3 = propValue$jscomp$4;
  1978. break;
  1979. case "dangerouslySetInnerHTML":
  1980. innerHTML$jscomp$2 = propValue$jscomp$4;
  1981. break;
  1982. case "name":
  1983. name$jscomp$0 = propValue$jscomp$4;
  1984. break;
  1985. case "formAction":
  1986. formAction$jscomp$0 = propValue$jscomp$4;
  1987. break;
  1988. case "formEncType":
  1989. formEncType$jscomp$0 = propValue$jscomp$4;
  1990. break;
  1991. case "formMethod":
  1992. formMethod$jscomp$0 = propValue$jscomp$4;
  1993. break;
  1994. case "formTarget":
  1995. formTarget$jscomp$0 = propValue$jscomp$4;
  1996. break;
  1997. default:
  1998. pushAttribute(
  1999. target$jscomp$0,
  2000. propKey$jscomp$4,
  2001. propValue$jscomp$4
  2002. );
  2003. }
  2004. }
  2005. null === formAction$jscomp$0 ||
  2006. null == props.type ||
  2007. "submit" === props.type ||
  2008. didWarnFormActionType ||
  2009. ((didWarnFormActionType = !0),
  2010. console.error(
  2011. 'A button can only specify a formAction along with type="submit" or no type.'
  2012. ));
  2013. var formData$jscomp$0 = pushFormActionAttribute(
  2014. target$jscomp$0,
  2015. resumableState,
  2016. renderState,
  2017. formAction$jscomp$0,
  2018. formEncType$jscomp$0,
  2019. formMethod$jscomp$0,
  2020. formTarget$jscomp$0,
  2021. name$jscomp$0
  2022. );
  2023. target$jscomp$0.push(endOfStartTag);
  2024. null != formData$jscomp$0 &&
  2025. formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
  2026. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$2, children$jscomp$3);
  2027. if ("string" === typeof children$jscomp$3) {
  2028. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$3));
  2029. var JSCompiler_inline_result$jscomp$1 = null;
  2030. } else JSCompiler_inline_result$jscomp$1 = children$jscomp$3;
  2031. return JSCompiler_inline_result$jscomp$1;
  2032. case "form":
  2033. target$jscomp$0.push(startChunkForTag("form"));
  2034. var children$jscomp$4 = null,
  2035. innerHTML$jscomp$3 = null,
  2036. formAction$jscomp$1 = null,
  2037. formEncType$jscomp$1 = null,
  2038. formMethod$jscomp$1 = null,
  2039. formTarget$jscomp$1 = null,
  2040. propKey$jscomp$5;
  2041. for (propKey$jscomp$5 in props)
  2042. if (hasOwnProperty.call(props, propKey$jscomp$5)) {
  2043. var propValue$jscomp$5 = props[propKey$jscomp$5];
  2044. if (null != propValue$jscomp$5)
  2045. switch (propKey$jscomp$5) {
  2046. case "children":
  2047. children$jscomp$4 = propValue$jscomp$5;
  2048. break;
  2049. case "dangerouslySetInnerHTML":
  2050. innerHTML$jscomp$3 = propValue$jscomp$5;
  2051. break;
  2052. case "action":
  2053. formAction$jscomp$1 = propValue$jscomp$5;
  2054. break;
  2055. case "encType":
  2056. formEncType$jscomp$1 = propValue$jscomp$5;
  2057. break;
  2058. case "method":
  2059. formMethod$jscomp$1 = propValue$jscomp$5;
  2060. break;
  2061. case "target":
  2062. formTarget$jscomp$1 = propValue$jscomp$5;
  2063. break;
  2064. default:
  2065. pushAttribute(
  2066. target$jscomp$0,
  2067. propKey$jscomp$5,
  2068. propValue$jscomp$5
  2069. );
  2070. }
  2071. }
  2072. var formData$jscomp$1 = null,
  2073. formActionName = null;
  2074. if ("function" === typeof formAction$jscomp$1) {
  2075. (null === formEncType$jscomp$1 && null === formMethod$jscomp$1) ||
  2076. didWarnFormActionMethod ||
  2077. ((didWarnFormActionMethod = !0),
  2078. console.error(
  2079. "Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden."
  2080. ));
  2081. null === formTarget$jscomp$1 ||
  2082. didWarnFormActionTarget ||
  2083. ((didWarnFormActionTarget = !0),
  2084. console.error(
  2085. "Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."
  2086. ));
  2087. var customFields = getCustomFormFields(
  2088. resumableState,
  2089. formAction$jscomp$1
  2090. );
  2091. null !== customFields
  2092. ? ((formAction$jscomp$1 = customFields.action || ""),
  2093. (formEncType$jscomp$1 = customFields.encType),
  2094. (formMethod$jscomp$1 = customFields.method),
  2095. (formTarget$jscomp$1 = customFields.target),
  2096. (formData$jscomp$1 = customFields.data),
  2097. (formActionName = customFields.name))
  2098. : (target$jscomp$0.push(
  2099. attributeSeparator,
  2100. "action",
  2101. attributeAssign,
  2102. actionJavaScriptURL,
  2103. attributeEnd
  2104. ),
  2105. (formTarget$jscomp$1 =
  2106. formMethod$jscomp$1 =
  2107. formEncType$jscomp$1 =
  2108. formAction$jscomp$1 =
  2109. null),
  2110. injectFormReplayingRuntime(resumableState, renderState));
  2111. }
  2112. null != formAction$jscomp$1 &&
  2113. pushAttribute(target$jscomp$0, "action", formAction$jscomp$1);
  2114. null != formEncType$jscomp$1 &&
  2115. pushAttribute(target$jscomp$0, "encType", formEncType$jscomp$1);
  2116. null != formMethod$jscomp$1 &&
  2117. pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
  2118. null != formTarget$jscomp$1 &&
  2119. pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
  2120. target$jscomp$0.push(endOfStartTag);
  2121. null !== formActionName &&
  2122. (target$jscomp$0.push('<input type="hidden"'),
  2123. pushStringAttribute(target$jscomp$0, "name", formActionName),
  2124. target$jscomp$0.push(endOfStartTagSelfClosing),
  2125. null != formData$jscomp$1 &&
  2126. formData$jscomp$1.forEach(
  2127. pushAdditionalFormField,
  2128. target$jscomp$0
  2129. ));
  2130. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$3, children$jscomp$4);
  2131. if ("string" === typeof children$jscomp$4) {
  2132. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$4));
  2133. var JSCompiler_inline_result$jscomp$2 = null;
  2134. } else JSCompiler_inline_result$jscomp$2 = children$jscomp$4;
  2135. return JSCompiler_inline_result$jscomp$2;
  2136. case "menuitem":
  2137. target$jscomp$0.push(startChunkForTag("menuitem"));
  2138. for (var propKey$jscomp$6 in props)
  2139. if (hasOwnProperty.call(props, propKey$jscomp$6)) {
  2140. var propValue$jscomp$6 = props[propKey$jscomp$6];
  2141. if (null != propValue$jscomp$6)
  2142. switch (propKey$jscomp$6) {
  2143. case "children":
  2144. case "dangerouslySetInnerHTML":
  2145. throw Error(
  2146. "menuitems cannot have `children` nor `dangerouslySetInnerHTML`."
  2147. );
  2148. default:
  2149. pushAttribute(
  2150. target$jscomp$0,
  2151. propKey$jscomp$6,
  2152. propValue$jscomp$6
  2153. );
  2154. }
  2155. }
  2156. target$jscomp$0.push(endOfStartTag);
  2157. return null;
  2158. case "object":
  2159. target$jscomp$0.push(startChunkForTag("object"));
  2160. var children$jscomp$5 = null,
  2161. innerHTML$jscomp$4 = null,
  2162. propKey$jscomp$7;
  2163. for (propKey$jscomp$7 in props)
  2164. if (hasOwnProperty.call(props, propKey$jscomp$7)) {
  2165. var propValue$jscomp$7 = props[propKey$jscomp$7];
  2166. if (null != propValue$jscomp$7)
  2167. switch (propKey$jscomp$7) {
  2168. case "children":
  2169. children$jscomp$5 = propValue$jscomp$7;
  2170. break;
  2171. case "dangerouslySetInnerHTML":
  2172. innerHTML$jscomp$4 = propValue$jscomp$7;
  2173. break;
  2174. case "data":
  2175. checkAttributeStringCoercion(propValue$jscomp$7, "data");
  2176. var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
  2177. if ("" === sanitizedValue) {
  2178. console.error(
  2179. 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
  2180. propKey$jscomp$7,
  2181. propKey$jscomp$7
  2182. );
  2183. break;
  2184. }
  2185. target$jscomp$0.push(
  2186. attributeSeparator,
  2187. "data",
  2188. attributeAssign,
  2189. escapeTextForBrowser(sanitizedValue),
  2190. attributeEnd
  2191. );
  2192. break;
  2193. default:
  2194. pushAttribute(
  2195. target$jscomp$0,
  2196. propKey$jscomp$7,
  2197. propValue$jscomp$7
  2198. );
  2199. }
  2200. }
  2201. target$jscomp$0.push(endOfStartTag);
  2202. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
  2203. if ("string" === typeof children$jscomp$5) {
  2204. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
  2205. var JSCompiler_inline_result$jscomp$3 = null;
  2206. } else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
  2207. return JSCompiler_inline_result$jscomp$3;
  2208. case "title":
  2209. var noscriptTagInScope = formatContext.tagScope & 1,
  2210. isFallback = formatContext.tagScope & 4;
  2211. if (hasOwnProperty.call(props, "children")) {
  2212. var children$jscomp$6 = props.children,
  2213. child = Array.isArray(children$jscomp$6)
  2214. ? 2 > children$jscomp$6.length
  2215. ? children$jscomp$6[0]
  2216. : null
  2217. : children$jscomp$6;
  2218. Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
  2219. ? console.error(
  2220. "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
  2221. children$jscomp$6.length
  2222. )
  2223. : "function" === typeof child || "symbol" === typeof child
  2224. ? console.error(
  2225. "React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",
  2226. "function" === typeof child ? "a Function" : "a Sybmol"
  2227. )
  2228. : child &&
  2229. child.toString === {}.toString &&
  2230. (null != child.$$typeof
  2231. ? console.error(
  2232. "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."
  2233. )
  2234. : console.error(
  2235. "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."
  2236. ));
  2237. }
  2238. if (
  2239. formatContext.insertionMode === SVG_MODE ||
  2240. noscriptTagInScope ||
  2241. null != props.itemProp
  2242. )
  2243. var JSCompiler_inline_result$jscomp$4 = pushTitleImpl(
  2244. target$jscomp$0,
  2245. props
  2246. );
  2247. else
  2248. isFallback
  2249. ? (JSCompiler_inline_result$jscomp$4 = null)
  2250. : (pushTitleImpl(renderState.hoistableChunks, props),
  2251. (JSCompiler_inline_result$jscomp$4 = void 0));
  2252. return JSCompiler_inline_result$jscomp$4;
  2253. case "link":
  2254. var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
  2255. isFallback$jscomp$0 = formatContext.tagScope & 4,
  2256. rel = props.rel,
  2257. href = props.href,
  2258. precedence = props.precedence;
  2259. if (
  2260. formatContext.insertionMode === SVG_MODE ||
  2261. noscriptTagInScope$jscomp$0 ||
  2262. null != props.itemProp ||
  2263. "string" !== typeof rel ||
  2264. "string" !== typeof href ||
  2265. "" === href
  2266. ) {
  2267. "stylesheet" === rel &&
  2268. "string" === typeof props.precedence &&
  2269. (("string" === typeof href && href) ||
  2270. console.error(
  2271. 'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',
  2272. null === href
  2273. ? "`null`"
  2274. : void 0 === href
  2275. ? "`undefined`"
  2276. : "" === href
  2277. ? "an empty string"
  2278. : 'something with type "' + typeof href + '"'
  2279. ));
  2280. pushLinkImpl(target$jscomp$0, props);
  2281. var JSCompiler_inline_result$jscomp$5 = null;
  2282. } else if ("stylesheet" === props.rel)
  2283. if (
  2284. "string" !== typeof precedence ||
  2285. null != props.disabled ||
  2286. props.onLoad ||
  2287. props.onError
  2288. ) {
  2289. if ("string" === typeof precedence)
  2290. if (null != props.disabled)
  2291. console.error(
  2292. 'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.'
  2293. );
  2294. else if (props.onLoad || props.onError) {
  2295. var propDescription =
  2296. props.onLoad && props.onError
  2297. ? "`onLoad` and `onError` props"
  2298. : props.onLoad
  2299. ? "`onLoad` prop"
  2300. : "`onError` prop";
  2301. console.error(
  2302. 'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',
  2303. propDescription,
  2304. propDescription
  2305. );
  2306. }
  2307. JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
  2308. target$jscomp$0,
  2309. props
  2310. );
  2311. } else {
  2312. var styleQueue = renderState.styles.get(precedence),
  2313. resourceState = resumableState.styleResources.hasOwnProperty(
  2314. href
  2315. )
  2316. ? resumableState.styleResources[href]
  2317. : void 0;
  2318. if (resourceState !== EXISTS) {
  2319. resumableState.styleResources[href] = EXISTS;
  2320. styleQueue ||
  2321. ((styleQueue = {
  2322. precedence: escapeTextForBrowser(precedence),
  2323. rules: [],
  2324. hrefs: [],
  2325. sheets: new Map()
  2326. }),
  2327. renderState.styles.set(precedence, styleQueue));
  2328. var resource = {
  2329. state: PENDING$1,
  2330. props: assign({}, props, {
  2331. "data-precedence": props.precedence,
  2332. precedence: null
  2333. })
  2334. };
  2335. if (resourceState) {
  2336. 2 === resourceState.length &&
  2337. adoptPreloadCredentials(resource.props, resourceState);
  2338. var preloadResource =
  2339. renderState.preloads.stylesheets.get(href);
  2340. preloadResource && 0 < preloadResource.length
  2341. ? (preloadResource.length = 0)
  2342. : (resource.state = PRELOADED);
  2343. }
  2344. styleQueue.sheets.set(href, resource);
  2345. hoistableState && hoistableState.stylesheets.add(resource);
  2346. } else if (styleQueue) {
  2347. var _resource = styleQueue.sheets.get(href);
  2348. _resource &&
  2349. hoistableState &&
  2350. hoistableState.stylesheets.add(_resource);
  2351. }
  2352. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  2353. JSCompiler_inline_result$jscomp$5 = null;
  2354. }
  2355. else
  2356. props.onLoad || props.onError
  2357. ? (JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
  2358. target$jscomp$0,
  2359. props
  2360. ))
  2361. : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
  2362. (JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
  2363. ? null
  2364. : pushLinkImpl(renderState.hoistableChunks, props)));
  2365. return JSCompiler_inline_result$jscomp$5;
  2366. case "script":
  2367. var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
  2368. asyncProp = props.async;
  2369. if (
  2370. "string" !== typeof props.src ||
  2371. !props.src ||
  2372. !asyncProp ||
  2373. "function" === typeof asyncProp ||
  2374. "symbol" === typeof asyncProp ||
  2375. props.onLoad ||
  2376. props.onError ||
  2377. formatContext.insertionMode === SVG_MODE ||
  2378. noscriptTagInScope$jscomp$1 ||
  2379. null != props.itemProp
  2380. )
  2381. var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
  2382. target$jscomp$0,
  2383. props
  2384. );
  2385. else {
  2386. var key = props.src;
  2387. if ("module" === props.type) {
  2388. var resources = resumableState.moduleScriptResources;
  2389. var preloads = renderState.preloads.moduleScripts;
  2390. } else
  2391. (resources = resumableState.scriptResources),
  2392. (preloads = renderState.preloads.scripts);
  2393. var resourceState$jscomp$0 = resources.hasOwnProperty(key)
  2394. ? resources[key]
  2395. : void 0;
  2396. if (resourceState$jscomp$0 !== EXISTS) {
  2397. resources[key] = EXISTS;
  2398. var scriptProps = props;
  2399. if (resourceState$jscomp$0) {
  2400. 2 === resourceState$jscomp$0.length &&
  2401. ((scriptProps = assign({}, props)),
  2402. adoptPreloadCredentials(scriptProps, resourceState$jscomp$0));
  2403. var preloadResource$jscomp$0 = preloads.get(key);
  2404. preloadResource$jscomp$0 &&
  2405. (preloadResource$jscomp$0.length = 0);
  2406. }
  2407. var resource$jscomp$0 = [];
  2408. renderState.scripts.add(resource$jscomp$0);
  2409. pushScriptImpl(resource$jscomp$0, scriptProps);
  2410. }
  2411. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  2412. JSCompiler_inline_result$jscomp$6 = null;
  2413. }
  2414. return JSCompiler_inline_result$jscomp$6;
  2415. case "style":
  2416. var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
  2417. if (hasOwnProperty.call(props, "children")) {
  2418. var children$jscomp$7 = props.children,
  2419. child$jscomp$0 = Array.isArray(children$jscomp$7)
  2420. ? 2 > children$jscomp$7.length
  2421. ? children$jscomp$7[0]
  2422. : null
  2423. : children$jscomp$7;
  2424. ("function" === typeof child$jscomp$0 ||
  2425. "symbol" === typeof child$jscomp$0 ||
  2426. Array.isArray(child$jscomp$0)) &&
  2427. console.error(
  2428. "React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",
  2429. "function" === typeof child$jscomp$0
  2430. ? "a Function"
  2431. : "symbol" === typeof child$jscomp$0
  2432. ? "a Sybmol"
  2433. : "an Array"
  2434. );
  2435. }
  2436. var precedence$jscomp$0 = props.precedence,
  2437. href$jscomp$0 = props.href,
  2438. nonce = props.nonce;
  2439. if (
  2440. formatContext.insertionMode === SVG_MODE ||
  2441. noscriptTagInScope$jscomp$2 ||
  2442. null != props.itemProp ||
  2443. "string" !== typeof precedence$jscomp$0 ||
  2444. "string" !== typeof href$jscomp$0 ||
  2445. "" === href$jscomp$0
  2446. ) {
  2447. target$jscomp$0.push(startChunkForTag("style"));
  2448. var children$jscomp$8 = null,
  2449. innerHTML$jscomp$5 = null,
  2450. propKey$jscomp$8;
  2451. for (propKey$jscomp$8 in props)
  2452. if (hasOwnProperty.call(props, propKey$jscomp$8)) {
  2453. var propValue$jscomp$8 = props[propKey$jscomp$8];
  2454. if (null != propValue$jscomp$8)
  2455. switch (propKey$jscomp$8) {
  2456. case "children":
  2457. children$jscomp$8 = propValue$jscomp$8;
  2458. break;
  2459. case "dangerouslySetInnerHTML":
  2460. innerHTML$jscomp$5 = propValue$jscomp$8;
  2461. break;
  2462. default:
  2463. pushAttribute(
  2464. target$jscomp$0,
  2465. propKey$jscomp$8,
  2466. propValue$jscomp$8
  2467. );
  2468. }
  2469. }
  2470. target$jscomp$0.push(endOfStartTag);
  2471. var child$jscomp$1 = Array.isArray(children$jscomp$8)
  2472. ? 2 > children$jscomp$8.length
  2473. ? children$jscomp$8[0]
  2474. : null
  2475. : children$jscomp$8;
  2476. "function" !== typeof child$jscomp$1 &&
  2477. "symbol" !== typeof child$jscomp$1 &&
  2478. null !== child$jscomp$1 &&
  2479. void 0 !== child$jscomp$1 &&
  2480. target$jscomp$0.push(escapeStyleTextContent(child$jscomp$1));
  2481. pushInnerHTML(
  2482. target$jscomp$0,
  2483. innerHTML$jscomp$5,
  2484. children$jscomp$8
  2485. );
  2486. target$jscomp$0.push(endChunkForTag("style"));
  2487. var JSCompiler_inline_result$jscomp$7 = null;
  2488. } else {
  2489. href$jscomp$0.includes(" ") &&
  2490. console.error(
  2491. 'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',
  2492. href$jscomp$0
  2493. );
  2494. var styleQueue$jscomp$0 =
  2495. renderState.styles.get(precedence$jscomp$0),
  2496. resourceState$jscomp$1 =
  2497. resumableState.styleResources.hasOwnProperty(href$jscomp$0)
  2498. ? resumableState.styleResources[href$jscomp$0]
  2499. : void 0;
  2500. if (resourceState$jscomp$1 !== EXISTS) {
  2501. resumableState.styleResources[href$jscomp$0] = EXISTS;
  2502. resourceState$jscomp$1 &&
  2503. console.error(
  2504. 'React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',
  2505. href$jscomp$0
  2506. );
  2507. styleQueue$jscomp$0 ||
  2508. ((styleQueue$jscomp$0 = {
  2509. precedence: escapeTextForBrowser(precedence$jscomp$0),
  2510. rules: [],
  2511. hrefs: [],
  2512. sheets: new Map()
  2513. }),
  2514. renderState.styles.set(
  2515. precedence$jscomp$0,
  2516. styleQueue$jscomp$0
  2517. ));
  2518. var nonceStyle = renderState.nonce.style;
  2519. if (nonceStyle && nonceStyle !== nonce)
  2520. console.error(
  2521. 'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',
  2522. precedence$jscomp$0,
  2523. nonce,
  2524. nonceStyle
  2525. );
  2526. else {
  2527. !nonceStyle &&
  2528. nonce &&
  2529. console.error(
  2530. 'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',
  2531. precedence$jscomp$0,
  2532. nonce
  2533. );
  2534. styleQueue$jscomp$0.hrefs.push(
  2535. escapeTextForBrowser(href$jscomp$0)
  2536. );
  2537. var target = styleQueue$jscomp$0.rules,
  2538. children$jscomp$9 = null,
  2539. innerHTML$jscomp$6 = null,
  2540. propKey$jscomp$9;
  2541. for (propKey$jscomp$9 in props)
  2542. if (hasOwnProperty.call(props, propKey$jscomp$9)) {
  2543. var propValue$jscomp$9 = props[propKey$jscomp$9];
  2544. if (null != propValue$jscomp$9)
  2545. switch (propKey$jscomp$9) {
  2546. case "children":
  2547. children$jscomp$9 = propValue$jscomp$9;
  2548. break;
  2549. case "dangerouslySetInnerHTML":
  2550. innerHTML$jscomp$6 = propValue$jscomp$9;
  2551. }
  2552. }
  2553. var child$jscomp$2 = Array.isArray(children$jscomp$9)
  2554. ? 2 > children$jscomp$9.length
  2555. ? children$jscomp$9[0]
  2556. : null
  2557. : children$jscomp$9;
  2558. "function" !== typeof child$jscomp$2 &&
  2559. "symbol" !== typeof child$jscomp$2 &&
  2560. null !== child$jscomp$2 &&
  2561. void 0 !== child$jscomp$2 &&
  2562. target.push(escapeStyleTextContent(child$jscomp$2));
  2563. pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
  2564. }
  2565. }
  2566. styleQueue$jscomp$0 &&
  2567. hoistableState &&
  2568. hoistableState.styles.add(styleQueue$jscomp$0);
  2569. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  2570. JSCompiler_inline_result$jscomp$7 = void 0;
  2571. }
  2572. return JSCompiler_inline_result$jscomp$7;
  2573. case "meta":
  2574. var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
  2575. isFallback$jscomp$1 = formatContext.tagScope & 4;
  2576. if (
  2577. formatContext.insertionMode === SVG_MODE ||
  2578. noscriptTagInScope$jscomp$3 ||
  2579. null != props.itemProp
  2580. )
  2581. var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
  2582. target$jscomp$0,
  2583. props,
  2584. "meta"
  2585. );
  2586. else
  2587. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
  2588. (JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
  2589. ? null
  2590. : "string" === typeof props.charSet
  2591. ? pushSelfClosing(renderState.charsetChunks, props, "meta")
  2592. : "viewport" === props.name
  2593. ? pushSelfClosing(renderState.viewportChunks, props, "meta")
  2594. : pushSelfClosing(
  2595. renderState.hoistableChunks,
  2596. props,
  2597. "meta"
  2598. ));
  2599. return JSCompiler_inline_result$jscomp$8;
  2600. case "listing":
  2601. case "pre":
  2602. target$jscomp$0.push(startChunkForTag(type));
  2603. var children$jscomp$10 = null,
  2604. innerHTML$jscomp$7 = null,
  2605. propKey$jscomp$10;
  2606. for (propKey$jscomp$10 in props)
  2607. if (hasOwnProperty.call(props, propKey$jscomp$10)) {
  2608. var propValue$jscomp$10 = props[propKey$jscomp$10];
  2609. if (null != propValue$jscomp$10)
  2610. switch (propKey$jscomp$10) {
  2611. case "children":
  2612. children$jscomp$10 = propValue$jscomp$10;
  2613. break;
  2614. case "dangerouslySetInnerHTML":
  2615. innerHTML$jscomp$7 = propValue$jscomp$10;
  2616. break;
  2617. default:
  2618. pushAttribute(
  2619. target$jscomp$0,
  2620. propKey$jscomp$10,
  2621. propValue$jscomp$10
  2622. );
  2623. }
  2624. }
  2625. target$jscomp$0.push(endOfStartTag);
  2626. if (null != innerHTML$jscomp$7) {
  2627. if (null != children$jscomp$10)
  2628. throw Error(
  2629. "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
  2630. );
  2631. if (
  2632. "object" !== typeof innerHTML$jscomp$7 ||
  2633. !("__html" in innerHTML$jscomp$7)
  2634. )
  2635. throw Error(
  2636. "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
  2637. );
  2638. var html = innerHTML$jscomp$7.__html;
  2639. null !== html &&
  2640. void 0 !== html &&
  2641. ("string" === typeof html && 0 < html.length && "\n" === html[0]
  2642. ? target$jscomp$0.push(leadingNewline, html)
  2643. : (checkHtmlStringCoercion(html),
  2644. target$jscomp$0.push("" + html)));
  2645. }
  2646. "string" === typeof children$jscomp$10 &&
  2647. "\n" === children$jscomp$10[0] &&
  2648. target$jscomp$0.push(leadingNewline);
  2649. return children$jscomp$10;
  2650. case "img":
  2651. var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
  2652. src = props.src,
  2653. srcSet = props.srcSet;
  2654. if (
  2655. !(
  2656. "lazy" === props.loading ||
  2657. (!src && !srcSet) ||
  2658. ("string" !== typeof src && null != src) ||
  2659. ("string" !== typeof srcSet && null != srcSet) ||
  2660. "low" === props.fetchPriority ||
  2661. pictureOrNoScriptTagInScope
  2662. ) &&
  2663. ("string" !== typeof src ||
  2664. ":" !== src[4] ||
  2665. ("d" !== src[0] && "D" !== src[0]) ||
  2666. ("a" !== src[1] && "A" !== src[1]) ||
  2667. ("t" !== src[2] && "T" !== src[2]) ||
  2668. ("a" !== src[3] && "A" !== src[3])) &&
  2669. ("string" !== typeof srcSet ||
  2670. ":" !== srcSet[4] ||
  2671. ("d" !== srcSet[0] && "D" !== srcSet[0]) ||
  2672. ("a" !== srcSet[1] && "A" !== srcSet[1]) ||
  2673. ("t" !== srcSet[2] && "T" !== srcSet[2]) ||
  2674. ("a" !== srcSet[3] && "A" !== srcSet[3]))
  2675. ) {
  2676. null !== hoistableState &&
  2677. formatContext.tagScope & 64 &&
  2678. (hoistableState.suspenseyImages = !0);
  2679. var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
  2680. key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
  2681. promotablePreloads = renderState.preloads.images,
  2682. resource$jscomp$1 = promotablePreloads.get(key$jscomp$0);
  2683. if (resource$jscomp$1) {
  2684. if (
  2685. "high" === props.fetchPriority ||
  2686. 10 > renderState.highImagePreloads.size
  2687. )
  2688. promotablePreloads.delete(key$jscomp$0),
  2689. renderState.highImagePreloads.add(resource$jscomp$1);
  2690. } else if (
  2691. !resumableState.imageResources.hasOwnProperty(key$jscomp$0)
  2692. ) {
  2693. resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
  2694. var input = props.crossOrigin;
  2695. var crossOrigin =
  2696. "string" === typeof input
  2697. ? "use-credentials" === input
  2698. ? input
  2699. : ""
  2700. : void 0;
  2701. var headers = renderState.headers,
  2702. header;
  2703. headers &&
  2704. 0 < headers.remainingCapacity &&
  2705. "string" !== typeof props.srcSet &&
  2706. ("high" === props.fetchPriority ||
  2707. 500 > headers.highImagePreloads.length) &&
  2708. ((header = getPreloadAsHeader(src, "image", {
  2709. imageSrcSet: props.srcSet,
  2710. imageSizes: props.sizes,
  2711. crossOrigin: crossOrigin,
  2712. integrity: props.integrity,
  2713. nonce: props.nonce,
  2714. type: props.type,
  2715. fetchPriority: props.fetchPriority,
  2716. referrerPolicy: props.refererPolicy
  2717. })),
  2718. 0 <= (headers.remainingCapacity -= header.length + 2))
  2719. ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
  2720. headers.highImagePreloads &&
  2721. (headers.highImagePreloads += ", "),
  2722. (headers.highImagePreloads += header))
  2723. : ((resource$jscomp$1 = []),
  2724. pushLinkImpl(resource$jscomp$1, {
  2725. rel: "preload",
  2726. as: "image",
  2727. href: srcSet ? void 0 : src,
  2728. imageSrcSet: srcSet,
  2729. imageSizes: sizes,
  2730. crossOrigin: crossOrigin,
  2731. integrity: props.integrity,
  2732. type: props.type,
  2733. fetchPriority: props.fetchPriority,
  2734. referrerPolicy: props.referrerPolicy
  2735. }),
  2736. "high" === props.fetchPriority ||
  2737. 10 > renderState.highImagePreloads.size
  2738. ? renderState.highImagePreloads.add(resource$jscomp$1)
  2739. : (renderState.bulkPreloads.add(resource$jscomp$1),
  2740. promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
  2741. }
  2742. }
  2743. return pushSelfClosing(target$jscomp$0, props, "img");
  2744. case "base":
  2745. case "area":
  2746. case "br":
  2747. case "col":
  2748. case "embed":
  2749. case "hr":
  2750. case "keygen":
  2751. case "param":
  2752. case "source":
  2753. case "track":
  2754. case "wbr":
  2755. return pushSelfClosing(target$jscomp$0, props, type);
  2756. case "annotation-xml":
  2757. case "color-profile":
  2758. case "font-face":
  2759. case "font-face-src":
  2760. case "font-face-uri":
  2761. case "font-face-format":
  2762. case "font-face-name":
  2763. case "missing-glyph":
  2764. break;
  2765. case "head":
  2766. if (formatContext.insertionMode < HTML_MODE) {
  2767. var preamble = preambleState || renderState.preamble;
  2768. if (preamble.headChunks)
  2769. throw Error("The `<head>` tag may only be rendered once.");
  2770. null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
  2771. preamble.headChunks = [];
  2772. var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
  2773. preamble.headChunks,
  2774. props,
  2775. "head"
  2776. );
  2777. } else
  2778. JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
  2779. target$jscomp$0,
  2780. props,
  2781. "head"
  2782. );
  2783. return JSCompiler_inline_result$jscomp$9;
  2784. case "body":
  2785. if (formatContext.insertionMode < HTML_MODE) {
  2786. var preamble$jscomp$0 = preambleState || renderState.preamble;
  2787. if (preamble$jscomp$0.bodyChunks)
  2788. throw Error("The `<body>` tag may only be rendered once.");
  2789. null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
  2790. preamble$jscomp$0.bodyChunks = [];
  2791. var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
  2792. preamble$jscomp$0.bodyChunks,
  2793. props,
  2794. "body"
  2795. );
  2796. } else
  2797. JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
  2798. target$jscomp$0,
  2799. props,
  2800. "body"
  2801. );
  2802. return JSCompiler_inline_result$jscomp$10;
  2803. case "html":
  2804. if (formatContext.insertionMode === ROOT_HTML_MODE) {
  2805. var preamble$jscomp$1 = preambleState || renderState.preamble;
  2806. if (preamble$jscomp$1.htmlChunks)
  2807. throw Error("The `<html>` tag may only be rendered once.");
  2808. null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
  2809. preamble$jscomp$1.htmlChunks = [doctypeChunk];
  2810. var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
  2811. preamble$jscomp$1.htmlChunks,
  2812. props,
  2813. "html"
  2814. );
  2815. } else
  2816. JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
  2817. target$jscomp$0,
  2818. props,
  2819. "html"
  2820. );
  2821. return JSCompiler_inline_result$jscomp$11;
  2822. default:
  2823. if (-1 !== type.indexOf("-")) {
  2824. target$jscomp$0.push(startChunkForTag(type));
  2825. var children$jscomp$11 = null,
  2826. innerHTML$jscomp$8 = null,
  2827. propKey$jscomp$11;
  2828. for (propKey$jscomp$11 in props)
  2829. if (hasOwnProperty.call(props, propKey$jscomp$11)) {
  2830. var propValue$jscomp$11 = props[propKey$jscomp$11];
  2831. if (null != propValue$jscomp$11) {
  2832. var attributeName = propKey$jscomp$11;
  2833. switch (propKey$jscomp$11) {
  2834. case "children":
  2835. children$jscomp$11 = propValue$jscomp$11;
  2836. break;
  2837. case "dangerouslySetInnerHTML":
  2838. innerHTML$jscomp$8 = propValue$jscomp$11;
  2839. break;
  2840. case "style":
  2841. pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
  2842. break;
  2843. case "suppressContentEditableWarning":
  2844. case "suppressHydrationWarning":
  2845. case "ref":
  2846. break;
  2847. case "className":
  2848. attributeName = "class";
  2849. default:
  2850. if (
  2851. isAttributeNameSafe(propKey$jscomp$11) &&
  2852. "function" !== typeof propValue$jscomp$11 &&
  2853. "symbol" !== typeof propValue$jscomp$11 &&
  2854. !1 !== propValue$jscomp$11
  2855. ) {
  2856. if (!0 === propValue$jscomp$11)
  2857. propValue$jscomp$11 = "";
  2858. else if ("object" === typeof propValue$jscomp$11)
  2859. continue;
  2860. target$jscomp$0.push(
  2861. attributeSeparator,
  2862. attributeName,
  2863. attributeAssign,
  2864. escapeTextForBrowser(propValue$jscomp$11),
  2865. attributeEnd
  2866. );
  2867. }
  2868. }
  2869. }
  2870. }
  2871. target$jscomp$0.push(endOfStartTag);
  2872. pushInnerHTML(
  2873. target$jscomp$0,
  2874. innerHTML$jscomp$8,
  2875. children$jscomp$11
  2876. );
  2877. return children$jscomp$11;
  2878. }
  2879. }
  2880. return pushStartGenericElement(target$jscomp$0, props, type);
  2881. }
  2882. function endChunkForTag(tag) {
  2883. var chunk = endTagCache.get(tag);
  2884. void 0 === chunk &&
  2885. ((chunk = "</" + tag + ">"), endTagCache.set(tag, chunk));
  2886. return chunk;
  2887. }
  2888. function hoistPreambleState(renderState, preambleState) {
  2889. renderState = renderState.preamble;
  2890. null === renderState.htmlChunks &&
  2891. preambleState.htmlChunks &&
  2892. (renderState.htmlChunks = preambleState.htmlChunks);
  2893. null === renderState.headChunks &&
  2894. preambleState.headChunks &&
  2895. (renderState.headChunks = preambleState.headChunks);
  2896. null === renderState.bodyChunks &&
  2897. preambleState.bodyChunks &&
  2898. (renderState.bodyChunks = preambleState.bodyChunks);
  2899. }
  2900. function writeBootstrap(destination, renderState) {
  2901. renderState = renderState.bootstrapChunks;
  2902. for (var i = 0; i < renderState.length - 1; i++)
  2903. destination.push(renderState[i]);
  2904. return i < renderState.length
  2905. ? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
  2906. : !0;
  2907. }
  2908. function writeStartPendingSuspenseBoundary(destination, renderState, id) {
  2909. destination.push(startPendingSuspenseBoundary1);
  2910. if (null === id)
  2911. throw Error(
  2912. "An ID must have been assigned before we can complete the boundary."
  2913. );
  2914. destination.push(renderState.boundaryPrefix);
  2915. renderState = id.toString(16);
  2916. destination.push(renderState);
  2917. return destination.push(startPendingSuspenseBoundary2);
  2918. }
  2919. function writeStartSegment(destination, renderState, formatContext, id) {
  2920. switch (formatContext.insertionMode) {
  2921. case ROOT_HTML_MODE:
  2922. case HTML_HTML_MODE:
  2923. case HTML_HEAD_MODE:
  2924. case HTML_MODE:
  2925. return (
  2926. destination.push(startSegmentHTML),
  2927. destination.push(renderState.segmentPrefix),
  2928. (renderState = id.toString(16)),
  2929. destination.push(renderState),
  2930. destination.push(startSegmentHTML2)
  2931. );
  2932. case SVG_MODE:
  2933. return (
  2934. destination.push(startSegmentSVG),
  2935. destination.push(renderState.segmentPrefix),
  2936. (renderState = id.toString(16)),
  2937. destination.push(renderState),
  2938. destination.push(startSegmentSVG2)
  2939. );
  2940. case MATHML_MODE:
  2941. return (
  2942. destination.push(startSegmentMathML),
  2943. destination.push(renderState.segmentPrefix),
  2944. (renderState = id.toString(16)),
  2945. destination.push(renderState),
  2946. destination.push(startSegmentMathML2)
  2947. );
  2948. case HTML_TABLE_MODE:
  2949. return (
  2950. destination.push(startSegmentTable),
  2951. destination.push(renderState.segmentPrefix),
  2952. (renderState = id.toString(16)),
  2953. destination.push(renderState),
  2954. destination.push(startSegmentTable2)
  2955. );
  2956. case HTML_TABLE_BODY_MODE:
  2957. return (
  2958. destination.push(startSegmentTableBody),
  2959. destination.push(renderState.segmentPrefix),
  2960. (renderState = id.toString(16)),
  2961. destination.push(renderState),
  2962. destination.push(startSegmentTableBody2)
  2963. );
  2964. case HTML_TABLE_ROW_MODE:
  2965. return (
  2966. destination.push(startSegmentTableRow),
  2967. destination.push(renderState.segmentPrefix),
  2968. (renderState = id.toString(16)),
  2969. destination.push(renderState),
  2970. destination.push(startSegmentTableRow2)
  2971. );
  2972. case HTML_COLGROUP_MODE:
  2973. return (
  2974. destination.push(startSegmentColGroup),
  2975. destination.push(renderState.segmentPrefix),
  2976. (renderState = id.toString(16)),
  2977. destination.push(renderState),
  2978. destination.push(startSegmentColGroup2)
  2979. );
  2980. default:
  2981. throw Error("Unknown insertion mode. This is a bug in React.");
  2982. }
  2983. }
  2984. function writeEndSegment(destination, formatContext) {
  2985. switch (formatContext.insertionMode) {
  2986. case ROOT_HTML_MODE:
  2987. case HTML_HTML_MODE:
  2988. case HTML_HEAD_MODE:
  2989. case HTML_MODE:
  2990. return destination.push(endSegmentHTML);
  2991. case SVG_MODE:
  2992. return destination.push(endSegmentSVG);
  2993. case MATHML_MODE:
  2994. return destination.push(endSegmentMathML);
  2995. case HTML_TABLE_MODE:
  2996. return destination.push(endSegmentTable);
  2997. case HTML_TABLE_BODY_MODE:
  2998. return destination.push(endSegmentTableBody);
  2999. case HTML_TABLE_ROW_MODE:
  3000. return destination.push(endSegmentTableRow);
  3001. case HTML_COLGROUP_MODE:
  3002. return destination.push(endSegmentColGroup);
  3003. default:
  3004. throw Error("Unknown insertion mode. This is a bug in React.");
  3005. }
  3006. }
  3007. function escapeJSStringsForInstructionScripts(input) {
  3008. return JSON.stringify(input).replace(
  3009. regexForJSStringsInInstructionScripts,
  3010. function (match) {
  3011. switch (match) {
  3012. case "<":
  3013. return "\\u003c";
  3014. case "\u2028":
  3015. return "\\u2028";
  3016. case "\u2029":
  3017. return "\\u2029";
  3018. default:
  3019. throw Error(
  3020. "escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  3021. );
  3022. }
  3023. }
  3024. );
  3025. }
  3026. function escapeJSObjectForInstructionScripts(input) {
  3027. return JSON.stringify(input).replace(
  3028. regexForJSStringsInScripts,
  3029. function (match) {
  3030. switch (match) {
  3031. case "&":
  3032. return "\\u0026";
  3033. case ">":
  3034. return "\\u003e";
  3035. case "<":
  3036. return "\\u003c";
  3037. case "\u2028":
  3038. return "\\u2028";
  3039. case "\u2029":
  3040. return "\\u2029";
  3041. default:
  3042. throw Error(
  3043. "escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  3044. );
  3045. }
  3046. }
  3047. );
  3048. }
  3049. function flushStyleTagsLateForBoundary(styleQueue) {
  3050. var rules = styleQueue.rules,
  3051. hrefs = styleQueue.hrefs;
  3052. 0 < rules.length &&
  3053. 0 === hrefs.length &&
  3054. console.error(
  3055. "React expected to have at least one href for an a hoistable style but found none. This is a bug in React."
  3056. );
  3057. var i = 0;
  3058. if (hrefs.length) {
  3059. this.push(currentlyFlushingRenderState.startInlineStyle);
  3060. this.push(lateStyleTagResourceOpen1);
  3061. this.push(styleQueue.precedence);
  3062. for (this.push(lateStyleTagResourceOpen2); i < hrefs.length - 1; i++)
  3063. this.push(hrefs[i]), this.push(spaceSeparator);
  3064. this.push(hrefs[i]);
  3065. this.push(lateStyleTagResourceOpen3);
  3066. for (i = 0; i < rules.length; i++) this.push(rules[i]);
  3067. destinationHasCapacity = this.push(lateStyleTagTemplateClose);
  3068. currentlyRenderingBoundaryHasStylesToHoist = !0;
  3069. rules.length = 0;
  3070. hrefs.length = 0;
  3071. }
  3072. }
  3073. function hasStylesToHoist(stylesheet) {
  3074. return stylesheet.state !== PREAMBLE
  3075. ? (currentlyRenderingBoundaryHasStylesToHoist = !0)
  3076. : !1;
  3077. }
  3078. function writeHoistablesForBoundary(
  3079. destination,
  3080. hoistableState,
  3081. renderState
  3082. ) {
  3083. currentlyRenderingBoundaryHasStylesToHoist = !1;
  3084. destinationHasCapacity = !0;
  3085. currentlyFlushingRenderState = renderState;
  3086. hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
  3087. currentlyFlushingRenderState = null;
  3088. hoistableState.stylesheets.forEach(hasStylesToHoist);
  3089. currentlyRenderingBoundaryHasStylesToHoist &&
  3090. (renderState.stylesToHoist = !0);
  3091. return destinationHasCapacity;
  3092. }
  3093. function flushResource(resource) {
  3094. for (var i = 0; i < resource.length; i++) this.push(resource[i]);
  3095. resource.length = 0;
  3096. }
  3097. function flushStyleInPreamble(stylesheet) {
  3098. pushLinkImpl(stylesheetFlushingQueue, stylesheet.props);
  3099. for (var i = 0; i < stylesheetFlushingQueue.length; i++)
  3100. this.push(stylesheetFlushingQueue[i]);
  3101. stylesheetFlushingQueue.length = 0;
  3102. stylesheet.state = PREAMBLE;
  3103. }
  3104. function flushStylesInPreamble(styleQueue) {
  3105. var hasStylesheets = 0 < styleQueue.sheets.size;
  3106. styleQueue.sheets.forEach(flushStyleInPreamble, this);
  3107. styleQueue.sheets.clear();
  3108. var rules = styleQueue.rules,
  3109. hrefs = styleQueue.hrefs;
  3110. if (!hasStylesheets || hrefs.length) {
  3111. this.push(currentlyFlushingRenderState.startInlineStyle);
  3112. this.push(styleTagResourceOpen1);
  3113. this.push(styleQueue.precedence);
  3114. styleQueue = 0;
  3115. if (hrefs.length) {
  3116. for (
  3117. this.push(styleTagResourceOpen2);
  3118. styleQueue < hrefs.length - 1;
  3119. styleQueue++
  3120. )
  3121. this.push(hrefs[styleQueue]), this.push(spaceSeparator);
  3122. this.push(hrefs[styleQueue]);
  3123. }
  3124. this.push(styleTagResourceOpen3);
  3125. for (styleQueue = 0; styleQueue < rules.length; styleQueue++)
  3126. this.push(rules[styleQueue]);
  3127. this.push(styleTagResourceClose);
  3128. rules.length = 0;
  3129. hrefs.length = 0;
  3130. }
  3131. }
  3132. function preloadLateStyle(stylesheet) {
  3133. if (stylesheet.state === PENDING$1) {
  3134. stylesheet.state = PRELOADED;
  3135. var props = stylesheet.props;
  3136. pushLinkImpl(stylesheetFlushingQueue, {
  3137. rel: "preload",
  3138. as: "style",
  3139. href: stylesheet.props.href,
  3140. crossOrigin: props.crossOrigin,
  3141. fetchPriority: props.fetchPriority,
  3142. integrity: props.integrity,
  3143. media: props.media,
  3144. hrefLang: props.hrefLang,
  3145. referrerPolicy: props.referrerPolicy
  3146. });
  3147. for (
  3148. stylesheet = 0;
  3149. stylesheet < stylesheetFlushingQueue.length;
  3150. stylesheet++
  3151. )
  3152. this.push(stylesheetFlushingQueue[stylesheet]);
  3153. stylesheetFlushingQueue.length = 0;
  3154. }
  3155. }
  3156. function preloadLateStyles(styleQueue) {
  3157. styleQueue.sheets.forEach(preloadLateStyle, this);
  3158. styleQueue.sheets.clear();
  3159. }
  3160. function pushCompletedShellIdAttribute(target, resumableState) {
  3161. (resumableState.instructions & SentCompletedShellId) === NothingSent &&
  3162. ((resumableState.instructions |= SentCompletedShellId),
  3163. target.push(
  3164. completedShellIdAttributeStart,
  3165. escapeTextForBrowser("_" + resumableState.idPrefix + "R_"),
  3166. attributeEnd
  3167. ));
  3168. }
  3169. function writeStyleResourceDependenciesInJS(destination, hoistableState) {
  3170. destination.push(arrayFirstOpenBracket);
  3171. var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
  3172. hoistableState.stylesheets.forEach(function (resource) {
  3173. if (resource.state !== PREAMBLE)
  3174. if (resource.state === LATE)
  3175. destination.push(nextArrayOpenBrackChunk),
  3176. (resource = resource.props.href),
  3177. checkAttributeStringCoercion(resource, "href"),
  3178. (resource = escapeJSObjectForInstructionScripts("" + resource)),
  3179. destination.push(resource),
  3180. destination.push(arrayCloseBracket),
  3181. (nextArrayOpenBrackChunk = arraySubsequentOpenBracket);
  3182. else {
  3183. destination.push(nextArrayOpenBrackChunk);
  3184. var precedence = resource.props["data-precedence"],
  3185. props = resource.props,
  3186. coercedHref = sanitizeURL("" + resource.props.href);
  3187. coercedHref = escapeJSObjectForInstructionScripts(coercedHref);
  3188. destination.push(coercedHref);
  3189. checkAttributeStringCoercion(precedence, "precedence");
  3190. precedence = "" + precedence;
  3191. destination.push(arrayInterstitial);
  3192. precedence = escapeJSObjectForInstructionScripts(precedence);
  3193. destination.push(precedence);
  3194. for (var propKey in props)
  3195. if (
  3196. hasOwnProperty.call(props, propKey) &&
  3197. ((precedence = props[propKey]), null != precedence)
  3198. )
  3199. switch (propKey) {
  3200. case "href":
  3201. case "rel":
  3202. case "precedence":
  3203. case "data-precedence":
  3204. break;
  3205. case "children":
  3206. case "dangerouslySetInnerHTML":
  3207. throw Error(
  3208. "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  3209. );
  3210. default:
  3211. writeStyleResourceAttributeInJS(
  3212. destination,
  3213. propKey,
  3214. precedence
  3215. );
  3216. }
  3217. destination.push(arrayCloseBracket);
  3218. nextArrayOpenBrackChunk = arraySubsequentOpenBracket;
  3219. resource.state = LATE;
  3220. }
  3221. });
  3222. destination.push(arrayCloseBracket);
  3223. }
  3224. function writeStyleResourceAttributeInJS(destination, name, value) {
  3225. var attributeName = name.toLowerCase();
  3226. switch (typeof value) {
  3227. case "function":
  3228. case "symbol":
  3229. return;
  3230. }
  3231. switch (name) {
  3232. case "innerHTML":
  3233. case "dangerouslySetInnerHTML":
  3234. case "suppressContentEditableWarning":
  3235. case "suppressHydrationWarning":
  3236. case "style":
  3237. case "ref":
  3238. return;
  3239. case "className":
  3240. attributeName = "class";
  3241. checkAttributeStringCoercion(value, attributeName);
  3242. name = "" + value;
  3243. break;
  3244. case "hidden":
  3245. if (!1 === value) return;
  3246. name = "";
  3247. break;
  3248. case "src":
  3249. case "href":
  3250. value = sanitizeURL(value);
  3251. checkAttributeStringCoercion(value, attributeName);
  3252. name = "" + value;
  3253. break;
  3254. default:
  3255. if (
  3256. (2 < name.length &&
  3257. ("o" === name[0] || "O" === name[0]) &&
  3258. ("n" === name[1] || "N" === name[1])) ||
  3259. !isAttributeNameSafe(name)
  3260. )
  3261. return;
  3262. checkAttributeStringCoercion(value, attributeName);
  3263. name = "" + value;
  3264. }
  3265. destination.push(arrayInterstitial);
  3266. attributeName = escapeJSObjectForInstructionScripts(attributeName);
  3267. destination.push(attributeName);
  3268. destination.push(arrayInterstitial);
  3269. attributeName = escapeJSObjectForInstructionScripts(name);
  3270. destination.push(attributeName);
  3271. }
  3272. function createHoistableState() {
  3273. return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
  3274. }
  3275. function preloadBootstrapScriptOrModule(
  3276. resumableState,
  3277. renderState,
  3278. href,
  3279. props
  3280. ) {
  3281. (resumableState.scriptResources.hasOwnProperty(href) ||
  3282. resumableState.moduleScriptResources.hasOwnProperty(href)) &&
  3283. console.error(
  3284. 'Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',
  3285. href
  3286. );
  3287. resumableState.scriptResources[href] = EXISTS;
  3288. resumableState.moduleScriptResources[href] = EXISTS;
  3289. resumableState = [];
  3290. pushLinkImpl(resumableState, props);
  3291. renderState.bootstrapScripts.add(resumableState);
  3292. }
  3293. function adoptPreloadCredentials(target, preloadState) {
  3294. null == target.crossOrigin && (target.crossOrigin = preloadState[0]);
  3295. null == target.integrity && (target.integrity = preloadState[1]);
  3296. }
  3297. function getPreloadAsHeader(href, as, params) {
  3298. href = escapeHrefForLinkHeaderURLContext(href);
  3299. as = escapeStringForLinkHeaderQuotedParamValueContext(as, "as");
  3300. as = "<" + href + '>; rel=preload; as="' + as + '"';
  3301. for (var paramName in params)
  3302. hasOwnProperty.call(params, paramName) &&
  3303. ((href = params[paramName]),
  3304. "string" === typeof href &&
  3305. (as +=
  3306. "; " +
  3307. paramName.toLowerCase() +
  3308. '="' +
  3309. escapeStringForLinkHeaderQuotedParamValueContext(
  3310. href,
  3311. paramName
  3312. ) +
  3313. '"'));
  3314. return as;
  3315. }
  3316. function escapeHrefForLinkHeaderURLContext(hrefInput) {
  3317. checkAttributeStringCoercion(hrefInput, "href");
  3318. return ("" + hrefInput).replace(
  3319. regexForHrefInLinkHeaderURLContext,
  3320. escapeHrefForLinkHeaderURLContextReplacer
  3321. );
  3322. }
  3323. function escapeHrefForLinkHeaderURLContextReplacer(match) {
  3324. switch (match) {
  3325. case "<":
  3326. return "%3C";
  3327. case ">":
  3328. return "%3E";
  3329. case "\n":
  3330. return "%0A";
  3331. case "\r":
  3332. return "%0D";
  3333. default:
  3334. throw Error(
  3335. "escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  3336. );
  3337. }
  3338. }
  3339. function escapeStringForLinkHeaderQuotedParamValueContext(value, name) {
  3340. willCoercionThrow(value) &&
  3341. (console.error(
  3342. "The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",
  3343. name,
  3344. typeName(value)
  3345. ),
  3346. testStringCoercion(value));
  3347. return ("" + value).replace(
  3348. regexForLinkHeaderQuotedParamValueContext,
  3349. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  3350. );
  3351. }
  3352. function escapeStringForLinkHeaderQuotedParamValueContextReplacer(match) {
  3353. switch (match) {
  3354. case '"':
  3355. return "%22";
  3356. case "'":
  3357. return "%27";
  3358. case ";":
  3359. return "%3B";
  3360. case ",":
  3361. return "%2C";
  3362. case "\n":
  3363. return "%0A";
  3364. case "\r":
  3365. return "%0D";
  3366. default:
  3367. throw Error(
  3368. "escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  3369. );
  3370. }
  3371. }
  3372. function hoistStyleQueueDependency(styleQueue) {
  3373. this.styles.add(styleQueue);
  3374. }
  3375. function hoistStylesheetDependency(stylesheet) {
  3376. this.stylesheets.add(stylesheet);
  3377. }
  3378. function hoistHoistables(parentState, childState) {
  3379. childState.styles.forEach(hoistStyleQueueDependency, parentState);
  3380. childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
  3381. childState.suspenseyImages && (parentState.suspenseyImages = !0);
  3382. }
  3383. function createRenderState(resumableState, generateStaticMarkup) {
  3384. var idPrefix = resumableState.idPrefix,
  3385. bootstrapChunks = [],
  3386. bootstrapScriptContent = resumableState.bootstrapScriptContent,
  3387. bootstrapScripts = resumableState.bootstrapScripts,
  3388. bootstrapModules = resumableState.bootstrapModules;
  3389. void 0 !== bootstrapScriptContent &&
  3390. (bootstrapChunks.push("<script"),
  3391. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  3392. bootstrapChunks.push(
  3393. endOfStartTag,
  3394. escapeEntireInlineScriptContent(bootstrapScriptContent),
  3395. endInlineScript
  3396. ));
  3397. idPrefix = {
  3398. placeholderPrefix: idPrefix + "P:",
  3399. segmentPrefix: idPrefix + "S:",
  3400. boundaryPrefix: idPrefix + "B:",
  3401. startInlineScript: "<script",
  3402. startInlineStyle: "<style",
  3403. preamble: { htmlChunks: null, headChunks: null, bodyChunks: null },
  3404. externalRuntimeScript: null,
  3405. bootstrapChunks: bootstrapChunks,
  3406. importMapChunks: [],
  3407. onHeaders: void 0,
  3408. headers: null,
  3409. resets: {
  3410. font: {},
  3411. dns: {},
  3412. connect: { default: {}, anonymous: {}, credentials: {} },
  3413. image: {},
  3414. style: {}
  3415. },
  3416. charsetChunks: [],
  3417. viewportChunks: [],
  3418. hoistableChunks: [],
  3419. preconnects: new Set(),
  3420. fontPreloads: new Set(),
  3421. highImagePreloads: new Set(),
  3422. styles: new Map(),
  3423. bootstrapScripts: new Set(),
  3424. scripts: new Set(),
  3425. bulkPreloads: new Set(),
  3426. preloads: {
  3427. images: new Map(),
  3428. stylesheets: new Map(),
  3429. scripts: new Map(),
  3430. moduleScripts: new Map()
  3431. },
  3432. nonce: { script: void 0, style: void 0 },
  3433. hoistableState: null,
  3434. stylesToHoist: !1
  3435. };
  3436. if (void 0 !== bootstrapScripts)
  3437. for (
  3438. bootstrapScriptContent = 0;
  3439. bootstrapScriptContent < bootstrapScripts.length;
  3440. bootstrapScriptContent++
  3441. ) {
  3442. var scriptConfig = bootstrapScripts[bootstrapScriptContent],
  3443. src,
  3444. crossOrigin = void 0,
  3445. integrity = void 0,
  3446. props = {
  3447. rel: "preload",
  3448. as: "script",
  3449. fetchPriority: "low",
  3450. nonce: void 0
  3451. };
  3452. "string" === typeof scriptConfig
  3453. ? (props.href = src = scriptConfig)
  3454. : ((props.href = src = scriptConfig.src),
  3455. (props.integrity = integrity =
  3456. "string" === typeof scriptConfig.integrity
  3457. ? scriptConfig.integrity
  3458. : void 0),
  3459. (props.crossOrigin = crossOrigin =
  3460. "string" === typeof scriptConfig ||
  3461. null == scriptConfig.crossOrigin
  3462. ? void 0
  3463. : "use-credentials" === scriptConfig.crossOrigin
  3464. ? "use-credentials"
  3465. : ""));
  3466. preloadBootstrapScriptOrModule(resumableState, idPrefix, src, props);
  3467. bootstrapChunks.push(
  3468. '<script src="',
  3469. escapeTextForBrowser(src),
  3470. attributeEnd
  3471. );
  3472. "string" === typeof integrity &&
  3473. bootstrapChunks.push(
  3474. ' integrity="',
  3475. escapeTextForBrowser(integrity),
  3476. attributeEnd
  3477. );
  3478. "string" === typeof crossOrigin &&
  3479. bootstrapChunks.push(
  3480. ' crossorigin="',
  3481. escapeTextForBrowser(crossOrigin),
  3482. attributeEnd
  3483. );
  3484. pushCompletedShellIdAttribute(bootstrapChunks, resumableState);
  3485. bootstrapChunks.push(' async="">\x3c/script>');
  3486. }
  3487. if (void 0 !== bootstrapModules)
  3488. for (
  3489. bootstrapScripts = 0;
  3490. bootstrapScripts < bootstrapModules.length;
  3491. bootstrapScripts++
  3492. )
  3493. (bootstrapScriptContent = bootstrapModules[bootstrapScripts]),
  3494. (crossOrigin = src = void 0),
  3495. (integrity = {
  3496. rel: "modulepreload",
  3497. fetchPriority: "low",
  3498. nonce: void 0
  3499. }),
  3500. "string" === typeof bootstrapScriptContent
  3501. ? (integrity.href = scriptConfig = bootstrapScriptContent)
  3502. : ((integrity.href = scriptConfig = bootstrapScriptContent.src),
  3503. (integrity.integrity = crossOrigin =
  3504. "string" === typeof bootstrapScriptContent.integrity
  3505. ? bootstrapScriptContent.integrity
  3506. : void 0),
  3507. (integrity.crossOrigin = src =
  3508. "string" === typeof bootstrapScriptContent ||
  3509. null == bootstrapScriptContent.crossOrigin
  3510. ? void 0
  3511. : "use-credentials" === bootstrapScriptContent.crossOrigin
  3512. ? "use-credentials"
  3513. : "")),
  3514. preloadBootstrapScriptOrModule(
  3515. resumableState,
  3516. idPrefix,
  3517. scriptConfig,
  3518. integrity
  3519. ),
  3520. bootstrapChunks.push(
  3521. '<script type="module" src="',
  3522. escapeTextForBrowser(scriptConfig),
  3523. attributeEnd
  3524. ),
  3525. "string" === typeof crossOrigin &&
  3526. bootstrapChunks.push(
  3527. ' integrity="',
  3528. escapeTextForBrowser(crossOrigin),
  3529. attributeEnd
  3530. ),
  3531. "string" === typeof src &&
  3532. bootstrapChunks.push(
  3533. ' crossorigin="',
  3534. escapeTextForBrowser(src),
  3535. attributeEnd
  3536. ),
  3537. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  3538. bootstrapChunks.push(' async="">\x3c/script>');
  3539. return {
  3540. placeholderPrefix: idPrefix.placeholderPrefix,
  3541. segmentPrefix: idPrefix.segmentPrefix,
  3542. boundaryPrefix: idPrefix.boundaryPrefix,
  3543. startInlineScript: idPrefix.startInlineScript,
  3544. startInlineStyle: idPrefix.startInlineStyle,
  3545. preamble: idPrefix.preamble,
  3546. externalRuntimeScript: idPrefix.externalRuntimeScript,
  3547. bootstrapChunks: idPrefix.bootstrapChunks,
  3548. importMapChunks: idPrefix.importMapChunks,
  3549. onHeaders: idPrefix.onHeaders,
  3550. headers: idPrefix.headers,
  3551. resets: idPrefix.resets,
  3552. charsetChunks: idPrefix.charsetChunks,
  3553. viewportChunks: idPrefix.viewportChunks,
  3554. hoistableChunks: idPrefix.hoistableChunks,
  3555. preconnects: idPrefix.preconnects,
  3556. fontPreloads: idPrefix.fontPreloads,
  3557. highImagePreloads: idPrefix.highImagePreloads,
  3558. styles: idPrefix.styles,
  3559. bootstrapScripts: idPrefix.bootstrapScripts,
  3560. scripts: idPrefix.scripts,
  3561. bulkPreloads: idPrefix.bulkPreloads,
  3562. preloads: idPrefix.preloads,
  3563. nonce: idPrefix.nonce,
  3564. stylesToHoist: idPrefix.stylesToHoist,
  3565. generateStaticMarkup: generateStaticMarkup
  3566. };
  3567. }
  3568. function pushTextInstance(target, text, renderState, textEmbedded) {
  3569. if (renderState.generateStaticMarkup)
  3570. return target.push(escapeTextForBrowser(text)), !1;
  3571. "" === text
  3572. ? (target = textEmbedded)
  3573. : (textEmbedded && target.push("\x3c!-- --\x3e"),
  3574. target.push(escapeTextForBrowser(text)),
  3575. (target = !0));
  3576. return target;
  3577. }
  3578. function pushSegmentFinale(
  3579. target,
  3580. renderState,
  3581. lastPushedText,
  3582. textEmbedded
  3583. ) {
  3584. renderState.generateStaticMarkup ||
  3585. (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
  3586. }
  3587. function getComponentNameFromType(type) {
  3588. if (null == type) return null;
  3589. if ("function" === typeof type)
  3590. return type.$$typeof === REACT_CLIENT_REFERENCE
  3591. ? null
  3592. : type.displayName || type.name || null;
  3593. if ("string" === typeof type) return type;
  3594. switch (type) {
  3595. case REACT_FRAGMENT_TYPE:
  3596. return "Fragment";
  3597. case REACT_PROFILER_TYPE:
  3598. return "Profiler";
  3599. case REACT_STRICT_MODE_TYPE:
  3600. return "StrictMode";
  3601. case REACT_SUSPENSE_TYPE:
  3602. return "Suspense";
  3603. case REACT_SUSPENSE_LIST_TYPE:
  3604. return "SuspenseList";
  3605. case REACT_ACTIVITY_TYPE:
  3606. return "Activity";
  3607. }
  3608. if ("object" === typeof type)
  3609. switch (
  3610. ("number" === typeof type.tag &&
  3611. console.error(
  3612. "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
  3613. ),
  3614. type.$$typeof)
  3615. ) {
  3616. case REACT_PORTAL_TYPE:
  3617. return "Portal";
  3618. case REACT_CONTEXT_TYPE:
  3619. return type.displayName || "Context";
  3620. case REACT_CONSUMER_TYPE:
  3621. return (type._context.displayName || "Context") + ".Consumer";
  3622. case REACT_FORWARD_REF_TYPE:
  3623. var innerType = type.render;
  3624. type = type.displayName;
  3625. type ||
  3626. ((type = innerType.displayName || innerType.name || ""),
  3627. (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
  3628. return type;
  3629. case REACT_MEMO_TYPE:
  3630. return (
  3631. (innerType = type.displayName || null),
  3632. null !== innerType
  3633. ? innerType
  3634. : getComponentNameFromType(type.type) || "Memo"
  3635. );
  3636. case REACT_LAZY_TYPE:
  3637. innerType = type._payload;
  3638. type = type._init;
  3639. try {
  3640. return getComponentNameFromType(type(innerType));
  3641. } catch (x) {}
  3642. }
  3643. return null;
  3644. }
  3645. function popToNearestCommonAncestor(prev, next) {
  3646. if (prev !== next) {
  3647. prev.context._currentValue2 = prev.parentValue;
  3648. prev = prev.parent;
  3649. var parentNext = next.parent;
  3650. if (null === prev) {
  3651. if (null !== parentNext)
  3652. throw Error(
  3653. "The stacks must reach the root at the same time. This is a bug in React."
  3654. );
  3655. } else {
  3656. if (null === parentNext)
  3657. throw Error(
  3658. "The stacks must reach the root at the same time. This is a bug in React."
  3659. );
  3660. popToNearestCommonAncestor(prev, parentNext);
  3661. }
  3662. next.context._currentValue2 = next.value;
  3663. }
  3664. }
  3665. function popAllPrevious(prev) {
  3666. prev.context._currentValue2 = prev.parentValue;
  3667. prev = prev.parent;
  3668. null !== prev && popAllPrevious(prev);
  3669. }
  3670. function pushAllNext(next) {
  3671. var parentNext = next.parent;
  3672. null !== parentNext && pushAllNext(parentNext);
  3673. next.context._currentValue2 = next.value;
  3674. }
  3675. function popPreviousToCommonLevel(prev, next) {
  3676. prev.context._currentValue2 = prev.parentValue;
  3677. prev = prev.parent;
  3678. if (null === prev)
  3679. throw Error(
  3680. "The depth must equal at least at zero before reaching the root. This is a bug in React."
  3681. );
  3682. prev.depth === next.depth
  3683. ? popToNearestCommonAncestor(prev, next)
  3684. : popPreviousToCommonLevel(prev, next);
  3685. }
  3686. function popNextToCommonLevel(prev, next) {
  3687. var parentNext = next.parent;
  3688. if (null === parentNext)
  3689. throw Error(
  3690. "The depth must equal at least at zero before reaching the root. This is a bug in React."
  3691. );
  3692. prev.depth === parentNext.depth
  3693. ? popToNearestCommonAncestor(prev, parentNext)
  3694. : popNextToCommonLevel(prev, parentNext);
  3695. next.context._currentValue2 = next.value;
  3696. }
  3697. function switchContext(newSnapshot) {
  3698. var prev = currentActiveSnapshot;
  3699. prev !== newSnapshot &&
  3700. (null === prev
  3701. ? pushAllNext(newSnapshot)
  3702. : null === newSnapshot
  3703. ? popAllPrevious(prev)
  3704. : prev.depth === newSnapshot.depth
  3705. ? popToNearestCommonAncestor(prev, newSnapshot)
  3706. : prev.depth > newSnapshot.depth
  3707. ? popPreviousToCommonLevel(prev, newSnapshot)
  3708. : popNextToCommonLevel(prev, newSnapshot),
  3709. (currentActiveSnapshot = newSnapshot));
  3710. }
  3711. function warnOnInvalidCallback(callback) {
  3712. if (null !== callback && "function" !== typeof callback) {
  3713. var key = String(callback);
  3714. didWarnOnInvalidCallback.has(key) ||
  3715. (didWarnOnInvalidCallback.add(key),
  3716. console.error(
  3717. "Expected the last optional `callback` argument to be a function. Instead received: %s.",
  3718. callback
  3719. ));
  3720. }
  3721. }
  3722. function warnNoop(publicInstance, callerName) {
  3723. publicInstance =
  3724. ((publicInstance = publicInstance.constructor) &&
  3725. getComponentNameFromType(publicInstance)) ||
  3726. "ReactClass";
  3727. var warningKey = publicInstance + "." + callerName;
  3728. didWarnAboutNoopUpdateForComponent[warningKey] ||
  3729. (console.error(
  3730. "Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.",
  3731. callerName,
  3732. publicInstance
  3733. ),
  3734. (didWarnAboutNoopUpdateForComponent[warningKey] = !0));
  3735. }
  3736. function pushTreeContext(baseContext, totalChildren, index) {
  3737. var baseIdWithLeadingBit = baseContext.id;
  3738. baseContext = baseContext.overflow;
  3739. var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
  3740. baseIdWithLeadingBit &= ~(1 << baseLength);
  3741. index += 1;
  3742. var length = 32 - clz32(totalChildren) + baseLength;
  3743. if (30 < length) {
  3744. var numberOfOverflowBits = baseLength - (baseLength % 5);
  3745. length = (
  3746. baseIdWithLeadingBit &
  3747. ((1 << numberOfOverflowBits) - 1)
  3748. ).toString(32);
  3749. baseIdWithLeadingBit >>= numberOfOverflowBits;
  3750. baseLength -= numberOfOverflowBits;
  3751. return {
  3752. id:
  3753. (1 << (32 - clz32(totalChildren) + baseLength)) |
  3754. (index << baseLength) |
  3755. baseIdWithLeadingBit,
  3756. overflow: length + baseContext
  3757. };
  3758. }
  3759. return {
  3760. id: (1 << length) | (index << baseLength) | baseIdWithLeadingBit,
  3761. overflow: baseContext
  3762. };
  3763. }
  3764. function clz32Fallback(x) {
  3765. x >>>= 0;
  3766. return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
  3767. }
  3768. function noop() {}
  3769. function trackUsedThenable(thenableState, thenable, index) {
  3770. index = thenableState[index];
  3771. void 0 === index
  3772. ? thenableState.push(thenable)
  3773. : index !== thenable && (thenable.then(noop, noop), (thenable = index));
  3774. switch (thenable.status) {
  3775. case "fulfilled":
  3776. return thenable.value;
  3777. case "rejected":
  3778. throw thenable.reason;
  3779. default:
  3780. "string" === typeof thenable.status
  3781. ? thenable.then(noop, noop)
  3782. : ((thenableState = thenable),
  3783. (thenableState.status = "pending"),
  3784. thenableState.then(
  3785. function (fulfilledValue) {
  3786. if ("pending" === thenable.status) {
  3787. var fulfilledThenable = thenable;
  3788. fulfilledThenable.status = "fulfilled";
  3789. fulfilledThenable.value = fulfilledValue;
  3790. }
  3791. },
  3792. function (error) {
  3793. if ("pending" === thenable.status) {
  3794. var rejectedThenable = thenable;
  3795. rejectedThenable.status = "rejected";
  3796. rejectedThenable.reason = error;
  3797. }
  3798. }
  3799. ));
  3800. switch (thenable.status) {
  3801. case "fulfilled":
  3802. return thenable.value;
  3803. case "rejected":
  3804. throw thenable.reason;
  3805. }
  3806. suspendedThenable = thenable;
  3807. throw SuspenseException;
  3808. }
  3809. }
  3810. function getSuspendedThenable() {
  3811. if (null === suspendedThenable)
  3812. throw Error(
  3813. "Expected a suspended thenable. This is a bug in React. Please file an issue."
  3814. );
  3815. var thenable = suspendedThenable;
  3816. suspendedThenable = null;
  3817. return thenable;
  3818. }
  3819. function is(x, y) {
  3820. return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
  3821. }
  3822. function resolveCurrentlyRenderingComponent() {
  3823. if (null === currentlyRenderingComponent)
  3824. throw Error(
  3825. "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
  3826. );
  3827. isInHookUserCodeInDev &&
  3828. console.error(
  3829. "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"
  3830. );
  3831. return currentlyRenderingComponent;
  3832. }
  3833. function createHook() {
  3834. if (0 < numberOfReRenders)
  3835. throw Error("Rendered more hooks than during the previous render");
  3836. return { memoizedState: null, queue: null, next: null };
  3837. }
  3838. function createWorkInProgressHook() {
  3839. null === workInProgressHook
  3840. ? null === firstWorkInProgressHook
  3841. ? ((isReRender = !1),
  3842. (firstWorkInProgressHook = workInProgressHook = createHook()))
  3843. : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
  3844. : null === workInProgressHook.next
  3845. ? ((isReRender = !1),
  3846. (workInProgressHook = workInProgressHook.next = createHook()))
  3847. : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
  3848. return workInProgressHook;
  3849. }
  3850. function getThenableStateAfterSuspending() {
  3851. var state = thenableState;
  3852. thenableState = null;
  3853. return state;
  3854. }
  3855. function resetHooksState() {
  3856. isInHookUserCodeInDev = !1;
  3857. currentlyRenderingKeyPath =
  3858. currentlyRenderingRequest =
  3859. currentlyRenderingTask =
  3860. currentlyRenderingComponent =
  3861. null;
  3862. didScheduleRenderPhaseUpdate = !1;
  3863. firstWorkInProgressHook = null;
  3864. numberOfReRenders = 0;
  3865. workInProgressHook = renderPhaseUpdates = null;
  3866. }
  3867. function readContext(context) {
  3868. isInHookUserCodeInDev &&
  3869. console.error(
  3870. "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
  3871. );
  3872. return context._currentValue2;
  3873. }
  3874. function basicStateReducer(state, action) {
  3875. return "function" === typeof action ? action(state) : action;
  3876. }
  3877. function useReducer(reducer, initialArg, init) {
  3878. reducer !== basicStateReducer && (currentHookNameInDev = "useReducer");
  3879. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3880. workInProgressHook = createWorkInProgressHook();
  3881. if (isReRender) {
  3882. init = workInProgressHook.queue;
  3883. initialArg = init.dispatch;
  3884. if (null !== renderPhaseUpdates) {
  3885. var firstRenderPhaseUpdate = renderPhaseUpdates.get(init);
  3886. if (void 0 !== firstRenderPhaseUpdate) {
  3887. renderPhaseUpdates.delete(init);
  3888. init = workInProgressHook.memoizedState;
  3889. do {
  3890. var action = firstRenderPhaseUpdate.action;
  3891. isInHookUserCodeInDev = !0;
  3892. init = reducer(init, action);
  3893. isInHookUserCodeInDev = !1;
  3894. firstRenderPhaseUpdate = firstRenderPhaseUpdate.next;
  3895. } while (null !== firstRenderPhaseUpdate);
  3896. workInProgressHook.memoizedState = init;
  3897. return [init, initialArg];
  3898. }
  3899. }
  3900. return [workInProgressHook.memoizedState, initialArg];
  3901. }
  3902. isInHookUserCodeInDev = !0;
  3903. reducer =
  3904. reducer === basicStateReducer
  3905. ? "function" === typeof initialArg
  3906. ? initialArg()
  3907. : initialArg
  3908. : void 0 !== init
  3909. ? init(initialArg)
  3910. : initialArg;
  3911. isInHookUserCodeInDev = !1;
  3912. workInProgressHook.memoizedState = reducer;
  3913. reducer = workInProgressHook.queue = { last: null, dispatch: null };
  3914. reducer = reducer.dispatch = dispatchAction.bind(
  3915. null,
  3916. currentlyRenderingComponent,
  3917. reducer
  3918. );
  3919. return [workInProgressHook.memoizedState, reducer];
  3920. }
  3921. function useMemo(nextCreate, deps) {
  3922. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3923. workInProgressHook = createWorkInProgressHook();
  3924. deps = void 0 === deps ? null : deps;
  3925. if (null !== workInProgressHook) {
  3926. var prevState = workInProgressHook.memoizedState;
  3927. if (null !== prevState && null !== deps) {
  3928. a: {
  3929. var JSCompiler_inline_result = prevState[1];
  3930. if (null === JSCompiler_inline_result)
  3931. console.error(
  3932. "%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
  3933. currentHookNameInDev
  3934. ),
  3935. (JSCompiler_inline_result = !1);
  3936. else {
  3937. deps.length !== JSCompiler_inline_result.length &&
  3938. console.error(
  3939. "The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",
  3940. currentHookNameInDev,
  3941. "[" + deps.join(", ") + "]",
  3942. "[" + JSCompiler_inline_result.join(", ") + "]"
  3943. );
  3944. for (
  3945. var i = 0;
  3946. i < JSCompiler_inline_result.length && i < deps.length;
  3947. i++
  3948. )
  3949. if (!objectIs(deps[i], JSCompiler_inline_result[i])) {
  3950. JSCompiler_inline_result = !1;
  3951. break a;
  3952. }
  3953. JSCompiler_inline_result = !0;
  3954. }
  3955. }
  3956. if (JSCompiler_inline_result) return prevState[0];
  3957. }
  3958. }
  3959. isInHookUserCodeInDev = !0;
  3960. nextCreate = nextCreate();
  3961. isInHookUserCodeInDev = !1;
  3962. workInProgressHook.memoizedState = [nextCreate, deps];
  3963. return nextCreate;
  3964. }
  3965. function dispatchAction(componentIdentity, queue, action) {
  3966. if (25 <= numberOfReRenders)
  3967. throw Error(
  3968. "Too many re-renders. React limits the number of renders to prevent an infinite loop."
  3969. );
  3970. if (componentIdentity === currentlyRenderingComponent)
  3971. if (
  3972. ((didScheduleRenderPhaseUpdate = !0),
  3973. (componentIdentity = { action: action, next: null }),
  3974. null === renderPhaseUpdates && (renderPhaseUpdates = new Map()),
  3975. (action = renderPhaseUpdates.get(queue)),
  3976. void 0 === action)
  3977. )
  3978. renderPhaseUpdates.set(queue, componentIdentity);
  3979. else {
  3980. for (queue = action; null !== queue.next; ) queue = queue.next;
  3981. queue.next = componentIdentity;
  3982. }
  3983. }
  3984. function throwOnUseEffectEventCall() {
  3985. throw Error(
  3986. "A function wrapped in useEffectEvent can't be called during rendering."
  3987. );
  3988. }
  3989. function unsupportedStartTransition() {
  3990. throw Error("startTransition cannot be called during server rendering.");
  3991. }
  3992. function unsupportedSetOptimisticState() {
  3993. throw Error("Cannot update optimistic state while rendering.");
  3994. }
  3995. function useActionState(action, initialState, permalink) {
  3996. resolveCurrentlyRenderingComponent();
  3997. var actionStateHookIndex = actionStateCounter++,
  3998. request = currentlyRenderingRequest;
  3999. if ("function" === typeof action.$$FORM_ACTION) {
  4000. var nextPostbackStateKey = null,
  4001. componentKeyPath = currentlyRenderingKeyPath;
  4002. request = request.formState;
  4003. var isSignatureEqual = action.$$IS_SIGNATURE_EQUAL;
  4004. if (null !== request && "function" === typeof isSignatureEqual) {
  4005. var postbackKey = request[1];
  4006. isSignatureEqual.call(action, request[2], request[3]) &&
  4007. ((nextPostbackStateKey =
  4008. void 0 !== permalink
  4009. ? "p" + permalink
  4010. : "k" +
  4011. murmurhash3_32_gc(
  4012. JSON.stringify([
  4013. componentKeyPath,
  4014. null,
  4015. actionStateHookIndex
  4016. ]),
  4017. 0
  4018. )),
  4019. postbackKey === nextPostbackStateKey &&
  4020. ((actionStateMatchingIndex = actionStateHookIndex),
  4021. (initialState = request[0])));
  4022. }
  4023. var boundAction = action.bind(null, initialState);
  4024. action = function (payload) {
  4025. boundAction(payload);
  4026. };
  4027. "function" === typeof boundAction.$$FORM_ACTION &&
  4028. (action.$$FORM_ACTION = function (prefix) {
  4029. prefix = boundAction.$$FORM_ACTION(prefix);
  4030. void 0 !== permalink &&
  4031. (checkAttributeStringCoercion(permalink, "target"),
  4032. (permalink += ""),
  4033. (prefix.action = permalink));
  4034. var formData = prefix.data;
  4035. formData &&
  4036. (null === nextPostbackStateKey &&
  4037. (nextPostbackStateKey =
  4038. void 0 !== permalink
  4039. ? "p" + permalink
  4040. : "k" +
  4041. murmurhash3_32_gc(
  4042. JSON.stringify([
  4043. componentKeyPath,
  4044. null,
  4045. actionStateHookIndex
  4046. ]),
  4047. 0
  4048. )),
  4049. formData.append("$ACTION_KEY", nextPostbackStateKey));
  4050. return prefix;
  4051. });
  4052. return [initialState, action, !1];
  4053. }
  4054. var _boundAction = action.bind(null, initialState);
  4055. return [
  4056. initialState,
  4057. function (payload) {
  4058. _boundAction(payload);
  4059. },
  4060. !1
  4061. ];
  4062. }
  4063. function unwrapThenable(thenable) {
  4064. var index = thenableIndexCounter;
  4065. thenableIndexCounter += 1;
  4066. null === thenableState && (thenableState = []);
  4067. return trackUsedThenable(thenableState, thenable, index);
  4068. }
  4069. function unsupportedRefresh() {
  4070. throw Error("Cache cannot be refreshed during server rendering.");
  4071. }
  4072. function disabledLog() {}
  4073. function disableLogs() {
  4074. if (0 === disabledDepth) {
  4075. prevLog = console.log;
  4076. prevInfo = console.info;
  4077. prevWarn = console.warn;
  4078. prevError = console.error;
  4079. prevGroup = console.group;
  4080. prevGroupCollapsed = console.groupCollapsed;
  4081. prevGroupEnd = console.groupEnd;
  4082. var props = {
  4083. configurable: !0,
  4084. enumerable: !0,
  4085. value: disabledLog,
  4086. writable: !0
  4087. };
  4088. Object.defineProperties(console, {
  4089. info: props,
  4090. log: props,
  4091. warn: props,
  4092. error: props,
  4093. group: props,
  4094. groupCollapsed: props,
  4095. groupEnd: props
  4096. });
  4097. }
  4098. disabledDepth++;
  4099. }
  4100. function reenableLogs() {
  4101. disabledDepth--;
  4102. if (0 === disabledDepth) {
  4103. var props = { configurable: !0, enumerable: !0, writable: !0 };
  4104. Object.defineProperties(console, {
  4105. log: assign({}, props, { value: prevLog }),
  4106. info: assign({}, props, { value: prevInfo }),
  4107. warn: assign({}, props, { value: prevWarn }),
  4108. error: assign({}, props, { value: prevError }),
  4109. group: assign({}, props, { value: prevGroup }),
  4110. groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
  4111. groupEnd: assign({}, props, { value: prevGroupEnd })
  4112. });
  4113. }
  4114. 0 > disabledDepth &&
  4115. console.error(
  4116. "disabledDepth fell below zero. This is a bug in React. Please file an issue."
  4117. );
  4118. }
  4119. function formatOwnerStack(error) {
  4120. var prevPrepareStackTrace = Error.prepareStackTrace;
  4121. Error.prepareStackTrace = void 0;
  4122. error = error.stack;
  4123. Error.prepareStackTrace = prevPrepareStackTrace;
  4124. error.startsWith("Error: react-stack-top-frame\n") &&
  4125. (error = error.slice(29));
  4126. prevPrepareStackTrace = error.indexOf("\n");
  4127. -1 !== prevPrepareStackTrace &&
  4128. (error = error.slice(prevPrepareStackTrace + 1));
  4129. prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
  4130. -1 !== prevPrepareStackTrace &&
  4131. (prevPrepareStackTrace = error.lastIndexOf(
  4132. "\n",
  4133. prevPrepareStackTrace
  4134. ));
  4135. if (-1 !== prevPrepareStackTrace)
  4136. error = error.slice(0, prevPrepareStackTrace);
  4137. else return "";
  4138. return error;
  4139. }
  4140. function describeBuiltInComponentFrame(name) {
  4141. if (void 0 === prefix)
  4142. try {
  4143. throw Error();
  4144. } catch (x) {
  4145. var match = x.stack.trim().match(/\n( *(at )?)/);
  4146. prefix = (match && match[1]) || "";
  4147. suffix =
  4148. -1 < x.stack.indexOf("\n at")
  4149. ? " (<anonymous>)"
  4150. : -1 < x.stack.indexOf("@")
  4151. ? "@unknown:0:0"
  4152. : "";
  4153. }
  4154. return "\n" + prefix + name + suffix;
  4155. }
  4156. function describeNativeComponentFrame(fn, construct) {
  4157. if (!fn || reentry) return "";
  4158. var frame = componentFrameCache.get(fn);
  4159. if (void 0 !== frame) return frame;
  4160. reentry = !0;
  4161. frame = Error.prepareStackTrace;
  4162. Error.prepareStackTrace = void 0;
  4163. var previousDispatcher = null;
  4164. previousDispatcher = ReactSharedInternals.H;
  4165. ReactSharedInternals.H = null;
  4166. disableLogs();
  4167. try {
  4168. var RunInRootFrame = {
  4169. DetermineComponentFrameRoot: function () {
  4170. try {
  4171. if (construct) {
  4172. var Fake = function () {
  4173. throw Error();
  4174. };
  4175. Object.defineProperty(Fake.prototype, "props", {
  4176. set: function () {
  4177. throw Error();
  4178. }
  4179. });
  4180. if ("object" === typeof Reflect && Reflect.construct) {
  4181. try {
  4182. Reflect.construct(Fake, []);
  4183. } catch (x) {
  4184. var control = x;
  4185. }
  4186. Reflect.construct(fn, [], Fake);
  4187. } else {
  4188. try {
  4189. Fake.call();
  4190. } catch (x$0) {
  4191. control = x$0;
  4192. }
  4193. fn.call(Fake.prototype);
  4194. }
  4195. } else {
  4196. try {
  4197. throw Error();
  4198. } catch (x$1) {
  4199. control = x$1;
  4200. }
  4201. (Fake = fn()) &&
  4202. "function" === typeof Fake.catch &&
  4203. Fake.catch(function () {});
  4204. }
  4205. } catch (sample) {
  4206. if (sample && control && "string" === typeof sample.stack)
  4207. return [sample.stack, control.stack];
  4208. }
  4209. return [null, null];
  4210. }
  4211. };
  4212. RunInRootFrame.DetermineComponentFrameRoot.displayName =
  4213. "DetermineComponentFrameRoot";
  4214. var namePropDescriptor = Object.getOwnPropertyDescriptor(
  4215. RunInRootFrame.DetermineComponentFrameRoot,
  4216. "name"
  4217. );
  4218. namePropDescriptor &&
  4219. namePropDescriptor.configurable &&
  4220. Object.defineProperty(
  4221. RunInRootFrame.DetermineComponentFrameRoot,
  4222. "name",
  4223. { value: "DetermineComponentFrameRoot" }
  4224. );
  4225. var _RunInRootFrame$Deter =
  4226. RunInRootFrame.DetermineComponentFrameRoot(),
  4227. sampleStack = _RunInRootFrame$Deter[0],
  4228. controlStack = _RunInRootFrame$Deter[1];
  4229. if (sampleStack && controlStack) {
  4230. var sampleLines = sampleStack.split("\n"),
  4231. controlLines = controlStack.split("\n");
  4232. for (
  4233. _RunInRootFrame$Deter = namePropDescriptor = 0;
  4234. namePropDescriptor < sampleLines.length &&
  4235. !sampleLines[namePropDescriptor].includes(
  4236. "DetermineComponentFrameRoot"
  4237. );
  4238. )
  4239. namePropDescriptor++;
  4240. for (
  4241. ;
  4242. _RunInRootFrame$Deter < controlLines.length &&
  4243. !controlLines[_RunInRootFrame$Deter].includes(
  4244. "DetermineComponentFrameRoot"
  4245. );
  4246. )
  4247. _RunInRootFrame$Deter++;
  4248. if (
  4249. namePropDescriptor === sampleLines.length ||
  4250. _RunInRootFrame$Deter === controlLines.length
  4251. )
  4252. for (
  4253. namePropDescriptor = sampleLines.length - 1,
  4254. _RunInRootFrame$Deter = controlLines.length - 1;
  4255. 1 <= namePropDescriptor &&
  4256. 0 <= _RunInRootFrame$Deter &&
  4257. sampleLines[namePropDescriptor] !==
  4258. controlLines[_RunInRootFrame$Deter];
  4259. )
  4260. _RunInRootFrame$Deter--;
  4261. for (
  4262. ;
  4263. 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
  4264. namePropDescriptor--, _RunInRootFrame$Deter--
  4265. )
  4266. if (
  4267. sampleLines[namePropDescriptor] !==
  4268. controlLines[_RunInRootFrame$Deter]
  4269. ) {
  4270. if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
  4271. do
  4272. if (
  4273. (namePropDescriptor--,
  4274. _RunInRootFrame$Deter--,
  4275. 0 > _RunInRootFrame$Deter ||
  4276. sampleLines[namePropDescriptor] !==
  4277. controlLines[_RunInRootFrame$Deter])
  4278. ) {
  4279. var _frame =
  4280. "\n" +
  4281. sampleLines[namePropDescriptor].replace(
  4282. " at new ",
  4283. " at "
  4284. );
  4285. fn.displayName &&
  4286. _frame.includes("<anonymous>") &&
  4287. (_frame = _frame.replace("<anonymous>", fn.displayName));
  4288. "function" === typeof fn &&
  4289. componentFrameCache.set(fn, _frame);
  4290. return _frame;
  4291. }
  4292. while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
  4293. }
  4294. break;
  4295. }
  4296. }
  4297. } finally {
  4298. (reentry = !1),
  4299. (ReactSharedInternals.H = previousDispatcher),
  4300. reenableLogs(),
  4301. (Error.prepareStackTrace = frame);
  4302. }
  4303. sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
  4304. ? describeBuiltInComponentFrame(sampleLines)
  4305. : "";
  4306. "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
  4307. return sampleLines;
  4308. }
  4309. function describeComponentStackByType(type) {
  4310. if ("string" === typeof type) return describeBuiltInComponentFrame(type);
  4311. if ("function" === typeof type)
  4312. return type.prototype && type.prototype.isReactComponent
  4313. ? describeNativeComponentFrame(type, !0)
  4314. : describeNativeComponentFrame(type, !1);
  4315. if ("object" === typeof type && null !== type) {
  4316. switch (type.$$typeof) {
  4317. case REACT_FORWARD_REF_TYPE:
  4318. return describeNativeComponentFrame(type.render, !1);
  4319. case REACT_MEMO_TYPE:
  4320. return describeNativeComponentFrame(type.type, !1);
  4321. case REACT_LAZY_TYPE:
  4322. var lazyComponent = type,
  4323. payload = lazyComponent._payload;
  4324. lazyComponent = lazyComponent._init;
  4325. try {
  4326. type = lazyComponent(payload);
  4327. } catch (x) {
  4328. return describeBuiltInComponentFrame("Lazy");
  4329. }
  4330. return describeComponentStackByType(type);
  4331. }
  4332. if ("string" === typeof type.name) {
  4333. a: {
  4334. payload = type.name;
  4335. lazyComponent = type.env;
  4336. type = type.debugLocation;
  4337. if (null != type) {
  4338. type = formatOwnerStack(type);
  4339. var idx = type.lastIndexOf("\n");
  4340. type = -1 === idx ? type : type.slice(idx + 1);
  4341. if (-1 !== type.indexOf(payload)) {
  4342. payload = "\n" + type;
  4343. break a;
  4344. }
  4345. }
  4346. payload = describeBuiltInComponentFrame(
  4347. payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
  4348. );
  4349. }
  4350. return payload;
  4351. }
  4352. }
  4353. switch (type) {
  4354. case REACT_SUSPENSE_LIST_TYPE:
  4355. return describeBuiltInComponentFrame("SuspenseList");
  4356. case REACT_SUSPENSE_TYPE:
  4357. return describeBuiltInComponentFrame("Suspense");
  4358. }
  4359. return "";
  4360. }
  4361. function isEligibleForOutlining(request, boundary) {
  4362. return (
  4363. (500 < boundary.byteSize || !1) && null === boundary.contentPreamble
  4364. );
  4365. }
  4366. function defaultErrorHandler(error) {
  4367. if (
  4368. "object" === typeof error &&
  4369. null !== error &&
  4370. "string" === typeof error.environmentName
  4371. ) {
  4372. var JSCompiler_inline_result = error.environmentName;
  4373. error = [error].slice(0);
  4374. "string" === typeof error[0]
  4375. ? error.splice(
  4376. 0,
  4377. 1,
  4378. "[%s] " + error[0],
  4379. " " + JSCompiler_inline_result + " "
  4380. )
  4381. : error.splice(0, 0, "[%s]", " " + JSCompiler_inline_result + " ");
  4382. error.unshift(console);
  4383. JSCompiler_inline_result = bind.apply(console.error, error);
  4384. JSCompiler_inline_result();
  4385. } else console.error(error);
  4386. return null;
  4387. }
  4388. function RequestInstance(
  4389. resumableState,
  4390. renderState,
  4391. rootFormatContext,
  4392. progressiveChunkSize,
  4393. onError,
  4394. onAllReady,
  4395. onShellReady,
  4396. onShellError,
  4397. onFatalError,
  4398. onPostpone,
  4399. formState
  4400. ) {
  4401. var abortSet = new Set();
  4402. this.destination = null;
  4403. this.flushScheduled = !1;
  4404. this.resumableState = resumableState;
  4405. this.renderState = renderState;
  4406. this.rootFormatContext = rootFormatContext;
  4407. this.progressiveChunkSize =
  4408. void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
  4409. this.status = 10;
  4410. this.fatalError = null;
  4411. this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
  4412. this.completedPreambleSegments = this.completedRootSegment = null;
  4413. this.byteSize = 0;
  4414. this.abortableTasks = abortSet;
  4415. this.pingedTasks = [];
  4416. this.clientRenderedBoundaries = [];
  4417. this.completedBoundaries = [];
  4418. this.partialBoundaries = [];
  4419. this.trackedPostpones = null;
  4420. this.onError = void 0 === onError ? defaultErrorHandler : onError;
  4421. this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
  4422. this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
  4423. this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
  4424. this.onShellError = void 0 === onShellError ? noop : onShellError;
  4425. this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
  4426. this.formState = void 0 === formState ? null : formState;
  4427. this.didWarnForKey = null;
  4428. }
  4429. function createRequest(
  4430. children,
  4431. resumableState,
  4432. renderState,
  4433. rootFormatContext,
  4434. progressiveChunkSize,
  4435. onError,
  4436. onAllReady,
  4437. onShellReady,
  4438. onShellError,
  4439. onFatalError,
  4440. onPostpone,
  4441. formState
  4442. ) {
  4443. var now = getCurrentTime();
  4444. 1e3 < now - lastResetTime &&
  4445. ((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
  4446. (lastResetTime = now));
  4447. resumableState = new RequestInstance(
  4448. resumableState,
  4449. renderState,
  4450. rootFormatContext,
  4451. progressiveChunkSize,
  4452. onError,
  4453. onAllReady,
  4454. onShellReady,
  4455. onShellError,
  4456. onFatalError,
  4457. onPostpone,
  4458. formState
  4459. );
  4460. renderState = createPendingSegment(
  4461. resumableState,
  4462. 0,
  4463. null,
  4464. rootFormatContext,
  4465. !1,
  4466. !1
  4467. );
  4468. renderState.parentFlushed = !0;
  4469. children = createRenderTask(
  4470. resumableState,
  4471. null,
  4472. children,
  4473. -1,
  4474. null,
  4475. renderState,
  4476. null,
  4477. null,
  4478. resumableState.abortableTasks,
  4479. null,
  4480. rootFormatContext,
  4481. null,
  4482. emptyTreeContext,
  4483. null,
  4484. null,
  4485. emptyContextObject,
  4486. null
  4487. );
  4488. pushComponentStack(children);
  4489. resumableState.pingedTasks.push(children);
  4490. return resumableState;
  4491. }
  4492. function pingTask(request, task) {
  4493. request.pingedTasks.push(task);
  4494. 1 === request.pingedTasks.length &&
  4495. ((request.flushScheduled = null !== request.destination),
  4496. performWork(request));
  4497. }
  4498. function createSuspenseBoundary(
  4499. request,
  4500. row,
  4501. fallbackAbortableTasks,
  4502. contentPreamble,
  4503. fallbackPreamble
  4504. ) {
  4505. fallbackAbortableTasks = {
  4506. status: PENDING,
  4507. rootSegmentID: -1,
  4508. parentFlushed: !1,
  4509. pendingTasks: 0,
  4510. row: row,
  4511. completedSegments: [],
  4512. byteSize: 0,
  4513. fallbackAbortableTasks: fallbackAbortableTasks,
  4514. errorDigest: null,
  4515. contentState: createHoistableState(),
  4516. fallbackState: createHoistableState(),
  4517. contentPreamble: contentPreamble,
  4518. fallbackPreamble: fallbackPreamble,
  4519. trackedContentKeyPath: null,
  4520. trackedFallbackNode: null,
  4521. errorMessage: null,
  4522. errorStack: null,
  4523. errorComponentStack: null
  4524. };
  4525. null !== row &&
  4526. (row.pendingTasks++,
  4527. (contentPreamble = row.boundaries),
  4528. null !== contentPreamble &&
  4529. (request.allPendingTasks++,
  4530. fallbackAbortableTasks.pendingTasks++,
  4531. contentPreamble.push(fallbackAbortableTasks)),
  4532. (request = row.inheritedHoistables),
  4533. null !== request &&
  4534. hoistHoistables(fallbackAbortableTasks.contentState, request));
  4535. return fallbackAbortableTasks;
  4536. }
  4537. function createRenderTask(
  4538. request,
  4539. thenableState,
  4540. node,
  4541. childIndex,
  4542. blockedBoundary,
  4543. blockedSegment,
  4544. blockedPreamble,
  4545. hoistableState,
  4546. abortSet,
  4547. keyPath,
  4548. formatContext,
  4549. context,
  4550. treeContext,
  4551. row,
  4552. componentStack,
  4553. legacyContext,
  4554. debugTask
  4555. ) {
  4556. request.allPendingTasks++;
  4557. null === blockedBoundary
  4558. ? request.pendingRootTasks++
  4559. : blockedBoundary.pendingTasks++;
  4560. null !== row && row.pendingTasks++;
  4561. var task = {
  4562. replay: null,
  4563. node: node,
  4564. childIndex: childIndex,
  4565. ping: function () {
  4566. return pingTask(request, task);
  4567. },
  4568. blockedBoundary: blockedBoundary,
  4569. blockedSegment: blockedSegment,
  4570. blockedPreamble: blockedPreamble,
  4571. hoistableState: hoistableState,
  4572. abortSet: abortSet,
  4573. keyPath: keyPath,
  4574. formatContext: formatContext,
  4575. context: context,
  4576. treeContext: treeContext,
  4577. row: row,
  4578. componentStack: componentStack,
  4579. thenableState: thenableState
  4580. };
  4581. task.debugTask = debugTask;
  4582. abortSet.add(task);
  4583. return task;
  4584. }
  4585. function createReplayTask(
  4586. request,
  4587. thenableState,
  4588. replay,
  4589. node,
  4590. childIndex,
  4591. blockedBoundary,
  4592. hoistableState,
  4593. abortSet,
  4594. keyPath,
  4595. formatContext,
  4596. context,
  4597. treeContext,
  4598. row,
  4599. componentStack,
  4600. legacyContext,
  4601. debugTask
  4602. ) {
  4603. request.allPendingTasks++;
  4604. null === blockedBoundary
  4605. ? request.pendingRootTasks++
  4606. : blockedBoundary.pendingTasks++;
  4607. null !== row && row.pendingTasks++;
  4608. replay.pendingTasks++;
  4609. var task = {
  4610. replay: replay,
  4611. node: node,
  4612. childIndex: childIndex,
  4613. ping: function () {
  4614. return pingTask(request, task);
  4615. },
  4616. blockedBoundary: blockedBoundary,
  4617. blockedSegment: null,
  4618. blockedPreamble: null,
  4619. hoistableState: hoistableState,
  4620. abortSet: abortSet,
  4621. keyPath: keyPath,
  4622. formatContext: formatContext,
  4623. context: context,
  4624. treeContext: treeContext,
  4625. row: row,
  4626. componentStack: componentStack,
  4627. thenableState: thenableState
  4628. };
  4629. task.debugTask = debugTask;
  4630. abortSet.add(task);
  4631. return task;
  4632. }
  4633. function createPendingSegment(
  4634. request,
  4635. index,
  4636. boundary,
  4637. parentFormatContext,
  4638. lastPushedText,
  4639. textEmbedded
  4640. ) {
  4641. return {
  4642. status: PENDING,
  4643. parentFlushed: !1,
  4644. id: -1,
  4645. index: index,
  4646. chunks: [],
  4647. children: [],
  4648. preambleChildren: [],
  4649. parentFormatContext: parentFormatContext,
  4650. boundary: boundary,
  4651. lastPushedText: lastPushedText,
  4652. textEmbedded: textEmbedded
  4653. };
  4654. }
  4655. function getCurrentStackInDEV() {
  4656. if (null === currentTaskInDEV || null === currentTaskInDEV.componentStack)
  4657. return "";
  4658. var componentStack = currentTaskInDEV.componentStack;
  4659. try {
  4660. var info = "";
  4661. if ("string" === typeof componentStack.type)
  4662. info += describeBuiltInComponentFrame(componentStack.type);
  4663. else if ("function" === typeof componentStack.type) {
  4664. if (!componentStack.owner) {
  4665. var JSCompiler_temp_const = info,
  4666. fn = componentStack.type,
  4667. name = fn ? fn.displayName || fn.name : "";
  4668. var JSCompiler_inline_result = name
  4669. ? describeBuiltInComponentFrame(name)
  4670. : "";
  4671. info = JSCompiler_temp_const + JSCompiler_inline_result;
  4672. }
  4673. } else
  4674. componentStack.owner ||
  4675. (info += describeComponentStackByType(componentStack.type));
  4676. for (; componentStack; )
  4677. (JSCompiler_temp_const = null),
  4678. null != componentStack.debugStack
  4679. ? (JSCompiler_temp_const = formatOwnerStack(
  4680. componentStack.debugStack
  4681. ))
  4682. : ((JSCompiler_inline_result = componentStack),
  4683. null != JSCompiler_inline_result.stack &&
  4684. (JSCompiler_temp_const =
  4685. "string" !== typeof JSCompiler_inline_result.stack
  4686. ? (JSCompiler_inline_result.stack = formatOwnerStack(
  4687. JSCompiler_inline_result.stack
  4688. ))
  4689. : JSCompiler_inline_result.stack)),
  4690. (componentStack = componentStack.owner) &&
  4691. JSCompiler_temp_const &&
  4692. (info += "\n" + JSCompiler_temp_const);
  4693. var JSCompiler_inline_result$jscomp$0 = info;
  4694. } catch (x) {
  4695. JSCompiler_inline_result$jscomp$0 =
  4696. "\nError generating stack: " + x.message + "\n" + x.stack;
  4697. }
  4698. return JSCompiler_inline_result$jscomp$0;
  4699. }
  4700. function pushHaltedAwaitOnComponentStack(task, debugInfo) {
  4701. if (null != debugInfo)
  4702. for (var i = debugInfo.length - 1; 0 <= i; i--) {
  4703. var info = debugInfo[i];
  4704. if ("string" === typeof info.name) break;
  4705. if ("number" === typeof info.time) break;
  4706. if (null != info.awaited) {
  4707. var bestStack = null == info.debugStack ? info.awaited : info;
  4708. if (void 0 !== bestStack.debugStack) {
  4709. task.componentStack = {
  4710. parent: task.componentStack,
  4711. type: info,
  4712. owner: bestStack.owner,
  4713. stack: bestStack.debugStack
  4714. };
  4715. task.debugTask = bestStack.debugTask;
  4716. break;
  4717. }
  4718. }
  4719. }
  4720. }
  4721. function pushServerComponentStack(task, debugInfo) {
  4722. if (null != debugInfo)
  4723. for (var i = 0; i < debugInfo.length; i++) {
  4724. var componentInfo = debugInfo[i];
  4725. "string" === typeof componentInfo.name &&
  4726. void 0 !== componentInfo.debugStack &&
  4727. ((task.componentStack = {
  4728. parent: task.componentStack,
  4729. type: componentInfo,
  4730. owner: componentInfo.owner,
  4731. stack: componentInfo.debugStack
  4732. }),
  4733. (task.debugTask = componentInfo.debugTask));
  4734. }
  4735. }
  4736. function pushComponentStack(task) {
  4737. var node = task.node;
  4738. if ("object" === typeof node && null !== node)
  4739. switch (node.$$typeof) {
  4740. case REACT_ELEMENT_TYPE:
  4741. var type = node.type,
  4742. owner = node._owner,
  4743. stack = node._debugStack;
  4744. pushServerComponentStack(task, node._debugInfo);
  4745. task.debugTask = node._debugTask;
  4746. task.componentStack = {
  4747. parent: task.componentStack,
  4748. type: type,
  4749. owner: owner,
  4750. stack: stack
  4751. };
  4752. break;
  4753. case REACT_LAZY_TYPE:
  4754. pushServerComponentStack(task, node._debugInfo);
  4755. break;
  4756. default:
  4757. "function" === typeof node.then &&
  4758. pushServerComponentStack(task, node._debugInfo);
  4759. }
  4760. }
  4761. function replaceSuspenseComponentStackWithSuspenseFallbackStack(
  4762. componentStack
  4763. ) {
  4764. return null === componentStack
  4765. ? null
  4766. : {
  4767. parent: componentStack.parent,
  4768. type: "Suspense Fallback",
  4769. owner: componentStack.owner,
  4770. stack: componentStack.stack
  4771. };
  4772. }
  4773. function getThrownInfo(node$jscomp$0) {
  4774. var errorInfo = {};
  4775. node$jscomp$0 &&
  4776. Object.defineProperty(errorInfo, "componentStack", {
  4777. configurable: !0,
  4778. enumerable: !0,
  4779. get: function () {
  4780. try {
  4781. var info = "",
  4782. node = node$jscomp$0;
  4783. do
  4784. (info += describeComponentStackByType(node.type)),
  4785. (node = node.parent);
  4786. while (node);
  4787. var stack = info;
  4788. } catch (x) {
  4789. stack = "\nError generating stack: " + x.message + "\n" + x.stack;
  4790. }
  4791. Object.defineProperty(errorInfo, "componentStack", {
  4792. value: stack
  4793. });
  4794. return stack;
  4795. }
  4796. });
  4797. return errorInfo;
  4798. }
  4799. function encodeErrorForBoundary(
  4800. boundary,
  4801. digest,
  4802. error,
  4803. thrownInfo,
  4804. wasAborted
  4805. ) {
  4806. boundary.errorDigest = digest;
  4807. error instanceof Error
  4808. ? ((digest = String(error.message)), (error = String(error.stack)))
  4809. : ((digest =
  4810. "object" === typeof error && null !== error
  4811. ? describeObjectForErrorMessage(error)
  4812. : String(error)),
  4813. (error = null));
  4814. wasAborted = wasAborted
  4815. ? "Switched to client rendering because the server rendering aborted due to:\n\n"
  4816. : "Switched to client rendering because the server rendering errored:\n\n";
  4817. boundary.errorMessage = wasAborted + digest;
  4818. boundary.errorStack = null !== error ? wasAborted + error : null;
  4819. boundary.errorComponentStack = thrownInfo.componentStack;
  4820. }
  4821. function logRecoverableError(request, error, errorInfo, debugTask) {
  4822. request = request.onError;
  4823. error = debugTask
  4824. ? debugTask.run(request.bind(null, error, errorInfo))
  4825. : request(error, errorInfo);
  4826. if (null != error && "string" !== typeof error)
  4827. console.error(
  4828. 'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',
  4829. typeof error
  4830. );
  4831. else return error;
  4832. }
  4833. function fatalError(request, error, errorInfo, debugTask) {
  4834. errorInfo = request.onShellError;
  4835. var onFatalError = request.onFatalError;
  4836. debugTask
  4837. ? (debugTask.run(errorInfo.bind(null, error)),
  4838. debugTask.run(onFatalError.bind(null, error)))
  4839. : (errorInfo(error), onFatalError(error));
  4840. null !== request.destination
  4841. ? ((request.status = CLOSED), request.destination.destroy(error))
  4842. : ((request.status = 13), (request.fatalError = error));
  4843. }
  4844. function finishSuspenseListRow(request, row) {
  4845. unblockSuspenseListRow(request, row.next, row.hoistables);
  4846. }
  4847. function unblockSuspenseListRow(
  4848. request,
  4849. unblockedRow,
  4850. inheritedHoistables
  4851. ) {
  4852. for (; null !== unblockedRow; ) {
  4853. null !== inheritedHoistables &&
  4854. (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
  4855. (unblockedRow.inheritedHoistables = inheritedHoistables));
  4856. var unblockedBoundaries = unblockedRow.boundaries;
  4857. if (null !== unblockedBoundaries) {
  4858. unblockedRow.boundaries = null;
  4859. for (var i = 0; i < unblockedBoundaries.length; i++) {
  4860. var unblockedBoundary = unblockedBoundaries[i];
  4861. null !== inheritedHoistables &&
  4862. hoistHoistables(
  4863. unblockedBoundary.contentState,
  4864. inheritedHoistables
  4865. );
  4866. finishedTask(request, unblockedBoundary, null, null);
  4867. }
  4868. }
  4869. unblockedRow.pendingTasks--;
  4870. if (0 < unblockedRow.pendingTasks) break;
  4871. inheritedHoistables = unblockedRow.hoistables;
  4872. unblockedRow = unblockedRow.next;
  4873. }
  4874. }
  4875. function tryToResolveTogetherRow(request, togetherRow) {
  4876. var boundaries = togetherRow.boundaries;
  4877. if (
  4878. null !== boundaries &&
  4879. togetherRow.pendingTasks === boundaries.length
  4880. ) {
  4881. for (
  4882. var allCompleteAndInlinable = !0, i = 0;
  4883. i < boundaries.length;
  4884. i++
  4885. ) {
  4886. var rowBoundary = boundaries[i];
  4887. if (
  4888. 1 !== rowBoundary.pendingTasks ||
  4889. rowBoundary.parentFlushed ||
  4890. isEligibleForOutlining(request, rowBoundary)
  4891. ) {
  4892. allCompleteAndInlinable = !1;
  4893. break;
  4894. }
  4895. }
  4896. allCompleteAndInlinable &&
  4897. unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
  4898. }
  4899. }
  4900. function createSuspenseListRow(previousRow) {
  4901. var newRow = {
  4902. pendingTasks: 1,
  4903. boundaries: null,
  4904. hoistables: createHoistableState(),
  4905. inheritedHoistables: null,
  4906. together: !1,
  4907. next: null
  4908. };
  4909. null !== previousRow &&
  4910. 0 < previousRow.pendingTasks &&
  4911. (newRow.pendingTasks++,
  4912. (newRow.boundaries = []),
  4913. (previousRow.next = newRow));
  4914. return newRow;
  4915. }
  4916. function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
  4917. var prevKeyPath = task.keyPath,
  4918. prevTreeContext = task.treeContext,
  4919. prevRow = task.row,
  4920. previousComponentStack = task.componentStack;
  4921. var previousDebugTask = task.debugTask;
  4922. pushServerComponentStack(task, task.node.props.children._debugInfo);
  4923. task.keyPath = keyPath;
  4924. keyPath = rows.length;
  4925. var previousSuspenseListRow = null;
  4926. if (null !== task.replay) {
  4927. var resumeSlots = task.replay.slots;
  4928. if (null !== resumeSlots && "object" === typeof resumeSlots)
  4929. for (var n = 0; n < keyPath; n++) {
  4930. var i =
  4931. "backwards" !== revealOrder &&
  4932. "unstable_legacy-backwards" !== revealOrder
  4933. ? n
  4934. : keyPath - 1 - n,
  4935. node = rows[i];
  4936. task.row = previousSuspenseListRow = createSuspenseListRow(
  4937. previousSuspenseListRow
  4938. );
  4939. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  4940. var resumeSegmentID = resumeSlots[i];
  4941. "number" === typeof resumeSegmentID
  4942. ? (resumeNode(request, task, resumeSegmentID, node, i),
  4943. delete resumeSlots[i])
  4944. : renderNode(request, task, node, i);
  4945. 0 === --previousSuspenseListRow.pendingTasks &&
  4946. finishSuspenseListRow(request, previousSuspenseListRow);
  4947. }
  4948. else
  4949. for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
  4950. (n =
  4951. "backwards" !== revealOrder &&
  4952. "unstable_legacy-backwards" !== revealOrder
  4953. ? resumeSlots
  4954. : keyPath - 1 - resumeSlots),
  4955. (i = rows[n]),
  4956. warnForMissingKey(request, task, i),
  4957. (task.row = previousSuspenseListRow =
  4958. createSuspenseListRow(previousSuspenseListRow)),
  4959. (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
  4960. renderNode(request, task, i, n),
  4961. 0 === --previousSuspenseListRow.pendingTasks &&
  4962. finishSuspenseListRow(request, previousSuspenseListRow);
  4963. } else if (
  4964. "backwards" !== revealOrder &&
  4965. "unstable_legacy-backwards" !== revealOrder
  4966. )
  4967. for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
  4968. (resumeSlots = rows[revealOrder]),
  4969. warnForMissingKey(request, task, resumeSlots),
  4970. (task.row = previousSuspenseListRow =
  4971. createSuspenseListRow(previousSuspenseListRow)),
  4972. (task.treeContext = pushTreeContext(
  4973. prevTreeContext,
  4974. keyPath,
  4975. revealOrder
  4976. )),
  4977. renderNode(request, task, resumeSlots, revealOrder),
  4978. 0 === --previousSuspenseListRow.pendingTasks &&
  4979. finishSuspenseListRow(request, previousSuspenseListRow);
  4980. else {
  4981. revealOrder = task.blockedSegment;
  4982. resumeSlots = revealOrder.children.length;
  4983. n = revealOrder.chunks.length;
  4984. for (i = keyPath - 1; 0 <= i; i--) {
  4985. node = rows[i];
  4986. task.row = previousSuspenseListRow = createSuspenseListRow(
  4987. previousSuspenseListRow
  4988. );
  4989. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  4990. resumeSegmentID = createPendingSegment(
  4991. request,
  4992. n,
  4993. null,
  4994. task.formatContext,
  4995. 0 === i ? revealOrder.lastPushedText : !0,
  4996. !0
  4997. );
  4998. revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
  4999. task.blockedSegment = resumeSegmentID;
  5000. warnForMissingKey(request, task, node);
  5001. try {
  5002. renderNode(request, task, node, i),
  5003. pushSegmentFinale(
  5004. resumeSegmentID.chunks,
  5005. request.renderState,
  5006. resumeSegmentID.lastPushedText,
  5007. resumeSegmentID.textEmbedded
  5008. ),
  5009. (resumeSegmentID.status = COMPLETED),
  5010. 0 === --previousSuspenseListRow.pendingTasks &&
  5011. finishSuspenseListRow(request, previousSuspenseListRow);
  5012. } catch (thrownValue) {
  5013. throw (
  5014. ((resumeSegmentID.status =
  5015. 12 === request.status ? ABORTED : ERRORED),
  5016. thrownValue)
  5017. );
  5018. }
  5019. }
  5020. task.blockedSegment = revealOrder;
  5021. revealOrder.lastPushedText = !1;
  5022. }
  5023. null !== prevRow &&
  5024. null !== previousSuspenseListRow &&
  5025. 0 < previousSuspenseListRow.pendingTasks &&
  5026. (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
  5027. task.treeContext = prevTreeContext;
  5028. task.row = prevRow;
  5029. task.keyPath = prevKeyPath;
  5030. task.componentStack = previousComponentStack;
  5031. task.debugTask = previousDebugTask;
  5032. }
  5033. function renderWithHooks(
  5034. request,
  5035. task,
  5036. keyPath,
  5037. Component,
  5038. props,
  5039. secondArg
  5040. ) {
  5041. var prevThenableState = task.thenableState;
  5042. task.thenableState = null;
  5043. currentlyRenderingComponent = {};
  5044. currentlyRenderingTask = task;
  5045. currentlyRenderingRequest = request;
  5046. currentlyRenderingKeyPath = keyPath;
  5047. isInHookUserCodeInDev = !1;
  5048. actionStateCounter = localIdCounter = 0;
  5049. actionStateMatchingIndex = -1;
  5050. thenableIndexCounter = 0;
  5051. thenableState = prevThenableState;
  5052. for (
  5053. request = callComponentInDEV(Component, props, secondArg);
  5054. didScheduleRenderPhaseUpdate;
  5055. )
  5056. (didScheduleRenderPhaseUpdate = !1),
  5057. (actionStateCounter = localIdCounter = 0),
  5058. (actionStateMatchingIndex = -1),
  5059. (thenableIndexCounter = 0),
  5060. (numberOfReRenders += 1),
  5061. (workInProgressHook = null),
  5062. (request = Component(props, secondArg));
  5063. resetHooksState();
  5064. return request;
  5065. }
  5066. function finishFunctionComponent(
  5067. request,
  5068. task,
  5069. keyPath,
  5070. children,
  5071. hasId,
  5072. actionStateCount,
  5073. actionStateMatchingIndex
  5074. ) {
  5075. var didEmitActionStateMarkers = !1;
  5076. if (0 !== actionStateCount && null !== request.formState) {
  5077. var segment = task.blockedSegment;
  5078. if (null !== segment) {
  5079. didEmitActionStateMarkers = !0;
  5080. segment = segment.chunks;
  5081. for (var i = 0; i < actionStateCount; i++)
  5082. i === actionStateMatchingIndex
  5083. ? segment.push("\x3c!--F!--\x3e")
  5084. : segment.push("\x3c!--F--\x3e");
  5085. }
  5086. }
  5087. actionStateCount = task.keyPath;
  5088. task.keyPath = keyPath;
  5089. hasId
  5090. ? ((keyPath = task.treeContext),
  5091. (task.treeContext = pushTreeContext(keyPath, 1, 0)),
  5092. renderNode(request, task, children, -1),
  5093. (task.treeContext = keyPath))
  5094. : didEmitActionStateMarkers
  5095. ? renderNode(request, task, children, -1)
  5096. : renderNodeDestructive(request, task, children, -1);
  5097. task.keyPath = actionStateCount;
  5098. }
  5099. function renderElement(request, task, keyPath, type, props, ref) {
  5100. if ("function" === typeof type)
  5101. if (type.prototype && type.prototype.isReactComponent) {
  5102. var newProps = props;
  5103. if ("ref" in props) {
  5104. newProps = {};
  5105. for (var propName in props)
  5106. "ref" !== propName && (newProps[propName] = props[propName]);
  5107. }
  5108. var defaultProps = type.defaultProps;
  5109. if (defaultProps) {
  5110. newProps === props && (newProps = assign({}, newProps, props));
  5111. for (var _propName in defaultProps)
  5112. void 0 === newProps[_propName] &&
  5113. (newProps[_propName] = defaultProps[_propName]);
  5114. }
  5115. var resolvedProps = newProps;
  5116. var context = emptyContextObject,
  5117. contextType = type.contextType;
  5118. if (
  5119. "contextType" in type &&
  5120. null !== contextType &&
  5121. (void 0 === contextType ||
  5122. contextType.$$typeof !== REACT_CONTEXT_TYPE) &&
  5123. !didWarnAboutInvalidateContextType.has(type)
  5124. ) {
  5125. didWarnAboutInvalidateContextType.add(type);
  5126. var addendum =
  5127. void 0 === contextType
  5128. ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file."
  5129. : "object" !== typeof contextType
  5130. ? " However, it is set to a " + typeof contextType + "."
  5131. : contextType.$$typeof === REACT_CONSUMER_TYPE
  5132. ? " Did you accidentally pass the Context.Consumer instead?"
  5133. : " However, it is set to an object with keys {" +
  5134. Object.keys(contextType).join(", ") +
  5135. "}.";
  5136. console.error(
  5137. "%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
  5138. getComponentNameFromType(type) || "Component",
  5139. addendum
  5140. );
  5141. }
  5142. "object" === typeof contextType &&
  5143. null !== contextType &&
  5144. (context = contextType._currentValue2);
  5145. var instance = new type(resolvedProps, context);
  5146. if (
  5147. "function" === typeof type.getDerivedStateFromProps &&
  5148. (null === instance.state || void 0 === instance.state)
  5149. ) {
  5150. var componentName = getComponentNameFromType(type) || "Component";
  5151. didWarnAboutUninitializedState.has(componentName) ||
  5152. (didWarnAboutUninitializedState.add(componentName),
  5153. console.error(
  5154. "`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
  5155. componentName,
  5156. null === instance.state ? "null" : "undefined",
  5157. componentName
  5158. ));
  5159. }
  5160. if (
  5161. "function" === typeof type.getDerivedStateFromProps ||
  5162. "function" === typeof instance.getSnapshotBeforeUpdate
  5163. ) {
  5164. var foundWillMountName = null,
  5165. foundWillReceivePropsName = null,
  5166. foundWillUpdateName = null;
  5167. "function" === typeof instance.componentWillMount &&
  5168. !0 !== instance.componentWillMount.__suppressDeprecationWarning
  5169. ? (foundWillMountName = "componentWillMount")
  5170. : "function" === typeof instance.UNSAFE_componentWillMount &&
  5171. (foundWillMountName = "UNSAFE_componentWillMount");
  5172. "function" === typeof instance.componentWillReceiveProps &&
  5173. !0 !==
  5174. instance.componentWillReceiveProps.__suppressDeprecationWarning
  5175. ? (foundWillReceivePropsName = "componentWillReceiveProps")
  5176. : "function" ===
  5177. typeof instance.UNSAFE_componentWillReceiveProps &&
  5178. (foundWillReceivePropsName =
  5179. "UNSAFE_componentWillReceiveProps");
  5180. "function" === typeof instance.componentWillUpdate &&
  5181. !0 !== instance.componentWillUpdate.__suppressDeprecationWarning
  5182. ? (foundWillUpdateName = "componentWillUpdate")
  5183. : "function" === typeof instance.UNSAFE_componentWillUpdate &&
  5184. (foundWillUpdateName = "UNSAFE_componentWillUpdate");
  5185. if (
  5186. null !== foundWillMountName ||
  5187. null !== foundWillReceivePropsName ||
  5188. null !== foundWillUpdateName
  5189. ) {
  5190. var _componentName =
  5191. getComponentNameFromType(type) || "Component",
  5192. newApiName =
  5193. "function" === typeof type.getDerivedStateFromProps
  5194. ? "getDerivedStateFromProps()"
  5195. : "getSnapshotBeforeUpdate()";
  5196. didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName) ||
  5197. (didWarnAboutLegacyLifecyclesAndDerivedState.add(
  5198. _componentName
  5199. ),
  5200. console.error(
  5201. "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",
  5202. _componentName,
  5203. newApiName,
  5204. null !== foundWillMountName
  5205. ? "\n " + foundWillMountName
  5206. : "",
  5207. null !== foundWillReceivePropsName
  5208. ? "\n " + foundWillReceivePropsName
  5209. : "",
  5210. null !== foundWillUpdateName
  5211. ? "\n " + foundWillUpdateName
  5212. : ""
  5213. ));
  5214. }
  5215. }
  5216. var name = getComponentNameFromType(type) || "Component";
  5217. instance.render ||
  5218. (type.prototype && "function" === typeof type.prototype.render
  5219. ? console.error(
  5220. "No `render` method found on the %s instance: did you accidentally return an object from the constructor?",
  5221. name
  5222. )
  5223. : console.error(
  5224. "No `render` method found on the %s instance: you may have forgotten to define `render`.",
  5225. name
  5226. ));
  5227. !instance.getInitialState ||
  5228. instance.getInitialState.isReactClassApproved ||
  5229. instance.state ||
  5230. console.error(
  5231. "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?",
  5232. name
  5233. );
  5234. instance.getDefaultProps &&
  5235. !instance.getDefaultProps.isReactClassApproved &&
  5236. console.error(
  5237. "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.",
  5238. name
  5239. );
  5240. instance.contextType &&
  5241. console.error(
  5242. "contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
  5243. name
  5244. );
  5245. type.childContextTypes &&
  5246. !didWarnAboutChildContextTypes.has(type) &&
  5247. (didWarnAboutChildContextTypes.add(type),
  5248. console.error(
  5249. "%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
  5250. name
  5251. ));
  5252. type.contextTypes &&
  5253. !didWarnAboutContextTypes$1.has(type) &&
  5254. (didWarnAboutContextTypes$1.add(type),
  5255. console.error(
  5256. "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
  5257. name
  5258. ));
  5259. "function" === typeof instance.componentShouldUpdate &&
  5260. console.error(
  5261. "%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.",
  5262. name
  5263. );
  5264. type.prototype &&
  5265. type.prototype.isPureReactComponent &&
  5266. "undefined" !== typeof instance.shouldComponentUpdate &&
  5267. console.error(
  5268. "%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
  5269. getComponentNameFromType(type) || "A pure component"
  5270. );
  5271. "function" === typeof instance.componentDidUnmount &&
  5272. console.error(
  5273. "%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
  5274. name
  5275. );
  5276. "function" === typeof instance.componentDidReceiveProps &&
  5277. console.error(
  5278. "%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",
  5279. name
  5280. );
  5281. "function" === typeof instance.componentWillRecieveProps &&
  5282. console.error(
  5283. "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
  5284. name
  5285. );
  5286. "function" === typeof instance.UNSAFE_componentWillRecieveProps &&
  5287. console.error(
  5288. "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",
  5289. name
  5290. );
  5291. var hasMutatedProps = instance.props !== resolvedProps;
  5292. void 0 !== instance.props &&
  5293. hasMutatedProps &&
  5294. console.error(
  5295. "When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",
  5296. name
  5297. );
  5298. instance.defaultProps &&
  5299. console.error(
  5300. "Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",
  5301. name,
  5302. name
  5303. );
  5304. "function" !== typeof instance.getSnapshotBeforeUpdate ||
  5305. "function" === typeof instance.componentDidUpdate ||
  5306. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) ||
  5307. (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type),
  5308. console.error(
  5309. "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
  5310. getComponentNameFromType(type)
  5311. ));
  5312. "function" === typeof instance.getDerivedStateFromProps &&
  5313. console.error(
  5314. "%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
  5315. name
  5316. );
  5317. "function" === typeof instance.getDerivedStateFromError &&
  5318. console.error(
  5319. "%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
  5320. name
  5321. );
  5322. "function" === typeof type.getSnapshotBeforeUpdate &&
  5323. console.error(
  5324. "%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",
  5325. name
  5326. );
  5327. var state = instance.state;
  5328. state &&
  5329. ("object" !== typeof state || isArrayImpl(state)) &&
  5330. console.error("%s.state: must be set to an object or null", name);
  5331. "function" === typeof instance.getChildContext &&
  5332. "object" !== typeof type.childContextTypes &&
  5333. console.error(
  5334. "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
  5335. name
  5336. );
  5337. var initialState = void 0 !== instance.state ? instance.state : null;
  5338. instance.updater = classComponentUpdater;
  5339. instance.props = resolvedProps;
  5340. instance.state = initialState;
  5341. var internalInstance = { queue: [], replace: !1 };
  5342. instance._reactInternals = internalInstance;
  5343. var contextType$jscomp$0 = type.contextType;
  5344. instance.context =
  5345. "object" === typeof contextType$jscomp$0 &&
  5346. null !== contextType$jscomp$0
  5347. ? contextType$jscomp$0._currentValue2
  5348. : emptyContextObject;
  5349. if (instance.state === resolvedProps) {
  5350. var componentName$jscomp$0 =
  5351. getComponentNameFromType(type) || "Component";
  5352. didWarnAboutDirectlyAssigningPropsToState.has(
  5353. componentName$jscomp$0
  5354. ) ||
  5355. (didWarnAboutDirectlyAssigningPropsToState.add(
  5356. componentName$jscomp$0
  5357. ),
  5358. console.error(
  5359. "%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
  5360. componentName$jscomp$0
  5361. ));
  5362. }
  5363. var getDerivedStateFromProps = type.getDerivedStateFromProps;
  5364. if ("function" === typeof getDerivedStateFromProps) {
  5365. var partialState = getDerivedStateFromProps(
  5366. resolvedProps,
  5367. initialState
  5368. );
  5369. if (void 0 === partialState) {
  5370. var componentName$jscomp$1 =
  5371. getComponentNameFromType(type) || "Component";
  5372. didWarnAboutUndefinedDerivedState.has(componentName$jscomp$1) ||
  5373. (didWarnAboutUndefinedDerivedState.add(componentName$jscomp$1),
  5374. console.error(
  5375. "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
  5376. componentName$jscomp$1
  5377. ));
  5378. }
  5379. var JSCompiler_inline_result =
  5380. null === partialState || void 0 === partialState
  5381. ? initialState
  5382. : assign({}, initialState, partialState);
  5383. instance.state = JSCompiler_inline_result;
  5384. }
  5385. if (
  5386. "function" !== typeof type.getDerivedStateFromProps &&
  5387. "function" !== typeof instance.getSnapshotBeforeUpdate &&
  5388. ("function" === typeof instance.UNSAFE_componentWillMount ||
  5389. "function" === typeof instance.componentWillMount)
  5390. ) {
  5391. var oldState = instance.state;
  5392. if ("function" === typeof instance.componentWillMount) {
  5393. if (
  5394. !0 !== instance.componentWillMount.__suppressDeprecationWarning
  5395. ) {
  5396. var componentName$jscomp$2 =
  5397. getComponentNameFromType(type) || "Unknown";
  5398. didWarnAboutDeprecatedWillMount[componentName$jscomp$2] ||
  5399. (console.warn(
  5400. "componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s",
  5401. componentName$jscomp$2
  5402. ),
  5403. (didWarnAboutDeprecatedWillMount[componentName$jscomp$2] =
  5404. !0));
  5405. }
  5406. instance.componentWillMount();
  5407. }
  5408. "function" === typeof instance.UNSAFE_componentWillMount &&
  5409. instance.UNSAFE_componentWillMount();
  5410. oldState !== instance.state &&
  5411. (console.error(
  5412. "%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
  5413. getComponentNameFromType(type) || "Component"
  5414. ),
  5415. classComponentUpdater.enqueueReplaceState(
  5416. instance,
  5417. instance.state,
  5418. null
  5419. ));
  5420. if (
  5421. null !== internalInstance.queue &&
  5422. 0 < internalInstance.queue.length
  5423. ) {
  5424. var oldQueue = internalInstance.queue,
  5425. oldReplace = internalInstance.replace;
  5426. internalInstance.queue = null;
  5427. internalInstance.replace = !1;
  5428. if (oldReplace && 1 === oldQueue.length)
  5429. instance.state = oldQueue[0];
  5430. else {
  5431. for (
  5432. var nextState = oldReplace ? oldQueue[0] : instance.state,
  5433. dontMutate = !0,
  5434. i = oldReplace ? 1 : 0;
  5435. i < oldQueue.length;
  5436. i++
  5437. ) {
  5438. var partial = oldQueue[i],
  5439. partialState$jscomp$0 =
  5440. "function" === typeof partial
  5441. ? partial.call(
  5442. instance,
  5443. nextState,
  5444. resolvedProps,
  5445. void 0
  5446. )
  5447. : partial;
  5448. null != partialState$jscomp$0 &&
  5449. (dontMutate
  5450. ? ((dontMutate = !1),
  5451. (nextState = assign(
  5452. {},
  5453. nextState,
  5454. partialState$jscomp$0
  5455. )))
  5456. : assign(nextState, partialState$jscomp$0));
  5457. }
  5458. instance.state = nextState;
  5459. }
  5460. } else internalInstance.queue = null;
  5461. }
  5462. var nextChildren = callRenderInDEV(instance);
  5463. if (12 === request.status) throw null;
  5464. instance.props !== resolvedProps &&
  5465. (didWarnAboutReassigningProps ||
  5466. console.error(
  5467. "It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",
  5468. getComponentNameFromType(type) || "a component"
  5469. ),
  5470. (didWarnAboutReassigningProps = !0));
  5471. var prevKeyPath = task.keyPath;
  5472. task.keyPath = keyPath;
  5473. renderNodeDestructive(request, task, nextChildren, -1);
  5474. task.keyPath = prevKeyPath;
  5475. } else {
  5476. if (type.prototype && "function" === typeof type.prototype.render) {
  5477. var componentName$jscomp$3 =
  5478. getComponentNameFromType(type) || "Unknown";
  5479. didWarnAboutBadClass[componentName$jscomp$3] ||
  5480. (console.error(
  5481. "The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
  5482. componentName$jscomp$3,
  5483. componentName$jscomp$3
  5484. ),
  5485. (didWarnAboutBadClass[componentName$jscomp$3] = !0));
  5486. }
  5487. var value = renderWithHooks(
  5488. request,
  5489. task,
  5490. keyPath,
  5491. type,
  5492. props,
  5493. void 0
  5494. );
  5495. if (12 === request.status) throw null;
  5496. var hasId = 0 !== localIdCounter,
  5497. actionStateCount = actionStateCounter,
  5498. actionStateMatchingIndex$jscomp$0 = actionStateMatchingIndex;
  5499. if (type.contextTypes) {
  5500. var _componentName$jscomp$0 =
  5501. getComponentNameFromType(type) || "Unknown";
  5502. didWarnAboutContextTypes[_componentName$jscomp$0] ||
  5503. ((didWarnAboutContextTypes[_componentName$jscomp$0] = !0),
  5504. console.error(
  5505. "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
  5506. _componentName$jscomp$0
  5507. ));
  5508. }
  5509. type &&
  5510. type.childContextTypes &&
  5511. console.error(
  5512. "childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",
  5513. type.displayName || type.name || "Component"
  5514. );
  5515. if ("function" === typeof type.getDerivedStateFromProps) {
  5516. var componentName$jscomp$4 =
  5517. getComponentNameFromType(type) || "Unknown";
  5518. didWarnAboutGetDerivedStateOnFunctionComponent[
  5519. componentName$jscomp$4
  5520. ] ||
  5521. (console.error(
  5522. "%s: Function components do not support getDerivedStateFromProps.",
  5523. componentName$jscomp$4
  5524. ),
  5525. (didWarnAboutGetDerivedStateOnFunctionComponent[
  5526. componentName$jscomp$4
  5527. ] = !0));
  5528. }
  5529. if (
  5530. "object" === typeof type.contextType &&
  5531. null !== type.contextType
  5532. ) {
  5533. var _componentName2 = getComponentNameFromType(type) || "Unknown";
  5534. didWarnAboutContextTypeOnFunctionComponent[_componentName2] ||
  5535. (console.error(
  5536. "%s: Function components do not support contextType.",
  5537. _componentName2
  5538. ),
  5539. (didWarnAboutContextTypeOnFunctionComponent[_componentName2] =
  5540. !0));
  5541. }
  5542. finishFunctionComponent(
  5543. request,
  5544. task,
  5545. keyPath,
  5546. value,
  5547. hasId,
  5548. actionStateCount,
  5549. actionStateMatchingIndex$jscomp$0
  5550. );
  5551. }
  5552. else if ("string" === typeof type) {
  5553. var segment = task.blockedSegment;
  5554. if (null === segment) {
  5555. var children = props.children,
  5556. prevContext = task.formatContext,
  5557. prevKeyPath$jscomp$0 = task.keyPath;
  5558. task.formatContext = getChildFormatContext(prevContext, type, props);
  5559. task.keyPath = keyPath;
  5560. renderNode(request, task, children, -1);
  5561. task.formatContext = prevContext;
  5562. task.keyPath = prevKeyPath$jscomp$0;
  5563. } else {
  5564. var _children = pushStartInstance(
  5565. segment.chunks,
  5566. type,
  5567. props,
  5568. request.resumableState,
  5569. request.renderState,
  5570. task.blockedPreamble,
  5571. task.hoistableState,
  5572. task.formatContext,
  5573. segment.lastPushedText
  5574. );
  5575. segment.lastPushedText = !1;
  5576. var _prevContext2 = task.formatContext,
  5577. _prevKeyPath3 = task.keyPath;
  5578. task.keyPath = keyPath;
  5579. if (
  5580. (task.formatContext = getChildFormatContext(
  5581. _prevContext2,
  5582. type,
  5583. props
  5584. )).insertionMode === HTML_HEAD_MODE
  5585. ) {
  5586. var preambleSegment = createPendingSegment(
  5587. request,
  5588. 0,
  5589. null,
  5590. task.formatContext,
  5591. !1,
  5592. !1
  5593. );
  5594. segment.preambleChildren.push(preambleSegment);
  5595. task.blockedSegment = preambleSegment;
  5596. try {
  5597. (preambleSegment.status = 6),
  5598. renderNode(request, task, _children, -1),
  5599. pushSegmentFinale(
  5600. preambleSegment.chunks,
  5601. request.renderState,
  5602. preambleSegment.lastPushedText,
  5603. preambleSegment.textEmbedded
  5604. ),
  5605. (preambleSegment.status = COMPLETED);
  5606. } finally {
  5607. task.blockedSegment = segment;
  5608. }
  5609. } else renderNode(request, task, _children, -1);
  5610. task.formatContext = _prevContext2;
  5611. task.keyPath = _prevKeyPath3;
  5612. a: {
  5613. var target = segment.chunks,
  5614. resumableState = request.resumableState;
  5615. switch (type) {
  5616. case "title":
  5617. case "style":
  5618. case "script":
  5619. case "area":
  5620. case "base":
  5621. case "br":
  5622. case "col":
  5623. case "embed":
  5624. case "hr":
  5625. case "img":
  5626. case "input":
  5627. case "keygen":
  5628. case "link":
  5629. case "meta":
  5630. case "param":
  5631. case "source":
  5632. case "track":
  5633. case "wbr":
  5634. break a;
  5635. case "body":
  5636. if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
  5637. resumableState.hasBody = !0;
  5638. break a;
  5639. }
  5640. break;
  5641. case "html":
  5642. if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
  5643. resumableState.hasHtml = !0;
  5644. break a;
  5645. }
  5646. break;
  5647. case "head":
  5648. if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
  5649. }
  5650. target.push(endChunkForTag(type));
  5651. }
  5652. segment.lastPushedText = !1;
  5653. }
  5654. } else {
  5655. switch (type) {
  5656. case REACT_LEGACY_HIDDEN_TYPE:
  5657. case REACT_STRICT_MODE_TYPE:
  5658. case REACT_PROFILER_TYPE:
  5659. case REACT_FRAGMENT_TYPE:
  5660. var prevKeyPath$jscomp$1 = task.keyPath;
  5661. task.keyPath = keyPath;
  5662. renderNodeDestructive(request, task, props.children, -1);
  5663. task.keyPath = prevKeyPath$jscomp$1;
  5664. return;
  5665. case REACT_ACTIVITY_TYPE:
  5666. var segment$jscomp$0 = task.blockedSegment;
  5667. if (null === segment$jscomp$0) {
  5668. if ("hidden" !== props.mode) {
  5669. var prevKeyPath$jscomp$2 = task.keyPath;
  5670. task.keyPath = keyPath;
  5671. renderNode(request, task, props.children, -1);
  5672. task.keyPath = prevKeyPath$jscomp$2;
  5673. }
  5674. } else if ("hidden" !== props.mode) {
  5675. request.renderState.generateStaticMarkup ||
  5676. segment$jscomp$0.chunks.push("\x3c!--&--\x3e");
  5677. segment$jscomp$0.lastPushedText = !1;
  5678. var _prevKeyPath4 = task.keyPath;
  5679. task.keyPath = keyPath;
  5680. renderNode(request, task, props.children, -1);
  5681. task.keyPath = _prevKeyPath4;
  5682. request.renderState.generateStaticMarkup ||
  5683. segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
  5684. segment$jscomp$0.lastPushedText = !1;
  5685. }
  5686. return;
  5687. case REACT_SUSPENSE_LIST_TYPE:
  5688. a: {
  5689. var children$jscomp$0 = props.children,
  5690. revealOrder = props.revealOrder;
  5691. if (
  5692. "forwards" === revealOrder ||
  5693. "backwards" === revealOrder ||
  5694. "unstable_legacy-backwards" === revealOrder
  5695. ) {
  5696. if (isArrayImpl(children$jscomp$0)) {
  5697. renderSuspenseListRows(
  5698. request,
  5699. task,
  5700. keyPath,
  5701. children$jscomp$0,
  5702. revealOrder
  5703. );
  5704. break a;
  5705. }
  5706. var iteratorFn = getIteratorFn(children$jscomp$0);
  5707. if (iteratorFn) {
  5708. var iterator = iteratorFn.call(children$jscomp$0);
  5709. if (iterator) {
  5710. validateIterable(
  5711. task,
  5712. children$jscomp$0,
  5713. -1,
  5714. iterator,
  5715. iteratorFn
  5716. );
  5717. var step = iterator.next();
  5718. if (!step.done) {
  5719. var rows = [];
  5720. do rows.push(step.value), (step = iterator.next());
  5721. while (!step.done);
  5722. renderSuspenseListRows(
  5723. request,
  5724. task,
  5725. keyPath,
  5726. children$jscomp$0,
  5727. revealOrder
  5728. );
  5729. }
  5730. break a;
  5731. }
  5732. }
  5733. }
  5734. if ("together" === revealOrder) {
  5735. var _prevKeyPath2 = task.keyPath,
  5736. prevRow = task.row,
  5737. newRow = (task.row = createSuspenseListRow(null));
  5738. newRow.boundaries = [];
  5739. newRow.together = !0;
  5740. task.keyPath = keyPath;
  5741. renderNodeDestructive(request, task, children$jscomp$0, -1);
  5742. 0 === --newRow.pendingTasks &&
  5743. finishSuspenseListRow(request, newRow);
  5744. task.keyPath = _prevKeyPath2;
  5745. task.row = prevRow;
  5746. null !== prevRow &&
  5747. 0 < newRow.pendingTasks &&
  5748. (prevRow.pendingTasks++, (newRow.next = prevRow));
  5749. } else {
  5750. var prevKeyPath$jscomp$3 = task.keyPath;
  5751. task.keyPath = keyPath;
  5752. renderNodeDestructive(request, task, children$jscomp$0, -1);
  5753. task.keyPath = prevKeyPath$jscomp$3;
  5754. }
  5755. }
  5756. return;
  5757. case REACT_VIEW_TRANSITION_TYPE:
  5758. case REACT_SCOPE_TYPE:
  5759. throw Error(
  5760. "ReactDOMServer does not yet support scope components."
  5761. );
  5762. case REACT_SUSPENSE_TYPE:
  5763. a: if (null !== task.replay) {
  5764. var _prevKeyPath = task.keyPath,
  5765. _prevContext = task.formatContext,
  5766. _prevRow = task.row;
  5767. task.keyPath = keyPath;
  5768. task.formatContext = getSuspenseContentFormatContext(
  5769. request.resumableState,
  5770. _prevContext
  5771. );
  5772. task.row = null;
  5773. var _content = props.children;
  5774. try {
  5775. renderNode(request, task, _content, -1);
  5776. } finally {
  5777. (task.keyPath = _prevKeyPath),
  5778. (task.formatContext = _prevContext),
  5779. (task.row = _prevRow);
  5780. }
  5781. } else {
  5782. var prevKeyPath$jscomp$4 = task.keyPath,
  5783. prevContext$jscomp$0 = task.formatContext,
  5784. prevRow$jscomp$0 = task.row,
  5785. parentBoundary = task.blockedBoundary,
  5786. parentPreamble = task.blockedPreamble,
  5787. parentHoistableState = task.hoistableState,
  5788. parentSegment = task.blockedSegment,
  5789. fallback = props.fallback,
  5790. content = props.children,
  5791. fallbackAbortSet = new Set();
  5792. var newBoundary = createSuspenseBoundary(
  5793. request,
  5794. task.row,
  5795. fallbackAbortSet,
  5796. null,
  5797. null
  5798. );
  5799. null !== request.trackedPostpones &&
  5800. (newBoundary.trackedContentKeyPath = keyPath);
  5801. var boundarySegment = createPendingSegment(
  5802. request,
  5803. parentSegment.chunks.length,
  5804. newBoundary,
  5805. task.formatContext,
  5806. !1,
  5807. !1
  5808. );
  5809. parentSegment.children.push(boundarySegment);
  5810. parentSegment.lastPushedText = !1;
  5811. var contentRootSegment = createPendingSegment(
  5812. request,
  5813. 0,
  5814. null,
  5815. task.formatContext,
  5816. !1,
  5817. !1
  5818. );
  5819. contentRootSegment.parentFlushed = !0;
  5820. if (null !== request.trackedPostpones) {
  5821. var suspenseComponentStack = task.componentStack,
  5822. fallbackKeyPath = [
  5823. keyPath[0],
  5824. "Suspense Fallback",
  5825. keyPath[2]
  5826. ],
  5827. fallbackReplayNode = [
  5828. fallbackKeyPath[1],
  5829. fallbackKeyPath[2],
  5830. [],
  5831. null
  5832. ];
  5833. request.trackedPostpones.workingMap.set(
  5834. fallbackKeyPath,
  5835. fallbackReplayNode
  5836. );
  5837. newBoundary.trackedFallbackNode = fallbackReplayNode;
  5838. task.blockedSegment = boundarySegment;
  5839. task.blockedPreamble = newBoundary.fallbackPreamble;
  5840. task.keyPath = fallbackKeyPath;
  5841. task.formatContext = getSuspenseFallbackFormatContext(
  5842. request.resumableState,
  5843. prevContext$jscomp$0
  5844. );
  5845. task.componentStack =
  5846. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  5847. suspenseComponentStack
  5848. );
  5849. boundarySegment.status = 6;
  5850. try {
  5851. renderNode(request, task, fallback, -1),
  5852. pushSegmentFinale(
  5853. boundarySegment.chunks,
  5854. request.renderState,
  5855. boundarySegment.lastPushedText,
  5856. boundarySegment.textEmbedded
  5857. ),
  5858. (boundarySegment.status = COMPLETED);
  5859. } catch (thrownValue) {
  5860. throw (
  5861. ((boundarySegment.status =
  5862. 12 === request.status ? ABORTED : ERRORED),
  5863. thrownValue)
  5864. );
  5865. } finally {
  5866. (task.blockedSegment = parentSegment),
  5867. (task.blockedPreamble = parentPreamble),
  5868. (task.keyPath = prevKeyPath$jscomp$4),
  5869. (task.formatContext = prevContext$jscomp$0);
  5870. }
  5871. var suspendedPrimaryTask = createRenderTask(
  5872. request,
  5873. null,
  5874. content,
  5875. -1,
  5876. newBoundary,
  5877. contentRootSegment,
  5878. newBoundary.contentPreamble,
  5879. newBoundary.contentState,
  5880. task.abortSet,
  5881. keyPath,
  5882. getSuspenseContentFormatContext(
  5883. request.resumableState,
  5884. task.formatContext
  5885. ),
  5886. task.context,
  5887. task.treeContext,
  5888. null,
  5889. suspenseComponentStack,
  5890. emptyContextObject,
  5891. task.debugTask
  5892. );
  5893. pushComponentStack(suspendedPrimaryTask);
  5894. request.pingedTasks.push(suspendedPrimaryTask);
  5895. } else {
  5896. task.blockedBoundary = newBoundary;
  5897. task.blockedPreamble = newBoundary.contentPreamble;
  5898. task.hoistableState = newBoundary.contentState;
  5899. task.blockedSegment = contentRootSegment;
  5900. task.keyPath = keyPath;
  5901. task.formatContext = getSuspenseContentFormatContext(
  5902. request.resumableState,
  5903. prevContext$jscomp$0
  5904. );
  5905. task.row = null;
  5906. contentRootSegment.status = 6;
  5907. try {
  5908. if (
  5909. (renderNode(request, task, content, -1),
  5910. pushSegmentFinale(
  5911. contentRootSegment.chunks,
  5912. request.renderState,
  5913. contentRootSegment.lastPushedText,
  5914. contentRootSegment.textEmbedded
  5915. ),
  5916. (contentRootSegment.status = COMPLETED),
  5917. queueCompletedSegment(newBoundary, contentRootSegment),
  5918. 0 === newBoundary.pendingTasks &&
  5919. newBoundary.status === PENDING)
  5920. ) {
  5921. if (
  5922. ((newBoundary.status = COMPLETED),
  5923. !isEligibleForOutlining(request, newBoundary))
  5924. ) {
  5925. null !== prevRow$jscomp$0 &&
  5926. 0 === --prevRow$jscomp$0.pendingTasks &&
  5927. finishSuspenseListRow(request, prevRow$jscomp$0);
  5928. 0 === request.pendingRootTasks &&
  5929. task.blockedPreamble &&
  5930. preparePreamble(request);
  5931. break a;
  5932. }
  5933. } else
  5934. null !== prevRow$jscomp$0 &&
  5935. prevRow$jscomp$0.together &&
  5936. tryToResolveTogetherRow(request, prevRow$jscomp$0);
  5937. } catch (thrownValue$2) {
  5938. newBoundary.status = CLIENT_RENDERED;
  5939. if (12 === request.status) {
  5940. contentRootSegment.status = ABORTED;
  5941. var error = request.fatalError;
  5942. } else
  5943. (contentRootSegment.status = ERRORED),
  5944. (error = thrownValue$2);
  5945. var thrownInfo = getThrownInfo(task.componentStack);
  5946. var errorDigest = logRecoverableError(
  5947. request,
  5948. error,
  5949. thrownInfo,
  5950. task.debugTask
  5951. );
  5952. encodeErrorForBoundary(
  5953. newBoundary,
  5954. errorDigest,
  5955. error,
  5956. thrownInfo,
  5957. !1
  5958. );
  5959. untrackBoundary(request, newBoundary);
  5960. } finally {
  5961. (task.blockedBoundary = parentBoundary),
  5962. (task.blockedPreamble = parentPreamble),
  5963. (task.hoistableState = parentHoistableState),
  5964. (task.blockedSegment = parentSegment),
  5965. (task.keyPath = prevKeyPath$jscomp$4),
  5966. (task.formatContext = prevContext$jscomp$0),
  5967. (task.row = prevRow$jscomp$0);
  5968. }
  5969. var suspendedFallbackTask = createRenderTask(
  5970. request,
  5971. null,
  5972. fallback,
  5973. -1,
  5974. parentBoundary,
  5975. boundarySegment,
  5976. newBoundary.fallbackPreamble,
  5977. newBoundary.fallbackState,
  5978. fallbackAbortSet,
  5979. [keyPath[0], "Suspense Fallback", keyPath[2]],
  5980. getSuspenseFallbackFormatContext(
  5981. request.resumableState,
  5982. task.formatContext
  5983. ),
  5984. task.context,
  5985. task.treeContext,
  5986. task.row,
  5987. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  5988. task.componentStack
  5989. ),
  5990. emptyContextObject,
  5991. task.debugTask
  5992. );
  5993. pushComponentStack(suspendedFallbackTask);
  5994. request.pingedTasks.push(suspendedFallbackTask);
  5995. }
  5996. }
  5997. return;
  5998. }
  5999. if ("object" === typeof type && null !== type)
  6000. switch (type.$$typeof) {
  6001. case REACT_FORWARD_REF_TYPE:
  6002. if ("ref" in props) {
  6003. var propsWithoutRef = {};
  6004. for (var key in props)
  6005. "ref" !== key && (propsWithoutRef[key] = props[key]);
  6006. } else propsWithoutRef = props;
  6007. var children$jscomp$1 = renderWithHooks(
  6008. request,
  6009. task,
  6010. keyPath,
  6011. type.render,
  6012. propsWithoutRef,
  6013. ref
  6014. );
  6015. finishFunctionComponent(
  6016. request,
  6017. task,
  6018. keyPath,
  6019. children$jscomp$1,
  6020. 0 !== localIdCounter,
  6021. actionStateCounter,
  6022. actionStateMatchingIndex
  6023. );
  6024. return;
  6025. case REACT_MEMO_TYPE:
  6026. renderElement(request, task, keyPath, type.type, props, ref);
  6027. return;
  6028. case REACT_CONTEXT_TYPE:
  6029. var value$jscomp$0 = props.value,
  6030. children$jscomp$2 = props.children;
  6031. var prevSnapshot = task.context;
  6032. var prevKeyPath$jscomp$5 = task.keyPath;
  6033. var prevValue = type._currentValue2;
  6034. type._currentValue2 = value$jscomp$0;
  6035. void 0 !== type._currentRenderer2 &&
  6036. null !== type._currentRenderer2 &&
  6037. type._currentRenderer2 !== rendererSigil &&
  6038. console.error(
  6039. "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
  6040. );
  6041. type._currentRenderer2 = rendererSigil;
  6042. var prevNode = currentActiveSnapshot,
  6043. newNode = {
  6044. parent: prevNode,
  6045. depth: null === prevNode ? 0 : prevNode.depth + 1,
  6046. context: type,
  6047. parentValue: prevValue,
  6048. value: value$jscomp$0
  6049. };
  6050. currentActiveSnapshot = newNode;
  6051. task.context = newNode;
  6052. task.keyPath = keyPath;
  6053. renderNodeDestructive(request, task, children$jscomp$2, -1);
  6054. var prevSnapshot$jscomp$0 = currentActiveSnapshot;
  6055. if (null === prevSnapshot$jscomp$0)
  6056. throw Error(
  6057. "Tried to pop a Context at the root of the app. This is a bug in React."
  6058. );
  6059. prevSnapshot$jscomp$0.context !== type &&
  6060. console.error(
  6061. "The parent context is not the expected context. This is probably a bug in React."
  6062. );
  6063. prevSnapshot$jscomp$0.context._currentValue2 =
  6064. prevSnapshot$jscomp$0.parentValue;
  6065. void 0 !== type._currentRenderer2 &&
  6066. null !== type._currentRenderer2 &&
  6067. type._currentRenderer2 !== rendererSigil &&
  6068. console.error(
  6069. "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
  6070. );
  6071. type._currentRenderer2 = rendererSigil;
  6072. var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
  6073. prevSnapshot$jscomp$0.parent);
  6074. task.context = JSCompiler_inline_result$jscomp$0;
  6075. task.keyPath = prevKeyPath$jscomp$5;
  6076. prevSnapshot !== task.context &&
  6077. console.error(
  6078. "Popping the context provider did not return back to the original snapshot. This is a bug in React."
  6079. );
  6080. return;
  6081. case REACT_CONSUMER_TYPE:
  6082. var context$jscomp$0 = type._context,
  6083. render = props.children;
  6084. "function" !== typeof render &&
  6085. console.error(
  6086. "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
  6087. );
  6088. var newChildren = render(context$jscomp$0._currentValue2),
  6089. prevKeyPath$jscomp$6 = task.keyPath;
  6090. task.keyPath = keyPath;
  6091. renderNodeDestructive(request, task, newChildren, -1);
  6092. task.keyPath = prevKeyPath$jscomp$6;
  6093. return;
  6094. case REACT_LAZY_TYPE:
  6095. var Component = callLazyInitInDEV(type);
  6096. if (12 === request.status) throw null;
  6097. renderElement(request, task, keyPath, Component, props, ref);
  6098. return;
  6099. }
  6100. var info = "";
  6101. if (
  6102. void 0 === type ||
  6103. ("object" === typeof type &&
  6104. null !== type &&
  6105. 0 === Object.keys(type).length)
  6106. )
  6107. info +=
  6108. " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
  6109. throw Error(
  6110. "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
  6111. ((null == type ? type : typeof type) + "." + info)
  6112. );
  6113. }
  6114. }
  6115. function resumeNode(request, task, segmentId, node, childIndex) {
  6116. var prevReplay = task.replay,
  6117. blockedBoundary = task.blockedBoundary,
  6118. resumedSegment = createPendingSegment(
  6119. request,
  6120. 0,
  6121. null,
  6122. task.formatContext,
  6123. !1,
  6124. !1
  6125. );
  6126. resumedSegment.id = segmentId;
  6127. resumedSegment.parentFlushed = !0;
  6128. try {
  6129. (task.replay = null),
  6130. (task.blockedSegment = resumedSegment),
  6131. renderNode(request, task, node, childIndex),
  6132. (resumedSegment.status = COMPLETED),
  6133. null === blockedBoundary
  6134. ? (request.completedRootSegment = resumedSegment)
  6135. : (queueCompletedSegment(blockedBoundary, resumedSegment),
  6136. blockedBoundary.parentFlushed &&
  6137. request.partialBoundaries.push(blockedBoundary));
  6138. } finally {
  6139. (task.replay = prevReplay), (task.blockedSegment = null);
  6140. }
  6141. }
  6142. function replayElement(
  6143. request,
  6144. task,
  6145. keyPath,
  6146. name,
  6147. keyOrIndex,
  6148. childIndex,
  6149. type,
  6150. props,
  6151. ref,
  6152. replay
  6153. ) {
  6154. childIndex = replay.nodes;
  6155. for (var i = 0; i < childIndex.length; i++) {
  6156. var node = childIndex[i];
  6157. if (keyOrIndex === node[1]) {
  6158. if (4 === node.length) {
  6159. if (null !== name && name !== node[0])
  6160. throw Error(
  6161. "Expected the resume to render <" +
  6162. node[0] +
  6163. "> in this slot but instead it rendered <" +
  6164. name +
  6165. ">. The tree doesn't match so React will fallback to client rendering."
  6166. );
  6167. var childNodes = node[2];
  6168. name = node[3];
  6169. keyOrIndex = task.node;
  6170. task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
  6171. try {
  6172. renderElement(request, task, keyPath, type, props, ref);
  6173. if (
  6174. 1 === task.replay.pendingTasks &&
  6175. 0 < task.replay.nodes.length
  6176. )
  6177. throw Error(
  6178. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  6179. );
  6180. task.replay.pendingTasks--;
  6181. } catch (x) {
  6182. if (
  6183. "object" === typeof x &&
  6184. null !== x &&
  6185. (x === SuspenseException || "function" === typeof x.then)
  6186. )
  6187. throw (
  6188. (task.node === keyOrIndex
  6189. ? (task.replay = replay)
  6190. : childIndex.splice(i, 1),
  6191. x)
  6192. );
  6193. task.replay.pendingTasks--;
  6194. type = getThrownInfo(task.componentStack);
  6195. props = request;
  6196. request = task.blockedBoundary;
  6197. keyPath = x;
  6198. ref = name;
  6199. name = logRecoverableError(props, keyPath, type, task.debugTask);
  6200. abortRemainingReplayNodes(
  6201. props,
  6202. request,
  6203. childNodes,
  6204. ref,
  6205. keyPath,
  6206. name,
  6207. type,
  6208. !1
  6209. );
  6210. }
  6211. task.replay = replay;
  6212. } else {
  6213. if (type !== REACT_SUSPENSE_TYPE)
  6214. throw Error(
  6215. "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
  6216. (getComponentNameFromType(type) || "Unknown") +
  6217. ">. The tree doesn't match so React will fallback to client rendering."
  6218. );
  6219. a: {
  6220. replay = void 0;
  6221. name = node[5];
  6222. type = node[2];
  6223. ref = node[3];
  6224. keyOrIndex = null === node[4] ? [] : node[4][2];
  6225. node = null === node[4] ? null : node[4][3];
  6226. var prevKeyPath = task.keyPath,
  6227. prevContext = task.formatContext,
  6228. prevRow = task.row,
  6229. previousReplaySet = task.replay,
  6230. parentBoundary = task.blockedBoundary,
  6231. parentHoistableState = task.hoistableState,
  6232. content = props.children,
  6233. fallback = props.fallback,
  6234. fallbackAbortSet = new Set();
  6235. props = createSuspenseBoundary(
  6236. request,
  6237. task.row,
  6238. fallbackAbortSet,
  6239. null,
  6240. null
  6241. );
  6242. props.parentFlushed = !0;
  6243. props.rootSegmentID = name;
  6244. task.blockedBoundary = props;
  6245. task.hoistableState = props.contentState;
  6246. task.keyPath = keyPath;
  6247. task.formatContext = getSuspenseContentFormatContext(
  6248. request.resumableState,
  6249. prevContext
  6250. );
  6251. task.row = null;
  6252. task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
  6253. try {
  6254. renderNode(request, task, content, -1);
  6255. if (
  6256. 1 === task.replay.pendingTasks &&
  6257. 0 < task.replay.nodes.length
  6258. )
  6259. throw Error(
  6260. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  6261. );
  6262. task.replay.pendingTasks--;
  6263. if (0 === props.pendingTasks && props.status === PENDING) {
  6264. props.status = COMPLETED;
  6265. request.completedBoundaries.push(props);
  6266. break a;
  6267. }
  6268. } catch (error) {
  6269. (props.status = CLIENT_RENDERED),
  6270. (childNodes = getThrownInfo(task.componentStack)),
  6271. (replay = logRecoverableError(
  6272. request,
  6273. error,
  6274. childNodes,
  6275. task.debugTask
  6276. )),
  6277. encodeErrorForBoundary(props, replay, error, childNodes, !1),
  6278. task.replay.pendingTasks--,
  6279. request.clientRenderedBoundaries.push(props);
  6280. } finally {
  6281. (task.blockedBoundary = parentBoundary),
  6282. (task.hoistableState = parentHoistableState),
  6283. (task.replay = previousReplaySet),
  6284. (task.keyPath = prevKeyPath),
  6285. (task.formatContext = prevContext),
  6286. (task.row = prevRow);
  6287. }
  6288. props = createReplayTask(
  6289. request,
  6290. null,
  6291. { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
  6292. fallback,
  6293. -1,
  6294. parentBoundary,
  6295. props.fallbackState,
  6296. fallbackAbortSet,
  6297. [keyPath[0], "Suspense Fallback", keyPath[2]],
  6298. getSuspenseFallbackFormatContext(
  6299. request.resumableState,
  6300. task.formatContext
  6301. ),
  6302. task.context,
  6303. task.treeContext,
  6304. task.row,
  6305. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  6306. task.componentStack
  6307. ),
  6308. emptyContextObject,
  6309. task.debugTask
  6310. );
  6311. pushComponentStack(props);
  6312. request.pingedTasks.push(props);
  6313. }
  6314. }
  6315. childIndex.splice(i, 1);
  6316. break;
  6317. }
  6318. }
  6319. }
  6320. function validateIterable(
  6321. task,
  6322. iterable,
  6323. childIndex,
  6324. iterator,
  6325. iteratorFn
  6326. ) {
  6327. if (iterator === iterable) {
  6328. if (
  6329. -1 !== childIndex ||
  6330. null === task.componentStack ||
  6331. "function" !== typeof task.componentStack.type ||
  6332. "[object GeneratorFunction]" !==
  6333. Object.prototype.toString.call(task.componentStack.type) ||
  6334. "[object Generator]" !== Object.prototype.toString.call(iterator)
  6335. )
  6336. didWarnAboutGenerators ||
  6337. console.error(
  6338. "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
  6339. ),
  6340. (didWarnAboutGenerators = !0);
  6341. } else
  6342. iterable.entries !== iteratorFn ||
  6343. didWarnAboutMaps ||
  6344. (console.error(
  6345. "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
  6346. ),
  6347. (didWarnAboutMaps = !0));
  6348. }
  6349. function renderNodeDestructive(request, task, node, childIndex) {
  6350. null !== task.replay && "number" === typeof task.replay.slots
  6351. ? resumeNode(request, task, task.replay.slots, node, childIndex)
  6352. : ((task.node = node),
  6353. (task.childIndex = childIndex),
  6354. (node = task.componentStack),
  6355. (childIndex = task.debugTask),
  6356. pushComponentStack(task),
  6357. retryNode(request, task),
  6358. (task.componentStack = node),
  6359. (task.debugTask = childIndex));
  6360. }
  6361. function retryNode(request, task) {
  6362. var node = task.node,
  6363. childIndex = task.childIndex;
  6364. if (null !== node) {
  6365. if ("object" === typeof node) {
  6366. switch (node.$$typeof) {
  6367. case REACT_ELEMENT_TYPE:
  6368. var type = node.type,
  6369. key = node.key;
  6370. node = node.props;
  6371. var refProp = node.ref;
  6372. refProp = void 0 !== refProp ? refProp : null;
  6373. var debugTask = task.debugTask,
  6374. name = getComponentNameFromType(type);
  6375. key = null == key ? (-1 === childIndex ? 0 : childIndex) : key;
  6376. var keyPath = [task.keyPath, name, key];
  6377. null !== task.replay
  6378. ? debugTask
  6379. ? debugTask.run(
  6380. replayElement.bind(
  6381. null,
  6382. request,
  6383. task,
  6384. keyPath,
  6385. name,
  6386. key,
  6387. childIndex,
  6388. type,
  6389. node,
  6390. refProp,
  6391. task.replay
  6392. )
  6393. )
  6394. : replayElement(
  6395. request,
  6396. task,
  6397. keyPath,
  6398. name,
  6399. key,
  6400. childIndex,
  6401. type,
  6402. node,
  6403. refProp,
  6404. task.replay
  6405. )
  6406. : debugTask
  6407. ? debugTask.run(
  6408. renderElement.bind(
  6409. null,
  6410. request,
  6411. task,
  6412. keyPath,
  6413. type,
  6414. node,
  6415. refProp
  6416. )
  6417. )
  6418. : renderElement(request, task, keyPath, type, node, refProp);
  6419. return;
  6420. case REACT_PORTAL_TYPE:
  6421. throw Error(
  6422. "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
  6423. );
  6424. case REACT_LAZY_TYPE:
  6425. type = callLazyInitInDEV(node);
  6426. if (12 === request.status) throw null;
  6427. renderNodeDestructive(request, task, type, childIndex);
  6428. return;
  6429. }
  6430. if (isArrayImpl(node)) {
  6431. renderChildrenArray(request, task, node, childIndex);
  6432. return;
  6433. }
  6434. if ((key = getIteratorFn(node)))
  6435. if ((type = key.call(node))) {
  6436. validateIterable(task, node, childIndex, type, key);
  6437. node = type.next();
  6438. if (!node.done) {
  6439. key = [];
  6440. do key.push(node.value), (node = type.next());
  6441. while (!node.done);
  6442. renderChildrenArray(request, task, key, childIndex);
  6443. }
  6444. return;
  6445. }
  6446. if ("function" === typeof node.then)
  6447. return (
  6448. (task.thenableState = null),
  6449. renderNodeDestructive(
  6450. request,
  6451. task,
  6452. unwrapThenable(node),
  6453. childIndex
  6454. )
  6455. );
  6456. if (node.$$typeof === REACT_CONTEXT_TYPE)
  6457. return renderNodeDestructive(
  6458. request,
  6459. task,
  6460. node._currentValue2,
  6461. childIndex
  6462. );
  6463. request = Object.prototype.toString.call(node);
  6464. throw Error(
  6465. "Objects are not valid as a React child (found: " +
  6466. ("[object Object]" === request
  6467. ? "object with keys {" + Object.keys(node).join(", ") + "}"
  6468. : request) +
  6469. "). If you meant to render a collection of children, use an array instead."
  6470. );
  6471. }
  6472. "string" === typeof node
  6473. ? ((task = task.blockedSegment),
  6474. null !== task &&
  6475. (task.lastPushedText = pushTextInstance(
  6476. task.chunks,
  6477. node,
  6478. request.renderState,
  6479. task.lastPushedText
  6480. )))
  6481. : "number" === typeof node || "bigint" === typeof node
  6482. ? ((task = task.blockedSegment),
  6483. null !== task &&
  6484. (task.lastPushedText = pushTextInstance(
  6485. task.chunks,
  6486. "" + node,
  6487. request.renderState,
  6488. task.lastPushedText
  6489. )))
  6490. : ("function" === typeof node &&
  6491. ((request = node.displayName || node.name || "Component"),
  6492. console.error(
  6493. "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",
  6494. request,
  6495. request
  6496. )),
  6497. "symbol" === typeof node &&
  6498. console.error(
  6499. "Symbols are not valid as a React child.\n %s",
  6500. String(node)
  6501. ));
  6502. }
  6503. }
  6504. function warnForMissingKey(request, task, child) {
  6505. if (
  6506. null !== child &&
  6507. "object" === typeof child &&
  6508. (child.$$typeof === REACT_ELEMENT_TYPE ||
  6509. child.$$typeof === REACT_PORTAL_TYPE) &&
  6510. child._store &&
  6511. ((!child._store.validated && null == child.key) ||
  6512. 2 === child._store.validated)
  6513. ) {
  6514. if ("object" !== typeof child._store)
  6515. throw Error(
  6516. "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
  6517. );
  6518. child._store.validated = 1;
  6519. var didWarnForKey = request.didWarnForKey;
  6520. null == didWarnForKey &&
  6521. (didWarnForKey = request.didWarnForKey = new WeakSet());
  6522. request = task.componentStack;
  6523. if (null !== request && !didWarnForKey.has(request)) {
  6524. didWarnForKey.add(request);
  6525. var componentName = getComponentNameFromType(child.type);
  6526. didWarnForKey = child._owner;
  6527. var parentOwner = request.owner;
  6528. request = "";
  6529. if (parentOwner && "undefined" !== typeof parentOwner.type) {
  6530. var name = getComponentNameFromType(parentOwner.type);
  6531. name &&
  6532. (request = "\n\nCheck the render method of `" + name + "`.");
  6533. }
  6534. request ||
  6535. (componentName &&
  6536. (request =
  6537. "\n\nCheck the top-level render call using <" +
  6538. componentName +
  6539. ">."));
  6540. componentName = "";
  6541. null != didWarnForKey &&
  6542. parentOwner !== didWarnForKey &&
  6543. ((parentOwner = null),
  6544. "undefined" !== typeof didWarnForKey.type
  6545. ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
  6546. : "string" === typeof didWarnForKey.name &&
  6547. (parentOwner = didWarnForKey.name),
  6548. parentOwner &&
  6549. (componentName =
  6550. " It was passed a child from " + parentOwner + "."));
  6551. didWarnForKey = task.componentStack;
  6552. task.componentStack = {
  6553. parent: task.componentStack,
  6554. type: child.type,
  6555. owner: child._owner,
  6556. stack: child._debugStack
  6557. };
  6558. console.error(
  6559. 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
  6560. request,
  6561. componentName
  6562. );
  6563. task.componentStack = didWarnForKey;
  6564. }
  6565. }
  6566. }
  6567. function renderChildrenArray(request, task, children, childIndex) {
  6568. var prevKeyPath = task.keyPath,
  6569. previousComponentStack = task.componentStack;
  6570. var previousDebugTask = task.debugTask;
  6571. pushServerComponentStack(task, task.node._debugInfo);
  6572. if (
  6573. -1 !== childIndex &&
  6574. ((task.keyPath = [task.keyPath, "Fragment", childIndex]),
  6575. null !== task.replay)
  6576. ) {
  6577. for (
  6578. var replay = task.replay, replayNodes = replay.nodes, j = 0;
  6579. j < replayNodes.length;
  6580. j++
  6581. ) {
  6582. var node = replayNodes[j];
  6583. if (node[1] === childIndex) {
  6584. childIndex = node[2];
  6585. node = node[3];
  6586. task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
  6587. try {
  6588. renderChildrenArray(request, task, children, -1);
  6589. if (
  6590. 1 === task.replay.pendingTasks &&
  6591. 0 < task.replay.nodes.length
  6592. )
  6593. throw Error(
  6594. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  6595. );
  6596. task.replay.pendingTasks--;
  6597. } catch (x) {
  6598. if (
  6599. "object" === typeof x &&
  6600. null !== x &&
  6601. (x === SuspenseException || "function" === typeof x.then)
  6602. )
  6603. throw x;
  6604. task.replay.pendingTasks--;
  6605. var thrownInfo = getThrownInfo(task.componentStack);
  6606. children = task.blockedBoundary;
  6607. var error = x,
  6608. resumeSlots = node;
  6609. node = logRecoverableError(
  6610. request,
  6611. error,
  6612. thrownInfo,
  6613. task.debugTask
  6614. );
  6615. abortRemainingReplayNodes(
  6616. request,
  6617. children,
  6618. childIndex,
  6619. resumeSlots,
  6620. error,
  6621. node,
  6622. thrownInfo,
  6623. !1
  6624. );
  6625. }
  6626. task.replay = replay;
  6627. replayNodes.splice(j, 1);
  6628. break;
  6629. }
  6630. }
  6631. task.keyPath = prevKeyPath;
  6632. task.componentStack = previousComponentStack;
  6633. task.debugTask = previousDebugTask;
  6634. return;
  6635. }
  6636. replay = task.treeContext;
  6637. replayNodes = children.length;
  6638. if (
  6639. null !== task.replay &&
  6640. ((j = task.replay.slots), null !== j && "object" === typeof j)
  6641. ) {
  6642. for (childIndex = 0; childIndex < replayNodes; childIndex++)
  6643. (node = children[childIndex]),
  6644. (task.treeContext = pushTreeContext(
  6645. replay,
  6646. replayNodes,
  6647. childIndex
  6648. )),
  6649. (error = j[childIndex]),
  6650. "number" === typeof error
  6651. ? (resumeNode(request, task, error, node, childIndex),
  6652. delete j[childIndex])
  6653. : renderNode(request, task, node, childIndex);
  6654. task.treeContext = replay;
  6655. task.keyPath = prevKeyPath;
  6656. task.componentStack = previousComponentStack;
  6657. task.debugTask = previousDebugTask;
  6658. return;
  6659. }
  6660. for (j = 0; j < replayNodes; j++)
  6661. (childIndex = children[j]),
  6662. warnForMissingKey(request, task, childIndex),
  6663. (task.treeContext = pushTreeContext(replay, replayNodes, j)),
  6664. renderNode(request, task, childIndex, j);
  6665. task.treeContext = replay;
  6666. task.keyPath = prevKeyPath;
  6667. task.componentStack = previousComponentStack;
  6668. task.debugTask = previousDebugTask;
  6669. }
  6670. function trackPostponedBoundary(request, trackedPostpones, boundary) {
  6671. boundary.status = POSTPONED;
  6672. boundary.rootSegmentID = request.nextSegmentId++;
  6673. request = boundary.trackedContentKeyPath;
  6674. if (null === request)
  6675. throw Error(
  6676. "It should not be possible to postpone at the root. This is a bug in React."
  6677. );
  6678. var fallbackReplayNode = boundary.trackedFallbackNode,
  6679. children = [],
  6680. boundaryNode = trackedPostpones.workingMap.get(request);
  6681. if (void 0 === boundaryNode)
  6682. return (
  6683. (boundary = [
  6684. request[1],
  6685. request[2],
  6686. children,
  6687. null,
  6688. fallbackReplayNode,
  6689. boundary.rootSegmentID
  6690. ]),
  6691. trackedPostpones.workingMap.set(request, boundary),
  6692. addToReplayParent(boundary, request[0], trackedPostpones),
  6693. boundary
  6694. );
  6695. boundaryNode[4] = fallbackReplayNode;
  6696. boundaryNode[5] = boundary.rootSegmentID;
  6697. return boundaryNode;
  6698. }
  6699. function trackPostpone(request, trackedPostpones, task, segment) {
  6700. segment.status = POSTPONED;
  6701. var keyPath = task.keyPath,
  6702. boundary = task.blockedBoundary;
  6703. if (null === boundary)
  6704. (segment.id = request.nextSegmentId++),
  6705. (trackedPostpones.rootSlots = segment.id),
  6706. null !== request.completedRootSegment &&
  6707. (request.completedRootSegment.status = POSTPONED);
  6708. else {
  6709. if (null !== boundary && boundary.status === PENDING) {
  6710. var boundaryNode = trackPostponedBoundary(
  6711. request,
  6712. trackedPostpones,
  6713. boundary
  6714. );
  6715. if (
  6716. boundary.trackedContentKeyPath === keyPath &&
  6717. -1 === task.childIndex
  6718. ) {
  6719. -1 === segment.id &&
  6720. (segment.id = segment.parentFlushed
  6721. ? boundary.rootSegmentID
  6722. : request.nextSegmentId++);
  6723. boundaryNode[3] = segment.id;
  6724. return;
  6725. }
  6726. }
  6727. -1 === segment.id &&
  6728. (segment.id =
  6729. segment.parentFlushed && null !== boundary
  6730. ? boundary.rootSegmentID
  6731. : request.nextSegmentId++);
  6732. if (-1 === task.childIndex)
  6733. null === keyPath
  6734. ? (trackedPostpones.rootSlots = segment.id)
  6735. : ((task = trackedPostpones.workingMap.get(keyPath)),
  6736. void 0 === task
  6737. ? ((task = [keyPath[1], keyPath[2], [], segment.id]),
  6738. addToReplayParent(task, keyPath[0], trackedPostpones))
  6739. : (task[3] = segment.id));
  6740. else {
  6741. if (null === keyPath)
  6742. if (((request = trackedPostpones.rootSlots), null === request))
  6743. request = trackedPostpones.rootSlots = {};
  6744. else {
  6745. if ("number" === typeof request)
  6746. throw Error(
  6747. "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
  6748. );
  6749. }
  6750. else if (
  6751. ((boundary = trackedPostpones.workingMap),
  6752. (boundaryNode = boundary.get(keyPath)),
  6753. void 0 === boundaryNode)
  6754. )
  6755. (request = {}),
  6756. (boundaryNode = [keyPath[1], keyPath[2], [], request]),
  6757. boundary.set(keyPath, boundaryNode),
  6758. addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
  6759. else if (((request = boundaryNode[3]), null === request))
  6760. request = boundaryNode[3] = {};
  6761. else if ("number" === typeof request)
  6762. throw Error(
  6763. "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
  6764. );
  6765. request[task.childIndex] = segment.id;
  6766. }
  6767. }
  6768. }
  6769. function untrackBoundary(request, boundary) {
  6770. request = request.trackedPostpones;
  6771. null !== request &&
  6772. ((boundary = boundary.trackedContentKeyPath),
  6773. null !== boundary &&
  6774. ((boundary = request.workingMap.get(boundary)),
  6775. void 0 !== boundary &&
  6776. ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
  6777. }
  6778. function spawnNewSuspendedReplayTask(request, task, thenableState) {
  6779. return createReplayTask(
  6780. request,
  6781. thenableState,
  6782. task.replay,
  6783. task.node,
  6784. task.childIndex,
  6785. task.blockedBoundary,
  6786. task.hoistableState,
  6787. task.abortSet,
  6788. task.keyPath,
  6789. task.formatContext,
  6790. task.context,
  6791. task.treeContext,
  6792. task.row,
  6793. task.componentStack,
  6794. emptyContextObject,
  6795. task.debugTask
  6796. );
  6797. }
  6798. function spawnNewSuspendedRenderTask(request, task, thenableState) {
  6799. var segment = task.blockedSegment,
  6800. newSegment = createPendingSegment(
  6801. request,
  6802. segment.chunks.length,
  6803. null,
  6804. task.formatContext,
  6805. segment.lastPushedText,
  6806. !0
  6807. );
  6808. segment.children.push(newSegment);
  6809. segment.lastPushedText = !1;
  6810. return createRenderTask(
  6811. request,
  6812. thenableState,
  6813. task.node,
  6814. task.childIndex,
  6815. task.blockedBoundary,
  6816. newSegment,
  6817. task.blockedPreamble,
  6818. task.hoistableState,
  6819. task.abortSet,
  6820. task.keyPath,
  6821. task.formatContext,
  6822. task.context,
  6823. task.treeContext,
  6824. task.row,
  6825. task.componentStack,
  6826. emptyContextObject,
  6827. task.debugTask
  6828. );
  6829. }
  6830. function renderNode(request, task, node, childIndex) {
  6831. var previousFormatContext = task.formatContext,
  6832. previousContext = task.context,
  6833. previousKeyPath = task.keyPath,
  6834. previousTreeContext = task.treeContext,
  6835. previousComponentStack = task.componentStack,
  6836. previousDebugTask = task.debugTask,
  6837. segment = task.blockedSegment;
  6838. if (null === segment) {
  6839. segment = task.replay;
  6840. try {
  6841. return renderNodeDestructive(request, task, node, childIndex);
  6842. } catch (thrownValue) {
  6843. if (
  6844. (resetHooksState(),
  6845. (node =
  6846. thrownValue === SuspenseException
  6847. ? getSuspendedThenable()
  6848. : thrownValue),
  6849. 12 !== request.status && "object" === typeof node && null !== node)
  6850. ) {
  6851. if ("function" === typeof node.then) {
  6852. childIndex =
  6853. thrownValue === SuspenseException
  6854. ? getThenableStateAfterSuspending()
  6855. : null;
  6856. request = spawnNewSuspendedReplayTask(
  6857. request,
  6858. task,
  6859. childIndex
  6860. ).ping;
  6861. node.then(request, request);
  6862. task.formatContext = previousFormatContext;
  6863. task.context = previousContext;
  6864. task.keyPath = previousKeyPath;
  6865. task.treeContext = previousTreeContext;
  6866. task.componentStack = previousComponentStack;
  6867. task.replay = segment;
  6868. task.debugTask = previousDebugTask;
  6869. switchContext(previousContext);
  6870. return;
  6871. }
  6872. if ("Maximum call stack size exceeded" === node.message) {
  6873. node =
  6874. thrownValue === SuspenseException
  6875. ? getThenableStateAfterSuspending()
  6876. : null;
  6877. node = spawnNewSuspendedReplayTask(request, task, node);
  6878. request.pingedTasks.push(node);
  6879. task.formatContext = previousFormatContext;
  6880. task.context = previousContext;
  6881. task.keyPath = previousKeyPath;
  6882. task.treeContext = previousTreeContext;
  6883. task.componentStack = previousComponentStack;
  6884. task.replay = segment;
  6885. task.debugTask = previousDebugTask;
  6886. switchContext(previousContext);
  6887. return;
  6888. }
  6889. }
  6890. }
  6891. } else {
  6892. var childrenLength = segment.children.length,
  6893. chunkLength = segment.chunks.length;
  6894. try {
  6895. return renderNodeDestructive(request, task, node, childIndex);
  6896. } catch (thrownValue$3) {
  6897. if (
  6898. (resetHooksState(),
  6899. (segment.children.length = childrenLength),
  6900. (segment.chunks.length = chunkLength),
  6901. (node =
  6902. thrownValue$3 === SuspenseException
  6903. ? getSuspendedThenable()
  6904. : thrownValue$3),
  6905. 12 !== request.status && "object" === typeof node && null !== node)
  6906. ) {
  6907. if ("function" === typeof node.then) {
  6908. segment = node;
  6909. node =
  6910. thrownValue$3 === SuspenseException
  6911. ? getThenableStateAfterSuspending()
  6912. : null;
  6913. request = spawnNewSuspendedRenderTask(request, task, node).ping;
  6914. segment.then(request, request);
  6915. task.formatContext = previousFormatContext;
  6916. task.context = previousContext;
  6917. task.keyPath = previousKeyPath;
  6918. task.treeContext = previousTreeContext;
  6919. task.componentStack = previousComponentStack;
  6920. task.debugTask = previousDebugTask;
  6921. switchContext(previousContext);
  6922. return;
  6923. }
  6924. if ("Maximum call stack size exceeded" === node.message) {
  6925. segment =
  6926. thrownValue$3 === SuspenseException
  6927. ? getThenableStateAfterSuspending()
  6928. : null;
  6929. segment = spawnNewSuspendedRenderTask(request, task, segment);
  6930. request.pingedTasks.push(segment);
  6931. task.formatContext = previousFormatContext;
  6932. task.context = previousContext;
  6933. task.keyPath = previousKeyPath;
  6934. task.treeContext = previousTreeContext;
  6935. task.componentStack = previousComponentStack;
  6936. task.debugTask = previousDebugTask;
  6937. switchContext(previousContext);
  6938. return;
  6939. }
  6940. }
  6941. }
  6942. }
  6943. task.formatContext = previousFormatContext;
  6944. task.context = previousContext;
  6945. task.keyPath = previousKeyPath;
  6946. task.treeContext = previousTreeContext;
  6947. switchContext(previousContext);
  6948. throw node;
  6949. }
  6950. function abortTaskSoft(task) {
  6951. var boundary = task.blockedBoundary,
  6952. segment = task.blockedSegment;
  6953. null !== segment &&
  6954. ((segment.status = ABORTED),
  6955. finishedTask(this, boundary, task.row, segment));
  6956. }
  6957. function abortRemainingReplayNodes(
  6958. request$jscomp$0,
  6959. boundary,
  6960. nodes,
  6961. slots,
  6962. error$jscomp$0,
  6963. errorDigest$jscomp$0,
  6964. errorInfo$jscomp$0,
  6965. aborted
  6966. ) {
  6967. for (var i = 0; i < nodes.length; i++) {
  6968. var node = nodes[i];
  6969. if (4 === node.length)
  6970. abortRemainingReplayNodes(
  6971. request$jscomp$0,
  6972. boundary,
  6973. node[2],
  6974. node[3],
  6975. error$jscomp$0,
  6976. errorDigest$jscomp$0,
  6977. errorInfo$jscomp$0,
  6978. aborted
  6979. );
  6980. else {
  6981. var request = request$jscomp$0;
  6982. node = node[5];
  6983. var error = error$jscomp$0,
  6984. errorDigest = errorDigest$jscomp$0,
  6985. errorInfo = errorInfo$jscomp$0,
  6986. wasAborted = aborted,
  6987. resumedBoundary = createSuspenseBoundary(
  6988. request,
  6989. null,
  6990. new Set(),
  6991. null,
  6992. null
  6993. );
  6994. resumedBoundary.parentFlushed = !0;
  6995. resumedBoundary.rootSegmentID = node;
  6996. resumedBoundary.status = CLIENT_RENDERED;
  6997. encodeErrorForBoundary(
  6998. resumedBoundary,
  6999. errorDigest,
  7000. error,
  7001. errorInfo,
  7002. wasAborted
  7003. );
  7004. resumedBoundary.parentFlushed &&
  7005. request.clientRenderedBoundaries.push(resumedBoundary);
  7006. }
  7007. }
  7008. nodes.length = 0;
  7009. if (null !== slots) {
  7010. if (null === boundary)
  7011. throw Error(
  7012. "We should not have any resumable nodes in the shell. This is a bug in React."
  7013. );
  7014. boundary.status !== CLIENT_RENDERED &&
  7015. ((boundary.status = CLIENT_RENDERED),
  7016. encodeErrorForBoundary(
  7017. boundary,
  7018. errorDigest$jscomp$0,
  7019. error$jscomp$0,
  7020. errorInfo$jscomp$0,
  7021. aborted
  7022. ),
  7023. boundary.parentFlushed &&
  7024. request$jscomp$0.clientRenderedBoundaries.push(boundary));
  7025. if ("object" === typeof slots)
  7026. for (var index in slots) delete slots[index];
  7027. }
  7028. }
  7029. function abortTask(task, request, error) {
  7030. var boundary = task.blockedBoundary,
  7031. segment = task.blockedSegment;
  7032. if (null !== segment) {
  7033. if (6 === segment.status) return;
  7034. segment.status = ABORTED;
  7035. }
  7036. var errorInfo = getThrownInfo(task.componentStack),
  7037. node = task.node;
  7038. null !== node &&
  7039. "object" === typeof node &&
  7040. pushHaltedAwaitOnComponentStack(task, node._debugInfo);
  7041. if (null === boundary) {
  7042. if (13 !== request.status && request.status !== CLOSED) {
  7043. boundary = task.replay;
  7044. if (null === boundary) {
  7045. null !== request.trackedPostpones && null !== segment
  7046. ? ((boundary = request.trackedPostpones),
  7047. logRecoverableError(request, error, errorInfo, task.debugTask),
  7048. trackPostpone(request, boundary, task, segment),
  7049. finishedTask(request, null, task.row, segment))
  7050. : (logRecoverableError(request, error, errorInfo, task.debugTask),
  7051. fatalError(request, error, errorInfo, task.debugTask));
  7052. return;
  7053. }
  7054. boundary.pendingTasks--;
  7055. 0 === boundary.pendingTasks &&
  7056. 0 < boundary.nodes.length &&
  7057. ((segment = logRecoverableError(request, error, errorInfo, null)),
  7058. abortRemainingReplayNodes(
  7059. request,
  7060. null,
  7061. boundary.nodes,
  7062. boundary.slots,
  7063. error,
  7064. segment,
  7065. errorInfo,
  7066. !0
  7067. ));
  7068. request.pendingRootTasks--;
  7069. 0 === request.pendingRootTasks && completeShell(request);
  7070. }
  7071. } else {
  7072. node = request.trackedPostpones;
  7073. if (boundary.status !== CLIENT_RENDERED) {
  7074. if (null !== node && null !== segment)
  7075. return (
  7076. logRecoverableError(request, error, errorInfo, task.debugTask),
  7077. trackPostpone(request, node, task, segment),
  7078. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  7079. return abortTask(fallbackTask, request, error);
  7080. }),
  7081. boundary.fallbackAbortableTasks.clear(),
  7082. finishedTask(request, boundary, task.row, segment)
  7083. );
  7084. boundary.status = CLIENT_RENDERED;
  7085. segment = logRecoverableError(
  7086. request,
  7087. error,
  7088. errorInfo,
  7089. task.debugTask
  7090. );
  7091. boundary.status = CLIENT_RENDERED;
  7092. encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
  7093. untrackBoundary(request, boundary);
  7094. boundary.parentFlushed &&
  7095. request.clientRenderedBoundaries.push(boundary);
  7096. }
  7097. boundary.pendingTasks--;
  7098. errorInfo = boundary.row;
  7099. null !== errorInfo &&
  7100. 0 === --errorInfo.pendingTasks &&
  7101. finishSuspenseListRow(request, errorInfo);
  7102. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  7103. return abortTask(fallbackTask, request, error);
  7104. });
  7105. boundary.fallbackAbortableTasks.clear();
  7106. }
  7107. task = task.row;
  7108. null !== task &&
  7109. 0 === --task.pendingTasks &&
  7110. finishSuspenseListRow(request, task);
  7111. request.allPendingTasks--;
  7112. 0 === request.allPendingTasks && completeAll(request);
  7113. }
  7114. function safelyEmitEarlyPreloads(request, shellComplete) {
  7115. try {
  7116. var renderState = request.renderState,
  7117. onHeaders = renderState.onHeaders;
  7118. if (onHeaders) {
  7119. var headers = renderState.headers;
  7120. if (headers) {
  7121. renderState.headers = null;
  7122. var linkHeader = headers.preconnects;
  7123. headers.fontPreloads &&
  7124. (linkHeader && (linkHeader += ", "),
  7125. (linkHeader += headers.fontPreloads));
  7126. headers.highImagePreloads &&
  7127. (linkHeader && (linkHeader += ", "),
  7128. (linkHeader += headers.highImagePreloads));
  7129. if (!shellComplete) {
  7130. var queueIter = renderState.styles.values(),
  7131. queueStep = queueIter.next();
  7132. b: for (
  7133. ;
  7134. 0 < headers.remainingCapacity && !queueStep.done;
  7135. queueStep = queueIter.next()
  7136. )
  7137. for (
  7138. var sheetIter = queueStep.value.sheets.values(),
  7139. sheetStep = sheetIter.next();
  7140. 0 < headers.remainingCapacity && !sheetStep.done;
  7141. sheetStep = sheetIter.next()
  7142. ) {
  7143. var sheet = sheetStep.value,
  7144. props = sheet.props,
  7145. key = props.href,
  7146. props$jscomp$0 = sheet.props;
  7147. var header = getPreloadAsHeader(
  7148. props$jscomp$0.href,
  7149. "style",
  7150. {
  7151. crossOrigin: props$jscomp$0.crossOrigin,
  7152. integrity: props$jscomp$0.integrity,
  7153. nonce: props$jscomp$0.nonce,
  7154. type: props$jscomp$0.type,
  7155. fetchPriority: props$jscomp$0.fetchPriority,
  7156. referrerPolicy: props$jscomp$0.referrerPolicy,
  7157. media: props$jscomp$0.media
  7158. }
  7159. );
  7160. if (0 <= (headers.remainingCapacity -= header.length + 2))
  7161. (renderState.resets.style[key] = PRELOAD_NO_CREDS),
  7162. linkHeader && (linkHeader += ", "),
  7163. (linkHeader += header),
  7164. (renderState.resets.style[key] =
  7165. "string" === typeof props.crossOrigin ||
  7166. "string" === typeof props.integrity
  7167. ? [props.crossOrigin, props.integrity]
  7168. : PRELOAD_NO_CREDS);
  7169. else break b;
  7170. }
  7171. }
  7172. linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
  7173. }
  7174. }
  7175. } catch (error) {
  7176. logRecoverableError(request, error, {}, null);
  7177. }
  7178. }
  7179. function completeShell(request) {
  7180. null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
  7181. null === request.trackedPostpones && preparePreamble(request);
  7182. request.onShellError = noop;
  7183. request = request.onShellReady;
  7184. request();
  7185. }
  7186. function completeAll(request) {
  7187. safelyEmitEarlyPreloads(
  7188. request,
  7189. null === request.trackedPostpones
  7190. ? !0
  7191. : null === request.completedRootSegment ||
  7192. request.completedRootSegment.status !== POSTPONED
  7193. );
  7194. preparePreamble(request);
  7195. request = request.onAllReady;
  7196. request();
  7197. }
  7198. function queueCompletedSegment(boundary, segment) {
  7199. if (
  7200. 0 === segment.chunks.length &&
  7201. 1 === segment.children.length &&
  7202. null === segment.children[0].boundary &&
  7203. -1 === segment.children[0].id
  7204. ) {
  7205. var childSegment = segment.children[0];
  7206. childSegment.id = segment.id;
  7207. childSegment.parentFlushed = !0;
  7208. (childSegment.status !== COMPLETED &&
  7209. childSegment.status !== ABORTED &&
  7210. childSegment.status !== ERRORED) ||
  7211. queueCompletedSegment(boundary, childSegment);
  7212. } else boundary.completedSegments.push(segment);
  7213. }
  7214. function finishedTask(request, boundary, row, segment) {
  7215. null !== row &&
  7216. (0 === --row.pendingTasks
  7217. ? finishSuspenseListRow(request, row)
  7218. : row.together && tryToResolveTogetherRow(request, row));
  7219. request.allPendingTasks--;
  7220. if (null === boundary) {
  7221. if (null !== segment && segment.parentFlushed) {
  7222. if (null !== request.completedRootSegment)
  7223. throw Error(
  7224. "There can only be one root segment. This is a bug in React."
  7225. );
  7226. request.completedRootSegment = segment;
  7227. }
  7228. request.pendingRootTasks--;
  7229. 0 === request.pendingRootTasks && completeShell(request);
  7230. } else if ((boundary.pendingTasks--, boundary.status !== CLIENT_RENDERED))
  7231. if (0 === boundary.pendingTasks)
  7232. if (
  7233. (boundary.status === PENDING && (boundary.status = COMPLETED),
  7234. null !== segment &&
  7235. segment.parentFlushed &&
  7236. (segment.status === COMPLETED || segment.status === ABORTED) &&
  7237. queueCompletedSegment(boundary, segment),
  7238. boundary.parentFlushed &&
  7239. request.completedBoundaries.push(boundary),
  7240. boundary.status === COMPLETED)
  7241. )
  7242. (row = boundary.row),
  7243. null !== row &&
  7244. hoistHoistables(row.hoistables, boundary.contentState),
  7245. isEligibleForOutlining(request, boundary) ||
  7246. (boundary.fallbackAbortableTasks.forEach(
  7247. abortTaskSoft,
  7248. request
  7249. ),
  7250. boundary.fallbackAbortableTasks.clear(),
  7251. null !== row &&
  7252. 0 === --row.pendingTasks &&
  7253. finishSuspenseListRow(request, row)),
  7254. 0 === request.pendingRootTasks &&
  7255. null === request.trackedPostpones &&
  7256. null !== boundary.contentPreamble &&
  7257. preparePreamble(request);
  7258. else {
  7259. if (
  7260. boundary.status === POSTPONED &&
  7261. ((boundary = boundary.row), null !== boundary)
  7262. ) {
  7263. if (null !== request.trackedPostpones) {
  7264. row = request.trackedPostpones;
  7265. var postponedRow = boundary.next;
  7266. if (
  7267. null !== postponedRow &&
  7268. ((segment = postponedRow.boundaries), null !== segment)
  7269. )
  7270. for (
  7271. postponedRow.boundaries = null, postponedRow = 0;
  7272. postponedRow < segment.length;
  7273. postponedRow++
  7274. ) {
  7275. var postponedBoundary = segment[postponedRow];
  7276. trackPostponedBoundary(request, row, postponedBoundary);
  7277. finishedTask(request, postponedBoundary, null, null);
  7278. }
  7279. }
  7280. 0 === --boundary.pendingTasks &&
  7281. finishSuspenseListRow(request, boundary);
  7282. }
  7283. }
  7284. else
  7285. null === segment ||
  7286. !segment.parentFlushed ||
  7287. (segment.status !== COMPLETED && segment.status !== ABORTED) ||
  7288. (queueCompletedSegment(boundary, segment),
  7289. 1 === boundary.completedSegments.length &&
  7290. boundary.parentFlushed &&
  7291. request.partialBoundaries.push(boundary)),
  7292. (boundary = boundary.row),
  7293. null !== boundary &&
  7294. boundary.together &&
  7295. tryToResolveTogetherRow(request, boundary);
  7296. 0 === request.allPendingTasks && completeAll(request);
  7297. }
  7298. function performWork(request$jscomp$2) {
  7299. if (
  7300. request$jscomp$2.status !== CLOSED &&
  7301. 13 !== request$jscomp$2.status
  7302. ) {
  7303. var prevContext = currentActiveSnapshot,
  7304. prevDispatcher = ReactSharedInternals.H;
  7305. ReactSharedInternals.H = HooksDispatcher;
  7306. var prevAsyncDispatcher = ReactSharedInternals.A;
  7307. ReactSharedInternals.A = DefaultAsyncDispatcher;
  7308. var prevRequest = currentRequest;
  7309. currentRequest = request$jscomp$2;
  7310. var prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
  7311. ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
  7312. var prevResumableState = currentResumableState;
  7313. currentResumableState = request$jscomp$2.resumableState;
  7314. try {
  7315. var pingedTasks = request$jscomp$2.pingedTasks,
  7316. i;
  7317. for (i = 0; i < pingedTasks.length; i++) {
  7318. var request = request$jscomp$2,
  7319. task = pingedTasks[i],
  7320. segment = task.blockedSegment;
  7321. if (null === segment) {
  7322. var prevTaskInDEV = void 0,
  7323. request$jscomp$0 = request;
  7324. request = task;
  7325. if (0 !== request.replay.pendingTasks) {
  7326. switchContext(request.context);
  7327. prevTaskInDEV = currentTaskInDEV;
  7328. currentTaskInDEV = request;
  7329. try {
  7330. "number" === typeof request.replay.slots
  7331. ? resumeNode(
  7332. request$jscomp$0,
  7333. request,
  7334. request.replay.slots,
  7335. request.node,
  7336. request.childIndex
  7337. )
  7338. : retryNode(request$jscomp$0, request);
  7339. if (
  7340. 1 === request.replay.pendingTasks &&
  7341. 0 < request.replay.nodes.length
  7342. )
  7343. throw Error(
  7344. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  7345. );
  7346. request.replay.pendingTasks--;
  7347. request.abortSet.delete(request);
  7348. finishedTask(
  7349. request$jscomp$0,
  7350. request.blockedBoundary,
  7351. request.row,
  7352. null
  7353. );
  7354. } catch (thrownValue) {
  7355. resetHooksState();
  7356. var x =
  7357. thrownValue === SuspenseException
  7358. ? getSuspendedThenable()
  7359. : thrownValue;
  7360. if (
  7361. "object" === typeof x &&
  7362. null !== x &&
  7363. "function" === typeof x.then
  7364. ) {
  7365. var ping = request.ping;
  7366. x.then(ping, ping);
  7367. request.thenableState =
  7368. thrownValue === SuspenseException
  7369. ? getThenableStateAfterSuspending()
  7370. : null;
  7371. } else {
  7372. request.replay.pendingTasks--;
  7373. request.abortSet.delete(request);
  7374. var errorInfo = getThrownInfo(request.componentStack),
  7375. errorDigest = void 0,
  7376. request$jscomp$1 = request$jscomp$0,
  7377. boundary = request.blockedBoundary,
  7378. error$jscomp$0 =
  7379. 12 === request$jscomp$0.status
  7380. ? request$jscomp$0.fatalError
  7381. : x,
  7382. errorInfo$jscomp$0 = errorInfo,
  7383. replayNodes = request.replay.nodes,
  7384. resumeSlots = request.replay.slots;
  7385. errorDigest = logRecoverableError(
  7386. request$jscomp$1,
  7387. error$jscomp$0,
  7388. errorInfo$jscomp$0,
  7389. request.debugTask
  7390. );
  7391. abortRemainingReplayNodes(
  7392. request$jscomp$1,
  7393. boundary,
  7394. replayNodes,
  7395. resumeSlots,
  7396. error$jscomp$0,
  7397. errorDigest,
  7398. errorInfo$jscomp$0,
  7399. !1
  7400. );
  7401. request$jscomp$0.pendingRootTasks--;
  7402. 0 === request$jscomp$0.pendingRootTasks &&
  7403. completeShell(request$jscomp$0);
  7404. request$jscomp$0.allPendingTasks--;
  7405. 0 === request$jscomp$0.allPendingTasks &&
  7406. completeAll(request$jscomp$0);
  7407. }
  7408. } finally {
  7409. currentTaskInDEV = prevTaskInDEV;
  7410. }
  7411. }
  7412. } else if (
  7413. ((request$jscomp$0 = prevTaskInDEV = void 0),
  7414. (errorDigest = task),
  7415. (request$jscomp$1 = segment),
  7416. request$jscomp$1.status === PENDING)
  7417. ) {
  7418. request$jscomp$1.status = 6;
  7419. switchContext(errorDigest.context);
  7420. request$jscomp$0 = currentTaskInDEV;
  7421. currentTaskInDEV = errorDigest;
  7422. var childrenLength = request$jscomp$1.children.length,
  7423. chunkLength = request$jscomp$1.chunks.length;
  7424. try {
  7425. retryNode(request, errorDigest),
  7426. pushSegmentFinale(
  7427. request$jscomp$1.chunks,
  7428. request.renderState,
  7429. request$jscomp$1.lastPushedText,
  7430. request$jscomp$1.textEmbedded
  7431. ),
  7432. errorDigest.abortSet.delete(errorDigest),
  7433. (request$jscomp$1.status = COMPLETED),
  7434. finishedTask(
  7435. request,
  7436. errorDigest.blockedBoundary,
  7437. errorDigest.row,
  7438. request$jscomp$1
  7439. );
  7440. } catch (thrownValue) {
  7441. resetHooksState();
  7442. request$jscomp$1.children.length = childrenLength;
  7443. request$jscomp$1.chunks.length = chunkLength;
  7444. var x$jscomp$0 =
  7445. thrownValue === SuspenseException
  7446. ? getSuspendedThenable()
  7447. : 12 === request.status
  7448. ? request.fatalError
  7449. : thrownValue;
  7450. if (
  7451. 12 === request.status &&
  7452. null !== request.trackedPostpones
  7453. ) {
  7454. var trackedPostpones = request.trackedPostpones,
  7455. thrownInfo = getThrownInfo(errorDigest.componentStack);
  7456. errorDigest.abortSet.delete(errorDigest);
  7457. logRecoverableError(
  7458. request,
  7459. x$jscomp$0,
  7460. thrownInfo,
  7461. errorDigest.debugTask
  7462. );
  7463. trackPostpone(
  7464. request,
  7465. trackedPostpones,
  7466. errorDigest,
  7467. request$jscomp$1
  7468. );
  7469. finishedTask(
  7470. request,
  7471. errorDigest.blockedBoundary,
  7472. errorDigest.row,
  7473. request$jscomp$1
  7474. );
  7475. } else if (
  7476. "object" === typeof x$jscomp$0 &&
  7477. null !== x$jscomp$0 &&
  7478. "function" === typeof x$jscomp$0.then
  7479. ) {
  7480. request$jscomp$1.status = PENDING;
  7481. errorDigest.thenableState =
  7482. thrownValue === SuspenseException
  7483. ? getThenableStateAfterSuspending()
  7484. : null;
  7485. var ping$jscomp$0 = errorDigest.ping;
  7486. x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
  7487. } else {
  7488. var errorInfo$jscomp$1 = getThrownInfo(
  7489. errorDigest.componentStack
  7490. );
  7491. errorDigest.abortSet.delete(errorDigest);
  7492. request$jscomp$1.status = ERRORED;
  7493. var boundary$jscomp$0 = errorDigest.blockedBoundary,
  7494. row = errorDigest.row,
  7495. debugTask = errorDigest.debugTask;
  7496. null !== row &&
  7497. 0 === --row.pendingTasks &&
  7498. finishSuspenseListRow(request, row);
  7499. request.allPendingTasks--;
  7500. prevTaskInDEV = logRecoverableError(
  7501. request,
  7502. x$jscomp$0,
  7503. errorInfo$jscomp$1,
  7504. debugTask
  7505. );
  7506. if (null === boundary$jscomp$0)
  7507. fatalError(
  7508. request,
  7509. x$jscomp$0,
  7510. errorInfo$jscomp$1,
  7511. debugTask
  7512. );
  7513. else if (
  7514. (boundary$jscomp$0.pendingTasks--,
  7515. boundary$jscomp$0.status !== CLIENT_RENDERED)
  7516. ) {
  7517. boundary$jscomp$0.status = CLIENT_RENDERED;
  7518. encodeErrorForBoundary(
  7519. boundary$jscomp$0,
  7520. prevTaskInDEV,
  7521. x$jscomp$0,
  7522. errorInfo$jscomp$1,
  7523. !1
  7524. );
  7525. untrackBoundary(request, boundary$jscomp$0);
  7526. var boundaryRow = boundary$jscomp$0.row;
  7527. null !== boundaryRow &&
  7528. 0 === --boundaryRow.pendingTasks &&
  7529. finishSuspenseListRow(request, boundaryRow);
  7530. boundary$jscomp$0.parentFlushed &&
  7531. request.clientRenderedBoundaries.push(boundary$jscomp$0);
  7532. 0 === request.pendingRootTasks &&
  7533. null === request.trackedPostpones &&
  7534. null !== boundary$jscomp$0.contentPreamble &&
  7535. preparePreamble(request);
  7536. }
  7537. 0 === request.allPendingTasks && completeAll(request);
  7538. }
  7539. } finally {
  7540. currentTaskInDEV = request$jscomp$0;
  7541. }
  7542. }
  7543. }
  7544. pingedTasks.splice(0, i);
  7545. null !== request$jscomp$2.destination &&
  7546. flushCompletedQueues(
  7547. request$jscomp$2,
  7548. request$jscomp$2.destination
  7549. );
  7550. } catch (error) {
  7551. (pingedTasks = {}),
  7552. logRecoverableError(request$jscomp$2, error, pingedTasks, null),
  7553. fatalError(request$jscomp$2, error, pingedTasks, null);
  7554. } finally {
  7555. (currentResumableState = prevResumableState),
  7556. (ReactSharedInternals.H = prevDispatcher),
  7557. (ReactSharedInternals.A = prevAsyncDispatcher),
  7558. (ReactSharedInternals.getCurrentStack = prevGetCurrentStackImpl),
  7559. prevDispatcher === HooksDispatcher && switchContext(prevContext),
  7560. (currentRequest = prevRequest);
  7561. }
  7562. }
  7563. }
  7564. function preparePreambleFromSubtree(
  7565. request,
  7566. segment,
  7567. collectedPreambleSegments
  7568. ) {
  7569. segment.preambleChildren.length &&
  7570. collectedPreambleSegments.push(segment.preambleChildren);
  7571. for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
  7572. pendingPreambles =
  7573. preparePreambleFromSegment(
  7574. request,
  7575. segment.children[i],
  7576. collectedPreambleSegments
  7577. ) || pendingPreambles;
  7578. return pendingPreambles;
  7579. }
  7580. function preparePreambleFromSegment(
  7581. request,
  7582. segment,
  7583. collectedPreambleSegments
  7584. ) {
  7585. var boundary = segment.boundary;
  7586. if (null === boundary)
  7587. return preparePreambleFromSubtree(
  7588. request,
  7589. segment,
  7590. collectedPreambleSegments
  7591. );
  7592. var preamble = boundary.contentPreamble,
  7593. fallbackPreamble = boundary.fallbackPreamble;
  7594. if (null === preamble || null === fallbackPreamble) return !1;
  7595. switch (boundary.status) {
  7596. case COMPLETED:
  7597. hoistPreambleState(request.renderState, preamble);
  7598. request.byteSize += boundary.byteSize;
  7599. segment = boundary.completedSegments[0];
  7600. if (!segment)
  7601. throw Error(
  7602. "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
  7603. );
  7604. return preparePreambleFromSubtree(
  7605. request,
  7606. segment,
  7607. collectedPreambleSegments
  7608. );
  7609. case POSTPONED:
  7610. if (null !== request.trackedPostpones) return !0;
  7611. case CLIENT_RENDERED:
  7612. if (segment.status === COMPLETED)
  7613. return (
  7614. hoistPreambleState(request.renderState, fallbackPreamble),
  7615. preparePreambleFromSubtree(
  7616. request,
  7617. segment,
  7618. collectedPreambleSegments
  7619. )
  7620. );
  7621. default:
  7622. return !0;
  7623. }
  7624. }
  7625. function preparePreamble(request) {
  7626. if (
  7627. request.completedRootSegment &&
  7628. null === request.completedPreambleSegments
  7629. ) {
  7630. var collectedPreambleSegments = [],
  7631. originalRequestByteSize = request.byteSize,
  7632. hasPendingPreambles = preparePreambleFromSegment(
  7633. request,
  7634. request.completedRootSegment,
  7635. collectedPreambleSegments
  7636. ),
  7637. preamble = request.renderState.preamble;
  7638. !1 === hasPendingPreambles ||
  7639. (preamble.headChunks && preamble.bodyChunks)
  7640. ? (request.completedPreambleSegments = collectedPreambleSegments)
  7641. : (request.byteSize = originalRequestByteSize);
  7642. }
  7643. }
  7644. function flushSubtree(request, destination, segment, hoistableState) {
  7645. segment.parentFlushed = !0;
  7646. switch (segment.status) {
  7647. case PENDING:
  7648. segment.id = request.nextSegmentId++;
  7649. case POSTPONED:
  7650. return (
  7651. (hoistableState = segment.id),
  7652. (segment.lastPushedText = !1),
  7653. (segment.textEmbedded = !1),
  7654. (request = request.renderState),
  7655. destination.push(placeholder1),
  7656. destination.push(request.placeholderPrefix),
  7657. (request = hoistableState.toString(16)),
  7658. destination.push(request),
  7659. destination.push(placeholder2)
  7660. );
  7661. case COMPLETED:
  7662. segment.status = FLUSHED;
  7663. var r = !0,
  7664. chunks = segment.chunks,
  7665. chunkIdx = 0;
  7666. segment = segment.children;
  7667. for (var childIdx = 0; childIdx < segment.length; childIdx++) {
  7668. for (r = segment[childIdx]; chunkIdx < r.index; chunkIdx++)
  7669. destination.push(chunks[chunkIdx]);
  7670. r = flushSegment(request, destination, r, hoistableState);
  7671. }
  7672. for (; chunkIdx < chunks.length - 1; chunkIdx++)
  7673. destination.push(chunks[chunkIdx]);
  7674. chunkIdx < chunks.length && (r = destination.push(chunks[chunkIdx]));
  7675. return r;
  7676. case ABORTED:
  7677. return !0;
  7678. default:
  7679. throw Error(
  7680. "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React."
  7681. );
  7682. }
  7683. }
  7684. function flushSegment(request, destination, segment, hoistableState) {
  7685. var boundary = segment.boundary;
  7686. if (null === boundary)
  7687. return flushSubtree(request, destination, segment, hoistableState);
  7688. boundary.parentFlushed = !0;
  7689. if (boundary.status === CLIENT_RENDERED) {
  7690. var row = boundary.row;
  7691. null !== row &&
  7692. 0 === --row.pendingTasks &&
  7693. finishSuspenseListRow(request, row);
  7694. if (!request.renderState.generateStaticMarkup) {
  7695. var errorDigest = boundary.errorDigest,
  7696. errorMessage = boundary.errorMessage;
  7697. row = boundary.errorStack;
  7698. boundary = boundary.errorComponentStack;
  7699. destination.push(startClientRenderedSuspenseBoundary);
  7700. destination.push(clientRenderedSuspenseBoundaryError1);
  7701. errorDigest &&
  7702. (destination.push(clientRenderedSuspenseBoundaryError1A),
  7703. (errorDigest = escapeTextForBrowser(errorDigest)),
  7704. destination.push(errorDigest),
  7705. destination.push(
  7706. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  7707. ));
  7708. errorMessage &&
  7709. (destination.push(clientRenderedSuspenseBoundaryError1B),
  7710. (errorMessage = escapeTextForBrowser(errorMessage)),
  7711. destination.push(errorMessage),
  7712. destination.push(
  7713. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  7714. ));
  7715. row &&
  7716. (destination.push(clientRenderedSuspenseBoundaryError1C),
  7717. (row = escapeTextForBrowser(row)),
  7718. destination.push(row),
  7719. destination.push(
  7720. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  7721. ));
  7722. boundary &&
  7723. (destination.push(clientRenderedSuspenseBoundaryError1D),
  7724. (row = escapeTextForBrowser(boundary)),
  7725. destination.push(row),
  7726. destination.push(
  7727. clientRenderedSuspenseBoundaryErrorAttrInterstitial
  7728. ));
  7729. destination.push(clientRenderedSuspenseBoundaryError2);
  7730. }
  7731. flushSubtree(request, destination, segment, hoistableState);
  7732. request = request.renderState.generateStaticMarkup
  7733. ? !0
  7734. : destination.push(endSuspenseBoundary);
  7735. return request;
  7736. }
  7737. if (boundary.status !== COMPLETED)
  7738. return (
  7739. boundary.status === PENDING &&
  7740. (boundary.rootSegmentID = request.nextSegmentId++),
  7741. 0 < boundary.completedSegments.length &&
  7742. request.partialBoundaries.push(boundary),
  7743. writeStartPendingSuspenseBoundary(
  7744. destination,
  7745. request.renderState,
  7746. boundary.rootSegmentID
  7747. ),
  7748. hoistableState &&
  7749. hoistHoistables(hoistableState, boundary.fallbackState),
  7750. flushSubtree(request, destination, segment, hoistableState),
  7751. destination.push(endSuspenseBoundary)
  7752. );
  7753. if (
  7754. !flushingPartialBoundaries &&
  7755. isEligibleForOutlining(request, boundary) &&
  7756. flushedByteSize + boundary.byteSize > request.progressiveChunkSize
  7757. )
  7758. return (
  7759. (boundary.rootSegmentID = request.nextSegmentId++),
  7760. request.completedBoundaries.push(boundary),
  7761. writeStartPendingSuspenseBoundary(
  7762. destination,
  7763. request.renderState,
  7764. boundary.rootSegmentID
  7765. ),
  7766. flushSubtree(request, destination, segment, hoistableState),
  7767. destination.push(endSuspenseBoundary)
  7768. );
  7769. flushedByteSize += boundary.byteSize;
  7770. hoistableState && hoistHoistables(hoistableState, boundary.contentState);
  7771. segment = boundary.row;
  7772. null !== segment &&
  7773. isEligibleForOutlining(request, boundary) &&
  7774. 0 === --segment.pendingTasks &&
  7775. finishSuspenseListRow(request, segment);
  7776. request.renderState.generateStaticMarkup ||
  7777. destination.push(startCompletedSuspenseBoundary);
  7778. segment = boundary.completedSegments;
  7779. if (1 !== segment.length)
  7780. throw Error(
  7781. "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
  7782. );
  7783. flushSegment(request, destination, segment[0], hoistableState);
  7784. request = request.renderState.generateStaticMarkup
  7785. ? !0
  7786. : destination.push(endSuspenseBoundary);
  7787. return request;
  7788. }
  7789. function flushSegmentContainer(
  7790. request,
  7791. destination,
  7792. segment,
  7793. hoistableState
  7794. ) {
  7795. writeStartSegment(
  7796. destination,
  7797. request.renderState,
  7798. segment.parentFormatContext,
  7799. segment.id
  7800. );
  7801. flushSegment(request, destination, segment, hoistableState);
  7802. return writeEndSegment(destination, segment.parentFormatContext);
  7803. }
  7804. function flushCompletedBoundary(request, destination, boundary) {
  7805. flushedByteSize = boundary.byteSize;
  7806. for (
  7807. var completedSegments = boundary.completedSegments, i = 0;
  7808. i < completedSegments.length;
  7809. i++
  7810. )
  7811. flushPartiallyCompletedSegment(
  7812. request,
  7813. destination,
  7814. boundary,
  7815. completedSegments[i]
  7816. );
  7817. completedSegments.length = 0;
  7818. completedSegments = boundary.row;
  7819. null !== completedSegments &&
  7820. isEligibleForOutlining(request, boundary) &&
  7821. 0 === --completedSegments.pendingTasks &&
  7822. finishSuspenseListRow(request, completedSegments);
  7823. writeHoistablesForBoundary(
  7824. destination,
  7825. boundary.contentState,
  7826. request.renderState
  7827. );
  7828. completedSegments = request.resumableState;
  7829. request = request.renderState;
  7830. i = boundary.rootSegmentID;
  7831. boundary = boundary.contentState;
  7832. var requiresStyleInsertion = request.stylesToHoist;
  7833. request.stylesToHoist = !1;
  7834. destination.push(request.startInlineScript);
  7835. destination.push(endOfStartTag);
  7836. requiresStyleInsertion
  7837. ? ((completedSegments.instructions & SentClientRenderFunction) ===
  7838. NothingSent &&
  7839. ((completedSegments.instructions |= SentClientRenderFunction),
  7840. destination.push(clientRenderScriptFunctionOnly)),
  7841. (completedSegments.instructions & SentCompleteBoundaryFunction) ===
  7842. NothingSent &&
  7843. ((completedSegments.instructions |= SentCompleteBoundaryFunction),
  7844. destination.push(completeBoundaryScriptFunctionOnly)),
  7845. (completedSegments.instructions & SentStyleInsertionFunction) ===
  7846. NothingSent
  7847. ? ((completedSegments.instructions |= SentStyleInsertionFunction),
  7848. destination.push(completeBoundaryWithStylesScript1FullPartial))
  7849. : destination.push(completeBoundaryWithStylesScript1Partial))
  7850. : ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
  7851. NothingSent &&
  7852. ((completedSegments.instructions |= SentCompleteBoundaryFunction),
  7853. destination.push(completeBoundaryScriptFunctionOnly)),
  7854. destination.push(completeBoundaryScript1Partial));
  7855. completedSegments = i.toString(16);
  7856. destination.push(request.boundaryPrefix);
  7857. destination.push(completedSegments);
  7858. destination.push(completeBoundaryScript2);
  7859. destination.push(request.segmentPrefix);
  7860. destination.push(completedSegments);
  7861. requiresStyleInsertion
  7862. ? (destination.push(completeBoundaryScript3a),
  7863. writeStyleResourceDependenciesInJS(destination, boundary))
  7864. : destination.push(completeBoundaryScript3b);
  7865. boundary = destination.push(completeBoundaryScriptEnd);
  7866. return writeBootstrap(destination, request) && boundary;
  7867. }
  7868. function flushPartiallyCompletedSegment(
  7869. request,
  7870. destination,
  7871. boundary,
  7872. segment
  7873. ) {
  7874. if (segment.status === FLUSHED) return !0;
  7875. var hoistableState = boundary.contentState,
  7876. segmentID = segment.id;
  7877. if (-1 === segmentID) {
  7878. if (-1 === (segment.id = boundary.rootSegmentID))
  7879. throw Error(
  7880. "A root segment ID must have been assigned by now. This is a bug in React."
  7881. );
  7882. return flushSegmentContainer(
  7883. request,
  7884. destination,
  7885. segment,
  7886. hoistableState
  7887. );
  7888. }
  7889. if (segmentID === boundary.rootSegmentID)
  7890. return flushSegmentContainer(
  7891. request,
  7892. destination,
  7893. segment,
  7894. hoistableState
  7895. );
  7896. flushSegmentContainer(request, destination, segment, hoistableState);
  7897. boundary = request.resumableState;
  7898. request = request.renderState;
  7899. destination.push(request.startInlineScript);
  7900. destination.push(endOfStartTag);
  7901. (boundary.instructions & SentCompleteSegmentFunction) === NothingSent
  7902. ? ((boundary.instructions |= SentCompleteSegmentFunction),
  7903. destination.push(completeSegmentScript1Full))
  7904. : destination.push(completeSegmentScript1Partial);
  7905. destination.push(request.segmentPrefix);
  7906. segmentID = segmentID.toString(16);
  7907. destination.push(segmentID);
  7908. destination.push(completeSegmentScript2);
  7909. destination.push(request.placeholderPrefix);
  7910. destination.push(segmentID);
  7911. destination = destination.push(completeSegmentScriptEnd);
  7912. return destination;
  7913. }
  7914. function flushCompletedQueues(request, destination) {
  7915. try {
  7916. if (!(0 < request.pendingRootTasks)) {
  7917. var i,
  7918. completedRootSegment = request.completedRootSegment;
  7919. if (null !== completedRootSegment) {
  7920. if (completedRootSegment.status === POSTPONED) return;
  7921. var completedPreambleSegments = request.completedPreambleSegments;
  7922. if (null === completedPreambleSegments) return;
  7923. flushedByteSize = request.byteSize;
  7924. var resumableState = request.resumableState,
  7925. renderState = request.renderState,
  7926. preamble = renderState.preamble,
  7927. htmlChunks = preamble.htmlChunks,
  7928. headChunks = preamble.headChunks,
  7929. i$jscomp$0;
  7930. if (htmlChunks) {
  7931. for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
  7932. destination.push(htmlChunks[i$jscomp$0]);
  7933. if (headChunks)
  7934. for (
  7935. i$jscomp$0 = 0;
  7936. i$jscomp$0 < headChunks.length;
  7937. i$jscomp$0++
  7938. )
  7939. destination.push(headChunks[i$jscomp$0]);
  7940. else {
  7941. var chunk = startChunkForTag("head");
  7942. destination.push(chunk);
  7943. destination.push(endOfStartTag);
  7944. }
  7945. } else if (headChunks)
  7946. for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
  7947. destination.push(headChunks[i$jscomp$0]);
  7948. var charsetChunks = renderState.charsetChunks;
  7949. for (
  7950. i$jscomp$0 = 0;
  7951. i$jscomp$0 < charsetChunks.length;
  7952. i$jscomp$0++
  7953. )
  7954. destination.push(charsetChunks[i$jscomp$0]);
  7955. charsetChunks.length = 0;
  7956. renderState.preconnects.forEach(flushResource, destination);
  7957. renderState.preconnects.clear();
  7958. var viewportChunks = renderState.viewportChunks;
  7959. for (
  7960. i$jscomp$0 = 0;
  7961. i$jscomp$0 < viewportChunks.length;
  7962. i$jscomp$0++
  7963. )
  7964. destination.push(viewportChunks[i$jscomp$0]);
  7965. viewportChunks.length = 0;
  7966. renderState.fontPreloads.forEach(flushResource, destination);
  7967. renderState.fontPreloads.clear();
  7968. renderState.highImagePreloads.forEach(flushResource, destination);
  7969. renderState.highImagePreloads.clear();
  7970. currentlyFlushingRenderState = renderState;
  7971. renderState.styles.forEach(flushStylesInPreamble, destination);
  7972. currentlyFlushingRenderState = null;
  7973. var importMapChunks = renderState.importMapChunks;
  7974. for (
  7975. i$jscomp$0 = 0;
  7976. i$jscomp$0 < importMapChunks.length;
  7977. i$jscomp$0++
  7978. )
  7979. destination.push(importMapChunks[i$jscomp$0]);
  7980. importMapChunks.length = 0;
  7981. renderState.bootstrapScripts.forEach(flushResource, destination);
  7982. renderState.scripts.forEach(flushResource, destination);
  7983. renderState.scripts.clear();
  7984. renderState.bulkPreloads.forEach(flushResource, destination);
  7985. renderState.bulkPreloads.clear();
  7986. resumableState.instructions |= SentCompletedShellId;
  7987. var hoistableChunks = renderState.hoistableChunks;
  7988. for (
  7989. i$jscomp$0 = 0;
  7990. i$jscomp$0 < hoistableChunks.length;
  7991. i$jscomp$0++
  7992. )
  7993. destination.push(hoistableChunks[i$jscomp$0]);
  7994. for (
  7995. resumableState = hoistableChunks.length = 0;
  7996. resumableState < completedPreambleSegments.length;
  7997. resumableState++
  7998. ) {
  7999. var segments = completedPreambleSegments[resumableState];
  8000. for (
  8001. renderState = 0;
  8002. renderState < segments.length;
  8003. renderState++
  8004. )
  8005. flushSegment(request, destination, segments[renderState], null);
  8006. }
  8007. var preamble$jscomp$0 = request.renderState.preamble,
  8008. headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
  8009. if (preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) {
  8010. var chunk$jscomp$0 = endChunkForTag("head");
  8011. destination.push(chunk$jscomp$0);
  8012. }
  8013. var bodyChunks = preamble$jscomp$0.bodyChunks;
  8014. if (bodyChunks)
  8015. for (
  8016. completedPreambleSegments = 0;
  8017. completedPreambleSegments < bodyChunks.length;
  8018. completedPreambleSegments++
  8019. )
  8020. destination.push(bodyChunks[completedPreambleSegments]);
  8021. flushSegment(request, destination, completedRootSegment, null);
  8022. request.completedRootSegment = null;
  8023. var renderState$jscomp$0 = request.renderState;
  8024. if (
  8025. 0 !== request.allPendingTasks ||
  8026. 0 !== request.clientRenderedBoundaries.length ||
  8027. 0 !== request.completedBoundaries.length ||
  8028. (null !== request.trackedPostpones &&
  8029. (0 !== request.trackedPostpones.rootNodes.length ||
  8030. null !== request.trackedPostpones.rootSlots))
  8031. ) {
  8032. var resumableState$jscomp$0 = request.resumableState;
  8033. if (
  8034. (resumableState$jscomp$0.instructions & SentMarkShellTime) ===
  8035. NothingSent
  8036. ) {
  8037. resumableState$jscomp$0.instructions |= SentMarkShellTime;
  8038. destination.push(renderState$jscomp$0.startInlineScript);
  8039. if (
  8040. (resumableState$jscomp$0.instructions &
  8041. SentCompletedShellId) ===
  8042. NothingSent
  8043. ) {
  8044. resumableState$jscomp$0.instructions |= SentCompletedShellId;
  8045. var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
  8046. destination.push(completedShellIdAttributeStart);
  8047. var chunk$jscomp$1 = escapeTextForBrowser(shellId);
  8048. destination.push(chunk$jscomp$1);
  8049. destination.push(attributeEnd);
  8050. }
  8051. destination.push(endOfStartTag);
  8052. destination.push(shellTimeRuntimeScript);
  8053. destination.push(endInlineScript);
  8054. }
  8055. }
  8056. writeBootstrap(destination, renderState$jscomp$0);
  8057. }
  8058. var renderState$jscomp$1 = request.renderState;
  8059. completedRootSegment = 0;
  8060. var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
  8061. for (
  8062. completedRootSegment = 0;
  8063. completedRootSegment < viewportChunks$jscomp$0.length;
  8064. completedRootSegment++
  8065. )
  8066. destination.push(viewportChunks$jscomp$0[completedRootSegment]);
  8067. viewportChunks$jscomp$0.length = 0;
  8068. renderState$jscomp$1.preconnects.forEach(flushResource, destination);
  8069. renderState$jscomp$1.preconnects.clear();
  8070. renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
  8071. renderState$jscomp$1.fontPreloads.clear();
  8072. renderState$jscomp$1.highImagePreloads.forEach(
  8073. flushResource,
  8074. destination
  8075. );
  8076. renderState$jscomp$1.highImagePreloads.clear();
  8077. renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
  8078. renderState$jscomp$1.scripts.forEach(flushResource, destination);
  8079. renderState$jscomp$1.scripts.clear();
  8080. renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
  8081. renderState$jscomp$1.bulkPreloads.clear();
  8082. var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
  8083. for (
  8084. completedRootSegment = 0;
  8085. completedRootSegment < hoistableChunks$jscomp$0.length;
  8086. completedRootSegment++
  8087. )
  8088. destination.push(hoistableChunks$jscomp$0[completedRootSegment]);
  8089. hoistableChunks$jscomp$0.length = 0;
  8090. var clientRenderedBoundaries = request.clientRenderedBoundaries;
  8091. for (i = 0; i < clientRenderedBoundaries.length; i++) {
  8092. var boundary = clientRenderedBoundaries[i];
  8093. renderState$jscomp$1 = destination;
  8094. var resumableState$jscomp$1 = request.resumableState,
  8095. renderState$jscomp$2 = request.renderState,
  8096. id = boundary.rootSegmentID,
  8097. errorDigest = boundary.errorDigest,
  8098. errorMessage = boundary.errorMessage,
  8099. errorStack = boundary.errorStack,
  8100. errorComponentStack = boundary.errorComponentStack;
  8101. renderState$jscomp$1.push(renderState$jscomp$2.startInlineScript);
  8102. renderState$jscomp$1.push(endOfStartTag);
  8103. (resumableState$jscomp$1.instructions &
  8104. SentClientRenderFunction) ===
  8105. NothingSent
  8106. ? ((resumableState$jscomp$1.instructions |=
  8107. SentClientRenderFunction),
  8108. renderState$jscomp$1.push(clientRenderScript1Full))
  8109. : renderState$jscomp$1.push(clientRenderScript1Partial);
  8110. renderState$jscomp$1.push(renderState$jscomp$2.boundaryPrefix);
  8111. var chunk$jscomp$2 = id.toString(16);
  8112. renderState$jscomp$1.push(chunk$jscomp$2);
  8113. renderState$jscomp$1.push(clientRenderScript1A);
  8114. if (
  8115. errorDigest ||
  8116. errorMessage ||
  8117. errorStack ||
  8118. errorComponentStack
  8119. ) {
  8120. renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
  8121. var chunk$jscomp$3 = escapeJSStringsForInstructionScripts(
  8122. errorDigest || ""
  8123. );
  8124. renderState$jscomp$1.push(chunk$jscomp$3);
  8125. }
  8126. if (errorMessage || errorStack || errorComponentStack) {
  8127. renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
  8128. var chunk$jscomp$4 = escapeJSStringsForInstructionScripts(
  8129. errorMessage || ""
  8130. );
  8131. renderState$jscomp$1.push(chunk$jscomp$4);
  8132. }
  8133. if (errorStack || errorComponentStack) {
  8134. renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
  8135. var chunk$jscomp$5 = escapeJSStringsForInstructionScripts(
  8136. errorStack || ""
  8137. );
  8138. renderState$jscomp$1.push(chunk$jscomp$5);
  8139. }
  8140. if (errorComponentStack) {
  8141. renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
  8142. var chunk$jscomp$6 =
  8143. escapeJSStringsForInstructionScripts(errorComponentStack);
  8144. renderState$jscomp$1.push(chunk$jscomp$6);
  8145. }
  8146. var JSCompiler_inline_result = renderState$jscomp$1.push(
  8147. clientRenderScriptEnd
  8148. );
  8149. if (!JSCompiler_inline_result) {
  8150. request.destination = null;
  8151. i++;
  8152. clientRenderedBoundaries.splice(0, i);
  8153. return;
  8154. }
  8155. }
  8156. clientRenderedBoundaries.splice(0, i);
  8157. var completedBoundaries = request.completedBoundaries;
  8158. for (i = 0; i < completedBoundaries.length; i++)
  8159. if (
  8160. !flushCompletedBoundary(
  8161. request,
  8162. destination,
  8163. completedBoundaries[i]
  8164. )
  8165. ) {
  8166. request.destination = null;
  8167. i++;
  8168. completedBoundaries.splice(0, i);
  8169. return;
  8170. }
  8171. completedBoundaries.splice(0, i);
  8172. flushingPartialBoundaries = !0;
  8173. var partialBoundaries = request.partialBoundaries;
  8174. for (i = 0; i < partialBoundaries.length; i++) {
  8175. a: {
  8176. clientRenderedBoundaries = request;
  8177. boundary = destination;
  8178. var boundary$jscomp$0 = partialBoundaries[i];
  8179. flushedByteSize = boundary$jscomp$0.byteSize;
  8180. var completedSegments = boundary$jscomp$0.completedSegments;
  8181. for (
  8182. JSCompiler_inline_result = 0;
  8183. JSCompiler_inline_result < completedSegments.length;
  8184. JSCompiler_inline_result++
  8185. )
  8186. if (
  8187. !flushPartiallyCompletedSegment(
  8188. clientRenderedBoundaries,
  8189. boundary,
  8190. boundary$jscomp$0,
  8191. completedSegments[JSCompiler_inline_result]
  8192. )
  8193. ) {
  8194. JSCompiler_inline_result++;
  8195. completedSegments.splice(0, JSCompiler_inline_result);
  8196. var JSCompiler_inline_result$jscomp$0 = !1;
  8197. break a;
  8198. }
  8199. completedSegments.splice(0, JSCompiler_inline_result);
  8200. var row = boundary$jscomp$0.row;
  8201. null !== row &&
  8202. row.together &&
  8203. 1 === boundary$jscomp$0.pendingTasks &&
  8204. (1 === row.pendingTasks
  8205. ? unblockSuspenseListRow(
  8206. clientRenderedBoundaries,
  8207. row,
  8208. row.hoistables
  8209. )
  8210. : row.pendingTasks--);
  8211. JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
  8212. boundary,
  8213. boundary$jscomp$0.contentState,
  8214. clientRenderedBoundaries.renderState
  8215. );
  8216. }
  8217. if (!JSCompiler_inline_result$jscomp$0) {
  8218. request.destination = null;
  8219. i++;
  8220. partialBoundaries.splice(0, i);
  8221. return;
  8222. }
  8223. }
  8224. partialBoundaries.splice(0, i);
  8225. flushingPartialBoundaries = !1;
  8226. var largeBoundaries = request.completedBoundaries;
  8227. for (i = 0; i < largeBoundaries.length; i++)
  8228. if (
  8229. !flushCompletedBoundary(request, destination, largeBoundaries[i])
  8230. ) {
  8231. request.destination = null;
  8232. i++;
  8233. largeBoundaries.splice(0, i);
  8234. return;
  8235. }
  8236. largeBoundaries.splice(0, i);
  8237. }
  8238. } finally {
  8239. (flushingPartialBoundaries = !1),
  8240. 0 === request.allPendingTasks &&
  8241. 0 === request.clientRenderedBoundaries.length &&
  8242. 0 === request.completedBoundaries.length &&
  8243. ((request.flushScheduled = !1),
  8244. (i = request.resumableState),
  8245. i.hasBody &&
  8246. ((partialBoundaries = endChunkForTag("body")),
  8247. destination.push(partialBoundaries)),
  8248. i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
  8249. 0 !== request.abortableTasks.size &&
  8250. console.error(
  8251. "There was still abortable task at the root when we closed. This is a bug in React."
  8252. ),
  8253. (request.status = CLOSED),
  8254. destination.push(null),
  8255. (request.destination = null));
  8256. }
  8257. }
  8258. function startWork(request) {
  8259. request.flushScheduled = null !== request.destination;
  8260. performWork(request);
  8261. 10 === request.status && (request.status = 11);
  8262. null === request.trackedPostpones &&
  8263. safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
  8264. }
  8265. function enqueueFlush(request) {
  8266. if (
  8267. !1 === request.flushScheduled &&
  8268. 0 === request.pingedTasks.length &&
  8269. null !== request.destination
  8270. ) {
  8271. request.flushScheduled = !0;
  8272. var destination = request.destination;
  8273. destination
  8274. ? flushCompletedQueues(request, destination)
  8275. : (request.flushScheduled = !1);
  8276. }
  8277. }
  8278. function startFlowing(request, destination) {
  8279. if (13 === request.status)
  8280. (request.status = CLOSED), destination.destroy(request.fatalError);
  8281. else if (request.status !== CLOSED && null === request.destination) {
  8282. request.destination = destination;
  8283. try {
  8284. flushCompletedQueues(request, destination);
  8285. } catch (error) {
  8286. (destination = {}),
  8287. logRecoverableError(request, error, destination, null),
  8288. fatalError(request, error, destination, null);
  8289. }
  8290. }
  8291. }
  8292. function abort(request, reason) {
  8293. if (11 === request.status || 10 === request.status) request.status = 12;
  8294. try {
  8295. var abortableTasks = request.abortableTasks;
  8296. if (0 < abortableTasks.size) {
  8297. var error =
  8298. void 0 === reason
  8299. ? Error("The render was aborted by the server without a reason.")
  8300. : "object" === typeof reason &&
  8301. null !== reason &&
  8302. "function" === typeof reason.then
  8303. ? Error("The render was aborted by the server with a promise.")
  8304. : reason;
  8305. request.fatalError = error;
  8306. abortableTasks.forEach(function (task) {
  8307. var prevTaskInDEV = currentTaskInDEV,
  8308. prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
  8309. currentTaskInDEV = task;
  8310. ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
  8311. try {
  8312. abortTask(task, request, error);
  8313. } finally {
  8314. (currentTaskInDEV = prevTaskInDEV),
  8315. (ReactSharedInternals.getCurrentStack =
  8316. prevGetCurrentStackImpl);
  8317. }
  8318. });
  8319. abortableTasks.clear();
  8320. }
  8321. null !== request.destination &&
  8322. flushCompletedQueues(request, request.destination);
  8323. } catch (error$4) {
  8324. (reason = {}),
  8325. logRecoverableError(request, error$4, reason, null),
  8326. fatalError(request, error$4, reason, null);
  8327. }
  8328. }
  8329. function addToReplayParent(node, parentKeyPath, trackedPostpones) {
  8330. if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
  8331. else {
  8332. var workingMap = trackedPostpones.workingMap,
  8333. parentNode = workingMap.get(parentKeyPath);
  8334. void 0 === parentNode &&
  8335. ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
  8336. workingMap.set(parentKeyPath, parentNode),
  8337. addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
  8338. parentNode[2].push(node);
  8339. }
  8340. }
  8341. function onError() {}
  8342. function renderToStringImpl(
  8343. children,
  8344. options,
  8345. generateStaticMarkup,
  8346. abortReason
  8347. ) {
  8348. var didFatal = !1,
  8349. fatalError = null,
  8350. result = "",
  8351. readyToStream = !1;
  8352. options = createResumableState(
  8353. options ? options.identifierPrefix : void 0
  8354. );
  8355. children = createRequest(
  8356. children,
  8357. options,
  8358. createRenderState(options, generateStaticMarkup),
  8359. createFormatContext(ROOT_HTML_MODE, null, 0, null),
  8360. Infinity,
  8361. onError,
  8362. void 0,
  8363. function () {
  8364. readyToStream = !0;
  8365. },
  8366. void 0,
  8367. void 0,
  8368. void 0
  8369. );
  8370. startWork(children);
  8371. abort(children, abortReason);
  8372. startFlowing(children, {
  8373. push: function (chunk) {
  8374. null !== chunk && (result += chunk);
  8375. return !0;
  8376. },
  8377. destroy: function (error) {
  8378. didFatal = !0;
  8379. fatalError = error;
  8380. }
  8381. });
  8382. if (didFatal && fatalError !== abortReason) throw fatalError;
  8383. if (!readyToStream)
  8384. throw Error(
  8385. "A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."
  8386. );
  8387. return result;
  8388. }
  8389. var React = require("react"),
  8390. ReactDOM = require("react-dom"),
  8391. REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
  8392. REACT_PORTAL_TYPE = Symbol.for("react.portal"),
  8393. REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
  8394. REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
  8395. REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
  8396. REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
  8397. REACT_CONTEXT_TYPE = Symbol.for("react.context"),
  8398. REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
  8399. REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
  8400. REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
  8401. REACT_MEMO_TYPE = Symbol.for("react.memo"),
  8402. REACT_LAZY_TYPE = Symbol.for("react.lazy"),
  8403. REACT_SCOPE_TYPE = Symbol.for("react.scope"),
  8404. REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
  8405. REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
  8406. REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
  8407. REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
  8408. MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
  8409. isArrayImpl = Array.isArray,
  8410. jsxPropsParents = new WeakMap(),
  8411. jsxChildrenParents = new WeakMap(),
  8412. CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
  8413. assign = Object.assign,
  8414. hasOwnProperty = Object.prototype.hasOwnProperty,
  8415. VALID_ATTRIBUTE_NAME_REGEX = RegExp(
  8416. "^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
  8417. ),
  8418. illegalAttributeNameCache = {},
  8419. validatedAttributeNameCache = {},
  8420. unitlessNumbers = new Set(
  8421. "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
  8422. " "
  8423. )
  8424. ),
  8425. aliases = new Map([
  8426. ["acceptCharset", "accept-charset"],
  8427. ["htmlFor", "for"],
  8428. ["httpEquiv", "http-equiv"],
  8429. ["crossOrigin", "crossorigin"],
  8430. ["accentHeight", "accent-height"],
  8431. ["alignmentBaseline", "alignment-baseline"],
  8432. ["arabicForm", "arabic-form"],
  8433. ["baselineShift", "baseline-shift"],
  8434. ["capHeight", "cap-height"],
  8435. ["clipPath", "clip-path"],
  8436. ["clipRule", "clip-rule"],
  8437. ["colorInterpolation", "color-interpolation"],
  8438. ["colorInterpolationFilters", "color-interpolation-filters"],
  8439. ["colorProfile", "color-profile"],
  8440. ["colorRendering", "color-rendering"],
  8441. ["dominantBaseline", "dominant-baseline"],
  8442. ["enableBackground", "enable-background"],
  8443. ["fillOpacity", "fill-opacity"],
  8444. ["fillRule", "fill-rule"],
  8445. ["floodColor", "flood-color"],
  8446. ["floodOpacity", "flood-opacity"],
  8447. ["fontFamily", "font-family"],
  8448. ["fontSize", "font-size"],
  8449. ["fontSizeAdjust", "font-size-adjust"],
  8450. ["fontStretch", "font-stretch"],
  8451. ["fontStyle", "font-style"],
  8452. ["fontVariant", "font-variant"],
  8453. ["fontWeight", "font-weight"],
  8454. ["glyphName", "glyph-name"],
  8455. ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
  8456. ["glyphOrientationVertical", "glyph-orientation-vertical"],
  8457. ["horizAdvX", "horiz-adv-x"],
  8458. ["horizOriginX", "horiz-origin-x"],
  8459. ["imageRendering", "image-rendering"],
  8460. ["letterSpacing", "letter-spacing"],
  8461. ["lightingColor", "lighting-color"],
  8462. ["markerEnd", "marker-end"],
  8463. ["markerMid", "marker-mid"],
  8464. ["markerStart", "marker-start"],
  8465. ["overlinePosition", "overline-position"],
  8466. ["overlineThickness", "overline-thickness"],
  8467. ["paintOrder", "paint-order"],
  8468. ["panose-1", "panose-1"],
  8469. ["pointerEvents", "pointer-events"],
  8470. ["renderingIntent", "rendering-intent"],
  8471. ["shapeRendering", "shape-rendering"],
  8472. ["stopColor", "stop-color"],
  8473. ["stopOpacity", "stop-opacity"],
  8474. ["strikethroughPosition", "strikethrough-position"],
  8475. ["strikethroughThickness", "strikethrough-thickness"],
  8476. ["strokeDasharray", "stroke-dasharray"],
  8477. ["strokeDashoffset", "stroke-dashoffset"],
  8478. ["strokeLinecap", "stroke-linecap"],
  8479. ["strokeLinejoin", "stroke-linejoin"],
  8480. ["strokeMiterlimit", "stroke-miterlimit"],
  8481. ["strokeOpacity", "stroke-opacity"],
  8482. ["strokeWidth", "stroke-width"],
  8483. ["textAnchor", "text-anchor"],
  8484. ["textDecoration", "text-decoration"],
  8485. ["textRendering", "text-rendering"],
  8486. ["transformOrigin", "transform-origin"],
  8487. ["underlinePosition", "underline-position"],
  8488. ["underlineThickness", "underline-thickness"],
  8489. ["unicodeBidi", "unicode-bidi"],
  8490. ["unicodeRange", "unicode-range"],
  8491. ["unitsPerEm", "units-per-em"],
  8492. ["vAlphabetic", "v-alphabetic"],
  8493. ["vHanging", "v-hanging"],
  8494. ["vIdeographic", "v-ideographic"],
  8495. ["vMathematical", "v-mathematical"],
  8496. ["vectorEffect", "vector-effect"],
  8497. ["vertAdvY", "vert-adv-y"],
  8498. ["vertOriginX", "vert-origin-x"],
  8499. ["vertOriginY", "vert-origin-y"],
  8500. ["wordSpacing", "word-spacing"],
  8501. ["writingMode", "writing-mode"],
  8502. ["xmlnsXlink", "xmlns:xlink"],
  8503. ["xHeight", "x-height"]
  8504. ]),
  8505. hasReadOnlyValue = {
  8506. button: !0,
  8507. checkbox: !0,
  8508. image: !0,
  8509. hidden: !0,
  8510. radio: !0,
  8511. reset: !0,
  8512. submit: !0
  8513. },
  8514. ariaProperties = {
  8515. "aria-current": 0,
  8516. "aria-description": 0,
  8517. "aria-details": 0,
  8518. "aria-disabled": 0,
  8519. "aria-hidden": 0,
  8520. "aria-invalid": 0,
  8521. "aria-keyshortcuts": 0,
  8522. "aria-label": 0,
  8523. "aria-roledescription": 0,
  8524. "aria-autocomplete": 0,
  8525. "aria-checked": 0,
  8526. "aria-expanded": 0,
  8527. "aria-haspopup": 0,
  8528. "aria-level": 0,
  8529. "aria-modal": 0,
  8530. "aria-multiline": 0,
  8531. "aria-multiselectable": 0,
  8532. "aria-orientation": 0,
  8533. "aria-placeholder": 0,
  8534. "aria-pressed": 0,
  8535. "aria-readonly": 0,
  8536. "aria-required": 0,
  8537. "aria-selected": 0,
  8538. "aria-sort": 0,
  8539. "aria-valuemax": 0,
  8540. "aria-valuemin": 0,
  8541. "aria-valuenow": 0,
  8542. "aria-valuetext": 0,
  8543. "aria-atomic": 0,
  8544. "aria-busy": 0,
  8545. "aria-live": 0,
  8546. "aria-relevant": 0,
  8547. "aria-dropeffect": 0,
  8548. "aria-grabbed": 0,
  8549. "aria-activedescendant": 0,
  8550. "aria-colcount": 0,
  8551. "aria-colindex": 0,
  8552. "aria-colspan": 0,
  8553. "aria-controls": 0,
  8554. "aria-describedby": 0,
  8555. "aria-errormessage": 0,
  8556. "aria-flowto": 0,
  8557. "aria-labelledby": 0,
  8558. "aria-owns": 0,
  8559. "aria-posinset": 0,
  8560. "aria-rowcount": 0,
  8561. "aria-rowindex": 0,
  8562. "aria-rowspan": 0,
  8563. "aria-setsize": 0,
  8564. "aria-braillelabel": 0,
  8565. "aria-brailleroledescription": 0,
  8566. "aria-colindextext": 0,
  8567. "aria-rowindextext": 0
  8568. },
  8569. warnedProperties$1 = {},
  8570. rARIA$1 = RegExp(
  8571. "^(aria)-[: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
  8572. ),
  8573. rARIACamel$1 = RegExp(
  8574. "^(aria)[A-Z][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
  8575. ),
  8576. didWarnValueNull = !1,
  8577. possibleStandardNames = {
  8578. accept: "accept",
  8579. acceptcharset: "acceptCharset",
  8580. "accept-charset": "acceptCharset",
  8581. accesskey: "accessKey",
  8582. action: "action",
  8583. allowfullscreen: "allowFullScreen",
  8584. alt: "alt",
  8585. as: "as",
  8586. async: "async",
  8587. autocapitalize: "autoCapitalize",
  8588. autocomplete: "autoComplete",
  8589. autocorrect: "autoCorrect",
  8590. autofocus: "autoFocus",
  8591. autoplay: "autoPlay",
  8592. autosave: "autoSave",
  8593. capture: "capture",
  8594. cellpadding: "cellPadding",
  8595. cellspacing: "cellSpacing",
  8596. challenge: "challenge",
  8597. charset: "charSet",
  8598. checked: "checked",
  8599. children: "children",
  8600. cite: "cite",
  8601. class: "className",
  8602. classid: "classID",
  8603. classname: "className",
  8604. cols: "cols",
  8605. colspan: "colSpan",
  8606. content: "content",
  8607. contenteditable: "contentEditable",
  8608. contextmenu: "contextMenu",
  8609. controls: "controls",
  8610. controlslist: "controlsList",
  8611. coords: "coords",
  8612. crossorigin: "crossOrigin",
  8613. dangerouslysetinnerhtml: "dangerouslySetInnerHTML",
  8614. data: "data",
  8615. datetime: "dateTime",
  8616. default: "default",
  8617. defaultchecked: "defaultChecked",
  8618. defaultvalue: "defaultValue",
  8619. defer: "defer",
  8620. dir: "dir",
  8621. disabled: "disabled",
  8622. disablepictureinpicture: "disablePictureInPicture",
  8623. disableremoteplayback: "disableRemotePlayback",
  8624. download: "download",
  8625. draggable: "draggable",
  8626. enctype: "encType",
  8627. enterkeyhint: "enterKeyHint",
  8628. fetchpriority: "fetchPriority",
  8629. for: "htmlFor",
  8630. form: "form",
  8631. formmethod: "formMethod",
  8632. formaction: "formAction",
  8633. formenctype: "formEncType",
  8634. formnovalidate: "formNoValidate",
  8635. formtarget: "formTarget",
  8636. frameborder: "frameBorder",
  8637. headers: "headers",
  8638. height: "height",
  8639. hidden: "hidden",
  8640. high: "high",
  8641. href: "href",
  8642. hreflang: "hrefLang",
  8643. htmlfor: "htmlFor",
  8644. httpequiv: "httpEquiv",
  8645. "http-equiv": "httpEquiv",
  8646. icon: "icon",
  8647. id: "id",
  8648. imagesizes: "imageSizes",
  8649. imagesrcset: "imageSrcSet",
  8650. inert: "inert",
  8651. innerhtml: "innerHTML",
  8652. inputmode: "inputMode",
  8653. integrity: "integrity",
  8654. is: "is",
  8655. itemid: "itemID",
  8656. itemprop: "itemProp",
  8657. itemref: "itemRef",
  8658. itemscope: "itemScope",
  8659. itemtype: "itemType",
  8660. keyparams: "keyParams",
  8661. keytype: "keyType",
  8662. kind: "kind",
  8663. label: "label",
  8664. lang: "lang",
  8665. list: "list",
  8666. loop: "loop",
  8667. low: "low",
  8668. manifest: "manifest",
  8669. marginwidth: "marginWidth",
  8670. marginheight: "marginHeight",
  8671. max: "max",
  8672. maxlength: "maxLength",
  8673. media: "media",
  8674. mediagroup: "mediaGroup",
  8675. method: "method",
  8676. min: "min",
  8677. minlength: "minLength",
  8678. multiple: "multiple",
  8679. muted: "muted",
  8680. name: "name",
  8681. nomodule: "noModule",
  8682. nonce: "nonce",
  8683. novalidate: "noValidate",
  8684. open: "open",
  8685. optimum: "optimum",
  8686. pattern: "pattern",
  8687. placeholder: "placeholder",
  8688. playsinline: "playsInline",
  8689. poster: "poster",
  8690. preload: "preload",
  8691. profile: "profile",
  8692. radiogroup: "radioGroup",
  8693. readonly: "readOnly",
  8694. referrerpolicy: "referrerPolicy",
  8695. rel: "rel",
  8696. required: "required",
  8697. reversed: "reversed",
  8698. role: "role",
  8699. rows: "rows",
  8700. rowspan: "rowSpan",
  8701. sandbox: "sandbox",
  8702. scope: "scope",
  8703. scoped: "scoped",
  8704. scrolling: "scrolling",
  8705. seamless: "seamless",
  8706. selected: "selected",
  8707. shape: "shape",
  8708. size: "size",
  8709. sizes: "sizes",
  8710. span: "span",
  8711. spellcheck: "spellCheck",
  8712. src: "src",
  8713. srcdoc: "srcDoc",
  8714. srclang: "srcLang",
  8715. srcset: "srcSet",
  8716. start: "start",
  8717. step: "step",
  8718. style: "style",
  8719. summary: "summary",
  8720. tabindex: "tabIndex",
  8721. target: "target",
  8722. title: "title",
  8723. type: "type",
  8724. usemap: "useMap",
  8725. value: "value",
  8726. width: "width",
  8727. wmode: "wmode",
  8728. wrap: "wrap",
  8729. about: "about",
  8730. accentheight: "accentHeight",
  8731. "accent-height": "accentHeight",
  8732. accumulate: "accumulate",
  8733. additive: "additive",
  8734. alignmentbaseline: "alignmentBaseline",
  8735. "alignment-baseline": "alignmentBaseline",
  8736. allowreorder: "allowReorder",
  8737. alphabetic: "alphabetic",
  8738. amplitude: "amplitude",
  8739. arabicform: "arabicForm",
  8740. "arabic-form": "arabicForm",
  8741. ascent: "ascent",
  8742. attributename: "attributeName",
  8743. attributetype: "attributeType",
  8744. autoreverse: "autoReverse",
  8745. azimuth: "azimuth",
  8746. basefrequency: "baseFrequency",
  8747. baselineshift: "baselineShift",
  8748. "baseline-shift": "baselineShift",
  8749. baseprofile: "baseProfile",
  8750. bbox: "bbox",
  8751. begin: "begin",
  8752. bias: "bias",
  8753. by: "by",
  8754. calcmode: "calcMode",
  8755. capheight: "capHeight",
  8756. "cap-height": "capHeight",
  8757. clip: "clip",
  8758. clippath: "clipPath",
  8759. "clip-path": "clipPath",
  8760. clippathunits: "clipPathUnits",
  8761. cliprule: "clipRule",
  8762. "clip-rule": "clipRule",
  8763. color: "color",
  8764. colorinterpolation: "colorInterpolation",
  8765. "color-interpolation": "colorInterpolation",
  8766. colorinterpolationfilters: "colorInterpolationFilters",
  8767. "color-interpolation-filters": "colorInterpolationFilters",
  8768. colorprofile: "colorProfile",
  8769. "color-profile": "colorProfile",
  8770. colorrendering: "colorRendering",
  8771. "color-rendering": "colorRendering",
  8772. contentscripttype: "contentScriptType",
  8773. contentstyletype: "contentStyleType",
  8774. cursor: "cursor",
  8775. cx: "cx",
  8776. cy: "cy",
  8777. d: "d",
  8778. datatype: "datatype",
  8779. decelerate: "decelerate",
  8780. descent: "descent",
  8781. diffuseconstant: "diffuseConstant",
  8782. direction: "direction",
  8783. display: "display",
  8784. divisor: "divisor",
  8785. dominantbaseline: "dominantBaseline",
  8786. "dominant-baseline": "dominantBaseline",
  8787. dur: "dur",
  8788. dx: "dx",
  8789. dy: "dy",
  8790. edgemode: "edgeMode",
  8791. elevation: "elevation",
  8792. enablebackground: "enableBackground",
  8793. "enable-background": "enableBackground",
  8794. end: "end",
  8795. exponent: "exponent",
  8796. externalresourcesrequired: "externalResourcesRequired",
  8797. fill: "fill",
  8798. fillopacity: "fillOpacity",
  8799. "fill-opacity": "fillOpacity",
  8800. fillrule: "fillRule",
  8801. "fill-rule": "fillRule",
  8802. filter: "filter",
  8803. filterres: "filterRes",
  8804. filterunits: "filterUnits",
  8805. floodopacity: "floodOpacity",
  8806. "flood-opacity": "floodOpacity",
  8807. floodcolor: "floodColor",
  8808. "flood-color": "floodColor",
  8809. focusable: "focusable",
  8810. fontfamily: "fontFamily",
  8811. "font-family": "fontFamily",
  8812. fontsize: "fontSize",
  8813. "font-size": "fontSize",
  8814. fontsizeadjust: "fontSizeAdjust",
  8815. "font-size-adjust": "fontSizeAdjust",
  8816. fontstretch: "fontStretch",
  8817. "font-stretch": "fontStretch",
  8818. fontstyle: "fontStyle",
  8819. "font-style": "fontStyle",
  8820. fontvariant: "fontVariant",
  8821. "font-variant": "fontVariant",
  8822. fontweight: "fontWeight",
  8823. "font-weight": "fontWeight",
  8824. format: "format",
  8825. from: "from",
  8826. fx: "fx",
  8827. fy: "fy",
  8828. g1: "g1",
  8829. g2: "g2",
  8830. glyphname: "glyphName",
  8831. "glyph-name": "glyphName",
  8832. glyphorientationhorizontal: "glyphOrientationHorizontal",
  8833. "glyph-orientation-horizontal": "glyphOrientationHorizontal",
  8834. glyphorientationvertical: "glyphOrientationVertical",
  8835. "glyph-orientation-vertical": "glyphOrientationVertical",
  8836. glyphref: "glyphRef",
  8837. gradienttransform: "gradientTransform",
  8838. gradientunits: "gradientUnits",
  8839. hanging: "hanging",
  8840. horizadvx: "horizAdvX",
  8841. "horiz-adv-x": "horizAdvX",
  8842. horizoriginx: "horizOriginX",
  8843. "horiz-origin-x": "horizOriginX",
  8844. ideographic: "ideographic",
  8845. imagerendering: "imageRendering",
  8846. "image-rendering": "imageRendering",
  8847. in2: "in2",
  8848. in: "in",
  8849. inlist: "inlist",
  8850. intercept: "intercept",
  8851. k1: "k1",
  8852. k2: "k2",
  8853. k3: "k3",
  8854. k4: "k4",
  8855. k: "k",
  8856. kernelmatrix: "kernelMatrix",
  8857. kernelunitlength: "kernelUnitLength",
  8858. kerning: "kerning",
  8859. keypoints: "keyPoints",
  8860. keysplines: "keySplines",
  8861. keytimes: "keyTimes",
  8862. lengthadjust: "lengthAdjust",
  8863. letterspacing: "letterSpacing",
  8864. "letter-spacing": "letterSpacing",
  8865. lightingcolor: "lightingColor",
  8866. "lighting-color": "lightingColor",
  8867. limitingconeangle: "limitingConeAngle",
  8868. local: "local",
  8869. markerend: "markerEnd",
  8870. "marker-end": "markerEnd",
  8871. markerheight: "markerHeight",
  8872. markermid: "markerMid",
  8873. "marker-mid": "markerMid",
  8874. markerstart: "markerStart",
  8875. "marker-start": "markerStart",
  8876. markerunits: "markerUnits",
  8877. markerwidth: "markerWidth",
  8878. mask: "mask",
  8879. maskcontentunits: "maskContentUnits",
  8880. maskunits: "maskUnits",
  8881. mathematical: "mathematical",
  8882. mode: "mode",
  8883. numoctaves: "numOctaves",
  8884. offset: "offset",
  8885. opacity: "opacity",
  8886. operator: "operator",
  8887. order: "order",
  8888. orient: "orient",
  8889. orientation: "orientation",
  8890. origin: "origin",
  8891. overflow: "overflow",
  8892. overlineposition: "overlinePosition",
  8893. "overline-position": "overlinePosition",
  8894. overlinethickness: "overlineThickness",
  8895. "overline-thickness": "overlineThickness",
  8896. paintorder: "paintOrder",
  8897. "paint-order": "paintOrder",
  8898. panose1: "panose1",
  8899. "panose-1": "panose1",
  8900. pathlength: "pathLength",
  8901. patterncontentunits: "patternContentUnits",
  8902. patterntransform: "patternTransform",
  8903. patternunits: "patternUnits",
  8904. pointerevents: "pointerEvents",
  8905. "pointer-events": "pointerEvents",
  8906. points: "points",
  8907. pointsatx: "pointsAtX",
  8908. pointsaty: "pointsAtY",
  8909. pointsatz: "pointsAtZ",
  8910. popover: "popover",
  8911. popovertarget: "popoverTarget",
  8912. popovertargetaction: "popoverTargetAction",
  8913. prefix: "prefix",
  8914. preservealpha: "preserveAlpha",
  8915. preserveaspectratio: "preserveAspectRatio",
  8916. primitiveunits: "primitiveUnits",
  8917. property: "property",
  8918. r: "r",
  8919. radius: "radius",
  8920. refx: "refX",
  8921. refy: "refY",
  8922. renderingintent: "renderingIntent",
  8923. "rendering-intent": "renderingIntent",
  8924. repeatcount: "repeatCount",
  8925. repeatdur: "repeatDur",
  8926. requiredextensions: "requiredExtensions",
  8927. requiredfeatures: "requiredFeatures",
  8928. resource: "resource",
  8929. restart: "restart",
  8930. result: "result",
  8931. results: "results",
  8932. rotate: "rotate",
  8933. rx: "rx",
  8934. ry: "ry",
  8935. scale: "scale",
  8936. security: "security",
  8937. seed: "seed",
  8938. shaperendering: "shapeRendering",
  8939. "shape-rendering": "shapeRendering",
  8940. slope: "slope",
  8941. spacing: "spacing",
  8942. specularconstant: "specularConstant",
  8943. specularexponent: "specularExponent",
  8944. speed: "speed",
  8945. spreadmethod: "spreadMethod",
  8946. startoffset: "startOffset",
  8947. stddeviation: "stdDeviation",
  8948. stemh: "stemh",
  8949. stemv: "stemv",
  8950. stitchtiles: "stitchTiles",
  8951. stopcolor: "stopColor",
  8952. "stop-color": "stopColor",
  8953. stopopacity: "stopOpacity",
  8954. "stop-opacity": "stopOpacity",
  8955. strikethroughposition: "strikethroughPosition",
  8956. "strikethrough-position": "strikethroughPosition",
  8957. strikethroughthickness: "strikethroughThickness",
  8958. "strikethrough-thickness": "strikethroughThickness",
  8959. string: "string",
  8960. stroke: "stroke",
  8961. strokedasharray: "strokeDasharray",
  8962. "stroke-dasharray": "strokeDasharray",
  8963. strokedashoffset: "strokeDashoffset",
  8964. "stroke-dashoffset": "strokeDashoffset",
  8965. strokelinecap: "strokeLinecap",
  8966. "stroke-linecap": "strokeLinecap",
  8967. strokelinejoin: "strokeLinejoin",
  8968. "stroke-linejoin": "strokeLinejoin",
  8969. strokemiterlimit: "strokeMiterlimit",
  8970. "stroke-miterlimit": "strokeMiterlimit",
  8971. strokewidth: "strokeWidth",
  8972. "stroke-width": "strokeWidth",
  8973. strokeopacity: "strokeOpacity",
  8974. "stroke-opacity": "strokeOpacity",
  8975. suppresscontenteditablewarning: "suppressContentEditableWarning",
  8976. suppresshydrationwarning: "suppressHydrationWarning",
  8977. surfacescale: "surfaceScale",
  8978. systemlanguage: "systemLanguage",
  8979. tablevalues: "tableValues",
  8980. targetx: "targetX",
  8981. targety: "targetY",
  8982. textanchor: "textAnchor",
  8983. "text-anchor": "textAnchor",
  8984. textdecoration: "textDecoration",
  8985. "text-decoration": "textDecoration",
  8986. textlength: "textLength",
  8987. textrendering: "textRendering",
  8988. "text-rendering": "textRendering",
  8989. to: "to",
  8990. transform: "transform",
  8991. transformorigin: "transformOrigin",
  8992. "transform-origin": "transformOrigin",
  8993. typeof: "typeof",
  8994. u1: "u1",
  8995. u2: "u2",
  8996. underlineposition: "underlinePosition",
  8997. "underline-position": "underlinePosition",
  8998. underlinethickness: "underlineThickness",
  8999. "underline-thickness": "underlineThickness",
  9000. unicode: "unicode",
  9001. unicodebidi: "unicodeBidi",
  9002. "unicode-bidi": "unicodeBidi",
  9003. unicoderange: "unicodeRange",
  9004. "unicode-range": "unicodeRange",
  9005. unitsperem: "unitsPerEm",
  9006. "units-per-em": "unitsPerEm",
  9007. unselectable: "unselectable",
  9008. valphabetic: "vAlphabetic",
  9009. "v-alphabetic": "vAlphabetic",
  9010. values: "values",
  9011. vectoreffect: "vectorEffect",
  9012. "vector-effect": "vectorEffect",
  9013. version: "version",
  9014. vertadvy: "vertAdvY",
  9015. "vert-adv-y": "vertAdvY",
  9016. vertoriginx: "vertOriginX",
  9017. "vert-origin-x": "vertOriginX",
  9018. vertoriginy: "vertOriginY",
  9019. "vert-origin-y": "vertOriginY",
  9020. vhanging: "vHanging",
  9021. "v-hanging": "vHanging",
  9022. videographic: "vIdeographic",
  9023. "v-ideographic": "vIdeographic",
  9024. viewbox: "viewBox",
  9025. viewtarget: "viewTarget",
  9026. visibility: "visibility",
  9027. vmathematical: "vMathematical",
  9028. "v-mathematical": "vMathematical",
  9029. vocab: "vocab",
  9030. widths: "widths",
  9031. wordspacing: "wordSpacing",
  9032. "word-spacing": "wordSpacing",
  9033. writingmode: "writingMode",
  9034. "writing-mode": "writingMode",
  9035. x1: "x1",
  9036. x2: "x2",
  9037. x: "x",
  9038. xchannelselector: "xChannelSelector",
  9039. xheight: "xHeight",
  9040. "x-height": "xHeight",
  9041. xlinkactuate: "xlinkActuate",
  9042. "xlink:actuate": "xlinkActuate",
  9043. xlinkarcrole: "xlinkArcrole",
  9044. "xlink:arcrole": "xlinkArcrole",
  9045. xlinkhref: "xlinkHref",
  9046. "xlink:href": "xlinkHref",
  9047. xlinkrole: "xlinkRole",
  9048. "xlink:role": "xlinkRole",
  9049. xlinkshow: "xlinkShow",
  9050. "xlink:show": "xlinkShow",
  9051. xlinktitle: "xlinkTitle",
  9052. "xlink:title": "xlinkTitle",
  9053. xlinktype: "xlinkType",
  9054. "xlink:type": "xlinkType",
  9055. xmlbase: "xmlBase",
  9056. "xml:base": "xmlBase",
  9057. xmllang: "xmlLang",
  9058. "xml:lang": "xmlLang",
  9059. xmlns: "xmlns",
  9060. "xml:space": "xmlSpace",
  9061. xmlnsxlink: "xmlnsXlink",
  9062. "xmlns:xlink": "xmlnsXlink",
  9063. xmlspace: "xmlSpace",
  9064. y1: "y1",
  9065. y2: "y2",
  9066. y: "y",
  9067. ychannelselector: "yChannelSelector",
  9068. z: "z",
  9069. zoomandpan: "zoomAndPan"
  9070. },
  9071. warnedProperties = {},
  9072. EVENT_NAME_REGEX = /^on./,
  9073. INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/,
  9074. rARIA = RegExp(
  9075. "^(aria)-[: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
  9076. ),
  9077. rARIACamel = RegExp(
  9078. "^(aria)[A-Z][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
  9079. ),
  9080. badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/,
  9081. msPattern$1 = /^-ms-/,
  9082. hyphenPattern = /-(.)/g,
  9083. badStyleValueWithSemicolonPattern = /;\s*$/,
  9084. warnedStyleNames = {},
  9085. warnedStyleValues = {},
  9086. warnedForNaNValue = !1,
  9087. warnedForInfinityValue = !1,
  9088. matchHtmlRegExp = /["'&<>]/,
  9089. uppercasePattern = /([A-Z])/g,
  9090. msPattern = /^ms-/,
  9091. isJavaScriptProtocol =
  9092. /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,
  9093. ReactSharedInternals =
  9094. React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  9095. ReactDOMSharedInternals =
  9096. ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  9097. NotPending = Object.freeze({
  9098. pending: !1,
  9099. data: null,
  9100. method: null,
  9101. action: null
  9102. }),
  9103. previousDispatcher = ReactDOMSharedInternals.d;
  9104. ReactDOMSharedInternals.d = {
  9105. f: previousDispatcher.f,
  9106. r: previousDispatcher.r,
  9107. D: function (href) {
  9108. var request = currentRequest ? currentRequest : null;
  9109. if (request) {
  9110. var resumableState = request.resumableState,
  9111. renderState = request.renderState;
  9112. if ("string" === typeof href && href) {
  9113. if (!resumableState.dnsResources.hasOwnProperty(href)) {
  9114. resumableState.dnsResources[href] = EXISTS;
  9115. resumableState = renderState.headers;
  9116. var header, JSCompiler_temp;
  9117. if (
  9118. (JSCompiler_temp =
  9119. resumableState && 0 < resumableState.remainingCapacity)
  9120. )
  9121. JSCompiler_temp =
  9122. ((header =
  9123. "<" +
  9124. escapeHrefForLinkHeaderURLContext(href) +
  9125. ">; rel=dns-prefetch"),
  9126. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  9127. JSCompiler_temp
  9128. ? ((renderState.resets.dns[href] = EXISTS),
  9129. resumableState.preconnects &&
  9130. (resumableState.preconnects += ", "),
  9131. (resumableState.preconnects += header))
  9132. : ((header = []),
  9133. pushLinkImpl(header, { href: href, rel: "dns-prefetch" }),
  9134. renderState.preconnects.add(header));
  9135. }
  9136. enqueueFlush(request);
  9137. }
  9138. } else previousDispatcher.D(href);
  9139. },
  9140. C: function (href, crossOrigin) {
  9141. var request = currentRequest ? currentRequest : null;
  9142. if (request) {
  9143. var resumableState = request.resumableState,
  9144. renderState = request.renderState;
  9145. if ("string" === typeof href && href) {
  9146. var bucket =
  9147. "use-credentials" === crossOrigin
  9148. ? "credentials"
  9149. : "string" === typeof crossOrigin
  9150. ? "anonymous"
  9151. : "default";
  9152. if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
  9153. resumableState.connectResources[bucket][href] = EXISTS;
  9154. resumableState = renderState.headers;
  9155. var header, JSCompiler_temp;
  9156. if (
  9157. (JSCompiler_temp =
  9158. resumableState && 0 < resumableState.remainingCapacity)
  9159. ) {
  9160. JSCompiler_temp =
  9161. "<" +
  9162. escapeHrefForLinkHeaderURLContext(href) +
  9163. ">; rel=preconnect";
  9164. if ("string" === typeof crossOrigin) {
  9165. var escapedCrossOrigin =
  9166. escapeStringForLinkHeaderQuotedParamValueContext(
  9167. crossOrigin,
  9168. "crossOrigin"
  9169. );
  9170. JSCompiler_temp +=
  9171. '; crossorigin="' + escapedCrossOrigin + '"';
  9172. }
  9173. JSCompiler_temp =
  9174. ((header = JSCompiler_temp),
  9175. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  9176. }
  9177. JSCompiler_temp
  9178. ? ((renderState.resets.connect[bucket][href] = EXISTS),
  9179. resumableState.preconnects &&
  9180. (resumableState.preconnects += ", "),
  9181. (resumableState.preconnects += header))
  9182. : ((bucket = []),
  9183. pushLinkImpl(bucket, {
  9184. rel: "preconnect",
  9185. href: href,
  9186. crossOrigin: crossOrigin
  9187. }),
  9188. renderState.preconnects.add(bucket));
  9189. }
  9190. enqueueFlush(request);
  9191. }
  9192. } else previousDispatcher.C(href, crossOrigin);
  9193. },
  9194. L: function (href, as, options) {
  9195. var request = currentRequest ? currentRequest : null;
  9196. if (request) {
  9197. var resumableState = request.resumableState,
  9198. renderState = request.renderState;
  9199. if (as && href) {
  9200. switch (as) {
  9201. case "image":
  9202. if (options) {
  9203. var imageSrcSet = options.imageSrcSet;
  9204. var imageSizes = options.imageSizes;
  9205. var fetchPriority = options.fetchPriority;
  9206. }
  9207. var key = imageSrcSet
  9208. ? imageSrcSet + "\n" + (imageSizes || "")
  9209. : href;
  9210. if (resumableState.imageResources.hasOwnProperty(key)) return;
  9211. resumableState.imageResources[key] = PRELOAD_NO_CREDS;
  9212. resumableState = renderState.headers;
  9213. var header;
  9214. resumableState &&
  9215. 0 < resumableState.remainingCapacity &&
  9216. "string" !== typeof imageSrcSet &&
  9217. "high" === fetchPriority &&
  9218. ((header = getPreloadAsHeader(href, as, options)),
  9219. 0 <= (resumableState.remainingCapacity -= header.length + 2))
  9220. ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
  9221. resumableState.highImagePreloads &&
  9222. (resumableState.highImagePreloads += ", "),
  9223. (resumableState.highImagePreloads += header))
  9224. : ((resumableState = []),
  9225. pushLinkImpl(
  9226. resumableState,
  9227. assign(
  9228. {
  9229. rel: "preload",
  9230. href: imageSrcSet ? void 0 : href,
  9231. as: as
  9232. },
  9233. options
  9234. )
  9235. ),
  9236. "high" === fetchPriority
  9237. ? renderState.highImagePreloads.add(resumableState)
  9238. : (renderState.bulkPreloads.add(resumableState),
  9239. renderState.preloads.images.set(key, resumableState)));
  9240. break;
  9241. case "style":
  9242. if (resumableState.styleResources.hasOwnProperty(href)) return;
  9243. imageSrcSet = [];
  9244. pushLinkImpl(
  9245. imageSrcSet,
  9246. assign({ rel: "preload", href: href, as: as }, options)
  9247. );
  9248. resumableState.styleResources[href] =
  9249. !options ||
  9250. ("string" !== typeof options.crossOrigin &&
  9251. "string" !== typeof options.integrity)
  9252. ? PRELOAD_NO_CREDS
  9253. : [options.crossOrigin, options.integrity];
  9254. renderState.preloads.stylesheets.set(href, imageSrcSet);
  9255. renderState.bulkPreloads.add(imageSrcSet);
  9256. break;
  9257. case "script":
  9258. if (resumableState.scriptResources.hasOwnProperty(href)) return;
  9259. imageSrcSet = [];
  9260. renderState.preloads.scripts.set(href, imageSrcSet);
  9261. renderState.bulkPreloads.add(imageSrcSet);
  9262. pushLinkImpl(
  9263. imageSrcSet,
  9264. assign({ rel: "preload", href: href, as: as }, options)
  9265. );
  9266. resumableState.scriptResources[href] =
  9267. !options ||
  9268. ("string" !== typeof options.crossOrigin &&
  9269. "string" !== typeof options.integrity)
  9270. ? PRELOAD_NO_CREDS
  9271. : [options.crossOrigin, options.integrity];
  9272. break;
  9273. default:
  9274. if (resumableState.unknownResources.hasOwnProperty(as)) {
  9275. if (
  9276. ((imageSrcSet = resumableState.unknownResources[as]),
  9277. imageSrcSet.hasOwnProperty(href))
  9278. )
  9279. return;
  9280. } else
  9281. (imageSrcSet = {}),
  9282. (resumableState.unknownResources[as] = imageSrcSet);
  9283. imageSrcSet[href] = PRELOAD_NO_CREDS;
  9284. if (
  9285. (resumableState = renderState.headers) &&
  9286. 0 < resumableState.remainingCapacity &&
  9287. "font" === as &&
  9288. ((key = getPreloadAsHeader(href, as, options)),
  9289. 0 <= (resumableState.remainingCapacity -= key.length + 2))
  9290. )
  9291. (renderState.resets.font[href] = PRELOAD_NO_CREDS),
  9292. resumableState.fontPreloads &&
  9293. (resumableState.fontPreloads += ", "),
  9294. (resumableState.fontPreloads += key);
  9295. else
  9296. switch (
  9297. ((resumableState = []),
  9298. (href = assign(
  9299. { rel: "preload", href: href, as: as },
  9300. options
  9301. )),
  9302. pushLinkImpl(resumableState, href),
  9303. as)
  9304. ) {
  9305. case "font":
  9306. renderState.fontPreloads.add(resumableState);
  9307. break;
  9308. default:
  9309. renderState.bulkPreloads.add(resumableState);
  9310. }
  9311. }
  9312. enqueueFlush(request);
  9313. }
  9314. } else previousDispatcher.L(href, as, options);
  9315. },
  9316. m: function (href, options) {
  9317. var request = currentRequest ? currentRequest : null;
  9318. if (request) {
  9319. var resumableState = request.resumableState,
  9320. renderState = request.renderState;
  9321. if (href) {
  9322. var as =
  9323. options && "string" === typeof options.as ? options.as : "script";
  9324. switch (as) {
  9325. case "script":
  9326. if (resumableState.moduleScriptResources.hasOwnProperty(href))
  9327. return;
  9328. as = [];
  9329. resumableState.moduleScriptResources[href] =
  9330. !options ||
  9331. ("string" !== typeof options.crossOrigin &&
  9332. "string" !== typeof options.integrity)
  9333. ? PRELOAD_NO_CREDS
  9334. : [options.crossOrigin, options.integrity];
  9335. renderState.preloads.moduleScripts.set(href, as);
  9336. break;
  9337. default:
  9338. if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
  9339. var resources = resumableState.unknownResources[as];
  9340. if (resources.hasOwnProperty(href)) return;
  9341. } else
  9342. (resources = {}),
  9343. (resumableState.moduleUnknownResources[as] = resources);
  9344. as = [];
  9345. resources[href] = PRELOAD_NO_CREDS;
  9346. }
  9347. pushLinkImpl(
  9348. as,
  9349. assign({ rel: "modulepreload", href: href }, options)
  9350. );
  9351. renderState.bulkPreloads.add(as);
  9352. enqueueFlush(request);
  9353. }
  9354. } else previousDispatcher.m(href, options);
  9355. },
  9356. X: function (src, options) {
  9357. var request = currentRequest ? currentRequest : null;
  9358. if (request) {
  9359. var resumableState = request.resumableState,
  9360. renderState = request.renderState;
  9361. if (src) {
  9362. var resourceState = resumableState.scriptResources.hasOwnProperty(
  9363. src
  9364. )
  9365. ? resumableState.scriptResources[src]
  9366. : void 0;
  9367. resourceState !== EXISTS &&
  9368. ((resumableState.scriptResources[src] = EXISTS),
  9369. (options = assign({ src: src, async: !0 }, options)),
  9370. resourceState &&
  9371. (2 === resourceState.length &&
  9372. adoptPreloadCredentials(options, resourceState),
  9373. (src = renderState.preloads.scripts.get(src))) &&
  9374. (src.length = 0),
  9375. (src = []),
  9376. renderState.scripts.add(src),
  9377. pushScriptImpl(src, options),
  9378. enqueueFlush(request));
  9379. }
  9380. } else previousDispatcher.X(src, options);
  9381. },
  9382. S: function (href, precedence, options) {
  9383. var request = currentRequest ? currentRequest : null;
  9384. if (request) {
  9385. var resumableState = request.resumableState,
  9386. renderState = request.renderState;
  9387. if (href) {
  9388. precedence = precedence || "default";
  9389. var styleQueue = renderState.styles.get(precedence),
  9390. resourceState = resumableState.styleResources.hasOwnProperty(href)
  9391. ? resumableState.styleResources[href]
  9392. : void 0;
  9393. resourceState !== EXISTS &&
  9394. ((resumableState.styleResources[href] = EXISTS),
  9395. styleQueue ||
  9396. ((styleQueue = {
  9397. precedence: escapeTextForBrowser(precedence),
  9398. rules: [],
  9399. hrefs: [],
  9400. sheets: new Map()
  9401. }),
  9402. renderState.styles.set(precedence, styleQueue)),
  9403. (precedence = {
  9404. state: PENDING$1,
  9405. props: assign(
  9406. {
  9407. rel: "stylesheet",
  9408. href: href,
  9409. "data-precedence": precedence
  9410. },
  9411. options
  9412. )
  9413. }),
  9414. resourceState &&
  9415. (2 === resourceState.length &&
  9416. adoptPreloadCredentials(precedence.props, resourceState),
  9417. (renderState = renderState.preloads.stylesheets.get(href)) &&
  9418. 0 < renderState.length
  9419. ? (renderState.length = 0)
  9420. : (precedence.state = PRELOADED)),
  9421. styleQueue.sheets.set(href, precedence),
  9422. enqueueFlush(request));
  9423. }
  9424. } else previousDispatcher.S(href, precedence, options);
  9425. },
  9426. M: function (src, options) {
  9427. var request = currentRequest ? currentRequest : null;
  9428. if (request) {
  9429. var resumableState = request.resumableState,
  9430. renderState = request.renderState;
  9431. if (src) {
  9432. var resourceState =
  9433. resumableState.moduleScriptResources.hasOwnProperty(src)
  9434. ? resumableState.moduleScriptResources[src]
  9435. : void 0;
  9436. resourceState !== EXISTS &&
  9437. ((resumableState.moduleScriptResources[src] = EXISTS),
  9438. (options = assign(
  9439. { src: src, type: "module", async: !0 },
  9440. options
  9441. )),
  9442. resourceState &&
  9443. (2 === resourceState.length &&
  9444. adoptPreloadCredentials(options, resourceState),
  9445. (src = renderState.preloads.moduleScripts.get(src))) &&
  9446. (src.length = 0),
  9447. (src = []),
  9448. renderState.scripts.add(src),
  9449. pushScriptImpl(src, options),
  9450. enqueueFlush(request));
  9451. }
  9452. } else previousDispatcher.M(src, options);
  9453. }
  9454. };
  9455. var NothingSent = 0,
  9456. SentCompleteSegmentFunction = 1,
  9457. SentCompleteBoundaryFunction = 2,
  9458. SentClientRenderFunction = 4,
  9459. SentStyleInsertionFunction = 8,
  9460. SentCompletedShellId = 32,
  9461. SentMarkShellTime = 64,
  9462. EXISTS = null,
  9463. PRELOAD_NO_CREDS = [];
  9464. Object.freeze(PRELOAD_NO_CREDS);
  9465. var currentlyFlushingRenderState = null,
  9466. endInlineScript = "\x3c/script>",
  9467. scriptRegex = /(<\/|<)(s)(cript)/gi;
  9468. var didWarnForNewBooleanPropsWithEmptyValue = {};
  9469. var ROOT_HTML_MODE = 0,
  9470. HTML_HTML_MODE = 1,
  9471. HTML_MODE = 2,
  9472. HTML_HEAD_MODE = 3,
  9473. SVG_MODE = 4,
  9474. MATHML_MODE = 5,
  9475. HTML_TABLE_MODE = 6,
  9476. HTML_TABLE_BODY_MODE = 7,
  9477. HTML_TABLE_ROW_MODE = 8,
  9478. HTML_COLGROUP_MODE = 9,
  9479. styleNameCache = new Map(),
  9480. styleAttributeStart = ' style="',
  9481. styleAssign = ":",
  9482. styleSeparator = ";",
  9483. attributeSeparator = " ",
  9484. attributeAssign = '="',
  9485. attributeEnd = '"',
  9486. attributeEmptyString = '=""',
  9487. actionJavaScriptURL = escapeTextForBrowser(
  9488. "javascript:throw new Error('React form unexpectedly submitted.')"
  9489. ),
  9490. endOfStartTag = ">",
  9491. endOfStartTagSelfClosing = "/>",
  9492. didWarnDefaultInputValue = !1,
  9493. didWarnDefaultChecked = !1,
  9494. didWarnDefaultSelectValue = !1,
  9495. didWarnDefaultTextareaValue = !1,
  9496. didWarnInvalidOptionChildren = !1,
  9497. didWarnInvalidOptionInnerHTML = !1,
  9498. didWarnSelectedSetOnOption = !1,
  9499. didWarnFormActionType = !1,
  9500. didWarnFormActionName = !1,
  9501. didWarnFormActionTarget = !1,
  9502. didWarnFormActionMethod = !1,
  9503. formReplayingRuntimeScript =
  9504. 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
  9505. styleRegex = /(<\/|<)(s)(tyle)/gi,
  9506. leadingNewline = "\n",
  9507. VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
  9508. validatedTagCache = new Map(),
  9509. endTagCache = new Map(),
  9510. shellTimeRuntimeScript =
  9511. "requestAnimationFrame(function(){$RT=performance.now()});",
  9512. placeholder1 = '<template id="',
  9513. placeholder2 = '"></template>',
  9514. startCompletedSuspenseBoundary = "\x3c!--$--\x3e",
  9515. startPendingSuspenseBoundary1 = '\x3c!--$?--\x3e<template id="',
  9516. startPendingSuspenseBoundary2 = '"></template>',
  9517. startClientRenderedSuspenseBoundary = "\x3c!--$!--\x3e",
  9518. endSuspenseBoundary = "\x3c!--/$--\x3e",
  9519. clientRenderedSuspenseBoundaryError1 = "<template",
  9520. clientRenderedSuspenseBoundaryErrorAttrInterstitial = '"',
  9521. clientRenderedSuspenseBoundaryError1A = ' data-dgst="',
  9522. clientRenderedSuspenseBoundaryError1B = ' data-msg="',
  9523. clientRenderedSuspenseBoundaryError1C = ' data-stck="',
  9524. clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
  9525. clientRenderedSuspenseBoundaryError2 = "></template>",
  9526. startSegmentHTML = '<div hidden id="',
  9527. startSegmentHTML2 = '">',
  9528. endSegmentHTML = "</div>",
  9529. startSegmentSVG = '<svg aria-hidden="true" style="display:none" id="',
  9530. startSegmentSVG2 = '">',
  9531. endSegmentSVG = "</svg>",
  9532. startSegmentMathML = '<math aria-hidden="true" style="display:none" id="',
  9533. startSegmentMathML2 = '">',
  9534. endSegmentMathML = "</math>",
  9535. startSegmentTable = '<table hidden id="',
  9536. startSegmentTable2 = '">',
  9537. endSegmentTable = "</table>",
  9538. startSegmentTableBody = '<table hidden><tbody id="',
  9539. startSegmentTableBody2 = '">',
  9540. endSegmentTableBody = "</tbody></table>",
  9541. startSegmentTableRow = '<table hidden><tr id="',
  9542. startSegmentTableRow2 = '">',
  9543. endSegmentTableRow = "</tr></table>",
  9544. startSegmentColGroup = '<table hidden><colgroup id="',
  9545. startSegmentColGroup2 = '">',
  9546. endSegmentColGroup = "</colgroup></table>",
  9547. completeSegmentScript1Full =
  9548. '$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("',
  9549. completeSegmentScript1Partial = '$RS("',
  9550. completeSegmentScript2 = '","',
  9551. completeSegmentScriptEnd = '")\x3c/script>',
  9552. completeBoundaryScriptFunctionOnly =
  9553. '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};',
  9554. completeBoundaryScript1Partial = '$RC("',
  9555. completeBoundaryWithStylesScript1FullPartial =
  9556. '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("',
  9557. completeBoundaryWithStylesScript1Partial = '$RR("',
  9558. completeBoundaryScript2 = '","',
  9559. completeBoundaryScript3a = '",',
  9560. completeBoundaryScript3b = '"',
  9561. completeBoundaryScriptEnd = ")\x3c/script>",
  9562. clientRenderScriptFunctionOnly =
  9563. '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};',
  9564. clientRenderScript1Full =
  9565. '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("',
  9566. clientRenderScript1Partial = '$RX("',
  9567. clientRenderScript1A = '"',
  9568. clientRenderErrorScriptArgInterstitial = ",",
  9569. clientRenderScriptEnd = ")\x3c/script>",
  9570. regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g,
  9571. regexForJSStringsInScripts = /[&><\u2028\u2029]/g,
  9572. lateStyleTagResourceOpen1 = ' media="not all" data-precedence="',
  9573. lateStyleTagResourceOpen2 = '" data-href="',
  9574. lateStyleTagResourceOpen3 = '">',
  9575. lateStyleTagTemplateClose = "</style>",
  9576. currentlyRenderingBoundaryHasStylesToHoist = !1,
  9577. destinationHasCapacity = !0,
  9578. stylesheetFlushingQueue = [],
  9579. styleTagResourceOpen1 = ' data-precedence="',
  9580. styleTagResourceOpen2 = '" data-href="',
  9581. spaceSeparator = " ",
  9582. styleTagResourceOpen3 = '">',
  9583. styleTagResourceClose = "</style>",
  9584. completedShellIdAttributeStart = ' id="',
  9585. arrayFirstOpenBracket = "[",
  9586. arraySubsequentOpenBracket = ",[",
  9587. arrayInterstitial = ",",
  9588. arrayCloseBracket = "]",
  9589. PENDING$1 = 0,
  9590. PRELOADED = 1,
  9591. PREAMBLE = 2,
  9592. LATE = 3,
  9593. regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g,
  9594. regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g,
  9595. doctypeChunk = "",
  9596. bind = Function.prototype.bind,
  9597. REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
  9598. emptyContextObject = {};
  9599. Object.freeze(emptyContextObject);
  9600. var rendererSigil = {};
  9601. var currentActiveSnapshot = null,
  9602. didWarnAboutNoopUpdateForComponent = {},
  9603. didWarnAboutDeprecatedWillMount = {};
  9604. var didWarnAboutUninitializedState = new Set();
  9605. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  9606. var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  9607. var didWarnAboutDirectlyAssigningPropsToState = new Set();
  9608. var didWarnAboutUndefinedDerivedState = new Set();
  9609. var didWarnAboutContextTypes$1 = new Set();
  9610. var didWarnAboutChildContextTypes = new Set();
  9611. var didWarnAboutInvalidateContextType = new Set();
  9612. var didWarnOnInvalidCallback = new Set();
  9613. var classComponentUpdater = {
  9614. enqueueSetState: function (inst, payload, callback) {
  9615. var internals = inst._reactInternals;
  9616. null === internals.queue
  9617. ? warnNoop(inst, "setState")
  9618. : (internals.queue.push(payload),
  9619. void 0 !== callback &&
  9620. null !== callback &&
  9621. warnOnInvalidCallback(callback));
  9622. },
  9623. enqueueReplaceState: function (inst, payload, callback) {
  9624. inst = inst._reactInternals;
  9625. inst.replace = !0;
  9626. inst.queue = [payload];
  9627. void 0 !== callback &&
  9628. null !== callback &&
  9629. warnOnInvalidCallback(callback);
  9630. },
  9631. enqueueForceUpdate: function (inst, callback) {
  9632. null === inst._reactInternals.queue
  9633. ? warnNoop(inst, "forceUpdate")
  9634. : void 0 !== callback &&
  9635. null !== callback &&
  9636. warnOnInvalidCallback(callback);
  9637. }
  9638. },
  9639. emptyTreeContext = { id: 1, overflow: "" },
  9640. clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
  9641. log = Math.log,
  9642. LN2 = Math.LN2,
  9643. SuspenseException = Error(
  9644. "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
  9645. ),
  9646. suspendedThenable = null,
  9647. objectIs = "function" === typeof Object.is ? Object.is : is,
  9648. currentlyRenderingComponent = null,
  9649. currentlyRenderingTask = null,
  9650. currentlyRenderingRequest = null,
  9651. currentlyRenderingKeyPath = null,
  9652. firstWorkInProgressHook = null,
  9653. workInProgressHook = null,
  9654. isReRender = !1,
  9655. didScheduleRenderPhaseUpdate = !1,
  9656. localIdCounter = 0,
  9657. actionStateCounter = 0,
  9658. actionStateMatchingIndex = -1,
  9659. thenableIndexCounter = 0,
  9660. thenableState = null,
  9661. renderPhaseUpdates = null,
  9662. numberOfReRenders = 0,
  9663. isInHookUserCodeInDev = !1,
  9664. currentHookNameInDev,
  9665. HooksDispatcher = {
  9666. readContext: readContext,
  9667. use: function (usable) {
  9668. if (null !== usable && "object" === typeof usable) {
  9669. if ("function" === typeof usable.then)
  9670. return unwrapThenable(usable);
  9671. if (usable.$$typeof === REACT_CONTEXT_TYPE)
  9672. return readContext(usable);
  9673. }
  9674. throw Error(
  9675. "An unsupported type was passed to use(): " + String(usable)
  9676. );
  9677. },
  9678. useContext: function (context) {
  9679. currentHookNameInDev = "useContext";
  9680. resolveCurrentlyRenderingComponent();
  9681. return context._currentValue2;
  9682. },
  9683. useMemo: useMemo,
  9684. useReducer: useReducer,
  9685. useRef: function (initialValue) {
  9686. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  9687. workInProgressHook = createWorkInProgressHook();
  9688. var previousRef = workInProgressHook.memoizedState;
  9689. return null === previousRef
  9690. ? ((initialValue = { current: initialValue }),
  9691. Object.seal(initialValue),
  9692. (workInProgressHook.memoizedState = initialValue))
  9693. : previousRef;
  9694. },
  9695. useState: function (initialState) {
  9696. currentHookNameInDev = "useState";
  9697. return useReducer(basicStateReducer, initialState);
  9698. },
  9699. useInsertionEffect: noop,
  9700. useLayoutEffect: noop,
  9701. useCallback: function (callback, deps) {
  9702. return useMemo(function () {
  9703. return callback;
  9704. }, deps);
  9705. },
  9706. useImperativeHandle: noop,
  9707. useEffect: noop,
  9708. useDebugValue: noop,
  9709. useDeferredValue: function (value, initialValue) {
  9710. resolveCurrentlyRenderingComponent();
  9711. return void 0 !== initialValue ? initialValue : value;
  9712. },
  9713. useTransition: function () {
  9714. resolveCurrentlyRenderingComponent();
  9715. return [!1, unsupportedStartTransition];
  9716. },
  9717. useId: function () {
  9718. var treeId = currentlyRenderingTask.treeContext;
  9719. var overflow = treeId.overflow;
  9720. treeId = treeId.id;
  9721. treeId =
  9722. (treeId & ~(1 << (32 - clz32(treeId) - 1))).toString(32) + overflow;
  9723. var resumableState = currentResumableState;
  9724. if (null === resumableState)
  9725. throw Error(
  9726. "Invalid hook call. Hooks can only be called inside of the body of a function component."
  9727. );
  9728. overflow = localIdCounter++;
  9729. treeId = "_" + resumableState.idPrefix + "R_" + treeId;
  9730. 0 < overflow && (treeId += "H" + overflow.toString(32));
  9731. return treeId + "_";
  9732. },
  9733. useSyncExternalStore: function (
  9734. subscribe,
  9735. getSnapshot,
  9736. getServerSnapshot
  9737. ) {
  9738. if (void 0 === getServerSnapshot)
  9739. throw Error(
  9740. "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
  9741. );
  9742. return getServerSnapshot();
  9743. },
  9744. useOptimistic: function (passthrough) {
  9745. resolveCurrentlyRenderingComponent();
  9746. return [passthrough, unsupportedSetOptimisticState];
  9747. },
  9748. useActionState: useActionState,
  9749. useFormState: useActionState,
  9750. useHostTransitionStatus: function () {
  9751. resolveCurrentlyRenderingComponent();
  9752. return NotPending;
  9753. },
  9754. useMemoCache: function (size) {
  9755. for (var data = Array(size), i = 0; i < size; i++)
  9756. data[i] = REACT_MEMO_CACHE_SENTINEL;
  9757. return data;
  9758. },
  9759. useCacheRefresh: function () {
  9760. return unsupportedRefresh;
  9761. },
  9762. useEffectEvent: function () {
  9763. return throwOnUseEffectEventCall;
  9764. }
  9765. },
  9766. currentResumableState = null,
  9767. currentTaskInDEV = null,
  9768. DefaultAsyncDispatcher = {
  9769. getCacheForType: function () {
  9770. throw Error("Not implemented.");
  9771. },
  9772. cacheSignal: function () {
  9773. throw Error("Not implemented.");
  9774. },
  9775. getOwner: function () {
  9776. return null === currentTaskInDEV
  9777. ? null
  9778. : currentTaskInDEV.componentStack;
  9779. }
  9780. },
  9781. disabledDepth = 0,
  9782. prevLog,
  9783. prevInfo,
  9784. prevWarn,
  9785. prevError,
  9786. prevGroup,
  9787. prevGroupCollapsed,
  9788. prevGroupEnd;
  9789. disabledLog.__reactDisabledLog = !0;
  9790. var prefix,
  9791. suffix,
  9792. reentry = !1;
  9793. var componentFrameCache = new (
  9794. "function" === typeof WeakMap ? WeakMap : Map
  9795. )();
  9796. var callComponent = {
  9797. react_stack_bottom_frame: function (Component, props, secondArg) {
  9798. return Component(props, secondArg);
  9799. }
  9800. },
  9801. callComponentInDEV =
  9802. callComponent.react_stack_bottom_frame.bind(callComponent),
  9803. callRender = {
  9804. react_stack_bottom_frame: function (instance) {
  9805. return instance.render();
  9806. }
  9807. },
  9808. callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
  9809. callLazyInit = {
  9810. react_stack_bottom_frame: function (lazy) {
  9811. var init = lazy._init;
  9812. return init(lazy._payload);
  9813. }
  9814. },
  9815. callLazyInitInDEV =
  9816. callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
  9817. lastResetTime = 0;
  9818. if (
  9819. "object" === typeof performance &&
  9820. "function" === typeof performance.now
  9821. ) {
  9822. var localPerformance = performance;
  9823. var getCurrentTime = function () {
  9824. return localPerformance.now();
  9825. };
  9826. } else {
  9827. var localDate = Date;
  9828. getCurrentTime = function () {
  9829. return localDate.now();
  9830. };
  9831. }
  9832. var CLIENT_RENDERED = 4,
  9833. PENDING = 0,
  9834. COMPLETED = 1,
  9835. FLUSHED = 2,
  9836. ABORTED = 3,
  9837. ERRORED = 4,
  9838. POSTPONED = 5,
  9839. CLOSED = 14,
  9840. currentRequest = null,
  9841. didWarnAboutBadClass = {},
  9842. didWarnAboutContextTypes = {},
  9843. didWarnAboutContextTypeOnFunctionComponent = {},
  9844. didWarnAboutGetDerivedStateOnFunctionComponent = {},
  9845. didWarnAboutReassigningProps = !1,
  9846. didWarnAboutGenerators = !1,
  9847. didWarnAboutMaps = !1,
  9848. flushedByteSize = 0,
  9849. flushingPartialBoundaries = !1;
  9850. exports.renderToStaticMarkup = function (children, options) {
  9851. return renderToStringImpl(
  9852. children,
  9853. options,
  9854. !0,
  9855. 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
  9856. );
  9857. };
  9858. exports.renderToString = function (children, options) {
  9859. return renderToStringImpl(
  9860. children,
  9861. options,
  9862. !1,
  9863. 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
  9864. );
  9865. };
  9866. exports.version = "19.2.4";
  9867. })();