react-dom-server.node.development.js 419 KB

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