index.js 1.6 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994
  1. /******/ (() => { // webpackBootstrap
  2. /******/ var __webpack_modules__ = ({
  3. /***/ 7219:
  4. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  5. "use strict";
  6. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  7. if (k2 === undefined) k2 = k;
  8. var desc = Object.getOwnPropertyDescriptor(m, k);
  9. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  10. desc = { enumerable: true, get: function() { return m[k]; } };
  11. }
  12. Object.defineProperty(o, k2, desc);
  13. }) : (function(o, m, k, k2) {
  14. if (k2 === undefined) k2 = k;
  15. o[k2] = m[k];
  16. }));
  17. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  18. Object.defineProperty(o, "default", { enumerable: true, value: v });
  19. }) : function(o, v) {
  20. o["default"] = v;
  21. });
  22. var __importStar = (this && this.__importStar) || function (mod) {
  23. if (mod && mod.__esModule) return mod;
  24. var result = {};
  25. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  26. __setModuleDefault(result, mod);
  27. return result;
  28. };
  29. Object.defineProperty(exports, "__esModule", ({ value: true }));
  30. exports.fileExistsSync = exports.existsSync = exports.directoryExistsSync = void 0;
  31. const fs = __importStar(__nccwpck_require__(7147));
  32. function directoryExistsSync(path, required) {
  33. var _a;
  34. if (!path) {
  35. throw new Error("Arg 'path' must not be empty");
  36. }
  37. let stats;
  38. try {
  39. stats = fs.statSync(path);
  40. }
  41. catch (error) {
  42. if ((error === null || error === void 0 ? void 0 : error.code) === 'ENOENT') {
  43. if (!required) {
  44. return false;
  45. }
  46. throw new Error(`Directory '${path}' does not exist`);
  47. }
  48. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);
  49. }
  50. if (stats.isDirectory()) {
  51. return true;
  52. }
  53. else if (!required) {
  54. return false;
  55. }
  56. throw new Error(`Directory '${path}' does not exist`);
  57. }
  58. exports.directoryExistsSync = directoryExistsSync;
  59. function existsSync(path) {
  60. var _a;
  61. if (!path) {
  62. throw new Error("Arg 'path' must not be empty");
  63. }
  64. try {
  65. fs.statSync(path);
  66. }
  67. catch (error) {
  68. if ((error === null || error === void 0 ? void 0 : error.code) === 'ENOENT') {
  69. return false;
  70. }
  71. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);
  72. }
  73. return true;
  74. }
  75. exports.existsSync = existsSync;
  76. function fileExistsSync(path) {
  77. var _a;
  78. if (!path) {
  79. throw new Error("Arg 'path' must not be empty");
  80. }
  81. let stats;
  82. try {
  83. stats = fs.statSync(path);
  84. }
  85. catch (error) {
  86. if ((error === null || error === void 0 ? void 0 : error.code) === 'ENOENT') {
  87. return false;
  88. }
  89. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);
  90. }
  91. if (!stats.isDirectory()) {
  92. return true;
  93. }
  94. return false;
  95. }
  96. exports.fileExistsSync = fileExistsSync;
  97. /***/ }),
  98. /***/ 2565:
  99. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  100. "use strict";
  101. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  102. if (k2 === undefined) k2 = k;
  103. var desc = Object.getOwnPropertyDescriptor(m, k);
  104. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  105. desc = { enumerable: true, get: function() { return m[k]; } };
  106. }
  107. Object.defineProperty(o, k2, desc);
  108. }) : (function(o, m, k, k2) {
  109. if (k2 === undefined) k2 = k;
  110. o[k2] = m[k];
  111. }));
  112. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  113. Object.defineProperty(o, "default", { enumerable: true, value: v });
  114. }) : function(o, v) {
  115. o["default"] = v;
  116. });
  117. var __importStar = (this && this.__importStar) || function (mod) {
  118. if (mod && mod.__esModule) return mod;
  119. var result = {};
  120. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  121. __setModuleDefault(result, mod);
  122. return result;
  123. };
  124. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  125. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  126. return new (P || (P = Promise))(function (resolve, reject) {
  127. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  128. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  129. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  130. step((generator = generator.apply(thisArg, _arguments || [])).next());
  131. });
  132. };
  133. var __importDefault = (this && this.__importDefault) || function (mod) {
  134. return (mod && mod.__esModule) ? mod : { "default": mod };
  135. };
  136. Object.defineProperty(exports, "__esModule", ({ value: true }));
  137. exports.createAuthHelper = void 0;
  138. const assert = __importStar(__nccwpck_require__(9491));
  139. const core = __importStar(__nccwpck_require__(2186));
  140. const exec = __importStar(__nccwpck_require__(1514));
  141. const fs = __importStar(__nccwpck_require__(7147));
  142. const io = __importStar(__nccwpck_require__(7436));
  143. const os = __importStar(__nccwpck_require__(2037));
  144. const path = __importStar(__nccwpck_require__(1017));
  145. const regexpHelper = __importStar(__nccwpck_require__(3120));
  146. const stateHelper = __importStar(__nccwpck_require__(8647));
  147. const urlHelper = __importStar(__nccwpck_require__(9437));
  148. const v4_1 = __importDefault(__nccwpck_require__(824));
  149. const IS_WINDOWS = process.platform === 'win32';
  150. const SSH_COMMAND_KEY = 'core.sshCommand';
  151. function createAuthHelper(git, settings) {
  152. return new GitAuthHelper(git, settings);
  153. }
  154. exports.createAuthHelper = createAuthHelper;
  155. class GitAuthHelper {
  156. constructor(gitCommandManager, gitSourceSettings) {
  157. this.insteadOfValues = [];
  158. this.sshCommand = '';
  159. this.sshKeyPath = '';
  160. this.sshKnownHostsPath = '';
  161. this.temporaryHomePath = '';
  162. this.git = gitCommandManager;
  163. this.settings = gitSourceSettings || {};
  164. // Token auth header
  165. const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl);
  166. this.tokenConfigKey = `http.${serverUrl.origin}/.extraheader`; // "origin" is SCHEME://HOSTNAME[:PORT]
  167. const basicCredential = Buffer.from(`x-access-token:${this.settings.authToken}`, 'utf8').toString('base64');
  168. core.setSecret(basicCredential);
  169. this.tokenPlaceholderConfigValue = `AUTHORIZATION: basic ***`;
  170. this.tokenConfigValue = `AUTHORIZATION: basic ${basicCredential}`;
  171. // Instead of SSH URL
  172. this.insteadOfKey = `url.${serverUrl.origin}/.insteadOf`; // "origin" is SCHEME://HOSTNAME[:PORT]
  173. this.insteadOfValues.push(`git@${serverUrl.hostname}:`);
  174. if (this.settings.workflowOrganizationId) {
  175. this.insteadOfValues.push(`org-${this.settings.workflowOrganizationId}@github.com:`);
  176. }
  177. }
  178. configureAuth() {
  179. return __awaiter(this, void 0, void 0, function* () {
  180. // Remove possible previous values
  181. yield this.removeAuth();
  182. // Configure new values
  183. yield this.configureSsh();
  184. yield this.configureToken();
  185. });
  186. }
  187. configureTempGlobalConfig() {
  188. var _a;
  189. return __awaiter(this, void 0, void 0, function* () {
  190. // Already setup global config
  191. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  192. return path.join(this.temporaryHomePath, '.gitconfig');
  193. }
  194. // Create a temp home directory
  195. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  196. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  197. const uniqueId = (0, v4_1.default)();
  198. this.temporaryHomePath = path.join(runnerTemp, uniqueId);
  199. yield fs.promises.mkdir(this.temporaryHomePath, { recursive: true });
  200. // Copy the global git config
  201. const gitConfigPath = path.join(process.env['HOME'] || os.homedir(), '.gitconfig');
  202. const newGitConfigPath = path.join(this.temporaryHomePath, '.gitconfig');
  203. let configExists = false;
  204. try {
  205. yield fs.promises.stat(gitConfigPath);
  206. configExists = true;
  207. }
  208. catch (err) {
  209. if ((err === null || err === void 0 ? void 0 : err.code) !== 'ENOENT') {
  210. throw err;
  211. }
  212. }
  213. if (configExists) {
  214. core.info(`Copying '${gitConfigPath}' to '${newGitConfigPath}'`);
  215. yield io.cp(gitConfigPath, newGitConfigPath);
  216. }
  217. else {
  218. yield fs.promises.writeFile(newGitConfigPath, '');
  219. }
  220. // Override HOME
  221. core.info(`Temporarily overriding HOME='${this.temporaryHomePath}' before making global git config changes`);
  222. this.git.setEnvironmentVariable('HOME', this.temporaryHomePath);
  223. return newGitConfigPath;
  224. });
  225. }
  226. configureGlobalAuth() {
  227. return __awaiter(this, void 0, void 0, function* () {
  228. // 'configureTempGlobalConfig' noops if already set, just returns the path
  229. const newGitConfigPath = yield this.configureTempGlobalConfig();
  230. try {
  231. // Configure the token
  232. yield this.configureToken(newGitConfigPath, true);
  233. // Configure HTTPS instead of SSH
  234. yield this.git.tryConfigUnset(this.insteadOfKey, true);
  235. if (!this.settings.sshKey) {
  236. for (const insteadOfValue of this.insteadOfValues) {
  237. yield this.git.config(this.insteadOfKey, insteadOfValue, true, true);
  238. }
  239. }
  240. }
  241. catch (err) {
  242. // Unset in case somehow written to the real global config
  243. core.info('Encountered an error when attempting to configure token. Attempting unconfigure.');
  244. yield this.git.tryConfigUnset(this.tokenConfigKey, true);
  245. throw err;
  246. }
  247. });
  248. }
  249. configureSubmoduleAuth() {
  250. return __awaiter(this, void 0, void 0, function* () {
  251. // Remove possible previous HTTPS instead of SSH
  252. yield this.removeGitConfig(this.insteadOfKey, true);
  253. if (this.settings.persistCredentials) {
  254. // Configure a placeholder value. This approach avoids the credential being captured
  255. // by process creation audit events, which are commonly logged. For more information,
  256. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  257. const output = yield this.git.submoduleForeach(
  258. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  259. `sh -c "git config --local '${this.tokenConfigKey}' '${this.tokenPlaceholderConfigValue}' && git config --local --show-origin --name-only --get-regexp remote.origin.url"`, this.settings.nestedSubmodules);
  260. // Replace the placeholder
  261. const configPaths = output.match(/(?<=(^|\n)file:)[^\t]+(?=\tremote\.origin\.url)/g) || [];
  262. for (const configPath of configPaths) {
  263. core.debug(`Replacing token placeholder in '${configPath}'`);
  264. yield this.replaceTokenPlaceholder(configPath);
  265. }
  266. if (this.settings.sshKey) {
  267. // Configure core.sshCommand
  268. yield this.git.submoduleForeach(`git config --local '${SSH_COMMAND_KEY}' '${this.sshCommand}'`, this.settings.nestedSubmodules);
  269. }
  270. else {
  271. // Configure HTTPS instead of SSH
  272. for (const insteadOfValue of this.insteadOfValues) {
  273. yield this.git.submoduleForeach(`git config --local --add '${this.insteadOfKey}' '${insteadOfValue}'`, this.settings.nestedSubmodules);
  274. }
  275. }
  276. }
  277. });
  278. }
  279. removeAuth() {
  280. return __awaiter(this, void 0, void 0, function* () {
  281. yield this.removeSsh();
  282. yield this.removeToken();
  283. });
  284. }
  285. removeGlobalConfig() {
  286. var _a;
  287. return __awaiter(this, void 0, void 0, function* () {
  288. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  289. core.debug(`Unsetting HOME override`);
  290. this.git.removeEnvironmentVariable('HOME');
  291. yield io.rmRF(this.temporaryHomePath);
  292. }
  293. });
  294. }
  295. configureSsh() {
  296. return __awaiter(this, void 0, void 0, function* () {
  297. if (!this.settings.sshKey) {
  298. return;
  299. }
  300. // Write key
  301. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  302. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  303. const uniqueId = (0, v4_1.default)();
  304. this.sshKeyPath = path.join(runnerTemp, uniqueId);
  305. stateHelper.setSshKeyPath(this.sshKeyPath);
  306. yield fs.promises.mkdir(runnerTemp, { recursive: true });
  307. yield fs.promises.writeFile(this.sshKeyPath, this.settings.sshKey.trim() + '\n', { mode: 0o600 });
  308. // Remove inherited permissions on Windows
  309. if (IS_WINDOWS) {
  310. const icacls = yield io.which('icacls.exe');
  311. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /grant:r "${process.env['USERDOMAIN']}\\${process.env['USERNAME']}:F"`);
  312. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /inheritance:r`);
  313. }
  314. // Write known hosts
  315. const userKnownHostsPath = path.join(os.homedir(), '.ssh', 'known_hosts');
  316. let userKnownHosts = '';
  317. try {
  318. userKnownHosts = (yield fs.promises.readFile(userKnownHostsPath)).toString();
  319. }
  320. catch (err) {
  321. if ((err === null || err === void 0 ? void 0 : err.code) !== 'ENOENT') {
  322. throw err;
  323. }
  324. }
  325. let knownHosts = '';
  326. if (userKnownHosts) {
  327. knownHosts += `# Begin from ${userKnownHostsPath}\n${userKnownHosts}\n# End from ${userKnownHostsPath}\n`;
  328. }
  329. if (this.settings.sshKnownHosts) {
  330. knownHosts += `# Begin from input known hosts\n${this.settings.sshKnownHosts}\n# end from input known hosts\n`;
  331. }
  332. knownHosts += `# Begin implicitly added github.com\ngithub.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=\n# End implicitly added github.com\n`;
  333. this.sshKnownHostsPath = path.join(runnerTemp, `${uniqueId}_known_hosts`);
  334. stateHelper.setSshKnownHostsPath(this.sshKnownHostsPath);
  335. yield fs.promises.writeFile(this.sshKnownHostsPath, knownHosts);
  336. // Configure GIT_SSH_COMMAND
  337. const sshPath = yield io.which('ssh', true);
  338. this.sshCommand = `"${sshPath}" -i "$RUNNER_TEMP/${path.basename(this.sshKeyPath)}"`;
  339. if (this.settings.sshStrict) {
  340. this.sshCommand += ' -o StrictHostKeyChecking=yes -o CheckHostIP=no';
  341. }
  342. this.sshCommand += ` -o "UserKnownHostsFile=$RUNNER_TEMP/${path.basename(this.sshKnownHostsPath)}"`;
  343. core.info(`Temporarily overriding GIT_SSH_COMMAND=${this.sshCommand}`);
  344. this.git.setEnvironmentVariable('GIT_SSH_COMMAND', this.sshCommand);
  345. // Configure core.sshCommand
  346. if (this.settings.persistCredentials) {
  347. yield this.git.config(SSH_COMMAND_KEY, this.sshCommand);
  348. }
  349. });
  350. }
  351. configureToken(configPath, globalConfig) {
  352. return __awaiter(this, void 0, void 0, function* () {
  353. // Validate args
  354. assert.ok((configPath && globalConfig) || (!configPath && !globalConfig), 'Unexpected configureToken parameter combinations');
  355. // Default config path
  356. if (!configPath && !globalConfig) {
  357. configPath = path.join(this.git.getWorkingDirectory(), '.git', 'config');
  358. }
  359. // Configure a placeholder value. This approach avoids the credential being captured
  360. // by process creation audit events, which are commonly logged. For more information,
  361. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  362. yield this.git.config(this.tokenConfigKey, this.tokenPlaceholderConfigValue, globalConfig);
  363. // Replace the placeholder
  364. yield this.replaceTokenPlaceholder(configPath || '');
  365. });
  366. }
  367. replaceTokenPlaceholder(configPath) {
  368. return __awaiter(this, void 0, void 0, function* () {
  369. assert.ok(configPath, 'configPath is not defined');
  370. let content = (yield fs.promises.readFile(configPath)).toString();
  371. const placeholderIndex = content.indexOf(this.tokenPlaceholderConfigValue);
  372. if (placeholderIndex < 0 ||
  373. placeholderIndex != content.lastIndexOf(this.tokenPlaceholderConfigValue)) {
  374. throw new Error(`Unable to replace auth placeholder in ${configPath}`);
  375. }
  376. assert.ok(this.tokenConfigValue, 'tokenConfigValue is not defined');
  377. content = content.replace(this.tokenPlaceholderConfigValue, this.tokenConfigValue);
  378. yield fs.promises.writeFile(configPath, content);
  379. });
  380. }
  381. removeSsh() {
  382. var _a;
  383. return __awaiter(this, void 0, void 0, function* () {
  384. // SSH key
  385. const keyPath = this.sshKeyPath || stateHelper.SshKeyPath;
  386. if (keyPath) {
  387. try {
  388. yield io.rmRF(keyPath);
  389. }
  390. catch (err) {
  391. core.debug(`${(_a = err === null || err === void 0 ? void 0 : err.message) !== null && _a !== void 0 ? _a : err}`);
  392. core.warning(`Failed to remove SSH key '${keyPath}'`);
  393. }
  394. }
  395. // SSH known hosts
  396. const knownHostsPath = this.sshKnownHostsPath || stateHelper.SshKnownHostsPath;
  397. if (knownHostsPath) {
  398. try {
  399. yield io.rmRF(knownHostsPath);
  400. }
  401. catch (_b) {
  402. // Intentionally empty
  403. }
  404. }
  405. // SSH command
  406. yield this.removeGitConfig(SSH_COMMAND_KEY);
  407. });
  408. }
  409. removeToken() {
  410. return __awaiter(this, void 0, void 0, function* () {
  411. // HTTP extra header
  412. yield this.removeGitConfig(this.tokenConfigKey);
  413. });
  414. }
  415. removeGitConfig(configKey, submoduleOnly = false) {
  416. return __awaiter(this, void 0, void 0, function* () {
  417. if (!submoduleOnly) {
  418. if ((yield this.git.configExists(configKey)) &&
  419. !(yield this.git.tryConfigUnset(configKey))) {
  420. // Load the config contents
  421. core.warning(`Failed to remove '${configKey}' from the git config`);
  422. }
  423. }
  424. const pattern = regexpHelper.escape(configKey);
  425. yield this.git.submoduleForeach(
  426. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  427. `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, true);
  428. });
  429. }
  430. }
  431. /***/ }),
  432. /***/ 738:
  433. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  434. "use strict";
  435. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  436. if (k2 === undefined) k2 = k;
  437. var desc = Object.getOwnPropertyDescriptor(m, k);
  438. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  439. desc = { enumerable: true, get: function() { return m[k]; } };
  440. }
  441. Object.defineProperty(o, k2, desc);
  442. }) : (function(o, m, k, k2) {
  443. if (k2 === undefined) k2 = k;
  444. o[k2] = m[k];
  445. }));
  446. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  447. Object.defineProperty(o, "default", { enumerable: true, value: v });
  448. }) : function(o, v) {
  449. o["default"] = v;
  450. });
  451. var __importStar = (this && this.__importStar) || function (mod) {
  452. if (mod && mod.__esModule) return mod;
  453. var result = {};
  454. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  455. __setModuleDefault(result, mod);
  456. return result;
  457. };
  458. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  459. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  460. return new (P || (P = Promise))(function (resolve, reject) {
  461. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  462. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  463. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  464. step((generator = generator.apply(thisArg, _arguments || [])).next());
  465. });
  466. };
  467. Object.defineProperty(exports, "__esModule", ({ value: true }));
  468. exports.createCommandManager = exports.MinimumGitVersion = void 0;
  469. const core = __importStar(__nccwpck_require__(2186));
  470. const exec = __importStar(__nccwpck_require__(1514));
  471. const fs = __importStar(__nccwpck_require__(7147));
  472. const fshelper = __importStar(__nccwpck_require__(7219));
  473. const io = __importStar(__nccwpck_require__(7436));
  474. const path = __importStar(__nccwpck_require__(1017));
  475. const refHelper = __importStar(__nccwpck_require__(8601));
  476. const regexpHelper = __importStar(__nccwpck_require__(3120));
  477. const retryHelper = __importStar(__nccwpck_require__(2155));
  478. const git_version_1 = __nccwpck_require__(3142);
  479. // Auth header not supported before 2.9
  480. // Wire protocol v2 not supported before 2.18
  481. exports.MinimumGitVersion = new git_version_1.GitVersion('2.18');
  482. function createCommandManager(workingDirectory, lfs, doSparseCheckout) {
  483. return __awaiter(this, void 0, void 0, function* () {
  484. return yield GitCommandManager.createCommandManager(workingDirectory, lfs, doSparseCheckout);
  485. });
  486. }
  487. exports.createCommandManager = createCommandManager;
  488. class GitCommandManager {
  489. // Private constructor; use createCommandManager()
  490. constructor() {
  491. this.gitEnv = {
  492. GIT_TERMINAL_PROMPT: '0',
  493. GCM_INTERACTIVE: 'Never' // Disable prompting for git credential manager
  494. };
  495. this.gitPath = '';
  496. this.lfs = false;
  497. this.doSparseCheckout = false;
  498. this.workingDirectory = '';
  499. }
  500. branchDelete(remote, branch) {
  501. return __awaiter(this, void 0, void 0, function* () {
  502. const args = ['branch', '--delete', '--force'];
  503. if (remote) {
  504. args.push('--remote');
  505. }
  506. args.push(branch);
  507. yield this.execGit(args);
  508. });
  509. }
  510. branchExists(remote, pattern) {
  511. return __awaiter(this, void 0, void 0, function* () {
  512. const args = ['branch', '--list'];
  513. if (remote) {
  514. args.push('--remote');
  515. }
  516. args.push(pattern);
  517. const output = yield this.execGit(args);
  518. return !!output.stdout.trim();
  519. });
  520. }
  521. branchList(remote) {
  522. return __awaiter(this, void 0, void 0, function* () {
  523. const result = [];
  524. // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
  525. // "branch --list" is more difficult when in a detached HEAD state.
  526. // TODO(https://github.com/actions/checkout/issues/786): this implementation uses
  527. // "rev-parse --symbolic-full-name" because there is a bug
  528. // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names. When
  529. // 2.18 is no longer supported, we can switch back to --symbolic.
  530. const args = ['rev-parse', '--symbolic-full-name'];
  531. if (remote) {
  532. args.push('--remotes=origin');
  533. }
  534. else {
  535. args.push('--branches');
  536. }
  537. const stderr = [];
  538. const errline = [];
  539. const stdout = [];
  540. const stdline = [];
  541. const listeners = {
  542. stderr: (data) => {
  543. stderr.push(data.toString());
  544. },
  545. errline: (data) => {
  546. errline.push(data.toString());
  547. },
  548. stdout: (data) => {
  549. stdout.push(data.toString());
  550. },
  551. stdline: (data) => {
  552. stdline.push(data.toString());
  553. }
  554. };
  555. // Suppress the output in order to avoid flooding annotations with innocuous errors.
  556. yield this.execGit(args, false, true, listeners);
  557. core.debug(`stderr callback is: ${stderr}`);
  558. core.debug(`errline callback is: ${errline}`);
  559. core.debug(`stdout callback is: ${stdout}`);
  560. core.debug(`stdline callback is: ${stdline}`);
  561. for (let branch of stdline) {
  562. branch = branch.trim();
  563. if (!branch) {
  564. continue;
  565. }
  566. if (branch.startsWith('refs/heads/')) {
  567. branch = branch.substring('refs/heads/'.length);
  568. }
  569. else if (branch.startsWith('refs/remotes/')) {
  570. branch = branch.substring('refs/remotes/'.length);
  571. }
  572. result.push(branch);
  573. }
  574. return result;
  575. });
  576. }
  577. sparseCheckout(sparseCheckout) {
  578. return __awaiter(this, void 0, void 0, function* () {
  579. yield this.execGit(['sparse-checkout', 'set', ...sparseCheckout]);
  580. });
  581. }
  582. sparseCheckoutNonConeMode(sparseCheckout) {
  583. return __awaiter(this, void 0, void 0, function* () {
  584. yield this.execGit(['config', 'core.sparseCheckout', 'true']);
  585. const output = yield this.execGit([
  586. 'rev-parse',
  587. '--git-path',
  588. 'info/sparse-checkout'
  589. ]);
  590. const sparseCheckoutPath = path.join(this.workingDirectory, output.stdout.trimRight());
  591. yield fs.promises.appendFile(sparseCheckoutPath, `\n${sparseCheckout.join('\n')}\n`);
  592. });
  593. }
  594. checkout(ref, startPoint) {
  595. return __awaiter(this, void 0, void 0, function* () {
  596. const args = ['checkout', '--progress', '--force'];
  597. if (startPoint) {
  598. args.push('-B', ref, startPoint);
  599. }
  600. else {
  601. args.push(ref);
  602. }
  603. yield this.execGit(args);
  604. });
  605. }
  606. checkoutDetach() {
  607. return __awaiter(this, void 0, void 0, function* () {
  608. const args = ['checkout', '--detach'];
  609. yield this.execGit(args);
  610. });
  611. }
  612. config(configKey, configValue, globalConfig, add) {
  613. return __awaiter(this, void 0, void 0, function* () {
  614. const args = ['config', globalConfig ? '--global' : '--local'];
  615. if (add) {
  616. args.push('--add');
  617. }
  618. args.push(...[configKey, configValue]);
  619. yield this.execGit(args);
  620. });
  621. }
  622. configExists(configKey, globalConfig) {
  623. return __awaiter(this, void 0, void 0, function* () {
  624. const pattern = regexpHelper.escape(configKey);
  625. const output = yield this.execGit([
  626. 'config',
  627. globalConfig ? '--global' : '--local',
  628. '--name-only',
  629. '--get-regexp',
  630. pattern
  631. ], true);
  632. return output.exitCode === 0;
  633. });
  634. }
  635. fetch(refSpec, options) {
  636. return __awaiter(this, void 0, void 0, function* () {
  637. const args = ['-c', 'protocol.version=2', 'fetch'];
  638. if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
  639. args.push('--no-tags');
  640. }
  641. args.push('--prune', '--no-recurse-submodules');
  642. if (options.showProgress) {
  643. args.push('--progress');
  644. }
  645. if (options.filter) {
  646. args.push(`--filter=${options.filter}`);
  647. }
  648. if (options.fetchDepth && options.fetchDepth > 0) {
  649. args.push(`--depth=${options.fetchDepth}`);
  650. }
  651. else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
  652. args.push('--unshallow');
  653. }
  654. args.push('origin');
  655. for (const arg of refSpec) {
  656. args.push(arg);
  657. }
  658. const that = this;
  659. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  660. yield that.execGit(args);
  661. }));
  662. });
  663. }
  664. getDefaultBranch(repositoryUrl) {
  665. return __awaiter(this, void 0, void 0, function* () {
  666. let output;
  667. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  668. output = yield this.execGit([
  669. 'ls-remote',
  670. '--quiet',
  671. '--exit-code',
  672. '--symref',
  673. repositoryUrl,
  674. 'HEAD'
  675. ]);
  676. }));
  677. if (output) {
  678. // Satisfy compiler, will always be set
  679. for (let line of output.stdout.trim().split('\n')) {
  680. line = line.trim();
  681. if (line.startsWith('ref:') || line.endsWith('HEAD')) {
  682. return line
  683. .substr('ref:'.length, line.length - 'ref:'.length - 'HEAD'.length)
  684. .trim();
  685. }
  686. }
  687. }
  688. throw new Error('Unexpected output when retrieving default branch');
  689. });
  690. }
  691. getWorkingDirectory() {
  692. return this.workingDirectory;
  693. }
  694. init() {
  695. return __awaiter(this, void 0, void 0, function* () {
  696. yield this.execGit(['init', this.workingDirectory]);
  697. });
  698. }
  699. isDetached() {
  700. return __awaiter(this, void 0, void 0, function* () {
  701. // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
  702. const output = yield this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
  703. return !output.stdout.trim().startsWith('refs/heads/');
  704. });
  705. }
  706. lfsFetch(ref) {
  707. return __awaiter(this, void 0, void 0, function* () {
  708. const args = ['lfs', 'fetch', 'origin', ref];
  709. const that = this;
  710. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  711. yield that.execGit(args);
  712. }));
  713. });
  714. }
  715. lfsInstall() {
  716. return __awaiter(this, void 0, void 0, function* () {
  717. yield this.execGit(['lfs', 'install', '--local']);
  718. });
  719. }
  720. log1(format) {
  721. return __awaiter(this, void 0, void 0, function* () {
  722. const args = format ? ['log', '-1', format] : ['log', '-1'];
  723. const silent = format ? false : true;
  724. const output = yield this.execGit(args, false, silent);
  725. return output.stdout;
  726. });
  727. }
  728. remoteAdd(remoteName, remoteUrl) {
  729. return __awaiter(this, void 0, void 0, function* () {
  730. yield this.execGit(['remote', 'add', remoteName, remoteUrl]);
  731. });
  732. }
  733. removeEnvironmentVariable(name) {
  734. delete this.gitEnv[name];
  735. }
  736. /**
  737. * Resolves a ref to a SHA. For a branch or lightweight tag, the commit SHA is returned.
  738. * For an annotated tag, the tag SHA is returned.
  739. * @param {string} ref For example: 'refs/heads/main' or '/refs/tags/v1'
  740. * @returns {Promise<string>}
  741. */
  742. revParse(ref) {
  743. return __awaiter(this, void 0, void 0, function* () {
  744. const output = yield this.execGit(['rev-parse', ref]);
  745. return output.stdout.trim();
  746. });
  747. }
  748. setEnvironmentVariable(name, value) {
  749. this.gitEnv[name] = value;
  750. }
  751. shaExists(sha) {
  752. return __awaiter(this, void 0, void 0, function* () {
  753. const args = ['rev-parse', '--verify', '--quiet', `${sha}^{object}`];
  754. const output = yield this.execGit(args, true);
  755. return output.exitCode === 0;
  756. });
  757. }
  758. submoduleForeach(command, recursive) {
  759. return __awaiter(this, void 0, void 0, function* () {
  760. const args = ['submodule', 'foreach'];
  761. if (recursive) {
  762. args.push('--recursive');
  763. }
  764. args.push(command);
  765. const output = yield this.execGit(args);
  766. return output.stdout;
  767. });
  768. }
  769. submoduleSync(recursive) {
  770. return __awaiter(this, void 0, void 0, function* () {
  771. const args = ['submodule', 'sync'];
  772. if (recursive) {
  773. args.push('--recursive');
  774. }
  775. yield this.execGit(args);
  776. });
  777. }
  778. submoduleUpdate(fetchDepth, recursive) {
  779. return __awaiter(this, void 0, void 0, function* () {
  780. const args = ['-c', 'protocol.version=2'];
  781. args.push('submodule', 'update', '--init', '--force');
  782. if (fetchDepth > 0) {
  783. args.push(`--depth=${fetchDepth}`);
  784. }
  785. if (recursive) {
  786. args.push('--recursive');
  787. }
  788. yield this.execGit(args);
  789. });
  790. }
  791. submoduleStatus() {
  792. return __awaiter(this, void 0, void 0, function* () {
  793. const output = yield this.execGit(['submodule', 'status'], true);
  794. core.debug(output.stdout);
  795. return output.exitCode === 0;
  796. });
  797. }
  798. tagExists(pattern) {
  799. return __awaiter(this, void 0, void 0, function* () {
  800. const output = yield this.execGit(['tag', '--list', pattern]);
  801. return !!output.stdout.trim();
  802. });
  803. }
  804. tryClean() {
  805. return __awaiter(this, void 0, void 0, function* () {
  806. const output = yield this.execGit(['clean', '-ffdx'], true);
  807. return output.exitCode === 0;
  808. });
  809. }
  810. tryConfigUnset(configKey, globalConfig) {
  811. return __awaiter(this, void 0, void 0, function* () {
  812. const output = yield this.execGit([
  813. 'config',
  814. globalConfig ? '--global' : '--local',
  815. '--unset-all',
  816. configKey
  817. ], true);
  818. return output.exitCode === 0;
  819. });
  820. }
  821. tryDisableAutomaticGarbageCollection() {
  822. return __awaiter(this, void 0, void 0, function* () {
  823. const output = yield this.execGit(['config', '--local', 'gc.auto', '0'], true);
  824. return output.exitCode === 0;
  825. });
  826. }
  827. tryGetFetchUrl() {
  828. return __awaiter(this, void 0, void 0, function* () {
  829. const output = yield this.execGit(['config', '--local', '--get', 'remote.origin.url'], true);
  830. if (output.exitCode !== 0) {
  831. return '';
  832. }
  833. const stdout = output.stdout.trim();
  834. if (stdout.includes('\n')) {
  835. return '';
  836. }
  837. return stdout;
  838. });
  839. }
  840. tryReset() {
  841. return __awaiter(this, void 0, void 0, function* () {
  842. const output = yield this.execGit(['reset', '--hard', 'HEAD'], true);
  843. return output.exitCode === 0;
  844. });
  845. }
  846. static createCommandManager(workingDirectory, lfs, doSparseCheckout) {
  847. return __awaiter(this, void 0, void 0, function* () {
  848. const result = new GitCommandManager();
  849. yield result.initializeCommandManager(workingDirectory, lfs, doSparseCheckout);
  850. return result;
  851. });
  852. }
  853. execGit(args, allowAllExitCodes = false, silent = false, customListeners = {}) {
  854. return __awaiter(this, void 0, void 0, function* () {
  855. fshelper.directoryExistsSync(this.workingDirectory, true);
  856. const result = new GitOutput();
  857. const env = {};
  858. for (const key of Object.keys(process.env)) {
  859. env[key] = process.env[key];
  860. }
  861. for (const key of Object.keys(this.gitEnv)) {
  862. env[key] = this.gitEnv[key];
  863. }
  864. const defaultListener = {
  865. stdout: (data) => {
  866. stdout.push(data.toString());
  867. }
  868. };
  869. const mergedListeners = Object.assign(Object.assign({}, defaultListener), customListeners);
  870. const stdout = [];
  871. const options = {
  872. cwd: this.workingDirectory,
  873. env,
  874. silent,
  875. ignoreReturnCode: allowAllExitCodes,
  876. listeners: mergedListeners
  877. };
  878. result.exitCode = yield exec.exec(`"${this.gitPath}"`, args, options);
  879. result.stdout = stdout.join('');
  880. core.debug(result.exitCode.toString());
  881. core.debug(result.stdout);
  882. return result;
  883. });
  884. }
  885. initializeCommandManager(workingDirectory, lfs, doSparseCheckout) {
  886. return __awaiter(this, void 0, void 0, function* () {
  887. this.workingDirectory = workingDirectory;
  888. // Git-lfs will try to pull down assets if any of the local/user/system setting exist.
  889. // If the user didn't enable `LFS` in their pipeline definition, disable LFS fetch/checkout.
  890. this.lfs = lfs;
  891. if (!this.lfs) {
  892. this.gitEnv['GIT_LFS_SKIP_SMUDGE'] = '1';
  893. }
  894. this.gitPath = yield io.which('git', true);
  895. // Git version
  896. core.debug('Getting git version');
  897. let gitVersion = new git_version_1.GitVersion();
  898. let gitOutput = yield this.execGit(['version']);
  899. let stdout = gitOutput.stdout.trim();
  900. if (!stdout.includes('\n')) {
  901. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  902. if (match) {
  903. gitVersion = new git_version_1.GitVersion(match[0]);
  904. }
  905. }
  906. if (!gitVersion.isValid()) {
  907. throw new Error('Unable to determine git version');
  908. }
  909. // Minimum git version
  910. if (!gitVersion.checkMinimum(exports.MinimumGitVersion)) {
  911. throw new Error(`Minimum required git version is ${exports.MinimumGitVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  912. }
  913. if (this.lfs) {
  914. // Git-lfs version
  915. core.debug('Getting git-lfs version');
  916. let gitLfsVersion = new git_version_1.GitVersion();
  917. const gitLfsPath = yield io.which('git-lfs', true);
  918. gitOutput = yield this.execGit(['lfs', 'version']);
  919. stdout = gitOutput.stdout.trim();
  920. if (!stdout.includes('\n')) {
  921. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  922. if (match) {
  923. gitLfsVersion = new git_version_1.GitVersion(match[0]);
  924. }
  925. }
  926. if (!gitLfsVersion.isValid()) {
  927. throw new Error('Unable to determine git-lfs version');
  928. }
  929. // Minimum git-lfs version
  930. // Note:
  931. // - Auth header not supported before 2.1
  932. const minimumGitLfsVersion = new git_version_1.GitVersion('2.1');
  933. if (!gitLfsVersion.checkMinimum(minimumGitLfsVersion)) {
  934. throw new Error(`Minimum required git-lfs version is ${minimumGitLfsVersion}. Your git-lfs ('${gitLfsPath}') is ${gitLfsVersion}`);
  935. }
  936. }
  937. this.doSparseCheckout = doSparseCheckout;
  938. if (this.doSparseCheckout) {
  939. // The `git sparse-checkout` command was introduced in Git v2.25.0
  940. const minimumGitSparseCheckoutVersion = new git_version_1.GitVersion('2.25');
  941. if (!gitVersion.checkMinimum(minimumGitSparseCheckoutVersion)) {
  942. throw new Error(`Minimum Git version required for sparse checkout is ${minimumGitSparseCheckoutVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  943. }
  944. }
  945. // Set the user agent
  946. const gitHttpUserAgent = `git/${gitVersion} (github-actions-checkout)`;
  947. core.debug(`Set git useragent to: ${gitHttpUserAgent}`);
  948. this.gitEnv['GIT_HTTP_USER_AGENT'] = gitHttpUserAgent;
  949. });
  950. }
  951. }
  952. class GitOutput {
  953. constructor() {
  954. this.stdout = '';
  955. this.exitCode = 0;
  956. }
  957. }
  958. /***/ }),
  959. /***/ 8609:
  960. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  961. "use strict";
  962. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  963. if (k2 === undefined) k2 = k;
  964. var desc = Object.getOwnPropertyDescriptor(m, k);
  965. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  966. desc = { enumerable: true, get: function() { return m[k]; } };
  967. }
  968. Object.defineProperty(o, k2, desc);
  969. }) : (function(o, m, k, k2) {
  970. if (k2 === undefined) k2 = k;
  971. o[k2] = m[k];
  972. }));
  973. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  974. Object.defineProperty(o, "default", { enumerable: true, value: v });
  975. }) : function(o, v) {
  976. o["default"] = v;
  977. });
  978. var __importStar = (this && this.__importStar) || function (mod) {
  979. if (mod && mod.__esModule) return mod;
  980. var result = {};
  981. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  982. __setModuleDefault(result, mod);
  983. return result;
  984. };
  985. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  986. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  987. return new (P || (P = Promise))(function (resolve, reject) {
  988. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  989. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  990. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  991. step((generator = generator.apply(thisArg, _arguments || [])).next());
  992. });
  993. };
  994. Object.defineProperty(exports, "__esModule", ({ value: true }));
  995. exports.prepareExistingDirectory = void 0;
  996. const assert = __importStar(__nccwpck_require__(9491));
  997. const core = __importStar(__nccwpck_require__(2186));
  998. const fs = __importStar(__nccwpck_require__(7147));
  999. const fsHelper = __importStar(__nccwpck_require__(7219));
  1000. const io = __importStar(__nccwpck_require__(7436));
  1001. const path = __importStar(__nccwpck_require__(1017));
  1002. function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref) {
  1003. var _a;
  1004. return __awaiter(this, void 0, void 0, function* () {
  1005. assert.ok(repositoryPath, 'Expected repositoryPath to be defined');
  1006. assert.ok(repositoryUrl, 'Expected repositoryUrl to be defined');
  1007. // Indicates whether to delete the directory contents
  1008. let remove = false;
  1009. // Check whether using git or REST API
  1010. if (!git) {
  1011. remove = true;
  1012. }
  1013. // Fetch URL does not match
  1014. else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git')) ||
  1015. repositoryUrl !== (yield git.tryGetFetchUrl())) {
  1016. remove = true;
  1017. }
  1018. else {
  1019. // Delete any index.lock and shallow.lock left by a previously canceled run or crashed git process
  1020. const lockPaths = [
  1021. path.join(repositoryPath, '.git', 'index.lock'),
  1022. path.join(repositoryPath, '.git', 'shallow.lock')
  1023. ];
  1024. for (const lockPath of lockPaths) {
  1025. try {
  1026. yield io.rmRF(lockPath);
  1027. }
  1028. catch (error) {
  1029. core.debug(`Unable to delete '${lockPath}'. ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);
  1030. }
  1031. }
  1032. try {
  1033. core.startGroup('Removing previously created refs, to avoid conflicts');
  1034. // Checkout detached HEAD
  1035. if (!(yield git.isDetached())) {
  1036. yield git.checkoutDetach();
  1037. }
  1038. // Remove all refs/heads/*
  1039. let branches = yield git.branchList(false);
  1040. for (const branch of branches) {
  1041. yield git.branchDelete(false, branch);
  1042. }
  1043. // Remove any conflicting refs/remotes/origin/*
  1044. // Example 1: Consider ref is refs/heads/foo and previously fetched refs/remotes/origin/foo/bar
  1045. // Example 2: Consider ref is refs/heads/foo/bar and previously fetched refs/remotes/origin/foo
  1046. if (ref) {
  1047. ref = ref.startsWith('refs/') ? ref : `refs/heads/${ref}`;
  1048. if (ref.startsWith('refs/heads/')) {
  1049. const upperName1 = ref.toUpperCase().substr('REFS/HEADS/'.length);
  1050. const upperName1Slash = `${upperName1}/`;
  1051. branches = yield git.branchList(true);
  1052. for (const branch of branches) {
  1053. const upperName2 = branch.substr('origin/'.length).toUpperCase();
  1054. const upperName2Slash = `${upperName2}/`;
  1055. if (upperName1.startsWith(upperName2Slash) ||
  1056. upperName2.startsWith(upperName1Slash)) {
  1057. yield git.branchDelete(true, branch);
  1058. }
  1059. }
  1060. }
  1061. }
  1062. core.endGroup();
  1063. // Check for submodules and delete any existing files if submodules are present
  1064. if (!(yield git.submoduleStatus())) {
  1065. remove = true;
  1066. core.info('Bad Submodules found, removing existing files');
  1067. }
  1068. // Clean
  1069. if (clean) {
  1070. core.startGroup('Cleaning the repository');
  1071. if (!(yield git.tryClean())) {
  1072. core.debug(`The clean command failed. This might be caused by: 1) path too long, 2) permission issue, or 3) file in use. For further investigation, manually run 'git clean -ffdx' on the directory '${repositoryPath}'.`);
  1073. remove = true;
  1074. }
  1075. else if (!(yield git.tryReset())) {
  1076. remove = true;
  1077. }
  1078. core.endGroup();
  1079. if (remove) {
  1080. core.warning(`Unable to clean or reset the repository. The repository will be recreated instead.`);
  1081. }
  1082. }
  1083. }
  1084. catch (error) {
  1085. core.warning(`Unable to prepare the existing repository. The repository will be recreated instead.`);
  1086. remove = true;
  1087. }
  1088. }
  1089. if (remove) {
  1090. // Delete the contents of the directory. Don't delete the directory itself
  1091. // since it might be the current working directory.
  1092. core.info(`Deleting the contents of '${repositoryPath}'`);
  1093. for (const file of yield fs.promises.readdir(repositoryPath)) {
  1094. yield io.rmRF(path.join(repositoryPath, file));
  1095. }
  1096. }
  1097. });
  1098. }
  1099. exports.prepareExistingDirectory = prepareExistingDirectory;
  1100. /***/ }),
  1101. /***/ 9210:
  1102. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1103. "use strict";
  1104. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1105. if (k2 === undefined) k2 = k;
  1106. var desc = Object.getOwnPropertyDescriptor(m, k);
  1107. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  1108. desc = { enumerable: true, get: function() { return m[k]; } };
  1109. }
  1110. Object.defineProperty(o, k2, desc);
  1111. }) : (function(o, m, k, k2) {
  1112. if (k2 === undefined) k2 = k;
  1113. o[k2] = m[k];
  1114. }));
  1115. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1116. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1117. }) : function(o, v) {
  1118. o["default"] = v;
  1119. });
  1120. var __importStar = (this && this.__importStar) || function (mod) {
  1121. if (mod && mod.__esModule) return mod;
  1122. var result = {};
  1123. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1124. __setModuleDefault(result, mod);
  1125. return result;
  1126. };
  1127. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1128. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1129. return new (P || (P = Promise))(function (resolve, reject) {
  1130. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1131. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1132. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1133. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1134. });
  1135. };
  1136. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1137. exports.cleanup = exports.getSource = void 0;
  1138. const core = __importStar(__nccwpck_require__(2186));
  1139. const fsHelper = __importStar(__nccwpck_require__(7219));
  1140. const gitAuthHelper = __importStar(__nccwpck_require__(2565));
  1141. const gitCommandManager = __importStar(__nccwpck_require__(738));
  1142. const gitDirectoryHelper = __importStar(__nccwpck_require__(8609));
  1143. const githubApiHelper = __importStar(__nccwpck_require__(138));
  1144. const io = __importStar(__nccwpck_require__(7436));
  1145. const path = __importStar(__nccwpck_require__(1017));
  1146. const refHelper = __importStar(__nccwpck_require__(8601));
  1147. const stateHelper = __importStar(__nccwpck_require__(8647));
  1148. const urlHelper = __importStar(__nccwpck_require__(9437));
  1149. function getSource(settings) {
  1150. return __awaiter(this, void 0, void 0, function* () {
  1151. // Repository URL
  1152. core.info(`Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
  1153. const repositoryUrl = urlHelper.getFetchUrl(settings);
  1154. // Remove conflicting file path
  1155. if (fsHelper.fileExistsSync(settings.repositoryPath)) {
  1156. yield io.rmRF(settings.repositoryPath);
  1157. }
  1158. // Create directory
  1159. let isExisting = true;
  1160. if (!fsHelper.directoryExistsSync(settings.repositoryPath)) {
  1161. isExisting = false;
  1162. yield io.mkdirP(settings.repositoryPath);
  1163. }
  1164. // Git command manager
  1165. core.startGroup('Getting Git version info');
  1166. const git = yield getGitCommandManager(settings);
  1167. core.endGroup();
  1168. let authHelper = null;
  1169. try {
  1170. if (git) {
  1171. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  1172. if (settings.setSafeDirectory) {
  1173. // Setup the repository path as a safe directory, so if we pass this into a container job with a different user it doesn't fail
  1174. // Otherwise all git commands we run in a container fail
  1175. yield authHelper.configureTempGlobalConfig();
  1176. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  1177. yield git
  1178. .config('safe.directory', settings.repositoryPath, true, true)
  1179. .catch(error => {
  1180. core.info(`Failed to initialize safe directory with error: ${error}`);
  1181. });
  1182. stateHelper.setSafeDirectory();
  1183. }
  1184. }
  1185. // Prepare existing directory, otherwise recreate
  1186. if (isExisting) {
  1187. yield gitDirectoryHelper.prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean, settings.ref);
  1188. }
  1189. if (!git) {
  1190. // Downloading using REST API
  1191. core.info(`The repository will be downloaded using the GitHub REST API`);
  1192. core.info(`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
  1193. if (settings.submodules) {
  1194. throw new Error(`Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
  1195. }
  1196. else if (settings.sshKey) {
  1197. throw new Error(`Input 'ssh-key' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
  1198. }
  1199. yield githubApiHelper.downloadRepository(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath, settings.githubServerUrl);
  1200. return;
  1201. }
  1202. // Save state for POST action
  1203. stateHelper.setRepositoryPath(settings.repositoryPath);
  1204. // Initialize the repository
  1205. if (!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))) {
  1206. core.startGroup('Initializing the repository');
  1207. yield git.init();
  1208. yield git.remoteAdd('origin', repositoryUrl);
  1209. core.endGroup();
  1210. }
  1211. // Disable automatic garbage collection
  1212. core.startGroup('Disabling automatic garbage collection');
  1213. if (!(yield git.tryDisableAutomaticGarbageCollection())) {
  1214. core.warning(`Unable to turn off git automatic garbage collection. The git fetch operation may trigger garbage collection and cause a delay.`);
  1215. }
  1216. core.endGroup();
  1217. // If we didn't initialize it above, do it now
  1218. if (!authHelper) {
  1219. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  1220. }
  1221. // Configure auth
  1222. core.startGroup('Setting up auth');
  1223. yield authHelper.configureAuth();
  1224. core.endGroup();
  1225. // Determine the default branch
  1226. if (!settings.ref && !settings.commit) {
  1227. core.startGroup('Determining the default branch');
  1228. if (settings.sshKey) {
  1229. settings.ref = yield git.getDefaultBranch(repositoryUrl);
  1230. }
  1231. else {
  1232. settings.ref = yield githubApiHelper.getDefaultBranch(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.githubServerUrl);
  1233. }
  1234. core.endGroup();
  1235. }
  1236. // LFS install
  1237. if (settings.lfs) {
  1238. yield git.lfsInstall();
  1239. }
  1240. // Fetch
  1241. core.startGroup('Fetching the repository');
  1242. const fetchOptions = {};
  1243. if (settings.filter) {
  1244. fetchOptions.filter = settings.filter;
  1245. }
  1246. else if (settings.sparseCheckout) {
  1247. fetchOptions.filter = 'blob:none';
  1248. }
  1249. if (settings.fetchDepth <= 0) {
  1250. // Fetch all branches and tags
  1251. let refSpec = refHelper.getRefSpecForAllHistory(settings.ref, settings.commit);
  1252. yield git.fetch(refSpec, fetchOptions);
  1253. // When all history is fetched, the ref we're interested in may have moved to a different
  1254. // commit (push or force push). If so, fetch again with a targeted refspec.
  1255. if (!(yield refHelper.testRef(git, settings.ref, settings.commit))) {
  1256. refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  1257. yield git.fetch(refSpec, fetchOptions);
  1258. }
  1259. }
  1260. else {
  1261. fetchOptions.fetchDepth = settings.fetchDepth;
  1262. fetchOptions.fetchTags = settings.fetchTags;
  1263. const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  1264. yield git.fetch(refSpec, fetchOptions);
  1265. }
  1266. core.endGroup();
  1267. // Checkout info
  1268. core.startGroup('Determining the checkout info');
  1269. const checkoutInfo = yield refHelper.getCheckoutInfo(git, settings.ref, settings.commit);
  1270. core.endGroup();
  1271. // LFS fetch
  1272. // Explicit lfs-fetch to avoid slow checkout (fetches one lfs object at a time).
  1273. // Explicit lfs fetch will fetch lfs objects in parallel.
  1274. // For sparse checkouts, let `checkout` fetch the needed objects lazily.
  1275. if (settings.lfs && !settings.sparseCheckout) {
  1276. core.startGroup('Fetching LFS objects');
  1277. yield git.lfsFetch(checkoutInfo.startPoint || checkoutInfo.ref);
  1278. core.endGroup();
  1279. }
  1280. // Sparse checkout
  1281. if (settings.sparseCheckout) {
  1282. core.startGroup('Setting up sparse checkout');
  1283. if (settings.sparseCheckoutConeMode) {
  1284. yield git.sparseCheckout(settings.sparseCheckout);
  1285. }
  1286. else {
  1287. yield git.sparseCheckoutNonConeMode(settings.sparseCheckout);
  1288. }
  1289. core.endGroup();
  1290. }
  1291. // Checkout
  1292. core.startGroup('Checking out the ref');
  1293. yield git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
  1294. core.endGroup();
  1295. // Submodules
  1296. if (settings.submodules) {
  1297. // Temporarily override global config
  1298. core.startGroup('Setting up auth for fetching submodules');
  1299. yield authHelper.configureGlobalAuth();
  1300. core.endGroup();
  1301. // Checkout submodules
  1302. core.startGroup('Fetching submodules');
  1303. yield git.submoduleSync(settings.nestedSubmodules);
  1304. yield git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
  1305. yield git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
  1306. core.endGroup();
  1307. // Persist credentials
  1308. if (settings.persistCredentials) {
  1309. core.startGroup('Persisting credentials for submodules');
  1310. yield authHelper.configureSubmoduleAuth();
  1311. core.endGroup();
  1312. }
  1313. }
  1314. // Get commit information
  1315. const commitInfo = yield git.log1();
  1316. // Log commit sha
  1317. yield git.log1("--format='%H'");
  1318. // Check for incorrect pull request merge commit
  1319. yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.githubServerUrl);
  1320. }
  1321. finally {
  1322. // Remove auth
  1323. if (authHelper) {
  1324. if (!settings.persistCredentials) {
  1325. core.startGroup('Removing auth');
  1326. yield authHelper.removeAuth();
  1327. core.endGroup();
  1328. }
  1329. authHelper.removeGlobalConfig();
  1330. }
  1331. }
  1332. });
  1333. }
  1334. exports.getSource = getSource;
  1335. function cleanup(repositoryPath) {
  1336. return __awaiter(this, void 0, void 0, function* () {
  1337. // Repo exists?
  1338. if (!repositoryPath ||
  1339. !fsHelper.fileExistsSync(path.join(repositoryPath, '.git', 'config'))) {
  1340. return;
  1341. }
  1342. let git;
  1343. try {
  1344. git = yield gitCommandManager.createCommandManager(repositoryPath, false, false);
  1345. }
  1346. catch (_a) {
  1347. return;
  1348. }
  1349. // Remove auth
  1350. const authHelper = gitAuthHelper.createAuthHelper(git);
  1351. try {
  1352. if (stateHelper.PostSetSafeDirectory) {
  1353. // Setup the repository path as a safe directory, so if we pass this into a container job with a different user it doesn't fail
  1354. // Otherwise all git commands we run in a container fail
  1355. yield authHelper.configureTempGlobalConfig();
  1356. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  1357. yield git
  1358. .config('safe.directory', repositoryPath, true, true)
  1359. .catch(error => {
  1360. core.info(`Failed to initialize safe directory with error: ${error}`);
  1361. });
  1362. }
  1363. yield authHelper.removeAuth();
  1364. }
  1365. finally {
  1366. yield authHelper.removeGlobalConfig();
  1367. }
  1368. });
  1369. }
  1370. exports.cleanup = cleanup;
  1371. function getGitCommandManager(settings) {
  1372. return __awaiter(this, void 0, void 0, function* () {
  1373. core.info(`Working directory is '${settings.repositoryPath}'`);
  1374. try {
  1375. return yield gitCommandManager.createCommandManager(settings.repositoryPath, settings.lfs, settings.sparseCheckout != null);
  1376. }
  1377. catch (err) {
  1378. // Git is required for LFS
  1379. if (settings.lfs) {
  1380. throw err;
  1381. }
  1382. // Otherwise fallback to REST API
  1383. return undefined;
  1384. }
  1385. });
  1386. }
  1387. /***/ }),
  1388. /***/ 3142:
  1389. /***/ ((__unused_webpack_module, exports) => {
  1390. "use strict";
  1391. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1392. exports.GitVersion = void 0;
  1393. class GitVersion {
  1394. /**
  1395. * Used for comparing the version of git and git-lfs against the minimum required version
  1396. * @param version the version string, e.g. 1.2 or 1.2.3
  1397. */
  1398. constructor(version) {
  1399. this.major = NaN;
  1400. this.minor = NaN;
  1401. this.patch = NaN;
  1402. if (version) {
  1403. const match = version.match(/^(\d+)\.(\d+)(\.(\d+))?$/);
  1404. if (match) {
  1405. this.major = Number(match[1]);
  1406. this.minor = Number(match[2]);
  1407. if (match[4]) {
  1408. this.patch = Number(match[4]);
  1409. }
  1410. }
  1411. }
  1412. }
  1413. /**
  1414. * Compares the instance against a minimum required version
  1415. * @param minimum Minimum version
  1416. */
  1417. checkMinimum(minimum) {
  1418. if (!minimum.isValid()) {
  1419. throw new Error('Arg minimum is not a valid version');
  1420. }
  1421. // Major is insufficient
  1422. if (this.major < minimum.major) {
  1423. return false;
  1424. }
  1425. // Major is equal
  1426. if (this.major === minimum.major) {
  1427. // Minor is insufficient
  1428. if (this.minor < minimum.minor) {
  1429. return false;
  1430. }
  1431. // Minor is equal
  1432. if (this.minor === minimum.minor) {
  1433. // Patch is insufficient
  1434. if (this.patch && this.patch < (minimum.patch || 0)) {
  1435. return false;
  1436. }
  1437. }
  1438. }
  1439. return true;
  1440. }
  1441. /**
  1442. * Indicates whether the instance was constructed from a valid version string
  1443. */
  1444. isValid() {
  1445. return !isNaN(this.major);
  1446. }
  1447. /**
  1448. * Returns the version as a string, e.g. 1.2 or 1.2.3
  1449. */
  1450. toString() {
  1451. let result = '';
  1452. if (this.isValid()) {
  1453. result = `${this.major}.${this.minor}`;
  1454. if (!isNaN(this.patch)) {
  1455. result += `.${this.patch}`;
  1456. }
  1457. }
  1458. return result;
  1459. }
  1460. }
  1461. exports.GitVersion = GitVersion;
  1462. /***/ }),
  1463. /***/ 138:
  1464. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1465. "use strict";
  1466. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1467. if (k2 === undefined) k2 = k;
  1468. var desc = Object.getOwnPropertyDescriptor(m, k);
  1469. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  1470. desc = { enumerable: true, get: function() { return m[k]; } };
  1471. }
  1472. Object.defineProperty(o, k2, desc);
  1473. }) : (function(o, m, k, k2) {
  1474. if (k2 === undefined) k2 = k;
  1475. o[k2] = m[k];
  1476. }));
  1477. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1478. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1479. }) : function(o, v) {
  1480. o["default"] = v;
  1481. });
  1482. var __importStar = (this && this.__importStar) || function (mod) {
  1483. if (mod && mod.__esModule) return mod;
  1484. var result = {};
  1485. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1486. __setModuleDefault(result, mod);
  1487. return result;
  1488. };
  1489. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1490. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1491. return new (P || (P = Promise))(function (resolve, reject) {
  1492. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1493. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1494. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1495. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1496. });
  1497. };
  1498. var __importDefault = (this && this.__importDefault) || function (mod) {
  1499. return (mod && mod.__esModule) ? mod : { "default": mod };
  1500. };
  1501. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1502. exports.getDefaultBranch = exports.downloadRepository = void 0;
  1503. const assert = __importStar(__nccwpck_require__(9491));
  1504. const core = __importStar(__nccwpck_require__(2186));
  1505. const fs = __importStar(__nccwpck_require__(7147));
  1506. const github = __importStar(__nccwpck_require__(5438));
  1507. const io = __importStar(__nccwpck_require__(7436));
  1508. const path = __importStar(__nccwpck_require__(1017));
  1509. const retryHelper = __importStar(__nccwpck_require__(2155));
  1510. const toolCache = __importStar(__nccwpck_require__(7784));
  1511. const v4_1 = __importDefault(__nccwpck_require__(824));
  1512. const url_helper_1 = __nccwpck_require__(9437);
  1513. const IS_WINDOWS = process.platform === 'win32';
  1514. function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath, baseUrl) {
  1515. return __awaiter(this, void 0, void 0, function* () {
  1516. // Determine the default branch
  1517. if (!ref && !commit) {
  1518. core.info('Determining the default branch');
  1519. ref = yield getDefaultBranch(authToken, owner, repo, baseUrl);
  1520. }
  1521. // Download the archive
  1522. let archiveData = yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  1523. core.info('Downloading the archive');
  1524. return yield downloadArchive(authToken, owner, repo, ref, commit, baseUrl);
  1525. }));
  1526. // Write archive to disk
  1527. core.info('Writing archive to disk');
  1528. const uniqueId = (0, v4_1.default)();
  1529. const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`);
  1530. yield fs.promises.writeFile(archivePath, archiveData);
  1531. archiveData = Buffer.from(''); // Free memory
  1532. // Extract archive
  1533. core.info('Extracting the archive');
  1534. const extractPath = path.join(repositoryPath, uniqueId);
  1535. yield io.mkdirP(extractPath);
  1536. if (IS_WINDOWS) {
  1537. yield toolCache.extractZip(archivePath, extractPath);
  1538. }
  1539. else {
  1540. yield toolCache.extractTar(archivePath, extractPath);
  1541. }
  1542. yield io.rmRF(archivePath);
  1543. // Determine the path of the repository content. The archive contains
  1544. // a top-level folder and the repository content is inside.
  1545. const archiveFileNames = yield fs.promises.readdir(extractPath);
  1546. assert.ok(archiveFileNames.length == 1, 'Expected exactly one directory inside archive');
  1547. const archiveVersion = archiveFileNames[0]; // The top-level folder name includes the short SHA
  1548. core.info(`Resolved version ${archiveVersion}`);
  1549. const tempRepositoryPath = path.join(extractPath, archiveVersion);
  1550. // Move the files
  1551. for (const fileName of yield fs.promises.readdir(tempRepositoryPath)) {
  1552. const sourcePath = path.join(tempRepositoryPath, fileName);
  1553. const targetPath = path.join(repositoryPath, fileName);
  1554. if (IS_WINDOWS) {
  1555. yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
  1556. }
  1557. else {
  1558. yield io.mv(sourcePath, targetPath);
  1559. }
  1560. }
  1561. yield io.rmRF(extractPath);
  1562. });
  1563. }
  1564. exports.downloadRepository = downloadRepository;
  1565. /**
  1566. * Looks up the default branch name
  1567. */
  1568. function getDefaultBranch(authToken, owner, repo, baseUrl) {
  1569. return __awaiter(this, void 0, void 0, function* () {
  1570. return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  1571. core.info('Retrieving the default branch name');
  1572. const octokit = github.getOctokit(authToken, {
  1573. baseUrl: (0, url_helper_1.getServerApiUrl)(baseUrl)
  1574. });
  1575. let result;
  1576. try {
  1577. // Get the default branch from the repo info
  1578. const response = yield octokit.rest.repos.get({ owner, repo });
  1579. result = response.data.default_branch;
  1580. assert.ok(result, 'default_branch cannot be empty');
  1581. }
  1582. catch (err) {
  1583. // Handle .wiki repo
  1584. if ((err === null || err === void 0 ? void 0 : err.status) === 404 &&
  1585. repo.toUpperCase().endsWith('.WIKI')) {
  1586. result = 'master';
  1587. }
  1588. // Otherwise error
  1589. else {
  1590. throw err;
  1591. }
  1592. }
  1593. // Print the default branch
  1594. core.info(`Default branch '${result}'`);
  1595. // Prefix with 'refs/heads'
  1596. if (!result.startsWith('refs/')) {
  1597. result = `refs/heads/${result}`;
  1598. }
  1599. return result;
  1600. }));
  1601. });
  1602. }
  1603. exports.getDefaultBranch = getDefaultBranch;
  1604. function downloadArchive(authToken, owner, repo, ref, commit, baseUrl) {
  1605. return __awaiter(this, void 0, void 0, function* () {
  1606. const octokit = github.getOctokit(authToken, {
  1607. baseUrl: (0, url_helper_1.getServerApiUrl)(baseUrl)
  1608. });
  1609. const download = IS_WINDOWS
  1610. ? octokit.rest.repos.downloadZipballArchive
  1611. : octokit.rest.repos.downloadTarballArchive;
  1612. const response = yield download({
  1613. owner: owner,
  1614. repo: repo,
  1615. ref: commit || ref
  1616. });
  1617. return Buffer.from(response.data); // response.data is ArrayBuffer
  1618. });
  1619. }
  1620. /***/ }),
  1621. /***/ 5480:
  1622. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1623. "use strict";
  1624. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1625. if (k2 === undefined) k2 = k;
  1626. var desc = Object.getOwnPropertyDescriptor(m, k);
  1627. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  1628. desc = { enumerable: true, get: function() { return m[k]; } };
  1629. }
  1630. Object.defineProperty(o, k2, desc);
  1631. }) : (function(o, m, k, k2) {
  1632. if (k2 === undefined) k2 = k;
  1633. o[k2] = m[k];
  1634. }));
  1635. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1636. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1637. }) : function(o, v) {
  1638. o["default"] = v;
  1639. });
  1640. var __importStar = (this && this.__importStar) || function (mod) {
  1641. if (mod && mod.__esModule) return mod;
  1642. var result = {};
  1643. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1644. __setModuleDefault(result, mod);
  1645. return result;
  1646. };
  1647. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1648. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1649. return new (P || (P = Promise))(function (resolve, reject) {
  1650. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1651. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1652. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1653. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1654. });
  1655. };
  1656. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1657. exports.getInputs = void 0;
  1658. const core = __importStar(__nccwpck_require__(2186));
  1659. const fsHelper = __importStar(__nccwpck_require__(7219));
  1660. const github = __importStar(__nccwpck_require__(5438));
  1661. const path = __importStar(__nccwpck_require__(1017));
  1662. const workflowContextHelper = __importStar(__nccwpck_require__(9568));
  1663. function getInputs() {
  1664. return __awaiter(this, void 0, void 0, function* () {
  1665. const result = {};
  1666. // GitHub workspace
  1667. let githubWorkspacePath = process.env['GITHUB_WORKSPACE'];
  1668. if (!githubWorkspacePath) {
  1669. throw new Error('GITHUB_WORKSPACE not defined');
  1670. }
  1671. githubWorkspacePath = path.resolve(githubWorkspacePath);
  1672. core.debug(`GITHUB_WORKSPACE = '${githubWorkspacePath}'`);
  1673. fsHelper.directoryExistsSync(githubWorkspacePath, true);
  1674. // Qualified repository
  1675. const qualifiedRepository = core.getInput('repository') ||
  1676. `${github.context.repo.owner}/${github.context.repo.repo}`;
  1677. core.debug(`qualified repository = '${qualifiedRepository}'`);
  1678. const splitRepository = qualifiedRepository.split('/');
  1679. if (splitRepository.length !== 2 ||
  1680. !splitRepository[0] ||
  1681. !splitRepository[1]) {
  1682. throw new Error(`Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`);
  1683. }
  1684. result.repositoryOwner = splitRepository[0];
  1685. result.repositoryName = splitRepository[1];
  1686. // Repository path
  1687. result.repositoryPath = core.getInput('path') || '.';
  1688. result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
  1689. if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
  1690. throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
  1691. }
  1692. // Workflow repository?
  1693. const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
  1694. `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
  1695. // Source branch, source version
  1696. result.ref = core.getInput('ref');
  1697. if (!result.ref) {
  1698. if (isWorkflowRepository) {
  1699. result.ref = github.context.ref;
  1700. result.commit = github.context.sha;
  1701. // Some events have an unqualifed ref. For example when a PR is merged (pull_request closed event),
  1702. // the ref is unqualifed like "main" instead of "refs/heads/main".
  1703. if (result.commit && result.ref && !result.ref.startsWith('refs/')) {
  1704. result.ref = `refs/heads/${result.ref}`;
  1705. }
  1706. }
  1707. }
  1708. // SHA?
  1709. else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
  1710. result.commit = result.ref;
  1711. result.ref = '';
  1712. }
  1713. core.debug(`ref = '${result.ref}'`);
  1714. core.debug(`commit = '${result.commit}'`);
  1715. // Clean
  1716. result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';
  1717. core.debug(`clean = ${result.clean}`);
  1718. // Filter
  1719. const filter = core.getInput('filter');
  1720. if (filter) {
  1721. result.filter = filter;
  1722. }
  1723. core.debug(`filter = ${result.filter}`);
  1724. // Sparse checkout
  1725. const sparseCheckout = core.getMultilineInput('sparse-checkout');
  1726. if (sparseCheckout.length) {
  1727. result.sparseCheckout = sparseCheckout;
  1728. core.debug(`sparse checkout = ${result.sparseCheckout}`);
  1729. }
  1730. result.sparseCheckoutConeMode =
  1731. (core.getInput('sparse-checkout-cone-mode') || 'true').toUpperCase() ===
  1732. 'TRUE';
  1733. // Fetch depth
  1734. result.fetchDepth = Math.floor(Number(core.getInput('fetch-depth') || '1'));
  1735. if (isNaN(result.fetchDepth) || result.fetchDepth < 0) {
  1736. result.fetchDepth = 0;
  1737. }
  1738. core.debug(`fetch depth = ${result.fetchDepth}`);
  1739. // Fetch tags
  1740. result.fetchTags =
  1741. (core.getInput('fetch-tags') || 'false').toUpperCase() === 'TRUE';
  1742. core.debug(`fetch tags = ${result.fetchTags}`);
  1743. // Show fetch progress
  1744. result.showProgress =
  1745. (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE';
  1746. core.debug(`show progress = ${result.showProgress}`);
  1747. // LFS
  1748. result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
  1749. core.debug(`lfs = ${result.lfs}`);
  1750. // Submodules
  1751. result.submodules = false;
  1752. result.nestedSubmodules = false;
  1753. const submodulesString = (core.getInput('submodules') || '').toUpperCase();
  1754. if (submodulesString == 'RECURSIVE') {
  1755. result.submodules = true;
  1756. result.nestedSubmodules = true;
  1757. }
  1758. else if (submodulesString == 'TRUE') {
  1759. result.submodules = true;
  1760. }
  1761. core.debug(`submodules = ${result.submodules}`);
  1762. core.debug(`recursive submodules = ${result.nestedSubmodules}`);
  1763. // Auth token
  1764. result.authToken = core.getInput('token', { required: true });
  1765. // SSH
  1766. result.sshKey = core.getInput('ssh-key');
  1767. result.sshKnownHosts = core.getInput('ssh-known-hosts');
  1768. result.sshStrict =
  1769. (core.getInput('ssh-strict') || 'true').toUpperCase() === 'TRUE';
  1770. // Persist credentials
  1771. result.persistCredentials =
  1772. (core.getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE';
  1773. // Workflow organization ID
  1774. result.workflowOrganizationId =
  1775. yield workflowContextHelper.getOrganizationId();
  1776. // Set safe.directory in git global config.
  1777. result.setSafeDirectory =
  1778. (core.getInput('set-safe-directory') || 'true').toUpperCase() === 'TRUE';
  1779. // Determine the GitHub URL that the repository is being hosted from
  1780. result.githubServerUrl = core.getInput('github-server-url');
  1781. core.debug(`GitHub Host URL = ${result.githubServerUrl}`);
  1782. return result;
  1783. });
  1784. }
  1785. exports.getInputs = getInputs;
  1786. /***/ }),
  1787. /***/ 3109:
  1788. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1789. "use strict";
  1790. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1791. if (k2 === undefined) k2 = k;
  1792. var desc = Object.getOwnPropertyDescriptor(m, k);
  1793. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  1794. desc = { enumerable: true, get: function() { return m[k]; } };
  1795. }
  1796. Object.defineProperty(o, k2, desc);
  1797. }) : (function(o, m, k, k2) {
  1798. if (k2 === undefined) k2 = k;
  1799. o[k2] = m[k];
  1800. }));
  1801. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1802. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1803. }) : function(o, v) {
  1804. o["default"] = v;
  1805. });
  1806. var __importStar = (this && this.__importStar) || function (mod) {
  1807. if (mod && mod.__esModule) return mod;
  1808. var result = {};
  1809. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1810. __setModuleDefault(result, mod);
  1811. return result;
  1812. };
  1813. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1814. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1815. return new (P || (P = Promise))(function (resolve, reject) {
  1816. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1817. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1818. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1819. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1820. });
  1821. };
  1822. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1823. const core = __importStar(__nccwpck_require__(2186));
  1824. const coreCommand = __importStar(__nccwpck_require__(7351));
  1825. const gitSourceProvider = __importStar(__nccwpck_require__(9210));
  1826. const inputHelper = __importStar(__nccwpck_require__(5480));
  1827. const path = __importStar(__nccwpck_require__(1017));
  1828. const stateHelper = __importStar(__nccwpck_require__(8647));
  1829. function run() {
  1830. var _a;
  1831. return __awaiter(this, void 0, void 0, function* () {
  1832. try {
  1833. const sourceSettings = yield inputHelper.getInputs();
  1834. try {
  1835. // Register problem matcher
  1836. coreCommand.issueCommand('add-matcher', {}, path.join(__dirname, 'problem-matcher.json'));
  1837. // Get sources
  1838. yield gitSourceProvider.getSource(sourceSettings);
  1839. }
  1840. finally {
  1841. // Unregister problem matcher
  1842. coreCommand.issueCommand('remove-matcher', { owner: 'checkout-git' }, '');
  1843. }
  1844. }
  1845. catch (error) {
  1846. core.setFailed(`${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);
  1847. }
  1848. });
  1849. }
  1850. function cleanup() {
  1851. var _a;
  1852. return __awaiter(this, void 0, void 0, function* () {
  1853. try {
  1854. yield gitSourceProvider.cleanup(stateHelper.RepositoryPath);
  1855. }
  1856. catch (error) {
  1857. core.warning(`${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);
  1858. }
  1859. });
  1860. }
  1861. // Main
  1862. if (!stateHelper.IsPost) {
  1863. run();
  1864. }
  1865. // Post
  1866. else {
  1867. cleanup();
  1868. }
  1869. /***/ }),
  1870. /***/ 8601:
  1871. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  1872. "use strict";
  1873. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1874. if (k2 === undefined) k2 = k;
  1875. var desc = Object.getOwnPropertyDescriptor(m, k);
  1876. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  1877. desc = { enumerable: true, get: function() { return m[k]; } };
  1878. }
  1879. Object.defineProperty(o, k2, desc);
  1880. }) : (function(o, m, k, k2) {
  1881. if (k2 === undefined) k2 = k;
  1882. o[k2] = m[k];
  1883. }));
  1884. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1885. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1886. }) : function(o, v) {
  1887. o["default"] = v;
  1888. });
  1889. var __importStar = (this && this.__importStar) || function (mod) {
  1890. if (mod && mod.__esModule) return mod;
  1891. var result = {};
  1892. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1893. __setModuleDefault(result, mod);
  1894. return result;
  1895. };
  1896. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  1897. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  1898. return new (P || (P = Promise))(function (resolve, reject) {
  1899. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  1900. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  1901. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  1902. step((generator = generator.apply(thisArg, _arguments || [])).next());
  1903. });
  1904. };
  1905. Object.defineProperty(exports, "__esModule", ({ value: true }));
  1906. exports.checkCommitInfo = exports.testRef = exports.getRefSpec = exports.getRefSpecForAllHistory = exports.getCheckoutInfo = exports.tagsRefSpec = void 0;
  1907. const core = __importStar(__nccwpck_require__(2186));
  1908. const github = __importStar(__nccwpck_require__(5438));
  1909. const url_helper_1 = __nccwpck_require__(9437);
  1910. exports.tagsRefSpec = '+refs/tags/*:refs/tags/*';
  1911. function getCheckoutInfo(git, ref, commit) {
  1912. return __awaiter(this, void 0, void 0, function* () {
  1913. if (!git) {
  1914. throw new Error('Arg git cannot be empty');
  1915. }
  1916. if (!ref && !commit) {
  1917. throw new Error('Args ref and commit cannot both be empty');
  1918. }
  1919. const result = {};
  1920. const upperRef = (ref || '').toUpperCase();
  1921. // SHA only
  1922. if (!ref) {
  1923. result.ref = commit;
  1924. }
  1925. // refs/heads/
  1926. else if (upperRef.startsWith('REFS/HEADS/')) {
  1927. const branch = ref.substring('refs/heads/'.length);
  1928. result.ref = branch;
  1929. result.startPoint = `refs/remotes/origin/${branch}`;
  1930. }
  1931. // refs/pull/
  1932. else if (upperRef.startsWith('REFS/PULL/')) {
  1933. const branch = ref.substring('refs/pull/'.length);
  1934. result.ref = `refs/remotes/pull/${branch}`;
  1935. }
  1936. // refs/tags/
  1937. else if (upperRef.startsWith('REFS/')) {
  1938. result.ref = ref;
  1939. }
  1940. // Unqualified ref, check for a matching branch or tag
  1941. else {
  1942. if (yield git.branchExists(true, `origin/${ref}`)) {
  1943. result.ref = ref;
  1944. result.startPoint = `refs/remotes/origin/${ref}`;
  1945. }
  1946. else if (yield git.tagExists(`${ref}`)) {
  1947. result.ref = `refs/tags/${ref}`;
  1948. }
  1949. else {
  1950. throw new Error(`A branch or tag with the name '${ref}' could not be found`);
  1951. }
  1952. }
  1953. return result;
  1954. });
  1955. }
  1956. exports.getCheckoutInfo = getCheckoutInfo;
  1957. function getRefSpecForAllHistory(ref, commit) {
  1958. const result = ['+refs/heads/*:refs/remotes/origin/*', exports.tagsRefSpec];
  1959. if (ref && ref.toUpperCase().startsWith('REFS/PULL/')) {
  1960. const branch = ref.substring('refs/pull/'.length);
  1961. result.push(`+${commit || ref}:refs/remotes/pull/${branch}`);
  1962. }
  1963. return result;
  1964. }
  1965. exports.getRefSpecForAllHistory = getRefSpecForAllHistory;
  1966. function getRefSpec(ref, commit) {
  1967. if (!ref && !commit) {
  1968. throw new Error('Args ref and commit cannot both be empty');
  1969. }
  1970. const upperRef = (ref || '').toUpperCase();
  1971. // SHA
  1972. if (commit) {
  1973. // refs/heads
  1974. if (upperRef.startsWith('REFS/HEADS/')) {
  1975. const branch = ref.substring('refs/heads/'.length);
  1976. return [`+${commit}:refs/remotes/origin/${branch}`];
  1977. }
  1978. // refs/pull/
  1979. else if (upperRef.startsWith('REFS/PULL/')) {
  1980. const branch = ref.substring('refs/pull/'.length);
  1981. return [`+${commit}:refs/remotes/pull/${branch}`];
  1982. }
  1983. // refs/tags/
  1984. else if (upperRef.startsWith('REFS/TAGS/')) {
  1985. return [`+${commit}:${ref}`];
  1986. }
  1987. // Otherwise no destination ref
  1988. else {
  1989. return [commit];
  1990. }
  1991. }
  1992. // Unqualified ref, check for a matching branch or tag
  1993. else if (!upperRef.startsWith('REFS/')) {
  1994. return [
  1995. `+refs/heads/${ref}*:refs/remotes/origin/${ref}*`,
  1996. `+refs/tags/${ref}*:refs/tags/${ref}*`
  1997. ];
  1998. }
  1999. // refs/heads/
  2000. else if (upperRef.startsWith('REFS/HEADS/')) {
  2001. const branch = ref.substring('refs/heads/'.length);
  2002. return [`+${ref}:refs/remotes/origin/${branch}`];
  2003. }
  2004. // refs/pull/
  2005. else if (upperRef.startsWith('REFS/PULL/')) {
  2006. const branch = ref.substring('refs/pull/'.length);
  2007. return [`+${ref}:refs/remotes/pull/${branch}`];
  2008. }
  2009. // refs/tags/
  2010. else {
  2011. return [`+${ref}:${ref}`];
  2012. }
  2013. }
  2014. exports.getRefSpec = getRefSpec;
  2015. /**
  2016. * Tests whether the initial fetch created the ref at the expected commit
  2017. */
  2018. function testRef(git, ref, commit) {
  2019. return __awaiter(this, void 0, void 0, function* () {
  2020. if (!git) {
  2021. throw new Error('Arg git cannot be empty');
  2022. }
  2023. if (!ref && !commit) {
  2024. throw new Error('Args ref and commit cannot both be empty');
  2025. }
  2026. // No SHA? Nothing to test
  2027. if (!commit) {
  2028. return true;
  2029. }
  2030. // SHA only?
  2031. else if (!ref) {
  2032. return yield git.shaExists(commit);
  2033. }
  2034. const upperRef = ref.toUpperCase();
  2035. // refs/heads/
  2036. if (upperRef.startsWith('REFS/HEADS/')) {
  2037. const branch = ref.substring('refs/heads/'.length);
  2038. return ((yield git.branchExists(true, `origin/${branch}`)) &&
  2039. commit === (yield git.revParse(`refs/remotes/origin/${branch}`)));
  2040. }
  2041. // refs/pull/
  2042. else if (upperRef.startsWith('REFS/PULL/')) {
  2043. // Assume matches because fetched using the commit
  2044. return true;
  2045. }
  2046. // refs/tags/
  2047. else if (upperRef.startsWith('REFS/TAGS/')) {
  2048. const tagName = ref.substring('refs/tags/'.length);
  2049. return ((yield git.tagExists(tagName)) && commit === (yield git.revParse(ref)));
  2050. }
  2051. // Unexpected
  2052. else {
  2053. core.debug(`Unexpected ref format '${ref}' when testing ref info`);
  2054. return true;
  2055. }
  2056. });
  2057. }
  2058. exports.testRef = testRef;
  2059. function checkCommitInfo(token, commitInfo, repositoryOwner, repositoryName, ref, commit, baseUrl) {
  2060. var _a;
  2061. return __awaiter(this, void 0, void 0, function* () {
  2062. try {
  2063. // GHES?
  2064. if ((0, url_helper_1.isGhes)(baseUrl)) {
  2065. return;
  2066. }
  2067. // Auth token?
  2068. if (!token) {
  2069. return;
  2070. }
  2071. // Public PR synchronize, for workflow repo?
  2072. if (fromPayload('repository.private') !== false ||
  2073. github.context.eventName !== 'pull_request' ||
  2074. fromPayload('action') !== 'synchronize' ||
  2075. repositoryOwner !== github.context.repo.owner ||
  2076. repositoryName !== github.context.repo.repo ||
  2077. ref !== github.context.ref ||
  2078. !ref.startsWith('refs/pull/') ||
  2079. commit !== github.context.sha) {
  2080. return;
  2081. }
  2082. // Head SHA
  2083. const expectedHeadSha = fromPayload('after');
  2084. if (!expectedHeadSha) {
  2085. core.debug('Unable to determine head sha');
  2086. return;
  2087. }
  2088. // Base SHA
  2089. const expectedBaseSha = fromPayload('pull_request.base.sha');
  2090. if (!expectedBaseSha) {
  2091. core.debug('Unable to determine base sha');
  2092. return;
  2093. }
  2094. // Expected message?
  2095. const expectedMessage = `Merge ${expectedHeadSha} into ${expectedBaseSha}`;
  2096. if (commitInfo.indexOf(expectedMessage) >= 0) {
  2097. return;
  2098. }
  2099. // Extract details from message
  2100. const match = commitInfo.match(/Merge ([0-9a-f]{40}) into ([0-9a-f]{40})/);
  2101. if (!match) {
  2102. core.debug('Unexpected message format');
  2103. return;
  2104. }
  2105. // Post telemetry
  2106. const actualHeadSha = match[1];
  2107. if (actualHeadSha !== expectedHeadSha) {
  2108. core.debug(`Expected head sha ${expectedHeadSha}; actual head sha ${actualHeadSha}`);
  2109. const octokit = github.getOctokit(token, {
  2110. baseUrl: (0, url_helper_1.getServerApiUrl)(baseUrl),
  2111. userAgent: `actions-checkout-tracepoint/1.0 (code=STALE_MERGE;owner=${repositoryOwner};repo=${repositoryName};pr=${fromPayload('number')};run_id=${process.env['GITHUB_RUN_ID']};expected_head_sha=${expectedHeadSha};actual_head_sha=${actualHeadSha})`
  2112. });
  2113. yield octokit.rest.repos.get({
  2114. owner: repositoryOwner,
  2115. repo: repositoryName
  2116. });
  2117. }
  2118. }
  2119. catch (err) {
  2120. core.debug(`Error when validating commit info: ${(_a = err === null || err === void 0 ? void 0 : err.stack) !== null && _a !== void 0 ? _a : err}`);
  2121. }
  2122. });
  2123. }
  2124. exports.checkCommitInfo = checkCommitInfo;
  2125. function fromPayload(path) {
  2126. return select(github.context.payload, path);
  2127. }
  2128. function select(obj, path) {
  2129. if (!obj) {
  2130. return undefined;
  2131. }
  2132. const i = path.indexOf('.');
  2133. if (i < 0) {
  2134. return obj[path];
  2135. }
  2136. const key = path.substr(0, i);
  2137. return select(obj[key], path.substr(i + 1));
  2138. }
  2139. /***/ }),
  2140. /***/ 3120:
  2141. /***/ ((__unused_webpack_module, exports) => {
  2142. "use strict";
  2143. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2144. exports.escape = void 0;
  2145. function escape(value) {
  2146. return value.replace(/[^a-zA-Z0-9_]/g, x => {
  2147. return `\\${x}`;
  2148. });
  2149. }
  2150. exports.escape = escape;
  2151. /***/ }),
  2152. /***/ 2155:
  2153. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2154. "use strict";
  2155. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2156. if (k2 === undefined) k2 = k;
  2157. var desc = Object.getOwnPropertyDescriptor(m, k);
  2158. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  2159. desc = { enumerable: true, get: function() { return m[k]; } };
  2160. }
  2161. Object.defineProperty(o, k2, desc);
  2162. }) : (function(o, m, k, k2) {
  2163. if (k2 === undefined) k2 = k;
  2164. o[k2] = m[k];
  2165. }));
  2166. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2167. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2168. }) : function(o, v) {
  2169. o["default"] = v;
  2170. });
  2171. var __importStar = (this && this.__importStar) || function (mod) {
  2172. if (mod && mod.__esModule) return mod;
  2173. var result = {};
  2174. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2175. __setModuleDefault(result, mod);
  2176. return result;
  2177. };
  2178. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2179. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2180. return new (P || (P = Promise))(function (resolve, reject) {
  2181. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2182. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2183. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2184. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2185. });
  2186. };
  2187. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2188. exports.execute = exports.RetryHelper = void 0;
  2189. const core = __importStar(__nccwpck_require__(2186));
  2190. const defaultMaxAttempts = 3;
  2191. const defaultMinSeconds = 10;
  2192. const defaultMaxSeconds = 20;
  2193. class RetryHelper {
  2194. constructor(maxAttempts = defaultMaxAttempts, minSeconds = defaultMinSeconds, maxSeconds = defaultMaxSeconds) {
  2195. this.maxAttempts = maxAttempts;
  2196. this.minSeconds = Math.floor(minSeconds);
  2197. this.maxSeconds = Math.floor(maxSeconds);
  2198. if (this.minSeconds > this.maxSeconds) {
  2199. throw new Error('min seconds should be less than or equal to max seconds');
  2200. }
  2201. }
  2202. execute(action) {
  2203. return __awaiter(this, void 0, void 0, function* () {
  2204. let attempt = 1;
  2205. while (attempt < this.maxAttempts) {
  2206. // Try
  2207. try {
  2208. return yield action();
  2209. }
  2210. catch (err) {
  2211. core.info(err === null || err === void 0 ? void 0 : err.message);
  2212. }
  2213. // Sleep
  2214. const seconds = this.getSleepAmount();
  2215. core.info(`Waiting ${seconds} seconds before trying again`);
  2216. yield this.sleep(seconds);
  2217. attempt++;
  2218. }
  2219. // Last attempt
  2220. return yield action();
  2221. });
  2222. }
  2223. getSleepAmount() {
  2224. return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) +
  2225. this.minSeconds);
  2226. }
  2227. sleep(seconds) {
  2228. return __awaiter(this, void 0, void 0, function* () {
  2229. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  2230. });
  2231. }
  2232. }
  2233. exports.RetryHelper = RetryHelper;
  2234. function execute(action) {
  2235. return __awaiter(this, void 0, void 0, function* () {
  2236. const retryHelper = new RetryHelper();
  2237. return yield retryHelper.execute(action);
  2238. });
  2239. }
  2240. exports.execute = execute;
  2241. /***/ }),
  2242. /***/ 8647:
  2243. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2244. "use strict";
  2245. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2246. if (k2 === undefined) k2 = k;
  2247. var desc = Object.getOwnPropertyDescriptor(m, k);
  2248. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  2249. desc = { enumerable: true, get: function() { return m[k]; } };
  2250. }
  2251. Object.defineProperty(o, k2, desc);
  2252. }) : (function(o, m, k, k2) {
  2253. if (k2 === undefined) k2 = k;
  2254. o[k2] = m[k];
  2255. }));
  2256. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2257. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2258. }) : function(o, v) {
  2259. o["default"] = v;
  2260. });
  2261. var __importStar = (this && this.__importStar) || function (mod) {
  2262. if (mod && mod.__esModule) return mod;
  2263. var result = {};
  2264. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2265. __setModuleDefault(result, mod);
  2266. return result;
  2267. };
  2268. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2269. exports.setSafeDirectory = exports.setSshKnownHostsPath = exports.setSshKeyPath = exports.setRepositoryPath = exports.SshKnownHostsPath = exports.SshKeyPath = exports.PostSetSafeDirectory = exports.RepositoryPath = exports.IsPost = void 0;
  2270. const core = __importStar(__nccwpck_require__(2186));
  2271. /**
  2272. * Indicates whether the POST action is running
  2273. */
  2274. exports.IsPost = !!core.getState('isPost');
  2275. /**
  2276. * The repository path for the POST action. The value is empty during the MAIN action.
  2277. */
  2278. exports.RepositoryPath = core.getState('repositoryPath');
  2279. /**
  2280. * The set-safe-directory for the POST action. The value is set if input: 'safe-directory' is set during the MAIN action.
  2281. */
  2282. exports.PostSetSafeDirectory = core.getState('setSafeDirectory') === 'true';
  2283. /**
  2284. * The SSH key path for the POST action. The value is empty during the MAIN action.
  2285. */
  2286. exports.SshKeyPath = core.getState('sshKeyPath');
  2287. /**
  2288. * The SSH known hosts path for the POST action. The value is empty during the MAIN action.
  2289. */
  2290. exports.SshKnownHostsPath = core.getState('sshKnownHostsPath');
  2291. /**
  2292. * Save the repository path so the POST action can retrieve the value.
  2293. */
  2294. function setRepositoryPath(repositoryPath) {
  2295. core.saveState('repositoryPath', repositoryPath);
  2296. }
  2297. exports.setRepositoryPath = setRepositoryPath;
  2298. /**
  2299. * Save the SSH key path so the POST action can retrieve the value.
  2300. */
  2301. function setSshKeyPath(sshKeyPath) {
  2302. core.saveState('sshKeyPath', sshKeyPath);
  2303. }
  2304. exports.setSshKeyPath = setSshKeyPath;
  2305. /**
  2306. * Save the SSH known hosts path so the POST action can retrieve the value.
  2307. */
  2308. function setSshKnownHostsPath(sshKnownHostsPath) {
  2309. core.saveState('sshKnownHostsPath', sshKnownHostsPath);
  2310. }
  2311. exports.setSshKnownHostsPath = setSshKnownHostsPath;
  2312. /**
  2313. * Save the set-safe-directory input so the POST action can retrieve the value.
  2314. */
  2315. function setSafeDirectory() {
  2316. core.saveState('setSafeDirectory', 'true');
  2317. }
  2318. exports.setSafeDirectory = setSafeDirectory;
  2319. // Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
  2320. // This is necessary since we don't have a separate entry point.
  2321. if (!exports.IsPost) {
  2322. core.saveState('isPost', 'true');
  2323. }
  2324. /***/ }),
  2325. /***/ 9437:
  2326. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2327. "use strict";
  2328. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2329. if (k2 === undefined) k2 = k;
  2330. var desc = Object.getOwnPropertyDescriptor(m, k);
  2331. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  2332. desc = { enumerable: true, get: function() { return m[k]; } };
  2333. }
  2334. Object.defineProperty(o, k2, desc);
  2335. }) : (function(o, m, k, k2) {
  2336. if (k2 === undefined) k2 = k;
  2337. o[k2] = m[k];
  2338. }));
  2339. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2340. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2341. }) : function(o, v) {
  2342. o["default"] = v;
  2343. });
  2344. var __importStar = (this && this.__importStar) || function (mod) {
  2345. if (mod && mod.__esModule) return mod;
  2346. var result = {};
  2347. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2348. __setModuleDefault(result, mod);
  2349. return result;
  2350. };
  2351. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2352. exports.isGhes = exports.getServerApiUrl = exports.getServerUrl = exports.getFetchUrl = void 0;
  2353. const assert = __importStar(__nccwpck_require__(9491));
  2354. const url_1 = __nccwpck_require__(7310);
  2355. function getFetchUrl(settings) {
  2356. assert.ok(settings.repositoryOwner, 'settings.repositoryOwner must be defined');
  2357. assert.ok(settings.repositoryName, 'settings.repositoryName must be defined');
  2358. const serviceUrl = getServerUrl(settings.githubServerUrl);
  2359. const encodedOwner = encodeURIComponent(settings.repositoryOwner);
  2360. const encodedName = encodeURIComponent(settings.repositoryName);
  2361. if (settings.sshKey) {
  2362. return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
  2363. }
  2364. // "origin" is SCHEME://HOSTNAME[:PORT]
  2365. return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
  2366. }
  2367. exports.getFetchUrl = getFetchUrl;
  2368. function getServerUrl(url) {
  2369. let urlValue = url && url.trim().length > 0
  2370. ? url
  2371. : process.env['GITHUB_SERVER_URL'] || 'https://github.com';
  2372. return new url_1.URL(urlValue);
  2373. }
  2374. exports.getServerUrl = getServerUrl;
  2375. function getServerApiUrl(url) {
  2376. let apiUrl = 'https://api.github.com';
  2377. if (isGhes(url)) {
  2378. const serverUrl = getServerUrl(url);
  2379. apiUrl = new url_1.URL(`${serverUrl.origin}/api/v3`).toString();
  2380. }
  2381. return apiUrl;
  2382. }
  2383. exports.getServerApiUrl = getServerApiUrl;
  2384. function isGhes(url) {
  2385. const ghUrl = getServerUrl(url);
  2386. return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
  2387. }
  2388. exports.isGhes = isGhes;
  2389. /***/ }),
  2390. /***/ 9568:
  2391. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2392. "use strict";
  2393. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2394. if (k2 === undefined) k2 = k;
  2395. var desc = Object.getOwnPropertyDescriptor(m, k);
  2396. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  2397. desc = { enumerable: true, get: function() { return m[k]; } };
  2398. }
  2399. Object.defineProperty(o, k2, desc);
  2400. }) : (function(o, m, k, k2) {
  2401. if (k2 === undefined) k2 = k;
  2402. o[k2] = m[k];
  2403. }));
  2404. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2405. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2406. }) : function(o, v) {
  2407. o["default"] = v;
  2408. });
  2409. var __importStar = (this && this.__importStar) || function (mod) {
  2410. if (mod && mod.__esModule) return mod;
  2411. var result = {};
  2412. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2413. __setModuleDefault(result, mod);
  2414. return result;
  2415. };
  2416. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2417. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2418. return new (P || (P = Promise))(function (resolve, reject) {
  2419. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2420. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2421. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2422. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2423. });
  2424. };
  2425. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2426. exports.getOrganizationId = void 0;
  2427. const core = __importStar(__nccwpck_require__(2186));
  2428. const fs = __importStar(__nccwpck_require__(7147));
  2429. /**
  2430. * Gets the organization ID of the running workflow or undefined if the value cannot be loaded from the GITHUB_EVENT_PATH
  2431. */
  2432. function getOrganizationId() {
  2433. var _a, _b;
  2434. return __awaiter(this, void 0, void 0, function* () {
  2435. try {
  2436. const eventPath = process.env.GITHUB_EVENT_PATH;
  2437. if (!eventPath) {
  2438. core.debug(`GITHUB_EVENT_PATH is not defined`);
  2439. return;
  2440. }
  2441. const content = yield fs.promises.readFile(eventPath, { encoding: 'utf8' });
  2442. const event = JSON.parse(content);
  2443. const id = (_b = (_a = event === null || event === void 0 ? void 0 : event.repository) === null || _a === void 0 ? void 0 : _a.owner) === null || _b === void 0 ? void 0 : _b.id;
  2444. if (typeof id !== 'number') {
  2445. core.debug('Repository owner ID not found within GITHUB event info');
  2446. return;
  2447. }
  2448. return id;
  2449. }
  2450. catch (err) {
  2451. core.debug(`Unable to load organization ID from GITHUB_EVENT_PATH: ${err.message || err}`);
  2452. }
  2453. });
  2454. }
  2455. exports.getOrganizationId = getOrganizationId;
  2456. /***/ }),
  2457. /***/ 7351:
  2458. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2459. "use strict";
  2460. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2461. if (k2 === undefined) k2 = k;
  2462. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2463. }) : (function(o, m, k, k2) {
  2464. if (k2 === undefined) k2 = k;
  2465. o[k2] = m[k];
  2466. }));
  2467. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2468. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2469. }) : function(o, v) {
  2470. o["default"] = v;
  2471. });
  2472. var __importStar = (this && this.__importStar) || function (mod) {
  2473. if (mod && mod.__esModule) return mod;
  2474. var result = {};
  2475. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2476. __setModuleDefault(result, mod);
  2477. return result;
  2478. };
  2479. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2480. exports.issue = exports.issueCommand = void 0;
  2481. const os = __importStar(__nccwpck_require__(2037));
  2482. const utils_1 = __nccwpck_require__(5278);
  2483. /**
  2484. * Commands
  2485. *
  2486. * Command Format:
  2487. * ::name key=value,key=value::message
  2488. *
  2489. * Examples:
  2490. * ::warning::This is the message
  2491. * ::set-env name=MY_VAR::some value
  2492. */
  2493. function issueCommand(command, properties, message) {
  2494. const cmd = new Command(command, properties, message);
  2495. process.stdout.write(cmd.toString() + os.EOL);
  2496. }
  2497. exports.issueCommand = issueCommand;
  2498. function issue(name, message = '') {
  2499. issueCommand(name, {}, message);
  2500. }
  2501. exports.issue = issue;
  2502. const CMD_STRING = '::';
  2503. class Command {
  2504. constructor(command, properties, message) {
  2505. if (!command) {
  2506. command = 'missing.command';
  2507. }
  2508. this.command = command;
  2509. this.properties = properties;
  2510. this.message = message;
  2511. }
  2512. toString() {
  2513. let cmdStr = CMD_STRING + this.command;
  2514. if (this.properties && Object.keys(this.properties).length > 0) {
  2515. cmdStr += ' ';
  2516. let first = true;
  2517. for (const key in this.properties) {
  2518. if (this.properties.hasOwnProperty(key)) {
  2519. const val = this.properties[key];
  2520. if (val) {
  2521. if (first) {
  2522. first = false;
  2523. }
  2524. else {
  2525. cmdStr += ',';
  2526. }
  2527. cmdStr += `${key}=${escapeProperty(val)}`;
  2528. }
  2529. }
  2530. }
  2531. }
  2532. cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
  2533. return cmdStr;
  2534. }
  2535. }
  2536. function escapeData(s) {
  2537. return utils_1.toCommandValue(s)
  2538. .replace(/%/g, '%25')
  2539. .replace(/\r/g, '%0D')
  2540. .replace(/\n/g, '%0A');
  2541. }
  2542. function escapeProperty(s) {
  2543. return utils_1.toCommandValue(s)
  2544. .replace(/%/g, '%25')
  2545. .replace(/\r/g, '%0D')
  2546. .replace(/\n/g, '%0A')
  2547. .replace(/:/g, '%3A')
  2548. .replace(/,/g, '%2C');
  2549. }
  2550. //# sourceMappingURL=command.js.map
  2551. /***/ }),
  2552. /***/ 2186:
  2553. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2554. "use strict";
  2555. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2556. if (k2 === undefined) k2 = k;
  2557. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2558. }) : (function(o, m, k, k2) {
  2559. if (k2 === undefined) k2 = k;
  2560. o[k2] = m[k];
  2561. }));
  2562. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2563. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2564. }) : function(o, v) {
  2565. o["default"] = v;
  2566. });
  2567. var __importStar = (this && this.__importStar) || function (mod) {
  2568. if (mod && mod.__esModule) return mod;
  2569. var result = {};
  2570. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2571. __setModuleDefault(result, mod);
  2572. return result;
  2573. };
  2574. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2575. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2576. return new (P || (P = Promise))(function (resolve, reject) {
  2577. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2578. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2579. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2580. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2581. });
  2582. };
  2583. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2584. exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
  2585. const command_1 = __nccwpck_require__(7351);
  2586. const file_command_1 = __nccwpck_require__(717);
  2587. const utils_1 = __nccwpck_require__(5278);
  2588. const os = __importStar(__nccwpck_require__(2037));
  2589. const path = __importStar(__nccwpck_require__(1017));
  2590. const oidc_utils_1 = __nccwpck_require__(8041);
  2591. /**
  2592. * The code to exit an action
  2593. */
  2594. var ExitCode;
  2595. (function (ExitCode) {
  2596. /**
  2597. * A code indicating that the action was successful
  2598. */
  2599. ExitCode[ExitCode["Success"] = 0] = "Success";
  2600. /**
  2601. * A code indicating that the action was a failure
  2602. */
  2603. ExitCode[ExitCode["Failure"] = 1] = "Failure";
  2604. })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
  2605. //-----------------------------------------------------------------------
  2606. // Variables
  2607. //-----------------------------------------------------------------------
  2608. /**
  2609. * Sets env variable for this action and future actions in the job
  2610. * @param name the name of the variable to set
  2611. * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
  2612. */
  2613. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2614. function exportVariable(name, val) {
  2615. const convertedVal = utils_1.toCommandValue(val);
  2616. process.env[name] = convertedVal;
  2617. const filePath = process.env['GITHUB_ENV'] || '';
  2618. if (filePath) {
  2619. return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
  2620. }
  2621. command_1.issueCommand('set-env', { name }, convertedVal);
  2622. }
  2623. exports.exportVariable = exportVariable;
  2624. /**
  2625. * Registers a secret which will get masked from logs
  2626. * @param secret value of the secret
  2627. */
  2628. function setSecret(secret) {
  2629. command_1.issueCommand('add-mask', {}, secret);
  2630. }
  2631. exports.setSecret = setSecret;
  2632. /**
  2633. * Prepends inputPath to the PATH (for this action and future actions)
  2634. * @param inputPath
  2635. */
  2636. function addPath(inputPath) {
  2637. const filePath = process.env['GITHUB_PATH'] || '';
  2638. if (filePath) {
  2639. file_command_1.issueFileCommand('PATH', inputPath);
  2640. }
  2641. else {
  2642. command_1.issueCommand('add-path', {}, inputPath);
  2643. }
  2644. process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
  2645. }
  2646. exports.addPath = addPath;
  2647. /**
  2648. * Gets the value of an input.
  2649. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
  2650. * Returns an empty string if the value is not defined.
  2651. *
  2652. * @param name name of the input to get
  2653. * @param options optional. See InputOptions.
  2654. * @returns string
  2655. */
  2656. function getInput(name, options) {
  2657. const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
  2658. if (options && options.required && !val) {
  2659. throw new Error(`Input required and not supplied: ${name}`);
  2660. }
  2661. if (options && options.trimWhitespace === false) {
  2662. return val;
  2663. }
  2664. return val.trim();
  2665. }
  2666. exports.getInput = getInput;
  2667. /**
  2668. * Gets the values of an multiline input. Each value is also trimmed.
  2669. *
  2670. * @param name name of the input to get
  2671. * @param options optional. See InputOptions.
  2672. * @returns string[]
  2673. *
  2674. */
  2675. function getMultilineInput(name, options) {
  2676. const inputs = getInput(name, options)
  2677. .split('\n')
  2678. .filter(x => x !== '');
  2679. if (options && options.trimWhitespace === false) {
  2680. return inputs;
  2681. }
  2682. return inputs.map(input => input.trim());
  2683. }
  2684. exports.getMultilineInput = getMultilineInput;
  2685. /**
  2686. * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
  2687. * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
  2688. * The return value is also in boolean type.
  2689. * ref: https://yaml.org/spec/1.2/spec.html#id2804923
  2690. *
  2691. * @param name name of the input to get
  2692. * @param options optional. See InputOptions.
  2693. * @returns boolean
  2694. */
  2695. function getBooleanInput(name, options) {
  2696. const trueValue = ['true', 'True', 'TRUE'];
  2697. const falseValue = ['false', 'False', 'FALSE'];
  2698. const val = getInput(name, options);
  2699. if (trueValue.includes(val))
  2700. return true;
  2701. if (falseValue.includes(val))
  2702. return false;
  2703. throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
  2704. `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
  2705. }
  2706. exports.getBooleanInput = getBooleanInput;
  2707. /**
  2708. * Sets the value of an output.
  2709. *
  2710. * @param name name of the output to set
  2711. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  2712. */
  2713. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2714. function setOutput(name, value) {
  2715. const filePath = process.env['GITHUB_OUTPUT'] || '';
  2716. if (filePath) {
  2717. return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
  2718. }
  2719. process.stdout.write(os.EOL);
  2720. command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
  2721. }
  2722. exports.setOutput = setOutput;
  2723. /**
  2724. * Enables or disables the echoing of commands into stdout for the rest of the step.
  2725. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
  2726. *
  2727. */
  2728. function setCommandEcho(enabled) {
  2729. command_1.issue('echo', enabled ? 'on' : 'off');
  2730. }
  2731. exports.setCommandEcho = setCommandEcho;
  2732. //-----------------------------------------------------------------------
  2733. // Results
  2734. //-----------------------------------------------------------------------
  2735. /**
  2736. * Sets the action status to failed.
  2737. * When the action exits it will be with an exit code of 1
  2738. * @param message add error issue message
  2739. */
  2740. function setFailed(message) {
  2741. process.exitCode = ExitCode.Failure;
  2742. error(message);
  2743. }
  2744. exports.setFailed = setFailed;
  2745. //-----------------------------------------------------------------------
  2746. // Logging Commands
  2747. //-----------------------------------------------------------------------
  2748. /**
  2749. * Gets whether Actions Step Debug is on or not
  2750. */
  2751. function isDebug() {
  2752. return process.env['RUNNER_DEBUG'] === '1';
  2753. }
  2754. exports.isDebug = isDebug;
  2755. /**
  2756. * Writes debug message to user log
  2757. * @param message debug message
  2758. */
  2759. function debug(message) {
  2760. command_1.issueCommand('debug', {}, message);
  2761. }
  2762. exports.debug = debug;
  2763. /**
  2764. * Adds an error issue
  2765. * @param message error issue message. Errors will be converted to string via toString()
  2766. * @param properties optional properties to add to the annotation.
  2767. */
  2768. function error(message, properties = {}) {
  2769. command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2770. }
  2771. exports.error = error;
  2772. /**
  2773. * Adds a warning issue
  2774. * @param message warning issue message. Errors will be converted to string via toString()
  2775. * @param properties optional properties to add to the annotation.
  2776. */
  2777. function warning(message, properties = {}) {
  2778. command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2779. }
  2780. exports.warning = warning;
  2781. /**
  2782. * Adds a notice issue
  2783. * @param message notice issue message. Errors will be converted to string via toString()
  2784. * @param properties optional properties to add to the annotation.
  2785. */
  2786. function notice(message, properties = {}) {
  2787. command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  2788. }
  2789. exports.notice = notice;
  2790. /**
  2791. * Writes info to log with console.log.
  2792. * @param message info message
  2793. */
  2794. function info(message) {
  2795. process.stdout.write(message + os.EOL);
  2796. }
  2797. exports.info = info;
  2798. /**
  2799. * Begin an output group.
  2800. *
  2801. * Output until the next `groupEnd` will be foldable in this group
  2802. *
  2803. * @param name The name of the output group
  2804. */
  2805. function startGroup(name) {
  2806. command_1.issue('group', name);
  2807. }
  2808. exports.startGroup = startGroup;
  2809. /**
  2810. * End an output group.
  2811. */
  2812. function endGroup() {
  2813. command_1.issue('endgroup');
  2814. }
  2815. exports.endGroup = endGroup;
  2816. /**
  2817. * Wrap an asynchronous function call in a group.
  2818. *
  2819. * Returns the same type as the function itself.
  2820. *
  2821. * @param name The name of the group
  2822. * @param fn The function to wrap in the group
  2823. */
  2824. function group(name, fn) {
  2825. return __awaiter(this, void 0, void 0, function* () {
  2826. startGroup(name);
  2827. let result;
  2828. try {
  2829. result = yield fn();
  2830. }
  2831. finally {
  2832. endGroup();
  2833. }
  2834. return result;
  2835. });
  2836. }
  2837. exports.group = group;
  2838. //-----------------------------------------------------------------------
  2839. // Wrapper action state
  2840. //-----------------------------------------------------------------------
  2841. /**
  2842. * Saves state for current action, the state can only be retrieved by this action's post job execution.
  2843. *
  2844. * @param name name of the state to store
  2845. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  2846. */
  2847. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  2848. function saveState(name, value) {
  2849. const filePath = process.env['GITHUB_STATE'] || '';
  2850. if (filePath) {
  2851. return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
  2852. }
  2853. command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
  2854. }
  2855. exports.saveState = saveState;
  2856. /**
  2857. * Gets the value of an state set by this action's main execution.
  2858. *
  2859. * @param name name of the state to get
  2860. * @returns string
  2861. */
  2862. function getState(name) {
  2863. return process.env[`STATE_${name}`] || '';
  2864. }
  2865. exports.getState = getState;
  2866. function getIDToken(aud) {
  2867. return __awaiter(this, void 0, void 0, function* () {
  2868. return yield oidc_utils_1.OidcClient.getIDToken(aud);
  2869. });
  2870. }
  2871. exports.getIDToken = getIDToken;
  2872. /**
  2873. * Summary exports
  2874. */
  2875. var summary_1 = __nccwpck_require__(1327);
  2876. Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } }));
  2877. /**
  2878. * @deprecated use core.summary
  2879. */
  2880. var summary_2 = __nccwpck_require__(1327);
  2881. Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } }));
  2882. /**
  2883. * Path exports
  2884. */
  2885. var path_utils_1 = __nccwpck_require__(2981);
  2886. Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } }));
  2887. Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } }));
  2888. Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }));
  2889. //# sourceMappingURL=core.js.map
  2890. /***/ }),
  2891. /***/ 717:
  2892. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2893. "use strict";
  2894. // For internal use, subject to change.
  2895. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2896. if (k2 === undefined) k2 = k;
  2897. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2898. }) : (function(o, m, k, k2) {
  2899. if (k2 === undefined) k2 = k;
  2900. o[k2] = m[k];
  2901. }));
  2902. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2903. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2904. }) : function(o, v) {
  2905. o["default"] = v;
  2906. });
  2907. var __importStar = (this && this.__importStar) || function (mod) {
  2908. if (mod && mod.__esModule) return mod;
  2909. var result = {};
  2910. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2911. __setModuleDefault(result, mod);
  2912. return result;
  2913. };
  2914. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2915. exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
  2916. // We use any as a valid input type
  2917. /* eslint-disable @typescript-eslint/no-explicit-any */
  2918. const fs = __importStar(__nccwpck_require__(7147));
  2919. const os = __importStar(__nccwpck_require__(2037));
  2920. const uuid_1 = __nccwpck_require__(8974);
  2921. const utils_1 = __nccwpck_require__(5278);
  2922. function issueFileCommand(command, message) {
  2923. const filePath = process.env[`GITHUB_${command}`];
  2924. if (!filePath) {
  2925. throw new Error(`Unable to find environment variable for file command ${command}`);
  2926. }
  2927. if (!fs.existsSync(filePath)) {
  2928. throw new Error(`Missing file at path: ${filePath}`);
  2929. }
  2930. fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
  2931. encoding: 'utf8'
  2932. });
  2933. }
  2934. exports.issueFileCommand = issueFileCommand;
  2935. function prepareKeyValueMessage(key, value) {
  2936. const delimiter = `ghadelimiter_${uuid_1.v4()}`;
  2937. const convertedValue = utils_1.toCommandValue(value);
  2938. // These should realistically never happen, but just in case someone finds a
  2939. // way to exploit uuid generation let's not allow keys or values that contain
  2940. // the delimiter.
  2941. if (key.includes(delimiter)) {
  2942. throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
  2943. }
  2944. if (convertedValue.includes(delimiter)) {
  2945. throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
  2946. }
  2947. return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
  2948. }
  2949. exports.prepareKeyValueMessage = prepareKeyValueMessage;
  2950. //# sourceMappingURL=file-command.js.map
  2951. /***/ }),
  2952. /***/ 8041:
  2953. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  2954. "use strict";
  2955. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2956. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  2957. return new (P || (P = Promise))(function (resolve, reject) {
  2958. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  2959. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  2960. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  2961. step((generator = generator.apply(thisArg, _arguments || [])).next());
  2962. });
  2963. };
  2964. Object.defineProperty(exports, "__esModule", ({ value: true }));
  2965. exports.OidcClient = void 0;
  2966. const http_client_1 = __nccwpck_require__(6255);
  2967. const auth_1 = __nccwpck_require__(5526);
  2968. const core_1 = __nccwpck_require__(2186);
  2969. class OidcClient {
  2970. static createHttpClient(allowRetry = true, maxRetry = 10) {
  2971. const requestOptions = {
  2972. allowRetries: allowRetry,
  2973. maxRetries: maxRetry
  2974. };
  2975. return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
  2976. }
  2977. static getRequestToken() {
  2978. const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
  2979. if (!token) {
  2980. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
  2981. }
  2982. return token;
  2983. }
  2984. static getIDTokenUrl() {
  2985. const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
  2986. if (!runtimeUrl) {
  2987. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
  2988. }
  2989. return runtimeUrl;
  2990. }
  2991. static getCall(id_token_url) {
  2992. var _a;
  2993. return __awaiter(this, void 0, void 0, function* () {
  2994. const httpclient = OidcClient.createHttpClient();
  2995. const res = yield httpclient
  2996. .getJson(id_token_url)
  2997. .catch(error => {
  2998. throw new Error(`Failed to get ID Token. \n
  2999. Error Code : ${error.statusCode}\n
  3000. Error Message: ${error.message}`);
  3001. });
  3002. const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
  3003. if (!id_token) {
  3004. throw new Error('Response json body do not have ID Token field');
  3005. }
  3006. return id_token;
  3007. });
  3008. }
  3009. static getIDToken(audience) {
  3010. return __awaiter(this, void 0, void 0, function* () {
  3011. try {
  3012. // New ID Token is requested from action service
  3013. let id_token_url = OidcClient.getIDTokenUrl();
  3014. if (audience) {
  3015. const encodedAudience = encodeURIComponent(audience);
  3016. id_token_url = `${id_token_url}&audience=${encodedAudience}`;
  3017. }
  3018. core_1.debug(`ID token url is ${id_token_url}`);
  3019. const id_token = yield OidcClient.getCall(id_token_url);
  3020. core_1.setSecret(id_token);
  3021. return id_token;
  3022. }
  3023. catch (error) {
  3024. throw new Error(`Error message: ${error.message}`);
  3025. }
  3026. });
  3027. }
  3028. }
  3029. exports.OidcClient = OidcClient;
  3030. //# sourceMappingURL=oidc-utils.js.map
  3031. /***/ }),
  3032. /***/ 2981:
  3033. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3034. "use strict";
  3035. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3036. if (k2 === undefined) k2 = k;
  3037. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3038. }) : (function(o, m, k, k2) {
  3039. if (k2 === undefined) k2 = k;
  3040. o[k2] = m[k];
  3041. }));
  3042. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3043. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3044. }) : function(o, v) {
  3045. o["default"] = v;
  3046. });
  3047. var __importStar = (this && this.__importStar) || function (mod) {
  3048. if (mod && mod.__esModule) return mod;
  3049. var result = {};
  3050. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3051. __setModuleDefault(result, mod);
  3052. return result;
  3053. };
  3054. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3055. exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
  3056. const path = __importStar(__nccwpck_require__(1017));
  3057. /**
  3058. * toPosixPath converts the given path to the posix form. On Windows, \\ will be
  3059. * replaced with /.
  3060. *
  3061. * @param pth. Path to transform.
  3062. * @return string Posix path.
  3063. */
  3064. function toPosixPath(pth) {
  3065. return pth.replace(/[\\]/g, '/');
  3066. }
  3067. exports.toPosixPath = toPosixPath;
  3068. /**
  3069. * toWin32Path converts the given path to the win32 form. On Linux, / will be
  3070. * replaced with \\.
  3071. *
  3072. * @param pth. Path to transform.
  3073. * @return string Win32 path.
  3074. */
  3075. function toWin32Path(pth) {
  3076. return pth.replace(/[/]/g, '\\');
  3077. }
  3078. exports.toWin32Path = toWin32Path;
  3079. /**
  3080. * toPlatformPath converts the given path to a platform-specific path. It does
  3081. * this by replacing instances of / and \ with the platform-specific path
  3082. * separator.
  3083. *
  3084. * @param pth The path to platformize.
  3085. * @return string The platform-specific path.
  3086. */
  3087. function toPlatformPath(pth) {
  3088. return pth.replace(/[/\\]/g, path.sep);
  3089. }
  3090. exports.toPlatformPath = toPlatformPath;
  3091. //# sourceMappingURL=path-utils.js.map
  3092. /***/ }),
  3093. /***/ 1327:
  3094. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3095. "use strict";
  3096. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3097. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3098. return new (P || (P = Promise))(function (resolve, reject) {
  3099. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3100. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3101. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3102. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3103. });
  3104. };
  3105. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3106. exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
  3107. const os_1 = __nccwpck_require__(2037);
  3108. const fs_1 = __nccwpck_require__(7147);
  3109. const { access, appendFile, writeFile } = fs_1.promises;
  3110. exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
  3111. exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
  3112. class Summary {
  3113. constructor() {
  3114. this._buffer = '';
  3115. }
  3116. /**
  3117. * Finds the summary file path from the environment, rejects if env var is not found or file does not exist
  3118. * Also checks r/w permissions.
  3119. *
  3120. * @returns step summary file path
  3121. */
  3122. filePath() {
  3123. return __awaiter(this, void 0, void 0, function* () {
  3124. if (this._filePath) {
  3125. return this._filePath;
  3126. }
  3127. const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];
  3128. if (!pathFromEnv) {
  3129. throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);
  3130. }
  3131. try {
  3132. yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);
  3133. }
  3134. catch (_a) {
  3135. throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
  3136. }
  3137. this._filePath = pathFromEnv;
  3138. return this._filePath;
  3139. });
  3140. }
  3141. /**
  3142. * Wraps content in an HTML tag, adding any HTML attributes
  3143. *
  3144. * @param {string} tag HTML tag to wrap
  3145. * @param {string | null} content content within the tag
  3146. * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
  3147. *
  3148. * @returns {string} content wrapped in HTML element
  3149. */
  3150. wrap(tag, content, attrs = {}) {
  3151. const htmlAttrs = Object.entries(attrs)
  3152. .map(([key, value]) => ` ${key}="${value}"`)
  3153. .join('');
  3154. if (!content) {
  3155. return `<${tag}${htmlAttrs}>`;
  3156. }
  3157. return `<${tag}${htmlAttrs}>${content}</${tag}>`;
  3158. }
  3159. /**
  3160. * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
  3161. *
  3162. * @param {SummaryWriteOptions} [options] (optional) options for write operation
  3163. *
  3164. * @returns {Promise<Summary>} summary instance
  3165. */
  3166. write(options) {
  3167. return __awaiter(this, void 0, void 0, function* () {
  3168. const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
  3169. const filePath = yield this.filePath();
  3170. const writeFunc = overwrite ? writeFile : appendFile;
  3171. yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
  3172. return this.emptyBuffer();
  3173. });
  3174. }
  3175. /**
  3176. * Clears the summary buffer and wipes the summary file
  3177. *
  3178. * @returns {Summary} summary instance
  3179. */
  3180. clear() {
  3181. return __awaiter(this, void 0, void 0, function* () {
  3182. return this.emptyBuffer().write({ overwrite: true });
  3183. });
  3184. }
  3185. /**
  3186. * Returns the current summary buffer as a string
  3187. *
  3188. * @returns {string} string of summary buffer
  3189. */
  3190. stringify() {
  3191. return this._buffer;
  3192. }
  3193. /**
  3194. * If the summary buffer is empty
  3195. *
  3196. * @returns {boolen} true if the buffer is empty
  3197. */
  3198. isEmptyBuffer() {
  3199. return this._buffer.length === 0;
  3200. }
  3201. /**
  3202. * Resets the summary buffer without writing to summary file
  3203. *
  3204. * @returns {Summary} summary instance
  3205. */
  3206. emptyBuffer() {
  3207. this._buffer = '';
  3208. return this;
  3209. }
  3210. /**
  3211. * Adds raw text to the summary buffer
  3212. *
  3213. * @param {string} text content to add
  3214. * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
  3215. *
  3216. * @returns {Summary} summary instance
  3217. */
  3218. addRaw(text, addEOL = false) {
  3219. this._buffer += text;
  3220. return addEOL ? this.addEOL() : this;
  3221. }
  3222. /**
  3223. * Adds the operating system-specific end-of-line marker to the buffer
  3224. *
  3225. * @returns {Summary} summary instance
  3226. */
  3227. addEOL() {
  3228. return this.addRaw(os_1.EOL);
  3229. }
  3230. /**
  3231. * Adds an HTML codeblock to the summary buffer
  3232. *
  3233. * @param {string} code content to render within fenced code block
  3234. * @param {string} lang (optional) language to syntax highlight code
  3235. *
  3236. * @returns {Summary} summary instance
  3237. */
  3238. addCodeBlock(code, lang) {
  3239. const attrs = Object.assign({}, (lang && { lang }));
  3240. const element = this.wrap('pre', this.wrap('code', code), attrs);
  3241. return this.addRaw(element).addEOL();
  3242. }
  3243. /**
  3244. * Adds an HTML list to the summary buffer
  3245. *
  3246. * @param {string[]} items list of items to render
  3247. * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
  3248. *
  3249. * @returns {Summary} summary instance
  3250. */
  3251. addList(items, ordered = false) {
  3252. const tag = ordered ? 'ol' : 'ul';
  3253. const listItems = items.map(item => this.wrap('li', item)).join('');
  3254. const element = this.wrap(tag, listItems);
  3255. return this.addRaw(element).addEOL();
  3256. }
  3257. /**
  3258. * Adds an HTML table to the summary buffer
  3259. *
  3260. * @param {SummaryTableCell[]} rows table rows
  3261. *
  3262. * @returns {Summary} summary instance
  3263. */
  3264. addTable(rows) {
  3265. const tableBody = rows
  3266. .map(row => {
  3267. const cells = row
  3268. .map(cell => {
  3269. if (typeof cell === 'string') {
  3270. return this.wrap('td', cell);
  3271. }
  3272. const { header, data, colspan, rowspan } = cell;
  3273. const tag = header ? 'th' : 'td';
  3274. const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));
  3275. return this.wrap(tag, data, attrs);
  3276. })
  3277. .join('');
  3278. return this.wrap('tr', cells);
  3279. })
  3280. .join('');
  3281. const element = this.wrap('table', tableBody);
  3282. return this.addRaw(element).addEOL();
  3283. }
  3284. /**
  3285. * Adds a collapsable HTML details element to the summary buffer
  3286. *
  3287. * @param {string} label text for the closed state
  3288. * @param {string} content collapsable content
  3289. *
  3290. * @returns {Summary} summary instance
  3291. */
  3292. addDetails(label, content) {
  3293. const element = this.wrap('details', this.wrap('summary', label) + content);
  3294. return this.addRaw(element).addEOL();
  3295. }
  3296. /**
  3297. * Adds an HTML image tag to the summary buffer
  3298. *
  3299. * @param {string} src path to the image you to embed
  3300. * @param {string} alt text description of the image
  3301. * @param {SummaryImageOptions} options (optional) addition image attributes
  3302. *
  3303. * @returns {Summary} summary instance
  3304. */
  3305. addImage(src, alt, options) {
  3306. const { width, height } = options || {};
  3307. const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));
  3308. const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));
  3309. return this.addRaw(element).addEOL();
  3310. }
  3311. /**
  3312. * Adds an HTML section heading element
  3313. *
  3314. * @param {string} text heading text
  3315. * @param {number | string} [level=1] (optional) the heading level, default: 1
  3316. *
  3317. * @returns {Summary} summary instance
  3318. */
  3319. addHeading(text, level) {
  3320. const tag = `h${level}`;
  3321. const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)
  3322. ? tag
  3323. : 'h1';
  3324. const element = this.wrap(allowedTag, text);
  3325. return this.addRaw(element).addEOL();
  3326. }
  3327. /**
  3328. * Adds an HTML thematic break (<hr>) to the summary buffer
  3329. *
  3330. * @returns {Summary} summary instance
  3331. */
  3332. addSeparator() {
  3333. const element = this.wrap('hr', null);
  3334. return this.addRaw(element).addEOL();
  3335. }
  3336. /**
  3337. * Adds an HTML line break (<br>) to the summary buffer
  3338. *
  3339. * @returns {Summary} summary instance
  3340. */
  3341. addBreak() {
  3342. const element = this.wrap('br', null);
  3343. return this.addRaw(element).addEOL();
  3344. }
  3345. /**
  3346. * Adds an HTML blockquote to the summary buffer
  3347. *
  3348. * @param {string} text quote text
  3349. * @param {string} cite (optional) citation url
  3350. *
  3351. * @returns {Summary} summary instance
  3352. */
  3353. addQuote(text, cite) {
  3354. const attrs = Object.assign({}, (cite && { cite }));
  3355. const element = this.wrap('blockquote', text, attrs);
  3356. return this.addRaw(element).addEOL();
  3357. }
  3358. /**
  3359. * Adds an HTML anchor tag to the summary buffer
  3360. *
  3361. * @param {string} text link text/content
  3362. * @param {string} href hyperlink
  3363. *
  3364. * @returns {Summary} summary instance
  3365. */
  3366. addLink(text, href) {
  3367. const element = this.wrap('a', text, { href });
  3368. return this.addRaw(element).addEOL();
  3369. }
  3370. }
  3371. const _summary = new Summary();
  3372. /**
  3373. * @deprecated use `core.summary`
  3374. */
  3375. exports.markdownSummary = _summary;
  3376. exports.summary = _summary;
  3377. //# sourceMappingURL=summary.js.map
  3378. /***/ }),
  3379. /***/ 5278:
  3380. /***/ ((__unused_webpack_module, exports) => {
  3381. "use strict";
  3382. // We use any as a valid input type
  3383. /* eslint-disable @typescript-eslint/no-explicit-any */
  3384. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3385. exports.toCommandProperties = exports.toCommandValue = void 0;
  3386. /**
  3387. * Sanitizes an input into a string so it can be passed into issueCommand safely
  3388. * @param input input to sanitize into a string
  3389. */
  3390. function toCommandValue(input) {
  3391. if (input === null || input === undefined) {
  3392. return '';
  3393. }
  3394. else if (typeof input === 'string' || input instanceof String) {
  3395. return input;
  3396. }
  3397. return JSON.stringify(input);
  3398. }
  3399. exports.toCommandValue = toCommandValue;
  3400. /**
  3401. *
  3402. * @param annotationProperties
  3403. * @returns The command properties to send with the actual annotation command
  3404. * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
  3405. */
  3406. function toCommandProperties(annotationProperties) {
  3407. if (!Object.keys(annotationProperties).length) {
  3408. return {};
  3409. }
  3410. return {
  3411. title: annotationProperties.title,
  3412. file: annotationProperties.file,
  3413. line: annotationProperties.startLine,
  3414. endLine: annotationProperties.endLine,
  3415. col: annotationProperties.startColumn,
  3416. endColumn: annotationProperties.endColumn
  3417. };
  3418. }
  3419. exports.toCommandProperties = toCommandProperties;
  3420. //# sourceMappingURL=utils.js.map
  3421. /***/ }),
  3422. /***/ 8974:
  3423. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3424. "use strict";
  3425. Object.defineProperty(exports, "__esModule", ({
  3426. value: true
  3427. }));
  3428. Object.defineProperty(exports, "v1", ({
  3429. enumerable: true,
  3430. get: function () {
  3431. return _v.default;
  3432. }
  3433. }));
  3434. Object.defineProperty(exports, "v3", ({
  3435. enumerable: true,
  3436. get: function () {
  3437. return _v2.default;
  3438. }
  3439. }));
  3440. Object.defineProperty(exports, "v4", ({
  3441. enumerable: true,
  3442. get: function () {
  3443. return _v3.default;
  3444. }
  3445. }));
  3446. Object.defineProperty(exports, "v5", ({
  3447. enumerable: true,
  3448. get: function () {
  3449. return _v4.default;
  3450. }
  3451. }));
  3452. Object.defineProperty(exports, "NIL", ({
  3453. enumerable: true,
  3454. get: function () {
  3455. return _nil.default;
  3456. }
  3457. }));
  3458. Object.defineProperty(exports, "version", ({
  3459. enumerable: true,
  3460. get: function () {
  3461. return _version.default;
  3462. }
  3463. }));
  3464. Object.defineProperty(exports, "validate", ({
  3465. enumerable: true,
  3466. get: function () {
  3467. return _validate.default;
  3468. }
  3469. }));
  3470. Object.defineProperty(exports, "stringify", ({
  3471. enumerable: true,
  3472. get: function () {
  3473. return _stringify.default;
  3474. }
  3475. }));
  3476. Object.defineProperty(exports, "parse", ({
  3477. enumerable: true,
  3478. get: function () {
  3479. return _parse.default;
  3480. }
  3481. }));
  3482. var _v = _interopRequireDefault(__nccwpck_require__(1595));
  3483. var _v2 = _interopRequireDefault(__nccwpck_require__(6993));
  3484. var _v3 = _interopRequireDefault(__nccwpck_require__(1472));
  3485. var _v4 = _interopRequireDefault(__nccwpck_require__(6217));
  3486. var _nil = _interopRequireDefault(__nccwpck_require__(2381));
  3487. var _version = _interopRequireDefault(__nccwpck_require__(427));
  3488. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3489. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3490. var _parse = _interopRequireDefault(__nccwpck_require__(6385));
  3491. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3492. /***/ }),
  3493. /***/ 5842:
  3494. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3495. "use strict";
  3496. Object.defineProperty(exports, "__esModule", ({
  3497. value: true
  3498. }));
  3499. exports["default"] = void 0;
  3500. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  3501. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3502. function md5(bytes) {
  3503. if (Array.isArray(bytes)) {
  3504. bytes = Buffer.from(bytes);
  3505. } else if (typeof bytes === 'string') {
  3506. bytes = Buffer.from(bytes, 'utf8');
  3507. }
  3508. return _crypto.default.createHash('md5').update(bytes).digest();
  3509. }
  3510. var _default = md5;
  3511. exports["default"] = _default;
  3512. /***/ }),
  3513. /***/ 2381:
  3514. /***/ ((__unused_webpack_module, exports) => {
  3515. "use strict";
  3516. Object.defineProperty(exports, "__esModule", ({
  3517. value: true
  3518. }));
  3519. exports["default"] = void 0;
  3520. var _default = '00000000-0000-0000-0000-000000000000';
  3521. exports["default"] = _default;
  3522. /***/ }),
  3523. /***/ 6385:
  3524. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3525. "use strict";
  3526. Object.defineProperty(exports, "__esModule", ({
  3527. value: true
  3528. }));
  3529. exports["default"] = void 0;
  3530. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3531. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3532. function parse(uuid) {
  3533. if (!(0, _validate.default)(uuid)) {
  3534. throw TypeError('Invalid UUID');
  3535. }
  3536. let v;
  3537. const arr = new Uint8Array(16); // Parse ########-....-....-....-............
  3538. arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
  3539. arr[1] = v >>> 16 & 0xff;
  3540. arr[2] = v >>> 8 & 0xff;
  3541. arr[3] = v & 0xff; // Parse ........-####-....-....-............
  3542. arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
  3543. arr[5] = v & 0xff; // Parse ........-....-####-....-............
  3544. arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
  3545. arr[7] = v & 0xff; // Parse ........-....-....-####-............
  3546. arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
  3547. arr[9] = v & 0xff; // Parse ........-....-....-....-############
  3548. // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
  3549. arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
  3550. arr[11] = v / 0x100000000 & 0xff;
  3551. arr[12] = v >>> 24 & 0xff;
  3552. arr[13] = v >>> 16 & 0xff;
  3553. arr[14] = v >>> 8 & 0xff;
  3554. arr[15] = v & 0xff;
  3555. return arr;
  3556. }
  3557. var _default = parse;
  3558. exports["default"] = _default;
  3559. /***/ }),
  3560. /***/ 6230:
  3561. /***/ ((__unused_webpack_module, exports) => {
  3562. "use strict";
  3563. Object.defineProperty(exports, "__esModule", ({
  3564. value: true
  3565. }));
  3566. exports["default"] = void 0;
  3567. var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
  3568. exports["default"] = _default;
  3569. /***/ }),
  3570. /***/ 9784:
  3571. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3572. "use strict";
  3573. Object.defineProperty(exports, "__esModule", ({
  3574. value: true
  3575. }));
  3576. exports["default"] = rng;
  3577. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  3578. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3579. const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
  3580. let poolPtr = rnds8Pool.length;
  3581. function rng() {
  3582. if (poolPtr > rnds8Pool.length - 16) {
  3583. _crypto.default.randomFillSync(rnds8Pool);
  3584. poolPtr = 0;
  3585. }
  3586. return rnds8Pool.slice(poolPtr, poolPtr += 16);
  3587. }
  3588. /***/ }),
  3589. /***/ 8844:
  3590. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3591. "use strict";
  3592. Object.defineProperty(exports, "__esModule", ({
  3593. value: true
  3594. }));
  3595. exports["default"] = void 0;
  3596. var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
  3597. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3598. function sha1(bytes) {
  3599. if (Array.isArray(bytes)) {
  3600. bytes = Buffer.from(bytes);
  3601. } else if (typeof bytes === 'string') {
  3602. bytes = Buffer.from(bytes, 'utf8');
  3603. }
  3604. return _crypto.default.createHash('sha1').update(bytes).digest();
  3605. }
  3606. var _default = sha1;
  3607. exports["default"] = _default;
  3608. /***/ }),
  3609. /***/ 1458:
  3610. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3611. "use strict";
  3612. Object.defineProperty(exports, "__esModule", ({
  3613. value: true
  3614. }));
  3615. exports["default"] = void 0;
  3616. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3617. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3618. /**
  3619. * Convert array of 16 byte values to UUID string format of the form:
  3620. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  3621. */
  3622. const byteToHex = [];
  3623. for (let i = 0; i < 256; ++i) {
  3624. byteToHex.push((i + 0x100).toString(16).substr(1));
  3625. }
  3626. function stringify(arr, offset = 0) {
  3627. // Note: Be careful editing this code! It's been tuned for performance
  3628. // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
  3629. const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
  3630. // of the following:
  3631. // - One or more input array values don't map to a hex octet (leading to
  3632. // "undefined" in the uuid)
  3633. // - Invalid input values for the RFC `version` or `variant` fields
  3634. if (!(0, _validate.default)(uuid)) {
  3635. throw TypeError('Stringified UUID is invalid');
  3636. }
  3637. return uuid;
  3638. }
  3639. var _default = stringify;
  3640. exports["default"] = _default;
  3641. /***/ }),
  3642. /***/ 1595:
  3643. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3644. "use strict";
  3645. Object.defineProperty(exports, "__esModule", ({
  3646. value: true
  3647. }));
  3648. exports["default"] = void 0;
  3649. var _rng = _interopRequireDefault(__nccwpck_require__(9784));
  3650. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3651. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3652. // **`v1()` - Generate time-based UUID**
  3653. //
  3654. // Inspired by https://github.com/LiosK/UUID.js
  3655. // and http://docs.python.org/library/uuid.html
  3656. let _nodeId;
  3657. let _clockseq; // Previous uuid creation time
  3658. let _lastMSecs = 0;
  3659. let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
  3660. function v1(options, buf, offset) {
  3661. let i = buf && offset || 0;
  3662. const b = buf || new Array(16);
  3663. options = options || {};
  3664. let node = options.node || _nodeId;
  3665. let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
  3666. // specified. We do this lazily to minimize issues related to insufficient
  3667. // system entropy. See #189
  3668. if (node == null || clockseq == null) {
  3669. const seedBytes = options.random || (options.rng || _rng.default)();
  3670. if (node == null) {
  3671. // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
  3672. node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
  3673. }
  3674. if (clockseq == null) {
  3675. // Per 4.2.2, randomize (14 bit) clockseq
  3676. clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
  3677. }
  3678. } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  3679. // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
  3680. // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  3681. // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  3682. let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
  3683. // cycle to simulate higher resolution clock
  3684. let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
  3685. const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
  3686. if (dt < 0 && options.clockseq === undefined) {
  3687. clockseq = clockseq + 1 & 0x3fff;
  3688. } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  3689. // time interval
  3690. if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
  3691. nsecs = 0;
  3692. } // Per 4.2.1.2 Throw error if too many uuids are requested
  3693. if (nsecs >= 10000) {
  3694. throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  3695. }
  3696. _lastMSecs = msecs;
  3697. _lastNSecs = nsecs;
  3698. _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  3699. msecs += 12219292800000; // `time_low`
  3700. const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  3701. b[i++] = tl >>> 24 & 0xff;
  3702. b[i++] = tl >>> 16 & 0xff;
  3703. b[i++] = tl >>> 8 & 0xff;
  3704. b[i++] = tl & 0xff; // `time_mid`
  3705. const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
  3706. b[i++] = tmh >>> 8 & 0xff;
  3707. b[i++] = tmh & 0xff; // `time_high_and_version`
  3708. b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  3709. b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  3710. b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
  3711. b[i++] = clockseq & 0xff; // `node`
  3712. for (let n = 0; n < 6; ++n) {
  3713. b[i + n] = node[n];
  3714. }
  3715. return buf || (0, _stringify.default)(b);
  3716. }
  3717. var _default = v1;
  3718. exports["default"] = _default;
  3719. /***/ }),
  3720. /***/ 6993:
  3721. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3722. "use strict";
  3723. Object.defineProperty(exports, "__esModule", ({
  3724. value: true
  3725. }));
  3726. exports["default"] = void 0;
  3727. var _v = _interopRequireDefault(__nccwpck_require__(5920));
  3728. var _md = _interopRequireDefault(__nccwpck_require__(5842));
  3729. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3730. const v3 = (0, _v.default)('v3', 0x30, _md.default);
  3731. var _default = v3;
  3732. exports["default"] = _default;
  3733. /***/ }),
  3734. /***/ 5920:
  3735. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3736. "use strict";
  3737. Object.defineProperty(exports, "__esModule", ({
  3738. value: true
  3739. }));
  3740. exports["default"] = _default;
  3741. exports.URL = exports.DNS = void 0;
  3742. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3743. var _parse = _interopRequireDefault(__nccwpck_require__(6385));
  3744. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3745. function stringToBytes(str) {
  3746. str = unescape(encodeURIComponent(str)); // UTF8 escape
  3747. const bytes = [];
  3748. for (let i = 0; i < str.length; ++i) {
  3749. bytes.push(str.charCodeAt(i));
  3750. }
  3751. return bytes;
  3752. }
  3753. const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
  3754. exports.DNS = DNS;
  3755. const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
  3756. exports.URL = URL;
  3757. function _default(name, version, hashfunc) {
  3758. function generateUUID(value, namespace, buf, offset) {
  3759. if (typeof value === 'string') {
  3760. value = stringToBytes(value);
  3761. }
  3762. if (typeof namespace === 'string') {
  3763. namespace = (0, _parse.default)(namespace);
  3764. }
  3765. if (namespace.length !== 16) {
  3766. throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
  3767. } // Compute hash of namespace and value, Per 4.3
  3768. // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
  3769. // hashfunc([...namespace, ... value])`
  3770. let bytes = new Uint8Array(16 + value.length);
  3771. bytes.set(namespace);
  3772. bytes.set(value, namespace.length);
  3773. bytes = hashfunc(bytes);
  3774. bytes[6] = bytes[6] & 0x0f | version;
  3775. bytes[8] = bytes[8] & 0x3f | 0x80;
  3776. if (buf) {
  3777. offset = offset || 0;
  3778. for (let i = 0; i < 16; ++i) {
  3779. buf[offset + i] = bytes[i];
  3780. }
  3781. return buf;
  3782. }
  3783. return (0, _stringify.default)(bytes);
  3784. } // Function#name is not settable on some platforms (#270)
  3785. try {
  3786. generateUUID.name = name; // eslint-disable-next-line no-empty
  3787. } catch (err) {} // For CommonJS default export support
  3788. generateUUID.DNS = DNS;
  3789. generateUUID.URL = URL;
  3790. return generateUUID;
  3791. }
  3792. /***/ }),
  3793. /***/ 1472:
  3794. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3795. "use strict";
  3796. Object.defineProperty(exports, "__esModule", ({
  3797. value: true
  3798. }));
  3799. exports["default"] = void 0;
  3800. var _rng = _interopRequireDefault(__nccwpck_require__(9784));
  3801. var _stringify = _interopRequireDefault(__nccwpck_require__(1458));
  3802. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3803. function v4(options, buf, offset) {
  3804. options = options || {};
  3805. const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  3806. rnds[6] = rnds[6] & 0x0f | 0x40;
  3807. rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
  3808. if (buf) {
  3809. offset = offset || 0;
  3810. for (let i = 0; i < 16; ++i) {
  3811. buf[offset + i] = rnds[i];
  3812. }
  3813. return buf;
  3814. }
  3815. return (0, _stringify.default)(rnds);
  3816. }
  3817. var _default = v4;
  3818. exports["default"] = _default;
  3819. /***/ }),
  3820. /***/ 6217:
  3821. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3822. "use strict";
  3823. Object.defineProperty(exports, "__esModule", ({
  3824. value: true
  3825. }));
  3826. exports["default"] = void 0;
  3827. var _v = _interopRequireDefault(__nccwpck_require__(5920));
  3828. var _sha = _interopRequireDefault(__nccwpck_require__(8844));
  3829. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3830. const v5 = (0, _v.default)('v5', 0x50, _sha.default);
  3831. var _default = v5;
  3832. exports["default"] = _default;
  3833. /***/ }),
  3834. /***/ 2609:
  3835. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3836. "use strict";
  3837. Object.defineProperty(exports, "__esModule", ({
  3838. value: true
  3839. }));
  3840. exports["default"] = void 0;
  3841. var _regex = _interopRequireDefault(__nccwpck_require__(6230));
  3842. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3843. function validate(uuid) {
  3844. return typeof uuid === 'string' && _regex.default.test(uuid);
  3845. }
  3846. var _default = validate;
  3847. exports["default"] = _default;
  3848. /***/ }),
  3849. /***/ 427:
  3850. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  3851. "use strict";
  3852. Object.defineProperty(exports, "__esModule", ({
  3853. value: true
  3854. }));
  3855. exports["default"] = void 0;
  3856. var _validate = _interopRequireDefault(__nccwpck_require__(2609));
  3857. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3858. function version(uuid) {
  3859. if (!(0, _validate.default)(uuid)) {
  3860. throw TypeError('Invalid UUID');
  3861. }
  3862. return parseInt(uuid.substr(14, 1), 16);
  3863. }
  3864. var _default = version;
  3865. exports["default"] = _default;
  3866. /***/ }),
  3867. /***/ 1514:
  3868. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3869. "use strict";
  3870. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3871. if (k2 === undefined) k2 = k;
  3872. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3873. }) : (function(o, m, k, k2) {
  3874. if (k2 === undefined) k2 = k;
  3875. o[k2] = m[k];
  3876. }));
  3877. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3878. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3879. }) : function(o, v) {
  3880. o["default"] = v;
  3881. });
  3882. var __importStar = (this && this.__importStar) || function (mod) {
  3883. if (mod && mod.__esModule) return mod;
  3884. var result = {};
  3885. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3886. __setModuleDefault(result, mod);
  3887. return result;
  3888. };
  3889. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3890. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3891. return new (P || (P = Promise))(function (resolve, reject) {
  3892. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3893. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3894. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3895. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3896. });
  3897. };
  3898. Object.defineProperty(exports, "__esModule", ({ value: true }));
  3899. exports.getExecOutput = exports.exec = void 0;
  3900. const string_decoder_1 = __nccwpck_require__(1576);
  3901. const tr = __importStar(__nccwpck_require__(8159));
  3902. /**
  3903. * Exec a command.
  3904. * Output will be streamed to the live console.
  3905. * Returns promise with return code
  3906. *
  3907. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  3908. * @param args optional arguments for tool. Escaping is handled by the lib.
  3909. * @param options optional exec options. See ExecOptions
  3910. * @returns Promise<number> exit code
  3911. */
  3912. function exec(commandLine, args, options) {
  3913. return __awaiter(this, void 0, void 0, function* () {
  3914. const commandArgs = tr.argStringToArray(commandLine);
  3915. if (commandArgs.length === 0) {
  3916. throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
  3917. }
  3918. // Path to tool to execute should be first arg
  3919. const toolPath = commandArgs[0];
  3920. args = commandArgs.slice(1).concat(args || []);
  3921. const runner = new tr.ToolRunner(toolPath, args, options);
  3922. return runner.exec();
  3923. });
  3924. }
  3925. exports.exec = exec;
  3926. /**
  3927. * Exec a command and get the output.
  3928. * Output will be streamed to the live console.
  3929. * Returns promise with the exit code and collected stdout and stderr
  3930. *
  3931. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  3932. * @param args optional arguments for tool. Escaping is handled by the lib.
  3933. * @param options optional exec options. See ExecOptions
  3934. * @returns Promise<ExecOutput> exit code, stdout, and stderr
  3935. */
  3936. function getExecOutput(commandLine, args, options) {
  3937. var _a, _b;
  3938. return __awaiter(this, void 0, void 0, function* () {
  3939. let stdout = '';
  3940. let stderr = '';
  3941. //Using string decoder covers the case where a mult-byte character is split
  3942. const stdoutDecoder = new string_decoder_1.StringDecoder('utf8');
  3943. const stderrDecoder = new string_decoder_1.StringDecoder('utf8');
  3944. const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;
  3945. const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;
  3946. const stdErrListener = (data) => {
  3947. stderr += stderrDecoder.write(data);
  3948. if (originalStdErrListener) {
  3949. originalStdErrListener(data);
  3950. }
  3951. };
  3952. const stdOutListener = (data) => {
  3953. stdout += stdoutDecoder.write(data);
  3954. if (originalStdoutListener) {
  3955. originalStdoutListener(data);
  3956. }
  3957. };
  3958. const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener });
  3959. const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners }));
  3960. //flush any remaining characters
  3961. stdout += stdoutDecoder.end();
  3962. stderr += stderrDecoder.end();
  3963. return {
  3964. exitCode,
  3965. stdout,
  3966. stderr
  3967. };
  3968. });
  3969. }
  3970. exports.getExecOutput = getExecOutput;
  3971. //# sourceMappingURL=exec.js.map
  3972. /***/ }),
  3973. /***/ 8159:
  3974. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  3975. "use strict";
  3976. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3977. if (k2 === undefined) k2 = k;
  3978. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3979. }) : (function(o, m, k, k2) {
  3980. if (k2 === undefined) k2 = k;
  3981. o[k2] = m[k];
  3982. }));
  3983. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3984. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3985. }) : function(o, v) {
  3986. o["default"] = v;
  3987. });
  3988. var __importStar = (this && this.__importStar) || function (mod) {
  3989. if (mod && mod.__esModule) return mod;
  3990. var result = {};
  3991. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3992. __setModuleDefault(result, mod);
  3993. return result;
  3994. };
  3995. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3996. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3997. return new (P || (P = Promise))(function (resolve, reject) {
  3998. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3999. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4000. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4001. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4002. });
  4003. };
  4004. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4005. exports.argStringToArray = exports.ToolRunner = void 0;
  4006. const os = __importStar(__nccwpck_require__(2037));
  4007. const events = __importStar(__nccwpck_require__(2361));
  4008. const child = __importStar(__nccwpck_require__(2081));
  4009. const path = __importStar(__nccwpck_require__(1017));
  4010. const io = __importStar(__nccwpck_require__(7436));
  4011. const ioUtil = __importStar(__nccwpck_require__(1962));
  4012. const timers_1 = __nccwpck_require__(9512);
  4013. /* eslint-disable @typescript-eslint/unbound-method */
  4014. const IS_WINDOWS = process.platform === 'win32';
  4015. /*
  4016. * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.
  4017. */
  4018. class ToolRunner extends events.EventEmitter {
  4019. constructor(toolPath, args, options) {
  4020. super();
  4021. if (!toolPath) {
  4022. throw new Error("Parameter 'toolPath' cannot be null or empty.");
  4023. }
  4024. this.toolPath = toolPath;
  4025. this.args = args || [];
  4026. this.options = options || {};
  4027. }
  4028. _debug(message) {
  4029. if (this.options.listeners && this.options.listeners.debug) {
  4030. this.options.listeners.debug(message);
  4031. }
  4032. }
  4033. _getCommandString(options, noPrefix) {
  4034. const toolPath = this._getSpawnFileName();
  4035. const args = this._getSpawnArgs(options);
  4036. let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool
  4037. if (IS_WINDOWS) {
  4038. // Windows + cmd file
  4039. if (this._isCmdFile()) {
  4040. cmd += toolPath;
  4041. for (const a of args) {
  4042. cmd += ` ${a}`;
  4043. }
  4044. }
  4045. // Windows + verbatim
  4046. else if (options.windowsVerbatimArguments) {
  4047. cmd += `"${toolPath}"`;
  4048. for (const a of args) {
  4049. cmd += ` ${a}`;
  4050. }
  4051. }
  4052. // Windows (regular)
  4053. else {
  4054. cmd += this._windowsQuoteCmdArg(toolPath);
  4055. for (const a of args) {
  4056. cmd += ` ${this._windowsQuoteCmdArg(a)}`;
  4057. }
  4058. }
  4059. }
  4060. else {
  4061. // OSX/Linux - this can likely be improved with some form of quoting.
  4062. // creating processes on Unix is fundamentally different than Windows.
  4063. // on Unix, execvp() takes an arg array.
  4064. cmd += toolPath;
  4065. for (const a of args) {
  4066. cmd += ` ${a}`;
  4067. }
  4068. }
  4069. return cmd;
  4070. }
  4071. _processLineBuffer(data, strBuffer, onLine) {
  4072. try {
  4073. let s = strBuffer + data.toString();
  4074. let n = s.indexOf(os.EOL);
  4075. while (n > -1) {
  4076. const line = s.substring(0, n);
  4077. onLine(line);
  4078. // the rest of the string ...
  4079. s = s.substring(n + os.EOL.length);
  4080. n = s.indexOf(os.EOL);
  4081. }
  4082. return s;
  4083. }
  4084. catch (err) {
  4085. // streaming lines to console is best effort. Don't fail a build.
  4086. this._debug(`error processing line. Failed with error ${err}`);
  4087. return '';
  4088. }
  4089. }
  4090. _getSpawnFileName() {
  4091. if (IS_WINDOWS) {
  4092. if (this._isCmdFile()) {
  4093. return process.env['COMSPEC'] || 'cmd.exe';
  4094. }
  4095. }
  4096. return this.toolPath;
  4097. }
  4098. _getSpawnArgs(options) {
  4099. if (IS_WINDOWS) {
  4100. if (this._isCmdFile()) {
  4101. let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
  4102. for (const a of this.args) {
  4103. argline += ' ';
  4104. argline += options.windowsVerbatimArguments
  4105. ? a
  4106. : this._windowsQuoteCmdArg(a);
  4107. }
  4108. argline += '"';
  4109. return [argline];
  4110. }
  4111. }
  4112. return this.args;
  4113. }
  4114. _endsWith(str, end) {
  4115. return str.endsWith(end);
  4116. }
  4117. _isCmdFile() {
  4118. const upperToolPath = this.toolPath.toUpperCase();
  4119. return (this._endsWith(upperToolPath, '.CMD') ||
  4120. this._endsWith(upperToolPath, '.BAT'));
  4121. }
  4122. _windowsQuoteCmdArg(arg) {
  4123. // for .exe, apply the normal quoting rules that libuv applies
  4124. if (!this._isCmdFile()) {
  4125. return this._uvQuoteCmdArg(arg);
  4126. }
  4127. // otherwise apply quoting rules specific to the cmd.exe command line parser.
  4128. // the libuv rules are generic and are not designed specifically for cmd.exe
  4129. // command line parser.
  4130. //
  4131. // for a detailed description of the cmd.exe command line parser, refer to
  4132. // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912
  4133. // need quotes for empty arg
  4134. if (!arg) {
  4135. return '""';
  4136. }
  4137. // determine whether the arg needs to be quoted
  4138. const cmdSpecialChars = [
  4139. ' ',
  4140. '\t',
  4141. '&',
  4142. '(',
  4143. ')',
  4144. '[',
  4145. ']',
  4146. '{',
  4147. '}',
  4148. '^',
  4149. '=',
  4150. ';',
  4151. '!',
  4152. "'",
  4153. '+',
  4154. ',',
  4155. '`',
  4156. '~',
  4157. '|',
  4158. '<',
  4159. '>',
  4160. '"'
  4161. ];
  4162. let needsQuotes = false;
  4163. for (const char of arg) {
  4164. if (cmdSpecialChars.some(x => x === char)) {
  4165. needsQuotes = true;
  4166. break;
  4167. }
  4168. }
  4169. // short-circuit if quotes not needed
  4170. if (!needsQuotes) {
  4171. return arg;
  4172. }
  4173. // the following quoting rules are very similar to the rules that by libuv applies.
  4174. //
  4175. // 1) wrap the string in quotes
  4176. //
  4177. // 2) double-up quotes - i.e. " => ""
  4178. //
  4179. // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately
  4180. // doesn't work well with a cmd.exe command line.
  4181. //
  4182. // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app.
  4183. // for example, the command line:
  4184. // foo.exe "myarg:""my val"""
  4185. // is parsed by a .NET console app into an arg array:
  4186. // [ "myarg:\"my val\"" ]
  4187. // which is the same end result when applying libuv quoting rules. although the actual
  4188. // command line from libuv quoting rules would look like:
  4189. // foo.exe "myarg:\"my val\""
  4190. //
  4191. // 3) double-up slashes that precede a quote,
  4192. // e.g. hello \world => "hello \world"
  4193. // hello\"world => "hello\\""world"
  4194. // hello\\"world => "hello\\\\""world"
  4195. // hello world\ => "hello world\\"
  4196. //
  4197. // technically this is not required for a cmd.exe command line, or the batch argument parser.
  4198. // the reasons for including this as a .cmd quoting rule are:
  4199. //
  4200. // a) this is optimized for the scenario where the argument is passed from the .cmd file to an
  4201. // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.
  4202. //
  4203. // b) it's what we've been doing previously (by deferring to node default behavior) and we
  4204. // haven't heard any complaints about that aspect.
  4205. //
  4206. // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be
  4207. // escaped when used on the command line directly - even though within a .cmd file % can be escaped
  4208. // by using %%.
  4209. //
  4210. // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts
  4211. // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.
  4212. //
  4213. // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would
  4214. // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the
  4215. // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args
  4216. // to an external program.
  4217. //
  4218. // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.
  4219. // % can be escaped within a .cmd file.
  4220. let reverse = '"';
  4221. let quoteHit = true;
  4222. for (let i = arg.length; i > 0; i--) {
  4223. // walk the string in reverse
  4224. reverse += arg[i - 1];
  4225. if (quoteHit && arg[i - 1] === '\\') {
  4226. reverse += '\\'; // double the slash
  4227. }
  4228. else if (arg[i - 1] === '"') {
  4229. quoteHit = true;
  4230. reverse += '"'; // double the quote
  4231. }
  4232. else {
  4233. quoteHit = false;
  4234. }
  4235. }
  4236. reverse += '"';
  4237. return reverse
  4238. .split('')
  4239. .reverse()
  4240. .join('');
  4241. }
  4242. _uvQuoteCmdArg(arg) {
  4243. // Tool runner wraps child_process.spawn() and needs to apply the same quoting as
  4244. // Node in certain cases where the undocumented spawn option windowsVerbatimArguments
  4245. // is used.
  4246. //
  4247. // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,
  4248. // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),
  4249. // pasting copyright notice from Node within this function:
  4250. //
  4251. // Copyright Joyent, Inc. and other Node contributors. All rights reserved.
  4252. //
  4253. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4254. // of this software and associated documentation files (the "Software"), to
  4255. // deal in the Software without restriction, including without limitation the
  4256. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  4257. // sell copies of the Software, and to permit persons to whom the Software is
  4258. // furnished to do so, subject to the following conditions:
  4259. //
  4260. // The above copyright notice and this permission notice shall be included in
  4261. // all copies or substantial portions of the Software.
  4262. //
  4263. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  4264. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  4265. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  4266. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  4267. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  4268. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  4269. // IN THE SOFTWARE.
  4270. if (!arg) {
  4271. // Need double quotation for empty argument
  4272. return '""';
  4273. }
  4274. if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) {
  4275. // No quotation needed
  4276. return arg;
  4277. }
  4278. if (!arg.includes('"') && !arg.includes('\\')) {
  4279. // No embedded double quotes or backslashes, so I can just wrap
  4280. // quote marks around the whole thing.
  4281. return `"${arg}"`;
  4282. }
  4283. // Expected input/output:
  4284. // input : hello"world
  4285. // output: "hello\"world"
  4286. // input : hello""world
  4287. // output: "hello\"\"world"
  4288. // input : hello\world
  4289. // output: hello\world
  4290. // input : hello\\world
  4291. // output: hello\\world
  4292. // input : hello\"world
  4293. // output: "hello\\\"world"
  4294. // input : hello\\"world
  4295. // output: "hello\\\\\"world"
  4296. // input : hello world\
  4297. // output: "hello world\\" - note the comment in libuv actually reads "hello world\"
  4298. // but it appears the comment is wrong, it should be "hello world\\"
  4299. let reverse = '"';
  4300. let quoteHit = true;
  4301. for (let i = arg.length; i > 0; i--) {
  4302. // walk the string in reverse
  4303. reverse += arg[i - 1];
  4304. if (quoteHit && arg[i - 1] === '\\') {
  4305. reverse += '\\';
  4306. }
  4307. else if (arg[i - 1] === '"') {
  4308. quoteHit = true;
  4309. reverse += '\\';
  4310. }
  4311. else {
  4312. quoteHit = false;
  4313. }
  4314. }
  4315. reverse += '"';
  4316. return reverse
  4317. .split('')
  4318. .reverse()
  4319. .join('');
  4320. }
  4321. _cloneExecOptions(options) {
  4322. options = options || {};
  4323. const result = {
  4324. cwd: options.cwd || process.cwd(),
  4325. env: options.env || process.env,
  4326. silent: options.silent || false,
  4327. windowsVerbatimArguments: options.windowsVerbatimArguments || false,
  4328. failOnStdErr: options.failOnStdErr || false,
  4329. ignoreReturnCode: options.ignoreReturnCode || false,
  4330. delay: options.delay || 10000
  4331. };
  4332. result.outStream = options.outStream || process.stdout;
  4333. result.errStream = options.errStream || process.stderr;
  4334. return result;
  4335. }
  4336. _getSpawnOptions(options, toolPath) {
  4337. options = options || {};
  4338. const result = {};
  4339. result.cwd = options.cwd;
  4340. result.env = options.env;
  4341. result['windowsVerbatimArguments'] =
  4342. options.windowsVerbatimArguments || this._isCmdFile();
  4343. if (options.windowsVerbatimArguments) {
  4344. result.argv0 = `"${toolPath}"`;
  4345. }
  4346. return result;
  4347. }
  4348. /**
  4349. * Exec a tool.
  4350. * Output will be streamed to the live console.
  4351. * Returns promise with return code
  4352. *
  4353. * @param tool path to tool to exec
  4354. * @param options optional exec options. See ExecOptions
  4355. * @returns number
  4356. */
  4357. exec() {
  4358. return __awaiter(this, void 0, void 0, function* () {
  4359. // root the tool path if it is unrooted and contains relative pathing
  4360. if (!ioUtil.isRooted(this.toolPath) &&
  4361. (this.toolPath.includes('/') ||
  4362. (IS_WINDOWS && this.toolPath.includes('\\')))) {
  4363. // prefer options.cwd if it is specified, however options.cwd may also need to be rooted
  4364. this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);
  4365. }
  4366. // if the tool is only a file name, then resolve it from the PATH
  4367. // otherwise verify it exists (add extension on Windows if necessary)
  4368. this.toolPath = yield io.which(this.toolPath, true);
  4369. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  4370. this._debug(`exec tool: ${this.toolPath}`);
  4371. this._debug('arguments:');
  4372. for (const arg of this.args) {
  4373. this._debug(` ${arg}`);
  4374. }
  4375. const optionsNonNull = this._cloneExecOptions(this.options);
  4376. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  4377. optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL);
  4378. }
  4379. const state = new ExecState(optionsNonNull, this.toolPath);
  4380. state.on('debug', (message) => {
  4381. this._debug(message);
  4382. });
  4383. if (this.options.cwd && !(yield ioUtil.exists(this.options.cwd))) {
  4384. return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`));
  4385. }
  4386. const fileName = this._getSpawnFileName();
  4387. const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));
  4388. let stdbuffer = '';
  4389. if (cp.stdout) {
  4390. cp.stdout.on('data', (data) => {
  4391. if (this.options.listeners && this.options.listeners.stdout) {
  4392. this.options.listeners.stdout(data);
  4393. }
  4394. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  4395. optionsNonNull.outStream.write(data);
  4396. }
  4397. stdbuffer = this._processLineBuffer(data, stdbuffer, (line) => {
  4398. if (this.options.listeners && this.options.listeners.stdline) {
  4399. this.options.listeners.stdline(line);
  4400. }
  4401. });
  4402. });
  4403. }
  4404. let errbuffer = '';
  4405. if (cp.stderr) {
  4406. cp.stderr.on('data', (data) => {
  4407. state.processStderr = true;
  4408. if (this.options.listeners && this.options.listeners.stderr) {
  4409. this.options.listeners.stderr(data);
  4410. }
  4411. if (!optionsNonNull.silent &&
  4412. optionsNonNull.errStream &&
  4413. optionsNonNull.outStream) {
  4414. const s = optionsNonNull.failOnStdErr
  4415. ? optionsNonNull.errStream
  4416. : optionsNonNull.outStream;
  4417. s.write(data);
  4418. }
  4419. errbuffer = this._processLineBuffer(data, errbuffer, (line) => {
  4420. if (this.options.listeners && this.options.listeners.errline) {
  4421. this.options.listeners.errline(line);
  4422. }
  4423. });
  4424. });
  4425. }
  4426. cp.on('error', (err) => {
  4427. state.processError = err.message;
  4428. state.processExited = true;
  4429. state.processClosed = true;
  4430. state.CheckComplete();
  4431. });
  4432. cp.on('exit', (code) => {
  4433. state.processExitCode = code;
  4434. state.processExited = true;
  4435. this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);
  4436. state.CheckComplete();
  4437. });
  4438. cp.on('close', (code) => {
  4439. state.processExitCode = code;
  4440. state.processExited = true;
  4441. state.processClosed = true;
  4442. this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
  4443. state.CheckComplete();
  4444. });
  4445. state.on('done', (error, exitCode) => {
  4446. if (stdbuffer.length > 0) {
  4447. this.emit('stdline', stdbuffer);
  4448. }
  4449. if (errbuffer.length > 0) {
  4450. this.emit('errline', errbuffer);
  4451. }
  4452. cp.removeAllListeners();
  4453. if (error) {
  4454. reject(error);
  4455. }
  4456. else {
  4457. resolve(exitCode);
  4458. }
  4459. });
  4460. if (this.options.input) {
  4461. if (!cp.stdin) {
  4462. throw new Error('child process missing stdin');
  4463. }
  4464. cp.stdin.end(this.options.input);
  4465. }
  4466. }));
  4467. });
  4468. }
  4469. }
  4470. exports.ToolRunner = ToolRunner;
  4471. /**
  4472. * Convert an arg string to an array of args. Handles escaping
  4473. *
  4474. * @param argString string of arguments
  4475. * @returns string[] array of arguments
  4476. */
  4477. function argStringToArray(argString) {
  4478. const args = [];
  4479. let inQuotes = false;
  4480. let escaped = false;
  4481. let arg = '';
  4482. function append(c) {
  4483. // we only escape double quotes.
  4484. if (escaped && c !== '"') {
  4485. arg += '\\';
  4486. }
  4487. arg += c;
  4488. escaped = false;
  4489. }
  4490. for (let i = 0; i < argString.length; i++) {
  4491. const c = argString.charAt(i);
  4492. if (c === '"') {
  4493. if (!escaped) {
  4494. inQuotes = !inQuotes;
  4495. }
  4496. else {
  4497. append(c);
  4498. }
  4499. continue;
  4500. }
  4501. if (c === '\\' && escaped) {
  4502. append(c);
  4503. continue;
  4504. }
  4505. if (c === '\\' && inQuotes) {
  4506. escaped = true;
  4507. continue;
  4508. }
  4509. if (c === ' ' && !inQuotes) {
  4510. if (arg.length > 0) {
  4511. args.push(arg);
  4512. arg = '';
  4513. }
  4514. continue;
  4515. }
  4516. append(c);
  4517. }
  4518. if (arg.length > 0) {
  4519. args.push(arg.trim());
  4520. }
  4521. return args;
  4522. }
  4523. exports.argStringToArray = argStringToArray;
  4524. class ExecState extends events.EventEmitter {
  4525. constructor(options, toolPath) {
  4526. super();
  4527. this.processClosed = false; // tracks whether the process has exited and stdio is closed
  4528. this.processError = '';
  4529. this.processExitCode = 0;
  4530. this.processExited = false; // tracks whether the process has exited
  4531. this.processStderr = false; // tracks whether stderr was written to
  4532. this.delay = 10000; // 10 seconds
  4533. this.done = false;
  4534. this.timeout = null;
  4535. if (!toolPath) {
  4536. throw new Error('toolPath must not be empty');
  4537. }
  4538. this.options = options;
  4539. this.toolPath = toolPath;
  4540. if (options.delay) {
  4541. this.delay = options.delay;
  4542. }
  4543. }
  4544. CheckComplete() {
  4545. if (this.done) {
  4546. return;
  4547. }
  4548. if (this.processClosed) {
  4549. this._setResult();
  4550. }
  4551. else if (this.processExited) {
  4552. this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this);
  4553. }
  4554. }
  4555. _debug(message) {
  4556. this.emit('debug', message);
  4557. }
  4558. _setResult() {
  4559. // determine whether there is an error
  4560. let error;
  4561. if (this.processExited) {
  4562. if (this.processError) {
  4563. error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`);
  4564. }
  4565. else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) {
  4566. error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
  4567. }
  4568. else if (this.processStderr && this.options.failOnStdErr) {
  4569. error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
  4570. }
  4571. }
  4572. // clear the timeout
  4573. if (this.timeout) {
  4574. clearTimeout(this.timeout);
  4575. this.timeout = null;
  4576. }
  4577. this.done = true;
  4578. this.emit('done', error, this.processExitCode);
  4579. }
  4580. static HandleTimeout(state) {
  4581. if (state.done) {
  4582. return;
  4583. }
  4584. if (!state.processClosed && state.processExited) {
  4585. const message = `The STDIO streams did not close within ${state.delay /
  4586. 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;
  4587. state._debug(message);
  4588. }
  4589. state._setResult();
  4590. }
  4591. }
  4592. //# sourceMappingURL=toolrunner.js.map
  4593. /***/ }),
  4594. /***/ 4087:
  4595. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  4596. "use strict";
  4597. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4598. exports.Context = void 0;
  4599. const fs_1 = __nccwpck_require__(7147);
  4600. const os_1 = __nccwpck_require__(2037);
  4601. class Context {
  4602. /**
  4603. * Hydrate the context from the environment
  4604. */
  4605. constructor() {
  4606. var _a, _b, _c;
  4607. this.payload = {};
  4608. if (process.env.GITHUB_EVENT_PATH) {
  4609. if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) {
  4610. this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
  4611. }
  4612. else {
  4613. const path = process.env.GITHUB_EVENT_PATH;
  4614. process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
  4615. }
  4616. }
  4617. this.eventName = process.env.GITHUB_EVENT_NAME;
  4618. this.sha = process.env.GITHUB_SHA;
  4619. this.ref = process.env.GITHUB_REF;
  4620. this.workflow = process.env.GITHUB_WORKFLOW;
  4621. this.action = process.env.GITHUB_ACTION;
  4622. this.actor = process.env.GITHUB_ACTOR;
  4623. this.job = process.env.GITHUB_JOB;
  4624. this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
  4625. this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
  4626. this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
  4627. this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`;
  4628. this.graphqlUrl =
  4629. (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`;
  4630. }
  4631. get issue() {
  4632. const payload = this.payload;
  4633. return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
  4634. }
  4635. get repo() {
  4636. if (process.env.GITHUB_REPOSITORY) {
  4637. const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
  4638. return { owner, repo };
  4639. }
  4640. if (this.payload.repository) {
  4641. return {
  4642. owner: this.payload.repository.owner.login,
  4643. repo: this.payload.repository.name
  4644. };
  4645. }
  4646. throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
  4647. }
  4648. }
  4649. exports.Context = Context;
  4650. //# sourceMappingURL=context.js.map
  4651. /***/ }),
  4652. /***/ 5438:
  4653. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4654. "use strict";
  4655. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4656. if (k2 === undefined) k2 = k;
  4657. var desc = Object.getOwnPropertyDescriptor(m, k);
  4658. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4659. desc = { enumerable: true, get: function() { return m[k]; } };
  4660. }
  4661. Object.defineProperty(o, k2, desc);
  4662. }) : (function(o, m, k, k2) {
  4663. if (k2 === undefined) k2 = k;
  4664. o[k2] = m[k];
  4665. }));
  4666. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4667. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4668. }) : function(o, v) {
  4669. o["default"] = v;
  4670. });
  4671. var __importStar = (this && this.__importStar) || function (mod) {
  4672. if (mod && mod.__esModule) return mod;
  4673. var result = {};
  4674. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4675. __setModuleDefault(result, mod);
  4676. return result;
  4677. };
  4678. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4679. exports.getOctokit = exports.context = void 0;
  4680. const Context = __importStar(__nccwpck_require__(4087));
  4681. const utils_1 = __nccwpck_require__(3030);
  4682. exports.context = new Context.Context();
  4683. /**
  4684. * Returns a hydrated octokit ready to use for GitHub Actions
  4685. *
  4686. * @param token the repo PAT or GITHUB_TOKEN
  4687. * @param options other options to set
  4688. */
  4689. function getOctokit(token, options, ...additionalPlugins) {
  4690. const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);
  4691. return new GitHubWithPlugins((0, utils_1.getOctokitOptions)(token, options));
  4692. }
  4693. exports.getOctokit = getOctokit;
  4694. //# sourceMappingURL=github.js.map
  4695. /***/ }),
  4696. /***/ 7914:
  4697. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4698. "use strict";
  4699. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4700. if (k2 === undefined) k2 = k;
  4701. var desc = Object.getOwnPropertyDescriptor(m, k);
  4702. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4703. desc = { enumerable: true, get: function() { return m[k]; } };
  4704. }
  4705. Object.defineProperty(o, k2, desc);
  4706. }) : (function(o, m, k, k2) {
  4707. if (k2 === undefined) k2 = k;
  4708. o[k2] = m[k];
  4709. }));
  4710. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4711. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4712. }) : function(o, v) {
  4713. o["default"] = v;
  4714. });
  4715. var __importStar = (this && this.__importStar) || function (mod) {
  4716. if (mod && mod.__esModule) return mod;
  4717. var result = {};
  4718. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4719. __setModuleDefault(result, mod);
  4720. return result;
  4721. };
  4722. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4723. exports.getApiBaseUrl = exports.getProxyFetch = exports.getProxyAgentDispatcher = exports.getProxyAgent = exports.getAuthString = void 0;
  4724. const httpClient = __importStar(__nccwpck_require__(6341));
  4725. const undici_1 = __nccwpck_require__(1773);
  4726. function getAuthString(token, options) {
  4727. if (!token && !options.auth) {
  4728. throw new Error('Parameter token or opts.auth is required');
  4729. }
  4730. else if (token && options.auth) {
  4731. throw new Error('Parameters token and opts.auth may not both be specified');
  4732. }
  4733. return typeof options.auth === 'string' ? options.auth : `token ${token}`;
  4734. }
  4735. exports.getAuthString = getAuthString;
  4736. function getProxyAgent(destinationUrl) {
  4737. const hc = new httpClient.HttpClient();
  4738. return hc.getAgent(destinationUrl);
  4739. }
  4740. exports.getProxyAgent = getProxyAgent;
  4741. function getProxyAgentDispatcher(destinationUrl) {
  4742. const hc = new httpClient.HttpClient();
  4743. return hc.getAgentDispatcher(destinationUrl);
  4744. }
  4745. exports.getProxyAgentDispatcher = getProxyAgentDispatcher;
  4746. function getProxyFetch(destinationUrl) {
  4747. const httpAgent = getProxyAgentDispatcher(destinationUrl);
  4748. const proxyFetch = (url, opts) => {
  4749. return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpAgent }));
  4750. };
  4751. return proxyFetch;
  4752. }
  4753. exports.getProxyFetch = getProxyFetch;
  4754. function getApiBaseUrl() {
  4755. return process.env['GITHUB_API_URL'] || 'https://api.github.com';
  4756. }
  4757. exports.getApiBaseUrl = getApiBaseUrl;
  4758. //# sourceMappingURL=utils.js.map
  4759. /***/ }),
  4760. /***/ 3030:
  4761. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4762. "use strict";
  4763. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4764. if (k2 === undefined) k2 = k;
  4765. var desc = Object.getOwnPropertyDescriptor(m, k);
  4766. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4767. desc = { enumerable: true, get: function() { return m[k]; } };
  4768. }
  4769. Object.defineProperty(o, k2, desc);
  4770. }) : (function(o, m, k, k2) {
  4771. if (k2 === undefined) k2 = k;
  4772. o[k2] = m[k];
  4773. }));
  4774. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4775. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4776. }) : function(o, v) {
  4777. o["default"] = v;
  4778. });
  4779. var __importStar = (this && this.__importStar) || function (mod) {
  4780. if (mod && mod.__esModule) return mod;
  4781. var result = {};
  4782. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4783. __setModuleDefault(result, mod);
  4784. return result;
  4785. };
  4786. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4787. exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;
  4788. const Context = __importStar(__nccwpck_require__(4087));
  4789. const Utils = __importStar(__nccwpck_require__(7914));
  4790. // octokit + plugins
  4791. const core_1 = __nccwpck_require__(6762);
  4792. const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044);
  4793. const plugin_paginate_rest_1 = __nccwpck_require__(4193);
  4794. exports.context = new Context.Context();
  4795. const baseUrl = Utils.getApiBaseUrl();
  4796. exports.defaults = {
  4797. baseUrl,
  4798. request: {
  4799. agent: Utils.getProxyAgent(baseUrl),
  4800. fetch: Utils.getProxyFetch(baseUrl)
  4801. }
  4802. };
  4803. exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults);
  4804. /**
  4805. * Convience function to correctly format Octokit Options to pass into the constructor.
  4806. *
  4807. * @param token the repo PAT or GITHUB_TOKEN
  4808. * @param options other options to set
  4809. */
  4810. function getOctokitOptions(token, options) {
  4811. const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller
  4812. // Auth
  4813. const auth = Utils.getAuthString(token, opts);
  4814. if (auth) {
  4815. opts.auth = auth;
  4816. }
  4817. return opts;
  4818. }
  4819. exports.getOctokitOptions = getOctokitOptions;
  4820. //# sourceMappingURL=utils.js.map
  4821. /***/ }),
  4822. /***/ 6341:
  4823. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  4824. "use strict";
  4825. /* eslint-disable @typescript-eslint/no-explicit-any */
  4826. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4827. if (k2 === undefined) k2 = k;
  4828. var desc = Object.getOwnPropertyDescriptor(m, k);
  4829. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  4830. desc = { enumerable: true, get: function() { return m[k]; } };
  4831. }
  4832. Object.defineProperty(o, k2, desc);
  4833. }) : (function(o, m, k, k2) {
  4834. if (k2 === undefined) k2 = k;
  4835. o[k2] = m[k];
  4836. }));
  4837. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4838. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4839. }) : function(o, v) {
  4840. o["default"] = v;
  4841. });
  4842. var __importStar = (this && this.__importStar) || function (mod) {
  4843. if (mod && mod.__esModule) return mod;
  4844. var result = {};
  4845. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4846. __setModuleDefault(result, mod);
  4847. return result;
  4848. };
  4849. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  4850. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4851. return new (P || (P = Promise))(function (resolve, reject) {
  4852. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  4853. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4854. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4855. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4856. });
  4857. };
  4858. Object.defineProperty(exports, "__esModule", ({ value: true }));
  4859. exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
  4860. const http = __importStar(__nccwpck_require__(3685));
  4861. const https = __importStar(__nccwpck_require__(5687));
  4862. const pm = __importStar(__nccwpck_require__(3466));
  4863. const tunnel = __importStar(__nccwpck_require__(4294));
  4864. const undici_1 = __nccwpck_require__(1773);
  4865. var HttpCodes;
  4866. (function (HttpCodes) {
  4867. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  4868. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  4869. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  4870. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  4871. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  4872. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  4873. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  4874. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  4875. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  4876. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  4877. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  4878. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  4879. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  4880. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  4881. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  4882. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  4883. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  4884. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  4885. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  4886. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  4887. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  4888. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  4889. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  4890. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  4891. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  4892. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  4893. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  4894. })(HttpCodes || (exports.HttpCodes = HttpCodes = {}));
  4895. var Headers;
  4896. (function (Headers) {
  4897. Headers["Accept"] = "accept";
  4898. Headers["ContentType"] = "content-type";
  4899. })(Headers || (exports.Headers = Headers = {}));
  4900. var MediaTypes;
  4901. (function (MediaTypes) {
  4902. MediaTypes["ApplicationJson"] = "application/json";
  4903. })(MediaTypes || (exports.MediaTypes = MediaTypes = {}));
  4904. /**
  4905. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  4906. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  4907. */
  4908. function getProxyUrl(serverUrl) {
  4909. const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
  4910. return proxyUrl ? proxyUrl.href : '';
  4911. }
  4912. exports.getProxyUrl = getProxyUrl;
  4913. const HttpRedirectCodes = [
  4914. HttpCodes.MovedPermanently,
  4915. HttpCodes.ResourceMoved,
  4916. HttpCodes.SeeOther,
  4917. HttpCodes.TemporaryRedirect,
  4918. HttpCodes.PermanentRedirect
  4919. ];
  4920. const HttpResponseRetryCodes = [
  4921. HttpCodes.BadGateway,
  4922. HttpCodes.ServiceUnavailable,
  4923. HttpCodes.GatewayTimeout
  4924. ];
  4925. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  4926. const ExponentialBackoffCeiling = 10;
  4927. const ExponentialBackoffTimeSlice = 5;
  4928. class HttpClientError extends Error {
  4929. constructor(message, statusCode) {
  4930. super(message);
  4931. this.name = 'HttpClientError';
  4932. this.statusCode = statusCode;
  4933. Object.setPrototypeOf(this, HttpClientError.prototype);
  4934. }
  4935. }
  4936. exports.HttpClientError = HttpClientError;
  4937. class HttpClientResponse {
  4938. constructor(message) {
  4939. this.message = message;
  4940. }
  4941. readBody() {
  4942. return __awaiter(this, void 0, void 0, function* () {
  4943. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  4944. let output = Buffer.alloc(0);
  4945. this.message.on('data', (chunk) => {
  4946. output = Buffer.concat([output, chunk]);
  4947. });
  4948. this.message.on('end', () => {
  4949. resolve(output.toString());
  4950. });
  4951. }));
  4952. });
  4953. }
  4954. readBodyBuffer() {
  4955. return __awaiter(this, void 0, void 0, function* () {
  4956. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  4957. const chunks = [];
  4958. this.message.on('data', (chunk) => {
  4959. chunks.push(chunk);
  4960. });
  4961. this.message.on('end', () => {
  4962. resolve(Buffer.concat(chunks));
  4963. });
  4964. }));
  4965. });
  4966. }
  4967. }
  4968. exports.HttpClientResponse = HttpClientResponse;
  4969. function isHttps(requestUrl) {
  4970. const parsedUrl = new URL(requestUrl);
  4971. return parsedUrl.protocol === 'https:';
  4972. }
  4973. exports.isHttps = isHttps;
  4974. class HttpClient {
  4975. constructor(userAgent, handlers, requestOptions) {
  4976. this._ignoreSslError = false;
  4977. this._allowRedirects = true;
  4978. this._allowRedirectDowngrade = false;
  4979. this._maxRedirects = 50;
  4980. this._allowRetries = false;
  4981. this._maxRetries = 1;
  4982. this._keepAlive = false;
  4983. this._disposed = false;
  4984. this.userAgent = userAgent;
  4985. this.handlers = handlers || [];
  4986. this.requestOptions = requestOptions;
  4987. if (requestOptions) {
  4988. if (requestOptions.ignoreSslError != null) {
  4989. this._ignoreSslError = requestOptions.ignoreSslError;
  4990. }
  4991. this._socketTimeout = requestOptions.socketTimeout;
  4992. if (requestOptions.allowRedirects != null) {
  4993. this._allowRedirects = requestOptions.allowRedirects;
  4994. }
  4995. if (requestOptions.allowRedirectDowngrade != null) {
  4996. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  4997. }
  4998. if (requestOptions.maxRedirects != null) {
  4999. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  5000. }
  5001. if (requestOptions.keepAlive != null) {
  5002. this._keepAlive = requestOptions.keepAlive;
  5003. }
  5004. if (requestOptions.allowRetries != null) {
  5005. this._allowRetries = requestOptions.allowRetries;
  5006. }
  5007. if (requestOptions.maxRetries != null) {
  5008. this._maxRetries = requestOptions.maxRetries;
  5009. }
  5010. }
  5011. }
  5012. options(requestUrl, additionalHeaders) {
  5013. return __awaiter(this, void 0, void 0, function* () {
  5014. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  5015. });
  5016. }
  5017. get(requestUrl, additionalHeaders) {
  5018. return __awaiter(this, void 0, void 0, function* () {
  5019. return this.request('GET', requestUrl, null, additionalHeaders || {});
  5020. });
  5021. }
  5022. del(requestUrl, additionalHeaders) {
  5023. return __awaiter(this, void 0, void 0, function* () {
  5024. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  5025. });
  5026. }
  5027. post(requestUrl, data, additionalHeaders) {
  5028. return __awaiter(this, void 0, void 0, function* () {
  5029. return this.request('POST', requestUrl, data, additionalHeaders || {});
  5030. });
  5031. }
  5032. patch(requestUrl, data, additionalHeaders) {
  5033. return __awaiter(this, void 0, void 0, function* () {
  5034. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  5035. });
  5036. }
  5037. put(requestUrl, data, additionalHeaders) {
  5038. return __awaiter(this, void 0, void 0, function* () {
  5039. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  5040. });
  5041. }
  5042. head(requestUrl, additionalHeaders) {
  5043. return __awaiter(this, void 0, void 0, function* () {
  5044. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  5045. });
  5046. }
  5047. sendStream(verb, requestUrl, stream, additionalHeaders) {
  5048. return __awaiter(this, void 0, void 0, function* () {
  5049. return this.request(verb, requestUrl, stream, additionalHeaders);
  5050. });
  5051. }
  5052. /**
  5053. * Gets a typed object from an endpoint
  5054. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  5055. */
  5056. getJson(requestUrl, additionalHeaders = {}) {
  5057. return __awaiter(this, void 0, void 0, function* () {
  5058. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5059. const res = yield this.get(requestUrl, additionalHeaders);
  5060. return this._processResponse(res, this.requestOptions);
  5061. });
  5062. }
  5063. postJson(requestUrl, obj, additionalHeaders = {}) {
  5064. return __awaiter(this, void 0, void 0, function* () {
  5065. const data = JSON.stringify(obj, null, 2);
  5066. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5067. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5068. const res = yield this.post(requestUrl, data, additionalHeaders);
  5069. return this._processResponse(res, this.requestOptions);
  5070. });
  5071. }
  5072. putJson(requestUrl, obj, additionalHeaders = {}) {
  5073. return __awaiter(this, void 0, void 0, function* () {
  5074. const data = JSON.stringify(obj, null, 2);
  5075. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5076. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5077. const res = yield this.put(requestUrl, data, additionalHeaders);
  5078. return this._processResponse(res, this.requestOptions);
  5079. });
  5080. }
  5081. patchJson(requestUrl, obj, additionalHeaders = {}) {
  5082. return __awaiter(this, void 0, void 0, function* () {
  5083. const data = JSON.stringify(obj, null, 2);
  5084. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5085. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5086. const res = yield this.patch(requestUrl, data, additionalHeaders);
  5087. return this._processResponse(res, this.requestOptions);
  5088. });
  5089. }
  5090. /**
  5091. * Makes a raw http request.
  5092. * All other methods such as get, post, patch, and request ultimately call this.
  5093. * Prefer get, del, post and patch
  5094. */
  5095. request(verb, requestUrl, data, headers) {
  5096. return __awaiter(this, void 0, void 0, function* () {
  5097. if (this._disposed) {
  5098. throw new Error('Client has already been disposed.');
  5099. }
  5100. const parsedUrl = new URL(requestUrl);
  5101. let info = this._prepareRequest(verb, parsedUrl, headers);
  5102. // Only perform retries on reads since writes may not be idempotent.
  5103. const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
  5104. ? this._maxRetries + 1
  5105. : 1;
  5106. let numTries = 0;
  5107. let response;
  5108. do {
  5109. response = yield this.requestRaw(info, data);
  5110. // Check if it's an authentication challenge
  5111. if (response &&
  5112. response.message &&
  5113. response.message.statusCode === HttpCodes.Unauthorized) {
  5114. let authenticationHandler;
  5115. for (const handler of this.handlers) {
  5116. if (handler.canHandleAuthentication(response)) {
  5117. authenticationHandler = handler;
  5118. break;
  5119. }
  5120. }
  5121. if (authenticationHandler) {
  5122. return authenticationHandler.handleAuthentication(this, info, data);
  5123. }
  5124. else {
  5125. // We have received an unauthorized response but have no handlers to handle it.
  5126. // Let the response return to the caller.
  5127. return response;
  5128. }
  5129. }
  5130. let redirectsRemaining = this._maxRedirects;
  5131. while (response.message.statusCode &&
  5132. HttpRedirectCodes.includes(response.message.statusCode) &&
  5133. this._allowRedirects &&
  5134. redirectsRemaining > 0) {
  5135. const redirectUrl = response.message.headers['location'];
  5136. if (!redirectUrl) {
  5137. // if there's no location to redirect to, we won't
  5138. break;
  5139. }
  5140. const parsedRedirectUrl = new URL(redirectUrl);
  5141. if (parsedUrl.protocol === 'https:' &&
  5142. parsedUrl.protocol !== parsedRedirectUrl.protocol &&
  5143. !this._allowRedirectDowngrade) {
  5144. throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
  5145. }
  5146. // we need to finish reading the response before reassigning response
  5147. // which will leak the open socket.
  5148. yield response.readBody();
  5149. // strip authorization header if redirected to a different hostname
  5150. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  5151. for (const header in headers) {
  5152. // header names are case insensitive
  5153. if (header.toLowerCase() === 'authorization') {
  5154. delete headers[header];
  5155. }
  5156. }
  5157. }
  5158. // let's make the request with the new redirectUrl
  5159. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  5160. response = yield this.requestRaw(info, data);
  5161. redirectsRemaining--;
  5162. }
  5163. if (!response.message.statusCode ||
  5164. !HttpResponseRetryCodes.includes(response.message.statusCode)) {
  5165. // If not a retry code, return immediately instead of retrying
  5166. return response;
  5167. }
  5168. numTries += 1;
  5169. if (numTries < maxTries) {
  5170. yield response.readBody();
  5171. yield this._performExponentialBackoff(numTries);
  5172. }
  5173. } while (numTries < maxTries);
  5174. return response;
  5175. });
  5176. }
  5177. /**
  5178. * Needs to be called if keepAlive is set to true in request options.
  5179. */
  5180. dispose() {
  5181. if (this._agent) {
  5182. this._agent.destroy();
  5183. }
  5184. this._disposed = true;
  5185. }
  5186. /**
  5187. * Raw request.
  5188. * @param info
  5189. * @param data
  5190. */
  5191. requestRaw(info, data) {
  5192. return __awaiter(this, void 0, void 0, function* () {
  5193. return new Promise((resolve, reject) => {
  5194. function callbackForResult(err, res) {
  5195. if (err) {
  5196. reject(err);
  5197. }
  5198. else if (!res) {
  5199. // If `err` is not passed, then `res` must be passed.
  5200. reject(new Error('Unknown error'));
  5201. }
  5202. else {
  5203. resolve(res);
  5204. }
  5205. }
  5206. this.requestRawWithCallback(info, data, callbackForResult);
  5207. });
  5208. });
  5209. }
  5210. /**
  5211. * Raw request with callback.
  5212. * @param info
  5213. * @param data
  5214. * @param onResult
  5215. */
  5216. requestRawWithCallback(info, data, onResult) {
  5217. if (typeof data === 'string') {
  5218. if (!info.options.headers) {
  5219. info.options.headers = {};
  5220. }
  5221. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  5222. }
  5223. let callbackCalled = false;
  5224. function handleResult(err, res) {
  5225. if (!callbackCalled) {
  5226. callbackCalled = true;
  5227. onResult(err, res);
  5228. }
  5229. }
  5230. const req = info.httpModule.request(info.options, (msg) => {
  5231. const res = new HttpClientResponse(msg);
  5232. handleResult(undefined, res);
  5233. });
  5234. let socket;
  5235. req.on('socket', sock => {
  5236. socket = sock;
  5237. });
  5238. // If we ever get disconnected, we want the socket to timeout eventually
  5239. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  5240. if (socket) {
  5241. socket.end();
  5242. }
  5243. handleResult(new Error(`Request timeout: ${info.options.path}`));
  5244. });
  5245. req.on('error', function (err) {
  5246. // err has statusCode property
  5247. // res should have headers
  5248. handleResult(err);
  5249. });
  5250. if (data && typeof data === 'string') {
  5251. req.write(data, 'utf8');
  5252. }
  5253. if (data && typeof data !== 'string') {
  5254. data.on('close', function () {
  5255. req.end();
  5256. });
  5257. data.pipe(req);
  5258. }
  5259. else {
  5260. req.end();
  5261. }
  5262. }
  5263. /**
  5264. * Gets an http agent. This function is useful when you need an http agent that handles
  5265. * routing through a proxy server - depending upon the url and proxy environment variables.
  5266. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  5267. */
  5268. getAgent(serverUrl) {
  5269. const parsedUrl = new URL(serverUrl);
  5270. return this._getAgent(parsedUrl);
  5271. }
  5272. getAgentDispatcher(serverUrl) {
  5273. const parsedUrl = new URL(serverUrl);
  5274. const proxyUrl = pm.getProxyUrl(parsedUrl);
  5275. const useProxy = proxyUrl && proxyUrl.hostname;
  5276. if (useProxy) {
  5277. return this._getProxyAgentDispatcher(parsedUrl, proxyUrl);
  5278. }
  5279. else {
  5280. return this._getAgentDispatcher(parsedUrl);
  5281. }
  5282. }
  5283. _prepareRequest(method, requestUrl, headers) {
  5284. const info = {};
  5285. info.parsedUrl = requestUrl;
  5286. const usingSsl = info.parsedUrl.protocol === 'https:';
  5287. info.httpModule = usingSsl ? https : http;
  5288. const defaultPort = usingSsl ? 443 : 80;
  5289. info.options = {};
  5290. info.options.host = info.parsedUrl.hostname;
  5291. info.options.port = info.parsedUrl.port
  5292. ? parseInt(info.parsedUrl.port)
  5293. : defaultPort;
  5294. info.options.path =
  5295. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  5296. info.options.method = method;
  5297. info.options.headers = this._mergeHeaders(headers);
  5298. if (this.userAgent != null) {
  5299. info.options.headers['user-agent'] = this.userAgent;
  5300. }
  5301. info.options.agent = this._getAgent(info.parsedUrl);
  5302. // gives handlers an opportunity to participate
  5303. if (this.handlers) {
  5304. for (const handler of this.handlers) {
  5305. handler.prepareRequest(info.options);
  5306. }
  5307. }
  5308. return info;
  5309. }
  5310. _mergeHeaders(headers) {
  5311. if (this.requestOptions && this.requestOptions.headers) {
  5312. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
  5313. }
  5314. return lowercaseKeys(headers || {});
  5315. }
  5316. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  5317. let clientHeader;
  5318. if (this.requestOptions && this.requestOptions.headers) {
  5319. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  5320. }
  5321. return additionalHeaders[header] || clientHeader || _default;
  5322. }
  5323. _getAgent(parsedUrl) {
  5324. let agent;
  5325. const proxyUrl = pm.getProxyUrl(parsedUrl);
  5326. const useProxy = proxyUrl && proxyUrl.hostname;
  5327. if (this._keepAlive && useProxy) {
  5328. agent = this._proxyAgent;
  5329. }
  5330. if (this._keepAlive && !useProxy) {
  5331. agent = this._agent;
  5332. }
  5333. // if agent is already assigned use that agent.
  5334. if (agent) {
  5335. return agent;
  5336. }
  5337. const usingSsl = parsedUrl.protocol === 'https:';
  5338. let maxSockets = 100;
  5339. if (this.requestOptions) {
  5340. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  5341. }
  5342. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  5343. if (proxyUrl && proxyUrl.hostname) {
  5344. const agentOptions = {
  5345. maxSockets,
  5346. keepAlive: this._keepAlive,
  5347. proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
  5348. proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
  5349. })), { host: proxyUrl.hostname, port: proxyUrl.port })
  5350. };
  5351. let tunnelAgent;
  5352. const overHttps = proxyUrl.protocol === 'https:';
  5353. if (usingSsl) {
  5354. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  5355. }
  5356. else {
  5357. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  5358. }
  5359. agent = tunnelAgent(agentOptions);
  5360. this._proxyAgent = agent;
  5361. }
  5362. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  5363. if (this._keepAlive && !agent) {
  5364. const options = { keepAlive: this._keepAlive, maxSockets };
  5365. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  5366. this._agent = agent;
  5367. }
  5368. // if not using private agent and tunnel agent isn't setup then use global agent
  5369. if (!agent) {
  5370. agent = usingSsl ? https.globalAgent : http.globalAgent;
  5371. }
  5372. if (usingSsl && this._ignoreSslError) {
  5373. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  5374. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  5375. // we have to cast it to any and change it directly
  5376. agent.options = Object.assign(agent.options || {}, {
  5377. rejectUnauthorized: false
  5378. });
  5379. }
  5380. return agent;
  5381. }
  5382. _getProxyAgentDispatcher(parsedUrl, proxyUrl) {
  5383. let proxyAgent;
  5384. const useProxy = proxyUrl && proxyUrl.hostname;
  5385. if (this._keepAlive && useProxy) {
  5386. proxyAgent = this._proxyAgentDispatcher;
  5387. }
  5388. if (this._keepAlive && !useProxy) {
  5389. proxyAgent = this._agentDispatcher;
  5390. }
  5391. // if agent is already assigned use that agent.
  5392. if (proxyAgent) {
  5393. return proxyAgent;
  5394. }
  5395. const usingSsl = parsedUrl.protocol === 'https:';
  5396. let maxSockets = 100;
  5397. if (this.requestOptions) {
  5398. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  5399. }
  5400. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  5401. if (proxyUrl && proxyUrl.hostname) {
  5402. proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: (!this._keepAlive ? 0 : 1) }, ((proxyUrl.username || proxyUrl.password) && {
  5403. token: `${proxyUrl.username}:${proxyUrl.password}`
  5404. })));
  5405. this._proxyAgentDispatcher = proxyAgent;
  5406. }
  5407. if (usingSsl && this._ignoreSslError) {
  5408. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  5409. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  5410. // we have to cast it to any and change it directly
  5411. proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, {
  5412. rejectUnauthorized: false
  5413. });
  5414. }
  5415. return proxyAgent;
  5416. }
  5417. _getAgentDispatcher(parsedUrl) {
  5418. let agent;
  5419. if (this._keepAlive) {
  5420. agent = this._agentDispatcher;
  5421. }
  5422. // if agent is already assigned use that agent.
  5423. if (agent) {
  5424. return agent;
  5425. }
  5426. const usingSsl = parsedUrl.protocol === 'https:';
  5427. let maxSockets = 100;
  5428. if (this.requestOptions) {
  5429. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  5430. }
  5431. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  5432. if (!agent) {
  5433. agent = new undici_1.Agent({
  5434. pipelining: (!this._keepAlive ? 0 : 1),
  5435. });
  5436. this._agentDispatcher = agent;
  5437. }
  5438. if (usingSsl && this._ignoreSslError) {
  5439. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  5440. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  5441. // we have to cast it to any and change it directly
  5442. agent.options = Object.assign(agent.options.connect || {}, {
  5443. rejectUnauthorized: false
  5444. });
  5445. }
  5446. return agent;
  5447. }
  5448. _performExponentialBackoff(retryNumber) {
  5449. return __awaiter(this, void 0, void 0, function* () {
  5450. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  5451. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  5452. return new Promise(resolve => setTimeout(() => resolve(), ms));
  5453. });
  5454. }
  5455. _processResponse(res, options) {
  5456. return __awaiter(this, void 0, void 0, function* () {
  5457. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  5458. const statusCode = res.message.statusCode || 0;
  5459. const response = {
  5460. statusCode,
  5461. result: null,
  5462. headers: {}
  5463. };
  5464. // not found leads to null obj returned
  5465. if (statusCode === HttpCodes.NotFound) {
  5466. resolve(response);
  5467. }
  5468. // get the result from the body
  5469. function dateTimeDeserializer(key, value) {
  5470. if (typeof value === 'string') {
  5471. const a = new Date(value);
  5472. if (!isNaN(a.valueOf())) {
  5473. return a;
  5474. }
  5475. }
  5476. return value;
  5477. }
  5478. let obj;
  5479. let contents;
  5480. try {
  5481. contents = yield res.readBody();
  5482. if (contents && contents.length > 0) {
  5483. if (options && options.deserializeDates) {
  5484. obj = JSON.parse(contents, dateTimeDeserializer);
  5485. }
  5486. else {
  5487. obj = JSON.parse(contents);
  5488. }
  5489. response.result = obj;
  5490. }
  5491. response.headers = res.message.headers;
  5492. }
  5493. catch (err) {
  5494. // Invalid resource (contents not json); leaving result obj null
  5495. }
  5496. // note that 3xx redirects are handled by the http layer.
  5497. if (statusCode > 299) {
  5498. let msg;
  5499. // if exception/error in body, attempt to get better error
  5500. if (obj && obj.message) {
  5501. msg = obj.message;
  5502. }
  5503. else if (contents && contents.length > 0) {
  5504. // it may be the case that the exception is in the body message as string
  5505. msg = contents;
  5506. }
  5507. else {
  5508. msg = `Failed request: (${statusCode})`;
  5509. }
  5510. const err = new HttpClientError(msg, statusCode);
  5511. err.result = response.result;
  5512. reject(err);
  5513. }
  5514. else {
  5515. resolve(response);
  5516. }
  5517. }));
  5518. });
  5519. }
  5520. }
  5521. exports.HttpClient = HttpClient;
  5522. const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  5523. //# sourceMappingURL=index.js.map
  5524. /***/ }),
  5525. /***/ 3466:
  5526. /***/ ((__unused_webpack_module, exports) => {
  5527. "use strict";
  5528. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5529. exports.checkBypass = exports.getProxyUrl = void 0;
  5530. function getProxyUrl(reqUrl) {
  5531. const usingSsl = reqUrl.protocol === 'https:';
  5532. if (checkBypass(reqUrl)) {
  5533. return undefined;
  5534. }
  5535. const proxyVar = (() => {
  5536. if (usingSsl) {
  5537. return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  5538. }
  5539. else {
  5540. return process.env['http_proxy'] || process.env['HTTP_PROXY'];
  5541. }
  5542. })();
  5543. if (proxyVar) {
  5544. try {
  5545. return new URL(proxyVar);
  5546. }
  5547. catch (_a) {
  5548. if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
  5549. return new URL(`http://${proxyVar}`);
  5550. }
  5551. }
  5552. else {
  5553. return undefined;
  5554. }
  5555. }
  5556. exports.getProxyUrl = getProxyUrl;
  5557. function checkBypass(reqUrl) {
  5558. if (!reqUrl.hostname) {
  5559. return false;
  5560. }
  5561. const reqHost = reqUrl.hostname;
  5562. if (isLoopbackAddress(reqHost)) {
  5563. return true;
  5564. }
  5565. const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  5566. if (!noProxy) {
  5567. return false;
  5568. }
  5569. // Determine the request port
  5570. let reqPort;
  5571. if (reqUrl.port) {
  5572. reqPort = Number(reqUrl.port);
  5573. }
  5574. else if (reqUrl.protocol === 'http:') {
  5575. reqPort = 80;
  5576. }
  5577. else if (reqUrl.protocol === 'https:') {
  5578. reqPort = 443;
  5579. }
  5580. // Format the request hostname and hostname with port
  5581. const upperReqHosts = [reqUrl.hostname.toUpperCase()];
  5582. if (typeof reqPort === 'number') {
  5583. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  5584. }
  5585. // Compare request host against noproxy
  5586. for (const upperNoProxyItem of noProxy
  5587. .split(',')
  5588. .map(x => x.trim().toUpperCase())
  5589. .filter(x => x)) {
  5590. if (upperNoProxyItem === '*' ||
  5591. upperReqHosts.some(x => x === upperNoProxyItem ||
  5592. x.endsWith(`.${upperNoProxyItem}`) ||
  5593. (upperNoProxyItem.startsWith('.') &&
  5594. x.endsWith(`${upperNoProxyItem}`)))) {
  5595. return true;
  5596. }
  5597. }
  5598. return false;
  5599. }
  5600. exports.checkBypass = checkBypass;
  5601. function isLoopbackAddress(host) {
  5602. const hostLower = host.toLowerCase();
  5603. return (hostLower === 'localhost' ||
  5604. hostLower.startsWith('127.') ||
  5605. hostLower.startsWith('[::1]') ||
  5606. hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
  5607. }
  5608. //# sourceMappingURL=proxy.js.map
  5609. /***/ }),
  5610. /***/ 5526:
  5611. /***/ (function(__unused_webpack_module, exports) {
  5612. "use strict";
  5613. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  5614. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  5615. return new (P || (P = Promise))(function (resolve, reject) {
  5616. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5617. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  5618. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  5619. step((generator = generator.apply(thisArg, _arguments || [])).next());
  5620. });
  5621. };
  5622. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5623. exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0;
  5624. class BasicCredentialHandler {
  5625. constructor(username, password) {
  5626. this.username = username;
  5627. this.password = password;
  5628. }
  5629. prepareRequest(options) {
  5630. if (!options.headers) {
  5631. throw Error('The request has no headers');
  5632. }
  5633. options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;
  5634. }
  5635. // This handler cannot handle 401
  5636. canHandleAuthentication() {
  5637. return false;
  5638. }
  5639. handleAuthentication() {
  5640. return __awaiter(this, void 0, void 0, function* () {
  5641. throw new Error('not implemented');
  5642. });
  5643. }
  5644. }
  5645. exports.BasicCredentialHandler = BasicCredentialHandler;
  5646. class BearerCredentialHandler {
  5647. constructor(token) {
  5648. this.token = token;
  5649. }
  5650. // currently implements pre-authorization
  5651. // TODO: support preAuth = false where it hooks on 401
  5652. prepareRequest(options) {
  5653. if (!options.headers) {
  5654. throw Error('The request has no headers');
  5655. }
  5656. options.headers['Authorization'] = `Bearer ${this.token}`;
  5657. }
  5658. // This handler cannot handle 401
  5659. canHandleAuthentication() {
  5660. return false;
  5661. }
  5662. handleAuthentication() {
  5663. return __awaiter(this, void 0, void 0, function* () {
  5664. throw new Error('not implemented');
  5665. });
  5666. }
  5667. }
  5668. exports.BearerCredentialHandler = BearerCredentialHandler;
  5669. class PersonalAccessTokenCredentialHandler {
  5670. constructor(token) {
  5671. this.token = token;
  5672. }
  5673. // currently implements pre-authorization
  5674. // TODO: support preAuth = false where it hooks on 401
  5675. prepareRequest(options) {
  5676. if (!options.headers) {
  5677. throw Error('The request has no headers');
  5678. }
  5679. options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;
  5680. }
  5681. // This handler cannot handle 401
  5682. canHandleAuthentication() {
  5683. return false;
  5684. }
  5685. handleAuthentication() {
  5686. return __awaiter(this, void 0, void 0, function* () {
  5687. throw new Error('not implemented');
  5688. });
  5689. }
  5690. }
  5691. exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
  5692. //# sourceMappingURL=auth.js.map
  5693. /***/ }),
  5694. /***/ 6255:
  5695. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  5696. "use strict";
  5697. /* eslint-disable @typescript-eslint/no-explicit-any */
  5698. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  5699. if (k2 === undefined) k2 = k;
  5700. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  5701. }) : (function(o, m, k, k2) {
  5702. if (k2 === undefined) k2 = k;
  5703. o[k2] = m[k];
  5704. }));
  5705. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  5706. Object.defineProperty(o, "default", { enumerable: true, value: v });
  5707. }) : function(o, v) {
  5708. o["default"] = v;
  5709. });
  5710. var __importStar = (this && this.__importStar) || function (mod) {
  5711. if (mod && mod.__esModule) return mod;
  5712. var result = {};
  5713. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  5714. __setModuleDefault(result, mod);
  5715. return result;
  5716. };
  5717. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  5718. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  5719. return new (P || (P = Promise))(function (resolve, reject) {
  5720. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5721. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  5722. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  5723. step((generator = generator.apply(thisArg, _arguments || [])).next());
  5724. });
  5725. };
  5726. Object.defineProperty(exports, "__esModule", ({ value: true }));
  5727. exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
  5728. const http = __importStar(__nccwpck_require__(3685));
  5729. const https = __importStar(__nccwpck_require__(5687));
  5730. const pm = __importStar(__nccwpck_require__(9835));
  5731. const tunnel = __importStar(__nccwpck_require__(4294));
  5732. var HttpCodes;
  5733. (function (HttpCodes) {
  5734. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  5735. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  5736. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  5737. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  5738. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  5739. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  5740. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  5741. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  5742. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  5743. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  5744. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  5745. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  5746. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  5747. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  5748. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  5749. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  5750. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  5751. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  5752. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  5753. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  5754. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  5755. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  5756. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  5757. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  5758. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  5759. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  5760. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  5761. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  5762. var Headers;
  5763. (function (Headers) {
  5764. Headers["Accept"] = "accept";
  5765. Headers["ContentType"] = "content-type";
  5766. })(Headers = exports.Headers || (exports.Headers = {}));
  5767. var MediaTypes;
  5768. (function (MediaTypes) {
  5769. MediaTypes["ApplicationJson"] = "application/json";
  5770. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  5771. /**
  5772. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  5773. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  5774. */
  5775. function getProxyUrl(serverUrl) {
  5776. const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
  5777. return proxyUrl ? proxyUrl.href : '';
  5778. }
  5779. exports.getProxyUrl = getProxyUrl;
  5780. const HttpRedirectCodes = [
  5781. HttpCodes.MovedPermanently,
  5782. HttpCodes.ResourceMoved,
  5783. HttpCodes.SeeOther,
  5784. HttpCodes.TemporaryRedirect,
  5785. HttpCodes.PermanentRedirect
  5786. ];
  5787. const HttpResponseRetryCodes = [
  5788. HttpCodes.BadGateway,
  5789. HttpCodes.ServiceUnavailable,
  5790. HttpCodes.GatewayTimeout
  5791. ];
  5792. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  5793. const ExponentialBackoffCeiling = 10;
  5794. const ExponentialBackoffTimeSlice = 5;
  5795. class HttpClientError extends Error {
  5796. constructor(message, statusCode) {
  5797. super(message);
  5798. this.name = 'HttpClientError';
  5799. this.statusCode = statusCode;
  5800. Object.setPrototypeOf(this, HttpClientError.prototype);
  5801. }
  5802. }
  5803. exports.HttpClientError = HttpClientError;
  5804. class HttpClientResponse {
  5805. constructor(message) {
  5806. this.message = message;
  5807. }
  5808. readBody() {
  5809. return __awaiter(this, void 0, void 0, function* () {
  5810. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  5811. let output = Buffer.alloc(0);
  5812. this.message.on('data', (chunk) => {
  5813. output = Buffer.concat([output, chunk]);
  5814. });
  5815. this.message.on('end', () => {
  5816. resolve(output.toString());
  5817. });
  5818. }));
  5819. });
  5820. }
  5821. }
  5822. exports.HttpClientResponse = HttpClientResponse;
  5823. function isHttps(requestUrl) {
  5824. const parsedUrl = new URL(requestUrl);
  5825. return parsedUrl.protocol === 'https:';
  5826. }
  5827. exports.isHttps = isHttps;
  5828. class HttpClient {
  5829. constructor(userAgent, handlers, requestOptions) {
  5830. this._ignoreSslError = false;
  5831. this._allowRedirects = true;
  5832. this._allowRedirectDowngrade = false;
  5833. this._maxRedirects = 50;
  5834. this._allowRetries = false;
  5835. this._maxRetries = 1;
  5836. this._keepAlive = false;
  5837. this._disposed = false;
  5838. this.userAgent = userAgent;
  5839. this.handlers = handlers || [];
  5840. this.requestOptions = requestOptions;
  5841. if (requestOptions) {
  5842. if (requestOptions.ignoreSslError != null) {
  5843. this._ignoreSslError = requestOptions.ignoreSslError;
  5844. }
  5845. this._socketTimeout = requestOptions.socketTimeout;
  5846. if (requestOptions.allowRedirects != null) {
  5847. this._allowRedirects = requestOptions.allowRedirects;
  5848. }
  5849. if (requestOptions.allowRedirectDowngrade != null) {
  5850. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  5851. }
  5852. if (requestOptions.maxRedirects != null) {
  5853. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  5854. }
  5855. if (requestOptions.keepAlive != null) {
  5856. this._keepAlive = requestOptions.keepAlive;
  5857. }
  5858. if (requestOptions.allowRetries != null) {
  5859. this._allowRetries = requestOptions.allowRetries;
  5860. }
  5861. if (requestOptions.maxRetries != null) {
  5862. this._maxRetries = requestOptions.maxRetries;
  5863. }
  5864. }
  5865. }
  5866. options(requestUrl, additionalHeaders) {
  5867. return __awaiter(this, void 0, void 0, function* () {
  5868. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  5869. });
  5870. }
  5871. get(requestUrl, additionalHeaders) {
  5872. return __awaiter(this, void 0, void 0, function* () {
  5873. return this.request('GET', requestUrl, null, additionalHeaders || {});
  5874. });
  5875. }
  5876. del(requestUrl, additionalHeaders) {
  5877. return __awaiter(this, void 0, void 0, function* () {
  5878. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  5879. });
  5880. }
  5881. post(requestUrl, data, additionalHeaders) {
  5882. return __awaiter(this, void 0, void 0, function* () {
  5883. return this.request('POST', requestUrl, data, additionalHeaders || {});
  5884. });
  5885. }
  5886. patch(requestUrl, data, additionalHeaders) {
  5887. return __awaiter(this, void 0, void 0, function* () {
  5888. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  5889. });
  5890. }
  5891. put(requestUrl, data, additionalHeaders) {
  5892. return __awaiter(this, void 0, void 0, function* () {
  5893. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  5894. });
  5895. }
  5896. head(requestUrl, additionalHeaders) {
  5897. return __awaiter(this, void 0, void 0, function* () {
  5898. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  5899. });
  5900. }
  5901. sendStream(verb, requestUrl, stream, additionalHeaders) {
  5902. return __awaiter(this, void 0, void 0, function* () {
  5903. return this.request(verb, requestUrl, stream, additionalHeaders);
  5904. });
  5905. }
  5906. /**
  5907. * Gets a typed object from an endpoint
  5908. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  5909. */
  5910. getJson(requestUrl, additionalHeaders = {}) {
  5911. return __awaiter(this, void 0, void 0, function* () {
  5912. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5913. const res = yield this.get(requestUrl, additionalHeaders);
  5914. return this._processResponse(res, this.requestOptions);
  5915. });
  5916. }
  5917. postJson(requestUrl, obj, additionalHeaders = {}) {
  5918. return __awaiter(this, void 0, void 0, function* () {
  5919. const data = JSON.stringify(obj, null, 2);
  5920. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5921. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5922. const res = yield this.post(requestUrl, data, additionalHeaders);
  5923. return this._processResponse(res, this.requestOptions);
  5924. });
  5925. }
  5926. putJson(requestUrl, obj, additionalHeaders = {}) {
  5927. return __awaiter(this, void 0, void 0, function* () {
  5928. const data = JSON.stringify(obj, null, 2);
  5929. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5930. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5931. const res = yield this.put(requestUrl, data, additionalHeaders);
  5932. return this._processResponse(res, this.requestOptions);
  5933. });
  5934. }
  5935. patchJson(requestUrl, obj, additionalHeaders = {}) {
  5936. return __awaiter(this, void 0, void 0, function* () {
  5937. const data = JSON.stringify(obj, null, 2);
  5938. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  5939. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  5940. const res = yield this.patch(requestUrl, data, additionalHeaders);
  5941. return this._processResponse(res, this.requestOptions);
  5942. });
  5943. }
  5944. /**
  5945. * Makes a raw http request.
  5946. * All other methods such as get, post, patch, and request ultimately call this.
  5947. * Prefer get, del, post and patch
  5948. */
  5949. request(verb, requestUrl, data, headers) {
  5950. return __awaiter(this, void 0, void 0, function* () {
  5951. if (this._disposed) {
  5952. throw new Error('Client has already been disposed.');
  5953. }
  5954. const parsedUrl = new URL(requestUrl);
  5955. let info = this._prepareRequest(verb, parsedUrl, headers);
  5956. // Only perform retries on reads since writes may not be idempotent.
  5957. const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
  5958. ? this._maxRetries + 1
  5959. : 1;
  5960. let numTries = 0;
  5961. let response;
  5962. do {
  5963. response = yield this.requestRaw(info, data);
  5964. // Check if it's an authentication challenge
  5965. if (response &&
  5966. response.message &&
  5967. response.message.statusCode === HttpCodes.Unauthorized) {
  5968. let authenticationHandler;
  5969. for (const handler of this.handlers) {
  5970. if (handler.canHandleAuthentication(response)) {
  5971. authenticationHandler = handler;
  5972. break;
  5973. }
  5974. }
  5975. if (authenticationHandler) {
  5976. return authenticationHandler.handleAuthentication(this, info, data);
  5977. }
  5978. else {
  5979. // We have received an unauthorized response but have no handlers to handle it.
  5980. // Let the response return to the caller.
  5981. return response;
  5982. }
  5983. }
  5984. let redirectsRemaining = this._maxRedirects;
  5985. while (response.message.statusCode &&
  5986. HttpRedirectCodes.includes(response.message.statusCode) &&
  5987. this._allowRedirects &&
  5988. redirectsRemaining > 0) {
  5989. const redirectUrl = response.message.headers['location'];
  5990. if (!redirectUrl) {
  5991. // if there's no location to redirect to, we won't
  5992. break;
  5993. }
  5994. const parsedRedirectUrl = new URL(redirectUrl);
  5995. if (parsedUrl.protocol === 'https:' &&
  5996. parsedUrl.protocol !== parsedRedirectUrl.protocol &&
  5997. !this._allowRedirectDowngrade) {
  5998. throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
  5999. }
  6000. // we need to finish reading the response before reassigning response
  6001. // which will leak the open socket.
  6002. yield response.readBody();
  6003. // strip authorization header if redirected to a different hostname
  6004. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  6005. for (const header in headers) {
  6006. // header names are case insensitive
  6007. if (header.toLowerCase() === 'authorization') {
  6008. delete headers[header];
  6009. }
  6010. }
  6011. }
  6012. // let's make the request with the new redirectUrl
  6013. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  6014. response = yield this.requestRaw(info, data);
  6015. redirectsRemaining--;
  6016. }
  6017. if (!response.message.statusCode ||
  6018. !HttpResponseRetryCodes.includes(response.message.statusCode)) {
  6019. // If not a retry code, return immediately instead of retrying
  6020. return response;
  6021. }
  6022. numTries += 1;
  6023. if (numTries < maxTries) {
  6024. yield response.readBody();
  6025. yield this._performExponentialBackoff(numTries);
  6026. }
  6027. } while (numTries < maxTries);
  6028. return response;
  6029. });
  6030. }
  6031. /**
  6032. * Needs to be called if keepAlive is set to true in request options.
  6033. */
  6034. dispose() {
  6035. if (this._agent) {
  6036. this._agent.destroy();
  6037. }
  6038. this._disposed = true;
  6039. }
  6040. /**
  6041. * Raw request.
  6042. * @param info
  6043. * @param data
  6044. */
  6045. requestRaw(info, data) {
  6046. return __awaiter(this, void 0, void 0, function* () {
  6047. return new Promise((resolve, reject) => {
  6048. function callbackForResult(err, res) {
  6049. if (err) {
  6050. reject(err);
  6051. }
  6052. else if (!res) {
  6053. // If `err` is not passed, then `res` must be passed.
  6054. reject(new Error('Unknown error'));
  6055. }
  6056. else {
  6057. resolve(res);
  6058. }
  6059. }
  6060. this.requestRawWithCallback(info, data, callbackForResult);
  6061. });
  6062. });
  6063. }
  6064. /**
  6065. * Raw request with callback.
  6066. * @param info
  6067. * @param data
  6068. * @param onResult
  6069. */
  6070. requestRawWithCallback(info, data, onResult) {
  6071. if (typeof data === 'string') {
  6072. if (!info.options.headers) {
  6073. info.options.headers = {};
  6074. }
  6075. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  6076. }
  6077. let callbackCalled = false;
  6078. function handleResult(err, res) {
  6079. if (!callbackCalled) {
  6080. callbackCalled = true;
  6081. onResult(err, res);
  6082. }
  6083. }
  6084. const req = info.httpModule.request(info.options, (msg) => {
  6085. const res = new HttpClientResponse(msg);
  6086. handleResult(undefined, res);
  6087. });
  6088. let socket;
  6089. req.on('socket', sock => {
  6090. socket = sock;
  6091. });
  6092. // If we ever get disconnected, we want the socket to timeout eventually
  6093. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  6094. if (socket) {
  6095. socket.end();
  6096. }
  6097. handleResult(new Error(`Request timeout: ${info.options.path}`));
  6098. });
  6099. req.on('error', function (err) {
  6100. // err has statusCode property
  6101. // res should have headers
  6102. handleResult(err);
  6103. });
  6104. if (data && typeof data === 'string') {
  6105. req.write(data, 'utf8');
  6106. }
  6107. if (data && typeof data !== 'string') {
  6108. data.on('close', function () {
  6109. req.end();
  6110. });
  6111. data.pipe(req);
  6112. }
  6113. else {
  6114. req.end();
  6115. }
  6116. }
  6117. /**
  6118. * Gets an http agent. This function is useful when you need an http agent that handles
  6119. * routing through a proxy server - depending upon the url and proxy environment variables.
  6120. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  6121. */
  6122. getAgent(serverUrl) {
  6123. const parsedUrl = new URL(serverUrl);
  6124. return this._getAgent(parsedUrl);
  6125. }
  6126. _prepareRequest(method, requestUrl, headers) {
  6127. const info = {};
  6128. info.parsedUrl = requestUrl;
  6129. const usingSsl = info.parsedUrl.protocol === 'https:';
  6130. info.httpModule = usingSsl ? https : http;
  6131. const defaultPort = usingSsl ? 443 : 80;
  6132. info.options = {};
  6133. info.options.host = info.parsedUrl.hostname;
  6134. info.options.port = info.parsedUrl.port
  6135. ? parseInt(info.parsedUrl.port)
  6136. : defaultPort;
  6137. info.options.path =
  6138. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  6139. info.options.method = method;
  6140. info.options.headers = this._mergeHeaders(headers);
  6141. if (this.userAgent != null) {
  6142. info.options.headers['user-agent'] = this.userAgent;
  6143. }
  6144. info.options.agent = this._getAgent(info.parsedUrl);
  6145. // gives handlers an opportunity to participate
  6146. if (this.handlers) {
  6147. for (const handler of this.handlers) {
  6148. handler.prepareRequest(info.options);
  6149. }
  6150. }
  6151. return info;
  6152. }
  6153. _mergeHeaders(headers) {
  6154. if (this.requestOptions && this.requestOptions.headers) {
  6155. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
  6156. }
  6157. return lowercaseKeys(headers || {});
  6158. }
  6159. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  6160. let clientHeader;
  6161. if (this.requestOptions && this.requestOptions.headers) {
  6162. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  6163. }
  6164. return additionalHeaders[header] || clientHeader || _default;
  6165. }
  6166. _getAgent(parsedUrl) {
  6167. let agent;
  6168. const proxyUrl = pm.getProxyUrl(parsedUrl);
  6169. const useProxy = proxyUrl && proxyUrl.hostname;
  6170. if (this._keepAlive && useProxy) {
  6171. agent = this._proxyAgent;
  6172. }
  6173. if (this._keepAlive && !useProxy) {
  6174. agent = this._agent;
  6175. }
  6176. // if agent is already assigned use that agent.
  6177. if (agent) {
  6178. return agent;
  6179. }
  6180. const usingSsl = parsedUrl.protocol === 'https:';
  6181. let maxSockets = 100;
  6182. if (this.requestOptions) {
  6183. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  6184. }
  6185. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  6186. if (proxyUrl && proxyUrl.hostname) {
  6187. const agentOptions = {
  6188. maxSockets,
  6189. keepAlive: this._keepAlive,
  6190. proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
  6191. proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
  6192. })), { host: proxyUrl.hostname, port: proxyUrl.port })
  6193. };
  6194. let tunnelAgent;
  6195. const overHttps = proxyUrl.protocol === 'https:';
  6196. if (usingSsl) {
  6197. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  6198. }
  6199. else {
  6200. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  6201. }
  6202. agent = tunnelAgent(agentOptions);
  6203. this._proxyAgent = agent;
  6204. }
  6205. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  6206. if (this._keepAlive && !agent) {
  6207. const options = { keepAlive: this._keepAlive, maxSockets };
  6208. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  6209. this._agent = agent;
  6210. }
  6211. // if not using private agent and tunnel agent isn't setup then use global agent
  6212. if (!agent) {
  6213. agent = usingSsl ? https.globalAgent : http.globalAgent;
  6214. }
  6215. if (usingSsl && this._ignoreSslError) {
  6216. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  6217. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  6218. // we have to cast it to any and change it directly
  6219. agent.options = Object.assign(agent.options || {}, {
  6220. rejectUnauthorized: false
  6221. });
  6222. }
  6223. return agent;
  6224. }
  6225. _performExponentialBackoff(retryNumber) {
  6226. return __awaiter(this, void 0, void 0, function* () {
  6227. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  6228. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  6229. return new Promise(resolve => setTimeout(() => resolve(), ms));
  6230. });
  6231. }
  6232. _processResponse(res, options) {
  6233. return __awaiter(this, void 0, void 0, function* () {
  6234. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  6235. const statusCode = res.message.statusCode || 0;
  6236. const response = {
  6237. statusCode,
  6238. result: null,
  6239. headers: {}
  6240. };
  6241. // not found leads to null obj returned
  6242. if (statusCode === HttpCodes.NotFound) {
  6243. resolve(response);
  6244. }
  6245. // get the result from the body
  6246. function dateTimeDeserializer(key, value) {
  6247. if (typeof value === 'string') {
  6248. const a = new Date(value);
  6249. if (!isNaN(a.valueOf())) {
  6250. return a;
  6251. }
  6252. }
  6253. return value;
  6254. }
  6255. let obj;
  6256. let contents;
  6257. try {
  6258. contents = yield res.readBody();
  6259. if (contents && contents.length > 0) {
  6260. if (options && options.deserializeDates) {
  6261. obj = JSON.parse(contents, dateTimeDeserializer);
  6262. }
  6263. else {
  6264. obj = JSON.parse(contents);
  6265. }
  6266. response.result = obj;
  6267. }
  6268. response.headers = res.message.headers;
  6269. }
  6270. catch (err) {
  6271. // Invalid resource (contents not json); leaving result obj null
  6272. }
  6273. // note that 3xx redirects are handled by the http layer.
  6274. if (statusCode > 299) {
  6275. let msg;
  6276. // if exception/error in body, attempt to get better error
  6277. if (obj && obj.message) {
  6278. msg = obj.message;
  6279. }
  6280. else if (contents && contents.length > 0) {
  6281. // it may be the case that the exception is in the body message as string
  6282. msg = contents;
  6283. }
  6284. else {
  6285. msg = `Failed request: (${statusCode})`;
  6286. }
  6287. const err = new HttpClientError(msg, statusCode);
  6288. err.result = response.result;
  6289. reject(err);
  6290. }
  6291. else {
  6292. resolve(response);
  6293. }
  6294. }));
  6295. });
  6296. }
  6297. }
  6298. exports.HttpClient = HttpClient;
  6299. const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  6300. //# sourceMappingURL=index.js.map
  6301. /***/ }),
  6302. /***/ 9835:
  6303. /***/ ((__unused_webpack_module, exports) => {
  6304. "use strict";
  6305. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6306. exports.checkBypass = exports.getProxyUrl = void 0;
  6307. function getProxyUrl(reqUrl) {
  6308. const usingSsl = reqUrl.protocol === 'https:';
  6309. if (checkBypass(reqUrl)) {
  6310. return undefined;
  6311. }
  6312. const proxyVar = (() => {
  6313. if (usingSsl) {
  6314. return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  6315. }
  6316. else {
  6317. return process.env['http_proxy'] || process.env['HTTP_PROXY'];
  6318. }
  6319. })();
  6320. if (proxyVar) {
  6321. return new URL(proxyVar);
  6322. }
  6323. else {
  6324. return undefined;
  6325. }
  6326. }
  6327. exports.getProxyUrl = getProxyUrl;
  6328. function checkBypass(reqUrl) {
  6329. if (!reqUrl.hostname) {
  6330. return false;
  6331. }
  6332. const reqHost = reqUrl.hostname;
  6333. if (isLoopbackAddress(reqHost)) {
  6334. return true;
  6335. }
  6336. const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  6337. if (!noProxy) {
  6338. return false;
  6339. }
  6340. // Determine the request port
  6341. let reqPort;
  6342. if (reqUrl.port) {
  6343. reqPort = Number(reqUrl.port);
  6344. }
  6345. else if (reqUrl.protocol === 'http:') {
  6346. reqPort = 80;
  6347. }
  6348. else if (reqUrl.protocol === 'https:') {
  6349. reqPort = 443;
  6350. }
  6351. // Format the request hostname and hostname with port
  6352. const upperReqHosts = [reqUrl.hostname.toUpperCase()];
  6353. if (typeof reqPort === 'number') {
  6354. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  6355. }
  6356. // Compare request host against noproxy
  6357. for (const upperNoProxyItem of noProxy
  6358. .split(',')
  6359. .map(x => x.trim().toUpperCase())
  6360. .filter(x => x)) {
  6361. if (upperNoProxyItem === '*' ||
  6362. upperReqHosts.some(x => x === upperNoProxyItem ||
  6363. x.endsWith(`.${upperNoProxyItem}`) ||
  6364. (upperNoProxyItem.startsWith('.') &&
  6365. x.endsWith(`${upperNoProxyItem}`)))) {
  6366. return true;
  6367. }
  6368. }
  6369. return false;
  6370. }
  6371. exports.checkBypass = checkBypass;
  6372. function isLoopbackAddress(host) {
  6373. const hostLower = host.toLowerCase();
  6374. return (hostLower === 'localhost' ||
  6375. hostLower.startsWith('127.') ||
  6376. hostLower.startsWith('[::1]') ||
  6377. hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
  6378. }
  6379. //# sourceMappingURL=proxy.js.map
  6380. /***/ }),
  6381. /***/ 1962:
  6382. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6383. "use strict";
  6384. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6385. if (k2 === undefined) k2 = k;
  6386. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6387. }) : (function(o, m, k, k2) {
  6388. if (k2 === undefined) k2 = k;
  6389. o[k2] = m[k];
  6390. }));
  6391. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6392. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6393. }) : function(o, v) {
  6394. o["default"] = v;
  6395. });
  6396. var __importStar = (this && this.__importStar) || function (mod) {
  6397. if (mod && mod.__esModule) return mod;
  6398. var result = {};
  6399. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6400. __setModuleDefault(result, mod);
  6401. return result;
  6402. };
  6403. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6404. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6405. return new (P || (P = Promise))(function (resolve, reject) {
  6406. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6407. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6408. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6409. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6410. });
  6411. };
  6412. var _a;
  6413. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6414. exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
  6415. const fs = __importStar(__nccwpck_require__(7147));
  6416. const path = __importStar(__nccwpck_require__(1017));
  6417. _a = fs.promises
  6418. // export const {open} = 'fs'
  6419. , exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
  6420. // export const {open} = 'fs'
  6421. exports.IS_WINDOWS = process.platform === 'win32';
  6422. // See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691
  6423. exports.UV_FS_O_EXLOCK = 0x10000000;
  6424. exports.READONLY = fs.constants.O_RDONLY;
  6425. function exists(fsPath) {
  6426. return __awaiter(this, void 0, void 0, function* () {
  6427. try {
  6428. yield exports.stat(fsPath);
  6429. }
  6430. catch (err) {
  6431. if (err.code === 'ENOENT') {
  6432. return false;
  6433. }
  6434. throw err;
  6435. }
  6436. return true;
  6437. });
  6438. }
  6439. exports.exists = exists;
  6440. function isDirectory(fsPath, useStat = false) {
  6441. return __awaiter(this, void 0, void 0, function* () {
  6442. const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
  6443. return stats.isDirectory();
  6444. });
  6445. }
  6446. exports.isDirectory = isDirectory;
  6447. /**
  6448. * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
  6449. * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
  6450. */
  6451. function isRooted(p) {
  6452. p = normalizeSeparators(p);
  6453. if (!p) {
  6454. throw new Error('isRooted() parameter "p" cannot be empty');
  6455. }
  6456. if (exports.IS_WINDOWS) {
  6457. return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
  6458. ); // e.g. C: or C:\hello
  6459. }
  6460. return p.startsWith('/');
  6461. }
  6462. exports.isRooted = isRooted;
  6463. /**
  6464. * Best effort attempt to determine whether a file exists and is executable.
  6465. * @param filePath file path to check
  6466. * @param extensions additional file extensions to try
  6467. * @return if file exists and is executable, returns the file path. otherwise empty string.
  6468. */
  6469. function tryGetExecutablePath(filePath, extensions) {
  6470. return __awaiter(this, void 0, void 0, function* () {
  6471. let stats = undefined;
  6472. try {
  6473. // test file exists
  6474. stats = yield exports.stat(filePath);
  6475. }
  6476. catch (err) {
  6477. if (err.code !== 'ENOENT') {
  6478. // eslint-disable-next-line no-console
  6479. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  6480. }
  6481. }
  6482. if (stats && stats.isFile()) {
  6483. if (exports.IS_WINDOWS) {
  6484. // on Windows, test for valid extension
  6485. const upperExt = path.extname(filePath).toUpperCase();
  6486. if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
  6487. return filePath;
  6488. }
  6489. }
  6490. else {
  6491. if (isUnixExecutable(stats)) {
  6492. return filePath;
  6493. }
  6494. }
  6495. }
  6496. // try each extension
  6497. const originalFilePath = filePath;
  6498. for (const extension of extensions) {
  6499. filePath = originalFilePath + extension;
  6500. stats = undefined;
  6501. try {
  6502. stats = yield exports.stat(filePath);
  6503. }
  6504. catch (err) {
  6505. if (err.code !== 'ENOENT') {
  6506. // eslint-disable-next-line no-console
  6507. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  6508. }
  6509. }
  6510. if (stats && stats.isFile()) {
  6511. if (exports.IS_WINDOWS) {
  6512. // preserve the case of the actual file (since an extension was appended)
  6513. try {
  6514. const directory = path.dirname(filePath);
  6515. const upperName = path.basename(filePath).toUpperCase();
  6516. for (const actualName of yield exports.readdir(directory)) {
  6517. if (upperName === actualName.toUpperCase()) {
  6518. filePath = path.join(directory, actualName);
  6519. break;
  6520. }
  6521. }
  6522. }
  6523. catch (err) {
  6524. // eslint-disable-next-line no-console
  6525. console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
  6526. }
  6527. return filePath;
  6528. }
  6529. else {
  6530. if (isUnixExecutable(stats)) {
  6531. return filePath;
  6532. }
  6533. }
  6534. }
  6535. }
  6536. return '';
  6537. });
  6538. }
  6539. exports.tryGetExecutablePath = tryGetExecutablePath;
  6540. function normalizeSeparators(p) {
  6541. p = p || '';
  6542. if (exports.IS_WINDOWS) {
  6543. // convert slashes on Windows
  6544. p = p.replace(/\//g, '\\');
  6545. // remove redundant slashes
  6546. return p.replace(/\\\\+/g, '\\');
  6547. }
  6548. // remove redundant slashes
  6549. return p.replace(/\/\/+/g, '/');
  6550. }
  6551. // on Mac/Linux, test the execute bit
  6552. // R W X R W X R W X
  6553. // 256 128 64 32 16 8 4 2 1
  6554. function isUnixExecutable(stats) {
  6555. return ((stats.mode & 1) > 0 ||
  6556. ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
  6557. ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
  6558. }
  6559. // Get the path of cmd.exe in windows
  6560. function getCmdPath() {
  6561. var _a;
  6562. return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
  6563. }
  6564. exports.getCmdPath = getCmdPath;
  6565. //# sourceMappingURL=io-util.js.map
  6566. /***/ }),
  6567. /***/ 7436:
  6568. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  6569. "use strict";
  6570. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6571. if (k2 === undefined) k2 = k;
  6572. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6573. }) : (function(o, m, k, k2) {
  6574. if (k2 === undefined) k2 = k;
  6575. o[k2] = m[k];
  6576. }));
  6577. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6578. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6579. }) : function(o, v) {
  6580. o["default"] = v;
  6581. });
  6582. var __importStar = (this && this.__importStar) || function (mod) {
  6583. if (mod && mod.__esModule) return mod;
  6584. var result = {};
  6585. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6586. __setModuleDefault(result, mod);
  6587. return result;
  6588. };
  6589. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6590. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6591. return new (P || (P = Promise))(function (resolve, reject) {
  6592. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6593. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6594. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6595. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6596. });
  6597. };
  6598. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6599. exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
  6600. const assert_1 = __nccwpck_require__(9491);
  6601. const path = __importStar(__nccwpck_require__(1017));
  6602. const ioUtil = __importStar(__nccwpck_require__(1962));
  6603. /**
  6604. * Copies a file or folder.
  6605. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
  6606. *
  6607. * @param source source path
  6608. * @param dest destination path
  6609. * @param options optional. See CopyOptions.
  6610. */
  6611. function cp(source, dest, options = {}) {
  6612. return __awaiter(this, void 0, void 0, function* () {
  6613. const { force, recursive, copySourceDirectory } = readCopyOptions(options);
  6614. const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
  6615. // Dest is an existing file, but not forcing
  6616. if (destStat && destStat.isFile() && !force) {
  6617. return;
  6618. }
  6619. // If dest is an existing directory, should copy inside.
  6620. const newDest = destStat && destStat.isDirectory() && copySourceDirectory
  6621. ? path.join(dest, path.basename(source))
  6622. : dest;
  6623. if (!(yield ioUtil.exists(source))) {
  6624. throw new Error(`no such file or directory: ${source}`);
  6625. }
  6626. const sourceStat = yield ioUtil.stat(source);
  6627. if (sourceStat.isDirectory()) {
  6628. if (!recursive) {
  6629. throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
  6630. }
  6631. else {
  6632. yield cpDirRecursive(source, newDest, 0, force);
  6633. }
  6634. }
  6635. else {
  6636. if (path.relative(source, newDest) === '') {
  6637. // a file cannot be copied to itself
  6638. throw new Error(`'${newDest}' and '${source}' are the same file`);
  6639. }
  6640. yield copyFile(source, newDest, force);
  6641. }
  6642. });
  6643. }
  6644. exports.cp = cp;
  6645. /**
  6646. * Moves a path.
  6647. *
  6648. * @param source source path
  6649. * @param dest destination path
  6650. * @param options optional. See MoveOptions.
  6651. */
  6652. function mv(source, dest, options = {}) {
  6653. return __awaiter(this, void 0, void 0, function* () {
  6654. if (yield ioUtil.exists(dest)) {
  6655. let destExists = true;
  6656. if (yield ioUtil.isDirectory(dest)) {
  6657. // If dest is directory copy src into dest
  6658. dest = path.join(dest, path.basename(source));
  6659. destExists = yield ioUtil.exists(dest);
  6660. }
  6661. if (destExists) {
  6662. if (options.force == null || options.force) {
  6663. yield rmRF(dest);
  6664. }
  6665. else {
  6666. throw new Error('Destination already exists');
  6667. }
  6668. }
  6669. }
  6670. yield mkdirP(path.dirname(dest));
  6671. yield ioUtil.rename(source, dest);
  6672. });
  6673. }
  6674. exports.mv = mv;
  6675. /**
  6676. * Remove a path recursively with force
  6677. *
  6678. * @param inputPath path to remove
  6679. */
  6680. function rmRF(inputPath) {
  6681. return __awaiter(this, void 0, void 0, function* () {
  6682. if (ioUtil.IS_WINDOWS) {
  6683. // Check for invalid characters
  6684. // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
  6685. if (/[*"<>|]/.test(inputPath)) {
  6686. throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');
  6687. }
  6688. }
  6689. try {
  6690. // note if path does not exist, error is silent
  6691. yield ioUtil.rm(inputPath, {
  6692. force: true,
  6693. maxRetries: 3,
  6694. recursive: true,
  6695. retryDelay: 300
  6696. });
  6697. }
  6698. catch (err) {
  6699. throw new Error(`File was unable to be removed ${err}`);
  6700. }
  6701. });
  6702. }
  6703. exports.rmRF = rmRF;
  6704. /**
  6705. * Make a directory. Creates the full path with folders in between
  6706. * Will throw if it fails
  6707. *
  6708. * @param fsPath path to create
  6709. * @returns Promise<void>
  6710. */
  6711. function mkdirP(fsPath) {
  6712. return __awaiter(this, void 0, void 0, function* () {
  6713. assert_1.ok(fsPath, 'a path argument must be provided');
  6714. yield ioUtil.mkdir(fsPath, { recursive: true });
  6715. });
  6716. }
  6717. exports.mkdirP = mkdirP;
  6718. /**
  6719. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
  6720. * If you check and the tool does not exist, it will throw.
  6721. *
  6722. * @param tool name of the tool
  6723. * @param check whether to check if tool exists
  6724. * @returns Promise<string> path to tool
  6725. */
  6726. function which(tool, check) {
  6727. return __awaiter(this, void 0, void 0, function* () {
  6728. if (!tool) {
  6729. throw new Error("parameter 'tool' is required");
  6730. }
  6731. // recursive when check=true
  6732. if (check) {
  6733. const result = yield which(tool, false);
  6734. if (!result) {
  6735. if (ioUtil.IS_WINDOWS) {
  6736. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);
  6737. }
  6738. else {
  6739. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
  6740. }
  6741. }
  6742. return result;
  6743. }
  6744. const matches = yield findInPath(tool);
  6745. if (matches && matches.length > 0) {
  6746. return matches[0];
  6747. }
  6748. return '';
  6749. });
  6750. }
  6751. exports.which = which;
  6752. /**
  6753. * Returns a list of all occurrences of the given tool on the system path.
  6754. *
  6755. * @returns Promise<string[]> the paths of the tool
  6756. */
  6757. function findInPath(tool) {
  6758. return __awaiter(this, void 0, void 0, function* () {
  6759. if (!tool) {
  6760. throw new Error("parameter 'tool' is required");
  6761. }
  6762. // build the list of extensions to try
  6763. const extensions = [];
  6764. if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) {
  6765. for (const extension of process.env['PATHEXT'].split(path.delimiter)) {
  6766. if (extension) {
  6767. extensions.push(extension);
  6768. }
  6769. }
  6770. }
  6771. // if it's rooted, return it if exists. otherwise return empty.
  6772. if (ioUtil.isRooted(tool)) {
  6773. const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
  6774. if (filePath) {
  6775. return [filePath];
  6776. }
  6777. return [];
  6778. }
  6779. // if any path separators, return empty
  6780. if (tool.includes(path.sep)) {
  6781. return [];
  6782. }
  6783. // build the list of directories
  6784. //
  6785. // Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
  6786. // it feels like we should not do this. Checking the current directory seems like more of a use
  6787. // case of a shell, and the which() function exposed by the toolkit should strive for consistency
  6788. // across platforms.
  6789. const directories = [];
  6790. if (process.env.PATH) {
  6791. for (const p of process.env.PATH.split(path.delimiter)) {
  6792. if (p) {
  6793. directories.push(p);
  6794. }
  6795. }
  6796. }
  6797. // find all matches
  6798. const matches = [];
  6799. for (const directory of directories) {
  6800. const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions);
  6801. if (filePath) {
  6802. matches.push(filePath);
  6803. }
  6804. }
  6805. return matches;
  6806. });
  6807. }
  6808. exports.findInPath = findInPath;
  6809. function readCopyOptions(options) {
  6810. const force = options.force == null ? true : options.force;
  6811. const recursive = Boolean(options.recursive);
  6812. const copySourceDirectory = options.copySourceDirectory == null
  6813. ? true
  6814. : Boolean(options.copySourceDirectory);
  6815. return { force, recursive, copySourceDirectory };
  6816. }
  6817. function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
  6818. return __awaiter(this, void 0, void 0, function* () {
  6819. // Ensure there is not a run away recursive copy
  6820. if (currentDepth >= 255)
  6821. return;
  6822. currentDepth++;
  6823. yield mkdirP(destDir);
  6824. const files = yield ioUtil.readdir(sourceDir);
  6825. for (const fileName of files) {
  6826. const srcFile = `${sourceDir}/${fileName}`;
  6827. const destFile = `${destDir}/${fileName}`;
  6828. const srcFileStat = yield ioUtil.lstat(srcFile);
  6829. if (srcFileStat.isDirectory()) {
  6830. // Recurse
  6831. yield cpDirRecursive(srcFile, destFile, currentDepth, force);
  6832. }
  6833. else {
  6834. yield copyFile(srcFile, destFile, force);
  6835. }
  6836. }
  6837. // Change the mode for the newly created directory
  6838. yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
  6839. });
  6840. }
  6841. // Buffered file copy
  6842. function copyFile(srcFile, destFile, force) {
  6843. return __awaiter(this, void 0, void 0, function* () {
  6844. if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
  6845. // unlink/re-link it
  6846. try {
  6847. yield ioUtil.lstat(destFile);
  6848. yield ioUtil.unlink(destFile);
  6849. }
  6850. catch (e) {
  6851. // Try to override file permission
  6852. if (e.code === 'EPERM') {
  6853. yield ioUtil.chmod(destFile, '0666');
  6854. yield ioUtil.unlink(destFile);
  6855. }
  6856. // other errors = it doesn't exist, no work to do
  6857. }
  6858. // Copy over symlink
  6859. const symlinkFull = yield ioUtil.readlink(srcFile);
  6860. yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
  6861. }
  6862. else if (!(yield ioUtil.exists(destFile)) || force) {
  6863. yield ioUtil.copyFile(srcFile, destFile);
  6864. }
  6865. });
  6866. }
  6867. //# sourceMappingURL=io.js.map
  6868. /***/ }),
  6869. /***/ 2473:
  6870. /***/ (function(module, exports, __nccwpck_require__) {
  6871. "use strict";
  6872. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6873. if (k2 === undefined) k2 = k;
  6874. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6875. }) : (function(o, m, k, k2) {
  6876. if (k2 === undefined) k2 = k;
  6877. o[k2] = m[k];
  6878. }));
  6879. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6880. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6881. }) : function(o, v) {
  6882. o["default"] = v;
  6883. });
  6884. var __importStar = (this && this.__importStar) || function (mod) {
  6885. if (mod && mod.__esModule) return mod;
  6886. var result = {};
  6887. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6888. __setModuleDefault(result, mod);
  6889. return result;
  6890. };
  6891. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6892. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6893. return new (P || (P = Promise))(function (resolve, reject) {
  6894. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6895. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6896. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6897. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6898. });
  6899. };
  6900. Object.defineProperty(exports, "__esModule", ({ value: true }));
  6901. exports._readLinuxVersionFile = exports._getOsVersion = exports._findMatch = void 0;
  6902. const semver = __importStar(__nccwpck_require__(562));
  6903. const core_1 = __nccwpck_require__(2186);
  6904. // needs to be require for core node modules to be mocked
  6905. /* eslint @typescript-eslint/no-require-imports: 0 */
  6906. const os = __nccwpck_require__(2037);
  6907. const cp = __nccwpck_require__(2081);
  6908. const fs = __nccwpck_require__(7147);
  6909. function _findMatch(versionSpec, stable, candidates, archFilter) {
  6910. return __awaiter(this, void 0, void 0, function* () {
  6911. const platFilter = os.platform();
  6912. let result;
  6913. let match;
  6914. let file;
  6915. for (const candidate of candidates) {
  6916. const version = candidate.version;
  6917. core_1.debug(`check ${version} satisfies ${versionSpec}`);
  6918. if (semver.satisfies(version, versionSpec) &&
  6919. (!stable || candidate.stable === stable)) {
  6920. file = candidate.files.find(item => {
  6921. core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
  6922. let chk = item.arch === archFilter && item.platform === platFilter;
  6923. if (chk && item.platform_version) {
  6924. const osVersion = module.exports._getOsVersion();
  6925. if (osVersion === item.platform_version) {
  6926. chk = true;
  6927. }
  6928. else {
  6929. chk = semver.satisfies(osVersion, item.platform_version);
  6930. }
  6931. }
  6932. return chk;
  6933. });
  6934. if (file) {
  6935. core_1.debug(`matched ${candidate.version}`);
  6936. match = candidate;
  6937. break;
  6938. }
  6939. }
  6940. }
  6941. if (match && file) {
  6942. // clone since we're mutating the file list to be only the file that matches
  6943. result = Object.assign({}, match);
  6944. result.files = [file];
  6945. }
  6946. return result;
  6947. });
  6948. }
  6949. exports._findMatch = _findMatch;
  6950. function _getOsVersion() {
  6951. // TODO: add windows and other linux, arm variants
  6952. // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)
  6953. const plat = os.platform();
  6954. let version = '';
  6955. if (plat === 'darwin') {
  6956. version = cp.execSync('sw_vers -productVersion').toString();
  6957. }
  6958. else if (plat === 'linux') {
  6959. // lsb_release process not in some containers, readfile
  6960. // Run cat /etc/lsb-release
  6961. // DISTRIB_ID=Ubuntu
  6962. // DISTRIB_RELEASE=18.04
  6963. // DISTRIB_CODENAME=bionic
  6964. // DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
  6965. const lsbContents = module.exports._readLinuxVersionFile();
  6966. if (lsbContents) {
  6967. const lines = lsbContents.split('\n');
  6968. for (const line of lines) {
  6969. const parts = line.split('=');
  6970. if (parts.length === 2 &&
  6971. (parts[0].trim() === 'VERSION_ID' ||
  6972. parts[0].trim() === 'DISTRIB_RELEASE')) {
  6973. version = parts[1]
  6974. .trim()
  6975. .replace(/^"/, '')
  6976. .replace(/"$/, '');
  6977. break;
  6978. }
  6979. }
  6980. }
  6981. }
  6982. return version;
  6983. }
  6984. exports._getOsVersion = _getOsVersion;
  6985. function _readLinuxVersionFile() {
  6986. const lsbReleaseFile = '/etc/lsb-release';
  6987. const osReleaseFile = '/etc/os-release';
  6988. let contents = '';
  6989. if (fs.existsSync(lsbReleaseFile)) {
  6990. contents = fs.readFileSync(lsbReleaseFile).toString();
  6991. }
  6992. else if (fs.existsSync(osReleaseFile)) {
  6993. contents = fs.readFileSync(osReleaseFile).toString();
  6994. }
  6995. return contents;
  6996. }
  6997. exports._readLinuxVersionFile = _readLinuxVersionFile;
  6998. //# sourceMappingURL=manifest.js.map
  6999. /***/ }),
  7000. /***/ 8279:
  7001. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  7002. "use strict";
  7003. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  7004. if (k2 === undefined) k2 = k;
  7005. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  7006. }) : (function(o, m, k, k2) {
  7007. if (k2 === undefined) k2 = k;
  7008. o[k2] = m[k];
  7009. }));
  7010. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  7011. Object.defineProperty(o, "default", { enumerable: true, value: v });
  7012. }) : function(o, v) {
  7013. o["default"] = v;
  7014. });
  7015. var __importStar = (this && this.__importStar) || function (mod) {
  7016. if (mod && mod.__esModule) return mod;
  7017. var result = {};
  7018. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  7019. __setModuleDefault(result, mod);
  7020. return result;
  7021. };
  7022. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  7023. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  7024. return new (P || (P = Promise))(function (resolve, reject) {
  7025. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  7026. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  7027. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7028. step((generator = generator.apply(thisArg, _arguments || [])).next());
  7029. });
  7030. };
  7031. Object.defineProperty(exports, "__esModule", ({ value: true }));
  7032. exports.RetryHelper = void 0;
  7033. const core = __importStar(__nccwpck_require__(2186));
  7034. /**
  7035. * Internal class for retries
  7036. */
  7037. class RetryHelper {
  7038. constructor(maxAttempts, minSeconds, maxSeconds) {
  7039. if (maxAttempts < 1) {
  7040. throw new Error('max attempts should be greater than or equal to 1');
  7041. }
  7042. this.maxAttempts = maxAttempts;
  7043. this.minSeconds = Math.floor(minSeconds);
  7044. this.maxSeconds = Math.floor(maxSeconds);
  7045. if (this.minSeconds > this.maxSeconds) {
  7046. throw new Error('min seconds should be less than or equal to max seconds');
  7047. }
  7048. }
  7049. execute(action, isRetryable) {
  7050. return __awaiter(this, void 0, void 0, function* () {
  7051. let attempt = 1;
  7052. while (attempt < this.maxAttempts) {
  7053. // Try
  7054. try {
  7055. return yield action();
  7056. }
  7057. catch (err) {
  7058. if (isRetryable && !isRetryable(err)) {
  7059. throw err;
  7060. }
  7061. core.info(err.message);
  7062. }
  7063. // Sleep
  7064. const seconds = this.getSleepAmount();
  7065. core.info(`Waiting ${seconds} seconds before trying again`);
  7066. yield this.sleep(seconds);
  7067. attempt++;
  7068. }
  7069. // Last attempt
  7070. return yield action();
  7071. });
  7072. }
  7073. getSleepAmount() {
  7074. return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) +
  7075. this.minSeconds);
  7076. }
  7077. sleep(seconds) {
  7078. return __awaiter(this, void 0, void 0, function* () {
  7079. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  7080. });
  7081. }
  7082. }
  7083. exports.RetryHelper = RetryHelper;
  7084. //# sourceMappingURL=retry-helper.js.map
  7085. /***/ }),
  7086. /***/ 7784:
  7087. /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
  7088. "use strict";
  7089. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  7090. if (k2 === undefined) k2 = k;
  7091. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  7092. }) : (function(o, m, k, k2) {
  7093. if (k2 === undefined) k2 = k;
  7094. o[k2] = m[k];
  7095. }));
  7096. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  7097. Object.defineProperty(o, "default", { enumerable: true, value: v });
  7098. }) : function(o, v) {
  7099. o["default"] = v;
  7100. });
  7101. var __importStar = (this && this.__importStar) || function (mod) {
  7102. if (mod && mod.__esModule) return mod;
  7103. var result = {};
  7104. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  7105. __setModuleDefault(result, mod);
  7106. return result;
  7107. };
  7108. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  7109. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  7110. return new (P || (P = Promise))(function (resolve, reject) {
  7111. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  7112. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  7113. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7114. step((generator = generator.apply(thisArg, _arguments || [])).next());
  7115. });
  7116. };
  7117. var __importDefault = (this && this.__importDefault) || function (mod) {
  7118. return (mod && mod.__esModule) ? mod : { "default": mod };
  7119. };
  7120. Object.defineProperty(exports, "__esModule", ({ value: true }));
  7121. exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
  7122. const core = __importStar(__nccwpck_require__(2186));
  7123. const io = __importStar(__nccwpck_require__(7436));
  7124. const fs = __importStar(__nccwpck_require__(7147));
  7125. const mm = __importStar(__nccwpck_require__(2473));
  7126. const os = __importStar(__nccwpck_require__(2037));
  7127. const path = __importStar(__nccwpck_require__(1017));
  7128. const httpm = __importStar(__nccwpck_require__(6255));
  7129. const semver = __importStar(__nccwpck_require__(562));
  7130. const stream = __importStar(__nccwpck_require__(2781));
  7131. const util = __importStar(__nccwpck_require__(3837));
  7132. const assert_1 = __nccwpck_require__(9491);
  7133. const v4_1 = __importDefault(__nccwpck_require__(824));
  7134. const exec_1 = __nccwpck_require__(1514);
  7135. const retry_helper_1 = __nccwpck_require__(8279);
  7136. class HTTPError extends Error {
  7137. constructor(httpStatusCode) {
  7138. super(`Unexpected HTTP response: ${httpStatusCode}`);
  7139. this.httpStatusCode = httpStatusCode;
  7140. Object.setPrototypeOf(this, new.target.prototype);
  7141. }
  7142. }
  7143. exports.HTTPError = HTTPError;
  7144. const IS_WINDOWS = process.platform === 'win32';
  7145. const IS_MAC = process.platform === 'darwin';
  7146. const userAgent = 'actions/tool-cache';
  7147. /**
  7148. * Download a tool from an url and stream it into a file
  7149. *
  7150. * @param url url of tool to download
  7151. * @param dest path to download tool
  7152. * @param auth authorization header
  7153. * @param headers other headers
  7154. * @returns path to downloaded tool
  7155. */
  7156. function downloadTool(url, dest, auth, headers) {
  7157. return __awaiter(this, void 0, void 0, function* () {
  7158. dest = dest || path.join(_getTempDirectory(), v4_1.default());
  7159. yield io.mkdirP(path.dirname(dest));
  7160. core.debug(`Downloading ${url}`);
  7161. core.debug(`Destination ${dest}`);
  7162. const maxAttempts = 3;
  7163. const minSeconds = _getGlobal('TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS', 10);
  7164. const maxSeconds = _getGlobal('TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS', 20);
  7165. const retryHelper = new retry_helper_1.RetryHelper(maxAttempts, minSeconds, maxSeconds);
  7166. return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  7167. return yield downloadToolAttempt(url, dest || '', auth, headers);
  7168. }), (err) => {
  7169. if (err instanceof HTTPError && err.httpStatusCode) {
  7170. // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests
  7171. if (err.httpStatusCode < 500 &&
  7172. err.httpStatusCode !== 408 &&
  7173. err.httpStatusCode !== 429) {
  7174. return false;
  7175. }
  7176. }
  7177. // Otherwise retry
  7178. return true;
  7179. });
  7180. });
  7181. }
  7182. exports.downloadTool = downloadTool;
  7183. function downloadToolAttempt(url, dest, auth, headers) {
  7184. return __awaiter(this, void 0, void 0, function* () {
  7185. if (fs.existsSync(dest)) {
  7186. throw new Error(`Destination file path ${dest} already exists`);
  7187. }
  7188. // Get the response headers
  7189. const http = new httpm.HttpClient(userAgent, [], {
  7190. allowRetries: false
  7191. });
  7192. if (auth) {
  7193. core.debug('set auth');
  7194. if (headers === undefined) {
  7195. headers = {};
  7196. }
  7197. headers.authorization = auth;
  7198. }
  7199. const response = yield http.get(url, headers);
  7200. if (response.message.statusCode !== 200) {
  7201. const err = new HTTPError(response.message.statusCode);
  7202. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  7203. throw err;
  7204. }
  7205. // Download the response body
  7206. const pipeline = util.promisify(stream.pipeline);
  7207. const responseMessageFactory = _getGlobal('TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY', () => response.message);
  7208. const readStream = responseMessageFactory();
  7209. let succeeded = false;
  7210. try {
  7211. yield pipeline(readStream, fs.createWriteStream(dest));
  7212. core.debug('download complete');
  7213. succeeded = true;
  7214. return dest;
  7215. }
  7216. finally {
  7217. // Error, delete dest before retry
  7218. if (!succeeded) {
  7219. core.debug('download failed');
  7220. try {
  7221. yield io.rmRF(dest);
  7222. }
  7223. catch (err) {
  7224. core.debug(`Failed to delete '${dest}'. ${err.message}`);
  7225. }
  7226. }
  7227. }
  7228. });
  7229. }
  7230. /**
  7231. * Extract a .7z file
  7232. *
  7233. * @param file path to the .7z file
  7234. * @param dest destination directory. Optional.
  7235. * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
  7236. * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
  7237. * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
  7238. * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
  7239. * interface, it is smaller than the full command line interface, and it does support long paths. At the
  7240. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
  7241. * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
  7242. * to 7zr.exe can be pass to this function.
  7243. * @returns path to the destination directory
  7244. */
  7245. function extract7z(file, dest, _7zPath) {
  7246. return __awaiter(this, void 0, void 0, function* () {
  7247. assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
  7248. assert_1.ok(file, 'parameter "file" is required');
  7249. dest = yield _createExtractFolder(dest);
  7250. const originalCwd = process.cwd();
  7251. process.chdir(dest);
  7252. if (_7zPath) {
  7253. try {
  7254. const logLevel = core.isDebug() ? '-bb1' : '-bb0';
  7255. const args = [
  7256. 'x',
  7257. logLevel,
  7258. '-bd',
  7259. '-sccUTF-8',
  7260. file
  7261. ];
  7262. const options = {
  7263. silent: true
  7264. };
  7265. yield exec_1.exec(`"${_7zPath}"`, args, options);
  7266. }
  7267. finally {
  7268. process.chdir(originalCwd);
  7269. }
  7270. }
  7271. else {
  7272. const escapedScript = path
  7273. .join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1')
  7274. .replace(/'/g, "''")
  7275. .replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  7276. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  7277. const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  7278. const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;
  7279. const args = [
  7280. '-NoLogo',
  7281. '-Sta',
  7282. '-NoProfile',
  7283. '-NonInteractive',
  7284. '-ExecutionPolicy',
  7285. 'Unrestricted',
  7286. '-Command',
  7287. command
  7288. ];
  7289. const options = {
  7290. silent: true
  7291. };
  7292. try {
  7293. const powershellPath = yield io.which('powershell', true);
  7294. yield exec_1.exec(`"${powershellPath}"`, args, options);
  7295. }
  7296. finally {
  7297. process.chdir(originalCwd);
  7298. }
  7299. }
  7300. return dest;
  7301. });
  7302. }
  7303. exports.extract7z = extract7z;
  7304. /**
  7305. * Extract a compressed tar archive
  7306. *
  7307. * @param file path to the tar
  7308. * @param dest destination directory. Optional.
  7309. * @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.
  7310. * @returns path to the destination directory
  7311. */
  7312. function extractTar(file, dest, flags = 'xz') {
  7313. return __awaiter(this, void 0, void 0, function* () {
  7314. if (!file) {
  7315. throw new Error("parameter 'file' is required");
  7316. }
  7317. // Create dest
  7318. dest = yield _createExtractFolder(dest);
  7319. // Determine whether GNU tar
  7320. core.debug('Checking tar --version');
  7321. let versionOutput = '';
  7322. yield exec_1.exec('tar --version', [], {
  7323. ignoreReturnCode: true,
  7324. silent: true,
  7325. listeners: {
  7326. stdout: (data) => (versionOutput += data.toString()),
  7327. stderr: (data) => (versionOutput += data.toString())
  7328. }
  7329. });
  7330. core.debug(versionOutput.trim());
  7331. const isGnuTar = versionOutput.toUpperCase().includes('GNU TAR');
  7332. // Initialize args
  7333. let args;
  7334. if (flags instanceof Array) {
  7335. args = flags;
  7336. }
  7337. else {
  7338. args = [flags];
  7339. }
  7340. if (core.isDebug() && !flags.includes('v')) {
  7341. args.push('-v');
  7342. }
  7343. let destArg = dest;
  7344. let fileArg = file;
  7345. if (IS_WINDOWS && isGnuTar) {
  7346. args.push('--force-local');
  7347. destArg = dest.replace(/\\/g, '/');
  7348. // Technically only the dest needs to have `/` but for aesthetic consistency
  7349. // convert slashes in the file arg too.
  7350. fileArg = file.replace(/\\/g, '/');
  7351. }
  7352. if (isGnuTar) {
  7353. // Suppress warnings when using GNU tar to extract archives created by BSD tar
  7354. args.push('--warning=no-unknown-keyword');
  7355. args.push('--overwrite');
  7356. }
  7357. args.push('-C', destArg, '-f', fileArg);
  7358. yield exec_1.exec(`tar`, args);
  7359. return dest;
  7360. });
  7361. }
  7362. exports.extractTar = extractTar;
  7363. /**
  7364. * Extract a xar compatible archive
  7365. *
  7366. * @param file path to the archive
  7367. * @param dest destination directory. Optional.
  7368. * @param flags flags for the xar. Optional.
  7369. * @returns path to the destination directory
  7370. */
  7371. function extractXar(file, dest, flags = []) {
  7372. return __awaiter(this, void 0, void 0, function* () {
  7373. assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
  7374. assert_1.ok(file, 'parameter "file" is required');
  7375. dest = yield _createExtractFolder(dest);
  7376. let args;
  7377. if (flags instanceof Array) {
  7378. args = flags;
  7379. }
  7380. else {
  7381. args = [flags];
  7382. }
  7383. args.push('-x', '-C', dest, '-f', file);
  7384. if (core.isDebug()) {
  7385. args.push('-v');
  7386. }
  7387. const xarPath = yield io.which('xar', true);
  7388. yield exec_1.exec(`"${xarPath}"`, _unique(args));
  7389. return dest;
  7390. });
  7391. }
  7392. exports.extractXar = extractXar;
  7393. /**
  7394. * Extract a zip
  7395. *
  7396. * @param file path to the zip
  7397. * @param dest destination directory. Optional.
  7398. * @returns path to the destination directory
  7399. */
  7400. function extractZip(file, dest) {
  7401. return __awaiter(this, void 0, void 0, function* () {
  7402. if (!file) {
  7403. throw new Error("parameter 'file' is required");
  7404. }
  7405. dest = yield _createExtractFolder(dest);
  7406. if (IS_WINDOWS) {
  7407. yield extractZipWin(file, dest);
  7408. }
  7409. else {
  7410. yield extractZipNix(file, dest);
  7411. }
  7412. return dest;
  7413. });
  7414. }
  7415. exports.extractZip = extractZip;
  7416. function extractZipWin(file, dest) {
  7417. return __awaiter(this, void 0, void 0, function* () {
  7418. // build the powershell command
  7419. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  7420. const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  7421. const pwshPath = yield io.which('pwsh', false);
  7422. //To match the file overwrite behavior on nix systems, we use the overwrite = true flag for ExtractToDirectory
  7423. //and the -Force flag for Expand-Archive as a fallback
  7424. if (pwshPath) {
  7425. //attempt to use pwsh with ExtractToDirectory, if this fails attempt Expand-Archive
  7426. const pwshCommand = [
  7427. `$ErrorActionPreference = 'Stop' ;`,
  7428. `try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,
  7429. `try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`,
  7430. `catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force } else { throw $_ } } ;`
  7431. ].join(' ');
  7432. const args = [
  7433. '-NoLogo',
  7434. '-NoProfile',
  7435. '-NonInteractive',
  7436. '-ExecutionPolicy',
  7437. 'Unrestricted',
  7438. '-Command',
  7439. pwshCommand
  7440. ];
  7441. core.debug(`Using pwsh at path: ${pwshPath}`);
  7442. yield exec_1.exec(`"${pwshPath}"`, args);
  7443. }
  7444. else {
  7445. const powershellCommand = [
  7446. `$ErrorActionPreference = 'Stop' ;`,
  7447. `try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,
  7448. `if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force }`,
  7449. `else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`
  7450. ].join(' ');
  7451. const args = [
  7452. '-NoLogo',
  7453. '-Sta',
  7454. '-NoProfile',
  7455. '-NonInteractive',
  7456. '-ExecutionPolicy',
  7457. 'Unrestricted',
  7458. '-Command',
  7459. powershellCommand
  7460. ];
  7461. const powershellPath = yield io.which('powershell', true);
  7462. core.debug(`Using powershell at path: ${powershellPath}`);
  7463. yield exec_1.exec(`"${powershellPath}"`, args);
  7464. }
  7465. });
  7466. }
  7467. function extractZipNix(file, dest) {
  7468. return __awaiter(this, void 0, void 0, function* () {
  7469. const unzipPath = yield io.which('unzip', true);
  7470. const args = [file];
  7471. if (!core.isDebug()) {
  7472. args.unshift('-q');
  7473. }
  7474. args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
  7475. yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
  7476. });
  7477. }
  7478. /**
  7479. * Caches a directory and installs it into the tool cacheDir
  7480. *
  7481. * @param sourceDir the directory to cache into tools
  7482. * @param tool tool name
  7483. * @param version version of the tool. semver format
  7484. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  7485. */
  7486. function cacheDir(sourceDir, tool, version, arch) {
  7487. return __awaiter(this, void 0, void 0, function* () {
  7488. version = semver.clean(version) || version;
  7489. arch = arch || os.arch();
  7490. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  7491. core.debug(`source dir: ${sourceDir}`);
  7492. if (!fs.statSync(sourceDir).isDirectory()) {
  7493. throw new Error('sourceDir is not a directory');
  7494. }
  7495. // Create the tool dir
  7496. const destPath = yield _createToolPath(tool, version, arch);
  7497. // copy each child item. do not move. move can fail on Windows
  7498. // due to anti-virus software having an open handle on a file.
  7499. for (const itemName of fs.readdirSync(sourceDir)) {
  7500. const s = path.join(sourceDir, itemName);
  7501. yield io.cp(s, destPath, { recursive: true });
  7502. }
  7503. // write .complete
  7504. _completeToolPath(tool, version, arch);
  7505. return destPath;
  7506. });
  7507. }
  7508. exports.cacheDir = cacheDir;
  7509. /**
  7510. * Caches a downloaded file (GUID) and installs it
  7511. * into the tool cache with a given targetName
  7512. *
  7513. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
  7514. * @param targetFile the name of the file name in the tools directory
  7515. * @param tool tool name
  7516. * @param version version of the tool. semver format
  7517. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  7518. */
  7519. function cacheFile(sourceFile, targetFile, tool, version, arch) {
  7520. return __awaiter(this, void 0, void 0, function* () {
  7521. version = semver.clean(version) || version;
  7522. arch = arch || os.arch();
  7523. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  7524. core.debug(`source file: ${sourceFile}`);
  7525. if (!fs.statSync(sourceFile).isFile()) {
  7526. throw new Error('sourceFile is not a file');
  7527. }
  7528. // create the tool dir
  7529. const destFolder = yield _createToolPath(tool, version, arch);
  7530. // copy instead of move. move can fail on Windows due to
  7531. // anti-virus software having an open handle on a file.
  7532. const destPath = path.join(destFolder, targetFile);
  7533. core.debug(`destination file ${destPath}`);
  7534. yield io.cp(sourceFile, destPath);
  7535. // write .complete
  7536. _completeToolPath(tool, version, arch);
  7537. return destFolder;
  7538. });
  7539. }
  7540. exports.cacheFile = cacheFile;
  7541. /**
  7542. * Finds the path to a tool version in the local installed tool cache
  7543. *
  7544. * @param toolName name of the tool
  7545. * @param versionSpec version of the tool
  7546. * @param arch optional arch. defaults to arch of computer
  7547. */
  7548. function find(toolName, versionSpec, arch) {
  7549. if (!toolName) {
  7550. throw new Error('toolName parameter is required');
  7551. }
  7552. if (!versionSpec) {
  7553. throw new Error('versionSpec parameter is required');
  7554. }
  7555. arch = arch || os.arch();
  7556. // attempt to resolve an explicit version
  7557. if (!isExplicitVersion(versionSpec)) {
  7558. const localVersions = findAllVersions(toolName, arch);
  7559. const match = evaluateVersions(localVersions, versionSpec);
  7560. versionSpec = match;
  7561. }
  7562. // check for the explicit version in the cache
  7563. let toolPath = '';
  7564. if (versionSpec) {
  7565. versionSpec = semver.clean(versionSpec) || '';
  7566. const cachePath = path.join(_getCacheDirectory(), toolName, versionSpec, arch);
  7567. core.debug(`checking cache: ${cachePath}`);
  7568. if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
  7569. core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
  7570. toolPath = cachePath;
  7571. }
  7572. else {
  7573. core.debug('not found');
  7574. }
  7575. }
  7576. return toolPath;
  7577. }
  7578. exports.find = find;
  7579. /**
  7580. * Finds the paths to all versions of a tool that are installed in the local tool cache
  7581. *
  7582. * @param toolName name of the tool
  7583. * @param arch optional arch. defaults to arch of computer
  7584. */
  7585. function findAllVersions(toolName, arch) {
  7586. const versions = [];
  7587. arch = arch || os.arch();
  7588. const toolPath = path.join(_getCacheDirectory(), toolName);
  7589. if (fs.existsSync(toolPath)) {
  7590. const children = fs.readdirSync(toolPath);
  7591. for (const child of children) {
  7592. if (isExplicitVersion(child)) {
  7593. const fullPath = path.join(toolPath, child, arch || '');
  7594. if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
  7595. versions.push(child);
  7596. }
  7597. }
  7598. }
  7599. }
  7600. return versions;
  7601. }
  7602. exports.findAllVersions = findAllVersions;
  7603. function getManifestFromRepo(owner, repo, auth, branch = 'master') {
  7604. return __awaiter(this, void 0, void 0, function* () {
  7605. let releases = [];
  7606. const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;
  7607. const http = new httpm.HttpClient('tool-cache');
  7608. const headers = {};
  7609. if (auth) {
  7610. core.debug('set auth');
  7611. headers.authorization = auth;
  7612. }
  7613. const response = yield http.getJson(treeUrl, headers);
  7614. if (!response.result) {
  7615. return releases;
  7616. }
  7617. let manifestUrl = '';
  7618. for (const item of response.result.tree) {
  7619. if (item.path === 'versions-manifest.json') {
  7620. manifestUrl = item.url;
  7621. break;
  7622. }
  7623. }
  7624. headers['accept'] = 'application/vnd.github.VERSION.raw';
  7625. let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();
  7626. if (versionsRaw) {
  7627. // shouldn't be needed but protects against invalid json saved with BOM
  7628. versionsRaw = versionsRaw.replace(/^\uFEFF/, '');
  7629. try {
  7630. releases = JSON.parse(versionsRaw);
  7631. }
  7632. catch (_a) {
  7633. core.debug('Invalid json');
  7634. }
  7635. }
  7636. return releases;
  7637. });
  7638. }
  7639. exports.getManifestFromRepo = getManifestFromRepo;
  7640. function findFromManifest(versionSpec, stable, manifest, archFilter = os.arch()) {
  7641. return __awaiter(this, void 0, void 0, function* () {
  7642. // wrap the internal impl
  7643. const match = yield mm._findMatch(versionSpec, stable, manifest, archFilter);
  7644. return match;
  7645. });
  7646. }
  7647. exports.findFromManifest = findFromManifest;
  7648. function _createExtractFolder(dest) {
  7649. return __awaiter(this, void 0, void 0, function* () {
  7650. if (!dest) {
  7651. // create a temp dir
  7652. dest = path.join(_getTempDirectory(), v4_1.default());
  7653. }
  7654. yield io.mkdirP(dest);
  7655. return dest;
  7656. });
  7657. }
  7658. function _createToolPath(tool, version, arch) {
  7659. return __awaiter(this, void 0, void 0, function* () {
  7660. const folderPath = path.join(_getCacheDirectory(), tool, semver.clean(version) || version, arch || '');
  7661. core.debug(`destination ${folderPath}`);
  7662. const markerPath = `${folderPath}.complete`;
  7663. yield io.rmRF(folderPath);
  7664. yield io.rmRF(markerPath);
  7665. yield io.mkdirP(folderPath);
  7666. return folderPath;
  7667. });
  7668. }
  7669. function _completeToolPath(tool, version, arch) {
  7670. const folderPath = path.join(_getCacheDirectory(), tool, semver.clean(version) || version, arch || '');
  7671. const markerPath = `${folderPath}.complete`;
  7672. fs.writeFileSync(markerPath, '');
  7673. core.debug('finished caching tool');
  7674. }
  7675. /**
  7676. * Check if version string is explicit
  7677. *
  7678. * @param versionSpec version string to check
  7679. */
  7680. function isExplicitVersion(versionSpec) {
  7681. const c = semver.clean(versionSpec) || '';
  7682. core.debug(`isExplicit: ${c}`);
  7683. const valid = semver.valid(c) != null;
  7684. core.debug(`explicit? ${valid}`);
  7685. return valid;
  7686. }
  7687. exports.isExplicitVersion = isExplicitVersion;
  7688. /**
  7689. * Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`
  7690. *
  7691. * @param versions array of versions to evaluate
  7692. * @param versionSpec semantic version spec to satisfy
  7693. */
  7694. function evaluateVersions(versions, versionSpec) {
  7695. let version = '';
  7696. core.debug(`evaluating ${versions.length} versions`);
  7697. versions = versions.sort((a, b) => {
  7698. if (semver.gt(a, b)) {
  7699. return 1;
  7700. }
  7701. return -1;
  7702. });
  7703. for (let i = versions.length - 1; i >= 0; i--) {
  7704. const potential = versions[i];
  7705. const satisfied = semver.satisfies(potential, versionSpec);
  7706. if (satisfied) {
  7707. version = potential;
  7708. break;
  7709. }
  7710. }
  7711. if (version) {
  7712. core.debug(`matched: ${version}`);
  7713. }
  7714. else {
  7715. core.debug('match not found');
  7716. }
  7717. return version;
  7718. }
  7719. exports.evaluateVersions = evaluateVersions;
  7720. /**
  7721. * Gets RUNNER_TOOL_CACHE
  7722. */
  7723. function _getCacheDirectory() {
  7724. const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
  7725. assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
  7726. return cacheDirectory;
  7727. }
  7728. /**
  7729. * Gets RUNNER_TEMP
  7730. */
  7731. function _getTempDirectory() {
  7732. const tempDirectory = process.env['RUNNER_TEMP'] || '';
  7733. assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
  7734. return tempDirectory;
  7735. }
  7736. /**
  7737. * Gets a global variable
  7738. */
  7739. function _getGlobal(key, defaultValue) {
  7740. /* eslint-disable @typescript-eslint/no-explicit-any */
  7741. const value = global[key];
  7742. /* eslint-enable @typescript-eslint/no-explicit-any */
  7743. return value !== undefined ? value : defaultValue;
  7744. }
  7745. /**
  7746. * Returns an array of unique values.
  7747. * @param values Values to make unique.
  7748. */
  7749. function _unique(values) {
  7750. return Array.from(new Set(values));
  7751. }
  7752. //# sourceMappingURL=tool-cache.js.map
  7753. /***/ }),
  7754. /***/ 562:
  7755. /***/ ((module, exports) => {
  7756. exports = module.exports = SemVer
  7757. var debug
  7758. /* istanbul ignore next */
  7759. if (typeof process === 'object' &&
  7760. process.env &&
  7761. process.env.NODE_DEBUG &&
  7762. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  7763. debug = function () {
  7764. var args = Array.prototype.slice.call(arguments, 0)
  7765. args.unshift('SEMVER')
  7766. console.log.apply(console, args)
  7767. }
  7768. } else {
  7769. debug = function () {}
  7770. }
  7771. // Note: this is the semver.org version of the spec that it implements
  7772. // Not necessarily the package version of this code.
  7773. exports.SEMVER_SPEC_VERSION = '2.0.0'
  7774. var MAX_LENGTH = 256
  7775. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  7776. /* istanbul ignore next */ 9007199254740991
  7777. // Max safe segment length for coercion.
  7778. var MAX_SAFE_COMPONENT_LENGTH = 16
  7779. // The actual regexps go on exports.re
  7780. var re = exports.re = []
  7781. var src = exports.src = []
  7782. var t = exports.tokens = {}
  7783. var R = 0
  7784. function tok (n) {
  7785. t[n] = R++
  7786. }
  7787. // The following Regular Expressions can be used for tokenizing,
  7788. // validating, and parsing SemVer version strings.
  7789. // ## Numeric Identifier
  7790. // A single `0`, or a non-zero digit followed by zero or more digits.
  7791. tok('NUMERICIDENTIFIER')
  7792. src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  7793. tok('NUMERICIDENTIFIERLOOSE')
  7794. src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  7795. // ## Non-numeric Identifier
  7796. // Zero or more digits, followed by a letter or hyphen, and then zero or
  7797. // more letters, digits, or hyphens.
  7798. tok('NONNUMERICIDENTIFIER')
  7799. src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  7800. // ## Main Version
  7801. // Three dot-separated numeric identifiers.
  7802. tok('MAINVERSION')
  7803. src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  7804. '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  7805. '(' + src[t.NUMERICIDENTIFIER] + ')'
  7806. tok('MAINVERSIONLOOSE')
  7807. src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  7808. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  7809. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
  7810. // ## Pre-release Version Identifier
  7811. // A numeric identifier, or a non-numeric identifier.
  7812. tok('PRERELEASEIDENTIFIER')
  7813. src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
  7814. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  7815. tok('PRERELEASEIDENTIFIERLOOSE')
  7816. src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
  7817. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  7818. // ## Pre-release Version
  7819. // Hyphen, followed by one or more dot-separated pre-release version
  7820. // identifiers.
  7821. tok('PRERELEASE')
  7822. src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
  7823. '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
  7824. tok('PRERELEASELOOSE')
  7825. src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
  7826. '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
  7827. // ## Build Metadata Identifier
  7828. // Any combination of digits, letters, or hyphens.
  7829. tok('BUILDIDENTIFIER')
  7830. src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  7831. // ## Build Metadata
  7832. // Plus sign, followed by one or more period-separated build metadata
  7833. // identifiers.
  7834. tok('BUILD')
  7835. src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
  7836. '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
  7837. // ## Full Version String
  7838. // A main version, followed optionally by a pre-release version and
  7839. // build metadata.
  7840. // Note that the only major, minor, patch, and pre-release sections of
  7841. // the version string are capturing groups. The build metadata is not a
  7842. // capturing group, because it should not ever be used in version
  7843. // comparison.
  7844. tok('FULL')
  7845. tok('FULLPLAIN')
  7846. src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
  7847. src[t.PRERELEASE] + '?' +
  7848. src[t.BUILD] + '?'
  7849. src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
  7850. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  7851. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  7852. // common in the npm registry.
  7853. tok('LOOSEPLAIN')
  7854. src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
  7855. src[t.PRERELEASELOOSE] + '?' +
  7856. src[t.BUILD] + '?'
  7857. tok('LOOSE')
  7858. src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
  7859. tok('GTLT')
  7860. src[t.GTLT] = '((?:<|>)?=?)'
  7861. // Something like "2.*" or "1.2.x".
  7862. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  7863. // Only the first item is strictly required.
  7864. tok('XRANGEIDENTIFIERLOOSE')
  7865. src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  7866. tok('XRANGEIDENTIFIER')
  7867. src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
  7868. tok('XRANGEPLAIN')
  7869. src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
  7870. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  7871. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  7872. '(?:' + src[t.PRERELEASE] + ')?' +
  7873. src[t.BUILD] + '?' +
  7874. ')?)?'
  7875. tok('XRANGEPLAINLOOSE')
  7876. src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7877. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7878. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  7879. '(?:' + src[t.PRERELEASELOOSE] + ')?' +
  7880. src[t.BUILD] + '?' +
  7881. ')?)?'
  7882. tok('XRANGE')
  7883. src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
  7884. tok('XRANGELOOSE')
  7885. src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
  7886. // Coercion.
  7887. // Extract anything that could conceivably be a part of a valid semver
  7888. tok('COERCE')
  7889. src[t.COERCE] = '(^|[^\\d])' +
  7890. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  7891. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  7892. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  7893. '(?:$|[^\\d])'
  7894. tok('COERCERTL')
  7895. re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
  7896. // Tilde ranges.
  7897. // Meaning is "reasonably at or greater than"
  7898. tok('LONETILDE')
  7899. src[t.LONETILDE] = '(?:~>?)'
  7900. tok('TILDETRIM')
  7901. src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
  7902. re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
  7903. var tildeTrimReplace = '$1~'
  7904. tok('TILDE')
  7905. src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
  7906. tok('TILDELOOSE')
  7907. src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
  7908. // Caret ranges.
  7909. // Meaning is "at least and backwards compatible with"
  7910. tok('LONECARET')
  7911. src[t.LONECARET] = '(?:\\^)'
  7912. tok('CARETTRIM')
  7913. src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
  7914. re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
  7915. var caretTrimReplace = '$1^'
  7916. tok('CARET')
  7917. src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
  7918. tok('CARETLOOSE')
  7919. src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
  7920. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  7921. tok('COMPARATORLOOSE')
  7922. src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
  7923. tok('COMPARATOR')
  7924. src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
  7925. // An expression to strip any whitespace between the gtlt and the thing
  7926. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  7927. tok('COMPARATORTRIM')
  7928. src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
  7929. '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
  7930. // this one has to use the /g flag
  7931. re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
  7932. var comparatorTrimReplace = '$1$2$3'
  7933. // Something like `1.2.3 - 1.2.4`
  7934. // Note that these all use the loose form, because they'll be
  7935. // checked against either the strict or loose comparator form
  7936. // later.
  7937. tok('HYPHENRANGE')
  7938. src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
  7939. '\\s+-\\s+' +
  7940. '(' + src[t.XRANGEPLAIN] + ')' +
  7941. '\\s*$'
  7942. tok('HYPHENRANGELOOSE')
  7943. src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
  7944. '\\s+-\\s+' +
  7945. '(' + src[t.XRANGEPLAINLOOSE] + ')' +
  7946. '\\s*$'
  7947. // Star ranges basically just allow anything at all.
  7948. tok('STAR')
  7949. src[t.STAR] = '(<|>)?=?\\s*\\*'
  7950. // Compile to actual regexp objects.
  7951. // All are flag-free, unless they were created above with a flag.
  7952. for (var i = 0; i < R; i++) {
  7953. debug(i, src[i])
  7954. if (!re[i]) {
  7955. re[i] = new RegExp(src[i])
  7956. }
  7957. }
  7958. exports.parse = parse
  7959. function parse (version, options) {
  7960. if (!options || typeof options !== 'object') {
  7961. options = {
  7962. loose: !!options,
  7963. includePrerelease: false
  7964. }
  7965. }
  7966. if (version instanceof SemVer) {
  7967. return version
  7968. }
  7969. if (typeof version !== 'string') {
  7970. return null
  7971. }
  7972. if (version.length > MAX_LENGTH) {
  7973. return null
  7974. }
  7975. var r = options.loose ? re[t.LOOSE] : re[t.FULL]
  7976. if (!r.test(version)) {
  7977. return null
  7978. }
  7979. try {
  7980. return new SemVer(version, options)
  7981. } catch (er) {
  7982. return null
  7983. }
  7984. }
  7985. exports.valid = valid
  7986. function valid (version, options) {
  7987. var v = parse(version, options)
  7988. return v ? v.version : null
  7989. }
  7990. exports.clean = clean
  7991. function clean (version, options) {
  7992. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  7993. return s ? s.version : null
  7994. }
  7995. exports.SemVer = SemVer
  7996. function SemVer (version, options) {
  7997. if (!options || typeof options !== 'object') {
  7998. options = {
  7999. loose: !!options,
  8000. includePrerelease: false
  8001. }
  8002. }
  8003. if (version instanceof SemVer) {
  8004. if (version.loose === options.loose) {
  8005. return version
  8006. } else {
  8007. version = version.version
  8008. }
  8009. } else if (typeof version !== 'string') {
  8010. throw new TypeError('Invalid Version: ' + version)
  8011. }
  8012. if (version.length > MAX_LENGTH) {
  8013. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  8014. }
  8015. if (!(this instanceof SemVer)) {
  8016. return new SemVer(version, options)
  8017. }
  8018. debug('SemVer', version, options)
  8019. this.options = options
  8020. this.loose = !!options.loose
  8021. var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  8022. if (!m) {
  8023. throw new TypeError('Invalid Version: ' + version)
  8024. }
  8025. this.raw = version
  8026. // these are actually numbers
  8027. this.major = +m[1]
  8028. this.minor = +m[2]
  8029. this.patch = +m[3]
  8030. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  8031. throw new TypeError('Invalid major version')
  8032. }
  8033. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  8034. throw new TypeError('Invalid minor version')
  8035. }
  8036. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  8037. throw new TypeError('Invalid patch version')
  8038. }
  8039. // numberify any prerelease numeric ids
  8040. if (!m[4]) {
  8041. this.prerelease = []
  8042. } else {
  8043. this.prerelease = m[4].split('.').map(function (id) {
  8044. if (/^[0-9]+$/.test(id)) {
  8045. var num = +id
  8046. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  8047. return num
  8048. }
  8049. }
  8050. return id
  8051. })
  8052. }
  8053. this.build = m[5] ? m[5].split('.') : []
  8054. this.format()
  8055. }
  8056. SemVer.prototype.format = function () {
  8057. this.version = this.major + '.' + this.minor + '.' + this.patch
  8058. if (this.prerelease.length) {
  8059. this.version += '-' + this.prerelease.join('.')
  8060. }
  8061. return this.version
  8062. }
  8063. SemVer.prototype.toString = function () {
  8064. return this.version
  8065. }
  8066. SemVer.prototype.compare = function (other) {
  8067. debug('SemVer.compare', this.version, this.options, other)
  8068. if (!(other instanceof SemVer)) {
  8069. other = new SemVer(other, this.options)
  8070. }
  8071. return this.compareMain(other) || this.comparePre(other)
  8072. }
  8073. SemVer.prototype.compareMain = function (other) {
  8074. if (!(other instanceof SemVer)) {
  8075. other = new SemVer(other, this.options)
  8076. }
  8077. return compareIdentifiers(this.major, other.major) ||
  8078. compareIdentifiers(this.minor, other.minor) ||
  8079. compareIdentifiers(this.patch, other.patch)
  8080. }
  8081. SemVer.prototype.comparePre = function (other) {
  8082. if (!(other instanceof SemVer)) {
  8083. other = new SemVer(other, this.options)
  8084. }
  8085. // NOT having a prerelease is > having one
  8086. if (this.prerelease.length && !other.prerelease.length) {
  8087. return -1
  8088. } else if (!this.prerelease.length && other.prerelease.length) {
  8089. return 1
  8090. } else if (!this.prerelease.length && !other.prerelease.length) {
  8091. return 0
  8092. }
  8093. var i = 0
  8094. do {
  8095. var a = this.prerelease[i]
  8096. var b = other.prerelease[i]
  8097. debug('prerelease compare', i, a, b)
  8098. if (a === undefined && b === undefined) {
  8099. return 0
  8100. } else if (b === undefined) {
  8101. return 1
  8102. } else if (a === undefined) {
  8103. return -1
  8104. } else if (a === b) {
  8105. continue
  8106. } else {
  8107. return compareIdentifiers(a, b)
  8108. }
  8109. } while (++i)
  8110. }
  8111. SemVer.prototype.compareBuild = function (other) {
  8112. if (!(other instanceof SemVer)) {
  8113. other = new SemVer(other, this.options)
  8114. }
  8115. var i = 0
  8116. do {
  8117. var a = this.build[i]
  8118. var b = other.build[i]
  8119. debug('prerelease compare', i, a, b)
  8120. if (a === undefined && b === undefined) {
  8121. return 0
  8122. } else if (b === undefined) {
  8123. return 1
  8124. } else if (a === undefined) {
  8125. return -1
  8126. } else if (a === b) {
  8127. continue
  8128. } else {
  8129. return compareIdentifiers(a, b)
  8130. }
  8131. } while (++i)
  8132. }
  8133. // preminor will bump the version up to the next minor release, and immediately
  8134. // down to pre-release. premajor and prepatch work the same way.
  8135. SemVer.prototype.inc = function (release, identifier) {
  8136. switch (release) {
  8137. case 'premajor':
  8138. this.prerelease.length = 0
  8139. this.patch = 0
  8140. this.minor = 0
  8141. this.major++
  8142. this.inc('pre', identifier)
  8143. break
  8144. case 'preminor':
  8145. this.prerelease.length = 0
  8146. this.patch = 0
  8147. this.minor++
  8148. this.inc('pre', identifier)
  8149. break
  8150. case 'prepatch':
  8151. // If this is already a prerelease, it will bump to the next version
  8152. // drop any prereleases that might already exist, since they are not
  8153. // relevant at this point.
  8154. this.prerelease.length = 0
  8155. this.inc('patch', identifier)
  8156. this.inc('pre', identifier)
  8157. break
  8158. // If the input is a non-prerelease version, this acts the same as
  8159. // prepatch.
  8160. case 'prerelease':
  8161. if (this.prerelease.length === 0) {
  8162. this.inc('patch', identifier)
  8163. }
  8164. this.inc('pre', identifier)
  8165. break
  8166. case 'major':
  8167. // If this is a pre-major version, bump up to the same major version.
  8168. // Otherwise increment major.
  8169. // 1.0.0-5 bumps to 1.0.0
  8170. // 1.1.0 bumps to 2.0.0
  8171. if (this.minor !== 0 ||
  8172. this.patch !== 0 ||
  8173. this.prerelease.length === 0) {
  8174. this.major++
  8175. }
  8176. this.minor = 0
  8177. this.patch = 0
  8178. this.prerelease = []
  8179. break
  8180. case 'minor':
  8181. // If this is a pre-minor version, bump up to the same minor version.
  8182. // Otherwise increment minor.
  8183. // 1.2.0-5 bumps to 1.2.0
  8184. // 1.2.1 bumps to 1.3.0
  8185. if (this.patch !== 0 || this.prerelease.length === 0) {
  8186. this.minor++
  8187. }
  8188. this.patch = 0
  8189. this.prerelease = []
  8190. break
  8191. case 'patch':
  8192. // If this is not a pre-release version, it will increment the patch.
  8193. // If it is a pre-release it will bump up to the same patch version.
  8194. // 1.2.0-5 patches to 1.2.0
  8195. // 1.2.0 patches to 1.2.1
  8196. if (this.prerelease.length === 0) {
  8197. this.patch++
  8198. }
  8199. this.prerelease = []
  8200. break
  8201. // This probably shouldn't be used publicly.
  8202. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  8203. case 'pre':
  8204. if (this.prerelease.length === 0) {
  8205. this.prerelease = [0]
  8206. } else {
  8207. var i = this.prerelease.length
  8208. while (--i >= 0) {
  8209. if (typeof this.prerelease[i] === 'number') {
  8210. this.prerelease[i]++
  8211. i = -2
  8212. }
  8213. }
  8214. if (i === -1) {
  8215. // didn't increment anything
  8216. this.prerelease.push(0)
  8217. }
  8218. }
  8219. if (identifier) {
  8220. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  8221. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  8222. if (this.prerelease[0] === identifier) {
  8223. if (isNaN(this.prerelease[1])) {
  8224. this.prerelease = [identifier, 0]
  8225. }
  8226. } else {
  8227. this.prerelease = [identifier, 0]
  8228. }
  8229. }
  8230. break
  8231. default:
  8232. throw new Error('invalid increment argument: ' + release)
  8233. }
  8234. this.format()
  8235. this.raw = this.version
  8236. return this
  8237. }
  8238. exports.inc = inc
  8239. function inc (version, release, loose, identifier) {
  8240. if (typeof (loose) === 'string') {
  8241. identifier = loose
  8242. loose = undefined
  8243. }
  8244. try {
  8245. return new SemVer(version, loose).inc(release, identifier).version
  8246. } catch (er) {
  8247. return null
  8248. }
  8249. }
  8250. exports.diff = diff
  8251. function diff (version1, version2) {
  8252. if (eq(version1, version2)) {
  8253. return null
  8254. } else {
  8255. var v1 = parse(version1)
  8256. var v2 = parse(version2)
  8257. var prefix = ''
  8258. if (v1.prerelease.length || v2.prerelease.length) {
  8259. prefix = 'pre'
  8260. var defaultResult = 'prerelease'
  8261. }
  8262. for (var key in v1) {
  8263. if (key === 'major' || key === 'minor' || key === 'patch') {
  8264. if (v1[key] !== v2[key]) {
  8265. return prefix + key
  8266. }
  8267. }
  8268. }
  8269. return defaultResult // may be undefined
  8270. }
  8271. }
  8272. exports.compareIdentifiers = compareIdentifiers
  8273. var numeric = /^[0-9]+$/
  8274. function compareIdentifiers (a, b) {
  8275. var anum = numeric.test(a)
  8276. var bnum = numeric.test(b)
  8277. if (anum && bnum) {
  8278. a = +a
  8279. b = +b
  8280. }
  8281. return a === b ? 0
  8282. : (anum && !bnum) ? -1
  8283. : (bnum && !anum) ? 1
  8284. : a < b ? -1
  8285. : 1
  8286. }
  8287. exports.rcompareIdentifiers = rcompareIdentifiers
  8288. function rcompareIdentifiers (a, b) {
  8289. return compareIdentifiers(b, a)
  8290. }
  8291. exports.major = major
  8292. function major (a, loose) {
  8293. return new SemVer(a, loose).major
  8294. }
  8295. exports.minor = minor
  8296. function minor (a, loose) {
  8297. return new SemVer(a, loose).minor
  8298. }
  8299. exports.patch = patch
  8300. function patch (a, loose) {
  8301. return new SemVer(a, loose).patch
  8302. }
  8303. exports.compare = compare
  8304. function compare (a, b, loose) {
  8305. return new SemVer(a, loose).compare(new SemVer(b, loose))
  8306. }
  8307. exports.compareLoose = compareLoose
  8308. function compareLoose (a, b) {
  8309. return compare(a, b, true)
  8310. }
  8311. exports.compareBuild = compareBuild
  8312. function compareBuild (a, b, loose) {
  8313. var versionA = new SemVer(a, loose)
  8314. var versionB = new SemVer(b, loose)
  8315. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  8316. }
  8317. exports.rcompare = rcompare
  8318. function rcompare (a, b, loose) {
  8319. return compare(b, a, loose)
  8320. }
  8321. exports.sort = sort
  8322. function sort (list, loose) {
  8323. return list.sort(function (a, b) {
  8324. return exports.compareBuild(a, b, loose)
  8325. })
  8326. }
  8327. exports.rsort = rsort
  8328. function rsort (list, loose) {
  8329. return list.sort(function (a, b) {
  8330. return exports.compareBuild(b, a, loose)
  8331. })
  8332. }
  8333. exports.gt = gt
  8334. function gt (a, b, loose) {
  8335. return compare(a, b, loose) > 0
  8336. }
  8337. exports.lt = lt
  8338. function lt (a, b, loose) {
  8339. return compare(a, b, loose) < 0
  8340. }
  8341. exports.eq = eq
  8342. function eq (a, b, loose) {
  8343. return compare(a, b, loose) === 0
  8344. }
  8345. exports.neq = neq
  8346. function neq (a, b, loose) {
  8347. return compare(a, b, loose) !== 0
  8348. }
  8349. exports.gte = gte
  8350. function gte (a, b, loose) {
  8351. return compare(a, b, loose) >= 0
  8352. }
  8353. exports.lte = lte
  8354. function lte (a, b, loose) {
  8355. return compare(a, b, loose) <= 0
  8356. }
  8357. exports.cmp = cmp
  8358. function cmp (a, op, b, loose) {
  8359. switch (op) {
  8360. case '===':
  8361. if (typeof a === 'object')
  8362. a = a.version
  8363. if (typeof b === 'object')
  8364. b = b.version
  8365. return a === b
  8366. case '!==':
  8367. if (typeof a === 'object')
  8368. a = a.version
  8369. if (typeof b === 'object')
  8370. b = b.version
  8371. return a !== b
  8372. case '':
  8373. case '=':
  8374. case '==':
  8375. return eq(a, b, loose)
  8376. case '!=':
  8377. return neq(a, b, loose)
  8378. case '>':
  8379. return gt(a, b, loose)
  8380. case '>=':
  8381. return gte(a, b, loose)
  8382. case '<':
  8383. return lt(a, b, loose)
  8384. case '<=':
  8385. return lte(a, b, loose)
  8386. default:
  8387. throw new TypeError('Invalid operator: ' + op)
  8388. }
  8389. }
  8390. exports.Comparator = Comparator
  8391. function Comparator (comp, options) {
  8392. if (!options || typeof options !== 'object') {
  8393. options = {
  8394. loose: !!options,
  8395. includePrerelease: false
  8396. }
  8397. }
  8398. if (comp instanceof Comparator) {
  8399. if (comp.loose === !!options.loose) {
  8400. return comp
  8401. } else {
  8402. comp = comp.value
  8403. }
  8404. }
  8405. if (!(this instanceof Comparator)) {
  8406. return new Comparator(comp, options)
  8407. }
  8408. debug('comparator', comp, options)
  8409. this.options = options
  8410. this.loose = !!options.loose
  8411. this.parse(comp)
  8412. if (this.semver === ANY) {
  8413. this.value = ''
  8414. } else {
  8415. this.value = this.operator + this.semver.version
  8416. }
  8417. debug('comp', this)
  8418. }
  8419. var ANY = {}
  8420. Comparator.prototype.parse = function (comp) {
  8421. var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  8422. var m = comp.match(r)
  8423. if (!m) {
  8424. throw new TypeError('Invalid comparator: ' + comp)
  8425. }
  8426. this.operator = m[1] !== undefined ? m[1] : ''
  8427. if (this.operator === '=') {
  8428. this.operator = ''
  8429. }
  8430. // if it literally is just '>' or '' then allow anything.
  8431. if (!m[2]) {
  8432. this.semver = ANY
  8433. } else {
  8434. this.semver = new SemVer(m[2], this.options.loose)
  8435. }
  8436. }
  8437. Comparator.prototype.toString = function () {
  8438. return this.value
  8439. }
  8440. Comparator.prototype.test = function (version) {
  8441. debug('Comparator.test', version, this.options.loose)
  8442. if (this.semver === ANY || version === ANY) {
  8443. return true
  8444. }
  8445. if (typeof version === 'string') {
  8446. try {
  8447. version = new SemVer(version, this.options)
  8448. } catch (er) {
  8449. return false
  8450. }
  8451. }
  8452. return cmp(version, this.operator, this.semver, this.options)
  8453. }
  8454. Comparator.prototype.intersects = function (comp, options) {
  8455. if (!(comp instanceof Comparator)) {
  8456. throw new TypeError('a Comparator is required')
  8457. }
  8458. if (!options || typeof options !== 'object') {
  8459. options = {
  8460. loose: !!options,
  8461. includePrerelease: false
  8462. }
  8463. }
  8464. var rangeTmp
  8465. if (this.operator === '') {
  8466. if (this.value === '') {
  8467. return true
  8468. }
  8469. rangeTmp = new Range(comp.value, options)
  8470. return satisfies(this.value, rangeTmp, options)
  8471. } else if (comp.operator === '') {
  8472. if (comp.value === '') {
  8473. return true
  8474. }
  8475. rangeTmp = new Range(this.value, options)
  8476. return satisfies(comp.semver, rangeTmp, options)
  8477. }
  8478. var sameDirectionIncreasing =
  8479. (this.operator === '>=' || this.operator === '>') &&
  8480. (comp.operator === '>=' || comp.operator === '>')
  8481. var sameDirectionDecreasing =
  8482. (this.operator === '<=' || this.operator === '<') &&
  8483. (comp.operator === '<=' || comp.operator === '<')
  8484. var sameSemVer = this.semver.version === comp.semver.version
  8485. var differentDirectionsInclusive =
  8486. (this.operator === '>=' || this.operator === '<=') &&
  8487. (comp.operator === '>=' || comp.operator === '<=')
  8488. var oppositeDirectionsLessThan =
  8489. cmp(this.semver, '<', comp.semver, options) &&
  8490. ((this.operator === '>=' || this.operator === '>') &&
  8491. (comp.operator === '<=' || comp.operator === '<'))
  8492. var oppositeDirectionsGreaterThan =
  8493. cmp(this.semver, '>', comp.semver, options) &&
  8494. ((this.operator === '<=' || this.operator === '<') &&
  8495. (comp.operator === '>=' || comp.operator === '>'))
  8496. return sameDirectionIncreasing || sameDirectionDecreasing ||
  8497. (sameSemVer && differentDirectionsInclusive) ||
  8498. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  8499. }
  8500. exports.Range = Range
  8501. function Range (range, options) {
  8502. if (!options || typeof options !== 'object') {
  8503. options = {
  8504. loose: !!options,
  8505. includePrerelease: false
  8506. }
  8507. }
  8508. if (range instanceof Range) {
  8509. if (range.loose === !!options.loose &&
  8510. range.includePrerelease === !!options.includePrerelease) {
  8511. return range
  8512. } else {
  8513. return new Range(range.raw, options)
  8514. }
  8515. }
  8516. if (range instanceof Comparator) {
  8517. return new Range(range.value, options)
  8518. }
  8519. if (!(this instanceof Range)) {
  8520. return new Range(range, options)
  8521. }
  8522. this.options = options
  8523. this.loose = !!options.loose
  8524. this.includePrerelease = !!options.includePrerelease
  8525. // First, split based on boolean or ||
  8526. this.raw = range
  8527. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  8528. return this.parseRange(range.trim())
  8529. }, this).filter(function (c) {
  8530. // throw out any that are not relevant for whatever reason
  8531. return c.length
  8532. })
  8533. if (!this.set.length) {
  8534. throw new TypeError('Invalid SemVer Range: ' + range)
  8535. }
  8536. this.format()
  8537. }
  8538. Range.prototype.format = function () {
  8539. this.range = this.set.map(function (comps) {
  8540. return comps.join(' ').trim()
  8541. }).join('||').trim()
  8542. return this.range
  8543. }
  8544. Range.prototype.toString = function () {
  8545. return this.range
  8546. }
  8547. Range.prototype.parseRange = function (range) {
  8548. var loose = this.options.loose
  8549. range = range.trim()
  8550. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  8551. var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  8552. range = range.replace(hr, hyphenReplace)
  8553. debug('hyphen replace', range)
  8554. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  8555. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  8556. debug('comparator trim', range, re[t.COMPARATORTRIM])
  8557. // `~ 1.2.3` => `~1.2.3`
  8558. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  8559. // `^ 1.2.3` => `^1.2.3`
  8560. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  8561. // normalize spaces
  8562. range = range.split(/\s+/).join(' ')
  8563. // At this point, the range is completely trimmed and
  8564. // ready to be split into comparators.
  8565. var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  8566. var set = range.split(' ').map(function (comp) {
  8567. return parseComparator(comp, this.options)
  8568. }, this).join(' ').split(/\s+/)
  8569. if (this.options.loose) {
  8570. // in loose mode, throw out any that are not valid comparators
  8571. set = set.filter(function (comp) {
  8572. return !!comp.match(compRe)
  8573. })
  8574. }
  8575. set = set.map(function (comp) {
  8576. return new Comparator(comp, this.options)
  8577. }, this)
  8578. return set
  8579. }
  8580. Range.prototype.intersects = function (range, options) {
  8581. if (!(range instanceof Range)) {
  8582. throw new TypeError('a Range is required')
  8583. }
  8584. return this.set.some(function (thisComparators) {
  8585. return (
  8586. isSatisfiable(thisComparators, options) &&
  8587. range.set.some(function (rangeComparators) {
  8588. return (
  8589. isSatisfiable(rangeComparators, options) &&
  8590. thisComparators.every(function (thisComparator) {
  8591. return rangeComparators.every(function (rangeComparator) {
  8592. return thisComparator.intersects(rangeComparator, options)
  8593. })
  8594. })
  8595. )
  8596. })
  8597. )
  8598. })
  8599. }
  8600. // take a set of comparators and determine whether there
  8601. // exists a version which can satisfy it
  8602. function isSatisfiable (comparators, options) {
  8603. var result = true
  8604. var remainingComparators = comparators.slice()
  8605. var testComparator = remainingComparators.pop()
  8606. while (result && remainingComparators.length) {
  8607. result = remainingComparators.every(function (otherComparator) {
  8608. return testComparator.intersects(otherComparator, options)
  8609. })
  8610. testComparator = remainingComparators.pop()
  8611. }
  8612. return result
  8613. }
  8614. // Mostly just for testing and legacy API reasons
  8615. exports.toComparators = toComparators
  8616. function toComparators (range, options) {
  8617. return new Range(range, options).set.map(function (comp) {
  8618. return comp.map(function (c) {
  8619. return c.value
  8620. }).join(' ').trim().split(' ')
  8621. })
  8622. }
  8623. // comprised of xranges, tildes, stars, and gtlt's at this point.
  8624. // already replaced the hyphen ranges
  8625. // turn into a set of JUST comparators.
  8626. function parseComparator (comp, options) {
  8627. debug('comp', comp, options)
  8628. comp = replaceCarets(comp, options)
  8629. debug('caret', comp)
  8630. comp = replaceTildes(comp, options)
  8631. debug('tildes', comp)
  8632. comp = replaceXRanges(comp, options)
  8633. debug('xrange', comp)
  8634. comp = replaceStars(comp, options)
  8635. debug('stars', comp)
  8636. return comp
  8637. }
  8638. function isX (id) {
  8639. return !id || id.toLowerCase() === 'x' || id === '*'
  8640. }
  8641. // ~, ~> --> * (any, kinda silly)
  8642. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  8643. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  8644. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  8645. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  8646. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  8647. function replaceTildes (comp, options) {
  8648. return comp.trim().split(/\s+/).map(function (comp) {
  8649. return replaceTilde(comp, options)
  8650. }).join(' ')
  8651. }
  8652. function replaceTilde (comp, options) {
  8653. var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  8654. return comp.replace(r, function (_, M, m, p, pr) {
  8655. debug('tilde', comp, _, M, m, p, pr)
  8656. var ret
  8657. if (isX(M)) {
  8658. ret = ''
  8659. } else if (isX(m)) {
  8660. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  8661. } else if (isX(p)) {
  8662. // ~1.2 == >=1.2.0 <1.3.0
  8663. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  8664. } else if (pr) {
  8665. debug('replaceTilde pr', pr)
  8666. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8667. ' <' + M + '.' + (+m + 1) + '.0'
  8668. } else {
  8669. // ~1.2.3 == >=1.2.3 <1.3.0
  8670. ret = '>=' + M + '.' + m + '.' + p +
  8671. ' <' + M + '.' + (+m + 1) + '.0'
  8672. }
  8673. debug('tilde return', ret)
  8674. return ret
  8675. })
  8676. }
  8677. // ^ --> * (any, kinda silly)
  8678. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  8679. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  8680. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  8681. // ^1.2.3 --> >=1.2.3 <2.0.0
  8682. // ^1.2.0 --> >=1.2.0 <2.0.0
  8683. function replaceCarets (comp, options) {
  8684. return comp.trim().split(/\s+/).map(function (comp) {
  8685. return replaceCaret(comp, options)
  8686. }).join(' ')
  8687. }
  8688. function replaceCaret (comp, options) {
  8689. debug('caret', comp, options)
  8690. var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  8691. return comp.replace(r, function (_, M, m, p, pr) {
  8692. debug('caret', comp, _, M, m, p, pr)
  8693. var ret
  8694. if (isX(M)) {
  8695. ret = ''
  8696. } else if (isX(m)) {
  8697. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  8698. } else if (isX(p)) {
  8699. if (M === '0') {
  8700. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  8701. } else {
  8702. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  8703. }
  8704. } else if (pr) {
  8705. debug('replaceCaret pr', pr)
  8706. if (M === '0') {
  8707. if (m === '0') {
  8708. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8709. ' <' + M + '.' + m + '.' + (+p + 1)
  8710. } else {
  8711. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8712. ' <' + M + '.' + (+m + 1) + '.0'
  8713. }
  8714. } else {
  8715. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  8716. ' <' + (+M + 1) + '.0.0'
  8717. }
  8718. } else {
  8719. debug('no pr')
  8720. if (M === '0') {
  8721. if (m === '0') {
  8722. ret = '>=' + M + '.' + m + '.' + p +
  8723. ' <' + M + '.' + m + '.' + (+p + 1)
  8724. } else {
  8725. ret = '>=' + M + '.' + m + '.' + p +
  8726. ' <' + M + '.' + (+m + 1) + '.0'
  8727. }
  8728. } else {
  8729. ret = '>=' + M + '.' + m + '.' + p +
  8730. ' <' + (+M + 1) + '.0.0'
  8731. }
  8732. }
  8733. debug('caret return', ret)
  8734. return ret
  8735. })
  8736. }
  8737. function replaceXRanges (comp, options) {
  8738. debug('replaceXRanges', comp, options)
  8739. return comp.split(/\s+/).map(function (comp) {
  8740. return replaceXRange(comp, options)
  8741. }).join(' ')
  8742. }
  8743. function replaceXRange (comp, options) {
  8744. comp = comp.trim()
  8745. var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  8746. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  8747. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  8748. var xM = isX(M)
  8749. var xm = xM || isX(m)
  8750. var xp = xm || isX(p)
  8751. var anyX = xp
  8752. if (gtlt === '=' && anyX) {
  8753. gtlt = ''
  8754. }
  8755. // if we're including prereleases in the match, then we need
  8756. // to fix this to -0, the lowest possible prerelease value
  8757. pr = options.includePrerelease ? '-0' : ''
  8758. if (xM) {
  8759. if (gtlt === '>' || gtlt === '<') {
  8760. // nothing is allowed
  8761. ret = '<0.0.0-0'
  8762. } else {
  8763. // nothing is forbidden
  8764. ret = '*'
  8765. }
  8766. } else if (gtlt && anyX) {
  8767. // we know patch is an x, because we have any x at all.
  8768. // replace X with 0
  8769. if (xm) {
  8770. m = 0
  8771. }
  8772. p = 0
  8773. if (gtlt === '>') {
  8774. // >1 => >=2.0.0
  8775. // >1.2 => >=1.3.0
  8776. // >1.2.3 => >= 1.2.4
  8777. gtlt = '>='
  8778. if (xm) {
  8779. M = +M + 1
  8780. m = 0
  8781. p = 0
  8782. } else {
  8783. m = +m + 1
  8784. p = 0
  8785. }
  8786. } else if (gtlt === '<=') {
  8787. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  8788. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  8789. gtlt = '<'
  8790. if (xm) {
  8791. M = +M + 1
  8792. } else {
  8793. m = +m + 1
  8794. }
  8795. }
  8796. ret = gtlt + M + '.' + m + '.' + p + pr
  8797. } else if (xm) {
  8798. ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
  8799. } else if (xp) {
  8800. ret = '>=' + M + '.' + m + '.0' + pr +
  8801. ' <' + M + '.' + (+m + 1) + '.0' + pr
  8802. }
  8803. debug('xRange return', ret)
  8804. return ret
  8805. })
  8806. }
  8807. // Because * is AND-ed with everything else in the comparator,
  8808. // and '' means "any version", just remove the *s entirely.
  8809. function replaceStars (comp, options) {
  8810. debug('replaceStars', comp, options)
  8811. // Looseness is ignored here. star is always as loose as it gets!
  8812. return comp.trim().replace(re[t.STAR], '')
  8813. }
  8814. // This function is passed to string.replace(re[t.HYPHENRANGE])
  8815. // M, m, patch, prerelease, build
  8816. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  8817. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  8818. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  8819. function hyphenReplace ($0,
  8820. from, fM, fm, fp, fpr, fb,
  8821. to, tM, tm, tp, tpr, tb) {
  8822. if (isX(fM)) {
  8823. from = ''
  8824. } else if (isX(fm)) {
  8825. from = '>=' + fM + '.0.0'
  8826. } else if (isX(fp)) {
  8827. from = '>=' + fM + '.' + fm + '.0'
  8828. } else {
  8829. from = '>=' + from
  8830. }
  8831. if (isX(tM)) {
  8832. to = ''
  8833. } else if (isX(tm)) {
  8834. to = '<' + (+tM + 1) + '.0.0'
  8835. } else if (isX(tp)) {
  8836. to = '<' + tM + '.' + (+tm + 1) + '.0'
  8837. } else if (tpr) {
  8838. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  8839. } else {
  8840. to = '<=' + to
  8841. }
  8842. return (from + ' ' + to).trim()
  8843. }
  8844. // if ANY of the sets match ALL of its comparators, then pass
  8845. Range.prototype.test = function (version) {
  8846. if (!version) {
  8847. return false
  8848. }
  8849. if (typeof version === 'string') {
  8850. try {
  8851. version = new SemVer(version, this.options)
  8852. } catch (er) {
  8853. return false
  8854. }
  8855. }
  8856. for (var i = 0; i < this.set.length; i++) {
  8857. if (testSet(this.set[i], version, this.options)) {
  8858. return true
  8859. }
  8860. }
  8861. return false
  8862. }
  8863. function testSet (set, version, options) {
  8864. for (var i = 0; i < set.length; i++) {
  8865. if (!set[i].test(version)) {
  8866. return false
  8867. }
  8868. }
  8869. if (version.prerelease.length && !options.includePrerelease) {
  8870. // Find the set of versions that are allowed to have prereleases
  8871. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  8872. // That should allow `1.2.3-pr.2` to pass.
  8873. // However, `1.2.4-alpha.notready` should NOT be allowed,
  8874. // even though it's within the range set by the comparators.
  8875. for (i = 0; i < set.length; i++) {
  8876. debug(set[i].semver)
  8877. if (set[i].semver === ANY) {
  8878. continue
  8879. }
  8880. if (set[i].semver.prerelease.length > 0) {
  8881. var allowed = set[i].semver
  8882. if (allowed.major === version.major &&
  8883. allowed.minor === version.minor &&
  8884. allowed.patch === version.patch) {
  8885. return true
  8886. }
  8887. }
  8888. }
  8889. // Version has a -pre, but it's not one of the ones we like.
  8890. return false
  8891. }
  8892. return true
  8893. }
  8894. exports.satisfies = satisfies
  8895. function satisfies (version, range, options) {
  8896. try {
  8897. range = new Range(range, options)
  8898. } catch (er) {
  8899. return false
  8900. }
  8901. return range.test(version)
  8902. }
  8903. exports.maxSatisfying = maxSatisfying
  8904. function maxSatisfying (versions, range, options) {
  8905. var max = null
  8906. var maxSV = null
  8907. try {
  8908. var rangeObj = new Range(range, options)
  8909. } catch (er) {
  8910. return null
  8911. }
  8912. versions.forEach(function (v) {
  8913. if (rangeObj.test(v)) {
  8914. // satisfies(v, range, options)
  8915. if (!max || maxSV.compare(v) === -1) {
  8916. // compare(max, v, true)
  8917. max = v
  8918. maxSV = new SemVer(max, options)
  8919. }
  8920. }
  8921. })
  8922. return max
  8923. }
  8924. exports.minSatisfying = minSatisfying
  8925. function minSatisfying (versions, range, options) {
  8926. var min = null
  8927. var minSV = null
  8928. try {
  8929. var rangeObj = new Range(range, options)
  8930. } catch (er) {
  8931. return null
  8932. }
  8933. versions.forEach(function (v) {
  8934. if (rangeObj.test(v)) {
  8935. // satisfies(v, range, options)
  8936. if (!min || minSV.compare(v) === 1) {
  8937. // compare(min, v, true)
  8938. min = v
  8939. minSV = new SemVer(min, options)
  8940. }
  8941. }
  8942. })
  8943. return min
  8944. }
  8945. exports.minVersion = minVersion
  8946. function minVersion (range, loose) {
  8947. range = new Range(range, loose)
  8948. var minver = new SemVer('0.0.0')
  8949. if (range.test(minver)) {
  8950. return minver
  8951. }
  8952. minver = new SemVer('0.0.0-0')
  8953. if (range.test(minver)) {
  8954. return minver
  8955. }
  8956. minver = null
  8957. for (var i = 0; i < range.set.length; ++i) {
  8958. var comparators = range.set[i]
  8959. comparators.forEach(function (comparator) {
  8960. // Clone to avoid manipulating the comparator's semver object.
  8961. var compver = new SemVer(comparator.semver.version)
  8962. switch (comparator.operator) {
  8963. case '>':
  8964. if (compver.prerelease.length === 0) {
  8965. compver.patch++
  8966. } else {
  8967. compver.prerelease.push(0)
  8968. }
  8969. compver.raw = compver.format()
  8970. /* fallthrough */
  8971. case '':
  8972. case '>=':
  8973. if (!minver || gt(minver, compver)) {
  8974. minver = compver
  8975. }
  8976. break
  8977. case '<':
  8978. case '<=':
  8979. /* Ignore maximum versions */
  8980. break
  8981. /* istanbul ignore next */
  8982. default:
  8983. throw new Error('Unexpected operation: ' + comparator.operator)
  8984. }
  8985. })
  8986. }
  8987. if (minver && range.test(minver)) {
  8988. return minver
  8989. }
  8990. return null
  8991. }
  8992. exports.validRange = validRange
  8993. function validRange (range, options) {
  8994. try {
  8995. // Return '*' instead of '' so that truthiness works.
  8996. // This will throw if it's invalid anyway
  8997. return new Range(range, options).range || '*'
  8998. } catch (er) {
  8999. return null
  9000. }
  9001. }
  9002. // Determine if version is less than all the versions possible in the range
  9003. exports.ltr = ltr
  9004. function ltr (version, range, options) {
  9005. return outside(version, range, '<', options)
  9006. }
  9007. // Determine if version is greater than all the versions possible in the range.
  9008. exports.gtr = gtr
  9009. function gtr (version, range, options) {
  9010. return outside(version, range, '>', options)
  9011. }
  9012. exports.outside = outside
  9013. function outside (version, range, hilo, options) {
  9014. version = new SemVer(version, options)
  9015. range = new Range(range, options)
  9016. var gtfn, ltefn, ltfn, comp, ecomp
  9017. switch (hilo) {
  9018. case '>':
  9019. gtfn = gt
  9020. ltefn = lte
  9021. ltfn = lt
  9022. comp = '>'
  9023. ecomp = '>='
  9024. break
  9025. case '<':
  9026. gtfn = lt
  9027. ltefn = gte
  9028. ltfn = gt
  9029. comp = '<'
  9030. ecomp = '<='
  9031. break
  9032. default:
  9033. throw new TypeError('Must provide a hilo val of "<" or ">"')
  9034. }
  9035. // If it satisifes the range it is not outside
  9036. if (satisfies(version, range, options)) {
  9037. return false
  9038. }
  9039. // From now on, variable terms are as if we're in "gtr" mode.
  9040. // but note that everything is flipped for the "ltr" function.
  9041. for (var i = 0; i < range.set.length; ++i) {
  9042. var comparators = range.set[i]
  9043. var high = null
  9044. var low = null
  9045. comparators.forEach(function (comparator) {
  9046. if (comparator.semver === ANY) {
  9047. comparator = new Comparator('>=0.0.0')
  9048. }
  9049. high = high || comparator
  9050. low = low || comparator
  9051. if (gtfn(comparator.semver, high.semver, options)) {
  9052. high = comparator
  9053. } else if (ltfn(comparator.semver, low.semver, options)) {
  9054. low = comparator
  9055. }
  9056. })
  9057. // If the edge version comparator has a operator then our version
  9058. // isn't outside it
  9059. if (high.operator === comp || high.operator === ecomp) {
  9060. return false
  9061. }
  9062. // If the lowest version comparator has an operator and our version
  9063. // is less than it then it isn't higher than the range
  9064. if ((!low.operator || low.operator === comp) &&
  9065. ltefn(version, low.semver)) {
  9066. return false
  9067. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  9068. return false
  9069. }
  9070. }
  9071. return true
  9072. }
  9073. exports.prerelease = prerelease
  9074. function prerelease (version, options) {
  9075. var parsed = parse(version, options)
  9076. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  9077. }
  9078. exports.intersects = intersects
  9079. function intersects (r1, r2, options) {
  9080. r1 = new Range(r1, options)
  9081. r2 = new Range(r2, options)
  9082. return r1.intersects(r2)
  9083. }
  9084. exports.coerce = coerce
  9085. function coerce (version, options) {
  9086. if (version instanceof SemVer) {
  9087. return version
  9088. }
  9089. if (typeof version === 'number') {
  9090. version = String(version)
  9091. }
  9092. if (typeof version !== 'string') {
  9093. return null
  9094. }
  9095. options = options || {}
  9096. var match = null
  9097. if (!options.rtl) {
  9098. match = version.match(re[t.COERCE])
  9099. } else {
  9100. // Find the right-most coercible string that does not share
  9101. // a terminus with a more left-ward coercible string.
  9102. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  9103. //
  9104. // Walk through the string checking with a /g regexp
  9105. // Manually set the index so as to pick up overlapping matches.
  9106. // Stop when we get a match that ends at the string end, since no
  9107. // coercible string can be more right-ward without the same terminus.
  9108. var next
  9109. while ((next = re[t.COERCERTL].exec(version)) &&
  9110. (!match || match.index + match[0].length !== version.length)
  9111. ) {
  9112. if (!match ||
  9113. next.index + next[0].length !== match.index + match[0].length) {
  9114. match = next
  9115. }
  9116. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  9117. }
  9118. // leave it in a clean state
  9119. re[t.COERCERTL].lastIndex = -1
  9120. }
  9121. if (match === null) {
  9122. return null
  9123. }
  9124. return parse(match[2] +
  9125. '.' + (match[3] || '0') +
  9126. '.' + (match[4] || '0'), options)
  9127. }
  9128. /***/ }),
  9129. /***/ 2856:
  9130. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9131. "use strict";
  9132. const WritableStream = (__nccwpck_require__(4492).Writable)
  9133. const inherits = (__nccwpck_require__(7261).inherits)
  9134. const StreamSearch = __nccwpck_require__(8534)
  9135. const PartStream = __nccwpck_require__(8710)
  9136. const HeaderParser = __nccwpck_require__(333)
  9137. const DASH = 45
  9138. const B_ONEDASH = Buffer.from('-')
  9139. const B_CRLF = Buffer.from('\r\n')
  9140. const EMPTY_FN = function () {}
  9141. function Dicer (cfg) {
  9142. if (!(this instanceof Dicer)) { return new Dicer(cfg) }
  9143. WritableStream.call(this, cfg)
  9144. if (!cfg || (!cfg.headerFirst && typeof cfg.boundary !== 'string')) { throw new TypeError('Boundary required') }
  9145. if (typeof cfg.boundary === 'string') { this.setBoundary(cfg.boundary) } else { this._bparser = undefined }
  9146. this._headerFirst = cfg.headerFirst
  9147. this._dashes = 0
  9148. this._parts = 0
  9149. this._finished = false
  9150. this._realFinish = false
  9151. this._isPreamble = true
  9152. this._justMatched = false
  9153. this._firstWrite = true
  9154. this._inHeader = true
  9155. this._part = undefined
  9156. this._cb = undefined
  9157. this._ignoreData = false
  9158. this._partOpts = { highWaterMark: cfg.partHwm }
  9159. this._pause = false
  9160. const self = this
  9161. this._hparser = new HeaderParser(cfg)
  9162. this._hparser.on('header', function (header) {
  9163. self._inHeader = false
  9164. self._part.emit('header', header)
  9165. })
  9166. }
  9167. inherits(Dicer, WritableStream)
  9168. Dicer.prototype.emit = function (ev) {
  9169. if (ev === 'finish' && !this._realFinish) {
  9170. if (!this._finished) {
  9171. const self = this
  9172. process.nextTick(function () {
  9173. self.emit('error', new Error('Unexpected end of multipart data'))
  9174. if (self._part && !self._ignoreData) {
  9175. const type = (self._isPreamble ? 'Preamble' : 'Part')
  9176. self._part.emit('error', new Error(type + ' terminated early due to unexpected end of multipart data'))
  9177. self._part.push(null)
  9178. process.nextTick(function () {
  9179. self._realFinish = true
  9180. self.emit('finish')
  9181. self._realFinish = false
  9182. })
  9183. return
  9184. }
  9185. self._realFinish = true
  9186. self.emit('finish')
  9187. self._realFinish = false
  9188. })
  9189. }
  9190. } else { WritableStream.prototype.emit.apply(this, arguments) }
  9191. }
  9192. Dicer.prototype._write = function (data, encoding, cb) {
  9193. // ignore unexpected data (e.g. extra trailer data after finished)
  9194. if (!this._hparser && !this._bparser) { return cb() }
  9195. if (this._headerFirst && this._isPreamble) {
  9196. if (!this._part) {
  9197. this._part = new PartStream(this._partOpts)
  9198. if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() }
  9199. }
  9200. const r = this._hparser.push(data)
  9201. if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
  9202. }
  9203. // allows for "easier" testing
  9204. if (this._firstWrite) {
  9205. this._bparser.push(B_CRLF)
  9206. this._firstWrite = false
  9207. }
  9208. this._bparser.push(data)
  9209. if (this._pause) { this._cb = cb } else { cb() }
  9210. }
  9211. Dicer.prototype.reset = function () {
  9212. this._part = undefined
  9213. this._bparser = undefined
  9214. this._hparser = undefined
  9215. }
  9216. Dicer.prototype.setBoundary = function (boundary) {
  9217. const self = this
  9218. this._bparser = new StreamSearch('\r\n--' + boundary)
  9219. this._bparser.on('info', function (isMatch, data, start, end) {
  9220. self._oninfo(isMatch, data, start, end)
  9221. })
  9222. }
  9223. Dicer.prototype._ignore = function () {
  9224. if (this._part && !this._ignoreData) {
  9225. this._ignoreData = true
  9226. this._part.on('error', EMPTY_FN)
  9227. // we must perform some kind of read on the stream even though we are
  9228. // ignoring the data, otherwise node's Readable stream will not emit 'end'
  9229. // after pushing null to the stream
  9230. this._part.resume()
  9231. }
  9232. }
  9233. Dicer.prototype._oninfo = function (isMatch, data, start, end) {
  9234. let buf; const self = this; let i = 0; let r; let shouldWriteMore = true
  9235. if (!this._part && this._justMatched && data) {
  9236. while (this._dashes < 2 && (start + i) < end) {
  9237. if (data[start + i] === DASH) {
  9238. ++i
  9239. ++this._dashes
  9240. } else {
  9241. if (this._dashes) { buf = B_ONEDASH }
  9242. this._dashes = 0
  9243. break
  9244. }
  9245. }
  9246. if (this._dashes === 2) {
  9247. if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) }
  9248. this.reset()
  9249. this._finished = true
  9250. // no more parts will be added
  9251. if (self._parts === 0) {
  9252. self._realFinish = true
  9253. self.emit('finish')
  9254. self._realFinish = false
  9255. }
  9256. }
  9257. if (this._dashes) { return }
  9258. }
  9259. if (this._justMatched) { this._justMatched = false }
  9260. if (!this._part) {
  9261. this._part = new PartStream(this._partOpts)
  9262. this._part._read = function (n) {
  9263. self._unpause()
  9264. }
  9265. if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() }
  9266. if (!this._isPreamble) { this._inHeader = true }
  9267. }
  9268. if (data && start < end && !this._ignoreData) {
  9269. if (this._isPreamble || !this._inHeader) {
  9270. if (buf) { shouldWriteMore = this._part.push(buf) }
  9271. shouldWriteMore = this._part.push(data.slice(start, end))
  9272. if (!shouldWriteMore) { this._pause = true }
  9273. } else if (!this._isPreamble && this._inHeader) {
  9274. if (buf) { this._hparser.push(buf) }
  9275. r = this._hparser.push(data.slice(start, end))
  9276. if (!this._inHeader && r !== undefined && r < end) { this._oninfo(false, data, start + r, end) }
  9277. }
  9278. }
  9279. if (isMatch) {
  9280. this._hparser.reset()
  9281. if (this._isPreamble) { this._isPreamble = false } else {
  9282. if (start !== end) {
  9283. ++this._parts
  9284. this._part.on('end', function () {
  9285. if (--self._parts === 0) {
  9286. if (self._finished) {
  9287. self._realFinish = true
  9288. self.emit('finish')
  9289. self._realFinish = false
  9290. } else {
  9291. self._unpause()
  9292. }
  9293. }
  9294. })
  9295. }
  9296. }
  9297. this._part.push(null)
  9298. this._part = undefined
  9299. this._ignoreData = false
  9300. this._justMatched = true
  9301. this._dashes = 0
  9302. }
  9303. }
  9304. Dicer.prototype._unpause = function () {
  9305. if (!this._pause) { return }
  9306. this._pause = false
  9307. if (this._cb) {
  9308. const cb = this._cb
  9309. this._cb = undefined
  9310. cb()
  9311. }
  9312. }
  9313. module.exports = Dicer
  9314. /***/ }),
  9315. /***/ 333:
  9316. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9317. "use strict";
  9318. const EventEmitter = (__nccwpck_require__(5673).EventEmitter)
  9319. const inherits = (__nccwpck_require__(7261).inherits)
  9320. const getLimit = __nccwpck_require__(9692)
  9321. const StreamSearch = __nccwpck_require__(8534)
  9322. const B_DCRLF = Buffer.from('\r\n\r\n')
  9323. const RE_CRLF = /\r\n/g
  9324. const RE_HDR = /^([^:]+):[ \t]?([\x00-\xFF]+)?$/ // eslint-disable-line no-control-regex
  9325. function HeaderParser (cfg) {
  9326. EventEmitter.call(this)
  9327. cfg = cfg || {}
  9328. const self = this
  9329. this.nread = 0
  9330. this.maxed = false
  9331. this.npairs = 0
  9332. this.maxHeaderPairs = getLimit(cfg, 'maxHeaderPairs', 2000)
  9333. this.maxHeaderSize = getLimit(cfg, 'maxHeaderSize', 80 * 1024)
  9334. this.buffer = ''
  9335. this.header = {}
  9336. this.finished = false
  9337. this.ss = new StreamSearch(B_DCRLF)
  9338. this.ss.on('info', function (isMatch, data, start, end) {
  9339. if (data && !self.maxed) {
  9340. if (self.nread + end - start >= self.maxHeaderSize) {
  9341. end = self.maxHeaderSize - self.nread + start
  9342. self.nread = self.maxHeaderSize
  9343. self.maxed = true
  9344. } else { self.nread += (end - start) }
  9345. self.buffer += data.toString('binary', start, end)
  9346. }
  9347. if (isMatch) { self._finish() }
  9348. })
  9349. }
  9350. inherits(HeaderParser, EventEmitter)
  9351. HeaderParser.prototype.push = function (data) {
  9352. const r = this.ss.push(data)
  9353. if (this.finished) { return r }
  9354. }
  9355. HeaderParser.prototype.reset = function () {
  9356. this.finished = false
  9357. this.buffer = ''
  9358. this.header = {}
  9359. this.ss.reset()
  9360. }
  9361. HeaderParser.prototype._finish = function () {
  9362. if (this.buffer) { this._parseHeader() }
  9363. this.ss.matches = this.ss.maxMatches
  9364. const header = this.header
  9365. this.header = {}
  9366. this.buffer = ''
  9367. this.finished = true
  9368. this.nread = this.npairs = 0
  9369. this.maxed = false
  9370. this.emit('header', header)
  9371. }
  9372. HeaderParser.prototype._parseHeader = function () {
  9373. if (this.npairs === this.maxHeaderPairs) { return }
  9374. const lines = this.buffer.split(RE_CRLF)
  9375. const len = lines.length
  9376. let m, h
  9377. for (var i = 0; i < len; ++i) { // eslint-disable-line no-var
  9378. if (lines[i].length === 0) { continue }
  9379. if (lines[i][0] === '\t' || lines[i][0] === ' ') {
  9380. // folded header content
  9381. // RFC2822 says to just remove the CRLF and not the whitespace following
  9382. // it, so we follow the RFC and include the leading whitespace ...
  9383. if (h) {
  9384. this.header[h][this.header[h].length - 1] += lines[i]
  9385. continue
  9386. }
  9387. }
  9388. const posColon = lines[i].indexOf(':')
  9389. if (
  9390. posColon === -1 ||
  9391. posColon === 0
  9392. ) {
  9393. return
  9394. }
  9395. m = RE_HDR.exec(lines[i])
  9396. h = m[1].toLowerCase()
  9397. this.header[h] = this.header[h] || []
  9398. this.header[h].push((m[2] || ''))
  9399. if (++this.npairs === this.maxHeaderPairs) { break }
  9400. }
  9401. }
  9402. module.exports = HeaderParser
  9403. /***/ }),
  9404. /***/ 8710:
  9405. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9406. "use strict";
  9407. const inherits = (__nccwpck_require__(7261).inherits)
  9408. const ReadableStream = (__nccwpck_require__(4492).Readable)
  9409. function PartStream (opts) {
  9410. ReadableStream.call(this, opts)
  9411. }
  9412. inherits(PartStream, ReadableStream)
  9413. PartStream.prototype._read = function (n) {}
  9414. module.exports = PartStream
  9415. /***/ }),
  9416. /***/ 8534:
  9417. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9418. "use strict";
  9419. /**
  9420. * Copyright Brian White. All rights reserved.
  9421. *
  9422. * @see https://github.com/mscdex/streamsearch
  9423. *
  9424. * Permission is hereby granted, free of charge, to any person obtaining a copy
  9425. * of this software and associated documentation files (the "Software"), to
  9426. * deal in the Software without restriction, including without limitation the
  9427. * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  9428. * sell copies of the Software, and to permit persons to whom the Software is
  9429. * furnished to do so, subject to the following conditions:
  9430. *
  9431. * The above copyright notice and this permission notice shall be included in
  9432. * all copies or substantial portions of the Software.
  9433. *
  9434. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  9435. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  9436. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  9437. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  9438. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  9439. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  9440. * IN THE SOFTWARE.
  9441. *
  9442. * Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation
  9443. * by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool
  9444. */
  9445. const EventEmitter = (__nccwpck_require__(5673).EventEmitter)
  9446. const inherits = (__nccwpck_require__(7261).inherits)
  9447. function SBMH (needle) {
  9448. if (typeof needle === 'string') {
  9449. needle = Buffer.from(needle)
  9450. }
  9451. if (!Buffer.isBuffer(needle)) {
  9452. throw new TypeError('The needle has to be a String or a Buffer.')
  9453. }
  9454. const needleLength = needle.length
  9455. if (needleLength === 0) {
  9456. throw new Error('The needle cannot be an empty String/Buffer.')
  9457. }
  9458. if (needleLength > 256) {
  9459. throw new Error('The needle cannot have a length bigger than 256.')
  9460. }
  9461. this.maxMatches = Infinity
  9462. this.matches = 0
  9463. this._occ = new Array(256)
  9464. .fill(needleLength) // Initialize occurrence table.
  9465. this._lookbehind_size = 0
  9466. this._needle = needle
  9467. this._bufpos = 0
  9468. this._lookbehind = Buffer.alloc(needleLength)
  9469. // Populate occurrence table with analysis of the needle,
  9470. // ignoring last letter.
  9471. for (var i = 0; i < needleLength - 1; ++i) { // eslint-disable-line no-var
  9472. this._occ[needle[i]] = needleLength - 1 - i
  9473. }
  9474. }
  9475. inherits(SBMH, EventEmitter)
  9476. SBMH.prototype.reset = function () {
  9477. this._lookbehind_size = 0
  9478. this.matches = 0
  9479. this._bufpos = 0
  9480. }
  9481. SBMH.prototype.push = function (chunk, pos) {
  9482. if (!Buffer.isBuffer(chunk)) {
  9483. chunk = Buffer.from(chunk, 'binary')
  9484. }
  9485. const chlen = chunk.length
  9486. this._bufpos = pos || 0
  9487. let r
  9488. while (r !== chlen && this.matches < this.maxMatches) { r = this._sbmh_feed(chunk) }
  9489. return r
  9490. }
  9491. SBMH.prototype._sbmh_feed = function (data) {
  9492. const len = data.length
  9493. const needle = this._needle
  9494. const needleLength = needle.length
  9495. const lastNeedleChar = needle[needleLength - 1]
  9496. // Positive: points to a position in `data`
  9497. // pos == 3 points to data[3]
  9498. // Negative: points to a position in the lookbehind buffer
  9499. // pos == -2 points to lookbehind[lookbehind_size - 2]
  9500. let pos = -this._lookbehind_size
  9501. let ch
  9502. if (pos < 0) {
  9503. // Lookbehind buffer is not empty. Perform Boyer-Moore-Horspool
  9504. // search with character lookup code that considers both the
  9505. // lookbehind buffer and the current round's haystack data.
  9506. //
  9507. // Loop until
  9508. // there is a match.
  9509. // or until
  9510. // we've moved past the position that requires the
  9511. // lookbehind buffer. In this case we switch to the
  9512. // optimized loop.
  9513. // or until
  9514. // the character to look at lies outside the haystack.
  9515. while (pos < 0 && pos <= len - needleLength) {
  9516. ch = this._sbmh_lookup_char(data, pos + needleLength - 1)
  9517. if (
  9518. ch === lastNeedleChar &&
  9519. this._sbmh_memcmp(data, pos, needleLength - 1)
  9520. ) {
  9521. this._lookbehind_size = 0
  9522. ++this.matches
  9523. this.emit('info', true)
  9524. return (this._bufpos = pos + needleLength)
  9525. }
  9526. pos += this._occ[ch]
  9527. }
  9528. // No match.
  9529. if (pos < 0) {
  9530. // There's too few data for Boyer-Moore-Horspool to run,
  9531. // so let's use a different algorithm to skip as much as
  9532. // we can.
  9533. // Forward pos until
  9534. // the trailing part of lookbehind + data
  9535. // looks like the beginning of the needle
  9536. // or until
  9537. // pos == 0
  9538. while (pos < 0 && !this._sbmh_memcmp(data, pos, len - pos)) { ++pos }
  9539. }
  9540. if (pos >= 0) {
  9541. // Discard lookbehind buffer.
  9542. this.emit('info', false, this._lookbehind, 0, this._lookbehind_size)
  9543. this._lookbehind_size = 0
  9544. } else {
  9545. // Cut off part of the lookbehind buffer that has
  9546. // been processed and append the entire haystack
  9547. // into it.
  9548. const bytesToCutOff = this._lookbehind_size + pos
  9549. if (bytesToCutOff > 0) {
  9550. // The cut off data is guaranteed not to contain the needle.
  9551. this.emit('info', false, this._lookbehind, 0, bytesToCutOff)
  9552. }
  9553. this._lookbehind.copy(this._lookbehind, 0, bytesToCutOff,
  9554. this._lookbehind_size - bytesToCutOff)
  9555. this._lookbehind_size -= bytesToCutOff
  9556. data.copy(this._lookbehind, this._lookbehind_size)
  9557. this._lookbehind_size += len
  9558. this._bufpos = len
  9559. return len
  9560. }
  9561. }
  9562. pos += (pos >= 0) * this._bufpos
  9563. // Lookbehind buffer is now empty. We only need to check if the
  9564. // needle is in the haystack.
  9565. if (data.indexOf(needle, pos) !== -1) {
  9566. pos = data.indexOf(needle, pos)
  9567. ++this.matches
  9568. if (pos > 0) { this.emit('info', true, data, this._bufpos, pos) } else { this.emit('info', true) }
  9569. return (this._bufpos = pos + needleLength)
  9570. } else {
  9571. pos = len - needleLength
  9572. }
  9573. // There was no match. If there's trailing haystack data that we cannot
  9574. // match yet using the Boyer-Moore-Horspool algorithm (because the trailing
  9575. // data is less than the needle size) then match using a modified
  9576. // algorithm that starts matching from the beginning instead of the end.
  9577. // Whatever trailing data is left after running this algorithm is added to
  9578. // the lookbehind buffer.
  9579. while (
  9580. pos < len &&
  9581. (
  9582. data[pos] !== needle[0] ||
  9583. (
  9584. (Buffer.compare(
  9585. data.subarray(pos, pos + len - pos),
  9586. needle.subarray(0, len - pos)
  9587. ) !== 0)
  9588. )
  9589. )
  9590. ) {
  9591. ++pos
  9592. }
  9593. if (pos < len) {
  9594. data.copy(this._lookbehind, 0, pos, pos + (len - pos))
  9595. this._lookbehind_size = len - pos
  9596. }
  9597. // Everything until pos is guaranteed not to contain needle data.
  9598. if (pos > 0) { this.emit('info', false, data, this._bufpos, pos < len ? pos : len) }
  9599. this._bufpos = len
  9600. return len
  9601. }
  9602. SBMH.prototype._sbmh_lookup_char = function (data, pos) {
  9603. return (pos < 0)
  9604. ? this._lookbehind[this._lookbehind_size + pos]
  9605. : data[pos]
  9606. }
  9607. SBMH.prototype._sbmh_memcmp = function (data, pos, len) {
  9608. for (var i = 0; i < len; ++i) { // eslint-disable-line no-var
  9609. if (this._sbmh_lookup_char(data, pos + i) !== this._needle[i]) { return false }
  9610. }
  9611. return true
  9612. }
  9613. module.exports = SBMH
  9614. /***/ }),
  9615. /***/ 3438:
  9616. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9617. "use strict";
  9618. const WritableStream = (__nccwpck_require__(4492).Writable)
  9619. const { inherits } = __nccwpck_require__(7261)
  9620. const Dicer = __nccwpck_require__(2856)
  9621. const MultipartParser = __nccwpck_require__(415)
  9622. const UrlencodedParser = __nccwpck_require__(6780)
  9623. const parseParams = __nccwpck_require__(4426)
  9624. function Busboy (opts) {
  9625. if (!(this instanceof Busboy)) { return new Busboy(opts) }
  9626. if (typeof opts !== 'object') {
  9627. throw new TypeError('Busboy expected an options-Object.')
  9628. }
  9629. if (typeof opts.headers !== 'object') {
  9630. throw new TypeError('Busboy expected an options-Object with headers-attribute.')
  9631. }
  9632. if (typeof opts.headers['content-type'] !== 'string') {
  9633. throw new TypeError('Missing Content-Type-header.')
  9634. }
  9635. const {
  9636. headers,
  9637. ...streamOptions
  9638. } = opts
  9639. this.opts = {
  9640. autoDestroy: false,
  9641. ...streamOptions
  9642. }
  9643. WritableStream.call(this, this.opts)
  9644. this._done = false
  9645. this._parser = this.getParserByHeaders(headers)
  9646. this._finished = false
  9647. }
  9648. inherits(Busboy, WritableStream)
  9649. Busboy.prototype.emit = function (ev) {
  9650. if (ev === 'finish') {
  9651. if (!this._done) {
  9652. this._parser?.end()
  9653. return
  9654. } else if (this._finished) {
  9655. return
  9656. }
  9657. this._finished = true
  9658. }
  9659. WritableStream.prototype.emit.apply(this, arguments)
  9660. }
  9661. Busboy.prototype.getParserByHeaders = function (headers) {
  9662. const parsed = parseParams(headers['content-type'])
  9663. const cfg = {
  9664. defCharset: this.opts.defCharset,
  9665. fileHwm: this.opts.fileHwm,
  9666. headers,
  9667. highWaterMark: this.opts.highWaterMark,
  9668. isPartAFile: this.opts.isPartAFile,
  9669. limits: this.opts.limits,
  9670. parsedConType: parsed,
  9671. preservePath: this.opts.preservePath
  9672. }
  9673. if (MultipartParser.detect.test(parsed[0])) {
  9674. return new MultipartParser(this, cfg)
  9675. }
  9676. if (UrlencodedParser.detect.test(parsed[0])) {
  9677. return new UrlencodedParser(this, cfg)
  9678. }
  9679. throw new Error('Unsupported Content-Type.')
  9680. }
  9681. Busboy.prototype._write = function (chunk, encoding, cb) {
  9682. this._parser.write(chunk, cb)
  9683. }
  9684. module.exports = Busboy
  9685. module.exports["default"] = Busboy
  9686. module.exports.Busboy = Busboy
  9687. module.exports.Dicer = Dicer
  9688. /***/ }),
  9689. /***/ 415:
  9690. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9691. "use strict";
  9692. // TODO:
  9693. // * support 1 nested multipart level
  9694. // (see second multipart example here:
  9695. // http://www.w3.org/TR/html401/interact/forms.html#didx-multipartform-data)
  9696. // * support limits.fieldNameSize
  9697. // -- this will require modifications to utils.parseParams
  9698. const { Readable } = __nccwpck_require__(4492)
  9699. const { inherits } = __nccwpck_require__(7261)
  9700. const Dicer = __nccwpck_require__(2856)
  9701. const parseParams = __nccwpck_require__(4426)
  9702. const decodeText = __nccwpck_require__(9136)
  9703. const basename = __nccwpck_require__(496)
  9704. const getLimit = __nccwpck_require__(9692)
  9705. const RE_BOUNDARY = /^boundary$/i
  9706. const RE_FIELD = /^form-data$/i
  9707. const RE_CHARSET = /^charset$/i
  9708. const RE_FILENAME = /^filename$/i
  9709. const RE_NAME = /^name$/i
  9710. Multipart.detect = /^multipart\/form-data/i
  9711. function Multipart (boy, cfg) {
  9712. let i
  9713. let len
  9714. const self = this
  9715. let boundary
  9716. const limits = cfg.limits
  9717. const isPartAFile = cfg.isPartAFile || ((fieldName, contentType, fileName) => (contentType === 'application/octet-stream' || fileName !== undefined))
  9718. const parsedConType = cfg.parsedConType || []
  9719. const defCharset = cfg.defCharset || 'utf8'
  9720. const preservePath = cfg.preservePath
  9721. const fileOpts = { highWaterMark: cfg.fileHwm }
  9722. for (i = 0, len = parsedConType.length; i < len; ++i) {
  9723. if (Array.isArray(parsedConType[i]) &&
  9724. RE_BOUNDARY.test(parsedConType[i][0])) {
  9725. boundary = parsedConType[i][1]
  9726. break
  9727. }
  9728. }
  9729. function checkFinished () {
  9730. if (nends === 0 && finished && !boy._done) {
  9731. finished = false
  9732. self.end()
  9733. }
  9734. }
  9735. if (typeof boundary !== 'string') { throw new Error('Multipart: Boundary not found') }
  9736. const fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024)
  9737. const fileSizeLimit = getLimit(limits, 'fileSize', Infinity)
  9738. const filesLimit = getLimit(limits, 'files', Infinity)
  9739. const fieldsLimit = getLimit(limits, 'fields', Infinity)
  9740. const partsLimit = getLimit(limits, 'parts', Infinity)
  9741. const headerPairsLimit = getLimit(limits, 'headerPairs', 2000)
  9742. const headerSizeLimit = getLimit(limits, 'headerSize', 80 * 1024)
  9743. let nfiles = 0
  9744. let nfields = 0
  9745. let nends = 0
  9746. let curFile
  9747. let curField
  9748. let finished = false
  9749. this._needDrain = false
  9750. this._pause = false
  9751. this._cb = undefined
  9752. this._nparts = 0
  9753. this._boy = boy
  9754. const parserCfg = {
  9755. boundary,
  9756. maxHeaderPairs: headerPairsLimit,
  9757. maxHeaderSize: headerSizeLimit,
  9758. partHwm: fileOpts.highWaterMark,
  9759. highWaterMark: cfg.highWaterMark
  9760. }
  9761. this.parser = new Dicer(parserCfg)
  9762. this.parser.on('drain', function () {
  9763. self._needDrain = false
  9764. if (self._cb && !self._pause) {
  9765. const cb = self._cb
  9766. self._cb = undefined
  9767. cb()
  9768. }
  9769. }).on('part', function onPart (part) {
  9770. if (++self._nparts > partsLimit) {
  9771. self.parser.removeListener('part', onPart)
  9772. self.parser.on('part', skipPart)
  9773. boy.hitPartsLimit = true
  9774. boy.emit('partsLimit')
  9775. return skipPart(part)
  9776. }
  9777. // hack because streams2 _always_ doesn't emit 'end' until nextTick, so let
  9778. // us emit 'end' early since we know the part has ended if we are already
  9779. // seeing the next part
  9780. if (curField) {
  9781. const field = curField
  9782. field.emit('end')
  9783. field.removeAllListeners('end')
  9784. }
  9785. part.on('header', function (header) {
  9786. let contype
  9787. let fieldname
  9788. let parsed
  9789. let charset
  9790. let encoding
  9791. let filename
  9792. let nsize = 0
  9793. if (header['content-type']) {
  9794. parsed = parseParams(header['content-type'][0])
  9795. if (parsed[0]) {
  9796. contype = parsed[0].toLowerCase()
  9797. for (i = 0, len = parsed.length; i < len; ++i) {
  9798. if (RE_CHARSET.test(parsed[i][0])) {
  9799. charset = parsed[i][1].toLowerCase()
  9800. break
  9801. }
  9802. }
  9803. }
  9804. }
  9805. if (contype === undefined) { contype = 'text/plain' }
  9806. if (charset === undefined) { charset = defCharset }
  9807. if (header['content-disposition']) {
  9808. parsed = parseParams(header['content-disposition'][0])
  9809. if (!RE_FIELD.test(parsed[0])) { return skipPart(part) }
  9810. for (i = 0, len = parsed.length; i < len; ++i) {
  9811. if (RE_NAME.test(parsed[i][0])) {
  9812. fieldname = parsed[i][1]
  9813. } else if (RE_FILENAME.test(parsed[i][0])) {
  9814. filename = parsed[i][1]
  9815. if (!preservePath) { filename = basename(filename) }
  9816. }
  9817. }
  9818. } else { return skipPart(part) }
  9819. if (header['content-transfer-encoding']) { encoding = header['content-transfer-encoding'][0].toLowerCase() } else { encoding = '7bit' }
  9820. let onData,
  9821. onEnd
  9822. if (isPartAFile(fieldname, contype, filename)) {
  9823. // file/binary field
  9824. if (nfiles === filesLimit) {
  9825. if (!boy.hitFilesLimit) {
  9826. boy.hitFilesLimit = true
  9827. boy.emit('filesLimit')
  9828. }
  9829. return skipPart(part)
  9830. }
  9831. ++nfiles
  9832. if (!boy._events.file) {
  9833. self.parser._ignore()
  9834. return
  9835. }
  9836. ++nends
  9837. const file = new FileStream(fileOpts)
  9838. curFile = file
  9839. file.on('end', function () {
  9840. --nends
  9841. self._pause = false
  9842. checkFinished()
  9843. if (self._cb && !self._needDrain) {
  9844. const cb = self._cb
  9845. self._cb = undefined
  9846. cb()
  9847. }
  9848. })
  9849. file._read = function (n) {
  9850. if (!self._pause) { return }
  9851. self._pause = false
  9852. if (self._cb && !self._needDrain) {
  9853. const cb = self._cb
  9854. self._cb = undefined
  9855. cb()
  9856. }
  9857. }
  9858. boy.emit('file', fieldname, file, filename, encoding, contype)
  9859. onData = function (data) {
  9860. if ((nsize += data.length) > fileSizeLimit) {
  9861. const extralen = fileSizeLimit - nsize + data.length
  9862. if (extralen > 0) { file.push(data.slice(0, extralen)) }
  9863. file.truncated = true
  9864. file.bytesRead = fileSizeLimit
  9865. part.removeAllListeners('data')
  9866. file.emit('limit')
  9867. return
  9868. } else if (!file.push(data)) { self._pause = true }
  9869. file.bytesRead = nsize
  9870. }
  9871. onEnd = function () {
  9872. curFile = undefined
  9873. file.push(null)
  9874. }
  9875. } else {
  9876. // non-file field
  9877. if (nfields === fieldsLimit) {
  9878. if (!boy.hitFieldsLimit) {
  9879. boy.hitFieldsLimit = true
  9880. boy.emit('fieldsLimit')
  9881. }
  9882. return skipPart(part)
  9883. }
  9884. ++nfields
  9885. ++nends
  9886. let buffer = ''
  9887. let truncated = false
  9888. curField = part
  9889. onData = function (data) {
  9890. if ((nsize += data.length) > fieldSizeLimit) {
  9891. const extralen = (fieldSizeLimit - (nsize - data.length))
  9892. buffer += data.toString('binary', 0, extralen)
  9893. truncated = true
  9894. part.removeAllListeners('data')
  9895. } else { buffer += data.toString('binary') }
  9896. }
  9897. onEnd = function () {
  9898. curField = undefined
  9899. if (buffer.length) { buffer = decodeText(buffer, 'binary', charset) }
  9900. boy.emit('field', fieldname, buffer, false, truncated, encoding, contype)
  9901. --nends
  9902. checkFinished()
  9903. }
  9904. }
  9905. /* As of node@2efe4ab761666 (v0.10.29+/v0.11.14+), busboy had become
  9906. broken. Streams2/streams3 is a huge black box of confusion, but
  9907. somehow overriding the sync state seems to fix things again (and still
  9908. seems to work for previous node versions).
  9909. */
  9910. part._readableState.sync = false
  9911. part.on('data', onData)
  9912. part.on('end', onEnd)
  9913. }).on('error', function (err) {
  9914. if (curFile) { curFile.emit('error', err) }
  9915. })
  9916. }).on('error', function (err) {
  9917. boy.emit('error', err)
  9918. }).on('finish', function () {
  9919. finished = true
  9920. checkFinished()
  9921. })
  9922. }
  9923. Multipart.prototype.write = function (chunk, cb) {
  9924. const r = this.parser.write(chunk)
  9925. if (r && !this._pause) {
  9926. cb()
  9927. } else {
  9928. this._needDrain = !r
  9929. this._cb = cb
  9930. }
  9931. }
  9932. Multipart.prototype.end = function () {
  9933. const self = this
  9934. if (self.parser.writable) {
  9935. self.parser.end()
  9936. } else if (!self._boy._done) {
  9937. process.nextTick(function () {
  9938. self._boy._done = true
  9939. self._boy.emit('finish')
  9940. })
  9941. }
  9942. }
  9943. function skipPart (part) {
  9944. part.resume()
  9945. }
  9946. function FileStream (opts) {
  9947. Readable.call(this, opts)
  9948. this.bytesRead = 0
  9949. this.truncated = false
  9950. }
  9951. inherits(FileStream, Readable)
  9952. FileStream.prototype._read = function (n) {}
  9953. module.exports = Multipart
  9954. /***/ }),
  9955. /***/ 6780:
  9956. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  9957. "use strict";
  9958. const Decoder = __nccwpck_require__(9730)
  9959. const decodeText = __nccwpck_require__(9136)
  9960. const getLimit = __nccwpck_require__(9692)
  9961. const RE_CHARSET = /^charset$/i
  9962. UrlEncoded.detect = /^application\/x-www-form-urlencoded/i
  9963. function UrlEncoded (boy, cfg) {
  9964. const limits = cfg.limits
  9965. const parsedConType = cfg.parsedConType
  9966. this.boy = boy
  9967. this.fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024)
  9968. this.fieldNameSizeLimit = getLimit(limits, 'fieldNameSize', 100)
  9969. this.fieldsLimit = getLimit(limits, 'fields', Infinity)
  9970. let charset
  9971. for (var i = 0, len = parsedConType.length; i < len; ++i) { // eslint-disable-line no-var
  9972. if (Array.isArray(parsedConType[i]) &&
  9973. RE_CHARSET.test(parsedConType[i][0])) {
  9974. charset = parsedConType[i][1].toLowerCase()
  9975. break
  9976. }
  9977. }
  9978. if (charset === undefined) { charset = cfg.defCharset || 'utf8' }
  9979. this.decoder = new Decoder()
  9980. this.charset = charset
  9981. this._fields = 0
  9982. this._state = 'key'
  9983. this._checkingBytes = true
  9984. this._bytesKey = 0
  9985. this._bytesVal = 0
  9986. this._key = ''
  9987. this._val = ''
  9988. this._keyTrunc = false
  9989. this._valTrunc = false
  9990. this._hitLimit = false
  9991. }
  9992. UrlEncoded.prototype.write = function (data, cb) {
  9993. if (this._fields === this.fieldsLimit) {
  9994. if (!this.boy.hitFieldsLimit) {
  9995. this.boy.hitFieldsLimit = true
  9996. this.boy.emit('fieldsLimit')
  9997. }
  9998. return cb()
  9999. }
  10000. let idxeq; let idxamp; let i; let p = 0; const len = data.length
  10001. while (p < len) {
  10002. if (this._state === 'key') {
  10003. idxeq = idxamp = undefined
  10004. for (i = p; i < len; ++i) {
  10005. if (!this._checkingBytes) { ++p }
  10006. if (data[i] === 0x3D/* = */) {
  10007. idxeq = i
  10008. break
  10009. } else if (data[i] === 0x26/* & */) {
  10010. idxamp = i
  10011. break
  10012. }
  10013. if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) {
  10014. this._hitLimit = true
  10015. break
  10016. } else if (this._checkingBytes) { ++this._bytesKey }
  10017. }
  10018. if (idxeq !== undefined) {
  10019. // key with assignment
  10020. if (idxeq > p) { this._key += this.decoder.write(data.toString('binary', p, idxeq)) }
  10021. this._state = 'val'
  10022. this._hitLimit = false
  10023. this._checkingBytes = true
  10024. this._val = ''
  10025. this._bytesVal = 0
  10026. this._valTrunc = false
  10027. this.decoder.reset()
  10028. p = idxeq + 1
  10029. } else if (idxamp !== undefined) {
  10030. // key with no assignment
  10031. ++this._fields
  10032. let key; const keyTrunc = this._keyTrunc
  10033. if (idxamp > p) { key = (this._key += this.decoder.write(data.toString('binary', p, idxamp))) } else { key = this._key }
  10034. this._hitLimit = false
  10035. this._checkingBytes = true
  10036. this._key = ''
  10037. this._bytesKey = 0
  10038. this._keyTrunc = false
  10039. this.decoder.reset()
  10040. if (key.length) {
  10041. this.boy.emit('field', decodeText(key, 'binary', this.charset),
  10042. '',
  10043. keyTrunc,
  10044. false)
  10045. }
  10046. p = idxamp + 1
  10047. if (this._fields === this.fieldsLimit) { return cb() }
  10048. } else if (this._hitLimit) {
  10049. // we may not have hit the actual limit if there are encoded bytes...
  10050. if (i > p) { this._key += this.decoder.write(data.toString('binary', p, i)) }
  10051. p = i
  10052. if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) {
  10053. // yep, we actually did hit the limit
  10054. this._checkingBytes = false
  10055. this._keyTrunc = true
  10056. }
  10057. } else {
  10058. if (p < len) { this._key += this.decoder.write(data.toString('binary', p)) }
  10059. p = len
  10060. }
  10061. } else {
  10062. idxamp = undefined
  10063. for (i = p; i < len; ++i) {
  10064. if (!this._checkingBytes) { ++p }
  10065. if (data[i] === 0x26/* & */) {
  10066. idxamp = i
  10067. break
  10068. }
  10069. if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) {
  10070. this._hitLimit = true
  10071. break
  10072. } else if (this._checkingBytes) { ++this._bytesVal }
  10073. }
  10074. if (idxamp !== undefined) {
  10075. ++this._fields
  10076. if (idxamp > p) { this._val += this.decoder.write(data.toString('binary', p, idxamp)) }
  10077. this.boy.emit('field', decodeText(this._key, 'binary', this.charset),
  10078. decodeText(this._val, 'binary', this.charset),
  10079. this._keyTrunc,
  10080. this._valTrunc)
  10081. this._state = 'key'
  10082. this._hitLimit = false
  10083. this._checkingBytes = true
  10084. this._key = ''
  10085. this._bytesKey = 0
  10086. this._keyTrunc = false
  10087. this.decoder.reset()
  10088. p = idxamp + 1
  10089. if (this._fields === this.fieldsLimit) { return cb() }
  10090. } else if (this._hitLimit) {
  10091. // we may not have hit the actual limit if there are encoded bytes...
  10092. if (i > p) { this._val += this.decoder.write(data.toString('binary', p, i)) }
  10093. p = i
  10094. if ((this._val === '' && this.fieldSizeLimit === 0) ||
  10095. (this._bytesVal = this._val.length) === this.fieldSizeLimit) {
  10096. // yep, we actually did hit the limit
  10097. this._checkingBytes = false
  10098. this._valTrunc = true
  10099. }
  10100. } else {
  10101. if (p < len) { this._val += this.decoder.write(data.toString('binary', p)) }
  10102. p = len
  10103. }
  10104. }
  10105. }
  10106. cb()
  10107. }
  10108. UrlEncoded.prototype.end = function () {
  10109. if (this.boy._done) { return }
  10110. if (this._state === 'key' && this._key.length > 0) {
  10111. this.boy.emit('field', decodeText(this._key, 'binary', this.charset),
  10112. '',
  10113. this._keyTrunc,
  10114. false)
  10115. } else if (this._state === 'val') {
  10116. this.boy.emit('field', decodeText(this._key, 'binary', this.charset),
  10117. decodeText(this._val, 'binary', this.charset),
  10118. this._keyTrunc,
  10119. this._valTrunc)
  10120. }
  10121. this.boy._done = true
  10122. this.boy.emit('finish')
  10123. }
  10124. module.exports = UrlEncoded
  10125. /***/ }),
  10126. /***/ 9730:
  10127. /***/ ((module) => {
  10128. "use strict";
  10129. const RE_PLUS = /\+/g
  10130. const HEX = [
  10131. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  10132. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  10133. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  10134. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
  10135. 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  10136. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  10137. 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  10138. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  10139. ]
  10140. function Decoder () {
  10141. this.buffer = undefined
  10142. }
  10143. Decoder.prototype.write = function (str) {
  10144. // Replace '+' with ' ' before decoding
  10145. str = str.replace(RE_PLUS, ' ')
  10146. let res = ''
  10147. let i = 0; let p = 0; const len = str.length
  10148. for (; i < len; ++i) {
  10149. if (this.buffer !== undefined) {
  10150. if (!HEX[str.charCodeAt(i)]) {
  10151. res += '%' + this.buffer
  10152. this.buffer = undefined
  10153. --i // retry character
  10154. } else {
  10155. this.buffer += str[i]
  10156. ++p
  10157. if (this.buffer.length === 2) {
  10158. res += String.fromCharCode(parseInt(this.buffer, 16))
  10159. this.buffer = undefined
  10160. }
  10161. }
  10162. } else if (str[i] === '%') {
  10163. if (i > p) {
  10164. res += str.substring(p, i)
  10165. p = i
  10166. }
  10167. this.buffer = ''
  10168. ++p
  10169. }
  10170. }
  10171. if (p < len && this.buffer === undefined) { res += str.substring(p) }
  10172. return res
  10173. }
  10174. Decoder.prototype.reset = function () {
  10175. this.buffer = undefined
  10176. }
  10177. module.exports = Decoder
  10178. /***/ }),
  10179. /***/ 496:
  10180. /***/ ((module) => {
  10181. "use strict";
  10182. module.exports = function basename (path) {
  10183. if (typeof path !== 'string') { return '' }
  10184. for (var i = path.length - 1; i >= 0; --i) { // eslint-disable-line no-var
  10185. switch (path.charCodeAt(i)) {
  10186. case 0x2F: // '/'
  10187. case 0x5C: // '\'
  10188. path = path.slice(i + 1)
  10189. return (path === '..' || path === '.' ? '' : path)
  10190. }
  10191. }
  10192. return (path === '..' || path === '.' ? '' : path)
  10193. }
  10194. /***/ }),
  10195. /***/ 9136:
  10196. /***/ ((module) => {
  10197. "use strict";
  10198. // Node has always utf-8
  10199. const utf8Decoder = new TextDecoder('utf-8')
  10200. const textDecoders = new Map([
  10201. ['utf-8', utf8Decoder],
  10202. ['utf8', utf8Decoder]
  10203. ])
  10204. function decodeText (text, textEncoding, destEncoding) {
  10205. if (text) {
  10206. if (textDecoders.has(destEncoding)) {
  10207. try {
  10208. return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
  10209. } catch (e) { }
  10210. } else {
  10211. try {
  10212. textDecoders.set(destEncoding, new TextDecoder(destEncoding))
  10213. return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))
  10214. } catch (e) { }
  10215. }
  10216. }
  10217. return text
  10218. }
  10219. module.exports = decodeText
  10220. /***/ }),
  10221. /***/ 9692:
  10222. /***/ ((module) => {
  10223. "use strict";
  10224. module.exports = function getLimit (limits, name, defaultLimit) {
  10225. if (
  10226. !limits ||
  10227. limits[name] === undefined ||
  10228. limits[name] === null
  10229. ) { return defaultLimit }
  10230. if (
  10231. typeof limits[name] !== 'number' ||
  10232. isNaN(limits[name])
  10233. ) { throw new TypeError('Limit ' + name + ' is not a valid number') }
  10234. return limits[name]
  10235. }
  10236. /***/ }),
  10237. /***/ 4426:
  10238. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  10239. "use strict";
  10240. const decodeText = __nccwpck_require__(9136)
  10241. const RE_ENCODED = /%([a-fA-F0-9]{2})/g
  10242. function encodedReplacer (match, byte) {
  10243. return String.fromCharCode(parseInt(byte, 16))
  10244. }
  10245. function parseParams (str) {
  10246. const res = []
  10247. let state = 'key'
  10248. let charset = ''
  10249. let inquote = false
  10250. let escaping = false
  10251. let p = 0
  10252. let tmp = ''
  10253. for (var i = 0, len = str.length; i < len; ++i) { // eslint-disable-line no-var
  10254. const char = str[i]
  10255. if (char === '\\' && inquote) {
  10256. if (escaping) { escaping = false } else {
  10257. escaping = true
  10258. continue
  10259. }
  10260. } else if (char === '"') {
  10261. if (!escaping) {
  10262. if (inquote) {
  10263. inquote = false
  10264. state = 'key'
  10265. } else { inquote = true }
  10266. continue
  10267. } else { escaping = false }
  10268. } else {
  10269. if (escaping && inquote) { tmp += '\\' }
  10270. escaping = false
  10271. if ((state === 'charset' || state === 'lang') && char === "'") {
  10272. if (state === 'charset') {
  10273. state = 'lang'
  10274. charset = tmp.substring(1)
  10275. } else { state = 'value' }
  10276. tmp = ''
  10277. continue
  10278. } else if (state === 'key' &&
  10279. (char === '*' || char === '=') &&
  10280. res.length) {
  10281. if (char === '*') { state = 'charset' } else { state = 'value' }
  10282. res[p] = [tmp, undefined]
  10283. tmp = ''
  10284. continue
  10285. } else if (!inquote && char === ';') {
  10286. state = 'key'
  10287. if (charset) {
  10288. if (tmp.length) {
  10289. tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer),
  10290. 'binary',
  10291. charset)
  10292. }
  10293. charset = ''
  10294. } else if (tmp.length) {
  10295. tmp = decodeText(tmp, 'binary', 'utf8')
  10296. }
  10297. if (res[p] === undefined) { res[p] = tmp } else { res[p][1] = tmp }
  10298. tmp = ''
  10299. ++p
  10300. continue
  10301. } else if (!inquote && (char === ' ' || char === '\t')) { continue }
  10302. }
  10303. tmp += char
  10304. }
  10305. if (charset && tmp.length) {
  10306. tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer),
  10307. 'binary',
  10308. charset)
  10309. } else if (tmp) {
  10310. tmp = decodeText(tmp, 'binary', 'utf8')
  10311. }
  10312. if (res[p] === undefined) {
  10313. if (tmp) { res[p] = tmp }
  10314. } else { res[p][1] = tmp }
  10315. return res
  10316. }
  10317. module.exports = parseParams
  10318. /***/ }),
  10319. /***/ 334:
  10320. /***/ ((module) => {
  10321. "use strict";
  10322. var __defProp = Object.defineProperty;
  10323. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  10324. var __getOwnPropNames = Object.getOwnPropertyNames;
  10325. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10326. var __export = (target, all) => {
  10327. for (var name in all)
  10328. __defProp(target, name, { get: all[name], enumerable: true });
  10329. };
  10330. var __copyProps = (to, from, except, desc) => {
  10331. if (from && typeof from === "object" || typeof from === "function") {
  10332. for (let key of __getOwnPropNames(from))
  10333. if (!__hasOwnProp.call(to, key) && key !== except)
  10334. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  10335. }
  10336. return to;
  10337. };
  10338. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  10339. // pkg/dist-src/index.js
  10340. var dist_src_exports = {};
  10341. __export(dist_src_exports, {
  10342. createTokenAuth: () => createTokenAuth
  10343. });
  10344. module.exports = __toCommonJS(dist_src_exports);
  10345. // pkg/dist-src/auth.js
  10346. var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
  10347. var REGEX_IS_INSTALLATION = /^ghs_/;
  10348. var REGEX_IS_USER_TO_SERVER = /^ghu_/;
  10349. async function auth(token) {
  10350. const isApp = token.split(/\./).length === 3;
  10351. const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
  10352. const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
  10353. const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
  10354. return {
  10355. type: "token",
  10356. token,
  10357. tokenType
  10358. };
  10359. }
  10360. // pkg/dist-src/with-authorization-prefix.js
  10361. function withAuthorizationPrefix(token) {
  10362. if (token.split(/\./).length === 3) {
  10363. return `bearer ${token}`;
  10364. }
  10365. return `token ${token}`;
  10366. }
  10367. // pkg/dist-src/hook.js
  10368. async function hook(token, request, route, parameters) {
  10369. const endpoint = request.endpoint.merge(
  10370. route,
  10371. parameters
  10372. );
  10373. endpoint.headers.authorization = withAuthorizationPrefix(token);
  10374. return request(endpoint);
  10375. }
  10376. // pkg/dist-src/index.js
  10377. var createTokenAuth = function createTokenAuth2(token) {
  10378. if (!token) {
  10379. throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
  10380. }
  10381. if (typeof token !== "string") {
  10382. throw new Error(
  10383. "[@octokit/auth-token] Token passed to createTokenAuth is not a string"
  10384. );
  10385. }
  10386. token = token.replace(/^(token|bearer) +/i, "");
  10387. return Object.assign(auth.bind(null, token), {
  10388. hook: hook.bind(null, token)
  10389. });
  10390. };
  10391. // Annotate the CommonJS export names for ESM import in node:
  10392. 0 && (0);
  10393. /***/ }),
  10394. /***/ 6762:
  10395. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  10396. "use strict";
  10397. var __defProp = Object.defineProperty;
  10398. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  10399. var __getOwnPropNames = Object.getOwnPropertyNames;
  10400. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10401. var __export = (target, all) => {
  10402. for (var name in all)
  10403. __defProp(target, name, { get: all[name], enumerable: true });
  10404. };
  10405. var __copyProps = (to, from, except, desc) => {
  10406. if (from && typeof from === "object" || typeof from === "function") {
  10407. for (let key of __getOwnPropNames(from))
  10408. if (!__hasOwnProp.call(to, key) && key !== except)
  10409. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  10410. }
  10411. return to;
  10412. };
  10413. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  10414. // pkg/dist-src/index.js
  10415. var dist_src_exports = {};
  10416. __export(dist_src_exports, {
  10417. Octokit: () => Octokit
  10418. });
  10419. module.exports = __toCommonJS(dist_src_exports);
  10420. var import_universal_user_agent = __nccwpck_require__(5030);
  10421. var import_before_after_hook = __nccwpck_require__(3682);
  10422. var import_request = __nccwpck_require__(6234);
  10423. var import_graphql = __nccwpck_require__(8467);
  10424. var import_auth_token = __nccwpck_require__(334);
  10425. // pkg/dist-src/version.js
  10426. var VERSION = "4.2.4";
  10427. // pkg/dist-src/index.js
  10428. var Octokit = class {
  10429. static defaults(defaults) {
  10430. const OctokitWithDefaults = class extends this {
  10431. constructor(...args) {
  10432. const options = args[0] || {};
  10433. if (typeof defaults === "function") {
  10434. super(defaults(options));
  10435. return;
  10436. }
  10437. super(
  10438. Object.assign(
  10439. {},
  10440. defaults,
  10441. options,
  10442. options.userAgent && defaults.userAgent ? {
  10443. userAgent: `${options.userAgent} ${defaults.userAgent}`
  10444. } : null
  10445. )
  10446. );
  10447. }
  10448. };
  10449. return OctokitWithDefaults;
  10450. }
  10451. /**
  10452. * Attach a plugin (or many) to your Octokit instance.
  10453. *
  10454. * @example
  10455. * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
  10456. */
  10457. static plugin(...newPlugins) {
  10458. var _a;
  10459. const currentPlugins = this.plugins;
  10460. const NewOctokit = (_a = class extends this {
  10461. }, _a.plugins = currentPlugins.concat(
  10462. newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
  10463. ), _a);
  10464. return NewOctokit;
  10465. }
  10466. constructor(options = {}) {
  10467. const hook = new import_before_after_hook.Collection();
  10468. const requestDefaults = {
  10469. baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,
  10470. headers: {},
  10471. request: Object.assign({}, options.request, {
  10472. // @ts-ignore internal usage only, no need to type
  10473. hook: hook.bind(null, "request")
  10474. }),
  10475. mediaType: {
  10476. previews: [],
  10477. format: ""
  10478. }
  10479. };
  10480. requestDefaults.headers["user-agent"] = [
  10481. options.userAgent,
  10482. `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
  10483. ].filter(Boolean).join(" ");
  10484. if (options.baseUrl) {
  10485. requestDefaults.baseUrl = options.baseUrl;
  10486. }
  10487. if (options.previews) {
  10488. requestDefaults.mediaType.previews = options.previews;
  10489. }
  10490. if (options.timeZone) {
  10491. requestDefaults.headers["time-zone"] = options.timeZone;
  10492. }
  10493. this.request = import_request.request.defaults(requestDefaults);
  10494. this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
  10495. this.log = Object.assign(
  10496. {
  10497. debug: () => {
  10498. },
  10499. info: () => {
  10500. },
  10501. warn: console.warn.bind(console),
  10502. error: console.error.bind(console)
  10503. },
  10504. options.log
  10505. );
  10506. this.hook = hook;
  10507. if (!options.authStrategy) {
  10508. if (!options.auth) {
  10509. this.auth = async () => ({
  10510. type: "unauthenticated"
  10511. });
  10512. } else {
  10513. const auth = (0, import_auth_token.createTokenAuth)(options.auth);
  10514. hook.wrap("request", auth.hook);
  10515. this.auth = auth;
  10516. }
  10517. } else {
  10518. const { authStrategy, ...otherOptions } = options;
  10519. const auth = authStrategy(
  10520. Object.assign(
  10521. {
  10522. request: this.request,
  10523. log: this.log,
  10524. // we pass the current octokit instance as well as its constructor options
  10525. // to allow for authentication strategies that return a new octokit instance
  10526. // that shares the same internal state as the current one. The original
  10527. // requirement for this was the "event-octokit" authentication strategy
  10528. // of https://github.com/probot/octokit-auth-probot.
  10529. octokit: this,
  10530. octokitOptions: otherOptions
  10531. },
  10532. options.auth
  10533. )
  10534. );
  10535. hook.wrap("request", auth.hook);
  10536. this.auth = auth;
  10537. }
  10538. const classConstructor = this.constructor;
  10539. classConstructor.plugins.forEach((plugin) => {
  10540. Object.assign(this, plugin(this, options));
  10541. });
  10542. }
  10543. };
  10544. Octokit.VERSION = VERSION;
  10545. Octokit.plugins = [];
  10546. // Annotate the CommonJS export names for ESM import in node:
  10547. 0 && (0);
  10548. /***/ }),
  10549. /***/ 9440:
  10550. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  10551. "use strict";
  10552. var __defProp = Object.defineProperty;
  10553. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  10554. var __getOwnPropNames = Object.getOwnPropertyNames;
  10555. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10556. var __export = (target, all) => {
  10557. for (var name in all)
  10558. __defProp(target, name, { get: all[name], enumerable: true });
  10559. };
  10560. var __copyProps = (to, from, except, desc) => {
  10561. if (from && typeof from === "object" || typeof from === "function") {
  10562. for (let key of __getOwnPropNames(from))
  10563. if (!__hasOwnProp.call(to, key) && key !== except)
  10564. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  10565. }
  10566. return to;
  10567. };
  10568. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  10569. // pkg/dist-src/index.js
  10570. var dist_src_exports = {};
  10571. __export(dist_src_exports, {
  10572. endpoint: () => endpoint
  10573. });
  10574. module.exports = __toCommonJS(dist_src_exports);
  10575. // pkg/dist-src/util/lowercase-keys.js
  10576. function lowercaseKeys(object) {
  10577. if (!object) {
  10578. return {};
  10579. }
  10580. return Object.keys(object).reduce((newObj, key) => {
  10581. newObj[key.toLowerCase()] = object[key];
  10582. return newObj;
  10583. }, {});
  10584. }
  10585. // pkg/dist-src/util/merge-deep.js
  10586. var import_is_plain_object = __nccwpck_require__(3287);
  10587. function mergeDeep(defaults, options) {
  10588. const result = Object.assign({}, defaults);
  10589. Object.keys(options).forEach((key) => {
  10590. if ((0, import_is_plain_object.isPlainObject)(options[key])) {
  10591. if (!(key in defaults))
  10592. Object.assign(result, { [key]: options[key] });
  10593. else
  10594. result[key] = mergeDeep(defaults[key], options[key]);
  10595. } else {
  10596. Object.assign(result, { [key]: options[key] });
  10597. }
  10598. });
  10599. return result;
  10600. }
  10601. // pkg/dist-src/util/remove-undefined-properties.js
  10602. function removeUndefinedProperties(obj) {
  10603. for (const key in obj) {
  10604. if (obj[key] === void 0) {
  10605. delete obj[key];
  10606. }
  10607. }
  10608. return obj;
  10609. }
  10610. // pkg/dist-src/merge.js
  10611. function merge(defaults, route, options) {
  10612. if (typeof route === "string") {
  10613. let [method, url] = route.split(" ");
  10614. options = Object.assign(url ? { method, url } : { url: method }, options);
  10615. } else {
  10616. options = Object.assign({}, route);
  10617. }
  10618. options.headers = lowercaseKeys(options.headers);
  10619. removeUndefinedProperties(options);
  10620. removeUndefinedProperties(options.headers);
  10621. const mergedOptions = mergeDeep(defaults || {}, options);
  10622. if (defaults && defaults.mediaType.previews.length) {
  10623. mergedOptions.mediaType.previews = defaults.mediaType.previews.filter((preview) => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
  10624. }
  10625. mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(
  10626. (preview) => preview.replace(/-preview/, "")
  10627. );
  10628. return mergedOptions;
  10629. }
  10630. // pkg/dist-src/util/add-query-parameters.js
  10631. function addQueryParameters(url, parameters) {
  10632. const separator = /\?/.test(url) ? "&" : "?";
  10633. const names = Object.keys(parameters);
  10634. if (names.length === 0) {
  10635. return url;
  10636. }
  10637. return url + separator + names.map((name) => {
  10638. if (name === "q") {
  10639. return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
  10640. }
  10641. return `${name}=${encodeURIComponent(parameters[name])}`;
  10642. }).join("&");
  10643. }
  10644. // pkg/dist-src/util/extract-url-variable-names.js
  10645. var urlVariableRegex = /\{[^}]+\}/g;
  10646. function removeNonChars(variableName) {
  10647. return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
  10648. }
  10649. function extractUrlVariableNames(url) {
  10650. const matches = url.match(urlVariableRegex);
  10651. if (!matches) {
  10652. return [];
  10653. }
  10654. return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
  10655. }
  10656. // pkg/dist-src/util/omit.js
  10657. function omit(object, keysToOmit) {
  10658. return Object.keys(object).filter((option) => !keysToOmit.includes(option)).reduce((obj, key) => {
  10659. obj[key] = object[key];
  10660. return obj;
  10661. }, {});
  10662. }
  10663. // pkg/dist-src/util/url-template.js
  10664. function encodeReserved(str) {
  10665. return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
  10666. if (!/%[0-9A-Fa-f]/.test(part)) {
  10667. part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
  10668. }
  10669. return part;
  10670. }).join("");
  10671. }
  10672. function encodeUnreserved(str) {
  10673. return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
  10674. return "%" + c.charCodeAt(0).toString(16).toUpperCase();
  10675. });
  10676. }
  10677. function encodeValue(operator, value, key) {
  10678. value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
  10679. if (key) {
  10680. return encodeUnreserved(key) + "=" + value;
  10681. } else {
  10682. return value;
  10683. }
  10684. }
  10685. function isDefined(value) {
  10686. return value !== void 0 && value !== null;
  10687. }
  10688. function isKeyOperator(operator) {
  10689. return operator === ";" || operator === "&" || operator === "?";
  10690. }
  10691. function getValues(context, operator, key, modifier) {
  10692. var value = context[key], result = [];
  10693. if (isDefined(value) && value !== "") {
  10694. if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
  10695. value = value.toString();
  10696. if (modifier && modifier !== "*") {
  10697. value = value.substring(0, parseInt(modifier, 10));
  10698. }
  10699. result.push(
  10700. encodeValue(operator, value, isKeyOperator(operator) ? key : "")
  10701. );
  10702. } else {
  10703. if (modifier === "*") {
  10704. if (Array.isArray(value)) {
  10705. value.filter(isDefined).forEach(function(value2) {
  10706. result.push(
  10707. encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
  10708. );
  10709. });
  10710. } else {
  10711. Object.keys(value).forEach(function(k) {
  10712. if (isDefined(value[k])) {
  10713. result.push(encodeValue(operator, value[k], k));
  10714. }
  10715. });
  10716. }
  10717. } else {
  10718. const tmp = [];
  10719. if (Array.isArray(value)) {
  10720. value.filter(isDefined).forEach(function(value2) {
  10721. tmp.push(encodeValue(operator, value2));
  10722. });
  10723. } else {
  10724. Object.keys(value).forEach(function(k) {
  10725. if (isDefined(value[k])) {
  10726. tmp.push(encodeUnreserved(k));
  10727. tmp.push(encodeValue(operator, value[k].toString()));
  10728. }
  10729. });
  10730. }
  10731. if (isKeyOperator(operator)) {
  10732. result.push(encodeUnreserved(key) + "=" + tmp.join(","));
  10733. } else if (tmp.length !== 0) {
  10734. result.push(tmp.join(","));
  10735. }
  10736. }
  10737. }
  10738. } else {
  10739. if (operator === ";") {
  10740. if (isDefined(value)) {
  10741. result.push(encodeUnreserved(key));
  10742. }
  10743. } else if (value === "" && (operator === "&" || operator === "?")) {
  10744. result.push(encodeUnreserved(key) + "=");
  10745. } else if (value === "") {
  10746. result.push("");
  10747. }
  10748. }
  10749. return result;
  10750. }
  10751. function parseUrl(template) {
  10752. return {
  10753. expand: expand.bind(null, template)
  10754. };
  10755. }
  10756. function expand(template, context) {
  10757. var operators = ["+", "#", ".", "/", ";", "?", "&"];
  10758. return template.replace(
  10759. /\{([^\{\}]+)\}|([^\{\}]+)/g,
  10760. function(_, expression, literal) {
  10761. if (expression) {
  10762. let operator = "";
  10763. const values = [];
  10764. if (operators.indexOf(expression.charAt(0)) !== -1) {
  10765. operator = expression.charAt(0);
  10766. expression = expression.substr(1);
  10767. }
  10768. expression.split(/,/g).forEach(function(variable) {
  10769. var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
  10770. values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
  10771. });
  10772. if (operator && operator !== "+") {
  10773. var separator = ",";
  10774. if (operator === "?") {
  10775. separator = "&";
  10776. } else if (operator !== "#") {
  10777. separator = operator;
  10778. }
  10779. return (values.length !== 0 ? operator : "") + values.join(separator);
  10780. } else {
  10781. return values.join(",");
  10782. }
  10783. } else {
  10784. return encodeReserved(literal);
  10785. }
  10786. }
  10787. );
  10788. }
  10789. // pkg/dist-src/parse.js
  10790. function parse(options) {
  10791. let method = options.method.toUpperCase();
  10792. let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
  10793. let headers = Object.assign({}, options.headers);
  10794. let body;
  10795. let parameters = omit(options, [
  10796. "method",
  10797. "baseUrl",
  10798. "url",
  10799. "headers",
  10800. "request",
  10801. "mediaType"
  10802. ]);
  10803. const urlVariableNames = extractUrlVariableNames(url);
  10804. url = parseUrl(url).expand(parameters);
  10805. if (!/^http/.test(url)) {
  10806. url = options.baseUrl + url;
  10807. }
  10808. const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
  10809. const remainingParameters = omit(parameters, omittedParameters);
  10810. const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
  10811. if (!isBinaryRequest) {
  10812. if (options.mediaType.format) {
  10813. headers.accept = headers.accept.split(/,/).map(
  10814. (preview) => preview.replace(
  10815. /application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
  10816. `application/vnd$1$2.${options.mediaType.format}`
  10817. )
  10818. ).join(",");
  10819. }
  10820. if (options.mediaType.previews.length) {
  10821. const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
  10822. headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
  10823. const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
  10824. return `application/vnd.github.${preview}-preview${format}`;
  10825. }).join(",");
  10826. }
  10827. }
  10828. if (["GET", "HEAD"].includes(method)) {
  10829. url = addQueryParameters(url, remainingParameters);
  10830. } else {
  10831. if ("data" in remainingParameters) {
  10832. body = remainingParameters.data;
  10833. } else {
  10834. if (Object.keys(remainingParameters).length) {
  10835. body = remainingParameters;
  10836. }
  10837. }
  10838. }
  10839. if (!headers["content-type"] && typeof body !== "undefined") {
  10840. headers["content-type"] = "application/json; charset=utf-8";
  10841. }
  10842. if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
  10843. body = "";
  10844. }
  10845. return Object.assign(
  10846. { method, url, headers },
  10847. typeof body !== "undefined" ? { body } : null,
  10848. options.request ? { request: options.request } : null
  10849. );
  10850. }
  10851. // pkg/dist-src/endpoint-with-defaults.js
  10852. function endpointWithDefaults(defaults, route, options) {
  10853. return parse(merge(defaults, route, options));
  10854. }
  10855. // pkg/dist-src/with-defaults.js
  10856. function withDefaults(oldDefaults, newDefaults) {
  10857. const DEFAULTS2 = merge(oldDefaults, newDefaults);
  10858. const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
  10859. return Object.assign(endpoint2, {
  10860. DEFAULTS: DEFAULTS2,
  10861. defaults: withDefaults.bind(null, DEFAULTS2),
  10862. merge: merge.bind(null, DEFAULTS2),
  10863. parse
  10864. });
  10865. }
  10866. // pkg/dist-src/defaults.js
  10867. var import_universal_user_agent = __nccwpck_require__(5030);
  10868. // pkg/dist-src/version.js
  10869. var VERSION = "7.0.6";
  10870. // pkg/dist-src/defaults.js
  10871. var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
  10872. var DEFAULTS = {
  10873. method: "GET",
  10874. baseUrl: "https://api.github.com",
  10875. headers: {
  10876. accept: "application/vnd.github.v3+json",
  10877. "user-agent": userAgent
  10878. },
  10879. mediaType: {
  10880. format: "",
  10881. previews: []
  10882. }
  10883. };
  10884. // pkg/dist-src/index.js
  10885. var endpoint = withDefaults(null, DEFAULTS);
  10886. // Annotate the CommonJS export names for ESM import in node:
  10887. 0 && (0);
  10888. /***/ }),
  10889. /***/ 8467:
  10890. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  10891. "use strict";
  10892. var __defProp = Object.defineProperty;
  10893. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  10894. var __getOwnPropNames = Object.getOwnPropertyNames;
  10895. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10896. var __export = (target, all) => {
  10897. for (var name in all)
  10898. __defProp(target, name, { get: all[name], enumerable: true });
  10899. };
  10900. var __copyProps = (to, from, except, desc) => {
  10901. if (from && typeof from === "object" || typeof from === "function") {
  10902. for (let key of __getOwnPropNames(from))
  10903. if (!__hasOwnProp.call(to, key) && key !== except)
  10904. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  10905. }
  10906. return to;
  10907. };
  10908. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  10909. // pkg/dist-src/index.js
  10910. var dist_src_exports = {};
  10911. __export(dist_src_exports, {
  10912. GraphqlResponseError: () => GraphqlResponseError,
  10913. graphql: () => graphql2,
  10914. withCustomRequest: () => withCustomRequest
  10915. });
  10916. module.exports = __toCommonJS(dist_src_exports);
  10917. var import_request = __nccwpck_require__(6234);
  10918. var import_universal_user_agent = __nccwpck_require__(5030);
  10919. // pkg/dist-src/version.js
  10920. var VERSION = "5.0.6";
  10921. // pkg/dist-src/error.js
  10922. function _buildMessageForResponseErrors(data) {
  10923. return `Request failed due to following response errors:
  10924. ` + data.errors.map((e) => ` - ${e.message}`).join("\n");
  10925. }
  10926. var GraphqlResponseError = class extends Error {
  10927. constructor(request2, headers, response) {
  10928. super(_buildMessageForResponseErrors(response));
  10929. this.request = request2;
  10930. this.headers = headers;
  10931. this.response = response;
  10932. this.name = "GraphqlResponseError";
  10933. this.errors = response.errors;
  10934. this.data = response.data;
  10935. if (Error.captureStackTrace) {
  10936. Error.captureStackTrace(this, this.constructor);
  10937. }
  10938. }
  10939. };
  10940. // pkg/dist-src/graphql.js
  10941. var NON_VARIABLE_OPTIONS = [
  10942. "method",
  10943. "baseUrl",
  10944. "url",
  10945. "headers",
  10946. "request",
  10947. "query",
  10948. "mediaType"
  10949. ];
  10950. var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
  10951. var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
  10952. function graphql(request2, query, options) {
  10953. if (options) {
  10954. if (typeof query === "string" && "query" in options) {
  10955. return Promise.reject(
  10956. new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
  10957. );
  10958. }
  10959. for (const key in options) {
  10960. if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
  10961. continue;
  10962. return Promise.reject(
  10963. new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`)
  10964. );
  10965. }
  10966. }
  10967. const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
  10968. const requestOptions = Object.keys(
  10969. parsedOptions
  10970. ).reduce((result, key) => {
  10971. if (NON_VARIABLE_OPTIONS.includes(key)) {
  10972. result[key] = parsedOptions[key];
  10973. return result;
  10974. }
  10975. if (!result.variables) {
  10976. result.variables = {};
  10977. }
  10978. result.variables[key] = parsedOptions[key];
  10979. return result;
  10980. }, {});
  10981. const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
  10982. if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
  10983. requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
  10984. }
  10985. return request2(requestOptions).then((response) => {
  10986. if (response.data.errors) {
  10987. const headers = {};
  10988. for (const key of Object.keys(response.headers)) {
  10989. headers[key] = response.headers[key];
  10990. }
  10991. throw new GraphqlResponseError(
  10992. requestOptions,
  10993. headers,
  10994. response.data
  10995. );
  10996. }
  10997. return response.data.data;
  10998. });
  10999. }
  11000. // pkg/dist-src/with-defaults.js
  11001. function withDefaults(request2, newDefaults) {
  11002. const newRequest = request2.defaults(newDefaults);
  11003. const newApi = (query, options) => {
  11004. return graphql(newRequest, query, options);
  11005. };
  11006. return Object.assign(newApi, {
  11007. defaults: withDefaults.bind(null, newRequest),
  11008. endpoint: newRequest.endpoint
  11009. });
  11010. }
  11011. // pkg/dist-src/index.js
  11012. var graphql2 = withDefaults(import_request.request, {
  11013. headers: {
  11014. "user-agent": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
  11015. },
  11016. method: "POST",
  11017. url: "/graphql"
  11018. });
  11019. function withCustomRequest(customRequest) {
  11020. return withDefaults(customRequest, {
  11021. method: "POST",
  11022. url: "/graphql"
  11023. });
  11024. }
  11025. // Annotate the CommonJS export names for ESM import in node:
  11026. 0 && (0);
  11027. /***/ }),
  11028. /***/ 4193:
  11029. /***/ ((module) => {
  11030. "use strict";
  11031. var __defProp = Object.defineProperty;
  11032. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  11033. var __getOwnPropNames = Object.getOwnPropertyNames;
  11034. var __hasOwnProp = Object.prototype.hasOwnProperty;
  11035. var __export = (target, all) => {
  11036. for (var name in all)
  11037. __defProp(target, name, { get: all[name], enumerable: true });
  11038. };
  11039. var __copyProps = (to, from, except, desc) => {
  11040. if (from && typeof from === "object" || typeof from === "function") {
  11041. for (let key of __getOwnPropNames(from))
  11042. if (!__hasOwnProp.call(to, key) && key !== except)
  11043. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  11044. }
  11045. return to;
  11046. };
  11047. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  11048. // pkg/dist-src/index.js
  11049. var dist_src_exports = {};
  11050. __export(dist_src_exports, {
  11051. composePaginateRest: () => composePaginateRest,
  11052. isPaginatingEndpoint: () => isPaginatingEndpoint,
  11053. paginateRest: () => paginateRest,
  11054. paginatingEndpoints: () => paginatingEndpoints
  11055. });
  11056. module.exports = __toCommonJS(dist_src_exports);
  11057. // pkg/dist-src/version.js
  11058. var VERSION = "6.1.2";
  11059. // pkg/dist-src/normalize-paginated-list-response.js
  11060. function normalizePaginatedListResponse(response) {
  11061. if (!response.data) {
  11062. return {
  11063. ...response,
  11064. data: []
  11065. };
  11066. }
  11067. const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
  11068. if (!responseNeedsNormalization)
  11069. return response;
  11070. const incompleteResults = response.data.incomplete_results;
  11071. const repositorySelection = response.data.repository_selection;
  11072. const totalCount = response.data.total_count;
  11073. delete response.data.incomplete_results;
  11074. delete response.data.repository_selection;
  11075. delete response.data.total_count;
  11076. const namespaceKey = Object.keys(response.data)[0];
  11077. const data = response.data[namespaceKey];
  11078. response.data = data;
  11079. if (typeof incompleteResults !== "undefined") {
  11080. response.data.incomplete_results = incompleteResults;
  11081. }
  11082. if (typeof repositorySelection !== "undefined") {
  11083. response.data.repository_selection = repositorySelection;
  11084. }
  11085. response.data.total_count = totalCount;
  11086. return response;
  11087. }
  11088. // pkg/dist-src/iterator.js
  11089. function iterator(octokit, route, parameters) {
  11090. const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
  11091. const requestMethod = typeof route === "function" ? route : octokit.request;
  11092. const method = options.method;
  11093. const headers = options.headers;
  11094. let url = options.url;
  11095. return {
  11096. [Symbol.asyncIterator]: () => ({
  11097. async next() {
  11098. if (!url)
  11099. return { done: true };
  11100. try {
  11101. const response = await requestMethod({ method, url, headers });
  11102. const normalizedResponse = normalizePaginatedListResponse(response);
  11103. url = ((normalizedResponse.headers.link || "").match(
  11104. /<([^>]+)>;\s*rel="next"/
  11105. ) || [])[1];
  11106. return { value: normalizedResponse };
  11107. } catch (error) {
  11108. if (error.status !== 409)
  11109. throw error;
  11110. url = "";
  11111. return {
  11112. value: {
  11113. status: 200,
  11114. headers: {},
  11115. data: []
  11116. }
  11117. };
  11118. }
  11119. }
  11120. })
  11121. };
  11122. }
  11123. // pkg/dist-src/paginate.js
  11124. function paginate(octokit, route, parameters, mapFn) {
  11125. if (typeof parameters === "function") {
  11126. mapFn = parameters;
  11127. parameters = void 0;
  11128. }
  11129. return gather(
  11130. octokit,
  11131. [],
  11132. iterator(octokit, route, parameters)[Symbol.asyncIterator](),
  11133. mapFn
  11134. );
  11135. }
  11136. function gather(octokit, results, iterator2, mapFn) {
  11137. return iterator2.next().then((result) => {
  11138. if (result.done) {
  11139. return results;
  11140. }
  11141. let earlyExit = false;
  11142. function done() {
  11143. earlyExit = true;
  11144. }
  11145. results = results.concat(
  11146. mapFn ? mapFn(result.value, done) : result.value.data
  11147. );
  11148. if (earlyExit) {
  11149. return results;
  11150. }
  11151. return gather(octokit, results, iterator2, mapFn);
  11152. });
  11153. }
  11154. // pkg/dist-src/compose-paginate.js
  11155. var composePaginateRest = Object.assign(paginate, {
  11156. iterator
  11157. });
  11158. // pkg/dist-src/generated/paginating-endpoints.js
  11159. var paginatingEndpoints = [
  11160. "GET /app/hook/deliveries",
  11161. "GET /app/installation-requests",
  11162. "GET /app/installations",
  11163. "GET /enterprises/{enterprise}/dependabot/alerts",
  11164. "GET /enterprises/{enterprise}/secret-scanning/alerts",
  11165. "GET /events",
  11166. "GET /gists",
  11167. "GET /gists/public",
  11168. "GET /gists/starred",
  11169. "GET /gists/{gist_id}/comments",
  11170. "GET /gists/{gist_id}/commits",
  11171. "GET /gists/{gist_id}/forks",
  11172. "GET /installation/repositories",
  11173. "GET /issues",
  11174. "GET /licenses",
  11175. "GET /marketplace_listing/plans",
  11176. "GET /marketplace_listing/plans/{plan_id}/accounts",
  11177. "GET /marketplace_listing/stubbed/plans",
  11178. "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
  11179. "GET /networks/{owner}/{repo}/events",
  11180. "GET /notifications",
  11181. "GET /organizations",
  11182. "GET /organizations/{org}/personal-access-token-requests",
  11183. "GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories",
  11184. "GET /organizations/{org}/personal-access-tokens",
  11185. "GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories",
  11186. "GET /orgs/{org}/actions/cache/usage-by-repository",
  11187. "GET /orgs/{org}/actions/permissions/repositories",
  11188. "GET /orgs/{org}/actions/required_workflows",
  11189. "GET /orgs/{org}/actions/runners",
  11190. "GET /orgs/{org}/actions/secrets",
  11191. "GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
  11192. "GET /orgs/{org}/actions/variables",
  11193. "GET /orgs/{org}/actions/variables/{name}/repositories",
  11194. "GET /orgs/{org}/blocks",
  11195. "GET /orgs/{org}/code-scanning/alerts",
  11196. "GET /orgs/{org}/codespaces",
  11197. "GET /orgs/{org}/codespaces/secrets",
  11198. "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
  11199. "GET /orgs/{org}/dependabot/alerts",
  11200. "GET /orgs/{org}/dependabot/secrets",
  11201. "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
  11202. "GET /orgs/{org}/events",
  11203. "GET /orgs/{org}/failed_invitations",
  11204. "GET /orgs/{org}/hooks",
  11205. "GET /orgs/{org}/hooks/{hook_id}/deliveries",
  11206. "GET /orgs/{org}/installations",
  11207. "GET /orgs/{org}/invitations",
  11208. "GET /orgs/{org}/invitations/{invitation_id}/teams",
  11209. "GET /orgs/{org}/issues",
  11210. "GET /orgs/{org}/members",
  11211. "GET /orgs/{org}/members/{username}/codespaces",
  11212. "GET /orgs/{org}/migrations",
  11213. "GET /orgs/{org}/migrations/{migration_id}/repositories",
  11214. "GET /orgs/{org}/outside_collaborators",
  11215. "GET /orgs/{org}/packages",
  11216. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
  11217. "GET /orgs/{org}/projects",
  11218. "GET /orgs/{org}/public_members",
  11219. "GET /orgs/{org}/repos",
  11220. "GET /orgs/{org}/secret-scanning/alerts",
  11221. "GET /orgs/{org}/teams",
  11222. "GET /orgs/{org}/teams/{team_slug}/discussions",
  11223. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
  11224. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
  11225. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
  11226. "GET /orgs/{org}/teams/{team_slug}/invitations",
  11227. "GET /orgs/{org}/teams/{team_slug}/members",
  11228. "GET /orgs/{org}/teams/{team_slug}/projects",
  11229. "GET /orgs/{org}/teams/{team_slug}/repos",
  11230. "GET /orgs/{org}/teams/{team_slug}/teams",
  11231. "GET /projects/columns/{column_id}/cards",
  11232. "GET /projects/{project_id}/collaborators",
  11233. "GET /projects/{project_id}/columns",
  11234. "GET /repos/{org}/{repo}/actions/required_workflows",
  11235. "GET /repos/{owner}/{repo}/actions/artifacts",
  11236. "GET /repos/{owner}/{repo}/actions/caches",
  11237. "GET /repos/{owner}/{repo}/actions/organization-secrets",
  11238. "GET /repos/{owner}/{repo}/actions/organization-variables",
  11239. "GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs",
  11240. "GET /repos/{owner}/{repo}/actions/runners",
  11241. "GET /repos/{owner}/{repo}/actions/runs",
  11242. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
  11243. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
  11244. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
  11245. "GET /repos/{owner}/{repo}/actions/secrets",
  11246. "GET /repos/{owner}/{repo}/actions/variables",
  11247. "GET /repos/{owner}/{repo}/actions/workflows",
  11248. "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
  11249. "GET /repos/{owner}/{repo}/assignees",
  11250. "GET /repos/{owner}/{repo}/branches",
  11251. "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
  11252. "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
  11253. "GET /repos/{owner}/{repo}/code-scanning/alerts",
  11254. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
  11255. "GET /repos/{owner}/{repo}/code-scanning/analyses",
  11256. "GET /repos/{owner}/{repo}/codespaces",
  11257. "GET /repos/{owner}/{repo}/codespaces/devcontainers",
  11258. "GET /repos/{owner}/{repo}/codespaces/secrets",
  11259. "GET /repos/{owner}/{repo}/collaborators",
  11260. "GET /repos/{owner}/{repo}/comments",
  11261. "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
  11262. "GET /repos/{owner}/{repo}/commits",
  11263. "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
  11264. "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
  11265. "GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
  11266. "GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
  11267. "GET /repos/{owner}/{repo}/commits/{ref}/status",
  11268. "GET /repos/{owner}/{repo}/commits/{ref}/statuses",
  11269. "GET /repos/{owner}/{repo}/contributors",
  11270. "GET /repos/{owner}/{repo}/dependabot/alerts",
  11271. "GET /repos/{owner}/{repo}/dependabot/secrets",
  11272. "GET /repos/{owner}/{repo}/deployments",
  11273. "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
  11274. "GET /repos/{owner}/{repo}/environments",
  11275. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
  11276. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
  11277. "GET /repos/{owner}/{repo}/events",
  11278. "GET /repos/{owner}/{repo}/forks",
  11279. "GET /repos/{owner}/{repo}/hooks",
  11280. "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
  11281. "GET /repos/{owner}/{repo}/invitations",
  11282. "GET /repos/{owner}/{repo}/issues",
  11283. "GET /repos/{owner}/{repo}/issues/comments",
  11284. "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
  11285. "GET /repos/{owner}/{repo}/issues/events",
  11286. "GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
  11287. "GET /repos/{owner}/{repo}/issues/{issue_number}/events",
  11288. "GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
  11289. "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
  11290. "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
  11291. "GET /repos/{owner}/{repo}/keys",
  11292. "GET /repos/{owner}/{repo}/labels",
  11293. "GET /repos/{owner}/{repo}/milestones",
  11294. "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
  11295. "GET /repos/{owner}/{repo}/notifications",
  11296. "GET /repos/{owner}/{repo}/pages/builds",
  11297. "GET /repos/{owner}/{repo}/projects",
  11298. "GET /repos/{owner}/{repo}/pulls",
  11299. "GET /repos/{owner}/{repo}/pulls/comments",
  11300. "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
  11301. "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
  11302. "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
  11303. "GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
  11304. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
  11305. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
  11306. "GET /repos/{owner}/{repo}/releases",
  11307. "GET /repos/{owner}/{repo}/releases/{release_id}/assets",
  11308. "GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
  11309. "GET /repos/{owner}/{repo}/secret-scanning/alerts",
  11310. "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
  11311. "GET /repos/{owner}/{repo}/security-advisories",
  11312. "GET /repos/{owner}/{repo}/stargazers",
  11313. "GET /repos/{owner}/{repo}/subscribers",
  11314. "GET /repos/{owner}/{repo}/tags",
  11315. "GET /repos/{owner}/{repo}/teams",
  11316. "GET /repos/{owner}/{repo}/topics",
  11317. "GET /repositories",
  11318. "GET /repositories/{repository_id}/environments/{environment_name}/secrets",
  11319. "GET /repositories/{repository_id}/environments/{environment_name}/variables",
  11320. "GET /search/code",
  11321. "GET /search/commits",
  11322. "GET /search/issues",
  11323. "GET /search/labels",
  11324. "GET /search/repositories",
  11325. "GET /search/topics",
  11326. "GET /search/users",
  11327. "GET /teams/{team_id}/discussions",
  11328. "GET /teams/{team_id}/discussions/{discussion_number}/comments",
  11329. "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
  11330. "GET /teams/{team_id}/discussions/{discussion_number}/reactions",
  11331. "GET /teams/{team_id}/invitations",
  11332. "GET /teams/{team_id}/members",
  11333. "GET /teams/{team_id}/projects",
  11334. "GET /teams/{team_id}/repos",
  11335. "GET /teams/{team_id}/teams",
  11336. "GET /user/blocks",
  11337. "GET /user/codespaces",
  11338. "GET /user/codespaces/secrets",
  11339. "GET /user/emails",
  11340. "GET /user/followers",
  11341. "GET /user/following",
  11342. "GET /user/gpg_keys",
  11343. "GET /user/installations",
  11344. "GET /user/installations/{installation_id}/repositories",
  11345. "GET /user/issues",
  11346. "GET /user/keys",
  11347. "GET /user/marketplace_purchases",
  11348. "GET /user/marketplace_purchases/stubbed",
  11349. "GET /user/memberships/orgs",
  11350. "GET /user/migrations",
  11351. "GET /user/migrations/{migration_id}/repositories",
  11352. "GET /user/orgs",
  11353. "GET /user/packages",
  11354. "GET /user/packages/{package_type}/{package_name}/versions",
  11355. "GET /user/public_emails",
  11356. "GET /user/repos",
  11357. "GET /user/repository_invitations",
  11358. "GET /user/social_accounts",
  11359. "GET /user/ssh_signing_keys",
  11360. "GET /user/starred",
  11361. "GET /user/subscriptions",
  11362. "GET /user/teams",
  11363. "GET /users",
  11364. "GET /users/{username}/events",
  11365. "GET /users/{username}/events/orgs/{org}",
  11366. "GET /users/{username}/events/public",
  11367. "GET /users/{username}/followers",
  11368. "GET /users/{username}/following",
  11369. "GET /users/{username}/gists",
  11370. "GET /users/{username}/gpg_keys",
  11371. "GET /users/{username}/keys",
  11372. "GET /users/{username}/orgs",
  11373. "GET /users/{username}/packages",
  11374. "GET /users/{username}/projects",
  11375. "GET /users/{username}/received_events",
  11376. "GET /users/{username}/received_events/public",
  11377. "GET /users/{username}/repos",
  11378. "GET /users/{username}/social_accounts",
  11379. "GET /users/{username}/ssh_signing_keys",
  11380. "GET /users/{username}/starred",
  11381. "GET /users/{username}/subscriptions"
  11382. ];
  11383. // pkg/dist-src/paginating-endpoints.js
  11384. function isPaginatingEndpoint(arg) {
  11385. if (typeof arg === "string") {
  11386. return paginatingEndpoints.includes(arg);
  11387. } else {
  11388. return false;
  11389. }
  11390. }
  11391. // pkg/dist-src/index.js
  11392. function paginateRest(octokit) {
  11393. return {
  11394. paginate: Object.assign(paginate.bind(null, octokit), {
  11395. iterator: iterator.bind(null, octokit)
  11396. })
  11397. };
  11398. }
  11399. paginateRest.VERSION = VERSION;
  11400. // Annotate the CommonJS export names for ESM import in node:
  11401. 0 && (0);
  11402. /***/ }),
  11403. /***/ 3044:
  11404. /***/ ((module) => {
  11405. "use strict";
  11406. var __defProp = Object.defineProperty;
  11407. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  11408. var __getOwnPropNames = Object.getOwnPropertyNames;
  11409. var __hasOwnProp = Object.prototype.hasOwnProperty;
  11410. var __export = (target, all) => {
  11411. for (var name in all)
  11412. __defProp(target, name, { get: all[name], enumerable: true });
  11413. };
  11414. var __copyProps = (to, from, except, desc) => {
  11415. if (from && typeof from === "object" || typeof from === "function") {
  11416. for (let key of __getOwnPropNames(from))
  11417. if (!__hasOwnProp.call(to, key) && key !== except)
  11418. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  11419. }
  11420. return to;
  11421. };
  11422. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  11423. // pkg/dist-src/index.js
  11424. var dist_src_exports = {};
  11425. __export(dist_src_exports, {
  11426. legacyRestEndpointMethods: () => legacyRestEndpointMethods,
  11427. restEndpointMethods: () => restEndpointMethods
  11428. });
  11429. module.exports = __toCommonJS(dist_src_exports);
  11430. // pkg/dist-src/version.js
  11431. var VERSION = "7.2.3";
  11432. // pkg/dist-src/generated/endpoints.js
  11433. var Endpoints = {
  11434. actions: {
  11435. addCustomLabelsToSelfHostedRunnerForOrg: [
  11436. "POST /orgs/{org}/actions/runners/{runner_id}/labels"
  11437. ],
  11438. addCustomLabelsToSelfHostedRunnerForRepo: [
  11439. "POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  11440. ],
  11441. addSelectedRepoToOrgSecret: [
  11442. "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
  11443. ],
  11444. addSelectedRepoToOrgVariable: [
  11445. "PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
  11446. ],
  11447. addSelectedRepoToRequiredWorkflow: [
  11448. "PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
  11449. ],
  11450. approveWorkflowRun: [
  11451. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
  11452. ],
  11453. cancelWorkflowRun: [
  11454. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
  11455. ],
  11456. createEnvironmentVariable: [
  11457. "POST /repositories/{repository_id}/environments/{environment_name}/variables"
  11458. ],
  11459. createOrUpdateEnvironmentSecret: [
  11460. "PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
  11461. ],
  11462. createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
  11463. createOrUpdateRepoSecret: [
  11464. "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
  11465. ],
  11466. createOrgVariable: ["POST /orgs/{org}/actions/variables"],
  11467. createRegistrationTokenForOrg: [
  11468. "POST /orgs/{org}/actions/runners/registration-token"
  11469. ],
  11470. createRegistrationTokenForRepo: [
  11471. "POST /repos/{owner}/{repo}/actions/runners/registration-token"
  11472. ],
  11473. createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
  11474. createRemoveTokenForRepo: [
  11475. "POST /repos/{owner}/{repo}/actions/runners/remove-token"
  11476. ],
  11477. createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
  11478. createRequiredWorkflow: ["POST /orgs/{org}/actions/required_workflows"],
  11479. createWorkflowDispatch: [
  11480. "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
  11481. ],
  11482. deleteActionsCacheById: [
  11483. "DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
  11484. ],
  11485. deleteActionsCacheByKey: [
  11486. "DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
  11487. ],
  11488. deleteArtifact: [
  11489. "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
  11490. ],
  11491. deleteEnvironmentSecret: [
  11492. "DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
  11493. ],
  11494. deleteEnvironmentVariable: [
  11495. "DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
  11496. ],
  11497. deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
  11498. deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
  11499. deleteRepoSecret: [
  11500. "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
  11501. ],
  11502. deleteRepoVariable: [
  11503. "DELETE /repos/{owner}/{repo}/actions/variables/{name}"
  11504. ],
  11505. deleteRequiredWorkflow: [
  11506. "DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}"
  11507. ],
  11508. deleteSelfHostedRunnerFromOrg: [
  11509. "DELETE /orgs/{org}/actions/runners/{runner_id}"
  11510. ],
  11511. deleteSelfHostedRunnerFromRepo: [
  11512. "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
  11513. ],
  11514. deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
  11515. deleteWorkflowRunLogs: [
  11516. "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
  11517. ],
  11518. disableSelectedRepositoryGithubActionsOrganization: [
  11519. "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
  11520. ],
  11521. disableWorkflow: [
  11522. "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
  11523. ],
  11524. downloadArtifact: [
  11525. "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
  11526. ],
  11527. downloadJobLogsForWorkflowRun: [
  11528. "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
  11529. ],
  11530. downloadWorkflowRunAttemptLogs: [
  11531. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
  11532. ],
  11533. downloadWorkflowRunLogs: [
  11534. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
  11535. ],
  11536. enableSelectedRepositoryGithubActionsOrganization: [
  11537. "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
  11538. ],
  11539. enableWorkflow: [
  11540. "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
  11541. ],
  11542. generateRunnerJitconfigForOrg: [
  11543. "POST /orgs/{org}/actions/runners/generate-jitconfig"
  11544. ],
  11545. generateRunnerJitconfigForRepo: [
  11546. "POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
  11547. ],
  11548. getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
  11549. getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
  11550. getActionsCacheUsageByRepoForOrg: [
  11551. "GET /orgs/{org}/actions/cache/usage-by-repository"
  11552. ],
  11553. getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
  11554. getAllowedActionsOrganization: [
  11555. "GET /orgs/{org}/actions/permissions/selected-actions"
  11556. ],
  11557. getAllowedActionsRepository: [
  11558. "GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
  11559. ],
  11560. getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
  11561. getEnvironmentPublicKey: [
  11562. "GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
  11563. ],
  11564. getEnvironmentSecret: [
  11565. "GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
  11566. ],
  11567. getEnvironmentVariable: [
  11568. "GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
  11569. ],
  11570. getGithubActionsDefaultWorkflowPermissionsOrganization: [
  11571. "GET /orgs/{org}/actions/permissions/workflow"
  11572. ],
  11573. getGithubActionsDefaultWorkflowPermissionsRepository: [
  11574. "GET /repos/{owner}/{repo}/actions/permissions/workflow"
  11575. ],
  11576. getGithubActionsPermissionsOrganization: [
  11577. "GET /orgs/{org}/actions/permissions"
  11578. ],
  11579. getGithubActionsPermissionsRepository: [
  11580. "GET /repos/{owner}/{repo}/actions/permissions"
  11581. ],
  11582. getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
  11583. getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
  11584. getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
  11585. getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
  11586. getPendingDeploymentsForRun: [
  11587. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
  11588. ],
  11589. getRepoPermissions: [
  11590. "GET /repos/{owner}/{repo}/actions/permissions",
  11591. {},
  11592. { renamed: ["actions", "getGithubActionsPermissionsRepository"] }
  11593. ],
  11594. getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
  11595. getRepoRequiredWorkflow: [
  11596. "GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"
  11597. ],
  11598. getRepoRequiredWorkflowUsage: [
  11599. "GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"
  11600. ],
  11601. getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
  11602. getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
  11603. getRequiredWorkflow: [
  11604. "GET /orgs/{org}/actions/required_workflows/{required_workflow_id}"
  11605. ],
  11606. getReviewsForRun: [
  11607. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
  11608. ],
  11609. getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
  11610. getSelfHostedRunnerForRepo: [
  11611. "GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
  11612. ],
  11613. getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
  11614. getWorkflowAccessToRepository: [
  11615. "GET /repos/{owner}/{repo}/actions/permissions/access"
  11616. ],
  11617. getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
  11618. getWorkflowRunAttempt: [
  11619. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
  11620. ],
  11621. getWorkflowRunUsage: [
  11622. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
  11623. ],
  11624. getWorkflowUsage: [
  11625. "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
  11626. ],
  11627. listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
  11628. listEnvironmentSecrets: [
  11629. "GET /repositories/{repository_id}/environments/{environment_name}/secrets"
  11630. ],
  11631. listEnvironmentVariables: [
  11632. "GET /repositories/{repository_id}/environments/{environment_name}/variables"
  11633. ],
  11634. listJobsForWorkflowRun: [
  11635. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
  11636. ],
  11637. listJobsForWorkflowRunAttempt: [
  11638. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
  11639. ],
  11640. listLabelsForSelfHostedRunnerForOrg: [
  11641. "GET /orgs/{org}/actions/runners/{runner_id}/labels"
  11642. ],
  11643. listLabelsForSelfHostedRunnerForRepo: [
  11644. "GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  11645. ],
  11646. listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
  11647. listOrgVariables: ["GET /orgs/{org}/actions/variables"],
  11648. listRepoOrganizationSecrets: [
  11649. "GET /repos/{owner}/{repo}/actions/organization-secrets"
  11650. ],
  11651. listRepoOrganizationVariables: [
  11652. "GET /repos/{owner}/{repo}/actions/organization-variables"
  11653. ],
  11654. listRepoRequiredWorkflows: [
  11655. "GET /repos/{org}/{repo}/actions/required_workflows"
  11656. ],
  11657. listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
  11658. listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
  11659. listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
  11660. listRequiredWorkflowRuns: [
  11661. "GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"
  11662. ],
  11663. listRequiredWorkflows: ["GET /orgs/{org}/actions/required_workflows"],
  11664. listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
  11665. listRunnerApplicationsForRepo: [
  11666. "GET /repos/{owner}/{repo}/actions/runners/downloads"
  11667. ],
  11668. listSelectedReposForOrgSecret: [
  11669. "GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
  11670. ],
  11671. listSelectedReposForOrgVariable: [
  11672. "GET /orgs/{org}/actions/variables/{name}/repositories"
  11673. ],
  11674. listSelectedRepositoriesEnabledGithubActionsOrganization: [
  11675. "GET /orgs/{org}/actions/permissions/repositories"
  11676. ],
  11677. listSelectedRepositoriesRequiredWorkflow: [
  11678. "GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
  11679. ],
  11680. listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
  11681. listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
  11682. listWorkflowRunArtifacts: [
  11683. "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
  11684. ],
  11685. listWorkflowRuns: [
  11686. "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
  11687. ],
  11688. listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
  11689. reRunJobForWorkflowRun: [
  11690. "POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
  11691. ],
  11692. reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
  11693. reRunWorkflowFailedJobs: [
  11694. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
  11695. ],
  11696. removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
  11697. "DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
  11698. ],
  11699. removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
  11700. "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  11701. ],
  11702. removeCustomLabelFromSelfHostedRunnerForOrg: [
  11703. "DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
  11704. ],
  11705. removeCustomLabelFromSelfHostedRunnerForRepo: [
  11706. "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
  11707. ],
  11708. removeSelectedRepoFromOrgSecret: [
  11709. "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
  11710. ],
  11711. removeSelectedRepoFromOrgVariable: [
  11712. "DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
  11713. ],
  11714. removeSelectedRepoFromRequiredWorkflow: [
  11715. "DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"
  11716. ],
  11717. reviewCustomGatesForRun: [
  11718. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
  11719. ],
  11720. reviewPendingDeploymentsForRun: [
  11721. "POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
  11722. ],
  11723. setAllowedActionsOrganization: [
  11724. "PUT /orgs/{org}/actions/permissions/selected-actions"
  11725. ],
  11726. setAllowedActionsRepository: [
  11727. "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
  11728. ],
  11729. setCustomLabelsForSelfHostedRunnerForOrg: [
  11730. "PUT /orgs/{org}/actions/runners/{runner_id}/labels"
  11731. ],
  11732. setCustomLabelsForSelfHostedRunnerForRepo: [
  11733. "PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
  11734. ],
  11735. setGithubActionsDefaultWorkflowPermissionsOrganization: [
  11736. "PUT /orgs/{org}/actions/permissions/workflow"
  11737. ],
  11738. setGithubActionsDefaultWorkflowPermissionsRepository: [
  11739. "PUT /repos/{owner}/{repo}/actions/permissions/workflow"
  11740. ],
  11741. setGithubActionsPermissionsOrganization: [
  11742. "PUT /orgs/{org}/actions/permissions"
  11743. ],
  11744. setGithubActionsPermissionsRepository: [
  11745. "PUT /repos/{owner}/{repo}/actions/permissions"
  11746. ],
  11747. setSelectedReposForOrgSecret: [
  11748. "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
  11749. ],
  11750. setSelectedReposForOrgVariable: [
  11751. "PUT /orgs/{org}/actions/variables/{name}/repositories"
  11752. ],
  11753. setSelectedReposToRequiredWorkflow: [
  11754. "PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"
  11755. ],
  11756. setSelectedRepositoriesEnabledGithubActionsOrganization: [
  11757. "PUT /orgs/{org}/actions/permissions/repositories"
  11758. ],
  11759. setWorkflowAccessToRepository: [
  11760. "PUT /repos/{owner}/{repo}/actions/permissions/access"
  11761. ],
  11762. updateEnvironmentVariable: [
  11763. "PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
  11764. ],
  11765. updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
  11766. updateRepoVariable: [
  11767. "PATCH /repos/{owner}/{repo}/actions/variables/{name}"
  11768. ],
  11769. updateRequiredWorkflow: [
  11770. "PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}"
  11771. ]
  11772. },
  11773. activity: {
  11774. checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
  11775. deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
  11776. deleteThreadSubscription: [
  11777. "DELETE /notifications/threads/{thread_id}/subscription"
  11778. ],
  11779. getFeeds: ["GET /feeds"],
  11780. getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
  11781. getThread: ["GET /notifications/threads/{thread_id}"],
  11782. getThreadSubscriptionForAuthenticatedUser: [
  11783. "GET /notifications/threads/{thread_id}/subscription"
  11784. ],
  11785. listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
  11786. listNotificationsForAuthenticatedUser: ["GET /notifications"],
  11787. listOrgEventsForAuthenticatedUser: [
  11788. "GET /users/{username}/events/orgs/{org}"
  11789. ],
  11790. listPublicEvents: ["GET /events"],
  11791. listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
  11792. listPublicEventsForUser: ["GET /users/{username}/events/public"],
  11793. listPublicOrgEvents: ["GET /orgs/{org}/events"],
  11794. listReceivedEventsForUser: ["GET /users/{username}/received_events"],
  11795. listReceivedPublicEventsForUser: [
  11796. "GET /users/{username}/received_events/public"
  11797. ],
  11798. listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
  11799. listRepoNotificationsForAuthenticatedUser: [
  11800. "GET /repos/{owner}/{repo}/notifications"
  11801. ],
  11802. listReposStarredByAuthenticatedUser: ["GET /user/starred"],
  11803. listReposStarredByUser: ["GET /users/{username}/starred"],
  11804. listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
  11805. listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
  11806. listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
  11807. listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
  11808. markNotificationsAsRead: ["PUT /notifications"],
  11809. markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
  11810. markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
  11811. setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
  11812. setThreadSubscription: [
  11813. "PUT /notifications/threads/{thread_id}/subscription"
  11814. ],
  11815. starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
  11816. unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
  11817. },
  11818. apps: {
  11819. addRepoToInstallation: [
  11820. "PUT /user/installations/{installation_id}/repositories/{repository_id}",
  11821. {},
  11822. { renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
  11823. ],
  11824. addRepoToInstallationForAuthenticatedUser: [
  11825. "PUT /user/installations/{installation_id}/repositories/{repository_id}"
  11826. ],
  11827. checkToken: ["POST /applications/{client_id}/token"],
  11828. createFromManifest: ["POST /app-manifests/{code}/conversions"],
  11829. createInstallationAccessToken: [
  11830. "POST /app/installations/{installation_id}/access_tokens"
  11831. ],
  11832. deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
  11833. deleteInstallation: ["DELETE /app/installations/{installation_id}"],
  11834. deleteToken: ["DELETE /applications/{client_id}/token"],
  11835. getAuthenticated: ["GET /app"],
  11836. getBySlug: ["GET /apps/{app_slug}"],
  11837. getInstallation: ["GET /app/installations/{installation_id}"],
  11838. getOrgInstallation: ["GET /orgs/{org}/installation"],
  11839. getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
  11840. getSubscriptionPlanForAccount: [
  11841. "GET /marketplace_listing/accounts/{account_id}"
  11842. ],
  11843. getSubscriptionPlanForAccountStubbed: [
  11844. "GET /marketplace_listing/stubbed/accounts/{account_id}"
  11845. ],
  11846. getUserInstallation: ["GET /users/{username}/installation"],
  11847. getWebhookConfigForApp: ["GET /app/hook/config"],
  11848. getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
  11849. listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
  11850. listAccountsForPlanStubbed: [
  11851. "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
  11852. ],
  11853. listInstallationReposForAuthenticatedUser: [
  11854. "GET /user/installations/{installation_id}/repositories"
  11855. ],
  11856. listInstallationRequestsForAuthenticatedApp: [
  11857. "GET /app/installation-requests"
  11858. ],
  11859. listInstallations: ["GET /app/installations"],
  11860. listInstallationsForAuthenticatedUser: ["GET /user/installations"],
  11861. listPlans: ["GET /marketplace_listing/plans"],
  11862. listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
  11863. listReposAccessibleToInstallation: ["GET /installation/repositories"],
  11864. listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
  11865. listSubscriptionsForAuthenticatedUserStubbed: [
  11866. "GET /user/marketplace_purchases/stubbed"
  11867. ],
  11868. listWebhookDeliveries: ["GET /app/hook/deliveries"],
  11869. redeliverWebhookDelivery: [
  11870. "POST /app/hook/deliveries/{delivery_id}/attempts"
  11871. ],
  11872. removeRepoFromInstallation: [
  11873. "DELETE /user/installations/{installation_id}/repositories/{repository_id}",
  11874. {},
  11875. { renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
  11876. ],
  11877. removeRepoFromInstallationForAuthenticatedUser: [
  11878. "DELETE /user/installations/{installation_id}/repositories/{repository_id}"
  11879. ],
  11880. resetToken: ["PATCH /applications/{client_id}/token"],
  11881. revokeInstallationAccessToken: ["DELETE /installation/token"],
  11882. scopeToken: ["POST /applications/{client_id}/token/scoped"],
  11883. suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
  11884. unsuspendInstallation: [
  11885. "DELETE /app/installations/{installation_id}/suspended"
  11886. ],
  11887. updateWebhookConfigForApp: ["PATCH /app/hook/config"]
  11888. },
  11889. billing: {
  11890. getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
  11891. getGithubActionsBillingUser: [
  11892. "GET /users/{username}/settings/billing/actions"
  11893. ],
  11894. getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
  11895. getGithubPackagesBillingUser: [
  11896. "GET /users/{username}/settings/billing/packages"
  11897. ],
  11898. getSharedStorageBillingOrg: [
  11899. "GET /orgs/{org}/settings/billing/shared-storage"
  11900. ],
  11901. getSharedStorageBillingUser: [
  11902. "GET /users/{username}/settings/billing/shared-storage"
  11903. ]
  11904. },
  11905. checks: {
  11906. create: ["POST /repos/{owner}/{repo}/check-runs"],
  11907. createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
  11908. get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
  11909. getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
  11910. listAnnotations: [
  11911. "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
  11912. ],
  11913. listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
  11914. listForSuite: [
  11915. "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
  11916. ],
  11917. listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
  11918. rerequestRun: [
  11919. "POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
  11920. ],
  11921. rerequestSuite: [
  11922. "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
  11923. ],
  11924. setSuitesPreferences: [
  11925. "PATCH /repos/{owner}/{repo}/check-suites/preferences"
  11926. ],
  11927. update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
  11928. },
  11929. codeScanning: {
  11930. deleteAnalysis: [
  11931. "DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
  11932. ],
  11933. getAlert: [
  11934. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
  11935. {},
  11936. { renamedParameters: { alert_id: "alert_number" } }
  11937. ],
  11938. getAnalysis: [
  11939. "GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
  11940. ],
  11941. getCodeqlDatabase: [
  11942. "GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
  11943. ],
  11944. getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
  11945. getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
  11946. listAlertInstances: [
  11947. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
  11948. ],
  11949. listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
  11950. listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
  11951. listAlertsInstances: [
  11952. "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
  11953. {},
  11954. { renamed: ["codeScanning", "listAlertInstances"] }
  11955. ],
  11956. listCodeqlDatabases: [
  11957. "GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
  11958. ],
  11959. listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
  11960. updateAlert: [
  11961. "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
  11962. ],
  11963. updateDefaultSetup: [
  11964. "PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
  11965. ],
  11966. uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
  11967. },
  11968. codesOfConduct: {
  11969. getAllCodesOfConduct: ["GET /codes_of_conduct"],
  11970. getConductCode: ["GET /codes_of_conduct/{key}"]
  11971. },
  11972. codespaces: {
  11973. addRepositoryForSecretForAuthenticatedUser: [
  11974. "PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  11975. ],
  11976. addSelectedRepoToOrgSecret: [
  11977. "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  11978. ],
  11979. codespaceMachinesForAuthenticatedUser: [
  11980. "GET /user/codespaces/{codespace_name}/machines"
  11981. ],
  11982. createForAuthenticatedUser: ["POST /user/codespaces"],
  11983. createOrUpdateOrgSecret: [
  11984. "PUT /orgs/{org}/codespaces/secrets/{secret_name}"
  11985. ],
  11986. createOrUpdateRepoSecret: [
  11987. "PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
  11988. ],
  11989. createOrUpdateSecretForAuthenticatedUser: [
  11990. "PUT /user/codespaces/secrets/{secret_name}"
  11991. ],
  11992. createWithPrForAuthenticatedUser: [
  11993. "POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
  11994. ],
  11995. createWithRepoForAuthenticatedUser: [
  11996. "POST /repos/{owner}/{repo}/codespaces"
  11997. ],
  11998. deleteCodespacesBillingUsers: [
  11999. "DELETE /orgs/{org}/codespaces/billing/selected_users"
  12000. ],
  12001. deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
  12002. deleteFromOrganization: [
  12003. "DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
  12004. ],
  12005. deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
  12006. deleteRepoSecret: [
  12007. "DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
  12008. ],
  12009. deleteSecretForAuthenticatedUser: [
  12010. "DELETE /user/codespaces/secrets/{secret_name}"
  12011. ],
  12012. exportForAuthenticatedUser: [
  12013. "POST /user/codespaces/{codespace_name}/exports"
  12014. ],
  12015. getCodespacesForUserInOrg: [
  12016. "GET /orgs/{org}/members/{username}/codespaces"
  12017. ],
  12018. getExportDetailsForAuthenticatedUser: [
  12019. "GET /user/codespaces/{codespace_name}/exports/{export_id}"
  12020. ],
  12021. getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
  12022. getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
  12023. getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
  12024. getPublicKeyForAuthenticatedUser: [
  12025. "GET /user/codespaces/secrets/public-key"
  12026. ],
  12027. getRepoPublicKey: [
  12028. "GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
  12029. ],
  12030. getRepoSecret: [
  12031. "GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
  12032. ],
  12033. getSecretForAuthenticatedUser: [
  12034. "GET /user/codespaces/secrets/{secret_name}"
  12035. ],
  12036. listDevcontainersInRepositoryForAuthenticatedUser: [
  12037. "GET /repos/{owner}/{repo}/codespaces/devcontainers"
  12038. ],
  12039. listForAuthenticatedUser: ["GET /user/codespaces"],
  12040. listInOrganization: [
  12041. "GET /orgs/{org}/codespaces",
  12042. {},
  12043. { renamedParameters: { org_id: "org" } }
  12044. ],
  12045. listInRepositoryForAuthenticatedUser: [
  12046. "GET /repos/{owner}/{repo}/codespaces"
  12047. ],
  12048. listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
  12049. listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
  12050. listRepositoriesForSecretForAuthenticatedUser: [
  12051. "GET /user/codespaces/secrets/{secret_name}/repositories"
  12052. ],
  12053. listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
  12054. listSelectedReposForOrgSecret: [
  12055. "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
  12056. ],
  12057. preFlightWithRepoForAuthenticatedUser: [
  12058. "GET /repos/{owner}/{repo}/codespaces/new"
  12059. ],
  12060. publishForAuthenticatedUser: [
  12061. "POST /user/codespaces/{codespace_name}/publish"
  12062. ],
  12063. removeRepositoryForSecretForAuthenticatedUser: [
  12064. "DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  12065. ],
  12066. removeSelectedRepoFromOrgSecret: [
  12067. "DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
  12068. ],
  12069. repoMachinesForAuthenticatedUser: [
  12070. "GET /repos/{owner}/{repo}/codespaces/machines"
  12071. ],
  12072. setCodespacesBilling: ["PUT /orgs/{org}/codespaces/billing"],
  12073. setCodespacesBillingUsers: [
  12074. "POST /orgs/{org}/codespaces/billing/selected_users"
  12075. ],
  12076. setRepositoriesForSecretForAuthenticatedUser: [
  12077. "PUT /user/codespaces/secrets/{secret_name}/repositories"
  12078. ],
  12079. setSelectedReposForOrgSecret: [
  12080. "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
  12081. ],
  12082. startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
  12083. stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
  12084. stopInOrganization: [
  12085. "POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
  12086. ],
  12087. updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
  12088. },
  12089. dependabot: {
  12090. addSelectedRepoToOrgSecret: [
  12091. "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
  12092. ],
  12093. createOrUpdateOrgSecret: [
  12094. "PUT /orgs/{org}/dependabot/secrets/{secret_name}"
  12095. ],
  12096. createOrUpdateRepoSecret: [
  12097. "PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
  12098. ],
  12099. deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
  12100. deleteRepoSecret: [
  12101. "DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
  12102. ],
  12103. getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
  12104. getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
  12105. getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
  12106. getRepoPublicKey: [
  12107. "GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
  12108. ],
  12109. getRepoSecret: [
  12110. "GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
  12111. ],
  12112. listAlertsForEnterprise: [
  12113. "GET /enterprises/{enterprise}/dependabot/alerts"
  12114. ],
  12115. listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
  12116. listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
  12117. listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
  12118. listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
  12119. listSelectedReposForOrgSecret: [
  12120. "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
  12121. ],
  12122. removeSelectedRepoFromOrgSecret: [
  12123. "DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
  12124. ],
  12125. setSelectedReposForOrgSecret: [
  12126. "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
  12127. ],
  12128. updateAlert: [
  12129. "PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
  12130. ]
  12131. },
  12132. dependencyGraph: {
  12133. createRepositorySnapshot: [
  12134. "POST /repos/{owner}/{repo}/dependency-graph/snapshots"
  12135. ],
  12136. diffRange: [
  12137. "GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
  12138. ],
  12139. exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
  12140. },
  12141. emojis: { get: ["GET /emojis"] },
  12142. gists: {
  12143. checkIsStarred: ["GET /gists/{gist_id}/star"],
  12144. create: ["POST /gists"],
  12145. createComment: ["POST /gists/{gist_id}/comments"],
  12146. delete: ["DELETE /gists/{gist_id}"],
  12147. deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
  12148. fork: ["POST /gists/{gist_id}/forks"],
  12149. get: ["GET /gists/{gist_id}"],
  12150. getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
  12151. getRevision: ["GET /gists/{gist_id}/{sha}"],
  12152. list: ["GET /gists"],
  12153. listComments: ["GET /gists/{gist_id}/comments"],
  12154. listCommits: ["GET /gists/{gist_id}/commits"],
  12155. listForUser: ["GET /users/{username}/gists"],
  12156. listForks: ["GET /gists/{gist_id}/forks"],
  12157. listPublic: ["GET /gists/public"],
  12158. listStarred: ["GET /gists/starred"],
  12159. star: ["PUT /gists/{gist_id}/star"],
  12160. unstar: ["DELETE /gists/{gist_id}/star"],
  12161. update: ["PATCH /gists/{gist_id}"],
  12162. updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
  12163. },
  12164. git: {
  12165. createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
  12166. createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
  12167. createRef: ["POST /repos/{owner}/{repo}/git/refs"],
  12168. createTag: ["POST /repos/{owner}/{repo}/git/tags"],
  12169. createTree: ["POST /repos/{owner}/{repo}/git/trees"],
  12170. deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
  12171. getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
  12172. getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
  12173. getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
  12174. getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
  12175. getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
  12176. listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
  12177. updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
  12178. },
  12179. gitignore: {
  12180. getAllTemplates: ["GET /gitignore/templates"],
  12181. getTemplate: ["GET /gitignore/templates/{name}"]
  12182. },
  12183. interactions: {
  12184. getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
  12185. getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
  12186. getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
  12187. getRestrictionsForYourPublicRepos: [
  12188. "GET /user/interaction-limits",
  12189. {},
  12190. { renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
  12191. ],
  12192. removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
  12193. removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
  12194. removeRestrictionsForRepo: [
  12195. "DELETE /repos/{owner}/{repo}/interaction-limits"
  12196. ],
  12197. removeRestrictionsForYourPublicRepos: [
  12198. "DELETE /user/interaction-limits",
  12199. {},
  12200. { renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
  12201. ],
  12202. setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
  12203. setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
  12204. setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
  12205. setRestrictionsForYourPublicRepos: [
  12206. "PUT /user/interaction-limits",
  12207. {},
  12208. { renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
  12209. ]
  12210. },
  12211. issues: {
  12212. addAssignees: [
  12213. "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
  12214. ],
  12215. addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
  12216. checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
  12217. checkUserCanBeAssignedToIssue: [
  12218. "GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
  12219. ],
  12220. create: ["POST /repos/{owner}/{repo}/issues"],
  12221. createComment: [
  12222. "POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
  12223. ],
  12224. createLabel: ["POST /repos/{owner}/{repo}/labels"],
  12225. createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
  12226. deleteComment: [
  12227. "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
  12228. ],
  12229. deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
  12230. deleteMilestone: [
  12231. "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
  12232. ],
  12233. get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
  12234. getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
  12235. getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
  12236. getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
  12237. getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
  12238. list: ["GET /issues"],
  12239. listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
  12240. listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
  12241. listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
  12242. listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
  12243. listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
  12244. listEventsForTimeline: [
  12245. "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
  12246. ],
  12247. listForAuthenticatedUser: ["GET /user/issues"],
  12248. listForOrg: ["GET /orgs/{org}/issues"],
  12249. listForRepo: ["GET /repos/{owner}/{repo}/issues"],
  12250. listLabelsForMilestone: [
  12251. "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
  12252. ],
  12253. listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
  12254. listLabelsOnIssue: [
  12255. "GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
  12256. ],
  12257. listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
  12258. lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
  12259. removeAllLabels: [
  12260. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
  12261. ],
  12262. removeAssignees: [
  12263. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
  12264. ],
  12265. removeLabel: [
  12266. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
  12267. ],
  12268. setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
  12269. unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
  12270. update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
  12271. updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
  12272. updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
  12273. updateMilestone: [
  12274. "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
  12275. ]
  12276. },
  12277. licenses: {
  12278. get: ["GET /licenses/{license}"],
  12279. getAllCommonlyUsed: ["GET /licenses"],
  12280. getForRepo: ["GET /repos/{owner}/{repo}/license"]
  12281. },
  12282. markdown: {
  12283. render: ["POST /markdown"],
  12284. renderRaw: [
  12285. "POST /markdown/raw",
  12286. { headers: { "content-type": "text/plain; charset=utf-8" } }
  12287. ]
  12288. },
  12289. meta: {
  12290. get: ["GET /meta"],
  12291. getAllVersions: ["GET /versions"],
  12292. getOctocat: ["GET /octocat"],
  12293. getZen: ["GET /zen"],
  12294. root: ["GET /"]
  12295. },
  12296. migrations: {
  12297. cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
  12298. deleteArchiveForAuthenticatedUser: [
  12299. "DELETE /user/migrations/{migration_id}/archive"
  12300. ],
  12301. deleteArchiveForOrg: [
  12302. "DELETE /orgs/{org}/migrations/{migration_id}/archive"
  12303. ],
  12304. downloadArchiveForOrg: [
  12305. "GET /orgs/{org}/migrations/{migration_id}/archive"
  12306. ],
  12307. getArchiveForAuthenticatedUser: [
  12308. "GET /user/migrations/{migration_id}/archive"
  12309. ],
  12310. getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
  12311. getImportStatus: ["GET /repos/{owner}/{repo}/import"],
  12312. getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
  12313. getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
  12314. getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
  12315. listForAuthenticatedUser: ["GET /user/migrations"],
  12316. listForOrg: ["GET /orgs/{org}/migrations"],
  12317. listReposForAuthenticatedUser: [
  12318. "GET /user/migrations/{migration_id}/repositories"
  12319. ],
  12320. listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
  12321. listReposForUser: [
  12322. "GET /user/migrations/{migration_id}/repositories",
  12323. {},
  12324. { renamed: ["migrations", "listReposForAuthenticatedUser"] }
  12325. ],
  12326. mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
  12327. setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
  12328. startForAuthenticatedUser: ["POST /user/migrations"],
  12329. startForOrg: ["POST /orgs/{org}/migrations"],
  12330. startImport: ["PUT /repos/{owner}/{repo}/import"],
  12331. unlockRepoForAuthenticatedUser: [
  12332. "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
  12333. ],
  12334. unlockRepoForOrg: [
  12335. "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
  12336. ],
  12337. updateImport: ["PATCH /repos/{owner}/{repo}/import"]
  12338. },
  12339. orgs: {
  12340. addSecurityManagerTeam: [
  12341. "PUT /orgs/{org}/security-managers/teams/{team_slug}"
  12342. ],
  12343. blockUser: ["PUT /orgs/{org}/blocks/{username}"],
  12344. cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
  12345. checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
  12346. checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
  12347. checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
  12348. convertMemberToOutsideCollaborator: [
  12349. "PUT /orgs/{org}/outside_collaborators/{username}"
  12350. ],
  12351. createInvitation: ["POST /orgs/{org}/invitations"],
  12352. createWebhook: ["POST /orgs/{org}/hooks"],
  12353. delete: ["DELETE /orgs/{org}"],
  12354. deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
  12355. enableOrDisableSecurityProductOnAllOrgRepos: [
  12356. "POST /orgs/{org}/{security_product}/{enablement}"
  12357. ],
  12358. get: ["GET /orgs/{org}"],
  12359. getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
  12360. getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
  12361. getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
  12362. getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
  12363. getWebhookDelivery: [
  12364. "GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
  12365. ],
  12366. list: ["GET /organizations"],
  12367. listAppInstallations: ["GET /orgs/{org}/installations"],
  12368. listBlockedUsers: ["GET /orgs/{org}/blocks"],
  12369. listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
  12370. listForAuthenticatedUser: ["GET /user/orgs"],
  12371. listForUser: ["GET /users/{username}/orgs"],
  12372. listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
  12373. listMembers: ["GET /orgs/{org}/members"],
  12374. listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
  12375. listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
  12376. listPatGrantRepositories: [
  12377. "GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories"
  12378. ],
  12379. listPatGrantRequestRepositories: [
  12380. "GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories"
  12381. ],
  12382. listPatGrantRequests: [
  12383. "GET /organizations/{org}/personal-access-token-requests"
  12384. ],
  12385. listPatGrants: ["GET /organizations/{org}/personal-access-tokens"],
  12386. listPendingInvitations: ["GET /orgs/{org}/invitations"],
  12387. listPublicMembers: ["GET /orgs/{org}/public_members"],
  12388. listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
  12389. listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
  12390. listWebhooks: ["GET /orgs/{org}/hooks"],
  12391. pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
  12392. redeliverWebhookDelivery: [
  12393. "POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
  12394. ],
  12395. removeMember: ["DELETE /orgs/{org}/members/{username}"],
  12396. removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
  12397. removeOutsideCollaborator: [
  12398. "DELETE /orgs/{org}/outside_collaborators/{username}"
  12399. ],
  12400. removePublicMembershipForAuthenticatedUser: [
  12401. "DELETE /orgs/{org}/public_members/{username}"
  12402. ],
  12403. removeSecurityManagerTeam: [
  12404. "DELETE /orgs/{org}/security-managers/teams/{team_slug}"
  12405. ],
  12406. reviewPatGrantRequest: [
  12407. "POST /organizations/{org}/personal-access-token-requests/{pat_request_id}"
  12408. ],
  12409. reviewPatGrantRequestsInBulk: [
  12410. "POST /organizations/{org}/personal-access-token-requests"
  12411. ],
  12412. setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
  12413. setPublicMembershipForAuthenticatedUser: [
  12414. "PUT /orgs/{org}/public_members/{username}"
  12415. ],
  12416. unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
  12417. update: ["PATCH /orgs/{org}"],
  12418. updateMembershipForAuthenticatedUser: [
  12419. "PATCH /user/memberships/orgs/{org}"
  12420. ],
  12421. updatePatAccess: [
  12422. "POST /organizations/{org}/personal-access-tokens/{pat_id}"
  12423. ],
  12424. updatePatAccesses: ["POST /organizations/{org}/personal-access-tokens"],
  12425. updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
  12426. updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
  12427. },
  12428. packages: {
  12429. deletePackageForAuthenticatedUser: [
  12430. "DELETE /user/packages/{package_type}/{package_name}"
  12431. ],
  12432. deletePackageForOrg: [
  12433. "DELETE /orgs/{org}/packages/{package_type}/{package_name}"
  12434. ],
  12435. deletePackageForUser: [
  12436. "DELETE /users/{username}/packages/{package_type}/{package_name}"
  12437. ],
  12438. deletePackageVersionForAuthenticatedUser: [
  12439. "DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
  12440. ],
  12441. deletePackageVersionForOrg: [
  12442. "DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  12443. ],
  12444. deletePackageVersionForUser: [
  12445. "DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  12446. ],
  12447. getAllPackageVersionsForAPackageOwnedByAnOrg: [
  12448. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
  12449. {},
  12450. { renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
  12451. ],
  12452. getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
  12453. "GET /user/packages/{package_type}/{package_name}/versions",
  12454. {},
  12455. {
  12456. renamed: [
  12457. "packages",
  12458. "getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
  12459. ]
  12460. }
  12461. ],
  12462. getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
  12463. "GET /user/packages/{package_type}/{package_name}/versions"
  12464. ],
  12465. getAllPackageVersionsForPackageOwnedByOrg: [
  12466. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
  12467. ],
  12468. getAllPackageVersionsForPackageOwnedByUser: [
  12469. "GET /users/{username}/packages/{package_type}/{package_name}/versions"
  12470. ],
  12471. getPackageForAuthenticatedUser: [
  12472. "GET /user/packages/{package_type}/{package_name}"
  12473. ],
  12474. getPackageForOrganization: [
  12475. "GET /orgs/{org}/packages/{package_type}/{package_name}"
  12476. ],
  12477. getPackageForUser: [
  12478. "GET /users/{username}/packages/{package_type}/{package_name}"
  12479. ],
  12480. getPackageVersionForAuthenticatedUser: [
  12481. "GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
  12482. ],
  12483. getPackageVersionForOrganization: [
  12484. "GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  12485. ],
  12486. getPackageVersionForUser: [
  12487. "GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
  12488. ],
  12489. listDockerMigrationConflictingPackagesForAuthenticatedUser: [
  12490. "GET /user/docker/conflicts"
  12491. ],
  12492. listDockerMigrationConflictingPackagesForOrganization: [
  12493. "GET /orgs/{org}/docker/conflicts"
  12494. ],
  12495. listDockerMigrationConflictingPackagesForUser: [
  12496. "GET /users/{username}/docker/conflicts"
  12497. ],
  12498. listPackagesForAuthenticatedUser: ["GET /user/packages"],
  12499. listPackagesForOrganization: ["GET /orgs/{org}/packages"],
  12500. listPackagesForUser: ["GET /users/{username}/packages"],
  12501. restorePackageForAuthenticatedUser: [
  12502. "POST /user/packages/{package_type}/{package_name}/restore{?token}"
  12503. ],
  12504. restorePackageForOrg: [
  12505. "POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
  12506. ],
  12507. restorePackageForUser: [
  12508. "POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
  12509. ],
  12510. restorePackageVersionForAuthenticatedUser: [
  12511. "POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
  12512. ],
  12513. restorePackageVersionForOrg: [
  12514. "POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
  12515. ],
  12516. restorePackageVersionForUser: [
  12517. "POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
  12518. ]
  12519. },
  12520. projects: {
  12521. addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
  12522. createCard: ["POST /projects/columns/{column_id}/cards"],
  12523. createColumn: ["POST /projects/{project_id}/columns"],
  12524. createForAuthenticatedUser: ["POST /user/projects"],
  12525. createForOrg: ["POST /orgs/{org}/projects"],
  12526. createForRepo: ["POST /repos/{owner}/{repo}/projects"],
  12527. delete: ["DELETE /projects/{project_id}"],
  12528. deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
  12529. deleteColumn: ["DELETE /projects/columns/{column_id}"],
  12530. get: ["GET /projects/{project_id}"],
  12531. getCard: ["GET /projects/columns/cards/{card_id}"],
  12532. getColumn: ["GET /projects/columns/{column_id}"],
  12533. getPermissionForUser: [
  12534. "GET /projects/{project_id}/collaborators/{username}/permission"
  12535. ],
  12536. listCards: ["GET /projects/columns/{column_id}/cards"],
  12537. listCollaborators: ["GET /projects/{project_id}/collaborators"],
  12538. listColumns: ["GET /projects/{project_id}/columns"],
  12539. listForOrg: ["GET /orgs/{org}/projects"],
  12540. listForRepo: ["GET /repos/{owner}/{repo}/projects"],
  12541. listForUser: ["GET /users/{username}/projects"],
  12542. moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
  12543. moveColumn: ["POST /projects/columns/{column_id}/moves"],
  12544. removeCollaborator: [
  12545. "DELETE /projects/{project_id}/collaborators/{username}"
  12546. ],
  12547. update: ["PATCH /projects/{project_id}"],
  12548. updateCard: ["PATCH /projects/columns/cards/{card_id}"],
  12549. updateColumn: ["PATCH /projects/columns/{column_id}"]
  12550. },
  12551. pulls: {
  12552. checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
  12553. create: ["POST /repos/{owner}/{repo}/pulls"],
  12554. createReplyForReviewComment: [
  12555. "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
  12556. ],
  12557. createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
  12558. createReviewComment: [
  12559. "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
  12560. ],
  12561. deletePendingReview: [
  12562. "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
  12563. ],
  12564. deleteReviewComment: [
  12565. "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
  12566. ],
  12567. dismissReview: [
  12568. "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
  12569. ],
  12570. get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
  12571. getReview: [
  12572. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
  12573. ],
  12574. getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
  12575. list: ["GET /repos/{owner}/{repo}/pulls"],
  12576. listCommentsForReview: [
  12577. "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
  12578. ],
  12579. listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
  12580. listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
  12581. listRequestedReviewers: [
  12582. "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
  12583. ],
  12584. listReviewComments: [
  12585. "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
  12586. ],
  12587. listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
  12588. listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
  12589. merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
  12590. removeRequestedReviewers: [
  12591. "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
  12592. ],
  12593. requestReviewers: [
  12594. "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
  12595. ],
  12596. submitReview: [
  12597. "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
  12598. ],
  12599. update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
  12600. updateBranch: [
  12601. "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
  12602. ],
  12603. updateReview: [
  12604. "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
  12605. ],
  12606. updateReviewComment: [
  12607. "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
  12608. ]
  12609. },
  12610. rateLimit: { get: ["GET /rate_limit"] },
  12611. reactions: {
  12612. createForCommitComment: [
  12613. "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
  12614. ],
  12615. createForIssue: [
  12616. "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
  12617. ],
  12618. createForIssueComment: [
  12619. "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
  12620. ],
  12621. createForPullRequestReviewComment: [
  12622. "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
  12623. ],
  12624. createForRelease: [
  12625. "POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
  12626. ],
  12627. createForTeamDiscussionCommentInOrg: [
  12628. "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
  12629. ],
  12630. createForTeamDiscussionInOrg: [
  12631. "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
  12632. ],
  12633. deleteForCommitComment: [
  12634. "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
  12635. ],
  12636. deleteForIssue: [
  12637. "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
  12638. ],
  12639. deleteForIssueComment: [
  12640. "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
  12641. ],
  12642. deleteForPullRequestComment: [
  12643. "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
  12644. ],
  12645. deleteForRelease: [
  12646. "DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
  12647. ],
  12648. deleteForTeamDiscussion: [
  12649. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
  12650. ],
  12651. deleteForTeamDiscussionComment: [
  12652. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
  12653. ],
  12654. listForCommitComment: [
  12655. "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
  12656. ],
  12657. listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
  12658. listForIssueComment: [
  12659. "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
  12660. ],
  12661. listForPullRequestReviewComment: [
  12662. "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
  12663. ],
  12664. listForRelease: [
  12665. "GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
  12666. ],
  12667. listForTeamDiscussionCommentInOrg: [
  12668. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
  12669. ],
  12670. listForTeamDiscussionInOrg: [
  12671. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
  12672. ]
  12673. },
  12674. repos: {
  12675. acceptInvitation: [
  12676. "PATCH /user/repository_invitations/{invitation_id}",
  12677. {},
  12678. { renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
  12679. ],
  12680. acceptInvitationForAuthenticatedUser: [
  12681. "PATCH /user/repository_invitations/{invitation_id}"
  12682. ],
  12683. addAppAccessRestrictions: [
  12684. "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
  12685. {},
  12686. { mapToData: "apps" }
  12687. ],
  12688. addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
  12689. addStatusCheckContexts: [
  12690. "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
  12691. {},
  12692. { mapToData: "contexts" }
  12693. ],
  12694. addTeamAccessRestrictions: [
  12695. "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
  12696. {},
  12697. { mapToData: "teams" }
  12698. ],
  12699. addUserAccessRestrictions: [
  12700. "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
  12701. {},
  12702. { mapToData: "users" }
  12703. ],
  12704. checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
  12705. checkVulnerabilityAlerts: [
  12706. "GET /repos/{owner}/{repo}/vulnerability-alerts"
  12707. ],
  12708. codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
  12709. compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
  12710. compareCommitsWithBasehead: [
  12711. "GET /repos/{owner}/{repo}/compare/{basehead}"
  12712. ],
  12713. createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
  12714. createCommitComment: [
  12715. "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
  12716. ],
  12717. createCommitSignatureProtection: [
  12718. "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
  12719. ],
  12720. createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
  12721. createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
  12722. createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
  12723. createDeploymentBranchPolicy: [
  12724. "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
  12725. ],
  12726. createDeploymentProtectionRule: [
  12727. "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
  12728. ],
  12729. createDeploymentStatus: [
  12730. "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
  12731. ],
  12732. createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
  12733. createForAuthenticatedUser: ["POST /user/repos"],
  12734. createFork: ["POST /repos/{owner}/{repo}/forks"],
  12735. createInOrg: ["POST /orgs/{org}/repos"],
  12736. createOrUpdateEnvironment: [
  12737. "PUT /repos/{owner}/{repo}/environments/{environment_name}"
  12738. ],
  12739. createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
  12740. createOrgRuleset: ["POST /orgs/{org}/rulesets"],
  12741. createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
  12742. createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
  12743. createRelease: ["POST /repos/{owner}/{repo}/releases"],
  12744. createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
  12745. createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
  12746. createUsingTemplate: [
  12747. "POST /repos/{template_owner}/{template_repo}/generate"
  12748. ],
  12749. createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
  12750. declineInvitation: [
  12751. "DELETE /user/repository_invitations/{invitation_id}",
  12752. {},
  12753. { renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
  12754. ],
  12755. declineInvitationForAuthenticatedUser: [
  12756. "DELETE /user/repository_invitations/{invitation_id}"
  12757. ],
  12758. delete: ["DELETE /repos/{owner}/{repo}"],
  12759. deleteAccessRestrictions: [
  12760. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
  12761. ],
  12762. deleteAdminBranchProtection: [
  12763. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
  12764. ],
  12765. deleteAnEnvironment: [
  12766. "DELETE /repos/{owner}/{repo}/environments/{environment_name}"
  12767. ],
  12768. deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
  12769. deleteBranchProtection: [
  12770. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
  12771. ],
  12772. deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
  12773. deleteCommitSignatureProtection: [
  12774. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
  12775. ],
  12776. deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
  12777. deleteDeployment: [
  12778. "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
  12779. ],
  12780. deleteDeploymentBranchPolicy: [
  12781. "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
  12782. ],
  12783. deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
  12784. deleteInvitation: [
  12785. "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
  12786. ],
  12787. deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
  12788. deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
  12789. deletePullRequestReviewProtection: [
  12790. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
  12791. ],
  12792. deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
  12793. deleteReleaseAsset: [
  12794. "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
  12795. ],
  12796. deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
  12797. deleteTagProtection: [
  12798. "DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
  12799. ],
  12800. deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
  12801. disableAutomatedSecurityFixes: [
  12802. "DELETE /repos/{owner}/{repo}/automated-security-fixes"
  12803. ],
  12804. disableDeploymentProtectionRule: [
  12805. "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
  12806. ],
  12807. disableLfsForRepo: ["DELETE /repos/{owner}/{repo}/lfs"],
  12808. disableVulnerabilityAlerts: [
  12809. "DELETE /repos/{owner}/{repo}/vulnerability-alerts"
  12810. ],
  12811. downloadArchive: [
  12812. "GET /repos/{owner}/{repo}/zipball/{ref}",
  12813. {},
  12814. { renamed: ["repos", "downloadZipballArchive"] }
  12815. ],
  12816. downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
  12817. downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
  12818. enableAutomatedSecurityFixes: [
  12819. "PUT /repos/{owner}/{repo}/automated-security-fixes"
  12820. ],
  12821. enableLfsForRepo: ["PUT /repos/{owner}/{repo}/lfs"],
  12822. enableVulnerabilityAlerts: [
  12823. "PUT /repos/{owner}/{repo}/vulnerability-alerts"
  12824. ],
  12825. generateReleaseNotes: [
  12826. "POST /repos/{owner}/{repo}/releases/generate-notes"
  12827. ],
  12828. get: ["GET /repos/{owner}/{repo}"],
  12829. getAccessRestrictions: [
  12830. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
  12831. ],
  12832. getAdminBranchProtection: [
  12833. "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
  12834. ],
  12835. getAllDeploymentProtectionRules: [
  12836. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
  12837. ],
  12838. getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
  12839. getAllStatusCheckContexts: [
  12840. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
  12841. ],
  12842. getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
  12843. getAppsWithAccessToProtectedBranch: [
  12844. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
  12845. ],
  12846. getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
  12847. getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
  12848. getBranchProtection: [
  12849. "GET /repos/{owner}/{repo}/branches/{branch}/protection"
  12850. ],
  12851. getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
  12852. getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
  12853. getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
  12854. getCollaboratorPermissionLevel: [
  12855. "GET /repos/{owner}/{repo}/collaborators/{username}/permission"
  12856. ],
  12857. getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
  12858. getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
  12859. getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
  12860. getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
  12861. getCommitSignatureProtection: [
  12862. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
  12863. ],
  12864. getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
  12865. getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
  12866. getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
  12867. getCustomDeploymentProtectionRule: [
  12868. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
  12869. ],
  12870. getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
  12871. getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
  12872. getDeploymentBranchPolicy: [
  12873. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
  12874. ],
  12875. getDeploymentStatus: [
  12876. "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
  12877. ],
  12878. getEnvironment: [
  12879. "GET /repos/{owner}/{repo}/environments/{environment_name}"
  12880. ],
  12881. getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
  12882. getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
  12883. getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
  12884. getOrgRulesets: ["GET /orgs/{org}/rulesets"],
  12885. getPages: ["GET /repos/{owner}/{repo}/pages"],
  12886. getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
  12887. getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
  12888. getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
  12889. getPullRequestReviewProtection: [
  12890. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
  12891. ],
  12892. getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
  12893. getReadme: ["GET /repos/{owner}/{repo}/readme"],
  12894. getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
  12895. getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
  12896. getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
  12897. getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
  12898. getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
  12899. getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
  12900. getStatusChecksProtection: [
  12901. "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
  12902. ],
  12903. getTeamsWithAccessToProtectedBranch: [
  12904. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
  12905. ],
  12906. getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
  12907. getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
  12908. getUsersWithAccessToProtectedBranch: [
  12909. "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
  12910. ],
  12911. getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
  12912. getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
  12913. getWebhookConfigForRepo: [
  12914. "GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
  12915. ],
  12916. getWebhookDelivery: [
  12917. "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
  12918. ],
  12919. listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
  12920. listBranches: ["GET /repos/{owner}/{repo}/branches"],
  12921. listBranchesForHeadCommit: [
  12922. "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
  12923. ],
  12924. listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
  12925. listCommentsForCommit: [
  12926. "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
  12927. ],
  12928. listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
  12929. listCommitStatusesForRef: [
  12930. "GET /repos/{owner}/{repo}/commits/{ref}/statuses"
  12931. ],
  12932. listCommits: ["GET /repos/{owner}/{repo}/commits"],
  12933. listContributors: ["GET /repos/{owner}/{repo}/contributors"],
  12934. listCustomDeploymentRuleIntegrations: [
  12935. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
  12936. ],
  12937. listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
  12938. listDeploymentBranchPolicies: [
  12939. "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
  12940. ],
  12941. listDeploymentStatuses: [
  12942. "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
  12943. ],
  12944. listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
  12945. listForAuthenticatedUser: ["GET /user/repos"],
  12946. listForOrg: ["GET /orgs/{org}/repos"],
  12947. listForUser: ["GET /users/{username}/repos"],
  12948. listForks: ["GET /repos/{owner}/{repo}/forks"],
  12949. listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
  12950. listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
  12951. listLanguages: ["GET /repos/{owner}/{repo}/languages"],
  12952. listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
  12953. listPublic: ["GET /repositories"],
  12954. listPullRequestsAssociatedWithCommit: [
  12955. "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
  12956. ],
  12957. listReleaseAssets: [
  12958. "GET /repos/{owner}/{repo}/releases/{release_id}/assets"
  12959. ],
  12960. listReleases: ["GET /repos/{owner}/{repo}/releases"],
  12961. listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
  12962. listTags: ["GET /repos/{owner}/{repo}/tags"],
  12963. listTeams: ["GET /repos/{owner}/{repo}/teams"],
  12964. listWebhookDeliveries: [
  12965. "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
  12966. ],
  12967. listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
  12968. merge: ["POST /repos/{owner}/{repo}/merges"],
  12969. mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
  12970. pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
  12971. redeliverWebhookDelivery: [
  12972. "POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
  12973. ],
  12974. removeAppAccessRestrictions: [
  12975. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
  12976. {},
  12977. { mapToData: "apps" }
  12978. ],
  12979. removeCollaborator: [
  12980. "DELETE /repos/{owner}/{repo}/collaborators/{username}"
  12981. ],
  12982. removeStatusCheckContexts: [
  12983. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
  12984. {},
  12985. { mapToData: "contexts" }
  12986. ],
  12987. removeStatusCheckProtection: [
  12988. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
  12989. ],
  12990. removeTeamAccessRestrictions: [
  12991. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
  12992. {},
  12993. { mapToData: "teams" }
  12994. ],
  12995. removeUserAccessRestrictions: [
  12996. "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
  12997. {},
  12998. { mapToData: "users" }
  12999. ],
  13000. renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
  13001. replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
  13002. requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
  13003. setAdminBranchProtection: [
  13004. "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
  13005. ],
  13006. setAppAccessRestrictions: [
  13007. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
  13008. {},
  13009. { mapToData: "apps" }
  13010. ],
  13011. setStatusCheckContexts: [
  13012. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
  13013. {},
  13014. { mapToData: "contexts" }
  13015. ],
  13016. setTeamAccessRestrictions: [
  13017. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
  13018. {},
  13019. { mapToData: "teams" }
  13020. ],
  13021. setUserAccessRestrictions: [
  13022. "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
  13023. {},
  13024. { mapToData: "users" }
  13025. ],
  13026. testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
  13027. transfer: ["POST /repos/{owner}/{repo}/transfer"],
  13028. update: ["PATCH /repos/{owner}/{repo}"],
  13029. updateBranchProtection: [
  13030. "PUT /repos/{owner}/{repo}/branches/{branch}/protection"
  13031. ],
  13032. updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
  13033. updateDeploymentBranchPolicy: [
  13034. "PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
  13035. ],
  13036. updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
  13037. updateInvitation: [
  13038. "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
  13039. ],
  13040. updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
  13041. updatePullRequestReviewProtection: [
  13042. "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
  13043. ],
  13044. updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
  13045. updateReleaseAsset: [
  13046. "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
  13047. ],
  13048. updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
  13049. updateStatusCheckPotection: [
  13050. "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
  13051. {},
  13052. { renamed: ["repos", "updateStatusCheckProtection"] }
  13053. ],
  13054. updateStatusCheckProtection: [
  13055. "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
  13056. ],
  13057. updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
  13058. updateWebhookConfigForRepo: [
  13059. "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
  13060. ],
  13061. uploadReleaseAsset: [
  13062. "POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
  13063. { baseUrl: "https://uploads.github.com" }
  13064. ]
  13065. },
  13066. search: {
  13067. code: ["GET /search/code"],
  13068. commits: ["GET /search/commits"],
  13069. issuesAndPullRequests: ["GET /search/issues"],
  13070. labels: ["GET /search/labels"],
  13071. repos: ["GET /search/repositories"],
  13072. topics: ["GET /search/topics"],
  13073. users: ["GET /search/users"]
  13074. },
  13075. secretScanning: {
  13076. getAlert: [
  13077. "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
  13078. ],
  13079. listAlertsForEnterprise: [
  13080. "GET /enterprises/{enterprise}/secret-scanning/alerts"
  13081. ],
  13082. listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
  13083. listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
  13084. listLocationsForAlert: [
  13085. "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
  13086. ],
  13087. updateAlert: [
  13088. "PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
  13089. ]
  13090. },
  13091. securityAdvisories: {
  13092. createPrivateVulnerabilityReport: [
  13093. "POST /repos/{owner}/{repo}/security-advisories/reports"
  13094. ],
  13095. createRepositoryAdvisory: [
  13096. "POST /repos/{owner}/{repo}/security-advisories"
  13097. ],
  13098. getRepositoryAdvisory: [
  13099. "GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
  13100. ],
  13101. listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
  13102. updateRepositoryAdvisory: [
  13103. "PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
  13104. ]
  13105. },
  13106. teams: {
  13107. addOrUpdateMembershipForUserInOrg: [
  13108. "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
  13109. ],
  13110. addOrUpdateProjectPermissionsInOrg: [
  13111. "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
  13112. ],
  13113. addOrUpdateRepoPermissionsInOrg: [
  13114. "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
  13115. ],
  13116. checkPermissionsForProjectInOrg: [
  13117. "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
  13118. ],
  13119. checkPermissionsForRepoInOrg: [
  13120. "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
  13121. ],
  13122. create: ["POST /orgs/{org}/teams"],
  13123. createDiscussionCommentInOrg: [
  13124. "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
  13125. ],
  13126. createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
  13127. deleteDiscussionCommentInOrg: [
  13128. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
  13129. ],
  13130. deleteDiscussionInOrg: [
  13131. "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
  13132. ],
  13133. deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
  13134. getByName: ["GET /orgs/{org}/teams/{team_slug}"],
  13135. getDiscussionCommentInOrg: [
  13136. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
  13137. ],
  13138. getDiscussionInOrg: [
  13139. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
  13140. ],
  13141. getMembershipForUserInOrg: [
  13142. "GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
  13143. ],
  13144. list: ["GET /orgs/{org}/teams"],
  13145. listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
  13146. listDiscussionCommentsInOrg: [
  13147. "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
  13148. ],
  13149. listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
  13150. listForAuthenticatedUser: ["GET /user/teams"],
  13151. listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
  13152. listPendingInvitationsInOrg: [
  13153. "GET /orgs/{org}/teams/{team_slug}/invitations"
  13154. ],
  13155. listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
  13156. listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
  13157. removeMembershipForUserInOrg: [
  13158. "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
  13159. ],
  13160. removeProjectInOrg: [
  13161. "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
  13162. ],
  13163. removeRepoInOrg: [
  13164. "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
  13165. ],
  13166. updateDiscussionCommentInOrg: [
  13167. "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
  13168. ],
  13169. updateDiscussionInOrg: [
  13170. "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
  13171. ],
  13172. updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
  13173. },
  13174. users: {
  13175. addEmailForAuthenticated: [
  13176. "POST /user/emails",
  13177. {},
  13178. { renamed: ["users", "addEmailForAuthenticatedUser"] }
  13179. ],
  13180. addEmailForAuthenticatedUser: ["POST /user/emails"],
  13181. addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
  13182. block: ["PUT /user/blocks/{username}"],
  13183. checkBlocked: ["GET /user/blocks/{username}"],
  13184. checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
  13185. checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
  13186. createGpgKeyForAuthenticated: [
  13187. "POST /user/gpg_keys",
  13188. {},
  13189. { renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
  13190. ],
  13191. createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
  13192. createPublicSshKeyForAuthenticated: [
  13193. "POST /user/keys",
  13194. {},
  13195. { renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
  13196. ],
  13197. createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
  13198. createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
  13199. deleteEmailForAuthenticated: [
  13200. "DELETE /user/emails",
  13201. {},
  13202. { renamed: ["users", "deleteEmailForAuthenticatedUser"] }
  13203. ],
  13204. deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
  13205. deleteGpgKeyForAuthenticated: [
  13206. "DELETE /user/gpg_keys/{gpg_key_id}",
  13207. {},
  13208. { renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
  13209. ],
  13210. deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
  13211. deletePublicSshKeyForAuthenticated: [
  13212. "DELETE /user/keys/{key_id}",
  13213. {},
  13214. { renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
  13215. ],
  13216. deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
  13217. deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
  13218. deleteSshSigningKeyForAuthenticatedUser: [
  13219. "DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
  13220. ],
  13221. follow: ["PUT /user/following/{username}"],
  13222. getAuthenticated: ["GET /user"],
  13223. getByUsername: ["GET /users/{username}"],
  13224. getContextForUser: ["GET /users/{username}/hovercard"],
  13225. getGpgKeyForAuthenticated: [
  13226. "GET /user/gpg_keys/{gpg_key_id}",
  13227. {},
  13228. { renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
  13229. ],
  13230. getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
  13231. getPublicSshKeyForAuthenticated: [
  13232. "GET /user/keys/{key_id}",
  13233. {},
  13234. { renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
  13235. ],
  13236. getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
  13237. getSshSigningKeyForAuthenticatedUser: [
  13238. "GET /user/ssh_signing_keys/{ssh_signing_key_id}"
  13239. ],
  13240. list: ["GET /users"],
  13241. listBlockedByAuthenticated: [
  13242. "GET /user/blocks",
  13243. {},
  13244. { renamed: ["users", "listBlockedByAuthenticatedUser"] }
  13245. ],
  13246. listBlockedByAuthenticatedUser: ["GET /user/blocks"],
  13247. listEmailsForAuthenticated: [
  13248. "GET /user/emails",
  13249. {},
  13250. { renamed: ["users", "listEmailsForAuthenticatedUser"] }
  13251. ],
  13252. listEmailsForAuthenticatedUser: ["GET /user/emails"],
  13253. listFollowedByAuthenticated: [
  13254. "GET /user/following",
  13255. {},
  13256. { renamed: ["users", "listFollowedByAuthenticatedUser"] }
  13257. ],
  13258. listFollowedByAuthenticatedUser: ["GET /user/following"],
  13259. listFollowersForAuthenticatedUser: ["GET /user/followers"],
  13260. listFollowersForUser: ["GET /users/{username}/followers"],
  13261. listFollowingForUser: ["GET /users/{username}/following"],
  13262. listGpgKeysForAuthenticated: [
  13263. "GET /user/gpg_keys",
  13264. {},
  13265. { renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
  13266. ],
  13267. listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
  13268. listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
  13269. listPublicEmailsForAuthenticated: [
  13270. "GET /user/public_emails",
  13271. {},
  13272. { renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
  13273. ],
  13274. listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
  13275. listPublicKeysForUser: ["GET /users/{username}/keys"],
  13276. listPublicSshKeysForAuthenticated: [
  13277. "GET /user/keys",
  13278. {},
  13279. { renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
  13280. ],
  13281. listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
  13282. listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
  13283. listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
  13284. listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
  13285. listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
  13286. setPrimaryEmailVisibilityForAuthenticated: [
  13287. "PATCH /user/email/visibility",
  13288. {},
  13289. { renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
  13290. ],
  13291. setPrimaryEmailVisibilityForAuthenticatedUser: [
  13292. "PATCH /user/email/visibility"
  13293. ],
  13294. unblock: ["DELETE /user/blocks/{username}"],
  13295. unfollow: ["DELETE /user/following/{username}"],
  13296. updateAuthenticated: ["PATCH /user"]
  13297. }
  13298. };
  13299. var endpoints_default = Endpoints;
  13300. // pkg/dist-src/endpoints-to-methods.js
  13301. var endpointMethodsMap = /* @__PURE__ */ new Map();
  13302. for (const [scope, endpoints] of Object.entries(endpoints_default)) {
  13303. for (const [methodName, endpoint] of Object.entries(endpoints)) {
  13304. const [route, defaults, decorations] = endpoint;
  13305. const [method, url] = route.split(/ /);
  13306. const endpointDefaults = Object.assign(
  13307. {
  13308. method,
  13309. url
  13310. },
  13311. defaults
  13312. );
  13313. if (!endpointMethodsMap.has(scope)) {
  13314. endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
  13315. }
  13316. endpointMethodsMap.get(scope).set(methodName, {
  13317. scope,
  13318. methodName,
  13319. endpointDefaults,
  13320. decorations
  13321. });
  13322. }
  13323. }
  13324. var handler = {
  13325. get({ octokit, scope, cache }, methodName) {
  13326. if (cache[methodName]) {
  13327. return cache[methodName];
  13328. }
  13329. const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName);
  13330. if (decorations) {
  13331. cache[methodName] = decorate(
  13332. octokit,
  13333. scope,
  13334. methodName,
  13335. endpointDefaults,
  13336. decorations
  13337. );
  13338. } else {
  13339. cache[methodName] = octokit.request.defaults(endpointDefaults);
  13340. }
  13341. return cache[methodName];
  13342. }
  13343. };
  13344. function endpointsToMethods(octokit) {
  13345. const newMethods = {};
  13346. for (const scope of endpointMethodsMap.keys()) {
  13347. newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
  13348. }
  13349. return newMethods;
  13350. }
  13351. function decorate(octokit, scope, methodName, defaults, decorations) {
  13352. const requestWithDefaults = octokit.request.defaults(defaults);
  13353. function withDecorations(...args) {
  13354. let options = requestWithDefaults.endpoint.merge(...args);
  13355. if (decorations.mapToData) {
  13356. options = Object.assign({}, options, {
  13357. data: options[decorations.mapToData],
  13358. [decorations.mapToData]: void 0
  13359. });
  13360. return requestWithDefaults(options);
  13361. }
  13362. if (decorations.renamed) {
  13363. const [newScope, newMethodName] = decorations.renamed;
  13364. octokit.log.warn(
  13365. `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
  13366. );
  13367. }
  13368. if (decorations.deprecated) {
  13369. octokit.log.warn(decorations.deprecated);
  13370. }
  13371. if (decorations.renamedParameters) {
  13372. const options2 = requestWithDefaults.endpoint.merge(...args);
  13373. for (const [name, alias] of Object.entries(
  13374. decorations.renamedParameters
  13375. )) {
  13376. if (name in options2) {
  13377. octokit.log.warn(
  13378. `"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
  13379. );
  13380. if (!(alias in options2)) {
  13381. options2[alias] = options2[name];
  13382. }
  13383. delete options2[name];
  13384. }
  13385. }
  13386. return requestWithDefaults(options2);
  13387. }
  13388. return requestWithDefaults(...args);
  13389. }
  13390. return Object.assign(withDecorations, requestWithDefaults);
  13391. }
  13392. // pkg/dist-src/index.js
  13393. function restEndpointMethods(octokit) {
  13394. const api = endpointsToMethods(octokit);
  13395. return {
  13396. rest: api
  13397. };
  13398. }
  13399. restEndpointMethods.VERSION = VERSION;
  13400. function legacyRestEndpointMethods(octokit) {
  13401. const api = endpointsToMethods(octokit);
  13402. return {
  13403. ...api,
  13404. rest: api
  13405. };
  13406. }
  13407. legacyRestEndpointMethods.VERSION = VERSION;
  13408. // Annotate the CommonJS export names for ESM import in node:
  13409. 0 && (0);
  13410. /***/ }),
  13411. /***/ 537:
  13412. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  13413. "use strict";
  13414. Object.defineProperty(exports, "__esModule", ({ value: true }));
  13415. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  13416. var deprecation = __nccwpck_require__(8932);
  13417. var once = _interopDefault(__nccwpck_require__(1223));
  13418. const logOnceCode = once(deprecation => console.warn(deprecation));
  13419. const logOnceHeaders = once(deprecation => console.warn(deprecation));
  13420. /**
  13421. * Error with extra properties to help with debugging
  13422. */
  13423. class RequestError extends Error {
  13424. constructor(message, statusCode, options) {
  13425. super(message);
  13426. // Maintains proper stack trace (only available on V8)
  13427. /* istanbul ignore next */
  13428. if (Error.captureStackTrace) {
  13429. Error.captureStackTrace(this, this.constructor);
  13430. }
  13431. this.name = "HttpError";
  13432. this.status = statusCode;
  13433. let headers;
  13434. if ("headers" in options && typeof options.headers !== "undefined") {
  13435. headers = options.headers;
  13436. }
  13437. if ("response" in options) {
  13438. this.response = options.response;
  13439. headers = options.response.headers;
  13440. }
  13441. // redact request credentials without mutating original request options
  13442. const requestCopy = Object.assign({}, options.request);
  13443. if (options.request.headers.authorization) {
  13444. requestCopy.headers = Object.assign({}, options.request.headers, {
  13445. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  13446. });
  13447. }
  13448. requestCopy.url = requestCopy.url
  13449. // client_id & client_secret can be passed as URL query parameters to increase rate limit
  13450. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  13451. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]")
  13452. // OAuth tokens can be passed as URL query parameters, although it is not recommended
  13453. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  13454. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  13455. this.request = requestCopy;
  13456. // deprecations
  13457. Object.defineProperty(this, "code", {
  13458. get() {
  13459. logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  13460. return statusCode;
  13461. }
  13462. });
  13463. Object.defineProperty(this, "headers", {
  13464. get() {
  13465. logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));
  13466. return headers || {};
  13467. }
  13468. });
  13469. }
  13470. }
  13471. exports.RequestError = RequestError;
  13472. //# sourceMappingURL=index.js.map
  13473. /***/ }),
  13474. /***/ 6234:
  13475. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13476. "use strict";
  13477. var __create = Object.create;
  13478. var __defProp = Object.defineProperty;
  13479. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  13480. var __getOwnPropNames = Object.getOwnPropertyNames;
  13481. var __getProtoOf = Object.getPrototypeOf;
  13482. var __hasOwnProp = Object.prototype.hasOwnProperty;
  13483. var __export = (target, all) => {
  13484. for (var name in all)
  13485. __defProp(target, name, { get: all[name], enumerable: true });
  13486. };
  13487. var __copyProps = (to, from, except, desc) => {
  13488. if (from && typeof from === "object" || typeof from === "function") {
  13489. for (let key of __getOwnPropNames(from))
  13490. if (!__hasOwnProp.call(to, key) && key !== except)
  13491. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  13492. }
  13493. return to;
  13494. };
  13495. var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  13496. // If the importer is in node compatibility mode or this is not an ESM
  13497. // file that has been converted to a CommonJS file using a Babel-
  13498. // compatible transform (i.e. "__esModule" has not been set), then set
  13499. // "default" to the CommonJS "module.exports" for node compatibility.
  13500. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  13501. mod
  13502. ));
  13503. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  13504. // pkg/dist-src/index.js
  13505. var dist_src_exports = {};
  13506. __export(dist_src_exports, {
  13507. request: () => request
  13508. });
  13509. module.exports = __toCommonJS(dist_src_exports);
  13510. var import_endpoint = __nccwpck_require__(9440);
  13511. var import_universal_user_agent = __nccwpck_require__(5030);
  13512. // pkg/dist-src/version.js
  13513. var VERSION = "6.2.8";
  13514. // pkg/dist-src/fetch-wrapper.js
  13515. var import_is_plain_object = __nccwpck_require__(3287);
  13516. var import_node_fetch = __toESM(__nccwpck_require__(467));
  13517. var import_request_error = __nccwpck_require__(537);
  13518. // pkg/dist-src/get-buffer-response.js
  13519. function getBufferResponse(response) {
  13520. return response.arrayBuffer();
  13521. }
  13522. // pkg/dist-src/fetch-wrapper.js
  13523. function fetchWrapper(requestOptions) {
  13524. const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
  13525. if ((0, import_is_plain_object.isPlainObject)(requestOptions.body) || Array.isArray(requestOptions.body)) {
  13526. requestOptions.body = JSON.stringify(requestOptions.body);
  13527. }
  13528. let headers = {};
  13529. let status;
  13530. let url;
  13531. const fetch = requestOptions.request && requestOptions.request.fetch || globalThis.fetch || /* istanbul ignore next */
  13532. import_node_fetch.default;
  13533. return fetch(
  13534. requestOptions.url,
  13535. Object.assign(
  13536. {
  13537. method: requestOptions.method,
  13538. body: requestOptions.body,
  13539. headers: requestOptions.headers,
  13540. redirect: requestOptions.redirect,
  13541. // duplex must be set if request.body is ReadableStream or Async Iterables.
  13542. // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
  13543. ...requestOptions.body && { duplex: "half" }
  13544. },
  13545. // `requestOptions.request.agent` type is incompatible
  13546. // see https://github.com/octokit/types.ts/pull/264
  13547. requestOptions.request
  13548. )
  13549. ).then(async (response) => {
  13550. url = response.url;
  13551. status = response.status;
  13552. for (const keyAndValue of response.headers) {
  13553. headers[keyAndValue[0]] = keyAndValue[1];
  13554. }
  13555. if ("deprecation" in headers) {
  13556. const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
  13557. const deprecationLink = matches && matches.pop();
  13558. log.warn(
  13559. `[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
  13560. );
  13561. }
  13562. if (status === 204 || status === 205) {
  13563. return;
  13564. }
  13565. if (requestOptions.method === "HEAD") {
  13566. if (status < 400) {
  13567. return;
  13568. }
  13569. throw new import_request_error.RequestError(response.statusText, status, {
  13570. response: {
  13571. url,
  13572. status,
  13573. headers,
  13574. data: void 0
  13575. },
  13576. request: requestOptions
  13577. });
  13578. }
  13579. if (status === 304) {
  13580. throw new import_request_error.RequestError("Not modified", status, {
  13581. response: {
  13582. url,
  13583. status,
  13584. headers,
  13585. data: await getResponseData(response)
  13586. },
  13587. request: requestOptions
  13588. });
  13589. }
  13590. if (status >= 400) {
  13591. const data = await getResponseData(response);
  13592. const error = new import_request_error.RequestError(toErrorMessage(data), status, {
  13593. response: {
  13594. url,
  13595. status,
  13596. headers,
  13597. data
  13598. },
  13599. request: requestOptions
  13600. });
  13601. throw error;
  13602. }
  13603. return getResponseData(response);
  13604. }).then((data) => {
  13605. return {
  13606. status,
  13607. url,
  13608. headers,
  13609. data
  13610. };
  13611. }).catch((error) => {
  13612. if (error instanceof import_request_error.RequestError)
  13613. throw error;
  13614. else if (error.name === "AbortError")
  13615. throw error;
  13616. throw new import_request_error.RequestError(error.message, 500, {
  13617. request: requestOptions
  13618. });
  13619. });
  13620. }
  13621. async function getResponseData(response) {
  13622. const contentType = response.headers.get("content-type");
  13623. if (/application\/json/.test(contentType)) {
  13624. return response.json();
  13625. }
  13626. if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
  13627. return response.text();
  13628. }
  13629. return getBufferResponse(response);
  13630. }
  13631. function toErrorMessage(data) {
  13632. if (typeof data === "string")
  13633. return data;
  13634. if ("message" in data) {
  13635. if (Array.isArray(data.errors)) {
  13636. return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`;
  13637. }
  13638. return data.message;
  13639. }
  13640. return `Unknown error: ${JSON.stringify(data)}`;
  13641. }
  13642. // pkg/dist-src/with-defaults.js
  13643. function withDefaults(oldEndpoint, newDefaults) {
  13644. const endpoint2 = oldEndpoint.defaults(newDefaults);
  13645. const newApi = function(route, parameters) {
  13646. const endpointOptions = endpoint2.merge(route, parameters);
  13647. if (!endpointOptions.request || !endpointOptions.request.hook) {
  13648. return fetchWrapper(endpoint2.parse(endpointOptions));
  13649. }
  13650. const request2 = (route2, parameters2) => {
  13651. return fetchWrapper(
  13652. endpoint2.parse(endpoint2.merge(route2, parameters2))
  13653. );
  13654. };
  13655. Object.assign(request2, {
  13656. endpoint: endpoint2,
  13657. defaults: withDefaults.bind(null, endpoint2)
  13658. });
  13659. return endpointOptions.request.hook(request2, endpointOptions);
  13660. };
  13661. return Object.assign(newApi, {
  13662. endpoint: endpoint2,
  13663. defaults: withDefaults.bind(null, endpoint2)
  13664. });
  13665. }
  13666. // pkg/dist-src/index.js
  13667. var request = withDefaults(import_endpoint.endpoint, {
  13668. headers: {
  13669. "user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
  13670. }
  13671. });
  13672. // Annotate the CommonJS export names for ESM import in node:
  13673. 0 && (0);
  13674. /***/ }),
  13675. /***/ 3682:
  13676. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  13677. var register = __nccwpck_require__(4670);
  13678. var addHook = __nccwpck_require__(5549);
  13679. var removeHook = __nccwpck_require__(6819);
  13680. // bind with array of arguments: https://stackoverflow.com/a/21792913
  13681. var bind = Function.bind;
  13682. var bindable = bind.bind(bind);
  13683. function bindApi(hook, state, name) {
  13684. var removeHookRef = bindable(removeHook, null).apply(
  13685. null,
  13686. name ? [state, name] : [state]
  13687. );
  13688. hook.api = { remove: removeHookRef };
  13689. hook.remove = removeHookRef;
  13690. ["before", "error", "after", "wrap"].forEach(function (kind) {
  13691. var args = name ? [state, kind, name] : [state, kind];
  13692. hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
  13693. });
  13694. }
  13695. function HookSingular() {
  13696. var singularHookName = "h";
  13697. var singularHookState = {
  13698. registry: {},
  13699. };
  13700. var singularHook = register.bind(null, singularHookState, singularHookName);
  13701. bindApi(singularHook, singularHookState, singularHookName);
  13702. return singularHook;
  13703. }
  13704. function HookCollection() {
  13705. var state = {
  13706. registry: {},
  13707. };
  13708. var hook = register.bind(null, state);
  13709. bindApi(hook, state);
  13710. return hook;
  13711. }
  13712. var collectionHookDeprecationMessageDisplayed = false;
  13713. function Hook() {
  13714. if (!collectionHookDeprecationMessageDisplayed) {
  13715. console.warn(
  13716. '[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
  13717. );
  13718. collectionHookDeprecationMessageDisplayed = true;
  13719. }
  13720. return HookCollection();
  13721. }
  13722. Hook.Singular = HookSingular.bind();
  13723. Hook.Collection = HookCollection.bind();
  13724. module.exports = Hook;
  13725. // expose constructors as a named property for TypeScript
  13726. module.exports.Hook = Hook;
  13727. module.exports.Singular = Hook.Singular;
  13728. module.exports.Collection = Hook.Collection;
  13729. /***/ }),
  13730. /***/ 5549:
  13731. /***/ ((module) => {
  13732. module.exports = addHook;
  13733. function addHook(state, kind, name, hook) {
  13734. var orig = hook;
  13735. if (!state.registry[name]) {
  13736. state.registry[name] = [];
  13737. }
  13738. if (kind === "before") {
  13739. hook = function (method, options) {
  13740. return Promise.resolve()
  13741. .then(orig.bind(null, options))
  13742. .then(method.bind(null, options));
  13743. };
  13744. }
  13745. if (kind === "after") {
  13746. hook = function (method, options) {
  13747. var result;
  13748. return Promise.resolve()
  13749. .then(method.bind(null, options))
  13750. .then(function (result_) {
  13751. result = result_;
  13752. return orig(result, options);
  13753. })
  13754. .then(function () {
  13755. return result;
  13756. });
  13757. };
  13758. }
  13759. if (kind === "error") {
  13760. hook = function (method, options) {
  13761. return Promise.resolve()
  13762. .then(method.bind(null, options))
  13763. .catch(function (error) {
  13764. return orig(error, options);
  13765. });
  13766. };
  13767. }
  13768. state.registry[name].push({
  13769. hook: hook,
  13770. orig: orig,
  13771. });
  13772. }
  13773. /***/ }),
  13774. /***/ 4670:
  13775. /***/ ((module) => {
  13776. module.exports = register;
  13777. function register(state, name, method, options) {
  13778. if (typeof method !== "function") {
  13779. throw new Error("method for before hook must be a function");
  13780. }
  13781. if (!options) {
  13782. options = {};
  13783. }
  13784. if (Array.isArray(name)) {
  13785. return name.reverse().reduce(function (callback, name) {
  13786. return register.bind(null, state, name, callback, options);
  13787. }, method)();
  13788. }
  13789. return Promise.resolve().then(function () {
  13790. if (!state.registry[name]) {
  13791. return method(options);
  13792. }
  13793. return state.registry[name].reduce(function (method, registered) {
  13794. return registered.hook.bind(null, method, options);
  13795. }, method)();
  13796. });
  13797. }
  13798. /***/ }),
  13799. /***/ 6819:
  13800. /***/ ((module) => {
  13801. module.exports = removeHook;
  13802. function removeHook(state, name, method) {
  13803. if (!state.registry[name]) {
  13804. return;
  13805. }
  13806. var index = state.registry[name]
  13807. .map(function (registered) {
  13808. return registered.orig;
  13809. })
  13810. .indexOf(method);
  13811. if (index === -1) {
  13812. return;
  13813. }
  13814. state.registry[name].splice(index, 1);
  13815. }
  13816. /***/ }),
  13817. /***/ 8932:
  13818. /***/ ((__unused_webpack_module, exports) => {
  13819. "use strict";
  13820. Object.defineProperty(exports, "__esModule", ({ value: true }));
  13821. class Deprecation extends Error {
  13822. constructor(message) {
  13823. super(message); // Maintains proper stack trace (only available on V8)
  13824. /* istanbul ignore next */
  13825. if (Error.captureStackTrace) {
  13826. Error.captureStackTrace(this, this.constructor);
  13827. }
  13828. this.name = 'Deprecation';
  13829. }
  13830. }
  13831. exports.Deprecation = Deprecation;
  13832. /***/ }),
  13833. /***/ 3287:
  13834. /***/ ((__unused_webpack_module, exports) => {
  13835. "use strict";
  13836. Object.defineProperty(exports, "__esModule", ({ value: true }));
  13837. /*!
  13838. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  13839. *
  13840. * Copyright (c) 2014-2017, Jon Schlinkert.
  13841. * Released under the MIT License.
  13842. */
  13843. function isObject(o) {
  13844. return Object.prototype.toString.call(o) === '[object Object]';
  13845. }
  13846. function isPlainObject(o) {
  13847. var ctor,prot;
  13848. if (isObject(o) === false) return false;
  13849. // If has modified constructor
  13850. ctor = o.constructor;
  13851. if (ctor === undefined) return true;
  13852. // If has modified prototype
  13853. prot = ctor.prototype;
  13854. if (isObject(prot) === false) return false;
  13855. // If constructor does not have an Object-specific method
  13856. if (prot.hasOwnProperty('isPrototypeOf') === false) {
  13857. return false;
  13858. }
  13859. // Most likely a plain Object
  13860. return true;
  13861. }
  13862. exports.isPlainObject = isPlainObject;
  13863. /***/ }),
  13864. /***/ 467:
  13865. /***/ ((module, exports, __nccwpck_require__) => {
  13866. "use strict";
  13867. Object.defineProperty(exports, "__esModule", ({ value: true }));
  13868. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  13869. var Stream = _interopDefault(__nccwpck_require__(2781));
  13870. var http = _interopDefault(__nccwpck_require__(3685));
  13871. var Url = _interopDefault(__nccwpck_require__(7310));
  13872. var whatwgUrl = _interopDefault(__nccwpck_require__(3323));
  13873. var https = _interopDefault(__nccwpck_require__(5687));
  13874. var zlib = _interopDefault(__nccwpck_require__(9796));
  13875. // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
  13876. // fix for "Readable" isn't a named export issue
  13877. const Readable = Stream.Readable;
  13878. const BUFFER = Symbol('buffer');
  13879. const TYPE = Symbol('type');
  13880. class Blob {
  13881. constructor() {
  13882. this[TYPE] = '';
  13883. const blobParts = arguments[0];
  13884. const options = arguments[1];
  13885. const buffers = [];
  13886. let size = 0;
  13887. if (blobParts) {
  13888. const a = blobParts;
  13889. const length = Number(a.length);
  13890. for (let i = 0; i < length; i++) {
  13891. const element = a[i];
  13892. let buffer;
  13893. if (element instanceof Buffer) {
  13894. buffer = element;
  13895. } else if (ArrayBuffer.isView(element)) {
  13896. buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
  13897. } else if (element instanceof ArrayBuffer) {
  13898. buffer = Buffer.from(element);
  13899. } else if (element instanceof Blob) {
  13900. buffer = element[BUFFER];
  13901. } else {
  13902. buffer = Buffer.from(typeof element === 'string' ? element : String(element));
  13903. }
  13904. size += buffer.length;
  13905. buffers.push(buffer);
  13906. }
  13907. }
  13908. this[BUFFER] = Buffer.concat(buffers);
  13909. let type = options && options.type !== undefined && String(options.type).toLowerCase();
  13910. if (type && !/[^\u0020-\u007E]/.test(type)) {
  13911. this[TYPE] = type;
  13912. }
  13913. }
  13914. get size() {
  13915. return this[BUFFER].length;
  13916. }
  13917. get type() {
  13918. return this[TYPE];
  13919. }
  13920. text() {
  13921. return Promise.resolve(this[BUFFER].toString());
  13922. }
  13923. arrayBuffer() {
  13924. const buf = this[BUFFER];
  13925. const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  13926. return Promise.resolve(ab);
  13927. }
  13928. stream() {
  13929. const readable = new Readable();
  13930. readable._read = function () {};
  13931. readable.push(this[BUFFER]);
  13932. readable.push(null);
  13933. return readable;
  13934. }
  13935. toString() {
  13936. return '[object Blob]';
  13937. }
  13938. slice() {
  13939. const size = this.size;
  13940. const start = arguments[0];
  13941. const end = arguments[1];
  13942. let relativeStart, relativeEnd;
  13943. if (start === undefined) {
  13944. relativeStart = 0;
  13945. } else if (start < 0) {
  13946. relativeStart = Math.max(size + start, 0);
  13947. } else {
  13948. relativeStart = Math.min(start, size);
  13949. }
  13950. if (end === undefined) {
  13951. relativeEnd = size;
  13952. } else if (end < 0) {
  13953. relativeEnd = Math.max(size + end, 0);
  13954. } else {
  13955. relativeEnd = Math.min(end, size);
  13956. }
  13957. const span = Math.max(relativeEnd - relativeStart, 0);
  13958. const buffer = this[BUFFER];
  13959. const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
  13960. const blob = new Blob([], { type: arguments[2] });
  13961. blob[BUFFER] = slicedBuffer;
  13962. return blob;
  13963. }
  13964. }
  13965. Object.defineProperties(Blob.prototype, {
  13966. size: { enumerable: true },
  13967. type: { enumerable: true },
  13968. slice: { enumerable: true }
  13969. });
  13970. Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
  13971. value: 'Blob',
  13972. writable: false,
  13973. enumerable: false,
  13974. configurable: true
  13975. });
  13976. /**
  13977. * fetch-error.js
  13978. *
  13979. * FetchError interface for operational errors
  13980. */
  13981. /**
  13982. * Create FetchError instance
  13983. *
  13984. * @param String message Error message for human
  13985. * @param String type Error type for machine
  13986. * @param String systemError For Node.js system error
  13987. * @return FetchError
  13988. */
  13989. function FetchError(message, type, systemError) {
  13990. Error.call(this, message);
  13991. this.message = message;
  13992. this.type = type;
  13993. // when err.type is `system`, err.code contains system error code
  13994. if (systemError) {
  13995. this.code = this.errno = systemError.code;
  13996. }
  13997. // hide custom error implementation details from end-users
  13998. Error.captureStackTrace(this, this.constructor);
  13999. }
  14000. FetchError.prototype = Object.create(Error.prototype);
  14001. FetchError.prototype.constructor = FetchError;
  14002. FetchError.prototype.name = 'FetchError';
  14003. let convert;
  14004. try {
  14005. convert = (__nccwpck_require__(2877).convert);
  14006. } catch (e) {}
  14007. const INTERNALS = Symbol('Body internals');
  14008. // fix an issue where "PassThrough" isn't a named export for node <10
  14009. const PassThrough = Stream.PassThrough;
  14010. /**
  14011. * Body mixin
  14012. *
  14013. * Ref: https://fetch.spec.whatwg.org/#body
  14014. *
  14015. * @param Stream body Readable stream
  14016. * @param Object opts Response options
  14017. * @return Void
  14018. */
  14019. function Body(body) {
  14020. var _this = this;
  14021. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  14022. _ref$size = _ref.size;
  14023. let size = _ref$size === undefined ? 0 : _ref$size;
  14024. var _ref$timeout = _ref.timeout;
  14025. let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
  14026. if (body == null) {
  14027. // body is undefined or null
  14028. body = null;
  14029. } else if (isURLSearchParams(body)) {
  14030. // body is a URLSearchParams
  14031. body = Buffer.from(body.toString());
  14032. } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  14033. // body is ArrayBuffer
  14034. body = Buffer.from(body);
  14035. } else if (ArrayBuffer.isView(body)) {
  14036. // body is ArrayBufferView
  14037. body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
  14038. } else if (body instanceof Stream) ; else {
  14039. // none of the above
  14040. // coerce to string then buffer
  14041. body = Buffer.from(String(body));
  14042. }
  14043. this[INTERNALS] = {
  14044. body,
  14045. disturbed: false,
  14046. error: null
  14047. };
  14048. this.size = size;
  14049. this.timeout = timeout;
  14050. if (body instanceof Stream) {
  14051. body.on('error', function (err) {
  14052. const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
  14053. _this[INTERNALS].error = error;
  14054. });
  14055. }
  14056. }
  14057. Body.prototype = {
  14058. get body() {
  14059. return this[INTERNALS].body;
  14060. },
  14061. get bodyUsed() {
  14062. return this[INTERNALS].disturbed;
  14063. },
  14064. /**
  14065. * Decode response as ArrayBuffer
  14066. *
  14067. * @return Promise
  14068. */
  14069. arrayBuffer() {
  14070. return consumeBody.call(this).then(function (buf) {
  14071. return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  14072. });
  14073. },
  14074. /**
  14075. * Return raw response as Blob
  14076. *
  14077. * @return Promise
  14078. */
  14079. blob() {
  14080. let ct = this.headers && this.headers.get('content-type') || '';
  14081. return consumeBody.call(this).then(function (buf) {
  14082. return Object.assign(
  14083. // Prevent copying
  14084. new Blob([], {
  14085. type: ct.toLowerCase()
  14086. }), {
  14087. [BUFFER]: buf
  14088. });
  14089. });
  14090. },
  14091. /**
  14092. * Decode response as json
  14093. *
  14094. * @return Promise
  14095. */
  14096. json() {
  14097. var _this2 = this;
  14098. return consumeBody.call(this).then(function (buffer) {
  14099. try {
  14100. return JSON.parse(buffer.toString());
  14101. } catch (err) {
  14102. return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
  14103. }
  14104. });
  14105. },
  14106. /**
  14107. * Decode response as text
  14108. *
  14109. * @return Promise
  14110. */
  14111. text() {
  14112. return consumeBody.call(this).then(function (buffer) {
  14113. return buffer.toString();
  14114. });
  14115. },
  14116. /**
  14117. * Decode response as buffer (non-spec api)
  14118. *
  14119. * @return Promise
  14120. */
  14121. buffer() {
  14122. return consumeBody.call(this);
  14123. },
  14124. /**
  14125. * Decode response as text, while automatically detecting the encoding and
  14126. * trying to decode to UTF-8 (non-spec api)
  14127. *
  14128. * @return Promise
  14129. */
  14130. textConverted() {
  14131. var _this3 = this;
  14132. return consumeBody.call(this).then(function (buffer) {
  14133. return convertBody(buffer, _this3.headers);
  14134. });
  14135. }
  14136. };
  14137. // In browsers, all properties are enumerable.
  14138. Object.defineProperties(Body.prototype, {
  14139. body: { enumerable: true },
  14140. bodyUsed: { enumerable: true },
  14141. arrayBuffer: { enumerable: true },
  14142. blob: { enumerable: true },
  14143. json: { enumerable: true },
  14144. text: { enumerable: true }
  14145. });
  14146. Body.mixIn = function (proto) {
  14147. for (const name of Object.getOwnPropertyNames(Body.prototype)) {
  14148. // istanbul ignore else: future proof
  14149. if (!(name in proto)) {
  14150. const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
  14151. Object.defineProperty(proto, name, desc);
  14152. }
  14153. }
  14154. };
  14155. /**
  14156. * Consume and convert an entire Body to a Buffer.
  14157. *
  14158. * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
  14159. *
  14160. * @return Promise
  14161. */
  14162. function consumeBody() {
  14163. var _this4 = this;
  14164. if (this[INTERNALS].disturbed) {
  14165. return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
  14166. }
  14167. this[INTERNALS].disturbed = true;
  14168. if (this[INTERNALS].error) {
  14169. return Body.Promise.reject(this[INTERNALS].error);
  14170. }
  14171. let body = this.body;
  14172. // body is null
  14173. if (body === null) {
  14174. return Body.Promise.resolve(Buffer.alloc(0));
  14175. }
  14176. // body is blob
  14177. if (isBlob(body)) {
  14178. body = body.stream();
  14179. }
  14180. // body is buffer
  14181. if (Buffer.isBuffer(body)) {
  14182. return Body.Promise.resolve(body);
  14183. }
  14184. // istanbul ignore if: should never happen
  14185. if (!(body instanceof Stream)) {
  14186. return Body.Promise.resolve(Buffer.alloc(0));
  14187. }
  14188. // body is stream
  14189. // get ready to actually consume the body
  14190. let accum = [];
  14191. let accumBytes = 0;
  14192. let abort = false;
  14193. return new Body.Promise(function (resolve, reject) {
  14194. let resTimeout;
  14195. // allow timeout on slow response body
  14196. if (_this4.timeout) {
  14197. resTimeout = setTimeout(function () {
  14198. abort = true;
  14199. reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
  14200. }, _this4.timeout);
  14201. }
  14202. // handle stream errors
  14203. body.on('error', function (err) {
  14204. if (err.name === 'AbortError') {
  14205. // if the request was aborted, reject with this Error
  14206. abort = true;
  14207. reject(err);
  14208. } else {
  14209. // other errors, such as incorrect content-encoding
  14210. reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
  14211. }
  14212. });
  14213. body.on('data', function (chunk) {
  14214. if (abort || chunk === null) {
  14215. return;
  14216. }
  14217. if (_this4.size && accumBytes + chunk.length > _this4.size) {
  14218. abort = true;
  14219. reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
  14220. return;
  14221. }
  14222. accumBytes += chunk.length;
  14223. accum.push(chunk);
  14224. });
  14225. body.on('end', function () {
  14226. if (abort) {
  14227. return;
  14228. }
  14229. clearTimeout(resTimeout);
  14230. try {
  14231. resolve(Buffer.concat(accum, accumBytes));
  14232. } catch (err) {
  14233. // handle streams that have accumulated too much data (issue #414)
  14234. reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
  14235. }
  14236. });
  14237. });
  14238. }
  14239. /**
  14240. * Detect buffer encoding and convert to target encoding
  14241. * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
  14242. *
  14243. * @param Buffer buffer Incoming buffer
  14244. * @param String encoding Target encoding
  14245. * @return String
  14246. */
  14247. function convertBody(buffer, headers) {
  14248. if (typeof convert !== 'function') {
  14249. throw new Error('The package `encoding` must be installed to use the textConverted() function');
  14250. }
  14251. const ct = headers.get('content-type');
  14252. let charset = 'utf-8';
  14253. let res, str;
  14254. // header
  14255. if (ct) {
  14256. res = /charset=([^;]*)/i.exec(ct);
  14257. }
  14258. // no charset in content type, peek at response body for at most 1024 bytes
  14259. str = buffer.slice(0, 1024).toString();
  14260. // html5
  14261. if (!res && str) {
  14262. res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
  14263. }
  14264. // html4
  14265. if (!res && str) {
  14266. res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
  14267. if (!res) {
  14268. res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
  14269. if (res) {
  14270. res.pop(); // drop last quote
  14271. }
  14272. }
  14273. if (res) {
  14274. res = /charset=(.*)/i.exec(res.pop());
  14275. }
  14276. }
  14277. // xml
  14278. if (!res && str) {
  14279. res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
  14280. }
  14281. // found charset
  14282. if (res) {
  14283. charset = res.pop();
  14284. // prevent decode issues when sites use incorrect encoding
  14285. // ref: https://hsivonen.fi/encoding-menu/
  14286. if (charset === 'gb2312' || charset === 'gbk') {
  14287. charset = 'gb18030';
  14288. }
  14289. }
  14290. // turn raw buffers into a single utf-8 buffer
  14291. return convert(buffer, 'UTF-8', charset).toString();
  14292. }
  14293. /**
  14294. * Detect a URLSearchParams object
  14295. * ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
  14296. *
  14297. * @param Object obj Object to detect by type or brand
  14298. * @return String
  14299. */
  14300. function isURLSearchParams(obj) {
  14301. // Duck-typing as a necessary condition.
  14302. if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {
  14303. return false;
  14304. }
  14305. // Brand-checking and more duck-typing as optional condition.
  14306. return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
  14307. }
  14308. /**
  14309. * Check if `obj` is a W3C `Blob` object (which `File` inherits from)
  14310. * @param {*} obj
  14311. * @return {boolean}
  14312. */
  14313. function isBlob(obj) {
  14314. return typeof obj === 'object' && typeof obj.arrayBuffer === 'function' && typeof obj.type === 'string' && typeof obj.stream === 'function' && typeof obj.constructor === 'function' && typeof obj.constructor.name === 'string' && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
  14315. }
  14316. /**
  14317. * Clone body given Res/Req instance
  14318. *
  14319. * @param Mixed instance Response or Request instance
  14320. * @return Mixed
  14321. */
  14322. function clone(instance) {
  14323. let p1, p2;
  14324. let body = instance.body;
  14325. // don't allow cloning a used body
  14326. if (instance.bodyUsed) {
  14327. throw new Error('cannot clone body after it is used');
  14328. }
  14329. // check that body is a stream and not form-data object
  14330. // note: we can't clone the form-data object without having it as a dependency
  14331. if (body instanceof Stream && typeof body.getBoundary !== 'function') {
  14332. // tee instance body
  14333. p1 = new PassThrough();
  14334. p2 = new PassThrough();
  14335. body.pipe(p1);
  14336. body.pipe(p2);
  14337. // set instance body to teed body and return the other teed body
  14338. instance[INTERNALS].body = p1;
  14339. body = p2;
  14340. }
  14341. return body;
  14342. }
  14343. /**
  14344. * Performs the operation "extract a `Content-Type` value from |object|" as
  14345. * specified in the specification:
  14346. * https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  14347. *
  14348. * This function assumes that instance.body is present.
  14349. *
  14350. * @param Mixed instance Any options.body input
  14351. */
  14352. function extractContentType(body) {
  14353. if (body === null) {
  14354. // body is null
  14355. return null;
  14356. } else if (typeof body === 'string') {
  14357. // body is string
  14358. return 'text/plain;charset=UTF-8';
  14359. } else if (isURLSearchParams(body)) {
  14360. // body is a URLSearchParams
  14361. return 'application/x-www-form-urlencoded;charset=UTF-8';
  14362. } else if (isBlob(body)) {
  14363. // body is blob
  14364. return body.type || null;
  14365. } else if (Buffer.isBuffer(body)) {
  14366. // body is buffer
  14367. return null;
  14368. } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  14369. // body is ArrayBuffer
  14370. return null;
  14371. } else if (ArrayBuffer.isView(body)) {
  14372. // body is ArrayBufferView
  14373. return null;
  14374. } else if (typeof body.getBoundary === 'function') {
  14375. // detect form data input from form-data module
  14376. return `multipart/form-data;boundary=${body.getBoundary()}`;
  14377. } else if (body instanceof Stream) {
  14378. // body is stream
  14379. // can't really do much about this
  14380. return null;
  14381. } else {
  14382. // Body constructor defaults other things to string
  14383. return 'text/plain;charset=UTF-8';
  14384. }
  14385. }
  14386. /**
  14387. * The Fetch Standard treats this as if "total bytes" is a property on the body.
  14388. * For us, we have to explicitly get it with a function.
  14389. *
  14390. * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
  14391. *
  14392. * @param Body instance Instance of Body
  14393. * @return Number? Number of bytes, or null if not possible
  14394. */
  14395. function getTotalBytes(instance) {
  14396. const body = instance.body;
  14397. if (body === null) {
  14398. // body is null
  14399. return 0;
  14400. } else if (isBlob(body)) {
  14401. return body.size;
  14402. } else if (Buffer.isBuffer(body)) {
  14403. // body is buffer
  14404. return body.length;
  14405. } else if (body && typeof body.getLengthSync === 'function') {
  14406. // detect form data input from form-data module
  14407. if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
  14408. body.hasKnownLength && body.hasKnownLength()) {
  14409. // 2.x
  14410. return body.getLengthSync();
  14411. }
  14412. return null;
  14413. } else {
  14414. // body is stream
  14415. return null;
  14416. }
  14417. }
  14418. /**
  14419. * Write a Body to a Node.js WritableStream (e.g. http.Request) object.
  14420. *
  14421. * @param Body instance Instance of Body
  14422. * @return Void
  14423. */
  14424. function writeToStream(dest, instance) {
  14425. const body = instance.body;
  14426. if (body === null) {
  14427. // body is null
  14428. dest.end();
  14429. } else if (isBlob(body)) {
  14430. body.stream().pipe(dest);
  14431. } else if (Buffer.isBuffer(body)) {
  14432. // body is buffer
  14433. dest.write(body);
  14434. dest.end();
  14435. } else {
  14436. // body is stream
  14437. body.pipe(dest);
  14438. }
  14439. }
  14440. // expose Promise
  14441. Body.Promise = global.Promise;
  14442. /**
  14443. * headers.js
  14444. *
  14445. * Headers class offers convenient helpers
  14446. */
  14447. const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
  14448. const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
  14449. function validateName(name) {
  14450. name = `${name}`;
  14451. if (invalidTokenRegex.test(name) || name === '') {
  14452. throw new TypeError(`${name} is not a legal HTTP header name`);
  14453. }
  14454. }
  14455. function validateValue(value) {
  14456. value = `${value}`;
  14457. if (invalidHeaderCharRegex.test(value)) {
  14458. throw new TypeError(`${value} is not a legal HTTP header value`);
  14459. }
  14460. }
  14461. /**
  14462. * Find the key in the map object given a header name.
  14463. *
  14464. * Returns undefined if not found.
  14465. *
  14466. * @param String name Header name
  14467. * @return String|Undefined
  14468. */
  14469. function find(map, name) {
  14470. name = name.toLowerCase();
  14471. for (const key in map) {
  14472. if (key.toLowerCase() === name) {
  14473. return key;
  14474. }
  14475. }
  14476. return undefined;
  14477. }
  14478. const MAP = Symbol('map');
  14479. class Headers {
  14480. /**
  14481. * Headers class
  14482. *
  14483. * @param Object headers Response headers
  14484. * @return Void
  14485. */
  14486. constructor() {
  14487. let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  14488. this[MAP] = Object.create(null);
  14489. if (init instanceof Headers) {
  14490. const rawHeaders = init.raw();
  14491. const headerNames = Object.keys(rawHeaders);
  14492. for (const headerName of headerNames) {
  14493. for (const value of rawHeaders[headerName]) {
  14494. this.append(headerName, value);
  14495. }
  14496. }
  14497. return;
  14498. }
  14499. // We don't worry about converting prop to ByteString here as append()
  14500. // will handle it.
  14501. if (init == null) ; else if (typeof init === 'object') {
  14502. const method = init[Symbol.iterator];
  14503. if (method != null) {
  14504. if (typeof method !== 'function') {
  14505. throw new TypeError('Header pairs must be iterable');
  14506. }
  14507. // sequence<sequence<ByteString>>
  14508. // Note: per spec we have to first exhaust the lists then process them
  14509. const pairs = [];
  14510. for (const pair of init) {
  14511. if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
  14512. throw new TypeError('Each header pair must be iterable');
  14513. }
  14514. pairs.push(Array.from(pair));
  14515. }
  14516. for (const pair of pairs) {
  14517. if (pair.length !== 2) {
  14518. throw new TypeError('Each header pair must be a name/value tuple');
  14519. }
  14520. this.append(pair[0], pair[1]);
  14521. }
  14522. } else {
  14523. // record<ByteString, ByteString>
  14524. for (const key of Object.keys(init)) {
  14525. const value = init[key];
  14526. this.append(key, value);
  14527. }
  14528. }
  14529. } else {
  14530. throw new TypeError('Provided initializer must be an object');
  14531. }
  14532. }
  14533. /**
  14534. * Return combined header value given name
  14535. *
  14536. * @param String name Header name
  14537. * @return Mixed
  14538. */
  14539. get(name) {
  14540. name = `${name}`;
  14541. validateName(name);
  14542. const key = find(this[MAP], name);
  14543. if (key === undefined) {
  14544. return null;
  14545. }
  14546. return this[MAP][key].join(', ');
  14547. }
  14548. /**
  14549. * Iterate over all headers
  14550. *
  14551. * @param Function callback Executed for each item with parameters (value, name, thisArg)
  14552. * @param Boolean thisArg `this` context for callback function
  14553. * @return Void
  14554. */
  14555. forEach(callback) {
  14556. let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
  14557. let pairs = getHeaders(this);
  14558. let i = 0;
  14559. while (i < pairs.length) {
  14560. var _pairs$i = pairs[i];
  14561. const name = _pairs$i[0],
  14562. value = _pairs$i[1];
  14563. callback.call(thisArg, value, name, this);
  14564. pairs = getHeaders(this);
  14565. i++;
  14566. }
  14567. }
  14568. /**
  14569. * Overwrite header values given name
  14570. *
  14571. * @param String name Header name
  14572. * @param String value Header value
  14573. * @return Void
  14574. */
  14575. set(name, value) {
  14576. name = `${name}`;
  14577. value = `${value}`;
  14578. validateName(name);
  14579. validateValue(value);
  14580. const key = find(this[MAP], name);
  14581. this[MAP][key !== undefined ? key : name] = [value];
  14582. }
  14583. /**
  14584. * Append a value onto existing header
  14585. *
  14586. * @param String name Header name
  14587. * @param String value Header value
  14588. * @return Void
  14589. */
  14590. append(name, value) {
  14591. name = `${name}`;
  14592. value = `${value}`;
  14593. validateName(name);
  14594. validateValue(value);
  14595. const key = find(this[MAP], name);
  14596. if (key !== undefined) {
  14597. this[MAP][key].push(value);
  14598. } else {
  14599. this[MAP][name] = [value];
  14600. }
  14601. }
  14602. /**
  14603. * Check for header name existence
  14604. *
  14605. * @param String name Header name
  14606. * @return Boolean
  14607. */
  14608. has(name) {
  14609. name = `${name}`;
  14610. validateName(name);
  14611. return find(this[MAP], name) !== undefined;
  14612. }
  14613. /**
  14614. * Delete all header values given name
  14615. *
  14616. * @param String name Header name
  14617. * @return Void
  14618. */
  14619. delete(name) {
  14620. name = `${name}`;
  14621. validateName(name);
  14622. const key = find(this[MAP], name);
  14623. if (key !== undefined) {
  14624. delete this[MAP][key];
  14625. }
  14626. }
  14627. /**
  14628. * Return raw headers (non-spec api)
  14629. *
  14630. * @return Object
  14631. */
  14632. raw() {
  14633. return this[MAP];
  14634. }
  14635. /**
  14636. * Get an iterator on keys.
  14637. *
  14638. * @return Iterator
  14639. */
  14640. keys() {
  14641. return createHeadersIterator(this, 'key');
  14642. }
  14643. /**
  14644. * Get an iterator on values.
  14645. *
  14646. * @return Iterator
  14647. */
  14648. values() {
  14649. return createHeadersIterator(this, 'value');
  14650. }
  14651. /**
  14652. * Get an iterator on entries.
  14653. *
  14654. * This is the default iterator of the Headers object.
  14655. *
  14656. * @return Iterator
  14657. */
  14658. [Symbol.iterator]() {
  14659. return createHeadersIterator(this, 'key+value');
  14660. }
  14661. }
  14662. Headers.prototype.entries = Headers.prototype[Symbol.iterator];
  14663. Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
  14664. value: 'Headers',
  14665. writable: false,
  14666. enumerable: false,
  14667. configurable: true
  14668. });
  14669. Object.defineProperties(Headers.prototype, {
  14670. get: { enumerable: true },
  14671. forEach: { enumerable: true },
  14672. set: { enumerable: true },
  14673. append: { enumerable: true },
  14674. has: { enumerable: true },
  14675. delete: { enumerable: true },
  14676. keys: { enumerable: true },
  14677. values: { enumerable: true },
  14678. entries: { enumerable: true }
  14679. });
  14680. function getHeaders(headers) {
  14681. let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
  14682. const keys = Object.keys(headers[MAP]).sort();
  14683. return keys.map(kind === 'key' ? function (k) {
  14684. return k.toLowerCase();
  14685. } : kind === 'value' ? function (k) {
  14686. return headers[MAP][k].join(', ');
  14687. } : function (k) {
  14688. return [k.toLowerCase(), headers[MAP][k].join(', ')];
  14689. });
  14690. }
  14691. const INTERNAL = Symbol('internal');
  14692. function createHeadersIterator(target, kind) {
  14693. const iterator = Object.create(HeadersIteratorPrototype);
  14694. iterator[INTERNAL] = {
  14695. target,
  14696. kind,
  14697. index: 0
  14698. };
  14699. return iterator;
  14700. }
  14701. const HeadersIteratorPrototype = Object.setPrototypeOf({
  14702. next() {
  14703. // istanbul ignore if
  14704. if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
  14705. throw new TypeError('Value of `this` is not a HeadersIterator');
  14706. }
  14707. var _INTERNAL = this[INTERNAL];
  14708. const target = _INTERNAL.target,
  14709. kind = _INTERNAL.kind,
  14710. index = _INTERNAL.index;
  14711. const values = getHeaders(target, kind);
  14712. const len = values.length;
  14713. if (index >= len) {
  14714. return {
  14715. value: undefined,
  14716. done: true
  14717. };
  14718. }
  14719. this[INTERNAL].index = index + 1;
  14720. return {
  14721. value: values[index],
  14722. done: false
  14723. };
  14724. }
  14725. }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
  14726. Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
  14727. value: 'HeadersIterator',
  14728. writable: false,
  14729. enumerable: false,
  14730. configurable: true
  14731. });
  14732. /**
  14733. * Export the Headers object in a form that Node.js can consume.
  14734. *
  14735. * @param Headers headers
  14736. * @return Object
  14737. */
  14738. function exportNodeCompatibleHeaders(headers) {
  14739. const obj = Object.assign({ __proto__: null }, headers[MAP]);
  14740. // http.request() only supports string as Host header. This hack makes
  14741. // specifying custom Host header possible.
  14742. const hostHeaderKey = find(headers[MAP], 'Host');
  14743. if (hostHeaderKey !== undefined) {
  14744. obj[hostHeaderKey] = obj[hostHeaderKey][0];
  14745. }
  14746. return obj;
  14747. }
  14748. /**
  14749. * Create a Headers object from an object of headers, ignoring those that do
  14750. * not conform to HTTP grammar productions.
  14751. *
  14752. * @param Object obj Object of headers
  14753. * @return Headers
  14754. */
  14755. function createHeadersLenient(obj) {
  14756. const headers = new Headers();
  14757. for (const name of Object.keys(obj)) {
  14758. if (invalidTokenRegex.test(name)) {
  14759. continue;
  14760. }
  14761. if (Array.isArray(obj[name])) {
  14762. for (const val of obj[name]) {
  14763. if (invalidHeaderCharRegex.test(val)) {
  14764. continue;
  14765. }
  14766. if (headers[MAP][name] === undefined) {
  14767. headers[MAP][name] = [val];
  14768. } else {
  14769. headers[MAP][name].push(val);
  14770. }
  14771. }
  14772. } else if (!invalidHeaderCharRegex.test(obj[name])) {
  14773. headers[MAP][name] = [obj[name]];
  14774. }
  14775. }
  14776. return headers;
  14777. }
  14778. const INTERNALS$1 = Symbol('Response internals');
  14779. // fix an issue where "STATUS_CODES" aren't a named export for node <10
  14780. const STATUS_CODES = http.STATUS_CODES;
  14781. /**
  14782. * Response class
  14783. *
  14784. * @param Stream body Readable stream
  14785. * @param Object opts Response options
  14786. * @return Void
  14787. */
  14788. class Response {
  14789. constructor() {
  14790. let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14791. let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14792. Body.call(this, body, opts);
  14793. const status = opts.status || 200;
  14794. const headers = new Headers(opts.headers);
  14795. if (body != null && !headers.has('Content-Type')) {
  14796. const contentType = extractContentType(body);
  14797. if (contentType) {
  14798. headers.append('Content-Type', contentType);
  14799. }
  14800. }
  14801. this[INTERNALS$1] = {
  14802. url: opts.url,
  14803. status,
  14804. statusText: opts.statusText || STATUS_CODES[status],
  14805. headers,
  14806. counter: opts.counter
  14807. };
  14808. }
  14809. get url() {
  14810. return this[INTERNALS$1].url || '';
  14811. }
  14812. get status() {
  14813. return this[INTERNALS$1].status;
  14814. }
  14815. /**
  14816. * Convenience property representing if the request ended normally
  14817. */
  14818. get ok() {
  14819. return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
  14820. }
  14821. get redirected() {
  14822. return this[INTERNALS$1].counter > 0;
  14823. }
  14824. get statusText() {
  14825. return this[INTERNALS$1].statusText;
  14826. }
  14827. get headers() {
  14828. return this[INTERNALS$1].headers;
  14829. }
  14830. /**
  14831. * Clone this response
  14832. *
  14833. * @return Response
  14834. */
  14835. clone() {
  14836. return new Response(clone(this), {
  14837. url: this.url,
  14838. status: this.status,
  14839. statusText: this.statusText,
  14840. headers: this.headers,
  14841. ok: this.ok,
  14842. redirected: this.redirected
  14843. });
  14844. }
  14845. }
  14846. Body.mixIn(Response.prototype);
  14847. Object.defineProperties(Response.prototype, {
  14848. url: { enumerable: true },
  14849. status: { enumerable: true },
  14850. ok: { enumerable: true },
  14851. redirected: { enumerable: true },
  14852. statusText: { enumerable: true },
  14853. headers: { enumerable: true },
  14854. clone: { enumerable: true }
  14855. });
  14856. Object.defineProperty(Response.prototype, Symbol.toStringTag, {
  14857. value: 'Response',
  14858. writable: false,
  14859. enumerable: false,
  14860. configurable: true
  14861. });
  14862. const INTERNALS$2 = Symbol('Request internals');
  14863. const URL = Url.URL || whatwgUrl.URL;
  14864. // fix an issue where "format", "parse" aren't a named export for node <10
  14865. const parse_url = Url.parse;
  14866. const format_url = Url.format;
  14867. /**
  14868. * Wrapper around `new URL` to handle arbitrary URLs
  14869. *
  14870. * @param {string} urlStr
  14871. * @return {void}
  14872. */
  14873. function parseURL(urlStr) {
  14874. /*
  14875. Check whether the URL is absolute or not
  14876. Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
  14877. Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
  14878. */
  14879. if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
  14880. urlStr = new URL(urlStr).toString();
  14881. }
  14882. // Fallback to old implementation for arbitrary URLs
  14883. return parse_url(urlStr);
  14884. }
  14885. const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
  14886. /**
  14887. * Check if a value is an instance of Request.
  14888. *
  14889. * @param Mixed input
  14890. * @return Boolean
  14891. */
  14892. function isRequest(input) {
  14893. return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
  14894. }
  14895. function isAbortSignal(signal) {
  14896. const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
  14897. return !!(proto && proto.constructor.name === 'AbortSignal');
  14898. }
  14899. /**
  14900. * Request class
  14901. *
  14902. * @param Mixed input Url or Request instance
  14903. * @param Object init Custom options
  14904. * @return Void
  14905. */
  14906. class Request {
  14907. constructor(input) {
  14908. let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14909. let parsedURL;
  14910. // normalize input
  14911. if (!isRequest(input)) {
  14912. if (input && input.href) {
  14913. // in order to support Node.js' Url objects; though WHATWG's URL objects
  14914. // will fall into this branch also (since their `toString()` will return
  14915. // `href` property anyway)
  14916. parsedURL = parseURL(input.href);
  14917. } else {
  14918. // coerce input to a string before attempting to parse
  14919. parsedURL = parseURL(`${input}`);
  14920. }
  14921. input = {};
  14922. } else {
  14923. parsedURL = parseURL(input.url);
  14924. }
  14925. let method = init.method || input.method || 'GET';
  14926. method = method.toUpperCase();
  14927. if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
  14928. throw new TypeError('Request with GET/HEAD method cannot have body');
  14929. }
  14930. let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
  14931. Body.call(this, inputBody, {
  14932. timeout: init.timeout || input.timeout || 0,
  14933. size: init.size || input.size || 0
  14934. });
  14935. const headers = new Headers(init.headers || input.headers || {});
  14936. if (inputBody != null && !headers.has('Content-Type')) {
  14937. const contentType = extractContentType(inputBody);
  14938. if (contentType) {
  14939. headers.append('Content-Type', contentType);
  14940. }
  14941. }
  14942. let signal = isRequest(input) ? input.signal : null;
  14943. if ('signal' in init) signal = init.signal;
  14944. if (signal != null && !isAbortSignal(signal)) {
  14945. throw new TypeError('Expected signal to be an instanceof AbortSignal');
  14946. }
  14947. this[INTERNALS$2] = {
  14948. method,
  14949. redirect: init.redirect || input.redirect || 'follow',
  14950. headers,
  14951. parsedURL,
  14952. signal
  14953. };
  14954. // node-fetch-only options
  14955. this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
  14956. this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
  14957. this.counter = init.counter || input.counter || 0;
  14958. this.agent = init.agent || input.agent;
  14959. }
  14960. get method() {
  14961. return this[INTERNALS$2].method;
  14962. }
  14963. get url() {
  14964. return format_url(this[INTERNALS$2].parsedURL);
  14965. }
  14966. get headers() {
  14967. return this[INTERNALS$2].headers;
  14968. }
  14969. get redirect() {
  14970. return this[INTERNALS$2].redirect;
  14971. }
  14972. get signal() {
  14973. return this[INTERNALS$2].signal;
  14974. }
  14975. /**
  14976. * Clone this request
  14977. *
  14978. * @return Request
  14979. */
  14980. clone() {
  14981. return new Request(this);
  14982. }
  14983. }
  14984. Body.mixIn(Request.prototype);
  14985. Object.defineProperty(Request.prototype, Symbol.toStringTag, {
  14986. value: 'Request',
  14987. writable: false,
  14988. enumerable: false,
  14989. configurable: true
  14990. });
  14991. Object.defineProperties(Request.prototype, {
  14992. method: { enumerable: true },
  14993. url: { enumerable: true },
  14994. headers: { enumerable: true },
  14995. redirect: { enumerable: true },
  14996. clone: { enumerable: true },
  14997. signal: { enumerable: true }
  14998. });
  14999. /**
  15000. * Convert a Request to Node.js http request options.
  15001. *
  15002. * @param Request A Request instance
  15003. * @return Object The options object to be passed to http.request
  15004. */
  15005. function getNodeRequestOptions(request) {
  15006. const parsedURL = request[INTERNALS$2].parsedURL;
  15007. const headers = new Headers(request[INTERNALS$2].headers);
  15008. // fetch step 1.3
  15009. if (!headers.has('Accept')) {
  15010. headers.set('Accept', '*/*');
  15011. }
  15012. // Basic fetch
  15013. if (!parsedURL.protocol || !parsedURL.hostname) {
  15014. throw new TypeError('Only absolute URLs are supported');
  15015. }
  15016. if (!/^https?:$/.test(parsedURL.protocol)) {
  15017. throw new TypeError('Only HTTP(S) protocols are supported');
  15018. }
  15019. if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
  15020. throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
  15021. }
  15022. // HTTP-network-or-cache fetch steps 2.4-2.7
  15023. let contentLengthValue = null;
  15024. if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
  15025. contentLengthValue = '0';
  15026. }
  15027. if (request.body != null) {
  15028. const totalBytes = getTotalBytes(request);
  15029. if (typeof totalBytes === 'number') {
  15030. contentLengthValue = String(totalBytes);
  15031. }
  15032. }
  15033. if (contentLengthValue) {
  15034. headers.set('Content-Length', contentLengthValue);
  15035. }
  15036. // HTTP-network-or-cache fetch step 2.11
  15037. if (!headers.has('User-Agent')) {
  15038. headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
  15039. }
  15040. // HTTP-network-or-cache fetch step 2.15
  15041. if (request.compress && !headers.has('Accept-Encoding')) {
  15042. headers.set('Accept-Encoding', 'gzip,deflate');
  15043. }
  15044. let agent = request.agent;
  15045. if (typeof agent === 'function') {
  15046. agent = agent(parsedURL);
  15047. }
  15048. // HTTP-network fetch step 4.2
  15049. // chunked encoding is handled by Node.js
  15050. return Object.assign({}, parsedURL, {
  15051. method: request.method,
  15052. headers: exportNodeCompatibleHeaders(headers),
  15053. agent
  15054. });
  15055. }
  15056. /**
  15057. * abort-error.js
  15058. *
  15059. * AbortError interface for cancelled requests
  15060. */
  15061. /**
  15062. * Create AbortError instance
  15063. *
  15064. * @param String message Error message for human
  15065. * @return AbortError
  15066. */
  15067. function AbortError(message) {
  15068. Error.call(this, message);
  15069. this.type = 'aborted';
  15070. this.message = message;
  15071. // hide custom error implementation details from end-users
  15072. Error.captureStackTrace(this, this.constructor);
  15073. }
  15074. AbortError.prototype = Object.create(Error.prototype);
  15075. AbortError.prototype.constructor = AbortError;
  15076. AbortError.prototype.name = 'AbortError';
  15077. const URL$1 = Url.URL || whatwgUrl.URL;
  15078. // fix an issue where "PassThrough", "resolve" aren't a named export for node <10
  15079. const PassThrough$1 = Stream.PassThrough;
  15080. const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
  15081. const orig = new URL$1(original).hostname;
  15082. const dest = new URL$1(destination).hostname;
  15083. return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
  15084. };
  15085. /**
  15086. * isSameProtocol reports whether the two provided URLs use the same protocol.
  15087. *
  15088. * Both domains must already be in canonical form.
  15089. * @param {string|URL} original
  15090. * @param {string|URL} destination
  15091. */
  15092. const isSameProtocol = function isSameProtocol(destination, original) {
  15093. const orig = new URL$1(original).protocol;
  15094. const dest = new URL$1(destination).protocol;
  15095. return orig === dest;
  15096. };
  15097. /**
  15098. * Fetch function
  15099. *
  15100. * @param Mixed url Absolute url or Request instance
  15101. * @param Object opts Fetch options
  15102. * @return Promise
  15103. */
  15104. function fetch(url, opts) {
  15105. // allow custom promise
  15106. if (!fetch.Promise) {
  15107. throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
  15108. }
  15109. Body.Promise = fetch.Promise;
  15110. // wrap http.request into fetch
  15111. return new fetch.Promise(function (resolve, reject) {
  15112. // build request object
  15113. const request = new Request(url, opts);
  15114. const options = getNodeRequestOptions(request);
  15115. const send = (options.protocol === 'https:' ? https : http).request;
  15116. const signal = request.signal;
  15117. let response = null;
  15118. const abort = function abort() {
  15119. let error = new AbortError('The user aborted a request.');
  15120. reject(error);
  15121. if (request.body && request.body instanceof Stream.Readable) {
  15122. destroyStream(request.body, error);
  15123. }
  15124. if (!response || !response.body) return;
  15125. response.body.emit('error', error);
  15126. };
  15127. if (signal && signal.aborted) {
  15128. abort();
  15129. return;
  15130. }
  15131. const abortAndFinalize = function abortAndFinalize() {
  15132. abort();
  15133. finalize();
  15134. };
  15135. // send request
  15136. const req = send(options);
  15137. let reqTimeout;
  15138. if (signal) {
  15139. signal.addEventListener('abort', abortAndFinalize);
  15140. }
  15141. function finalize() {
  15142. req.abort();
  15143. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  15144. clearTimeout(reqTimeout);
  15145. }
  15146. if (request.timeout) {
  15147. req.once('socket', function (socket) {
  15148. reqTimeout = setTimeout(function () {
  15149. reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
  15150. finalize();
  15151. }, request.timeout);
  15152. });
  15153. }
  15154. req.on('error', function (err) {
  15155. reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
  15156. if (response && response.body) {
  15157. destroyStream(response.body, err);
  15158. }
  15159. finalize();
  15160. });
  15161. fixResponseChunkedTransferBadEnding(req, function (err) {
  15162. if (signal && signal.aborted) {
  15163. return;
  15164. }
  15165. if (response && response.body) {
  15166. destroyStream(response.body, err);
  15167. }
  15168. });
  15169. /* c8 ignore next 18 */
  15170. if (parseInt(process.version.substring(1)) < 14) {
  15171. // Before Node.js 14, pipeline() does not fully support async iterators and does not always
  15172. // properly handle when the socket close/end events are out of order.
  15173. req.on('socket', function (s) {
  15174. s.addListener('close', function (hadError) {
  15175. // if a data listener is still present we didn't end cleanly
  15176. const hasDataListener = s.listenerCount('data') > 0;
  15177. // if end happened before close but the socket didn't emit an error, do it now
  15178. if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
  15179. const err = new Error('Premature close');
  15180. err.code = 'ERR_STREAM_PREMATURE_CLOSE';
  15181. response.body.emit('error', err);
  15182. }
  15183. });
  15184. });
  15185. }
  15186. req.on('response', function (res) {
  15187. clearTimeout(reqTimeout);
  15188. const headers = createHeadersLenient(res.headers);
  15189. // HTTP fetch step 5
  15190. if (fetch.isRedirect(res.statusCode)) {
  15191. // HTTP fetch step 5.2
  15192. const location = headers.get('Location');
  15193. // HTTP fetch step 5.3
  15194. let locationURL = null;
  15195. try {
  15196. locationURL = location === null ? null : new URL$1(location, request.url).toString();
  15197. } catch (err) {
  15198. // error here can only be invalid URL in Location: header
  15199. // do not throw when options.redirect == manual
  15200. // let the user extract the errorneous redirect URL
  15201. if (request.redirect !== 'manual') {
  15202. reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
  15203. finalize();
  15204. return;
  15205. }
  15206. }
  15207. // HTTP fetch step 5.5
  15208. switch (request.redirect) {
  15209. case 'error':
  15210. reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
  15211. finalize();
  15212. return;
  15213. case 'manual':
  15214. // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
  15215. if (locationURL !== null) {
  15216. // handle corrupted header
  15217. try {
  15218. headers.set('Location', locationURL);
  15219. } catch (err) {
  15220. // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
  15221. reject(err);
  15222. }
  15223. }
  15224. break;
  15225. case 'follow':
  15226. // HTTP-redirect fetch step 2
  15227. if (locationURL === null) {
  15228. break;
  15229. }
  15230. // HTTP-redirect fetch step 5
  15231. if (request.counter >= request.follow) {
  15232. reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
  15233. finalize();
  15234. return;
  15235. }
  15236. // HTTP-redirect fetch step 6 (counter increment)
  15237. // Create a new Request object.
  15238. const requestOpts = {
  15239. headers: new Headers(request.headers),
  15240. follow: request.follow,
  15241. counter: request.counter + 1,
  15242. agent: request.agent,
  15243. compress: request.compress,
  15244. method: request.method,
  15245. body: request.body,
  15246. signal: request.signal,
  15247. timeout: request.timeout,
  15248. size: request.size
  15249. };
  15250. if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
  15251. for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
  15252. requestOpts.headers.delete(name);
  15253. }
  15254. }
  15255. // HTTP-redirect fetch step 9
  15256. if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
  15257. reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
  15258. finalize();
  15259. return;
  15260. }
  15261. // HTTP-redirect fetch step 11
  15262. if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
  15263. requestOpts.method = 'GET';
  15264. requestOpts.body = undefined;
  15265. requestOpts.headers.delete('content-length');
  15266. }
  15267. // HTTP-redirect fetch step 15
  15268. resolve(fetch(new Request(locationURL, requestOpts)));
  15269. finalize();
  15270. return;
  15271. }
  15272. }
  15273. // prepare response
  15274. res.once('end', function () {
  15275. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  15276. });
  15277. let body = res.pipe(new PassThrough$1());
  15278. const response_options = {
  15279. url: request.url,
  15280. status: res.statusCode,
  15281. statusText: res.statusMessage,
  15282. headers: headers,
  15283. size: request.size,
  15284. timeout: request.timeout,
  15285. counter: request.counter
  15286. };
  15287. // HTTP-network fetch step 12.1.1.3
  15288. const codings = headers.get('Content-Encoding');
  15289. // HTTP-network fetch step 12.1.1.4: handle content codings
  15290. // in following scenarios we ignore compression support
  15291. // 1. compression support is disabled
  15292. // 2. HEAD request
  15293. // 3. no Content-Encoding header
  15294. // 4. no content response (204)
  15295. // 5. content not modified response (304)
  15296. if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
  15297. response = new Response(body, response_options);
  15298. resolve(response);
  15299. return;
  15300. }
  15301. // For Node v6+
  15302. // Be less strict when decoding compressed responses, since sometimes
  15303. // servers send slightly invalid responses that are still accepted
  15304. // by common browsers.
  15305. // Always using Z_SYNC_FLUSH is what cURL does.
  15306. const zlibOptions = {
  15307. flush: zlib.Z_SYNC_FLUSH,
  15308. finishFlush: zlib.Z_SYNC_FLUSH
  15309. };
  15310. // for gzip
  15311. if (codings == 'gzip' || codings == 'x-gzip') {
  15312. body = body.pipe(zlib.createGunzip(zlibOptions));
  15313. response = new Response(body, response_options);
  15314. resolve(response);
  15315. return;
  15316. }
  15317. // for deflate
  15318. if (codings == 'deflate' || codings == 'x-deflate') {
  15319. // handle the infamous raw deflate response from old servers
  15320. // a hack for old IIS and Apache servers
  15321. const raw = res.pipe(new PassThrough$1());
  15322. raw.once('data', function (chunk) {
  15323. // see http://stackoverflow.com/questions/37519828
  15324. if ((chunk[0] & 0x0F) === 0x08) {
  15325. body = body.pipe(zlib.createInflate());
  15326. } else {
  15327. body = body.pipe(zlib.createInflateRaw());
  15328. }
  15329. response = new Response(body, response_options);
  15330. resolve(response);
  15331. });
  15332. raw.on('end', function () {
  15333. // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
  15334. if (!response) {
  15335. response = new Response(body, response_options);
  15336. resolve(response);
  15337. }
  15338. });
  15339. return;
  15340. }
  15341. // for br
  15342. if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
  15343. body = body.pipe(zlib.createBrotliDecompress());
  15344. response = new Response(body, response_options);
  15345. resolve(response);
  15346. return;
  15347. }
  15348. // otherwise, use response as-is
  15349. response = new Response(body, response_options);
  15350. resolve(response);
  15351. });
  15352. writeToStream(req, request);
  15353. });
  15354. }
  15355. function fixResponseChunkedTransferBadEnding(request, errorCallback) {
  15356. let socket;
  15357. request.on('socket', function (s) {
  15358. socket = s;
  15359. });
  15360. request.on('response', function (response) {
  15361. const headers = response.headers;
  15362. if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
  15363. response.once('close', function (hadError) {
  15364. // tests for socket presence, as in some situations the
  15365. // the 'socket' event is not triggered for the request
  15366. // (happens in deno), avoids `TypeError`
  15367. // if a data listener is still present we didn't end cleanly
  15368. const hasDataListener = socket && socket.listenerCount('data') > 0;
  15369. if (hasDataListener && !hadError) {
  15370. const err = new Error('Premature close');
  15371. err.code = 'ERR_STREAM_PREMATURE_CLOSE';
  15372. errorCallback(err);
  15373. }
  15374. });
  15375. }
  15376. });
  15377. }
  15378. function destroyStream(stream, err) {
  15379. if (stream.destroy) {
  15380. stream.destroy(err);
  15381. } else {
  15382. // node < 8
  15383. stream.emit('error', err);
  15384. stream.end();
  15385. }
  15386. }
  15387. /**
  15388. * Redirect code matching
  15389. *
  15390. * @param Number code Status code
  15391. * @return Boolean
  15392. */
  15393. fetch.isRedirect = function (code) {
  15394. return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
  15395. };
  15396. // expose Promise
  15397. fetch.Promise = global.Promise;
  15398. module.exports = exports = fetch;
  15399. Object.defineProperty(exports, "__esModule", ({ value: true }));
  15400. exports["default"] = exports;
  15401. exports.Headers = Headers;
  15402. exports.Request = Request;
  15403. exports.Response = Response;
  15404. exports.FetchError = FetchError;
  15405. exports.AbortError = AbortError;
  15406. /***/ }),
  15407. /***/ 2299:
  15408. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  15409. "use strict";
  15410. var punycode = __nccwpck_require__(5477);
  15411. var mappingTable = __nccwpck_require__(1907);
  15412. var PROCESSING_OPTIONS = {
  15413. TRANSITIONAL: 0,
  15414. NONTRANSITIONAL: 1
  15415. };
  15416. function normalize(str) { // fix bug in v8
  15417. return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
  15418. }
  15419. function findStatus(val) {
  15420. var start = 0;
  15421. var end = mappingTable.length - 1;
  15422. while (start <= end) {
  15423. var mid = Math.floor((start + end) / 2);
  15424. var target = mappingTable[mid];
  15425. if (target[0][0] <= val && target[0][1] >= val) {
  15426. return target;
  15427. } else if (target[0][0] > val) {
  15428. end = mid - 1;
  15429. } else {
  15430. start = mid + 1;
  15431. }
  15432. }
  15433. return null;
  15434. }
  15435. var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  15436. function countSymbols(string) {
  15437. return string
  15438. // replace every surrogate pair with a BMP symbol
  15439. .replace(regexAstralSymbols, '_')
  15440. // then get the length
  15441. .length;
  15442. }
  15443. function mapChars(domain_name, useSTD3, processing_option) {
  15444. var hasError = false;
  15445. var processed = "";
  15446. var len = countSymbols(domain_name);
  15447. for (var i = 0; i < len; ++i) {
  15448. var codePoint = domain_name.codePointAt(i);
  15449. var status = findStatus(codePoint);
  15450. switch (status[1]) {
  15451. case "disallowed":
  15452. hasError = true;
  15453. processed += String.fromCodePoint(codePoint);
  15454. break;
  15455. case "ignored":
  15456. break;
  15457. case "mapped":
  15458. processed += String.fromCodePoint.apply(String, status[2]);
  15459. break;
  15460. case "deviation":
  15461. if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
  15462. processed += String.fromCodePoint.apply(String, status[2]);
  15463. } else {
  15464. processed += String.fromCodePoint(codePoint);
  15465. }
  15466. break;
  15467. case "valid":
  15468. processed += String.fromCodePoint(codePoint);
  15469. break;
  15470. case "disallowed_STD3_mapped":
  15471. if (useSTD3) {
  15472. hasError = true;
  15473. processed += String.fromCodePoint(codePoint);
  15474. } else {
  15475. processed += String.fromCodePoint.apply(String, status[2]);
  15476. }
  15477. break;
  15478. case "disallowed_STD3_valid":
  15479. if (useSTD3) {
  15480. hasError = true;
  15481. }
  15482. processed += String.fromCodePoint(codePoint);
  15483. break;
  15484. }
  15485. }
  15486. return {
  15487. string: processed,
  15488. error: hasError
  15489. };
  15490. }
  15491. var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;
  15492. function validateLabel(label, processing_option) {
  15493. if (label.substr(0, 4) === "xn--") {
  15494. label = punycode.toUnicode(label);
  15495. processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
  15496. }
  15497. var error = false;
  15498. if (normalize(label) !== label ||
  15499. (label[3] === "-" && label[4] === "-") ||
  15500. label[0] === "-" || label[label.length - 1] === "-" ||
  15501. label.indexOf(".") !== -1 ||
  15502. label.search(combiningMarksRegex) === 0) {
  15503. error = true;
  15504. }
  15505. var len = countSymbols(label);
  15506. for (var i = 0; i < len; ++i) {
  15507. var status = findStatus(label.codePointAt(i));
  15508. if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") ||
  15509. (processing === PROCESSING_OPTIONS.NONTRANSITIONAL &&
  15510. status[1] !== "valid" && status[1] !== "deviation")) {
  15511. error = true;
  15512. break;
  15513. }
  15514. }
  15515. return {
  15516. label: label,
  15517. error: error
  15518. };
  15519. }
  15520. function processing(domain_name, useSTD3, processing_option) {
  15521. var result = mapChars(domain_name, useSTD3, processing_option);
  15522. result.string = normalize(result.string);
  15523. var labels = result.string.split(".");
  15524. for (var i = 0; i < labels.length; ++i) {
  15525. try {
  15526. var validation = validateLabel(labels[i]);
  15527. labels[i] = validation.label;
  15528. result.error = result.error || validation.error;
  15529. } catch(e) {
  15530. result.error = true;
  15531. }
  15532. }
  15533. return {
  15534. string: labels.join("."),
  15535. error: result.error
  15536. };
  15537. }
  15538. module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) {
  15539. var result = processing(domain_name, useSTD3, processing_option);
  15540. var labels = result.string.split(".");
  15541. labels = labels.map(function(l) {
  15542. try {
  15543. return punycode.toASCII(l);
  15544. } catch(e) {
  15545. result.error = true;
  15546. return l;
  15547. }
  15548. });
  15549. if (verifyDnsLength) {
  15550. var total = labels.slice(0, labels.length - 1).join(".").length;
  15551. if (total.length > 253 || total.length === 0) {
  15552. result.error = true;
  15553. }
  15554. for (var i=0; i < labels.length; ++i) {
  15555. if (labels.length > 63 || labels.length === 0) {
  15556. result.error = true;
  15557. break;
  15558. }
  15559. }
  15560. }
  15561. if (result.error) return null;
  15562. return labels.join(".");
  15563. };
  15564. module.exports.toUnicode = function(domain_name, useSTD3) {
  15565. var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL);
  15566. return {
  15567. domain: result.string,
  15568. error: result.error
  15569. };
  15570. };
  15571. module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
  15572. /***/ }),
  15573. /***/ 5871:
  15574. /***/ ((module) => {
  15575. "use strict";
  15576. var conversions = {};
  15577. module.exports = conversions;
  15578. function sign(x) {
  15579. return x < 0 ? -1 : 1;
  15580. }
  15581. function evenRound(x) {
  15582. // Round x to the nearest integer, choosing the even integer if it lies halfway between two.
  15583. if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
  15584. return Math.floor(x);
  15585. } else {
  15586. return Math.round(x);
  15587. }
  15588. }
  15589. function createNumberConversion(bitLength, typeOpts) {
  15590. if (!typeOpts.unsigned) {
  15591. --bitLength;
  15592. }
  15593. const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
  15594. const upperBound = Math.pow(2, bitLength) - 1;
  15595. const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
  15596. const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
  15597. return function(V, opts) {
  15598. if (!opts) opts = {};
  15599. let x = +V;
  15600. if (opts.enforceRange) {
  15601. if (!Number.isFinite(x)) {
  15602. throw new TypeError("Argument is not a finite number");
  15603. }
  15604. x = sign(x) * Math.floor(Math.abs(x));
  15605. if (x < lowerBound || x > upperBound) {
  15606. throw new TypeError("Argument is not in byte range");
  15607. }
  15608. return x;
  15609. }
  15610. if (!isNaN(x) && opts.clamp) {
  15611. x = evenRound(x);
  15612. if (x < lowerBound) x = lowerBound;
  15613. if (x > upperBound) x = upperBound;
  15614. return x;
  15615. }
  15616. if (!Number.isFinite(x) || x === 0) {
  15617. return 0;
  15618. }
  15619. x = sign(x) * Math.floor(Math.abs(x));
  15620. x = x % moduloVal;
  15621. if (!typeOpts.unsigned && x >= moduloBound) {
  15622. return x - moduloVal;
  15623. } else if (typeOpts.unsigned) {
  15624. if (x < 0) {
  15625. x += moduloVal;
  15626. } else if (x === -0) { // don't return negative zero
  15627. return 0;
  15628. }
  15629. }
  15630. return x;
  15631. }
  15632. }
  15633. conversions["void"] = function () {
  15634. return undefined;
  15635. };
  15636. conversions["boolean"] = function (val) {
  15637. return !!val;
  15638. };
  15639. conversions["byte"] = createNumberConversion(8, { unsigned: false });
  15640. conversions["octet"] = createNumberConversion(8, { unsigned: true });
  15641. conversions["short"] = createNumberConversion(16, { unsigned: false });
  15642. conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
  15643. conversions["long"] = createNumberConversion(32, { unsigned: false });
  15644. conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
  15645. conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
  15646. conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
  15647. conversions["double"] = function (V) {
  15648. const x = +V;
  15649. if (!Number.isFinite(x)) {
  15650. throw new TypeError("Argument is not a finite floating-point value");
  15651. }
  15652. return x;
  15653. };
  15654. conversions["unrestricted double"] = function (V) {
  15655. const x = +V;
  15656. if (isNaN(x)) {
  15657. throw new TypeError("Argument is NaN");
  15658. }
  15659. return x;
  15660. };
  15661. // not quite valid, but good enough for JS
  15662. conversions["float"] = conversions["double"];
  15663. conversions["unrestricted float"] = conversions["unrestricted double"];
  15664. conversions["DOMString"] = function (V, opts) {
  15665. if (!opts) opts = {};
  15666. if (opts.treatNullAsEmptyString && V === null) {
  15667. return "";
  15668. }
  15669. return String(V);
  15670. };
  15671. conversions["ByteString"] = function (V, opts) {
  15672. const x = String(V);
  15673. let c = undefined;
  15674. for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
  15675. if (c > 255) {
  15676. throw new TypeError("Argument is not a valid bytestring");
  15677. }
  15678. }
  15679. return x;
  15680. };
  15681. conversions["USVString"] = function (V) {
  15682. const S = String(V);
  15683. const n = S.length;
  15684. const U = [];
  15685. for (let i = 0; i < n; ++i) {
  15686. const c = S.charCodeAt(i);
  15687. if (c < 0xD800 || c > 0xDFFF) {
  15688. U.push(String.fromCodePoint(c));
  15689. } else if (0xDC00 <= c && c <= 0xDFFF) {
  15690. U.push(String.fromCodePoint(0xFFFD));
  15691. } else {
  15692. if (i === n - 1) {
  15693. U.push(String.fromCodePoint(0xFFFD));
  15694. } else {
  15695. const d = S.charCodeAt(i + 1);
  15696. if (0xDC00 <= d && d <= 0xDFFF) {
  15697. const a = c & 0x3FF;
  15698. const b = d & 0x3FF;
  15699. U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
  15700. ++i;
  15701. } else {
  15702. U.push(String.fromCodePoint(0xFFFD));
  15703. }
  15704. }
  15705. }
  15706. }
  15707. return U.join('');
  15708. };
  15709. conversions["Date"] = function (V, opts) {
  15710. if (!(V instanceof Date)) {
  15711. throw new TypeError("Argument is not a Date object");
  15712. }
  15713. if (isNaN(V)) {
  15714. return undefined;
  15715. }
  15716. return V;
  15717. };
  15718. conversions["RegExp"] = function (V, opts) {
  15719. if (!(V instanceof RegExp)) {
  15720. V = new RegExp(V);
  15721. }
  15722. return V;
  15723. };
  15724. /***/ }),
  15725. /***/ 8262:
  15726. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  15727. "use strict";
  15728. const usm = __nccwpck_require__(33);
  15729. exports.implementation = class URLImpl {
  15730. constructor(constructorArgs) {
  15731. const url = constructorArgs[0];
  15732. const base = constructorArgs[1];
  15733. let parsedBase = null;
  15734. if (base !== undefined) {
  15735. parsedBase = usm.basicURLParse(base);
  15736. if (parsedBase === "failure") {
  15737. throw new TypeError("Invalid base URL");
  15738. }
  15739. }
  15740. const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
  15741. if (parsedURL === "failure") {
  15742. throw new TypeError("Invalid URL");
  15743. }
  15744. this._url = parsedURL;
  15745. // TODO: query stuff
  15746. }
  15747. get href() {
  15748. return usm.serializeURL(this._url);
  15749. }
  15750. set href(v) {
  15751. const parsedURL = usm.basicURLParse(v);
  15752. if (parsedURL === "failure") {
  15753. throw new TypeError("Invalid URL");
  15754. }
  15755. this._url = parsedURL;
  15756. }
  15757. get origin() {
  15758. return usm.serializeURLOrigin(this._url);
  15759. }
  15760. get protocol() {
  15761. return this._url.scheme + ":";
  15762. }
  15763. set protocol(v) {
  15764. usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" });
  15765. }
  15766. get username() {
  15767. return this._url.username;
  15768. }
  15769. set username(v) {
  15770. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  15771. return;
  15772. }
  15773. usm.setTheUsername(this._url, v);
  15774. }
  15775. get password() {
  15776. return this._url.password;
  15777. }
  15778. set password(v) {
  15779. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  15780. return;
  15781. }
  15782. usm.setThePassword(this._url, v);
  15783. }
  15784. get host() {
  15785. const url = this._url;
  15786. if (url.host === null) {
  15787. return "";
  15788. }
  15789. if (url.port === null) {
  15790. return usm.serializeHost(url.host);
  15791. }
  15792. return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
  15793. }
  15794. set host(v) {
  15795. if (this._url.cannotBeABaseURL) {
  15796. return;
  15797. }
  15798. usm.basicURLParse(v, { url: this._url, stateOverride: "host" });
  15799. }
  15800. get hostname() {
  15801. if (this._url.host === null) {
  15802. return "";
  15803. }
  15804. return usm.serializeHost(this._url.host);
  15805. }
  15806. set hostname(v) {
  15807. if (this._url.cannotBeABaseURL) {
  15808. return;
  15809. }
  15810. usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" });
  15811. }
  15812. get port() {
  15813. if (this._url.port === null) {
  15814. return "";
  15815. }
  15816. return usm.serializeInteger(this._url.port);
  15817. }
  15818. set port(v) {
  15819. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  15820. return;
  15821. }
  15822. if (v === "") {
  15823. this._url.port = null;
  15824. } else {
  15825. usm.basicURLParse(v, { url: this._url, stateOverride: "port" });
  15826. }
  15827. }
  15828. get pathname() {
  15829. if (this._url.cannotBeABaseURL) {
  15830. return this._url.path[0];
  15831. }
  15832. if (this._url.path.length === 0) {
  15833. return "";
  15834. }
  15835. return "/" + this._url.path.join("/");
  15836. }
  15837. set pathname(v) {
  15838. if (this._url.cannotBeABaseURL) {
  15839. return;
  15840. }
  15841. this._url.path = [];
  15842. usm.basicURLParse(v, { url: this._url, stateOverride: "path start" });
  15843. }
  15844. get search() {
  15845. if (this._url.query === null || this._url.query === "") {
  15846. return "";
  15847. }
  15848. return "?" + this._url.query;
  15849. }
  15850. set search(v) {
  15851. // TODO: query stuff
  15852. const url = this._url;
  15853. if (v === "") {
  15854. url.query = null;
  15855. return;
  15856. }
  15857. const input = v[0] === "?" ? v.substring(1) : v;
  15858. url.query = "";
  15859. usm.basicURLParse(input, { url, stateOverride: "query" });
  15860. }
  15861. get hash() {
  15862. if (this._url.fragment === null || this._url.fragment === "") {
  15863. return "";
  15864. }
  15865. return "#" + this._url.fragment;
  15866. }
  15867. set hash(v) {
  15868. if (v === "") {
  15869. this._url.fragment = null;
  15870. return;
  15871. }
  15872. const input = v[0] === "#" ? v.substring(1) : v;
  15873. this._url.fragment = "";
  15874. usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" });
  15875. }
  15876. toJSON() {
  15877. return this.href;
  15878. }
  15879. };
  15880. /***/ }),
  15881. /***/ 653:
  15882. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  15883. "use strict";
  15884. const conversions = __nccwpck_require__(5871);
  15885. const utils = __nccwpck_require__(276);
  15886. const Impl = __nccwpck_require__(8262);
  15887. const impl = utils.implSymbol;
  15888. function URL(url) {
  15889. if (!this || this[impl] || !(this instanceof URL)) {
  15890. throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
  15891. }
  15892. if (arguments.length < 1) {
  15893. throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
  15894. }
  15895. const args = [];
  15896. for (let i = 0; i < arguments.length && i < 2; ++i) {
  15897. args[i] = arguments[i];
  15898. }
  15899. args[0] = conversions["USVString"](args[0]);
  15900. if (args[1] !== undefined) {
  15901. args[1] = conversions["USVString"](args[1]);
  15902. }
  15903. module.exports.setup(this, args);
  15904. }
  15905. URL.prototype.toJSON = function toJSON() {
  15906. if (!this || !module.exports.is(this)) {
  15907. throw new TypeError("Illegal invocation");
  15908. }
  15909. const args = [];
  15910. for (let i = 0; i < arguments.length && i < 0; ++i) {
  15911. args[i] = arguments[i];
  15912. }
  15913. return this[impl].toJSON.apply(this[impl], args);
  15914. };
  15915. Object.defineProperty(URL.prototype, "href", {
  15916. get() {
  15917. return this[impl].href;
  15918. },
  15919. set(V) {
  15920. V = conversions["USVString"](V);
  15921. this[impl].href = V;
  15922. },
  15923. enumerable: true,
  15924. configurable: true
  15925. });
  15926. URL.prototype.toString = function () {
  15927. if (!this || !module.exports.is(this)) {
  15928. throw new TypeError("Illegal invocation");
  15929. }
  15930. return this.href;
  15931. };
  15932. Object.defineProperty(URL.prototype, "origin", {
  15933. get() {
  15934. return this[impl].origin;
  15935. },
  15936. enumerable: true,
  15937. configurable: true
  15938. });
  15939. Object.defineProperty(URL.prototype, "protocol", {
  15940. get() {
  15941. return this[impl].protocol;
  15942. },
  15943. set(V) {
  15944. V = conversions["USVString"](V);
  15945. this[impl].protocol = V;
  15946. },
  15947. enumerable: true,
  15948. configurable: true
  15949. });
  15950. Object.defineProperty(URL.prototype, "username", {
  15951. get() {
  15952. return this[impl].username;
  15953. },
  15954. set(V) {
  15955. V = conversions["USVString"](V);
  15956. this[impl].username = V;
  15957. },
  15958. enumerable: true,
  15959. configurable: true
  15960. });
  15961. Object.defineProperty(URL.prototype, "password", {
  15962. get() {
  15963. return this[impl].password;
  15964. },
  15965. set(V) {
  15966. V = conversions["USVString"](V);
  15967. this[impl].password = V;
  15968. },
  15969. enumerable: true,
  15970. configurable: true
  15971. });
  15972. Object.defineProperty(URL.prototype, "host", {
  15973. get() {
  15974. return this[impl].host;
  15975. },
  15976. set(V) {
  15977. V = conversions["USVString"](V);
  15978. this[impl].host = V;
  15979. },
  15980. enumerable: true,
  15981. configurable: true
  15982. });
  15983. Object.defineProperty(URL.prototype, "hostname", {
  15984. get() {
  15985. return this[impl].hostname;
  15986. },
  15987. set(V) {
  15988. V = conversions["USVString"](V);
  15989. this[impl].hostname = V;
  15990. },
  15991. enumerable: true,
  15992. configurable: true
  15993. });
  15994. Object.defineProperty(URL.prototype, "port", {
  15995. get() {
  15996. return this[impl].port;
  15997. },
  15998. set(V) {
  15999. V = conversions["USVString"](V);
  16000. this[impl].port = V;
  16001. },
  16002. enumerable: true,
  16003. configurable: true
  16004. });
  16005. Object.defineProperty(URL.prototype, "pathname", {
  16006. get() {
  16007. return this[impl].pathname;
  16008. },
  16009. set(V) {
  16010. V = conversions["USVString"](V);
  16011. this[impl].pathname = V;
  16012. },
  16013. enumerable: true,
  16014. configurable: true
  16015. });
  16016. Object.defineProperty(URL.prototype, "search", {
  16017. get() {
  16018. return this[impl].search;
  16019. },
  16020. set(V) {
  16021. V = conversions["USVString"](V);
  16022. this[impl].search = V;
  16023. },
  16024. enumerable: true,
  16025. configurable: true
  16026. });
  16027. Object.defineProperty(URL.prototype, "hash", {
  16028. get() {
  16029. return this[impl].hash;
  16030. },
  16031. set(V) {
  16032. V = conversions["USVString"](V);
  16033. this[impl].hash = V;
  16034. },
  16035. enumerable: true,
  16036. configurable: true
  16037. });
  16038. module.exports = {
  16039. is(obj) {
  16040. return !!obj && obj[impl] instanceof Impl.implementation;
  16041. },
  16042. create(constructorArgs, privateData) {
  16043. let obj = Object.create(URL.prototype);
  16044. this.setup(obj, constructorArgs, privateData);
  16045. return obj;
  16046. },
  16047. setup(obj, constructorArgs, privateData) {
  16048. if (!privateData) privateData = {};
  16049. privateData.wrapper = obj;
  16050. obj[impl] = new Impl.implementation(constructorArgs, privateData);
  16051. obj[impl][utils.wrapperSymbol] = obj;
  16052. },
  16053. interface: URL,
  16054. expose: {
  16055. Window: { URL: URL },
  16056. Worker: { URL: URL }
  16057. }
  16058. };
  16059. /***/ }),
  16060. /***/ 3323:
  16061. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  16062. "use strict";
  16063. exports.URL = __nccwpck_require__(653)["interface"];
  16064. exports.serializeURL = __nccwpck_require__(33).serializeURL;
  16065. exports.serializeURLOrigin = __nccwpck_require__(33).serializeURLOrigin;
  16066. exports.basicURLParse = __nccwpck_require__(33).basicURLParse;
  16067. exports.setTheUsername = __nccwpck_require__(33).setTheUsername;
  16068. exports.setThePassword = __nccwpck_require__(33).setThePassword;
  16069. exports.serializeHost = __nccwpck_require__(33).serializeHost;
  16070. exports.serializeInteger = __nccwpck_require__(33).serializeInteger;
  16071. exports.parseURL = __nccwpck_require__(33).parseURL;
  16072. /***/ }),
  16073. /***/ 33:
  16074. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  16075. "use strict";
  16076. const punycode = __nccwpck_require__(5477);
  16077. const tr46 = __nccwpck_require__(2299);
  16078. const specialSchemes = {
  16079. ftp: 21,
  16080. file: null,
  16081. gopher: 70,
  16082. http: 80,
  16083. https: 443,
  16084. ws: 80,
  16085. wss: 443
  16086. };
  16087. const failure = Symbol("failure");
  16088. function countSymbols(str) {
  16089. return punycode.ucs2.decode(str).length;
  16090. }
  16091. function at(input, idx) {
  16092. const c = input[idx];
  16093. return isNaN(c) ? undefined : String.fromCodePoint(c);
  16094. }
  16095. function isASCIIDigit(c) {
  16096. return c >= 0x30 && c <= 0x39;
  16097. }
  16098. function isASCIIAlpha(c) {
  16099. return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
  16100. }
  16101. function isASCIIAlphanumeric(c) {
  16102. return isASCIIAlpha(c) || isASCIIDigit(c);
  16103. }
  16104. function isASCIIHex(c) {
  16105. return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
  16106. }
  16107. function isSingleDot(buffer) {
  16108. return buffer === "." || buffer.toLowerCase() === "%2e";
  16109. }
  16110. function isDoubleDot(buffer) {
  16111. buffer = buffer.toLowerCase();
  16112. return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
  16113. }
  16114. function isWindowsDriveLetterCodePoints(cp1, cp2) {
  16115. return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
  16116. }
  16117. function isWindowsDriveLetterString(string) {
  16118. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
  16119. }
  16120. function isNormalizedWindowsDriveLetterString(string) {
  16121. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
  16122. }
  16123. function containsForbiddenHostCodePoint(string) {
  16124. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
  16125. }
  16126. function containsForbiddenHostCodePointExcludingPercent(string) {
  16127. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
  16128. }
  16129. function isSpecialScheme(scheme) {
  16130. return specialSchemes[scheme] !== undefined;
  16131. }
  16132. function isSpecial(url) {
  16133. return isSpecialScheme(url.scheme);
  16134. }
  16135. function defaultPort(scheme) {
  16136. return specialSchemes[scheme];
  16137. }
  16138. function percentEncode(c) {
  16139. let hex = c.toString(16).toUpperCase();
  16140. if (hex.length === 1) {
  16141. hex = "0" + hex;
  16142. }
  16143. return "%" + hex;
  16144. }
  16145. function utf8PercentEncode(c) {
  16146. const buf = new Buffer(c);
  16147. let str = "";
  16148. for (let i = 0; i < buf.length; ++i) {
  16149. str += percentEncode(buf[i]);
  16150. }
  16151. return str;
  16152. }
  16153. function utf8PercentDecode(str) {
  16154. const input = new Buffer(str);
  16155. const output = [];
  16156. for (let i = 0; i < input.length; ++i) {
  16157. if (input[i] !== 37) {
  16158. output.push(input[i]);
  16159. } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
  16160. output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
  16161. i += 2;
  16162. } else {
  16163. output.push(input[i]);
  16164. }
  16165. }
  16166. return new Buffer(output).toString();
  16167. }
  16168. function isC0ControlPercentEncode(c) {
  16169. return c <= 0x1F || c > 0x7E;
  16170. }
  16171. const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]);
  16172. function isPathPercentEncode(c) {
  16173. return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
  16174. }
  16175. const extraUserinfoPercentEncodeSet =
  16176. new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
  16177. function isUserinfoPercentEncode(c) {
  16178. return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
  16179. }
  16180. function percentEncodeChar(c, encodeSetPredicate) {
  16181. const cStr = String.fromCodePoint(c);
  16182. if (encodeSetPredicate(c)) {
  16183. return utf8PercentEncode(cStr);
  16184. }
  16185. return cStr;
  16186. }
  16187. function parseIPv4Number(input) {
  16188. let R = 10;
  16189. if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
  16190. input = input.substring(2);
  16191. R = 16;
  16192. } else if (input.length >= 2 && input.charAt(0) === "0") {
  16193. input = input.substring(1);
  16194. R = 8;
  16195. }
  16196. if (input === "") {
  16197. return 0;
  16198. }
  16199. const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/);
  16200. if (regex.test(input)) {
  16201. return failure;
  16202. }
  16203. return parseInt(input, R);
  16204. }
  16205. function parseIPv4(input) {
  16206. const parts = input.split(".");
  16207. if (parts[parts.length - 1] === "") {
  16208. if (parts.length > 1) {
  16209. parts.pop();
  16210. }
  16211. }
  16212. if (parts.length > 4) {
  16213. return input;
  16214. }
  16215. const numbers = [];
  16216. for (const part of parts) {
  16217. if (part === "") {
  16218. return input;
  16219. }
  16220. const n = parseIPv4Number(part);
  16221. if (n === failure) {
  16222. return input;
  16223. }
  16224. numbers.push(n);
  16225. }
  16226. for (let i = 0; i < numbers.length - 1; ++i) {
  16227. if (numbers[i] > 255) {
  16228. return failure;
  16229. }
  16230. }
  16231. if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
  16232. return failure;
  16233. }
  16234. let ipv4 = numbers.pop();
  16235. let counter = 0;
  16236. for (const n of numbers) {
  16237. ipv4 += n * Math.pow(256, 3 - counter);
  16238. ++counter;
  16239. }
  16240. return ipv4;
  16241. }
  16242. function serializeIPv4(address) {
  16243. let output = "";
  16244. let n = address;
  16245. for (let i = 1; i <= 4; ++i) {
  16246. output = String(n % 256) + output;
  16247. if (i !== 4) {
  16248. output = "." + output;
  16249. }
  16250. n = Math.floor(n / 256);
  16251. }
  16252. return output;
  16253. }
  16254. function parseIPv6(input) {
  16255. const address = [0, 0, 0, 0, 0, 0, 0, 0];
  16256. let pieceIndex = 0;
  16257. let compress = null;
  16258. let pointer = 0;
  16259. input = punycode.ucs2.decode(input);
  16260. if (input[pointer] === 58) {
  16261. if (input[pointer + 1] !== 58) {
  16262. return failure;
  16263. }
  16264. pointer += 2;
  16265. ++pieceIndex;
  16266. compress = pieceIndex;
  16267. }
  16268. while (pointer < input.length) {
  16269. if (pieceIndex === 8) {
  16270. return failure;
  16271. }
  16272. if (input[pointer] === 58) {
  16273. if (compress !== null) {
  16274. return failure;
  16275. }
  16276. ++pointer;
  16277. ++pieceIndex;
  16278. compress = pieceIndex;
  16279. continue;
  16280. }
  16281. let value = 0;
  16282. let length = 0;
  16283. while (length < 4 && isASCIIHex(input[pointer])) {
  16284. value = value * 0x10 + parseInt(at(input, pointer), 16);
  16285. ++pointer;
  16286. ++length;
  16287. }
  16288. if (input[pointer] === 46) {
  16289. if (length === 0) {
  16290. return failure;
  16291. }
  16292. pointer -= length;
  16293. if (pieceIndex > 6) {
  16294. return failure;
  16295. }
  16296. let numbersSeen = 0;
  16297. while (input[pointer] !== undefined) {
  16298. let ipv4Piece = null;
  16299. if (numbersSeen > 0) {
  16300. if (input[pointer] === 46 && numbersSeen < 4) {
  16301. ++pointer;
  16302. } else {
  16303. return failure;
  16304. }
  16305. }
  16306. if (!isASCIIDigit(input[pointer])) {
  16307. return failure;
  16308. }
  16309. while (isASCIIDigit(input[pointer])) {
  16310. const number = parseInt(at(input, pointer));
  16311. if (ipv4Piece === null) {
  16312. ipv4Piece = number;
  16313. } else if (ipv4Piece === 0) {
  16314. return failure;
  16315. } else {
  16316. ipv4Piece = ipv4Piece * 10 + number;
  16317. }
  16318. if (ipv4Piece > 255) {
  16319. return failure;
  16320. }
  16321. ++pointer;
  16322. }
  16323. address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
  16324. ++numbersSeen;
  16325. if (numbersSeen === 2 || numbersSeen === 4) {
  16326. ++pieceIndex;
  16327. }
  16328. }
  16329. if (numbersSeen !== 4) {
  16330. return failure;
  16331. }
  16332. break;
  16333. } else if (input[pointer] === 58) {
  16334. ++pointer;
  16335. if (input[pointer] === undefined) {
  16336. return failure;
  16337. }
  16338. } else if (input[pointer] !== undefined) {
  16339. return failure;
  16340. }
  16341. address[pieceIndex] = value;
  16342. ++pieceIndex;
  16343. }
  16344. if (compress !== null) {
  16345. let swaps = pieceIndex - compress;
  16346. pieceIndex = 7;
  16347. while (pieceIndex !== 0 && swaps > 0) {
  16348. const temp = address[compress + swaps - 1];
  16349. address[compress + swaps - 1] = address[pieceIndex];
  16350. address[pieceIndex] = temp;
  16351. --pieceIndex;
  16352. --swaps;
  16353. }
  16354. } else if (compress === null && pieceIndex !== 8) {
  16355. return failure;
  16356. }
  16357. return address;
  16358. }
  16359. function serializeIPv6(address) {
  16360. let output = "";
  16361. const seqResult = findLongestZeroSequence(address);
  16362. const compress = seqResult.idx;
  16363. let ignore0 = false;
  16364. for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
  16365. if (ignore0 && address[pieceIndex] === 0) {
  16366. continue;
  16367. } else if (ignore0) {
  16368. ignore0 = false;
  16369. }
  16370. if (compress === pieceIndex) {
  16371. const separator = pieceIndex === 0 ? "::" : ":";
  16372. output += separator;
  16373. ignore0 = true;
  16374. continue;
  16375. }
  16376. output += address[pieceIndex].toString(16);
  16377. if (pieceIndex !== 7) {
  16378. output += ":";
  16379. }
  16380. }
  16381. return output;
  16382. }
  16383. function parseHost(input, isSpecialArg) {
  16384. if (input[0] === "[") {
  16385. if (input[input.length - 1] !== "]") {
  16386. return failure;
  16387. }
  16388. return parseIPv6(input.substring(1, input.length - 1));
  16389. }
  16390. if (!isSpecialArg) {
  16391. return parseOpaqueHost(input);
  16392. }
  16393. const domain = utf8PercentDecode(input);
  16394. const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
  16395. if (asciiDomain === null) {
  16396. return failure;
  16397. }
  16398. if (containsForbiddenHostCodePoint(asciiDomain)) {
  16399. return failure;
  16400. }
  16401. const ipv4Host = parseIPv4(asciiDomain);
  16402. if (typeof ipv4Host === "number" || ipv4Host === failure) {
  16403. return ipv4Host;
  16404. }
  16405. return asciiDomain;
  16406. }
  16407. function parseOpaqueHost(input) {
  16408. if (containsForbiddenHostCodePointExcludingPercent(input)) {
  16409. return failure;
  16410. }
  16411. let output = "";
  16412. const decoded = punycode.ucs2.decode(input);
  16413. for (let i = 0; i < decoded.length; ++i) {
  16414. output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
  16415. }
  16416. return output;
  16417. }
  16418. function findLongestZeroSequence(arr) {
  16419. let maxIdx = null;
  16420. let maxLen = 1; // only find elements > 1
  16421. let currStart = null;
  16422. let currLen = 0;
  16423. for (let i = 0; i < arr.length; ++i) {
  16424. if (arr[i] !== 0) {
  16425. if (currLen > maxLen) {
  16426. maxIdx = currStart;
  16427. maxLen = currLen;
  16428. }
  16429. currStart = null;
  16430. currLen = 0;
  16431. } else {
  16432. if (currStart === null) {
  16433. currStart = i;
  16434. }
  16435. ++currLen;
  16436. }
  16437. }
  16438. // if trailing zeros
  16439. if (currLen > maxLen) {
  16440. maxIdx = currStart;
  16441. maxLen = currLen;
  16442. }
  16443. return {
  16444. idx: maxIdx,
  16445. len: maxLen
  16446. };
  16447. }
  16448. function serializeHost(host) {
  16449. if (typeof host === "number") {
  16450. return serializeIPv4(host);
  16451. }
  16452. // IPv6 serializer
  16453. if (host instanceof Array) {
  16454. return "[" + serializeIPv6(host) + "]";
  16455. }
  16456. return host;
  16457. }
  16458. function trimControlChars(url) {
  16459. return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
  16460. }
  16461. function trimTabAndNewline(url) {
  16462. return url.replace(/\u0009|\u000A|\u000D/g, "");
  16463. }
  16464. function shortenPath(url) {
  16465. const path = url.path;
  16466. if (path.length === 0) {
  16467. return;
  16468. }
  16469. if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
  16470. return;
  16471. }
  16472. path.pop();
  16473. }
  16474. function includesCredentials(url) {
  16475. return url.username !== "" || url.password !== "";
  16476. }
  16477. function cannotHaveAUsernamePasswordPort(url) {
  16478. return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
  16479. }
  16480. function isNormalizedWindowsDriveLetter(string) {
  16481. return /^[A-Za-z]:$/.test(string);
  16482. }
  16483. function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
  16484. this.pointer = 0;
  16485. this.input = input;
  16486. this.base = base || null;
  16487. this.encodingOverride = encodingOverride || "utf-8";
  16488. this.stateOverride = stateOverride;
  16489. this.url = url;
  16490. this.failure = false;
  16491. this.parseError = false;
  16492. if (!this.url) {
  16493. this.url = {
  16494. scheme: "",
  16495. username: "",
  16496. password: "",
  16497. host: null,
  16498. port: null,
  16499. path: [],
  16500. query: null,
  16501. fragment: null,
  16502. cannotBeABaseURL: false
  16503. };
  16504. const res = trimControlChars(this.input);
  16505. if (res !== this.input) {
  16506. this.parseError = true;
  16507. }
  16508. this.input = res;
  16509. }
  16510. const res = trimTabAndNewline(this.input);
  16511. if (res !== this.input) {
  16512. this.parseError = true;
  16513. }
  16514. this.input = res;
  16515. this.state = stateOverride || "scheme start";
  16516. this.buffer = "";
  16517. this.atFlag = false;
  16518. this.arrFlag = false;
  16519. this.passwordTokenSeenFlag = false;
  16520. this.input = punycode.ucs2.decode(this.input);
  16521. for (; this.pointer <= this.input.length; ++this.pointer) {
  16522. const c = this.input[this.pointer];
  16523. const cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
  16524. // exec state machine
  16525. const ret = this["parse " + this.state](c, cStr);
  16526. if (!ret) {
  16527. break; // terminate algorithm
  16528. } else if (ret === failure) {
  16529. this.failure = true;
  16530. break;
  16531. }
  16532. }
  16533. }
  16534. URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
  16535. if (isASCIIAlpha(c)) {
  16536. this.buffer += cStr.toLowerCase();
  16537. this.state = "scheme";
  16538. } else if (!this.stateOverride) {
  16539. this.state = "no scheme";
  16540. --this.pointer;
  16541. } else {
  16542. this.parseError = true;
  16543. return failure;
  16544. }
  16545. return true;
  16546. };
  16547. URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
  16548. if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
  16549. this.buffer += cStr.toLowerCase();
  16550. } else if (c === 58) {
  16551. if (this.stateOverride) {
  16552. if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
  16553. return false;
  16554. }
  16555. if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
  16556. return false;
  16557. }
  16558. if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
  16559. return false;
  16560. }
  16561. if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
  16562. return false;
  16563. }
  16564. }
  16565. this.url.scheme = this.buffer;
  16566. this.buffer = "";
  16567. if (this.stateOverride) {
  16568. return false;
  16569. }
  16570. if (this.url.scheme === "file") {
  16571. if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
  16572. this.parseError = true;
  16573. }
  16574. this.state = "file";
  16575. } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
  16576. this.state = "special relative or authority";
  16577. } else if (isSpecial(this.url)) {
  16578. this.state = "special authority slashes";
  16579. } else if (this.input[this.pointer + 1] === 47) {
  16580. this.state = "path or authority";
  16581. ++this.pointer;
  16582. } else {
  16583. this.url.cannotBeABaseURL = true;
  16584. this.url.path.push("");
  16585. this.state = "cannot-be-a-base-URL path";
  16586. }
  16587. } else if (!this.stateOverride) {
  16588. this.buffer = "";
  16589. this.state = "no scheme";
  16590. this.pointer = -1;
  16591. } else {
  16592. this.parseError = true;
  16593. return failure;
  16594. }
  16595. return true;
  16596. };
  16597. URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
  16598. if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) {
  16599. return failure;
  16600. } else if (this.base.cannotBeABaseURL && c === 35) {
  16601. this.url.scheme = this.base.scheme;
  16602. this.url.path = this.base.path.slice();
  16603. this.url.query = this.base.query;
  16604. this.url.fragment = "";
  16605. this.url.cannotBeABaseURL = true;
  16606. this.state = "fragment";
  16607. } else if (this.base.scheme === "file") {
  16608. this.state = "file";
  16609. --this.pointer;
  16610. } else {
  16611. this.state = "relative";
  16612. --this.pointer;
  16613. }
  16614. return true;
  16615. };
  16616. URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
  16617. if (c === 47 && this.input[this.pointer + 1] === 47) {
  16618. this.state = "special authority ignore slashes";
  16619. ++this.pointer;
  16620. } else {
  16621. this.parseError = true;
  16622. this.state = "relative";
  16623. --this.pointer;
  16624. }
  16625. return true;
  16626. };
  16627. URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
  16628. if (c === 47) {
  16629. this.state = "authority";
  16630. } else {
  16631. this.state = "path";
  16632. --this.pointer;
  16633. }
  16634. return true;
  16635. };
  16636. URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
  16637. this.url.scheme = this.base.scheme;
  16638. if (isNaN(c)) {
  16639. this.url.username = this.base.username;
  16640. this.url.password = this.base.password;
  16641. this.url.host = this.base.host;
  16642. this.url.port = this.base.port;
  16643. this.url.path = this.base.path.slice();
  16644. this.url.query = this.base.query;
  16645. } else if (c === 47) {
  16646. this.state = "relative slash";
  16647. } else if (c === 63) {
  16648. this.url.username = this.base.username;
  16649. this.url.password = this.base.password;
  16650. this.url.host = this.base.host;
  16651. this.url.port = this.base.port;
  16652. this.url.path = this.base.path.slice();
  16653. this.url.query = "";
  16654. this.state = "query";
  16655. } else if (c === 35) {
  16656. this.url.username = this.base.username;
  16657. this.url.password = this.base.password;
  16658. this.url.host = this.base.host;
  16659. this.url.port = this.base.port;
  16660. this.url.path = this.base.path.slice();
  16661. this.url.query = this.base.query;
  16662. this.url.fragment = "";
  16663. this.state = "fragment";
  16664. } else if (isSpecial(this.url) && c === 92) {
  16665. this.parseError = true;
  16666. this.state = "relative slash";
  16667. } else {
  16668. this.url.username = this.base.username;
  16669. this.url.password = this.base.password;
  16670. this.url.host = this.base.host;
  16671. this.url.port = this.base.port;
  16672. this.url.path = this.base.path.slice(0, this.base.path.length - 1);
  16673. this.state = "path";
  16674. --this.pointer;
  16675. }
  16676. return true;
  16677. };
  16678. URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
  16679. if (isSpecial(this.url) && (c === 47 || c === 92)) {
  16680. if (c === 92) {
  16681. this.parseError = true;
  16682. }
  16683. this.state = "special authority ignore slashes";
  16684. } else if (c === 47) {
  16685. this.state = "authority";
  16686. } else {
  16687. this.url.username = this.base.username;
  16688. this.url.password = this.base.password;
  16689. this.url.host = this.base.host;
  16690. this.url.port = this.base.port;
  16691. this.state = "path";
  16692. --this.pointer;
  16693. }
  16694. return true;
  16695. };
  16696. URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
  16697. if (c === 47 && this.input[this.pointer + 1] === 47) {
  16698. this.state = "special authority ignore slashes";
  16699. ++this.pointer;
  16700. } else {
  16701. this.parseError = true;
  16702. this.state = "special authority ignore slashes";
  16703. --this.pointer;
  16704. }
  16705. return true;
  16706. };
  16707. URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
  16708. if (c !== 47 && c !== 92) {
  16709. this.state = "authority";
  16710. --this.pointer;
  16711. } else {
  16712. this.parseError = true;
  16713. }
  16714. return true;
  16715. };
  16716. URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
  16717. if (c === 64) {
  16718. this.parseError = true;
  16719. if (this.atFlag) {
  16720. this.buffer = "%40" + this.buffer;
  16721. }
  16722. this.atFlag = true;
  16723. // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
  16724. const len = countSymbols(this.buffer);
  16725. for (let pointer = 0; pointer < len; ++pointer) {
  16726. const codePoint = this.buffer.codePointAt(pointer);
  16727. if (codePoint === 58 && !this.passwordTokenSeenFlag) {
  16728. this.passwordTokenSeenFlag = true;
  16729. continue;
  16730. }
  16731. const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
  16732. if (this.passwordTokenSeenFlag) {
  16733. this.url.password += encodedCodePoints;
  16734. } else {
  16735. this.url.username += encodedCodePoints;
  16736. }
  16737. }
  16738. this.buffer = "";
  16739. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  16740. (isSpecial(this.url) && c === 92)) {
  16741. if (this.atFlag && this.buffer === "") {
  16742. this.parseError = true;
  16743. return failure;
  16744. }
  16745. this.pointer -= countSymbols(this.buffer) + 1;
  16746. this.buffer = "";
  16747. this.state = "host";
  16748. } else {
  16749. this.buffer += cStr;
  16750. }
  16751. return true;
  16752. };
  16753. URLStateMachine.prototype["parse hostname"] =
  16754. URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
  16755. if (this.stateOverride && this.url.scheme === "file") {
  16756. --this.pointer;
  16757. this.state = "file host";
  16758. } else if (c === 58 && !this.arrFlag) {
  16759. if (this.buffer === "") {
  16760. this.parseError = true;
  16761. return failure;
  16762. }
  16763. const host = parseHost(this.buffer, isSpecial(this.url));
  16764. if (host === failure) {
  16765. return failure;
  16766. }
  16767. this.url.host = host;
  16768. this.buffer = "";
  16769. this.state = "port";
  16770. if (this.stateOverride === "hostname") {
  16771. return false;
  16772. }
  16773. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  16774. (isSpecial(this.url) && c === 92)) {
  16775. --this.pointer;
  16776. if (isSpecial(this.url) && this.buffer === "") {
  16777. this.parseError = true;
  16778. return failure;
  16779. } else if (this.stateOverride && this.buffer === "" &&
  16780. (includesCredentials(this.url) || this.url.port !== null)) {
  16781. this.parseError = true;
  16782. return false;
  16783. }
  16784. const host = parseHost(this.buffer, isSpecial(this.url));
  16785. if (host === failure) {
  16786. return failure;
  16787. }
  16788. this.url.host = host;
  16789. this.buffer = "";
  16790. this.state = "path start";
  16791. if (this.stateOverride) {
  16792. return false;
  16793. }
  16794. } else {
  16795. if (c === 91) {
  16796. this.arrFlag = true;
  16797. } else if (c === 93) {
  16798. this.arrFlag = false;
  16799. }
  16800. this.buffer += cStr;
  16801. }
  16802. return true;
  16803. };
  16804. URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
  16805. if (isASCIIDigit(c)) {
  16806. this.buffer += cStr;
  16807. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  16808. (isSpecial(this.url) && c === 92) ||
  16809. this.stateOverride) {
  16810. if (this.buffer !== "") {
  16811. const port = parseInt(this.buffer);
  16812. if (port > Math.pow(2, 16) - 1) {
  16813. this.parseError = true;
  16814. return failure;
  16815. }
  16816. this.url.port = port === defaultPort(this.url.scheme) ? null : port;
  16817. this.buffer = "";
  16818. }
  16819. if (this.stateOverride) {
  16820. return false;
  16821. }
  16822. this.state = "path start";
  16823. --this.pointer;
  16824. } else {
  16825. this.parseError = true;
  16826. return failure;
  16827. }
  16828. return true;
  16829. };
  16830. const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
  16831. URLStateMachine.prototype["parse file"] = function parseFile(c) {
  16832. this.url.scheme = "file";
  16833. if (c === 47 || c === 92) {
  16834. if (c === 92) {
  16835. this.parseError = true;
  16836. }
  16837. this.state = "file slash";
  16838. } else if (this.base !== null && this.base.scheme === "file") {
  16839. if (isNaN(c)) {
  16840. this.url.host = this.base.host;
  16841. this.url.path = this.base.path.slice();
  16842. this.url.query = this.base.query;
  16843. } else if (c === 63) {
  16844. this.url.host = this.base.host;
  16845. this.url.path = this.base.path.slice();
  16846. this.url.query = "";
  16847. this.state = "query";
  16848. } else if (c === 35) {
  16849. this.url.host = this.base.host;
  16850. this.url.path = this.base.path.slice();
  16851. this.url.query = this.base.query;
  16852. this.url.fragment = "";
  16853. this.state = "fragment";
  16854. } else {
  16855. if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
  16856. !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
  16857. (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
  16858. !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
  16859. this.url.host = this.base.host;
  16860. this.url.path = this.base.path.slice();
  16861. shortenPath(this.url);
  16862. } else {
  16863. this.parseError = true;
  16864. }
  16865. this.state = "path";
  16866. --this.pointer;
  16867. }
  16868. } else {
  16869. this.state = "path";
  16870. --this.pointer;
  16871. }
  16872. return true;
  16873. };
  16874. URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
  16875. if (c === 47 || c === 92) {
  16876. if (c === 92) {
  16877. this.parseError = true;
  16878. }
  16879. this.state = "file host";
  16880. } else {
  16881. if (this.base !== null && this.base.scheme === "file") {
  16882. if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
  16883. this.url.path.push(this.base.path[0]);
  16884. } else {
  16885. this.url.host = this.base.host;
  16886. }
  16887. }
  16888. this.state = "path";
  16889. --this.pointer;
  16890. }
  16891. return true;
  16892. };
  16893. URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
  16894. if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
  16895. --this.pointer;
  16896. if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
  16897. this.parseError = true;
  16898. this.state = "path";
  16899. } else if (this.buffer === "") {
  16900. this.url.host = "";
  16901. if (this.stateOverride) {
  16902. return false;
  16903. }
  16904. this.state = "path start";
  16905. } else {
  16906. let host = parseHost(this.buffer, isSpecial(this.url));
  16907. if (host === failure) {
  16908. return failure;
  16909. }
  16910. if (host === "localhost") {
  16911. host = "";
  16912. }
  16913. this.url.host = host;
  16914. if (this.stateOverride) {
  16915. return false;
  16916. }
  16917. this.buffer = "";
  16918. this.state = "path start";
  16919. }
  16920. } else {
  16921. this.buffer += cStr;
  16922. }
  16923. return true;
  16924. };
  16925. URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
  16926. if (isSpecial(this.url)) {
  16927. if (c === 92) {
  16928. this.parseError = true;
  16929. }
  16930. this.state = "path";
  16931. if (c !== 47 && c !== 92) {
  16932. --this.pointer;
  16933. }
  16934. } else if (!this.stateOverride && c === 63) {
  16935. this.url.query = "";
  16936. this.state = "query";
  16937. } else if (!this.stateOverride && c === 35) {
  16938. this.url.fragment = "";
  16939. this.state = "fragment";
  16940. } else if (c !== undefined) {
  16941. this.state = "path";
  16942. if (c !== 47) {
  16943. --this.pointer;
  16944. }
  16945. }
  16946. return true;
  16947. };
  16948. URLStateMachine.prototype["parse path"] = function parsePath(c) {
  16949. if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) ||
  16950. (!this.stateOverride && (c === 63 || c === 35))) {
  16951. if (isSpecial(this.url) && c === 92) {
  16952. this.parseError = true;
  16953. }
  16954. if (isDoubleDot(this.buffer)) {
  16955. shortenPath(this.url);
  16956. if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
  16957. this.url.path.push("");
  16958. }
  16959. } else if (isSingleDot(this.buffer) && c !== 47 &&
  16960. !(isSpecial(this.url) && c === 92)) {
  16961. this.url.path.push("");
  16962. } else if (!isSingleDot(this.buffer)) {
  16963. if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
  16964. if (this.url.host !== "" && this.url.host !== null) {
  16965. this.parseError = true;
  16966. this.url.host = "";
  16967. }
  16968. this.buffer = this.buffer[0] + ":";
  16969. }
  16970. this.url.path.push(this.buffer);
  16971. }
  16972. this.buffer = "";
  16973. if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
  16974. while (this.url.path.length > 1 && this.url.path[0] === "") {
  16975. this.parseError = true;
  16976. this.url.path.shift();
  16977. }
  16978. }
  16979. if (c === 63) {
  16980. this.url.query = "";
  16981. this.state = "query";
  16982. }
  16983. if (c === 35) {
  16984. this.url.fragment = "";
  16985. this.state = "fragment";
  16986. }
  16987. } else {
  16988. // TODO: If c is not a URL code point and not "%", parse error.
  16989. if (c === 37 &&
  16990. (!isASCIIHex(this.input[this.pointer + 1]) ||
  16991. !isASCIIHex(this.input[this.pointer + 2]))) {
  16992. this.parseError = true;
  16993. }
  16994. this.buffer += percentEncodeChar(c, isPathPercentEncode);
  16995. }
  16996. return true;
  16997. };
  16998. URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
  16999. if (c === 63) {
  17000. this.url.query = "";
  17001. this.state = "query";
  17002. } else if (c === 35) {
  17003. this.url.fragment = "";
  17004. this.state = "fragment";
  17005. } else {
  17006. // TODO: Add: not a URL code point
  17007. if (!isNaN(c) && c !== 37) {
  17008. this.parseError = true;
  17009. }
  17010. if (c === 37 &&
  17011. (!isASCIIHex(this.input[this.pointer + 1]) ||
  17012. !isASCIIHex(this.input[this.pointer + 2]))) {
  17013. this.parseError = true;
  17014. }
  17015. if (!isNaN(c)) {
  17016. this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
  17017. }
  17018. }
  17019. return true;
  17020. };
  17021. URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
  17022. if (isNaN(c) || (!this.stateOverride && c === 35)) {
  17023. if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
  17024. this.encodingOverride = "utf-8";
  17025. }
  17026. const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead
  17027. for (let i = 0; i < buffer.length; ++i) {
  17028. if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 ||
  17029. buffer[i] === 0x3C || buffer[i] === 0x3E) {
  17030. this.url.query += percentEncode(buffer[i]);
  17031. } else {
  17032. this.url.query += String.fromCodePoint(buffer[i]);
  17033. }
  17034. }
  17035. this.buffer = "";
  17036. if (c === 35) {
  17037. this.url.fragment = "";
  17038. this.state = "fragment";
  17039. }
  17040. } else {
  17041. // TODO: If c is not a URL code point and not "%", parse error.
  17042. if (c === 37 &&
  17043. (!isASCIIHex(this.input[this.pointer + 1]) ||
  17044. !isASCIIHex(this.input[this.pointer + 2]))) {
  17045. this.parseError = true;
  17046. }
  17047. this.buffer += cStr;
  17048. }
  17049. return true;
  17050. };
  17051. URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
  17052. if (isNaN(c)) { // do nothing
  17053. } else if (c === 0x0) {
  17054. this.parseError = true;
  17055. } else {
  17056. // TODO: If c is not a URL code point and not "%", parse error.
  17057. if (c === 37 &&
  17058. (!isASCIIHex(this.input[this.pointer + 1]) ||
  17059. !isASCIIHex(this.input[this.pointer + 2]))) {
  17060. this.parseError = true;
  17061. }
  17062. this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
  17063. }
  17064. return true;
  17065. };
  17066. function serializeURL(url, excludeFragment) {
  17067. let output = url.scheme + ":";
  17068. if (url.host !== null) {
  17069. output += "//";
  17070. if (url.username !== "" || url.password !== "") {
  17071. output += url.username;
  17072. if (url.password !== "") {
  17073. output += ":" + url.password;
  17074. }
  17075. output += "@";
  17076. }
  17077. output += serializeHost(url.host);
  17078. if (url.port !== null) {
  17079. output += ":" + url.port;
  17080. }
  17081. } else if (url.host === null && url.scheme === "file") {
  17082. output += "//";
  17083. }
  17084. if (url.cannotBeABaseURL) {
  17085. output += url.path[0];
  17086. } else {
  17087. for (const string of url.path) {
  17088. output += "/" + string;
  17089. }
  17090. }
  17091. if (url.query !== null) {
  17092. output += "?" + url.query;
  17093. }
  17094. if (!excludeFragment && url.fragment !== null) {
  17095. output += "#" + url.fragment;
  17096. }
  17097. return output;
  17098. }
  17099. function serializeOrigin(tuple) {
  17100. let result = tuple.scheme + "://";
  17101. result += serializeHost(tuple.host);
  17102. if (tuple.port !== null) {
  17103. result += ":" + tuple.port;
  17104. }
  17105. return result;
  17106. }
  17107. module.exports.serializeURL = serializeURL;
  17108. module.exports.serializeURLOrigin = function (url) {
  17109. // https://url.spec.whatwg.org/#concept-url-origin
  17110. switch (url.scheme) {
  17111. case "blob":
  17112. try {
  17113. return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
  17114. } catch (e) {
  17115. // serializing an opaque origin returns "null"
  17116. return "null";
  17117. }
  17118. case "ftp":
  17119. case "gopher":
  17120. case "http":
  17121. case "https":
  17122. case "ws":
  17123. case "wss":
  17124. return serializeOrigin({
  17125. scheme: url.scheme,
  17126. host: url.host,
  17127. port: url.port
  17128. });
  17129. case "file":
  17130. // spec says "exercise to the reader", chrome says "file://"
  17131. return "file://";
  17132. default:
  17133. // serializing an opaque origin returns "null"
  17134. return "null";
  17135. }
  17136. };
  17137. module.exports.basicURLParse = function (input, options) {
  17138. if (options === undefined) {
  17139. options = {};
  17140. }
  17141. const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
  17142. if (usm.failure) {
  17143. return "failure";
  17144. }
  17145. return usm.url;
  17146. };
  17147. module.exports.setTheUsername = function (url, username) {
  17148. url.username = "";
  17149. const decoded = punycode.ucs2.decode(username);
  17150. for (let i = 0; i < decoded.length; ++i) {
  17151. url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  17152. }
  17153. };
  17154. module.exports.setThePassword = function (url, password) {
  17155. url.password = "";
  17156. const decoded = punycode.ucs2.decode(password);
  17157. for (let i = 0; i < decoded.length; ++i) {
  17158. url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  17159. }
  17160. };
  17161. module.exports.serializeHost = serializeHost;
  17162. module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
  17163. module.exports.serializeInteger = function (integer) {
  17164. return String(integer);
  17165. };
  17166. module.exports.parseURL = function (input, options) {
  17167. if (options === undefined) {
  17168. options = {};
  17169. }
  17170. // We don't handle blobs, so this just delegates:
  17171. return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
  17172. };
  17173. /***/ }),
  17174. /***/ 276:
  17175. /***/ ((module) => {
  17176. "use strict";
  17177. module.exports.mixin = function mixin(target, source) {
  17178. const keys = Object.getOwnPropertyNames(source);
  17179. for (let i = 0; i < keys.length; ++i) {
  17180. Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
  17181. }
  17182. };
  17183. module.exports.wrapperSymbol = Symbol("wrapper");
  17184. module.exports.implSymbol = Symbol("impl");
  17185. module.exports.wrapperForImpl = function (impl) {
  17186. return impl[module.exports.wrapperSymbol];
  17187. };
  17188. module.exports.implForWrapper = function (wrapper) {
  17189. return wrapper[module.exports.implSymbol];
  17190. };
  17191. /***/ }),
  17192. /***/ 1223:
  17193. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17194. var wrappy = __nccwpck_require__(2940)
  17195. module.exports = wrappy(once)
  17196. module.exports.strict = wrappy(onceStrict)
  17197. once.proto = once(function () {
  17198. Object.defineProperty(Function.prototype, 'once', {
  17199. value: function () {
  17200. return once(this)
  17201. },
  17202. configurable: true
  17203. })
  17204. Object.defineProperty(Function.prototype, 'onceStrict', {
  17205. value: function () {
  17206. return onceStrict(this)
  17207. },
  17208. configurable: true
  17209. })
  17210. })
  17211. function once (fn) {
  17212. var f = function () {
  17213. if (f.called) return f.value
  17214. f.called = true
  17215. return f.value = fn.apply(this, arguments)
  17216. }
  17217. f.called = false
  17218. return f
  17219. }
  17220. function onceStrict (fn) {
  17221. var f = function () {
  17222. if (f.called)
  17223. throw new Error(f.onceError)
  17224. f.called = true
  17225. return f.value = fn.apply(this, arguments)
  17226. }
  17227. var name = fn.name || 'Function wrapped with `once`'
  17228. f.onceError = name + " shouldn't be called more than once"
  17229. f.called = false
  17230. return f
  17231. }
  17232. /***/ }),
  17233. /***/ 4294:
  17234. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17235. module.exports = __nccwpck_require__(4219);
  17236. /***/ }),
  17237. /***/ 4219:
  17238. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  17239. "use strict";
  17240. var net = __nccwpck_require__(1808);
  17241. var tls = __nccwpck_require__(4404);
  17242. var http = __nccwpck_require__(3685);
  17243. var https = __nccwpck_require__(5687);
  17244. var events = __nccwpck_require__(2361);
  17245. var assert = __nccwpck_require__(9491);
  17246. var util = __nccwpck_require__(3837);
  17247. exports.httpOverHttp = httpOverHttp;
  17248. exports.httpsOverHttp = httpsOverHttp;
  17249. exports.httpOverHttps = httpOverHttps;
  17250. exports.httpsOverHttps = httpsOverHttps;
  17251. function httpOverHttp(options) {
  17252. var agent = new TunnelingAgent(options);
  17253. agent.request = http.request;
  17254. return agent;
  17255. }
  17256. function httpsOverHttp(options) {
  17257. var agent = new TunnelingAgent(options);
  17258. agent.request = http.request;
  17259. agent.createSocket = createSecureSocket;
  17260. agent.defaultPort = 443;
  17261. return agent;
  17262. }
  17263. function httpOverHttps(options) {
  17264. var agent = new TunnelingAgent(options);
  17265. agent.request = https.request;
  17266. return agent;
  17267. }
  17268. function httpsOverHttps(options) {
  17269. var agent = new TunnelingAgent(options);
  17270. agent.request = https.request;
  17271. agent.createSocket = createSecureSocket;
  17272. agent.defaultPort = 443;
  17273. return agent;
  17274. }
  17275. function TunnelingAgent(options) {
  17276. var self = this;
  17277. self.options = options || {};
  17278. self.proxyOptions = self.options.proxy || {};
  17279. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  17280. self.requests = [];
  17281. self.sockets = [];
  17282. self.on('free', function onFree(socket, host, port, localAddress) {
  17283. var options = toOptions(host, port, localAddress);
  17284. for (var i = 0, len = self.requests.length; i < len; ++i) {
  17285. var pending = self.requests[i];
  17286. if (pending.host === options.host && pending.port === options.port) {
  17287. // Detect the request to connect same origin server,
  17288. // reuse the connection.
  17289. self.requests.splice(i, 1);
  17290. pending.request.onSocket(socket);
  17291. return;
  17292. }
  17293. }
  17294. socket.destroy();
  17295. self.removeSocket(socket);
  17296. });
  17297. }
  17298. util.inherits(TunnelingAgent, events.EventEmitter);
  17299. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  17300. var self = this;
  17301. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  17302. if (self.sockets.length >= this.maxSockets) {
  17303. // We are over limit so we'll add it to the queue.
  17304. self.requests.push(options);
  17305. return;
  17306. }
  17307. // If we are under maxSockets create a new one.
  17308. self.createSocket(options, function(socket) {
  17309. socket.on('free', onFree);
  17310. socket.on('close', onCloseOrRemove);
  17311. socket.on('agentRemove', onCloseOrRemove);
  17312. req.onSocket(socket);
  17313. function onFree() {
  17314. self.emit('free', socket, options);
  17315. }
  17316. function onCloseOrRemove(err) {
  17317. self.removeSocket(socket);
  17318. socket.removeListener('free', onFree);
  17319. socket.removeListener('close', onCloseOrRemove);
  17320. socket.removeListener('agentRemove', onCloseOrRemove);
  17321. }
  17322. });
  17323. };
  17324. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  17325. var self = this;
  17326. var placeholder = {};
  17327. self.sockets.push(placeholder);
  17328. var connectOptions = mergeOptions({}, self.proxyOptions, {
  17329. method: 'CONNECT',
  17330. path: options.host + ':' + options.port,
  17331. agent: false,
  17332. headers: {
  17333. host: options.host + ':' + options.port
  17334. }
  17335. });
  17336. if (options.localAddress) {
  17337. connectOptions.localAddress = options.localAddress;
  17338. }
  17339. if (connectOptions.proxyAuth) {
  17340. connectOptions.headers = connectOptions.headers || {};
  17341. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  17342. new Buffer(connectOptions.proxyAuth).toString('base64');
  17343. }
  17344. debug('making CONNECT request');
  17345. var connectReq = self.request(connectOptions);
  17346. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  17347. connectReq.once('response', onResponse); // for v0.6
  17348. connectReq.once('upgrade', onUpgrade); // for v0.6
  17349. connectReq.once('connect', onConnect); // for v0.7 or later
  17350. connectReq.once('error', onError);
  17351. connectReq.end();
  17352. function onResponse(res) {
  17353. // Very hacky. This is necessary to avoid http-parser leaks.
  17354. res.upgrade = true;
  17355. }
  17356. function onUpgrade(res, socket, head) {
  17357. // Hacky.
  17358. process.nextTick(function() {
  17359. onConnect(res, socket, head);
  17360. });
  17361. }
  17362. function onConnect(res, socket, head) {
  17363. connectReq.removeAllListeners();
  17364. socket.removeAllListeners();
  17365. if (res.statusCode !== 200) {
  17366. debug('tunneling socket could not be established, statusCode=%d',
  17367. res.statusCode);
  17368. socket.destroy();
  17369. var error = new Error('tunneling socket could not be established, ' +
  17370. 'statusCode=' + res.statusCode);
  17371. error.code = 'ECONNRESET';
  17372. options.request.emit('error', error);
  17373. self.removeSocket(placeholder);
  17374. return;
  17375. }
  17376. if (head.length > 0) {
  17377. debug('got illegal response body from proxy');
  17378. socket.destroy();
  17379. var error = new Error('got illegal response body from proxy');
  17380. error.code = 'ECONNRESET';
  17381. options.request.emit('error', error);
  17382. self.removeSocket(placeholder);
  17383. return;
  17384. }
  17385. debug('tunneling connection has established');
  17386. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  17387. return cb(socket);
  17388. }
  17389. function onError(cause) {
  17390. connectReq.removeAllListeners();
  17391. debug('tunneling socket could not be established, cause=%s\n',
  17392. cause.message, cause.stack);
  17393. var error = new Error('tunneling socket could not be established, ' +
  17394. 'cause=' + cause.message);
  17395. error.code = 'ECONNRESET';
  17396. options.request.emit('error', error);
  17397. self.removeSocket(placeholder);
  17398. }
  17399. };
  17400. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  17401. var pos = this.sockets.indexOf(socket)
  17402. if (pos === -1) {
  17403. return;
  17404. }
  17405. this.sockets.splice(pos, 1);
  17406. var pending = this.requests.shift();
  17407. if (pending) {
  17408. // If we have pending requests and a socket gets closed a new one
  17409. // needs to be created to take over in the pool for the one that closed.
  17410. this.createSocket(pending, function(socket) {
  17411. pending.request.onSocket(socket);
  17412. });
  17413. }
  17414. };
  17415. function createSecureSocket(options, cb) {
  17416. var self = this;
  17417. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  17418. var hostHeader = options.request.getHeader('host');
  17419. var tlsOptions = mergeOptions({}, self.options, {
  17420. socket: socket,
  17421. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  17422. });
  17423. // 0 is dummy port for v0.6
  17424. var secureSocket = tls.connect(0, tlsOptions);
  17425. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  17426. cb(secureSocket);
  17427. });
  17428. }
  17429. function toOptions(host, port, localAddress) {
  17430. if (typeof host === 'string') { // since v0.10
  17431. return {
  17432. host: host,
  17433. port: port,
  17434. localAddress: localAddress
  17435. };
  17436. }
  17437. return host; // for v0.11 or later
  17438. }
  17439. function mergeOptions(target) {
  17440. for (var i = 1, len = arguments.length; i < len; ++i) {
  17441. var overrides = arguments[i];
  17442. if (typeof overrides === 'object') {
  17443. var keys = Object.keys(overrides);
  17444. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  17445. var k = keys[j];
  17446. if (overrides[k] !== undefined) {
  17447. target[k] = overrides[k];
  17448. }
  17449. }
  17450. }
  17451. }
  17452. return target;
  17453. }
  17454. var debug;
  17455. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  17456. debug = function() {
  17457. var args = Array.prototype.slice.call(arguments);
  17458. if (typeof args[0] === 'string') {
  17459. args[0] = 'TUNNEL: ' + args[0];
  17460. } else {
  17461. args.unshift('TUNNEL:');
  17462. }
  17463. console.error.apply(console, args);
  17464. }
  17465. } else {
  17466. debug = function() {};
  17467. }
  17468. exports.debug = debug; // for test
  17469. /***/ }),
  17470. /***/ 1773:
  17471. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17472. "use strict";
  17473. const Client = __nccwpck_require__(3598)
  17474. const Dispatcher = __nccwpck_require__(412)
  17475. const errors = __nccwpck_require__(8045)
  17476. const Pool = __nccwpck_require__(4634)
  17477. const BalancedPool = __nccwpck_require__(7931)
  17478. const Agent = __nccwpck_require__(7890)
  17479. const util = __nccwpck_require__(3983)
  17480. const { InvalidArgumentError } = errors
  17481. const api = __nccwpck_require__(4059)
  17482. const buildConnector = __nccwpck_require__(2067)
  17483. const MockClient = __nccwpck_require__(8687)
  17484. const MockAgent = __nccwpck_require__(6771)
  17485. const MockPool = __nccwpck_require__(6193)
  17486. const mockErrors = __nccwpck_require__(888)
  17487. const ProxyAgent = __nccwpck_require__(7858)
  17488. const { getGlobalDispatcher, setGlobalDispatcher } = __nccwpck_require__(1892)
  17489. const DecoratorHandler = __nccwpck_require__(6930)
  17490. const RedirectHandler = __nccwpck_require__(2860)
  17491. const createRedirectInterceptor = __nccwpck_require__(8861)
  17492. let hasCrypto
  17493. try {
  17494. __nccwpck_require__(6113)
  17495. hasCrypto = true
  17496. } catch {
  17497. hasCrypto = false
  17498. }
  17499. Object.assign(Dispatcher.prototype, api)
  17500. module.exports.Dispatcher = Dispatcher
  17501. module.exports.Client = Client
  17502. module.exports.Pool = Pool
  17503. module.exports.BalancedPool = BalancedPool
  17504. module.exports.Agent = Agent
  17505. module.exports.ProxyAgent = ProxyAgent
  17506. module.exports.DecoratorHandler = DecoratorHandler
  17507. module.exports.RedirectHandler = RedirectHandler
  17508. module.exports.createRedirectInterceptor = createRedirectInterceptor
  17509. module.exports.buildConnector = buildConnector
  17510. module.exports.errors = errors
  17511. function makeDispatcher (fn) {
  17512. return (url, opts, handler) => {
  17513. if (typeof opts === 'function') {
  17514. handler = opts
  17515. opts = null
  17516. }
  17517. if (!url || (typeof url !== 'string' && typeof url !== 'object' && !(url instanceof URL))) {
  17518. throw new InvalidArgumentError('invalid url')
  17519. }
  17520. if (opts != null && typeof opts !== 'object') {
  17521. throw new InvalidArgumentError('invalid opts')
  17522. }
  17523. if (opts && opts.path != null) {
  17524. if (typeof opts.path !== 'string') {
  17525. throw new InvalidArgumentError('invalid opts.path')
  17526. }
  17527. let path = opts.path
  17528. if (!opts.path.startsWith('/')) {
  17529. path = `/${path}`
  17530. }
  17531. url = new URL(util.parseOrigin(url).origin + path)
  17532. } else {
  17533. if (!opts) {
  17534. opts = typeof url === 'object' ? url : {}
  17535. }
  17536. url = util.parseURL(url)
  17537. }
  17538. const { agent, dispatcher = getGlobalDispatcher() } = opts
  17539. if (agent) {
  17540. throw new InvalidArgumentError('unsupported opts.agent. Did you mean opts.client?')
  17541. }
  17542. return fn.call(dispatcher, {
  17543. ...opts,
  17544. origin: url.origin,
  17545. path: url.search ? `${url.pathname}${url.search}` : url.pathname,
  17546. method: opts.method || (opts.body ? 'PUT' : 'GET')
  17547. }, handler)
  17548. }
  17549. }
  17550. module.exports.setGlobalDispatcher = setGlobalDispatcher
  17551. module.exports.getGlobalDispatcher = getGlobalDispatcher
  17552. if (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) {
  17553. let fetchImpl = null
  17554. module.exports.fetch = async function fetch (resource) {
  17555. if (!fetchImpl) {
  17556. fetchImpl = (__nccwpck_require__(4881).fetch)
  17557. }
  17558. try {
  17559. return await fetchImpl(...arguments)
  17560. } catch (err) {
  17561. if (typeof err === 'object') {
  17562. Error.captureStackTrace(err, this)
  17563. }
  17564. throw err
  17565. }
  17566. }
  17567. module.exports.Headers = __nccwpck_require__(554).Headers
  17568. module.exports.Response = __nccwpck_require__(7823).Response
  17569. module.exports.Request = __nccwpck_require__(8359).Request
  17570. module.exports.FormData = __nccwpck_require__(2015).FormData
  17571. module.exports.File = __nccwpck_require__(8511).File
  17572. module.exports.FileReader = __nccwpck_require__(1446).FileReader
  17573. const { setGlobalOrigin, getGlobalOrigin } = __nccwpck_require__(1246)
  17574. module.exports.setGlobalOrigin = setGlobalOrigin
  17575. module.exports.getGlobalOrigin = getGlobalOrigin
  17576. const { CacheStorage } = __nccwpck_require__(7907)
  17577. const { kConstruct } = __nccwpck_require__(9174)
  17578. // Cache & CacheStorage are tightly coupled with fetch. Even if it may run
  17579. // in an older version of Node, it doesn't have any use without fetch.
  17580. module.exports.caches = new CacheStorage(kConstruct)
  17581. }
  17582. if (util.nodeMajor >= 16) {
  17583. const { deleteCookie, getCookies, getSetCookies, setCookie } = __nccwpck_require__(1724)
  17584. module.exports.deleteCookie = deleteCookie
  17585. module.exports.getCookies = getCookies
  17586. module.exports.getSetCookies = getSetCookies
  17587. module.exports.setCookie = setCookie
  17588. const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
  17589. module.exports.parseMIMEType = parseMIMEType
  17590. module.exports.serializeAMimeType = serializeAMimeType
  17591. }
  17592. if (util.nodeMajor >= 18 && hasCrypto) {
  17593. const { WebSocket } = __nccwpck_require__(4284)
  17594. module.exports.WebSocket = WebSocket
  17595. }
  17596. module.exports.request = makeDispatcher(api.request)
  17597. module.exports.stream = makeDispatcher(api.stream)
  17598. module.exports.pipeline = makeDispatcher(api.pipeline)
  17599. module.exports.connect = makeDispatcher(api.connect)
  17600. module.exports.upgrade = makeDispatcher(api.upgrade)
  17601. module.exports.MockClient = MockClient
  17602. module.exports.MockPool = MockPool
  17603. module.exports.MockAgent = MockAgent
  17604. module.exports.mockErrors = mockErrors
  17605. /***/ }),
  17606. /***/ 7890:
  17607. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17608. "use strict";
  17609. const { InvalidArgumentError } = __nccwpck_require__(8045)
  17610. const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(2785)
  17611. const DispatcherBase = __nccwpck_require__(4839)
  17612. const Pool = __nccwpck_require__(4634)
  17613. const Client = __nccwpck_require__(3598)
  17614. const util = __nccwpck_require__(3983)
  17615. const createRedirectInterceptor = __nccwpck_require__(8861)
  17616. const { WeakRef, FinalizationRegistry } = __nccwpck_require__(6436)()
  17617. const kOnConnect = Symbol('onConnect')
  17618. const kOnDisconnect = Symbol('onDisconnect')
  17619. const kOnConnectionError = Symbol('onConnectionError')
  17620. const kMaxRedirections = Symbol('maxRedirections')
  17621. const kOnDrain = Symbol('onDrain')
  17622. const kFactory = Symbol('factory')
  17623. const kFinalizer = Symbol('finalizer')
  17624. const kOptions = Symbol('options')
  17625. function defaultFactory (origin, opts) {
  17626. return opts && opts.connections === 1
  17627. ? new Client(origin, opts)
  17628. : new Pool(origin, opts)
  17629. }
  17630. class Agent extends DispatcherBase {
  17631. constructor ({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) {
  17632. super()
  17633. if (typeof factory !== 'function') {
  17634. throw new InvalidArgumentError('factory must be a function.')
  17635. }
  17636. if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
  17637. throw new InvalidArgumentError('connect must be a function or an object')
  17638. }
  17639. if (!Number.isInteger(maxRedirections) || maxRedirections < 0) {
  17640. throw new InvalidArgumentError('maxRedirections must be a positive number')
  17641. }
  17642. if (connect && typeof connect !== 'function') {
  17643. connect = { ...connect }
  17644. }
  17645. this[kInterceptors] = options.interceptors && options.interceptors.Agent && Array.isArray(options.interceptors.Agent)
  17646. ? options.interceptors.Agent
  17647. : [createRedirectInterceptor({ maxRedirections })]
  17648. this[kOptions] = { ...util.deepClone(options), connect }
  17649. this[kOptions].interceptors = options.interceptors
  17650. ? { ...options.interceptors }
  17651. : undefined
  17652. this[kMaxRedirections] = maxRedirections
  17653. this[kFactory] = factory
  17654. this[kClients] = new Map()
  17655. this[kFinalizer] = new FinalizationRegistry(/* istanbul ignore next: gc is undeterministic */ key => {
  17656. const ref = this[kClients].get(key)
  17657. if (ref !== undefined && ref.deref() === undefined) {
  17658. this[kClients].delete(key)
  17659. }
  17660. })
  17661. const agent = this
  17662. this[kOnDrain] = (origin, targets) => {
  17663. agent.emit('drain', origin, [agent, ...targets])
  17664. }
  17665. this[kOnConnect] = (origin, targets) => {
  17666. agent.emit('connect', origin, [agent, ...targets])
  17667. }
  17668. this[kOnDisconnect] = (origin, targets, err) => {
  17669. agent.emit('disconnect', origin, [agent, ...targets], err)
  17670. }
  17671. this[kOnConnectionError] = (origin, targets, err) => {
  17672. agent.emit('connectionError', origin, [agent, ...targets], err)
  17673. }
  17674. }
  17675. get [kRunning] () {
  17676. let ret = 0
  17677. for (const ref of this[kClients].values()) {
  17678. const client = ref.deref()
  17679. /* istanbul ignore next: gc is undeterministic */
  17680. if (client) {
  17681. ret += client[kRunning]
  17682. }
  17683. }
  17684. return ret
  17685. }
  17686. [kDispatch] (opts, handler) {
  17687. let key
  17688. if (opts.origin && (typeof opts.origin === 'string' || opts.origin instanceof URL)) {
  17689. key = String(opts.origin)
  17690. } else {
  17691. throw new InvalidArgumentError('opts.origin must be a non-empty string or URL.')
  17692. }
  17693. const ref = this[kClients].get(key)
  17694. let dispatcher = ref ? ref.deref() : null
  17695. if (!dispatcher) {
  17696. dispatcher = this[kFactory](opts.origin, this[kOptions])
  17697. .on('drain', this[kOnDrain])
  17698. .on('connect', this[kOnConnect])
  17699. .on('disconnect', this[kOnDisconnect])
  17700. .on('connectionError', this[kOnConnectionError])
  17701. this[kClients].set(key, new WeakRef(dispatcher))
  17702. this[kFinalizer].register(dispatcher, key)
  17703. }
  17704. return dispatcher.dispatch(opts, handler)
  17705. }
  17706. async [kClose] () {
  17707. const closePromises = []
  17708. for (const ref of this[kClients].values()) {
  17709. const client = ref.deref()
  17710. /* istanbul ignore else: gc is undeterministic */
  17711. if (client) {
  17712. closePromises.push(client.close())
  17713. }
  17714. }
  17715. await Promise.all(closePromises)
  17716. }
  17717. async [kDestroy] (err) {
  17718. const destroyPromises = []
  17719. for (const ref of this[kClients].values()) {
  17720. const client = ref.deref()
  17721. /* istanbul ignore else: gc is undeterministic */
  17722. if (client) {
  17723. destroyPromises.push(client.destroy(err))
  17724. }
  17725. }
  17726. await Promise.all(destroyPromises)
  17727. }
  17728. }
  17729. module.exports = Agent
  17730. /***/ }),
  17731. /***/ 7032:
  17732. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17733. const { addAbortListener } = __nccwpck_require__(3983)
  17734. const { RequestAbortedError } = __nccwpck_require__(8045)
  17735. const kListener = Symbol('kListener')
  17736. const kSignal = Symbol('kSignal')
  17737. function abort (self) {
  17738. if (self.abort) {
  17739. self.abort()
  17740. } else {
  17741. self.onError(new RequestAbortedError())
  17742. }
  17743. }
  17744. function addSignal (self, signal) {
  17745. self[kSignal] = null
  17746. self[kListener] = null
  17747. if (!signal) {
  17748. return
  17749. }
  17750. if (signal.aborted) {
  17751. abort(self)
  17752. return
  17753. }
  17754. self[kSignal] = signal
  17755. self[kListener] = () => {
  17756. abort(self)
  17757. }
  17758. addAbortListener(self[kSignal], self[kListener])
  17759. }
  17760. function removeSignal (self) {
  17761. if (!self[kSignal]) {
  17762. return
  17763. }
  17764. if ('removeEventListener' in self[kSignal]) {
  17765. self[kSignal].removeEventListener('abort', self[kListener])
  17766. } else {
  17767. self[kSignal].removeListener('abort', self[kListener])
  17768. }
  17769. self[kSignal] = null
  17770. self[kListener] = null
  17771. }
  17772. module.exports = {
  17773. addSignal,
  17774. removeSignal
  17775. }
  17776. /***/ }),
  17777. /***/ 9744:
  17778. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17779. "use strict";
  17780. const { AsyncResource } = __nccwpck_require__(852)
  17781. const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8045)
  17782. const util = __nccwpck_require__(3983)
  17783. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  17784. class ConnectHandler extends AsyncResource {
  17785. constructor (opts, callback) {
  17786. if (!opts || typeof opts !== 'object') {
  17787. throw new InvalidArgumentError('invalid opts')
  17788. }
  17789. if (typeof callback !== 'function') {
  17790. throw new InvalidArgumentError('invalid callback')
  17791. }
  17792. const { signal, opaque, responseHeaders } = opts
  17793. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  17794. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  17795. }
  17796. super('UNDICI_CONNECT')
  17797. this.opaque = opaque || null
  17798. this.responseHeaders = responseHeaders || null
  17799. this.callback = callback
  17800. this.abort = null
  17801. addSignal(this, signal)
  17802. }
  17803. onConnect (abort, context) {
  17804. if (!this.callback) {
  17805. throw new RequestAbortedError()
  17806. }
  17807. this.abort = abort
  17808. this.context = context
  17809. }
  17810. onHeaders () {
  17811. throw new SocketError('bad connect', null)
  17812. }
  17813. onUpgrade (statusCode, rawHeaders, socket) {
  17814. const { callback, opaque, context } = this
  17815. removeSignal(this)
  17816. this.callback = null
  17817. let headers = rawHeaders
  17818. // Indicates is an HTTP2Session
  17819. if (headers != null) {
  17820. headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  17821. }
  17822. this.runInAsyncScope(callback, null, null, {
  17823. statusCode,
  17824. headers,
  17825. socket,
  17826. opaque,
  17827. context
  17828. })
  17829. }
  17830. onError (err) {
  17831. const { callback, opaque } = this
  17832. removeSignal(this)
  17833. if (callback) {
  17834. this.callback = null
  17835. queueMicrotask(() => {
  17836. this.runInAsyncScope(callback, null, err, { opaque })
  17837. })
  17838. }
  17839. }
  17840. }
  17841. function connect (opts, callback) {
  17842. if (callback === undefined) {
  17843. return new Promise((resolve, reject) => {
  17844. connect.call(this, opts, (err, data) => {
  17845. return err ? reject(err) : resolve(data)
  17846. })
  17847. })
  17848. }
  17849. try {
  17850. const connectHandler = new ConnectHandler(opts, callback)
  17851. this.dispatch({ ...opts, method: 'CONNECT' }, connectHandler)
  17852. } catch (err) {
  17853. if (typeof callback !== 'function') {
  17854. throw err
  17855. }
  17856. const opaque = opts && opts.opaque
  17857. queueMicrotask(() => callback(err, { opaque }))
  17858. }
  17859. }
  17860. module.exports = connect
  17861. /***/ }),
  17862. /***/ 8752:
  17863. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  17864. "use strict";
  17865. const {
  17866. Readable,
  17867. Duplex,
  17868. PassThrough
  17869. } = __nccwpck_require__(2781)
  17870. const {
  17871. InvalidArgumentError,
  17872. InvalidReturnValueError,
  17873. RequestAbortedError
  17874. } = __nccwpck_require__(8045)
  17875. const util = __nccwpck_require__(3983)
  17876. const { AsyncResource } = __nccwpck_require__(852)
  17877. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  17878. const assert = __nccwpck_require__(9491)
  17879. const kResume = Symbol('resume')
  17880. class PipelineRequest extends Readable {
  17881. constructor () {
  17882. super({ autoDestroy: true })
  17883. this[kResume] = null
  17884. }
  17885. _read () {
  17886. const { [kResume]: resume } = this
  17887. if (resume) {
  17888. this[kResume] = null
  17889. resume()
  17890. }
  17891. }
  17892. _destroy (err, callback) {
  17893. this._read()
  17894. callback(err)
  17895. }
  17896. }
  17897. class PipelineResponse extends Readable {
  17898. constructor (resume) {
  17899. super({ autoDestroy: true })
  17900. this[kResume] = resume
  17901. }
  17902. _read () {
  17903. this[kResume]()
  17904. }
  17905. _destroy (err, callback) {
  17906. if (!err && !this._readableState.endEmitted) {
  17907. err = new RequestAbortedError()
  17908. }
  17909. callback(err)
  17910. }
  17911. }
  17912. class PipelineHandler extends AsyncResource {
  17913. constructor (opts, handler) {
  17914. if (!opts || typeof opts !== 'object') {
  17915. throw new InvalidArgumentError('invalid opts')
  17916. }
  17917. if (typeof handler !== 'function') {
  17918. throw new InvalidArgumentError('invalid handler')
  17919. }
  17920. const { signal, method, opaque, onInfo, responseHeaders } = opts
  17921. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  17922. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  17923. }
  17924. if (method === 'CONNECT') {
  17925. throw new InvalidArgumentError('invalid method')
  17926. }
  17927. if (onInfo && typeof onInfo !== 'function') {
  17928. throw new InvalidArgumentError('invalid onInfo callback')
  17929. }
  17930. super('UNDICI_PIPELINE')
  17931. this.opaque = opaque || null
  17932. this.responseHeaders = responseHeaders || null
  17933. this.handler = handler
  17934. this.abort = null
  17935. this.context = null
  17936. this.onInfo = onInfo || null
  17937. this.req = new PipelineRequest().on('error', util.nop)
  17938. this.ret = new Duplex({
  17939. readableObjectMode: opts.objectMode,
  17940. autoDestroy: true,
  17941. read: () => {
  17942. const { body } = this
  17943. if (body && body.resume) {
  17944. body.resume()
  17945. }
  17946. },
  17947. write: (chunk, encoding, callback) => {
  17948. const { req } = this
  17949. if (req.push(chunk, encoding) || req._readableState.destroyed) {
  17950. callback()
  17951. } else {
  17952. req[kResume] = callback
  17953. }
  17954. },
  17955. destroy: (err, callback) => {
  17956. const { body, req, res, ret, abort } = this
  17957. if (!err && !ret._readableState.endEmitted) {
  17958. err = new RequestAbortedError()
  17959. }
  17960. if (abort && err) {
  17961. abort()
  17962. }
  17963. util.destroy(body, err)
  17964. util.destroy(req, err)
  17965. util.destroy(res, err)
  17966. removeSignal(this)
  17967. callback(err)
  17968. }
  17969. }).on('prefinish', () => {
  17970. const { req } = this
  17971. // Node < 15 does not call _final in same tick.
  17972. req.push(null)
  17973. })
  17974. this.res = null
  17975. addSignal(this, signal)
  17976. }
  17977. onConnect (abort, context) {
  17978. const { ret, res } = this
  17979. assert(!res, 'pipeline cannot be retried')
  17980. if (ret.destroyed) {
  17981. throw new RequestAbortedError()
  17982. }
  17983. this.abort = abort
  17984. this.context = context
  17985. }
  17986. onHeaders (statusCode, rawHeaders, resume) {
  17987. const { opaque, handler, context } = this
  17988. if (statusCode < 200) {
  17989. if (this.onInfo) {
  17990. const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  17991. this.onInfo({ statusCode, headers })
  17992. }
  17993. return
  17994. }
  17995. this.res = new PipelineResponse(resume)
  17996. let body
  17997. try {
  17998. this.handler = null
  17999. const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  18000. body = this.runInAsyncScope(handler, null, {
  18001. statusCode,
  18002. headers,
  18003. opaque,
  18004. body: this.res,
  18005. context
  18006. })
  18007. } catch (err) {
  18008. this.res.on('error', util.nop)
  18009. throw err
  18010. }
  18011. if (!body || typeof body.on !== 'function') {
  18012. throw new InvalidReturnValueError('expected Readable')
  18013. }
  18014. body
  18015. .on('data', (chunk) => {
  18016. const { ret, body } = this
  18017. if (!ret.push(chunk) && body.pause) {
  18018. body.pause()
  18019. }
  18020. })
  18021. .on('error', (err) => {
  18022. const { ret } = this
  18023. util.destroy(ret, err)
  18024. })
  18025. .on('end', () => {
  18026. const { ret } = this
  18027. ret.push(null)
  18028. })
  18029. .on('close', () => {
  18030. const { ret } = this
  18031. if (!ret._readableState.ended) {
  18032. util.destroy(ret, new RequestAbortedError())
  18033. }
  18034. })
  18035. this.body = body
  18036. }
  18037. onData (chunk) {
  18038. const { res } = this
  18039. return res.push(chunk)
  18040. }
  18041. onComplete (trailers) {
  18042. const { res } = this
  18043. res.push(null)
  18044. }
  18045. onError (err) {
  18046. const { ret } = this
  18047. this.handler = null
  18048. util.destroy(ret, err)
  18049. }
  18050. }
  18051. function pipeline (opts, handler) {
  18052. try {
  18053. const pipelineHandler = new PipelineHandler(opts, handler)
  18054. this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler)
  18055. return pipelineHandler.ret
  18056. } catch (err) {
  18057. return new PassThrough().destroy(err)
  18058. }
  18059. }
  18060. module.exports = pipeline
  18061. /***/ }),
  18062. /***/ 5448:
  18063. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18064. "use strict";
  18065. const Readable = __nccwpck_require__(3858)
  18066. const {
  18067. InvalidArgumentError,
  18068. RequestAbortedError
  18069. } = __nccwpck_require__(8045)
  18070. const util = __nccwpck_require__(3983)
  18071. const { getResolveErrorBodyCallback } = __nccwpck_require__(7474)
  18072. const { AsyncResource } = __nccwpck_require__(852)
  18073. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  18074. class RequestHandler extends AsyncResource {
  18075. constructor (opts, callback) {
  18076. if (!opts || typeof opts !== 'object') {
  18077. throw new InvalidArgumentError('invalid opts')
  18078. }
  18079. const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError, highWaterMark } = opts
  18080. try {
  18081. if (typeof callback !== 'function') {
  18082. throw new InvalidArgumentError('invalid callback')
  18083. }
  18084. if (highWaterMark && (typeof highWaterMark !== 'number' || highWaterMark < 0)) {
  18085. throw new InvalidArgumentError('invalid highWaterMark')
  18086. }
  18087. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  18088. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  18089. }
  18090. if (method === 'CONNECT') {
  18091. throw new InvalidArgumentError('invalid method')
  18092. }
  18093. if (onInfo && typeof onInfo !== 'function') {
  18094. throw new InvalidArgumentError('invalid onInfo callback')
  18095. }
  18096. super('UNDICI_REQUEST')
  18097. } catch (err) {
  18098. if (util.isStream(body)) {
  18099. util.destroy(body.on('error', util.nop), err)
  18100. }
  18101. throw err
  18102. }
  18103. this.responseHeaders = responseHeaders || null
  18104. this.opaque = opaque || null
  18105. this.callback = callback
  18106. this.res = null
  18107. this.abort = null
  18108. this.body = body
  18109. this.trailers = {}
  18110. this.context = null
  18111. this.onInfo = onInfo || null
  18112. this.throwOnError = throwOnError
  18113. this.highWaterMark = highWaterMark
  18114. if (util.isStream(body)) {
  18115. body.on('error', (err) => {
  18116. this.onError(err)
  18117. })
  18118. }
  18119. addSignal(this, signal)
  18120. }
  18121. onConnect (abort, context) {
  18122. if (!this.callback) {
  18123. throw new RequestAbortedError()
  18124. }
  18125. this.abort = abort
  18126. this.context = context
  18127. }
  18128. onHeaders (statusCode, rawHeaders, resume, statusMessage) {
  18129. const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this
  18130. const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  18131. if (statusCode < 200) {
  18132. if (this.onInfo) {
  18133. this.onInfo({ statusCode, headers })
  18134. }
  18135. return
  18136. }
  18137. const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers
  18138. const contentType = parsedHeaders['content-type']
  18139. const body = new Readable({ resume, abort, contentType, highWaterMark })
  18140. this.callback = null
  18141. this.res = body
  18142. if (callback !== null) {
  18143. if (this.throwOnError && statusCode >= 400) {
  18144. this.runInAsyncScope(getResolveErrorBodyCallback, null,
  18145. { callback, body, contentType, statusCode, statusMessage, headers }
  18146. )
  18147. } else {
  18148. this.runInAsyncScope(callback, null, null, {
  18149. statusCode,
  18150. headers,
  18151. trailers: this.trailers,
  18152. opaque,
  18153. body,
  18154. context
  18155. })
  18156. }
  18157. }
  18158. }
  18159. onData (chunk) {
  18160. const { res } = this
  18161. return res.push(chunk)
  18162. }
  18163. onComplete (trailers) {
  18164. const { res } = this
  18165. removeSignal(this)
  18166. util.parseHeaders(trailers, this.trailers)
  18167. res.push(null)
  18168. }
  18169. onError (err) {
  18170. const { res, callback, body, opaque } = this
  18171. removeSignal(this)
  18172. if (callback) {
  18173. // TODO: Does this need queueMicrotask?
  18174. this.callback = null
  18175. queueMicrotask(() => {
  18176. this.runInAsyncScope(callback, null, err, { opaque })
  18177. })
  18178. }
  18179. if (res) {
  18180. this.res = null
  18181. // Ensure all queued handlers are invoked before destroying res.
  18182. queueMicrotask(() => {
  18183. util.destroy(res, err)
  18184. })
  18185. }
  18186. if (body) {
  18187. this.body = null
  18188. util.destroy(body, err)
  18189. }
  18190. }
  18191. }
  18192. function request (opts, callback) {
  18193. if (callback === undefined) {
  18194. return new Promise((resolve, reject) => {
  18195. request.call(this, opts, (err, data) => {
  18196. return err ? reject(err) : resolve(data)
  18197. })
  18198. })
  18199. }
  18200. try {
  18201. this.dispatch(opts, new RequestHandler(opts, callback))
  18202. } catch (err) {
  18203. if (typeof callback !== 'function') {
  18204. throw err
  18205. }
  18206. const opaque = opts && opts.opaque
  18207. queueMicrotask(() => callback(err, { opaque }))
  18208. }
  18209. }
  18210. module.exports = request
  18211. /***/ }),
  18212. /***/ 5395:
  18213. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18214. "use strict";
  18215. const { finished, PassThrough } = __nccwpck_require__(2781)
  18216. const {
  18217. InvalidArgumentError,
  18218. InvalidReturnValueError,
  18219. RequestAbortedError
  18220. } = __nccwpck_require__(8045)
  18221. const util = __nccwpck_require__(3983)
  18222. const { getResolveErrorBodyCallback } = __nccwpck_require__(7474)
  18223. const { AsyncResource } = __nccwpck_require__(852)
  18224. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  18225. class StreamHandler extends AsyncResource {
  18226. constructor (opts, factory, callback) {
  18227. if (!opts || typeof opts !== 'object') {
  18228. throw new InvalidArgumentError('invalid opts')
  18229. }
  18230. const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError } = opts
  18231. try {
  18232. if (typeof callback !== 'function') {
  18233. throw new InvalidArgumentError('invalid callback')
  18234. }
  18235. if (typeof factory !== 'function') {
  18236. throw new InvalidArgumentError('invalid factory')
  18237. }
  18238. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  18239. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  18240. }
  18241. if (method === 'CONNECT') {
  18242. throw new InvalidArgumentError('invalid method')
  18243. }
  18244. if (onInfo && typeof onInfo !== 'function') {
  18245. throw new InvalidArgumentError('invalid onInfo callback')
  18246. }
  18247. super('UNDICI_STREAM')
  18248. } catch (err) {
  18249. if (util.isStream(body)) {
  18250. util.destroy(body.on('error', util.nop), err)
  18251. }
  18252. throw err
  18253. }
  18254. this.responseHeaders = responseHeaders || null
  18255. this.opaque = opaque || null
  18256. this.factory = factory
  18257. this.callback = callback
  18258. this.res = null
  18259. this.abort = null
  18260. this.context = null
  18261. this.trailers = null
  18262. this.body = body
  18263. this.onInfo = onInfo || null
  18264. this.throwOnError = throwOnError || false
  18265. if (util.isStream(body)) {
  18266. body.on('error', (err) => {
  18267. this.onError(err)
  18268. })
  18269. }
  18270. addSignal(this, signal)
  18271. }
  18272. onConnect (abort, context) {
  18273. if (!this.callback) {
  18274. throw new RequestAbortedError()
  18275. }
  18276. this.abort = abort
  18277. this.context = context
  18278. }
  18279. onHeaders (statusCode, rawHeaders, resume, statusMessage) {
  18280. const { factory, opaque, context, callback, responseHeaders } = this
  18281. const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  18282. if (statusCode < 200) {
  18283. if (this.onInfo) {
  18284. this.onInfo({ statusCode, headers })
  18285. }
  18286. return
  18287. }
  18288. this.factory = null
  18289. let res
  18290. if (this.throwOnError && statusCode >= 400) {
  18291. const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers
  18292. const contentType = parsedHeaders['content-type']
  18293. res = new PassThrough()
  18294. this.callback = null
  18295. this.runInAsyncScope(getResolveErrorBodyCallback, null,
  18296. { callback, body: res, contentType, statusCode, statusMessage, headers }
  18297. )
  18298. } else {
  18299. res = this.runInAsyncScope(factory, null, {
  18300. statusCode,
  18301. headers,
  18302. opaque,
  18303. context
  18304. })
  18305. if (
  18306. !res ||
  18307. typeof res.write !== 'function' ||
  18308. typeof res.end !== 'function' ||
  18309. typeof res.on !== 'function'
  18310. ) {
  18311. throw new InvalidReturnValueError('expected Writable')
  18312. }
  18313. // TODO: Avoid finished. It registers an unnecessary amount of listeners.
  18314. finished(res, { readable: false }, (err) => {
  18315. const { callback, res, opaque, trailers, abort } = this
  18316. this.res = null
  18317. if (err || !res.readable) {
  18318. util.destroy(res, err)
  18319. }
  18320. this.callback = null
  18321. this.runInAsyncScope(callback, null, err || null, { opaque, trailers })
  18322. if (err) {
  18323. abort()
  18324. }
  18325. })
  18326. }
  18327. res.on('drain', resume)
  18328. this.res = res
  18329. const needDrain = res.writableNeedDrain !== undefined
  18330. ? res.writableNeedDrain
  18331. : res._writableState && res._writableState.needDrain
  18332. return needDrain !== true
  18333. }
  18334. onData (chunk) {
  18335. const { res } = this
  18336. return res.write(chunk)
  18337. }
  18338. onComplete (trailers) {
  18339. const { res } = this
  18340. removeSignal(this)
  18341. this.trailers = util.parseHeaders(trailers)
  18342. res.end()
  18343. }
  18344. onError (err) {
  18345. const { res, callback, opaque, body } = this
  18346. removeSignal(this)
  18347. this.factory = null
  18348. if (res) {
  18349. this.res = null
  18350. util.destroy(res, err)
  18351. } else if (callback) {
  18352. this.callback = null
  18353. queueMicrotask(() => {
  18354. this.runInAsyncScope(callback, null, err, { opaque })
  18355. })
  18356. }
  18357. if (body) {
  18358. this.body = null
  18359. util.destroy(body, err)
  18360. }
  18361. }
  18362. }
  18363. function stream (opts, factory, callback) {
  18364. if (callback === undefined) {
  18365. return new Promise((resolve, reject) => {
  18366. stream.call(this, opts, factory, (err, data) => {
  18367. return err ? reject(err) : resolve(data)
  18368. })
  18369. })
  18370. }
  18371. try {
  18372. this.dispatch(opts, new StreamHandler(opts, factory, callback))
  18373. } catch (err) {
  18374. if (typeof callback !== 'function') {
  18375. throw err
  18376. }
  18377. const opaque = opts && opts.opaque
  18378. queueMicrotask(() => callback(err, { opaque }))
  18379. }
  18380. }
  18381. module.exports = stream
  18382. /***/ }),
  18383. /***/ 6923:
  18384. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18385. "use strict";
  18386. const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8045)
  18387. const { AsyncResource } = __nccwpck_require__(852)
  18388. const util = __nccwpck_require__(3983)
  18389. const { addSignal, removeSignal } = __nccwpck_require__(7032)
  18390. const assert = __nccwpck_require__(9491)
  18391. class UpgradeHandler extends AsyncResource {
  18392. constructor (opts, callback) {
  18393. if (!opts || typeof opts !== 'object') {
  18394. throw new InvalidArgumentError('invalid opts')
  18395. }
  18396. if (typeof callback !== 'function') {
  18397. throw new InvalidArgumentError('invalid callback')
  18398. }
  18399. const { signal, opaque, responseHeaders } = opts
  18400. if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {
  18401. throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')
  18402. }
  18403. super('UNDICI_UPGRADE')
  18404. this.responseHeaders = responseHeaders || null
  18405. this.opaque = opaque || null
  18406. this.callback = callback
  18407. this.abort = null
  18408. this.context = null
  18409. addSignal(this, signal)
  18410. }
  18411. onConnect (abort, context) {
  18412. if (!this.callback) {
  18413. throw new RequestAbortedError()
  18414. }
  18415. this.abort = abort
  18416. this.context = null
  18417. }
  18418. onHeaders () {
  18419. throw new SocketError('bad upgrade', null)
  18420. }
  18421. onUpgrade (statusCode, rawHeaders, socket) {
  18422. const { callback, opaque, context } = this
  18423. assert.strictEqual(statusCode, 101)
  18424. removeSignal(this)
  18425. this.callback = null
  18426. const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)
  18427. this.runInAsyncScope(callback, null, null, {
  18428. headers,
  18429. socket,
  18430. opaque,
  18431. context
  18432. })
  18433. }
  18434. onError (err) {
  18435. const { callback, opaque } = this
  18436. removeSignal(this)
  18437. if (callback) {
  18438. this.callback = null
  18439. queueMicrotask(() => {
  18440. this.runInAsyncScope(callback, null, err, { opaque })
  18441. })
  18442. }
  18443. }
  18444. }
  18445. function upgrade (opts, callback) {
  18446. if (callback === undefined) {
  18447. return new Promise((resolve, reject) => {
  18448. upgrade.call(this, opts, (err, data) => {
  18449. return err ? reject(err) : resolve(data)
  18450. })
  18451. })
  18452. }
  18453. try {
  18454. const upgradeHandler = new UpgradeHandler(opts, callback)
  18455. this.dispatch({
  18456. ...opts,
  18457. method: opts.method || 'GET',
  18458. upgrade: opts.protocol || 'Websocket'
  18459. }, upgradeHandler)
  18460. } catch (err) {
  18461. if (typeof callback !== 'function') {
  18462. throw err
  18463. }
  18464. const opaque = opts && opts.opaque
  18465. queueMicrotask(() => callback(err, { opaque }))
  18466. }
  18467. }
  18468. module.exports = upgrade
  18469. /***/ }),
  18470. /***/ 4059:
  18471. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18472. "use strict";
  18473. module.exports.request = __nccwpck_require__(5448)
  18474. module.exports.stream = __nccwpck_require__(5395)
  18475. module.exports.pipeline = __nccwpck_require__(8752)
  18476. module.exports.upgrade = __nccwpck_require__(6923)
  18477. module.exports.connect = __nccwpck_require__(9744)
  18478. /***/ }),
  18479. /***/ 3858:
  18480. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18481. "use strict";
  18482. // Ported from https://github.com/nodejs/undici/pull/907
  18483. const assert = __nccwpck_require__(9491)
  18484. const { Readable } = __nccwpck_require__(2781)
  18485. const { RequestAbortedError, NotSupportedError, InvalidArgumentError } = __nccwpck_require__(8045)
  18486. const util = __nccwpck_require__(3983)
  18487. const { ReadableStreamFrom, toUSVString } = __nccwpck_require__(3983)
  18488. let Blob
  18489. const kConsume = Symbol('kConsume')
  18490. const kReading = Symbol('kReading')
  18491. const kBody = Symbol('kBody')
  18492. const kAbort = Symbol('abort')
  18493. const kContentType = Symbol('kContentType')
  18494. module.exports = class BodyReadable extends Readable {
  18495. constructor ({
  18496. resume,
  18497. abort,
  18498. contentType = '',
  18499. highWaterMark = 64 * 1024 // Same as nodejs fs streams.
  18500. }) {
  18501. super({
  18502. autoDestroy: true,
  18503. read: resume,
  18504. highWaterMark
  18505. })
  18506. this._readableState.dataEmitted = false
  18507. this[kAbort] = abort
  18508. this[kConsume] = null
  18509. this[kBody] = null
  18510. this[kContentType] = contentType
  18511. // Is stream being consumed through Readable API?
  18512. // This is an optimization so that we avoid checking
  18513. // for 'data' and 'readable' listeners in the hot path
  18514. // inside push().
  18515. this[kReading] = false
  18516. }
  18517. destroy (err) {
  18518. if (this.destroyed) {
  18519. // Node < 16
  18520. return this
  18521. }
  18522. if (!err && !this._readableState.endEmitted) {
  18523. err = new RequestAbortedError()
  18524. }
  18525. if (err) {
  18526. this[kAbort]()
  18527. }
  18528. return super.destroy(err)
  18529. }
  18530. emit (ev, ...args) {
  18531. if (ev === 'data') {
  18532. // Node < 16.7
  18533. this._readableState.dataEmitted = true
  18534. } else if (ev === 'error') {
  18535. // Node < 16
  18536. this._readableState.errorEmitted = true
  18537. }
  18538. return super.emit(ev, ...args)
  18539. }
  18540. on (ev, ...args) {
  18541. if (ev === 'data' || ev === 'readable') {
  18542. this[kReading] = true
  18543. }
  18544. return super.on(ev, ...args)
  18545. }
  18546. addListener (ev, ...args) {
  18547. return this.on(ev, ...args)
  18548. }
  18549. off (ev, ...args) {
  18550. const ret = super.off(ev, ...args)
  18551. if (ev === 'data' || ev === 'readable') {
  18552. this[kReading] = (
  18553. this.listenerCount('data') > 0 ||
  18554. this.listenerCount('readable') > 0
  18555. )
  18556. }
  18557. return ret
  18558. }
  18559. removeListener (ev, ...args) {
  18560. return this.off(ev, ...args)
  18561. }
  18562. push (chunk) {
  18563. if (this[kConsume] && chunk !== null && this.readableLength === 0) {
  18564. consumePush(this[kConsume], chunk)
  18565. return this[kReading] ? super.push(chunk) : true
  18566. }
  18567. return super.push(chunk)
  18568. }
  18569. // https://fetch.spec.whatwg.org/#dom-body-text
  18570. async text () {
  18571. return consume(this, 'text')
  18572. }
  18573. // https://fetch.spec.whatwg.org/#dom-body-json
  18574. async json () {
  18575. return consume(this, 'json')
  18576. }
  18577. // https://fetch.spec.whatwg.org/#dom-body-blob
  18578. async blob () {
  18579. return consume(this, 'blob')
  18580. }
  18581. // https://fetch.spec.whatwg.org/#dom-body-arraybuffer
  18582. async arrayBuffer () {
  18583. return consume(this, 'arrayBuffer')
  18584. }
  18585. // https://fetch.spec.whatwg.org/#dom-body-formdata
  18586. async formData () {
  18587. // TODO: Implement.
  18588. throw new NotSupportedError()
  18589. }
  18590. // https://fetch.spec.whatwg.org/#dom-body-bodyused
  18591. get bodyUsed () {
  18592. return util.isDisturbed(this)
  18593. }
  18594. // https://fetch.spec.whatwg.org/#dom-body-body
  18595. get body () {
  18596. if (!this[kBody]) {
  18597. this[kBody] = ReadableStreamFrom(this)
  18598. if (this[kConsume]) {
  18599. // TODO: Is this the best way to force a lock?
  18600. this[kBody].getReader() // Ensure stream is locked.
  18601. assert(this[kBody].locked)
  18602. }
  18603. }
  18604. return this[kBody]
  18605. }
  18606. async dump (opts) {
  18607. let limit = opts && Number.isFinite(opts.limit) ? opts.limit : 262144
  18608. const signal = opts && opts.signal
  18609. const abortFn = () => {
  18610. this.destroy()
  18611. }
  18612. let signalListenerCleanup
  18613. if (signal) {
  18614. if (typeof signal !== 'object' || !('aborted' in signal)) {
  18615. throw new InvalidArgumentError('signal must be an AbortSignal')
  18616. }
  18617. util.throwIfAborted(signal)
  18618. signalListenerCleanup = util.addAbortListener(signal, abortFn)
  18619. }
  18620. try {
  18621. for await (const chunk of this) {
  18622. util.throwIfAborted(signal)
  18623. limit -= Buffer.byteLength(chunk)
  18624. if (limit < 0) {
  18625. return
  18626. }
  18627. }
  18628. } catch {
  18629. util.throwIfAborted(signal)
  18630. } finally {
  18631. if (typeof signalListenerCleanup === 'function') {
  18632. signalListenerCleanup()
  18633. } else if (signalListenerCleanup) {
  18634. signalListenerCleanup[Symbol.dispose]()
  18635. }
  18636. }
  18637. }
  18638. }
  18639. // https://streams.spec.whatwg.org/#readablestream-locked
  18640. function isLocked (self) {
  18641. // Consume is an implicit lock.
  18642. return (self[kBody] && self[kBody].locked === true) || self[kConsume]
  18643. }
  18644. // https://fetch.spec.whatwg.org/#body-unusable
  18645. function isUnusable (self) {
  18646. return util.isDisturbed(self) || isLocked(self)
  18647. }
  18648. async function consume (stream, type) {
  18649. if (isUnusable(stream)) {
  18650. throw new TypeError('unusable')
  18651. }
  18652. assert(!stream[kConsume])
  18653. return new Promise((resolve, reject) => {
  18654. stream[kConsume] = {
  18655. type,
  18656. stream,
  18657. resolve,
  18658. reject,
  18659. length: 0,
  18660. body: []
  18661. }
  18662. stream
  18663. .on('error', function (err) {
  18664. consumeFinish(this[kConsume], err)
  18665. })
  18666. .on('close', function () {
  18667. if (this[kConsume].body !== null) {
  18668. consumeFinish(this[kConsume], new RequestAbortedError())
  18669. }
  18670. })
  18671. process.nextTick(consumeStart, stream[kConsume])
  18672. })
  18673. }
  18674. function consumeStart (consume) {
  18675. if (consume.body === null) {
  18676. return
  18677. }
  18678. const { _readableState: state } = consume.stream
  18679. for (const chunk of state.buffer) {
  18680. consumePush(consume, chunk)
  18681. }
  18682. if (state.endEmitted) {
  18683. consumeEnd(this[kConsume])
  18684. } else {
  18685. consume.stream.on('end', function () {
  18686. consumeEnd(this[kConsume])
  18687. })
  18688. }
  18689. consume.stream.resume()
  18690. while (consume.stream.read() != null) {
  18691. // Loop
  18692. }
  18693. }
  18694. function consumeEnd (consume) {
  18695. const { type, body, resolve, stream, length } = consume
  18696. try {
  18697. if (type === 'text') {
  18698. resolve(toUSVString(Buffer.concat(body)))
  18699. } else if (type === 'json') {
  18700. resolve(JSON.parse(Buffer.concat(body)))
  18701. } else if (type === 'arrayBuffer') {
  18702. const dst = new Uint8Array(length)
  18703. let pos = 0
  18704. for (const buf of body) {
  18705. dst.set(buf, pos)
  18706. pos += buf.byteLength
  18707. }
  18708. resolve(dst)
  18709. } else if (type === 'blob') {
  18710. if (!Blob) {
  18711. Blob = (__nccwpck_require__(4300).Blob)
  18712. }
  18713. resolve(new Blob(body, { type: stream[kContentType] }))
  18714. }
  18715. consumeFinish(consume)
  18716. } catch (err) {
  18717. stream.destroy(err)
  18718. }
  18719. }
  18720. function consumePush (consume, chunk) {
  18721. consume.length += chunk.length
  18722. consume.body.push(chunk)
  18723. }
  18724. function consumeFinish (consume, err) {
  18725. if (consume.body === null) {
  18726. return
  18727. }
  18728. if (err) {
  18729. consume.reject(err)
  18730. } else {
  18731. consume.resolve()
  18732. }
  18733. consume.type = null
  18734. consume.stream = null
  18735. consume.resolve = null
  18736. consume.reject = null
  18737. consume.length = 0
  18738. consume.body = null
  18739. }
  18740. /***/ }),
  18741. /***/ 7474:
  18742. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18743. const assert = __nccwpck_require__(9491)
  18744. const {
  18745. ResponseStatusCodeError
  18746. } = __nccwpck_require__(8045)
  18747. const { toUSVString } = __nccwpck_require__(3983)
  18748. async function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) {
  18749. assert(body)
  18750. let chunks = []
  18751. let limit = 0
  18752. for await (const chunk of body) {
  18753. chunks.push(chunk)
  18754. limit += chunk.length
  18755. if (limit > 128 * 1024) {
  18756. chunks = null
  18757. break
  18758. }
  18759. }
  18760. if (statusCode === 204 || !contentType || !chunks) {
  18761. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers))
  18762. return
  18763. }
  18764. try {
  18765. if (contentType.startsWith('application/json')) {
  18766. const payload = JSON.parse(toUSVString(Buffer.concat(chunks)))
  18767. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload))
  18768. return
  18769. }
  18770. if (contentType.startsWith('text/')) {
  18771. const payload = toUSVString(Buffer.concat(chunks))
  18772. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload))
  18773. return
  18774. }
  18775. } catch (err) {
  18776. // Process in a fallback if error
  18777. }
  18778. process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers))
  18779. }
  18780. module.exports = { getResolveErrorBodyCallback }
  18781. /***/ }),
  18782. /***/ 7931:
  18783. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18784. "use strict";
  18785. const {
  18786. BalancedPoolMissingUpstreamError,
  18787. InvalidArgumentError
  18788. } = __nccwpck_require__(8045)
  18789. const {
  18790. PoolBase,
  18791. kClients,
  18792. kNeedDrain,
  18793. kAddClient,
  18794. kRemoveClient,
  18795. kGetDispatcher
  18796. } = __nccwpck_require__(3198)
  18797. const Pool = __nccwpck_require__(4634)
  18798. const { kUrl, kInterceptors } = __nccwpck_require__(2785)
  18799. const { parseOrigin } = __nccwpck_require__(3983)
  18800. const kFactory = Symbol('factory')
  18801. const kOptions = Symbol('options')
  18802. const kGreatestCommonDivisor = Symbol('kGreatestCommonDivisor')
  18803. const kCurrentWeight = Symbol('kCurrentWeight')
  18804. const kIndex = Symbol('kIndex')
  18805. const kWeight = Symbol('kWeight')
  18806. const kMaxWeightPerServer = Symbol('kMaxWeightPerServer')
  18807. const kErrorPenalty = Symbol('kErrorPenalty')
  18808. function getGreatestCommonDivisor (a, b) {
  18809. if (b === 0) return a
  18810. return getGreatestCommonDivisor(b, a % b)
  18811. }
  18812. function defaultFactory (origin, opts) {
  18813. return new Pool(origin, opts)
  18814. }
  18815. class BalancedPool extends PoolBase {
  18816. constructor (upstreams = [], { factory = defaultFactory, ...opts } = {}) {
  18817. super()
  18818. this[kOptions] = opts
  18819. this[kIndex] = -1
  18820. this[kCurrentWeight] = 0
  18821. this[kMaxWeightPerServer] = this[kOptions].maxWeightPerServer || 100
  18822. this[kErrorPenalty] = this[kOptions].errorPenalty || 15
  18823. if (!Array.isArray(upstreams)) {
  18824. upstreams = [upstreams]
  18825. }
  18826. if (typeof factory !== 'function') {
  18827. throw new InvalidArgumentError('factory must be a function.')
  18828. }
  18829. this[kInterceptors] = opts.interceptors && opts.interceptors.BalancedPool && Array.isArray(opts.interceptors.BalancedPool)
  18830. ? opts.interceptors.BalancedPool
  18831. : []
  18832. this[kFactory] = factory
  18833. for (const upstream of upstreams) {
  18834. this.addUpstream(upstream)
  18835. }
  18836. this._updateBalancedPoolStats()
  18837. }
  18838. addUpstream (upstream) {
  18839. const upstreamOrigin = parseOrigin(upstream).origin
  18840. if (this[kClients].find((pool) => (
  18841. pool[kUrl].origin === upstreamOrigin &&
  18842. pool.closed !== true &&
  18843. pool.destroyed !== true
  18844. ))) {
  18845. return this
  18846. }
  18847. const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]))
  18848. this[kAddClient](pool)
  18849. pool.on('connect', () => {
  18850. pool[kWeight] = Math.min(this[kMaxWeightPerServer], pool[kWeight] + this[kErrorPenalty])
  18851. })
  18852. pool.on('connectionError', () => {
  18853. pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])
  18854. this._updateBalancedPoolStats()
  18855. })
  18856. pool.on('disconnect', (...args) => {
  18857. const err = args[2]
  18858. if (err && err.code === 'UND_ERR_SOCKET') {
  18859. // decrease the weight of the pool.
  18860. pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])
  18861. this._updateBalancedPoolStats()
  18862. }
  18863. })
  18864. for (const client of this[kClients]) {
  18865. client[kWeight] = this[kMaxWeightPerServer]
  18866. }
  18867. this._updateBalancedPoolStats()
  18868. return this
  18869. }
  18870. _updateBalancedPoolStats () {
  18871. this[kGreatestCommonDivisor] = this[kClients].map(p => p[kWeight]).reduce(getGreatestCommonDivisor, 0)
  18872. }
  18873. removeUpstream (upstream) {
  18874. const upstreamOrigin = parseOrigin(upstream).origin
  18875. const pool = this[kClients].find((pool) => (
  18876. pool[kUrl].origin === upstreamOrigin &&
  18877. pool.closed !== true &&
  18878. pool.destroyed !== true
  18879. ))
  18880. if (pool) {
  18881. this[kRemoveClient](pool)
  18882. }
  18883. return this
  18884. }
  18885. get upstreams () {
  18886. return this[kClients]
  18887. .filter(dispatcher => dispatcher.closed !== true && dispatcher.destroyed !== true)
  18888. .map((p) => p[kUrl].origin)
  18889. }
  18890. [kGetDispatcher] () {
  18891. // We validate that pools is greater than 0,
  18892. // otherwise we would have to wait until an upstream
  18893. // is added, which might never happen.
  18894. if (this[kClients].length === 0) {
  18895. throw new BalancedPoolMissingUpstreamError()
  18896. }
  18897. const dispatcher = this[kClients].find(dispatcher => (
  18898. !dispatcher[kNeedDrain] &&
  18899. dispatcher.closed !== true &&
  18900. dispatcher.destroyed !== true
  18901. ))
  18902. if (!dispatcher) {
  18903. return
  18904. }
  18905. const allClientsBusy = this[kClients].map(pool => pool[kNeedDrain]).reduce((a, b) => a && b, true)
  18906. if (allClientsBusy) {
  18907. return
  18908. }
  18909. let counter = 0
  18910. let maxWeightIndex = this[kClients].findIndex(pool => !pool[kNeedDrain])
  18911. while (counter++ < this[kClients].length) {
  18912. this[kIndex] = (this[kIndex] + 1) % this[kClients].length
  18913. const pool = this[kClients][this[kIndex]]
  18914. // find pool index with the largest weight
  18915. if (pool[kWeight] > this[kClients][maxWeightIndex][kWeight] && !pool[kNeedDrain]) {
  18916. maxWeightIndex = this[kIndex]
  18917. }
  18918. // decrease the current weight every `this[kClients].length`.
  18919. if (this[kIndex] === 0) {
  18920. // Set the current weight to the next lower weight.
  18921. this[kCurrentWeight] = this[kCurrentWeight] - this[kGreatestCommonDivisor]
  18922. if (this[kCurrentWeight] <= 0) {
  18923. this[kCurrentWeight] = this[kMaxWeightPerServer]
  18924. }
  18925. }
  18926. if (pool[kWeight] >= this[kCurrentWeight] && (!pool[kNeedDrain])) {
  18927. return pool
  18928. }
  18929. }
  18930. this[kCurrentWeight] = this[kClients][maxWeightIndex][kWeight]
  18931. this[kIndex] = maxWeightIndex
  18932. return this[kClients][maxWeightIndex]
  18933. }
  18934. }
  18935. module.exports = BalancedPool
  18936. /***/ }),
  18937. /***/ 6101:
  18938. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  18939. "use strict";
  18940. const { kConstruct } = __nccwpck_require__(9174)
  18941. const { urlEquals, fieldValues: getFieldValues } = __nccwpck_require__(2396)
  18942. const { kEnumerableProperty, isDisturbed } = __nccwpck_require__(3983)
  18943. const { kHeadersList } = __nccwpck_require__(2785)
  18944. const { webidl } = __nccwpck_require__(1744)
  18945. const { Response, cloneResponse } = __nccwpck_require__(7823)
  18946. const { Request } = __nccwpck_require__(8359)
  18947. const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
  18948. const { fetching } = __nccwpck_require__(4881)
  18949. const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = __nccwpck_require__(2538)
  18950. const assert = __nccwpck_require__(9491)
  18951. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  18952. /**
  18953. * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation
  18954. * @typedef {Object} CacheBatchOperation
  18955. * @property {'delete' | 'put'} type
  18956. * @property {any} request
  18957. * @property {any} response
  18958. * @property {import('../../types/cache').CacheQueryOptions} options
  18959. */
  18960. /**
  18961. * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list
  18962. * @typedef {[any, any][]} requestResponseList
  18963. */
  18964. class Cache {
  18965. /**
  18966. * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
  18967. * @type {requestResponseList}
  18968. */
  18969. #relevantRequestResponseList
  18970. constructor () {
  18971. if (arguments[0] !== kConstruct) {
  18972. webidl.illegalConstructor()
  18973. }
  18974. this.#relevantRequestResponseList = arguments[1]
  18975. }
  18976. async match (request, options = {}) {
  18977. webidl.brandCheck(this, Cache)
  18978. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.match' })
  18979. request = webidl.converters.RequestInfo(request)
  18980. options = webidl.converters.CacheQueryOptions(options)
  18981. const p = await this.matchAll(request, options)
  18982. if (p.length === 0) {
  18983. return
  18984. }
  18985. return p[0]
  18986. }
  18987. async matchAll (request = undefined, options = {}) {
  18988. webidl.brandCheck(this, Cache)
  18989. if (request !== undefined) request = webidl.converters.RequestInfo(request)
  18990. options = webidl.converters.CacheQueryOptions(options)
  18991. // 1.
  18992. let r = null
  18993. // 2.
  18994. if (request !== undefined) {
  18995. if (request instanceof Request) {
  18996. // 2.1.1
  18997. r = request[kState]
  18998. // 2.1.2
  18999. if (r.method !== 'GET' && !options.ignoreMethod) {
  19000. return []
  19001. }
  19002. } else if (typeof request === 'string') {
  19003. // 2.2.1
  19004. r = new Request(request)[kState]
  19005. }
  19006. }
  19007. // 5.
  19008. // 5.1
  19009. const responses = []
  19010. // 5.2
  19011. if (request === undefined) {
  19012. // 5.2.1
  19013. for (const requestResponse of this.#relevantRequestResponseList) {
  19014. responses.push(requestResponse[1])
  19015. }
  19016. } else { // 5.3
  19017. // 5.3.1
  19018. const requestResponses = this.#queryCache(r, options)
  19019. // 5.3.2
  19020. for (const requestResponse of requestResponses) {
  19021. responses.push(requestResponse[1])
  19022. }
  19023. }
  19024. // 5.4
  19025. // We don't implement CORs so we don't need to loop over the responses, yay!
  19026. // 5.5.1
  19027. const responseList = []
  19028. // 5.5.2
  19029. for (const response of responses) {
  19030. // 5.5.2.1
  19031. const responseObject = new Response(response.body?.source ?? null)
  19032. const body = responseObject[kState].body
  19033. responseObject[kState] = response
  19034. responseObject[kState].body = body
  19035. responseObject[kHeaders][kHeadersList] = response.headersList
  19036. responseObject[kHeaders][kGuard] = 'immutable'
  19037. responseList.push(responseObject)
  19038. }
  19039. // 6.
  19040. return Object.freeze(responseList)
  19041. }
  19042. async add (request) {
  19043. webidl.brandCheck(this, Cache)
  19044. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.add' })
  19045. request = webidl.converters.RequestInfo(request)
  19046. // 1.
  19047. const requests = [request]
  19048. // 2.
  19049. const responseArrayPromise = this.addAll(requests)
  19050. // 3.
  19051. return await responseArrayPromise
  19052. }
  19053. async addAll (requests) {
  19054. webidl.brandCheck(this, Cache)
  19055. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.addAll' })
  19056. requests = webidl.converters['sequence<RequestInfo>'](requests)
  19057. // 1.
  19058. const responsePromises = []
  19059. // 2.
  19060. const requestList = []
  19061. // 3.
  19062. for (const request of requests) {
  19063. if (typeof request === 'string') {
  19064. continue
  19065. }
  19066. // 3.1
  19067. const r = request[kState]
  19068. // 3.2
  19069. if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {
  19070. throw webidl.errors.exception({
  19071. header: 'Cache.addAll',
  19072. message: 'Expected http/s scheme when method is not GET.'
  19073. })
  19074. }
  19075. }
  19076. // 4.
  19077. /** @type {ReturnType<typeof fetching>[]} */
  19078. const fetchControllers = []
  19079. // 5.
  19080. for (const request of requests) {
  19081. // 5.1
  19082. const r = new Request(request)[kState]
  19083. // 5.2
  19084. if (!urlIsHttpHttpsScheme(r.url)) {
  19085. throw webidl.errors.exception({
  19086. header: 'Cache.addAll',
  19087. message: 'Expected http/s scheme.'
  19088. })
  19089. }
  19090. // 5.4
  19091. r.initiator = 'fetch'
  19092. r.destination = 'subresource'
  19093. // 5.5
  19094. requestList.push(r)
  19095. // 5.6
  19096. const responsePromise = createDeferredPromise()
  19097. // 5.7
  19098. fetchControllers.push(fetching({
  19099. request: r,
  19100. dispatcher: getGlobalDispatcher(),
  19101. processResponse (response) {
  19102. // 1.
  19103. if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {
  19104. responsePromise.reject(webidl.errors.exception({
  19105. header: 'Cache.addAll',
  19106. message: 'Received an invalid status code or the request failed.'
  19107. }))
  19108. } else if (response.headersList.contains('vary')) { // 2.
  19109. // 2.1
  19110. const fieldValues = getFieldValues(response.headersList.get('vary'))
  19111. // 2.2
  19112. for (const fieldValue of fieldValues) {
  19113. // 2.2.1
  19114. if (fieldValue === '*') {
  19115. responsePromise.reject(webidl.errors.exception({
  19116. header: 'Cache.addAll',
  19117. message: 'invalid vary field value'
  19118. }))
  19119. for (const controller of fetchControllers) {
  19120. controller.abort()
  19121. }
  19122. return
  19123. }
  19124. }
  19125. }
  19126. },
  19127. processResponseEndOfBody (response) {
  19128. // 1.
  19129. if (response.aborted) {
  19130. responsePromise.reject(new DOMException('aborted', 'AbortError'))
  19131. return
  19132. }
  19133. // 2.
  19134. responsePromise.resolve(response)
  19135. }
  19136. }))
  19137. // 5.8
  19138. responsePromises.push(responsePromise.promise)
  19139. }
  19140. // 6.
  19141. const p = Promise.all(responsePromises)
  19142. // 7.
  19143. const responses = await p
  19144. // 7.1
  19145. const operations = []
  19146. // 7.2
  19147. let index = 0
  19148. // 7.3
  19149. for (const response of responses) {
  19150. // 7.3.1
  19151. /** @type {CacheBatchOperation} */
  19152. const operation = {
  19153. type: 'put', // 7.3.2
  19154. request: requestList[index], // 7.3.3
  19155. response // 7.3.4
  19156. }
  19157. operations.push(operation) // 7.3.5
  19158. index++ // 7.3.6
  19159. }
  19160. // 7.5
  19161. const cacheJobPromise = createDeferredPromise()
  19162. // 7.6.1
  19163. let errorData = null
  19164. // 7.6.2
  19165. try {
  19166. this.#batchCacheOperations(operations)
  19167. } catch (e) {
  19168. errorData = e
  19169. }
  19170. // 7.6.3
  19171. queueMicrotask(() => {
  19172. // 7.6.3.1
  19173. if (errorData === null) {
  19174. cacheJobPromise.resolve(undefined)
  19175. } else {
  19176. // 7.6.3.2
  19177. cacheJobPromise.reject(errorData)
  19178. }
  19179. })
  19180. // 7.7
  19181. return cacheJobPromise.promise
  19182. }
  19183. async put (request, response) {
  19184. webidl.brandCheck(this, Cache)
  19185. webidl.argumentLengthCheck(arguments, 2, { header: 'Cache.put' })
  19186. request = webidl.converters.RequestInfo(request)
  19187. response = webidl.converters.Response(response)
  19188. // 1.
  19189. let innerRequest = null
  19190. // 2.
  19191. if (request instanceof Request) {
  19192. innerRequest = request[kState]
  19193. } else { // 3.
  19194. innerRequest = new Request(request)[kState]
  19195. }
  19196. // 4.
  19197. if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {
  19198. throw webidl.errors.exception({
  19199. header: 'Cache.put',
  19200. message: 'Expected an http/s scheme when method is not GET'
  19201. })
  19202. }
  19203. // 5.
  19204. const innerResponse = response[kState]
  19205. // 6.
  19206. if (innerResponse.status === 206) {
  19207. throw webidl.errors.exception({
  19208. header: 'Cache.put',
  19209. message: 'Got 206 status'
  19210. })
  19211. }
  19212. // 7.
  19213. if (innerResponse.headersList.contains('vary')) {
  19214. // 7.1.
  19215. const fieldValues = getFieldValues(innerResponse.headersList.get('vary'))
  19216. // 7.2.
  19217. for (const fieldValue of fieldValues) {
  19218. // 7.2.1
  19219. if (fieldValue === '*') {
  19220. throw webidl.errors.exception({
  19221. header: 'Cache.put',
  19222. message: 'Got * vary field value'
  19223. })
  19224. }
  19225. }
  19226. }
  19227. // 8.
  19228. if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {
  19229. throw webidl.errors.exception({
  19230. header: 'Cache.put',
  19231. message: 'Response body is locked or disturbed'
  19232. })
  19233. }
  19234. // 9.
  19235. const clonedResponse = cloneResponse(innerResponse)
  19236. // 10.
  19237. const bodyReadPromise = createDeferredPromise()
  19238. // 11.
  19239. if (innerResponse.body != null) {
  19240. // 11.1
  19241. const stream = innerResponse.body.stream
  19242. // 11.2
  19243. const reader = stream.getReader()
  19244. // 11.3
  19245. readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject)
  19246. } else {
  19247. bodyReadPromise.resolve(undefined)
  19248. }
  19249. // 12.
  19250. /** @type {CacheBatchOperation[]} */
  19251. const operations = []
  19252. // 13.
  19253. /** @type {CacheBatchOperation} */
  19254. const operation = {
  19255. type: 'put', // 14.
  19256. request: innerRequest, // 15.
  19257. response: clonedResponse // 16.
  19258. }
  19259. // 17.
  19260. operations.push(operation)
  19261. // 19.
  19262. const bytes = await bodyReadPromise.promise
  19263. if (clonedResponse.body != null) {
  19264. clonedResponse.body.source = bytes
  19265. }
  19266. // 19.1
  19267. const cacheJobPromise = createDeferredPromise()
  19268. // 19.2.1
  19269. let errorData = null
  19270. // 19.2.2
  19271. try {
  19272. this.#batchCacheOperations(operations)
  19273. } catch (e) {
  19274. errorData = e
  19275. }
  19276. // 19.2.3
  19277. queueMicrotask(() => {
  19278. // 19.2.3.1
  19279. if (errorData === null) {
  19280. cacheJobPromise.resolve()
  19281. } else { // 19.2.3.2
  19282. cacheJobPromise.reject(errorData)
  19283. }
  19284. })
  19285. return cacheJobPromise.promise
  19286. }
  19287. async delete (request, options = {}) {
  19288. webidl.brandCheck(this, Cache)
  19289. webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.delete' })
  19290. request = webidl.converters.RequestInfo(request)
  19291. options = webidl.converters.CacheQueryOptions(options)
  19292. /**
  19293. * @type {Request}
  19294. */
  19295. let r = null
  19296. if (request instanceof Request) {
  19297. r = request[kState]
  19298. if (r.method !== 'GET' && !options.ignoreMethod) {
  19299. return false
  19300. }
  19301. } else {
  19302. assert(typeof request === 'string')
  19303. r = new Request(request)[kState]
  19304. }
  19305. /** @type {CacheBatchOperation[]} */
  19306. const operations = []
  19307. /** @type {CacheBatchOperation} */
  19308. const operation = {
  19309. type: 'delete',
  19310. request: r,
  19311. options
  19312. }
  19313. operations.push(operation)
  19314. const cacheJobPromise = createDeferredPromise()
  19315. let errorData = null
  19316. let requestResponses
  19317. try {
  19318. requestResponses = this.#batchCacheOperations(operations)
  19319. } catch (e) {
  19320. errorData = e
  19321. }
  19322. queueMicrotask(() => {
  19323. if (errorData === null) {
  19324. cacheJobPromise.resolve(!!requestResponses?.length)
  19325. } else {
  19326. cacheJobPromise.reject(errorData)
  19327. }
  19328. })
  19329. return cacheJobPromise.promise
  19330. }
  19331. /**
  19332. * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys
  19333. * @param {any} request
  19334. * @param {import('../../types/cache').CacheQueryOptions} options
  19335. * @returns {readonly Request[]}
  19336. */
  19337. async keys (request = undefined, options = {}) {
  19338. webidl.brandCheck(this, Cache)
  19339. if (request !== undefined) request = webidl.converters.RequestInfo(request)
  19340. options = webidl.converters.CacheQueryOptions(options)
  19341. // 1.
  19342. let r = null
  19343. // 2.
  19344. if (request !== undefined) {
  19345. // 2.1
  19346. if (request instanceof Request) {
  19347. // 2.1.1
  19348. r = request[kState]
  19349. // 2.1.2
  19350. if (r.method !== 'GET' && !options.ignoreMethod) {
  19351. return []
  19352. }
  19353. } else if (typeof request === 'string') { // 2.2
  19354. r = new Request(request)[kState]
  19355. }
  19356. }
  19357. // 4.
  19358. const promise = createDeferredPromise()
  19359. // 5.
  19360. // 5.1
  19361. const requests = []
  19362. // 5.2
  19363. if (request === undefined) {
  19364. // 5.2.1
  19365. for (const requestResponse of this.#relevantRequestResponseList) {
  19366. // 5.2.1.1
  19367. requests.push(requestResponse[0])
  19368. }
  19369. } else { // 5.3
  19370. // 5.3.1
  19371. const requestResponses = this.#queryCache(r, options)
  19372. // 5.3.2
  19373. for (const requestResponse of requestResponses) {
  19374. // 5.3.2.1
  19375. requests.push(requestResponse[0])
  19376. }
  19377. }
  19378. // 5.4
  19379. queueMicrotask(() => {
  19380. // 5.4.1
  19381. const requestList = []
  19382. // 5.4.2
  19383. for (const request of requests) {
  19384. const requestObject = new Request('https://a')
  19385. requestObject[kState] = request
  19386. requestObject[kHeaders][kHeadersList] = request.headersList
  19387. requestObject[kHeaders][kGuard] = 'immutable'
  19388. requestObject[kRealm] = request.client
  19389. // 5.4.2.1
  19390. requestList.push(requestObject)
  19391. }
  19392. // 5.4.3
  19393. promise.resolve(Object.freeze(requestList))
  19394. })
  19395. return promise.promise
  19396. }
  19397. /**
  19398. * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm
  19399. * @param {CacheBatchOperation[]} operations
  19400. * @returns {requestResponseList}
  19401. */
  19402. #batchCacheOperations (operations) {
  19403. // 1.
  19404. const cache = this.#relevantRequestResponseList
  19405. // 2.
  19406. const backupCache = [...cache]
  19407. // 3.
  19408. const addedItems = []
  19409. // 4.1
  19410. const resultList = []
  19411. try {
  19412. // 4.2
  19413. for (const operation of operations) {
  19414. // 4.2.1
  19415. if (operation.type !== 'delete' && operation.type !== 'put') {
  19416. throw webidl.errors.exception({
  19417. header: 'Cache.#batchCacheOperations',
  19418. message: 'operation type does not match "delete" or "put"'
  19419. })
  19420. }
  19421. // 4.2.2
  19422. if (operation.type === 'delete' && operation.response != null) {
  19423. throw webidl.errors.exception({
  19424. header: 'Cache.#batchCacheOperations',
  19425. message: 'delete operation should not have an associated response'
  19426. })
  19427. }
  19428. // 4.2.3
  19429. if (this.#queryCache(operation.request, operation.options, addedItems).length) {
  19430. throw new DOMException('???', 'InvalidStateError')
  19431. }
  19432. // 4.2.4
  19433. let requestResponses
  19434. // 4.2.5
  19435. if (operation.type === 'delete') {
  19436. // 4.2.5.1
  19437. requestResponses = this.#queryCache(operation.request, operation.options)
  19438. // TODO: the spec is wrong, this is needed to pass WPTs
  19439. if (requestResponses.length === 0) {
  19440. return []
  19441. }
  19442. // 4.2.5.2
  19443. for (const requestResponse of requestResponses) {
  19444. const idx = cache.indexOf(requestResponse)
  19445. assert(idx !== -1)
  19446. // 4.2.5.2.1
  19447. cache.splice(idx, 1)
  19448. }
  19449. } else if (operation.type === 'put') { // 4.2.6
  19450. // 4.2.6.1
  19451. if (operation.response == null) {
  19452. throw webidl.errors.exception({
  19453. header: 'Cache.#batchCacheOperations',
  19454. message: 'put operation should have an associated response'
  19455. })
  19456. }
  19457. // 4.2.6.2
  19458. const r = operation.request
  19459. // 4.2.6.3
  19460. if (!urlIsHttpHttpsScheme(r.url)) {
  19461. throw webidl.errors.exception({
  19462. header: 'Cache.#batchCacheOperations',
  19463. message: 'expected http or https scheme'
  19464. })
  19465. }
  19466. // 4.2.6.4
  19467. if (r.method !== 'GET') {
  19468. throw webidl.errors.exception({
  19469. header: 'Cache.#batchCacheOperations',
  19470. message: 'not get method'
  19471. })
  19472. }
  19473. // 4.2.6.5
  19474. if (operation.options != null) {
  19475. throw webidl.errors.exception({
  19476. header: 'Cache.#batchCacheOperations',
  19477. message: 'options must not be defined'
  19478. })
  19479. }
  19480. // 4.2.6.6
  19481. requestResponses = this.#queryCache(operation.request)
  19482. // 4.2.6.7
  19483. for (const requestResponse of requestResponses) {
  19484. const idx = cache.indexOf(requestResponse)
  19485. assert(idx !== -1)
  19486. // 4.2.6.7.1
  19487. cache.splice(idx, 1)
  19488. }
  19489. // 4.2.6.8
  19490. cache.push([operation.request, operation.response])
  19491. // 4.2.6.10
  19492. addedItems.push([operation.request, operation.response])
  19493. }
  19494. // 4.2.7
  19495. resultList.push([operation.request, operation.response])
  19496. }
  19497. // 4.3
  19498. return resultList
  19499. } catch (e) { // 5.
  19500. // 5.1
  19501. this.#relevantRequestResponseList.length = 0
  19502. // 5.2
  19503. this.#relevantRequestResponseList = backupCache
  19504. // 5.3
  19505. throw e
  19506. }
  19507. }
  19508. /**
  19509. * @see https://w3c.github.io/ServiceWorker/#query-cache
  19510. * @param {any} requestQuery
  19511. * @param {import('../../types/cache').CacheQueryOptions} options
  19512. * @param {requestResponseList} targetStorage
  19513. * @returns {requestResponseList}
  19514. */
  19515. #queryCache (requestQuery, options, targetStorage) {
  19516. /** @type {requestResponseList} */
  19517. const resultList = []
  19518. const storage = targetStorage ?? this.#relevantRequestResponseList
  19519. for (const requestResponse of storage) {
  19520. const [cachedRequest, cachedResponse] = requestResponse
  19521. if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {
  19522. resultList.push(requestResponse)
  19523. }
  19524. }
  19525. return resultList
  19526. }
  19527. /**
  19528. * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm
  19529. * @param {any} requestQuery
  19530. * @param {any} request
  19531. * @param {any | null} response
  19532. * @param {import('../../types/cache').CacheQueryOptions | undefined} options
  19533. * @returns {boolean}
  19534. */
  19535. #requestMatchesCachedItem (requestQuery, request, response = null, options) {
  19536. // if (options?.ignoreMethod === false && request.method === 'GET') {
  19537. // return false
  19538. // }
  19539. const queryURL = new URL(requestQuery.url)
  19540. const cachedURL = new URL(request.url)
  19541. if (options?.ignoreSearch) {
  19542. cachedURL.search = ''
  19543. queryURL.search = ''
  19544. }
  19545. if (!urlEquals(queryURL, cachedURL, true)) {
  19546. return false
  19547. }
  19548. if (
  19549. response == null ||
  19550. options?.ignoreVary ||
  19551. !response.headersList.contains('vary')
  19552. ) {
  19553. return true
  19554. }
  19555. const fieldValues = getFieldValues(response.headersList.get('vary'))
  19556. for (const fieldValue of fieldValues) {
  19557. if (fieldValue === '*') {
  19558. return false
  19559. }
  19560. const requestValue = request.headersList.get(fieldValue)
  19561. const queryValue = requestQuery.headersList.get(fieldValue)
  19562. // If one has the header and the other doesn't, or one has
  19563. // a different value than the other, return false
  19564. if (requestValue !== queryValue) {
  19565. return false
  19566. }
  19567. }
  19568. return true
  19569. }
  19570. }
  19571. Object.defineProperties(Cache.prototype, {
  19572. [Symbol.toStringTag]: {
  19573. value: 'Cache',
  19574. configurable: true
  19575. },
  19576. match: kEnumerableProperty,
  19577. matchAll: kEnumerableProperty,
  19578. add: kEnumerableProperty,
  19579. addAll: kEnumerableProperty,
  19580. put: kEnumerableProperty,
  19581. delete: kEnumerableProperty,
  19582. keys: kEnumerableProperty
  19583. })
  19584. const cacheQueryOptionConverters = [
  19585. {
  19586. key: 'ignoreSearch',
  19587. converter: webidl.converters.boolean,
  19588. defaultValue: false
  19589. },
  19590. {
  19591. key: 'ignoreMethod',
  19592. converter: webidl.converters.boolean,
  19593. defaultValue: false
  19594. },
  19595. {
  19596. key: 'ignoreVary',
  19597. converter: webidl.converters.boolean,
  19598. defaultValue: false
  19599. }
  19600. ]
  19601. webidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters)
  19602. webidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([
  19603. ...cacheQueryOptionConverters,
  19604. {
  19605. key: 'cacheName',
  19606. converter: webidl.converters.DOMString
  19607. }
  19608. ])
  19609. webidl.converters.Response = webidl.interfaceConverter(Response)
  19610. webidl.converters['sequence<RequestInfo>'] = webidl.sequenceConverter(
  19611. webidl.converters.RequestInfo
  19612. )
  19613. module.exports = {
  19614. Cache
  19615. }
  19616. /***/ }),
  19617. /***/ 7907:
  19618. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19619. "use strict";
  19620. const { kConstruct } = __nccwpck_require__(9174)
  19621. const { Cache } = __nccwpck_require__(6101)
  19622. const { webidl } = __nccwpck_require__(1744)
  19623. const { kEnumerableProperty } = __nccwpck_require__(3983)
  19624. class CacheStorage {
  19625. /**
  19626. * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map
  19627. * @type {Map<string, import('./cache').requestResponseList}
  19628. */
  19629. #caches = new Map()
  19630. constructor () {
  19631. if (arguments[0] !== kConstruct) {
  19632. webidl.illegalConstructor()
  19633. }
  19634. }
  19635. async match (request, options = {}) {
  19636. webidl.brandCheck(this, CacheStorage)
  19637. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.match' })
  19638. request = webidl.converters.RequestInfo(request)
  19639. options = webidl.converters.MultiCacheQueryOptions(options)
  19640. // 1.
  19641. if (options.cacheName != null) {
  19642. // 1.1.1.1
  19643. if (this.#caches.has(options.cacheName)) {
  19644. // 1.1.1.1.1
  19645. const cacheList = this.#caches.get(options.cacheName)
  19646. const cache = new Cache(kConstruct, cacheList)
  19647. return await cache.match(request, options)
  19648. }
  19649. } else { // 2.
  19650. // 2.2
  19651. for (const cacheList of this.#caches.values()) {
  19652. const cache = new Cache(kConstruct, cacheList)
  19653. // 2.2.1.2
  19654. const response = await cache.match(request, options)
  19655. if (response !== undefined) {
  19656. return response
  19657. }
  19658. }
  19659. }
  19660. }
  19661. /**
  19662. * @see https://w3c.github.io/ServiceWorker/#cache-storage-has
  19663. * @param {string} cacheName
  19664. * @returns {Promise<boolean>}
  19665. */
  19666. async has (cacheName) {
  19667. webidl.brandCheck(this, CacheStorage)
  19668. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.has' })
  19669. cacheName = webidl.converters.DOMString(cacheName)
  19670. // 2.1.1
  19671. // 2.2
  19672. return this.#caches.has(cacheName)
  19673. }
  19674. /**
  19675. * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open
  19676. * @param {string} cacheName
  19677. * @returns {Promise<Cache>}
  19678. */
  19679. async open (cacheName) {
  19680. webidl.brandCheck(this, CacheStorage)
  19681. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.open' })
  19682. cacheName = webidl.converters.DOMString(cacheName)
  19683. // 2.1
  19684. if (this.#caches.has(cacheName)) {
  19685. // await caches.open('v1') !== await caches.open('v1')
  19686. // 2.1.1
  19687. const cache = this.#caches.get(cacheName)
  19688. // 2.1.1.1
  19689. return new Cache(kConstruct, cache)
  19690. }
  19691. // 2.2
  19692. const cache = []
  19693. // 2.3
  19694. this.#caches.set(cacheName, cache)
  19695. // 2.4
  19696. return new Cache(kConstruct, cache)
  19697. }
  19698. /**
  19699. * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete
  19700. * @param {string} cacheName
  19701. * @returns {Promise<boolean>}
  19702. */
  19703. async delete (cacheName) {
  19704. webidl.brandCheck(this, CacheStorage)
  19705. webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.delete' })
  19706. cacheName = webidl.converters.DOMString(cacheName)
  19707. return this.#caches.delete(cacheName)
  19708. }
  19709. /**
  19710. * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys
  19711. * @returns {string[]}
  19712. */
  19713. async keys () {
  19714. webidl.brandCheck(this, CacheStorage)
  19715. // 2.1
  19716. const keys = this.#caches.keys()
  19717. // 2.2
  19718. return [...keys]
  19719. }
  19720. }
  19721. Object.defineProperties(CacheStorage.prototype, {
  19722. [Symbol.toStringTag]: {
  19723. value: 'CacheStorage',
  19724. configurable: true
  19725. },
  19726. match: kEnumerableProperty,
  19727. has: kEnumerableProperty,
  19728. open: kEnumerableProperty,
  19729. delete: kEnumerableProperty,
  19730. keys: kEnumerableProperty
  19731. })
  19732. module.exports = {
  19733. CacheStorage
  19734. }
  19735. /***/ }),
  19736. /***/ 9174:
  19737. /***/ ((module) => {
  19738. "use strict";
  19739. module.exports = {
  19740. kConstruct: Symbol('constructable')
  19741. }
  19742. /***/ }),
  19743. /***/ 2396:
  19744. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19745. "use strict";
  19746. const assert = __nccwpck_require__(9491)
  19747. const { URLSerializer } = __nccwpck_require__(685)
  19748. const { isValidHeaderName } = __nccwpck_require__(2538)
  19749. /**
  19750. * @see https://url.spec.whatwg.org/#concept-url-equals
  19751. * @param {URL} A
  19752. * @param {URL} B
  19753. * @param {boolean | undefined} excludeFragment
  19754. * @returns {boolean}
  19755. */
  19756. function urlEquals (A, B, excludeFragment = false) {
  19757. const serializedA = URLSerializer(A, excludeFragment)
  19758. const serializedB = URLSerializer(B, excludeFragment)
  19759. return serializedA === serializedB
  19760. }
  19761. /**
  19762. * @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L262
  19763. * @param {string} header
  19764. */
  19765. function fieldValues (header) {
  19766. assert(header !== null)
  19767. const values = []
  19768. for (let value of header.split(',')) {
  19769. value = value.trim()
  19770. if (!value.length) {
  19771. continue
  19772. } else if (!isValidHeaderName(value)) {
  19773. continue
  19774. }
  19775. values.push(value)
  19776. }
  19777. return values
  19778. }
  19779. module.exports = {
  19780. urlEquals,
  19781. fieldValues
  19782. }
  19783. /***/ }),
  19784. /***/ 3598:
  19785. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  19786. "use strict";
  19787. // @ts-check
  19788. /* global WebAssembly */
  19789. const assert = __nccwpck_require__(9491)
  19790. const net = __nccwpck_require__(1808)
  19791. const { pipeline } = __nccwpck_require__(2781)
  19792. const util = __nccwpck_require__(3983)
  19793. const timers = __nccwpck_require__(9459)
  19794. const Request = __nccwpck_require__(2905)
  19795. const DispatcherBase = __nccwpck_require__(4839)
  19796. const {
  19797. RequestContentLengthMismatchError,
  19798. ResponseContentLengthMismatchError,
  19799. InvalidArgumentError,
  19800. RequestAbortedError,
  19801. HeadersTimeoutError,
  19802. HeadersOverflowError,
  19803. SocketError,
  19804. InformationalError,
  19805. BodyTimeoutError,
  19806. HTTPParserError,
  19807. ResponseExceededMaxSizeError,
  19808. ClientDestroyedError
  19809. } = __nccwpck_require__(8045)
  19810. const buildConnector = __nccwpck_require__(2067)
  19811. const {
  19812. kUrl,
  19813. kReset,
  19814. kServerName,
  19815. kClient,
  19816. kBusy,
  19817. kParser,
  19818. kConnect,
  19819. kBlocking,
  19820. kResuming,
  19821. kRunning,
  19822. kPending,
  19823. kSize,
  19824. kWriting,
  19825. kQueue,
  19826. kConnected,
  19827. kConnecting,
  19828. kNeedDrain,
  19829. kNoRef,
  19830. kKeepAliveDefaultTimeout,
  19831. kHostHeader,
  19832. kPendingIdx,
  19833. kRunningIdx,
  19834. kError,
  19835. kPipelining,
  19836. kSocket,
  19837. kKeepAliveTimeoutValue,
  19838. kMaxHeadersSize,
  19839. kKeepAliveMaxTimeout,
  19840. kKeepAliveTimeoutThreshold,
  19841. kHeadersTimeout,
  19842. kBodyTimeout,
  19843. kStrictContentLength,
  19844. kConnector,
  19845. kMaxRedirections,
  19846. kMaxRequests,
  19847. kCounter,
  19848. kClose,
  19849. kDestroy,
  19850. kDispatch,
  19851. kInterceptors,
  19852. kLocalAddress,
  19853. kMaxResponseSize,
  19854. kHTTPConnVersion,
  19855. // HTTP2
  19856. kHost,
  19857. kHTTP2Session,
  19858. kHTTP2SessionState,
  19859. kHTTP2BuildRequest,
  19860. kHTTP2CopyHeaders,
  19861. kHTTP1BuildRequest
  19862. } = __nccwpck_require__(2785)
  19863. /** @type {import('http2')} */
  19864. let http2
  19865. try {
  19866. http2 = __nccwpck_require__(5158)
  19867. } catch {
  19868. // @ts-ignore
  19869. http2 = { constants: {} }
  19870. }
  19871. const {
  19872. constants: {
  19873. HTTP2_HEADER_AUTHORITY,
  19874. HTTP2_HEADER_METHOD,
  19875. HTTP2_HEADER_PATH,
  19876. HTTP2_HEADER_CONTENT_LENGTH,
  19877. HTTP2_HEADER_EXPECT,
  19878. HTTP2_HEADER_STATUS
  19879. }
  19880. } = http2
  19881. // Experimental
  19882. let h2ExperimentalWarned = false
  19883. const FastBuffer = Buffer[Symbol.species]
  19884. const kClosedResolve = Symbol('kClosedResolve')
  19885. const channels = {}
  19886. try {
  19887. const diagnosticsChannel = __nccwpck_require__(7643)
  19888. channels.sendHeaders = diagnosticsChannel.channel('undici:client:sendHeaders')
  19889. channels.beforeConnect = diagnosticsChannel.channel('undici:client:beforeConnect')
  19890. channels.connectError = diagnosticsChannel.channel('undici:client:connectError')
  19891. channels.connected = diagnosticsChannel.channel('undici:client:connected')
  19892. } catch {
  19893. channels.sendHeaders = { hasSubscribers: false }
  19894. channels.beforeConnect = { hasSubscribers: false }
  19895. channels.connectError = { hasSubscribers: false }
  19896. channels.connected = { hasSubscribers: false }
  19897. }
  19898. /**
  19899. * @type {import('../types/client').default}
  19900. */
  19901. class Client extends DispatcherBase {
  19902. /**
  19903. *
  19904. * @param {string|URL} url
  19905. * @param {import('../types/client').Client.Options} options
  19906. */
  19907. constructor (url, {
  19908. interceptors,
  19909. maxHeaderSize,
  19910. headersTimeout,
  19911. socketTimeout,
  19912. requestTimeout,
  19913. connectTimeout,
  19914. bodyTimeout,
  19915. idleTimeout,
  19916. keepAlive,
  19917. keepAliveTimeout,
  19918. maxKeepAliveTimeout,
  19919. keepAliveMaxTimeout,
  19920. keepAliveTimeoutThreshold,
  19921. socketPath,
  19922. pipelining,
  19923. tls,
  19924. strictContentLength,
  19925. maxCachedSessions,
  19926. maxRedirections,
  19927. connect,
  19928. maxRequestsPerClient,
  19929. localAddress,
  19930. maxResponseSize,
  19931. autoSelectFamily,
  19932. autoSelectFamilyAttemptTimeout,
  19933. // h2
  19934. allowH2,
  19935. maxConcurrentStreams
  19936. } = {}) {
  19937. super()
  19938. if (keepAlive !== undefined) {
  19939. throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')
  19940. }
  19941. if (socketTimeout !== undefined) {
  19942. throw new InvalidArgumentError('unsupported socketTimeout, use headersTimeout & bodyTimeout instead')
  19943. }
  19944. if (requestTimeout !== undefined) {
  19945. throw new InvalidArgumentError('unsupported requestTimeout, use headersTimeout & bodyTimeout instead')
  19946. }
  19947. if (idleTimeout !== undefined) {
  19948. throw new InvalidArgumentError('unsupported idleTimeout, use keepAliveTimeout instead')
  19949. }
  19950. if (maxKeepAliveTimeout !== undefined) {
  19951. throw new InvalidArgumentError('unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead')
  19952. }
  19953. if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) {
  19954. throw new InvalidArgumentError('invalid maxHeaderSize')
  19955. }
  19956. if (socketPath != null && typeof socketPath !== 'string') {
  19957. throw new InvalidArgumentError('invalid socketPath')
  19958. }
  19959. if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {
  19960. throw new InvalidArgumentError('invalid connectTimeout')
  19961. }
  19962. if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {
  19963. throw new InvalidArgumentError('invalid keepAliveTimeout')
  19964. }
  19965. if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {
  19966. throw new InvalidArgumentError('invalid keepAliveMaxTimeout')
  19967. }
  19968. if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {
  19969. throw new InvalidArgumentError('invalid keepAliveTimeoutThreshold')
  19970. }
  19971. if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {
  19972. throw new InvalidArgumentError('headersTimeout must be a positive integer or zero')
  19973. }
  19974. if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {
  19975. throw new InvalidArgumentError('bodyTimeout must be a positive integer or zero')
  19976. }
  19977. if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
  19978. throw new InvalidArgumentError('connect must be a function or an object')
  19979. }
  19980. if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
  19981. throw new InvalidArgumentError('maxRedirections must be a positive number')
  19982. }
  19983. if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {
  19984. throw new InvalidArgumentError('maxRequestsPerClient must be a positive number')
  19985. }
  19986. if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {
  19987. throw new InvalidArgumentError('localAddress must be valid string IP address')
  19988. }
  19989. if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {
  19990. throw new InvalidArgumentError('maxResponseSize must be a positive number')
  19991. }
  19992. if (
  19993. autoSelectFamilyAttemptTimeout != null &&
  19994. (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1)
  19995. ) {
  19996. throw new InvalidArgumentError('autoSelectFamilyAttemptTimeout must be a positive number')
  19997. }
  19998. // h2
  19999. if (allowH2 != null && typeof allowH2 !== 'boolean') {
  20000. throw new InvalidArgumentError('allowH2 must be a valid boolean value')
  20001. }
  20002. if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) {
  20003. throw new InvalidArgumentError('maxConcurrentStreams must be a possitive integer, greater than 0')
  20004. }
  20005. if (typeof connect !== 'function') {
  20006. connect = buildConnector({
  20007. ...tls,
  20008. maxCachedSessions,
  20009. allowH2,
  20010. socketPath,
  20011. timeout: connectTimeout,
  20012. ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),
  20013. ...connect
  20014. })
  20015. }
  20016. this[kInterceptors] = interceptors && interceptors.Client && Array.isArray(interceptors.Client)
  20017. ? interceptors.Client
  20018. : [createRedirectInterceptor({ maxRedirections })]
  20019. this[kUrl] = util.parseOrigin(url)
  20020. this[kConnector] = connect
  20021. this[kSocket] = null
  20022. this[kPipelining] = pipelining != null ? pipelining : 1
  20023. this[kMaxHeadersSize] = maxHeaderSize || 16384
  20024. this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout
  20025. this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout
  20026. this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold
  20027. this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout]
  20028. this[kServerName] = null
  20029. this[kLocalAddress] = localAddress != null ? localAddress : null
  20030. this[kResuming] = 0 // 0, idle, 1, scheduled, 2 resuming
  20031. this[kNeedDrain] = 0 // 0, idle, 1, scheduled, 2 resuming
  20032. this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}\r\n`
  20033. this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 300e3
  20034. this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 300e3
  20035. this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength
  20036. this[kMaxRedirections] = maxRedirections
  20037. this[kMaxRequests] = maxRequestsPerClient
  20038. this[kClosedResolve] = null
  20039. this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1
  20040. this[kHTTPConnVersion] = 'h1'
  20041. // HTTP/2
  20042. this[kHTTP2Session] = null
  20043. this[kHTTP2SessionState] = !allowH2
  20044. ? null
  20045. : {
  20046. // streams: null, // Fixed queue of streams - For future support of `push`
  20047. openStreams: 0, // Keep track of them to decide wether or not unref the session
  20048. maxConcurrentStreams: maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server
  20049. }
  20050. this[kHost] = `${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}`
  20051. // kQueue is built up of 3 sections separated by
  20052. // the kRunningIdx and kPendingIdx indices.
  20053. // | complete | running | pending |
  20054. // ^ kRunningIdx ^ kPendingIdx ^ kQueue.length
  20055. // kRunningIdx points to the first running element.
  20056. // kPendingIdx points to the first pending element.
  20057. // This implements a fast queue with an amortized
  20058. // time of O(1).
  20059. this[kQueue] = []
  20060. this[kRunningIdx] = 0
  20061. this[kPendingIdx] = 0
  20062. }
  20063. get pipelining () {
  20064. return this[kPipelining]
  20065. }
  20066. set pipelining (value) {
  20067. this[kPipelining] = value
  20068. resume(this, true)
  20069. }
  20070. get [kPending] () {
  20071. return this[kQueue].length - this[kPendingIdx]
  20072. }
  20073. get [kRunning] () {
  20074. return this[kPendingIdx] - this[kRunningIdx]
  20075. }
  20076. get [kSize] () {
  20077. return this[kQueue].length - this[kRunningIdx]
  20078. }
  20079. get [kConnected] () {
  20080. return !!this[kSocket] && !this[kConnecting] && !this[kSocket].destroyed
  20081. }
  20082. get [kBusy] () {
  20083. const socket = this[kSocket]
  20084. return (
  20085. (socket && (socket[kReset] || socket[kWriting] || socket[kBlocking])) ||
  20086. (this[kSize] >= (this[kPipelining] || 1)) ||
  20087. this[kPending] > 0
  20088. )
  20089. }
  20090. /* istanbul ignore: only used for test */
  20091. [kConnect] (cb) {
  20092. connect(this)
  20093. this.once('connect', cb)
  20094. }
  20095. [kDispatch] (opts, handler) {
  20096. const origin = opts.origin || this[kUrl].origin
  20097. const request = this[kHTTPConnVersion] === 'h2'
  20098. ? Request[kHTTP2BuildRequest](origin, opts, handler)
  20099. : Request[kHTTP1BuildRequest](origin, opts, handler)
  20100. this[kQueue].push(request)
  20101. if (this[kResuming]) {
  20102. // Do nothing.
  20103. } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {
  20104. // Wait a tick in case stream/iterator is ended in the same tick.
  20105. this[kResuming] = 1
  20106. process.nextTick(resume, this)
  20107. } else {
  20108. resume(this, true)
  20109. }
  20110. if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) {
  20111. this[kNeedDrain] = 2
  20112. }
  20113. return this[kNeedDrain] < 2
  20114. }
  20115. async [kClose] () {
  20116. // TODO: for H2 we need to gracefully flush the remaining enqueued
  20117. // request and close each stream.
  20118. return new Promise((resolve) => {
  20119. if (!this[kSize]) {
  20120. resolve(null)
  20121. } else {
  20122. this[kClosedResolve] = resolve
  20123. }
  20124. })
  20125. }
  20126. async [kDestroy] (err) {
  20127. return new Promise((resolve) => {
  20128. const requests = this[kQueue].splice(this[kPendingIdx])
  20129. for (let i = 0; i < requests.length; i++) {
  20130. const request = requests[i]
  20131. errorRequest(this, request, err)
  20132. }
  20133. const callback = () => {
  20134. if (this[kClosedResolve]) {
  20135. // TODO (fix): Should we error here with ClientDestroyedError?
  20136. this[kClosedResolve]()
  20137. this[kClosedResolve] = null
  20138. }
  20139. resolve()
  20140. }
  20141. if (this[kHTTP2Session] != null) {
  20142. util.destroy(this[kHTTP2Session], err)
  20143. this[kHTTP2Session] = null
  20144. this[kHTTP2SessionState] = null
  20145. }
  20146. if (!this[kSocket]) {
  20147. queueMicrotask(callback)
  20148. } else {
  20149. util.destroy(this[kSocket].on('close', callback), err)
  20150. }
  20151. resume(this)
  20152. })
  20153. }
  20154. }
  20155. function onHttp2SessionError (err) {
  20156. assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
  20157. this[kSocket][kError] = err
  20158. onError(this[kClient], err)
  20159. }
  20160. function onHttp2FrameError (type, code, id) {
  20161. const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`)
  20162. if (id === 0) {
  20163. this[kSocket][kError] = err
  20164. onError(this[kClient], err)
  20165. }
  20166. }
  20167. function onHttp2SessionEnd () {
  20168. util.destroy(this, new SocketError('other side closed'))
  20169. util.destroy(this[kSocket], new SocketError('other side closed'))
  20170. }
  20171. function onHTTP2GoAway (code) {
  20172. const client = this[kClient]
  20173. const err = new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${code}`)
  20174. client[kSocket] = null
  20175. client[kHTTP2Session] = null
  20176. if (client.destroyed) {
  20177. assert(this[kPending] === 0)
  20178. // Fail entire queue.
  20179. const requests = client[kQueue].splice(client[kRunningIdx])
  20180. for (let i = 0; i < requests.length; i++) {
  20181. const request = requests[i]
  20182. errorRequest(this, request, err)
  20183. }
  20184. } else if (client[kRunning] > 0) {
  20185. // Fail head of pipeline.
  20186. const request = client[kQueue][client[kRunningIdx]]
  20187. client[kQueue][client[kRunningIdx]++] = null
  20188. errorRequest(client, request, err)
  20189. }
  20190. client[kPendingIdx] = client[kRunningIdx]
  20191. assert(client[kRunning] === 0)
  20192. client.emit('disconnect',
  20193. client[kUrl],
  20194. [client],
  20195. err
  20196. )
  20197. resume(client)
  20198. }
  20199. const constants = __nccwpck_require__(953)
  20200. const createRedirectInterceptor = __nccwpck_require__(8861)
  20201. const EMPTY_BUF = Buffer.alloc(0)
  20202. async function lazyllhttp () {
  20203. const llhttpWasmData = process.env.JEST_WORKER_ID ? __nccwpck_require__(1145) : undefined
  20204. let mod
  20205. try {
  20206. mod = await WebAssembly.compile(Buffer.from(__nccwpck_require__(5627), 'base64'))
  20207. } catch (e) {
  20208. /* istanbul ignore next */
  20209. // We could check if the error was caused by the simd option not
  20210. // being enabled, but the occurring of this other error
  20211. // * https://github.com/emscripten-core/emscripten/issues/11495
  20212. // got me to remove that check to avoid breaking Node 12.
  20213. mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || __nccwpck_require__(1145), 'base64'))
  20214. }
  20215. return await WebAssembly.instantiate(mod, {
  20216. env: {
  20217. /* eslint-disable camelcase */
  20218. wasm_on_url: (p, at, len) => {
  20219. /* istanbul ignore next */
  20220. return 0
  20221. },
  20222. wasm_on_status: (p, at, len) => {
  20223. assert.strictEqual(currentParser.ptr, p)
  20224. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  20225. return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  20226. },
  20227. wasm_on_message_begin: (p) => {
  20228. assert.strictEqual(currentParser.ptr, p)
  20229. return currentParser.onMessageBegin() || 0
  20230. },
  20231. wasm_on_header_field: (p, at, len) => {
  20232. assert.strictEqual(currentParser.ptr, p)
  20233. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  20234. return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  20235. },
  20236. wasm_on_header_value: (p, at, len) => {
  20237. assert.strictEqual(currentParser.ptr, p)
  20238. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  20239. return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  20240. },
  20241. wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {
  20242. assert.strictEqual(currentParser.ptr, p)
  20243. return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0
  20244. },
  20245. wasm_on_body: (p, at, len) => {
  20246. assert.strictEqual(currentParser.ptr, p)
  20247. const start = at - currentBufferPtr + currentBufferRef.byteOffset
  20248. return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
  20249. },
  20250. wasm_on_message_complete: (p) => {
  20251. assert.strictEqual(currentParser.ptr, p)
  20252. return currentParser.onMessageComplete() || 0
  20253. }
  20254. /* eslint-enable camelcase */
  20255. }
  20256. })
  20257. }
  20258. let llhttpInstance = null
  20259. let llhttpPromise = lazyllhttp()
  20260. llhttpPromise.catch()
  20261. let currentParser = null
  20262. let currentBufferRef = null
  20263. let currentBufferSize = 0
  20264. let currentBufferPtr = null
  20265. const TIMEOUT_HEADERS = 1
  20266. const TIMEOUT_BODY = 2
  20267. const TIMEOUT_IDLE = 3
  20268. class Parser {
  20269. constructor (client, socket, { exports }) {
  20270. assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0)
  20271. this.llhttp = exports
  20272. this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE)
  20273. this.client = client
  20274. this.socket = socket
  20275. this.timeout = null
  20276. this.timeoutValue = null
  20277. this.timeoutType = null
  20278. this.statusCode = null
  20279. this.statusText = ''
  20280. this.upgrade = false
  20281. this.headers = []
  20282. this.headersSize = 0
  20283. this.headersMaxSize = client[kMaxHeadersSize]
  20284. this.shouldKeepAlive = false
  20285. this.paused = false
  20286. this.resume = this.resume.bind(this)
  20287. this.bytesRead = 0
  20288. this.keepAlive = ''
  20289. this.contentLength = ''
  20290. this.connection = ''
  20291. this.maxResponseSize = client[kMaxResponseSize]
  20292. }
  20293. setTimeout (value, type) {
  20294. this.timeoutType = type
  20295. if (value !== this.timeoutValue) {
  20296. timers.clearTimeout(this.timeout)
  20297. if (value) {
  20298. this.timeout = timers.setTimeout(onParserTimeout, value, this)
  20299. // istanbul ignore else: only for jest
  20300. if (this.timeout.unref) {
  20301. this.timeout.unref()
  20302. }
  20303. } else {
  20304. this.timeout = null
  20305. }
  20306. this.timeoutValue = value
  20307. } else if (this.timeout) {
  20308. // istanbul ignore else: only for jest
  20309. if (this.timeout.refresh) {
  20310. this.timeout.refresh()
  20311. }
  20312. }
  20313. }
  20314. resume () {
  20315. if (this.socket.destroyed || !this.paused) {
  20316. return
  20317. }
  20318. assert(this.ptr != null)
  20319. assert(currentParser == null)
  20320. this.llhttp.llhttp_resume(this.ptr)
  20321. assert(this.timeoutType === TIMEOUT_BODY)
  20322. if (this.timeout) {
  20323. // istanbul ignore else: only for jest
  20324. if (this.timeout.refresh) {
  20325. this.timeout.refresh()
  20326. }
  20327. }
  20328. this.paused = false
  20329. this.execute(this.socket.read() || EMPTY_BUF) // Flush parser.
  20330. this.readMore()
  20331. }
  20332. readMore () {
  20333. while (!this.paused && this.ptr) {
  20334. const chunk = this.socket.read()
  20335. if (chunk === null) {
  20336. break
  20337. }
  20338. this.execute(chunk)
  20339. }
  20340. }
  20341. execute (data) {
  20342. assert(this.ptr != null)
  20343. assert(currentParser == null)
  20344. assert(!this.paused)
  20345. const { socket, llhttp } = this
  20346. if (data.length > currentBufferSize) {
  20347. if (currentBufferPtr) {
  20348. llhttp.free(currentBufferPtr)
  20349. }
  20350. currentBufferSize = Math.ceil(data.length / 4096) * 4096
  20351. currentBufferPtr = llhttp.malloc(currentBufferSize)
  20352. }
  20353. new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data)
  20354. // Call `execute` on the wasm parser.
  20355. // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data,
  20356. // and finally the length of bytes to parse.
  20357. // The return value is an error code or `constants.ERROR.OK`.
  20358. try {
  20359. let ret
  20360. try {
  20361. currentBufferRef = data
  20362. currentParser = this
  20363. ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length)
  20364. /* eslint-disable-next-line no-useless-catch */
  20365. } catch (err) {
  20366. /* istanbul ignore next: difficult to make a test case for */
  20367. throw err
  20368. } finally {
  20369. currentParser = null
  20370. currentBufferRef = null
  20371. }
  20372. const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr
  20373. if (ret === constants.ERROR.PAUSED_UPGRADE) {
  20374. this.onUpgrade(data.slice(offset))
  20375. } else if (ret === constants.ERROR.PAUSED) {
  20376. this.paused = true
  20377. socket.unshift(data.slice(offset))
  20378. } else if (ret !== constants.ERROR.OK) {
  20379. const ptr = llhttp.llhttp_get_error_reason(this.ptr)
  20380. let message = ''
  20381. /* istanbul ignore else: difficult to make a test case for */
  20382. if (ptr) {
  20383. const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0)
  20384. message =
  20385. 'Response does not match the HTTP/1.1 protocol (' +
  20386. Buffer.from(llhttp.memory.buffer, ptr, len).toString() +
  20387. ')'
  20388. }
  20389. throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset))
  20390. }
  20391. } catch (err) {
  20392. util.destroy(socket, err)
  20393. }
  20394. }
  20395. destroy () {
  20396. assert(this.ptr != null)
  20397. assert(currentParser == null)
  20398. this.llhttp.llhttp_free(this.ptr)
  20399. this.ptr = null
  20400. timers.clearTimeout(this.timeout)
  20401. this.timeout = null
  20402. this.timeoutValue = null
  20403. this.timeoutType = null
  20404. this.paused = false
  20405. }
  20406. onStatus (buf) {
  20407. this.statusText = buf.toString()
  20408. }
  20409. onMessageBegin () {
  20410. const { socket, client } = this
  20411. /* istanbul ignore next: difficult to make a test case for */
  20412. if (socket.destroyed) {
  20413. return -1
  20414. }
  20415. const request = client[kQueue][client[kRunningIdx]]
  20416. if (!request) {
  20417. return -1
  20418. }
  20419. }
  20420. onHeaderField (buf) {
  20421. const len = this.headers.length
  20422. if ((len & 1) === 0) {
  20423. this.headers.push(buf)
  20424. } else {
  20425. this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])
  20426. }
  20427. this.trackHeader(buf.length)
  20428. }
  20429. onHeaderValue (buf) {
  20430. let len = this.headers.length
  20431. if ((len & 1) === 1) {
  20432. this.headers.push(buf)
  20433. len += 1
  20434. } else {
  20435. this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])
  20436. }
  20437. const key = this.headers[len - 2]
  20438. if (key.length === 10 && key.toString().toLowerCase() === 'keep-alive') {
  20439. this.keepAlive += buf.toString()
  20440. } else if (key.length === 10 && key.toString().toLowerCase() === 'connection') {
  20441. this.connection += buf.toString()
  20442. } else if (key.length === 14 && key.toString().toLowerCase() === 'content-length') {
  20443. this.contentLength += buf.toString()
  20444. }
  20445. this.trackHeader(buf.length)
  20446. }
  20447. trackHeader (len) {
  20448. this.headersSize += len
  20449. if (this.headersSize >= this.headersMaxSize) {
  20450. util.destroy(this.socket, new HeadersOverflowError())
  20451. }
  20452. }
  20453. onUpgrade (head) {
  20454. const { upgrade, client, socket, headers, statusCode } = this
  20455. assert(upgrade)
  20456. const request = client[kQueue][client[kRunningIdx]]
  20457. assert(request)
  20458. assert(!socket.destroyed)
  20459. assert(socket === client[kSocket])
  20460. assert(!this.paused)
  20461. assert(request.upgrade || request.method === 'CONNECT')
  20462. this.statusCode = null
  20463. this.statusText = ''
  20464. this.shouldKeepAlive = null
  20465. assert(this.headers.length % 2 === 0)
  20466. this.headers = []
  20467. this.headersSize = 0
  20468. socket.unshift(head)
  20469. socket[kParser].destroy()
  20470. socket[kParser] = null
  20471. socket[kClient] = null
  20472. socket[kError] = null
  20473. socket
  20474. .removeListener('error', onSocketError)
  20475. .removeListener('readable', onSocketReadable)
  20476. .removeListener('end', onSocketEnd)
  20477. .removeListener('close', onSocketClose)
  20478. client[kSocket] = null
  20479. client[kQueue][client[kRunningIdx]++] = null
  20480. client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'))
  20481. try {
  20482. request.onUpgrade(statusCode, headers, socket)
  20483. } catch (err) {
  20484. util.destroy(socket, err)
  20485. }
  20486. resume(client)
  20487. }
  20488. onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {
  20489. const { client, socket, headers, statusText } = this
  20490. /* istanbul ignore next: difficult to make a test case for */
  20491. if (socket.destroyed) {
  20492. return -1
  20493. }
  20494. const request = client[kQueue][client[kRunningIdx]]
  20495. /* istanbul ignore next: difficult to make a test case for */
  20496. if (!request) {
  20497. return -1
  20498. }
  20499. assert(!this.upgrade)
  20500. assert(this.statusCode < 200)
  20501. if (statusCode === 100) {
  20502. util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))
  20503. return -1
  20504. }
  20505. /* this can only happen if server is misbehaving */
  20506. if (upgrade && !request.upgrade) {
  20507. util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket)))
  20508. return -1
  20509. }
  20510. assert.strictEqual(this.timeoutType, TIMEOUT_HEADERS)
  20511. this.statusCode = statusCode
  20512. this.shouldKeepAlive = (
  20513. shouldKeepAlive ||
  20514. // Override llhttp value which does not allow keepAlive for HEAD.
  20515. (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive')
  20516. )
  20517. if (this.statusCode >= 200) {
  20518. const bodyTimeout = request.bodyTimeout != null
  20519. ? request.bodyTimeout
  20520. : client[kBodyTimeout]
  20521. this.setTimeout(bodyTimeout, TIMEOUT_BODY)
  20522. } else if (this.timeout) {
  20523. // istanbul ignore else: only for jest
  20524. if (this.timeout.refresh) {
  20525. this.timeout.refresh()
  20526. }
  20527. }
  20528. if (request.method === 'CONNECT') {
  20529. assert(client[kRunning] === 1)
  20530. this.upgrade = true
  20531. return 2
  20532. }
  20533. if (upgrade) {
  20534. assert(client[kRunning] === 1)
  20535. this.upgrade = true
  20536. return 2
  20537. }
  20538. assert(this.headers.length % 2 === 0)
  20539. this.headers = []
  20540. this.headersSize = 0
  20541. if (this.shouldKeepAlive && client[kPipelining]) {
  20542. const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null
  20543. if (keepAliveTimeout != null) {
  20544. const timeout = Math.min(
  20545. keepAliveTimeout - client[kKeepAliveTimeoutThreshold],
  20546. client[kKeepAliveMaxTimeout]
  20547. )
  20548. if (timeout <= 0) {
  20549. socket[kReset] = true
  20550. } else {
  20551. client[kKeepAliveTimeoutValue] = timeout
  20552. }
  20553. } else {
  20554. client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout]
  20555. }
  20556. } else {
  20557. // Stop more requests from being dispatched.
  20558. socket[kReset] = true
  20559. }
  20560. let pause
  20561. try {
  20562. pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false
  20563. } catch (err) {
  20564. util.destroy(socket, err)
  20565. return -1
  20566. }
  20567. if (request.method === 'HEAD') {
  20568. return 1
  20569. }
  20570. if (statusCode < 200) {
  20571. return 1
  20572. }
  20573. if (socket[kBlocking]) {
  20574. socket[kBlocking] = false
  20575. resume(client)
  20576. }
  20577. return pause ? constants.ERROR.PAUSED : 0
  20578. }
  20579. onBody (buf) {
  20580. const { client, socket, statusCode, maxResponseSize } = this
  20581. if (socket.destroyed) {
  20582. return -1
  20583. }
  20584. const request = client[kQueue][client[kRunningIdx]]
  20585. assert(request)
  20586. assert.strictEqual(this.timeoutType, TIMEOUT_BODY)
  20587. if (this.timeout) {
  20588. // istanbul ignore else: only for jest
  20589. if (this.timeout.refresh) {
  20590. this.timeout.refresh()
  20591. }
  20592. }
  20593. assert(statusCode >= 200)
  20594. if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
  20595. util.destroy(socket, new ResponseExceededMaxSizeError())
  20596. return -1
  20597. }
  20598. this.bytesRead += buf.length
  20599. try {
  20600. if (request.onData(buf) === false) {
  20601. return constants.ERROR.PAUSED
  20602. }
  20603. } catch (err) {
  20604. util.destroy(socket, err)
  20605. return -1
  20606. }
  20607. }
  20608. onMessageComplete () {
  20609. const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this
  20610. if (socket.destroyed && (!statusCode || shouldKeepAlive)) {
  20611. return -1
  20612. }
  20613. if (upgrade) {
  20614. return
  20615. }
  20616. const request = client[kQueue][client[kRunningIdx]]
  20617. assert(request)
  20618. assert(statusCode >= 100)
  20619. this.statusCode = null
  20620. this.statusText = ''
  20621. this.bytesRead = 0
  20622. this.contentLength = ''
  20623. this.keepAlive = ''
  20624. this.connection = ''
  20625. assert(this.headers.length % 2 === 0)
  20626. this.headers = []
  20627. this.headersSize = 0
  20628. if (statusCode < 200) {
  20629. return
  20630. }
  20631. /* istanbul ignore next: should be handled by llhttp? */
  20632. if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) {
  20633. util.destroy(socket, new ResponseContentLengthMismatchError())
  20634. return -1
  20635. }
  20636. try {
  20637. request.onComplete(headers)
  20638. } catch (err) {
  20639. errorRequest(client, request, err)
  20640. }
  20641. client[kQueue][client[kRunningIdx]++] = null
  20642. if (socket[kWriting]) {
  20643. assert.strictEqual(client[kRunning], 0)
  20644. // Response completed before request.
  20645. util.destroy(socket, new InformationalError('reset'))
  20646. return constants.ERROR.PAUSED
  20647. } else if (!shouldKeepAlive) {
  20648. util.destroy(socket, new InformationalError('reset'))
  20649. return constants.ERROR.PAUSED
  20650. } else if (socket[kReset] && client[kRunning] === 0) {
  20651. // Destroy socket once all requests have completed.
  20652. // The request at the tail of the pipeline is the one
  20653. // that requested reset and no further requests should
  20654. // have been queued since then.
  20655. util.destroy(socket, new InformationalError('reset'))
  20656. return constants.ERROR.PAUSED
  20657. } else if (client[kPipelining] === 1) {
  20658. // We must wait a full event loop cycle to reuse this socket to make sure
  20659. // that non-spec compliant servers are not closing the connection even if they
  20660. // said they won't.
  20661. setImmediate(resume, client)
  20662. } else {
  20663. resume(client)
  20664. }
  20665. }
  20666. }
  20667. function onParserTimeout (parser) {
  20668. const { socket, timeoutType, client } = parser
  20669. /* istanbul ignore else */
  20670. if (timeoutType === TIMEOUT_HEADERS) {
  20671. if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
  20672. assert(!parser.paused, 'cannot be paused while waiting for headers')
  20673. util.destroy(socket, new HeadersTimeoutError())
  20674. }
  20675. } else if (timeoutType === TIMEOUT_BODY) {
  20676. if (!parser.paused) {
  20677. util.destroy(socket, new BodyTimeoutError())
  20678. }
  20679. } else if (timeoutType === TIMEOUT_IDLE) {
  20680. assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue])
  20681. util.destroy(socket, new InformationalError('socket idle timeout'))
  20682. }
  20683. }
  20684. function onSocketReadable () {
  20685. const { [kParser]: parser } = this
  20686. parser.readMore()
  20687. }
  20688. function onSocketError (err) {
  20689. const { [kClient]: client, [kParser]: parser } = this
  20690. assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
  20691. if (client[kHTTPConnVersion] !== 'h2') {
  20692. // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded
  20693. // to the user.
  20694. if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) {
  20695. // We treat all incoming data so for as a valid response.
  20696. parser.onMessageComplete()
  20697. return
  20698. }
  20699. }
  20700. this[kError] = err
  20701. onError(this[kClient], err)
  20702. }
  20703. function onError (client, err) {
  20704. if (
  20705. client[kRunning] === 0 &&
  20706. err.code !== 'UND_ERR_INFO' &&
  20707. err.code !== 'UND_ERR_SOCKET'
  20708. ) {
  20709. // Error is not caused by running request and not a recoverable
  20710. // socket error.
  20711. assert(client[kPendingIdx] === client[kRunningIdx])
  20712. const requests = client[kQueue].splice(client[kRunningIdx])
  20713. for (let i = 0; i < requests.length; i++) {
  20714. const request = requests[i]
  20715. errorRequest(client, request, err)
  20716. }
  20717. assert(client[kSize] === 0)
  20718. }
  20719. }
  20720. function onSocketEnd () {
  20721. const { [kParser]: parser, [kClient]: client } = this
  20722. if (client[kHTTPConnVersion] !== 'h2') {
  20723. if (parser.statusCode && !parser.shouldKeepAlive) {
  20724. // We treat all incoming data so far as a valid response.
  20725. parser.onMessageComplete()
  20726. return
  20727. }
  20728. }
  20729. util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))
  20730. }
  20731. function onSocketClose () {
  20732. const { [kClient]: client, [kParser]: parser } = this
  20733. if (client[kHTTPConnVersion] === 'h1' && parser) {
  20734. if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {
  20735. // We treat all incoming data so far as a valid response.
  20736. parser.onMessageComplete()
  20737. }
  20738. this[kParser].destroy()
  20739. this[kParser] = null
  20740. }
  20741. const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))
  20742. client[kSocket] = null
  20743. if (client.destroyed) {
  20744. assert(client[kPending] === 0)
  20745. // Fail entire queue.
  20746. const requests = client[kQueue].splice(client[kRunningIdx])
  20747. for (let i = 0; i < requests.length; i++) {
  20748. const request = requests[i]
  20749. errorRequest(client, request, err)
  20750. }
  20751. } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') {
  20752. // Fail head of pipeline.
  20753. const request = client[kQueue][client[kRunningIdx]]
  20754. client[kQueue][client[kRunningIdx]++] = null
  20755. errorRequest(client, request, err)
  20756. }
  20757. client[kPendingIdx] = client[kRunningIdx]
  20758. assert(client[kRunning] === 0)
  20759. client.emit('disconnect', client[kUrl], [client], err)
  20760. resume(client)
  20761. }
  20762. async function connect (client) {
  20763. assert(!client[kConnecting])
  20764. assert(!client[kSocket])
  20765. let { host, hostname, protocol, port } = client[kUrl]
  20766. // Resolve ipv6
  20767. if (hostname[0] === '[') {
  20768. const idx = hostname.indexOf(']')
  20769. assert(idx !== -1)
  20770. const ip = hostname.substr(1, idx - 1)
  20771. assert(net.isIP(ip))
  20772. hostname = ip
  20773. }
  20774. client[kConnecting] = true
  20775. if (channels.beforeConnect.hasSubscribers) {
  20776. channels.beforeConnect.publish({
  20777. connectParams: {
  20778. host,
  20779. hostname,
  20780. protocol,
  20781. port,
  20782. servername: client[kServerName],
  20783. localAddress: client[kLocalAddress]
  20784. },
  20785. connector: client[kConnector]
  20786. })
  20787. }
  20788. try {
  20789. const socket = await new Promise((resolve, reject) => {
  20790. client[kConnector]({
  20791. host,
  20792. hostname,
  20793. protocol,
  20794. port,
  20795. servername: client[kServerName],
  20796. localAddress: client[kLocalAddress]
  20797. }, (err, socket) => {
  20798. if (err) {
  20799. reject(err)
  20800. } else {
  20801. resolve(socket)
  20802. }
  20803. })
  20804. })
  20805. if (client.destroyed) {
  20806. util.destroy(socket.on('error', () => {}), new ClientDestroyedError())
  20807. return
  20808. }
  20809. client[kConnecting] = false
  20810. assert(socket)
  20811. const isH2 = socket.alpnProtocol === 'h2'
  20812. if (isH2) {
  20813. if (!h2ExperimentalWarned) {
  20814. h2ExperimentalWarned = true
  20815. process.emitWarning('H2 support is experimental, expect them to change at any time.', {
  20816. code: 'UNDICI-H2'
  20817. })
  20818. }
  20819. const session = http2.connect(client[kUrl], {
  20820. createConnection: () => socket,
  20821. peerMaxConcurrentStreams: client[kHTTP2SessionState].maxConcurrentStreams
  20822. })
  20823. client[kHTTPConnVersion] = 'h2'
  20824. session[kClient] = client
  20825. session[kSocket] = socket
  20826. session.on('error', onHttp2SessionError)
  20827. session.on('frameError', onHttp2FrameError)
  20828. session.on('end', onHttp2SessionEnd)
  20829. session.on('goaway', onHTTP2GoAway)
  20830. session.on('close', onSocketClose)
  20831. session.unref()
  20832. client[kHTTP2Session] = session
  20833. socket[kHTTP2Session] = session
  20834. } else {
  20835. if (!llhttpInstance) {
  20836. llhttpInstance = await llhttpPromise
  20837. llhttpPromise = null
  20838. }
  20839. socket[kNoRef] = false
  20840. socket[kWriting] = false
  20841. socket[kReset] = false
  20842. socket[kBlocking] = false
  20843. socket[kParser] = new Parser(client, socket, llhttpInstance)
  20844. }
  20845. socket[kCounter] = 0
  20846. socket[kMaxRequests] = client[kMaxRequests]
  20847. socket[kClient] = client
  20848. socket[kError] = null
  20849. socket
  20850. .on('error', onSocketError)
  20851. .on('readable', onSocketReadable)
  20852. .on('end', onSocketEnd)
  20853. .on('close', onSocketClose)
  20854. client[kSocket] = socket
  20855. if (channels.connected.hasSubscribers) {
  20856. channels.connected.publish({
  20857. connectParams: {
  20858. host,
  20859. hostname,
  20860. protocol,
  20861. port,
  20862. servername: client[kServerName],
  20863. localAddress: client[kLocalAddress]
  20864. },
  20865. connector: client[kConnector],
  20866. socket
  20867. })
  20868. }
  20869. client.emit('connect', client[kUrl], [client])
  20870. } catch (err) {
  20871. if (client.destroyed) {
  20872. return
  20873. }
  20874. client[kConnecting] = false
  20875. if (channels.connectError.hasSubscribers) {
  20876. channels.connectError.publish({
  20877. connectParams: {
  20878. host,
  20879. hostname,
  20880. protocol,
  20881. port,
  20882. servername: client[kServerName],
  20883. localAddress: client[kLocalAddress]
  20884. },
  20885. connector: client[kConnector],
  20886. error: err
  20887. })
  20888. }
  20889. if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {
  20890. assert(client[kRunning] === 0)
  20891. while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {
  20892. const request = client[kQueue][client[kPendingIdx]++]
  20893. errorRequest(client, request, err)
  20894. }
  20895. } else {
  20896. onError(client, err)
  20897. }
  20898. client.emit('connectionError', client[kUrl], [client], err)
  20899. }
  20900. resume(client)
  20901. }
  20902. function emitDrain (client) {
  20903. client[kNeedDrain] = 0
  20904. client.emit('drain', client[kUrl], [client])
  20905. }
  20906. function resume (client, sync) {
  20907. if (client[kResuming] === 2) {
  20908. return
  20909. }
  20910. client[kResuming] = 2
  20911. _resume(client, sync)
  20912. client[kResuming] = 0
  20913. if (client[kRunningIdx] > 256) {
  20914. client[kQueue].splice(0, client[kRunningIdx])
  20915. client[kPendingIdx] -= client[kRunningIdx]
  20916. client[kRunningIdx] = 0
  20917. }
  20918. }
  20919. function _resume (client, sync) {
  20920. while (true) {
  20921. if (client.destroyed) {
  20922. assert(client[kPending] === 0)
  20923. return
  20924. }
  20925. if (client[kClosedResolve] && !client[kSize]) {
  20926. client[kClosedResolve]()
  20927. client[kClosedResolve] = null
  20928. return
  20929. }
  20930. const socket = client[kSocket]
  20931. if (socket && !socket.destroyed && socket.alpnProtocol !== 'h2') {
  20932. if (client[kSize] === 0) {
  20933. if (!socket[kNoRef] && socket.unref) {
  20934. socket.unref()
  20935. socket[kNoRef] = true
  20936. }
  20937. } else if (socket[kNoRef] && socket.ref) {
  20938. socket.ref()
  20939. socket[kNoRef] = false
  20940. }
  20941. if (client[kSize] === 0) {
  20942. if (socket[kParser].timeoutType !== TIMEOUT_IDLE) {
  20943. socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_IDLE)
  20944. }
  20945. } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {
  20946. if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {
  20947. const request = client[kQueue][client[kRunningIdx]]
  20948. const headersTimeout = request.headersTimeout != null
  20949. ? request.headersTimeout
  20950. : client[kHeadersTimeout]
  20951. socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS)
  20952. }
  20953. }
  20954. }
  20955. if (client[kBusy]) {
  20956. client[kNeedDrain] = 2
  20957. } else if (client[kNeedDrain] === 2) {
  20958. if (sync) {
  20959. client[kNeedDrain] = 1
  20960. process.nextTick(emitDrain, client)
  20961. } else {
  20962. emitDrain(client)
  20963. }
  20964. continue
  20965. }
  20966. if (client[kPending] === 0) {
  20967. return
  20968. }
  20969. if (client[kRunning] >= (client[kPipelining] || 1)) {
  20970. return
  20971. }
  20972. const request = client[kQueue][client[kPendingIdx]]
  20973. if (client[kUrl].protocol === 'https:' && client[kServerName] !== request.servername) {
  20974. if (client[kRunning] > 0) {
  20975. return
  20976. }
  20977. client[kServerName] = request.servername
  20978. if (socket && socket.servername !== request.servername) {
  20979. util.destroy(socket, new InformationalError('servername changed'))
  20980. return
  20981. }
  20982. }
  20983. if (client[kConnecting]) {
  20984. return
  20985. }
  20986. if (!socket && !client[kHTTP2Session]) {
  20987. connect(client)
  20988. return
  20989. }
  20990. if (socket.destroyed || socket[kWriting] || socket[kReset] || socket[kBlocking]) {
  20991. return
  20992. }
  20993. if (client[kRunning] > 0 && !request.idempotent) {
  20994. // Non-idempotent request cannot be retried.
  20995. // Ensure that no other requests are inflight and
  20996. // could cause failure.
  20997. return
  20998. }
  20999. if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) {
  21000. // Don't dispatch an upgrade until all preceding requests have completed.
  21001. // A misbehaving server might upgrade the connection before all pipelined
  21002. // request has completed.
  21003. return
  21004. }
  21005. if (util.isStream(request.body) && util.bodyLength(request.body) === 0) {
  21006. request.body
  21007. .on('data', /* istanbul ignore next */ function () {
  21008. /* istanbul ignore next */
  21009. assert(false)
  21010. })
  21011. .on('error', function (err) {
  21012. errorRequest(client, request, err)
  21013. })
  21014. .on('end', function () {
  21015. util.destroy(this)
  21016. })
  21017. request.body = null
  21018. }
  21019. if (client[kRunning] > 0 &&
  21020. (util.isStream(request.body) || util.isAsyncIterable(request.body))) {
  21021. // Request with stream or iterator body can error while other requests
  21022. // are inflight and indirectly error those as well.
  21023. // Ensure this doesn't happen by waiting for inflight
  21024. // to complete before dispatching.
  21025. // Request with stream or iterator body cannot be retried.
  21026. // Ensure that no other requests are inflight and
  21027. // could cause failure.
  21028. return
  21029. }
  21030. if (!request.aborted && write(client, request)) {
  21031. client[kPendingIdx]++
  21032. } else {
  21033. client[kQueue].splice(client[kPendingIdx], 1)
  21034. }
  21035. }
  21036. }
  21037. function write (client, request) {
  21038. if (client[kHTTPConnVersion] === 'h2') {
  21039. writeH2(client, client[kHTTP2Session], request)
  21040. return
  21041. }
  21042. const { body, method, path, host, upgrade, headers, blocking, reset } = request
  21043. // https://tools.ietf.org/html/rfc7231#section-4.3.1
  21044. // https://tools.ietf.org/html/rfc7231#section-4.3.2
  21045. // https://tools.ietf.org/html/rfc7231#section-4.3.5
  21046. // Sending a payload body on a request that does not
  21047. // expect it can cause undefined behavior on some
  21048. // servers and corrupt connection state. Do not
  21049. // re-use the connection for further requests.
  21050. const expectsPayload = (
  21051. method === 'PUT' ||
  21052. method === 'POST' ||
  21053. method === 'PATCH'
  21054. )
  21055. if (body && typeof body.read === 'function') {
  21056. // Try to read EOF in order to get length.
  21057. body.read(0)
  21058. }
  21059. let contentLength = util.bodyLength(body)
  21060. if (contentLength === null) {
  21061. contentLength = request.contentLength
  21062. }
  21063. if (contentLength === 0 && !expectsPayload) {
  21064. // https://tools.ietf.org/html/rfc7230#section-3.3.2
  21065. // A user agent SHOULD NOT send a Content-Length header field when
  21066. // the request message does not contain a payload body and the method
  21067. // semantics do not anticipate such a body.
  21068. contentLength = null
  21069. }
  21070. if (request.contentLength !== null && request.contentLength !== contentLength) {
  21071. if (client[kStrictContentLength]) {
  21072. errorRequest(client, request, new RequestContentLengthMismatchError())
  21073. return false
  21074. }
  21075. process.emitWarning(new RequestContentLengthMismatchError())
  21076. }
  21077. const socket = client[kSocket]
  21078. try {
  21079. request.onConnect((err) => {
  21080. if (request.aborted || request.completed) {
  21081. return
  21082. }
  21083. errorRequest(client, request, err || new RequestAbortedError())
  21084. util.destroy(socket, new InformationalError('aborted'))
  21085. })
  21086. } catch (err) {
  21087. errorRequest(client, request, err)
  21088. }
  21089. if (request.aborted) {
  21090. return false
  21091. }
  21092. if (method === 'HEAD') {
  21093. // https://github.com/mcollina/undici/issues/258
  21094. // Close after a HEAD request to interop with misbehaving servers
  21095. // that may send a body in the response.
  21096. socket[kReset] = true
  21097. }
  21098. if (upgrade || method === 'CONNECT') {
  21099. // On CONNECT or upgrade, block pipeline from dispatching further
  21100. // requests on this connection.
  21101. socket[kReset] = true
  21102. }
  21103. if (reset != null) {
  21104. socket[kReset] = reset
  21105. }
  21106. if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {
  21107. socket[kReset] = true
  21108. }
  21109. if (blocking) {
  21110. socket[kBlocking] = true
  21111. }
  21112. let header = `${method} ${path} HTTP/1.1\r\n`
  21113. if (typeof host === 'string') {
  21114. header += `host: ${host}\r\n`
  21115. } else {
  21116. header += client[kHostHeader]
  21117. }
  21118. if (upgrade) {
  21119. header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n`
  21120. } else if (client[kPipelining] && !socket[kReset]) {
  21121. header += 'connection: keep-alive\r\n'
  21122. } else {
  21123. header += 'connection: close\r\n'
  21124. }
  21125. if (headers) {
  21126. header += headers
  21127. }
  21128. if (channels.sendHeaders.hasSubscribers) {
  21129. channels.sendHeaders.publish({ request, headers: header, socket })
  21130. }
  21131. /* istanbul ignore else: assertion */
  21132. if (!body) {
  21133. if (contentLength === 0) {
  21134. socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1')
  21135. } else {
  21136. assert(contentLength === null, 'no body must not have content length')
  21137. socket.write(`${header}\r\n`, 'latin1')
  21138. }
  21139. request.onRequestSent()
  21140. } else if (util.isBuffer(body)) {
  21141. assert(contentLength === body.byteLength, 'buffer body must have content length')
  21142. socket.cork()
  21143. socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
  21144. socket.write(body)
  21145. socket.uncork()
  21146. request.onBodySent(body)
  21147. request.onRequestSent()
  21148. if (!expectsPayload) {
  21149. socket[kReset] = true
  21150. }
  21151. } else if (util.isBlobLike(body)) {
  21152. if (typeof body.stream === 'function') {
  21153. writeIterable({ body: body.stream(), client, request, socket, contentLength, header, expectsPayload })
  21154. } else {
  21155. writeBlob({ body, client, request, socket, contentLength, header, expectsPayload })
  21156. }
  21157. } else if (util.isStream(body)) {
  21158. writeStream({ body, client, request, socket, contentLength, header, expectsPayload })
  21159. } else if (util.isIterable(body)) {
  21160. writeIterable({ body, client, request, socket, contentLength, header, expectsPayload })
  21161. } else {
  21162. assert(false)
  21163. }
  21164. return true
  21165. }
  21166. function writeH2 (client, session, request) {
  21167. const { body, method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request
  21168. let headers
  21169. if (typeof reqHeaders === 'string') headers = Request[kHTTP2CopyHeaders](reqHeaders.trim())
  21170. else headers = reqHeaders
  21171. if (upgrade) {
  21172. errorRequest(client, request, new Error('Upgrade not supported for H2'))
  21173. return false
  21174. }
  21175. try {
  21176. // TODO(HTTP/2): Should we call onConnect immediately or on stream ready event?
  21177. request.onConnect((err) => {
  21178. if (request.aborted || request.completed) {
  21179. return
  21180. }
  21181. errorRequest(client, request, err || new RequestAbortedError())
  21182. })
  21183. } catch (err) {
  21184. errorRequest(client, request, err)
  21185. }
  21186. if (request.aborted) {
  21187. return false
  21188. }
  21189. let stream
  21190. const h2State = client[kHTTP2SessionState]
  21191. headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]
  21192. headers[HTTP2_HEADER_PATH] = path
  21193. if (method === 'CONNECT') {
  21194. session.ref()
  21195. // we are already connected, streams are pending, first request
  21196. // will create a new stream. We trigger a request to create the stream and wait until
  21197. // `ready` event is triggered
  21198. // We disabled endStream to allow the user to write to the stream
  21199. stream = session.request(headers, { endStream: false, signal })
  21200. if (stream.id && !stream.pending) {
  21201. request.onUpgrade(null, null, stream)
  21202. ++h2State.openStreams
  21203. } else {
  21204. stream.once('ready', () => {
  21205. request.onUpgrade(null, null, stream)
  21206. ++h2State.openStreams
  21207. })
  21208. }
  21209. stream.once('close', () => {
  21210. h2State.openStreams -= 1
  21211. // TODO(HTTP/2): unref only if current streams count is 0
  21212. if (h2State.openStreams === 0) session.unref()
  21213. })
  21214. return true
  21215. } else {
  21216. headers[HTTP2_HEADER_METHOD] = method
  21217. }
  21218. // https://tools.ietf.org/html/rfc7231#section-4.3.1
  21219. // https://tools.ietf.org/html/rfc7231#section-4.3.2
  21220. // https://tools.ietf.org/html/rfc7231#section-4.3.5
  21221. // Sending a payload body on a request that does not
  21222. // expect it can cause undefined behavior on some
  21223. // servers and corrupt connection state. Do not
  21224. // re-use the connection for further requests.
  21225. const expectsPayload = (
  21226. method === 'PUT' ||
  21227. method === 'POST' ||
  21228. method === 'PATCH'
  21229. )
  21230. if (body && typeof body.read === 'function') {
  21231. // Try to read EOF in order to get length.
  21232. body.read(0)
  21233. }
  21234. let contentLength = util.bodyLength(body)
  21235. if (contentLength == null) {
  21236. contentLength = request.contentLength
  21237. }
  21238. if (contentLength === 0 || !expectsPayload) {
  21239. // https://tools.ietf.org/html/rfc7230#section-3.3.2
  21240. // A user agent SHOULD NOT send a Content-Length header field when
  21241. // the request message does not contain a payload body and the method
  21242. // semantics do not anticipate such a body.
  21243. contentLength = null
  21244. }
  21245. if (request.contentLength != null && request.contentLength !== contentLength) {
  21246. if (client[kStrictContentLength]) {
  21247. errorRequest(client, request, new RequestContentLengthMismatchError())
  21248. return false
  21249. }
  21250. process.emitWarning(new RequestContentLengthMismatchError())
  21251. }
  21252. if (contentLength != null) {
  21253. assert(body, 'no body must not have content length')
  21254. headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`
  21255. }
  21256. session.ref()
  21257. const shouldEndStream = method === 'GET' || method === 'HEAD'
  21258. if (expectContinue) {
  21259. headers[HTTP2_HEADER_EXPECT] = '100-continue'
  21260. /**
  21261. * @type {import('node:http2').ClientHttp2Stream}
  21262. */
  21263. stream = session.request(headers, { endStream: shouldEndStream, signal })
  21264. stream.once('continue', writeBodyH2)
  21265. } else {
  21266. /** @type {import('node:http2').ClientHttp2Stream} */
  21267. stream = session.request(headers, {
  21268. endStream: shouldEndStream,
  21269. signal
  21270. })
  21271. writeBodyH2()
  21272. }
  21273. // Increment counter as we have new several streams open
  21274. ++h2State.openStreams
  21275. stream.once('response', headers => {
  21276. if (request.onHeaders(Number(headers[HTTP2_HEADER_STATUS]), headers, stream.resume.bind(stream), '') === false) {
  21277. stream.pause()
  21278. }
  21279. })
  21280. stream.once('end', () => {
  21281. request.onComplete([])
  21282. })
  21283. stream.on('data', (chunk) => {
  21284. if (request.onData(chunk) === false) stream.pause()
  21285. })
  21286. stream.once('close', () => {
  21287. h2State.openStreams -= 1
  21288. // TODO(HTTP/2): unref only if current streams count is 0
  21289. if (h2State.openStreams === 0) session.unref()
  21290. })
  21291. stream.once('error', function (err) {
  21292. if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
  21293. h2State.streams -= 1
  21294. util.destroy(stream, err)
  21295. }
  21296. })
  21297. stream.once('frameError', (type, code) => {
  21298. const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`)
  21299. errorRequest(client, request, err)
  21300. if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
  21301. h2State.streams -= 1
  21302. util.destroy(stream, err)
  21303. }
  21304. })
  21305. // stream.on('aborted', () => {
  21306. // // TODO(HTTP/2): Support aborted
  21307. // })
  21308. // stream.on('timeout', () => {
  21309. // // TODO(HTTP/2): Support timeout
  21310. // })
  21311. // stream.on('push', headers => {
  21312. // // TODO(HTTP/2): Suppor push
  21313. // })
  21314. // stream.on('trailers', headers => {
  21315. // // TODO(HTTP/2): Support trailers
  21316. // })
  21317. return true
  21318. function writeBodyH2 () {
  21319. /* istanbul ignore else: assertion */
  21320. if (!body) {
  21321. request.onRequestSent()
  21322. } else if (util.isBuffer(body)) {
  21323. assert(contentLength === body.byteLength, 'buffer body must have content length')
  21324. stream.cork()
  21325. stream.write(body)
  21326. stream.uncork()
  21327. request.onBodySent(body)
  21328. request.onRequestSent()
  21329. } else if (util.isBlobLike(body)) {
  21330. if (typeof body.stream === 'function') {
  21331. writeIterable({
  21332. client,
  21333. request,
  21334. contentLength,
  21335. h2stream: stream,
  21336. expectsPayload,
  21337. body: body.stream(),
  21338. socket: client[kSocket],
  21339. header: ''
  21340. })
  21341. } else {
  21342. writeBlob({
  21343. body,
  21344. client,
  21345. request,
  21346. contentLength,
  21347. expectsPayload,
  21348. h2stream: stream,
  21349. header: '',
  21350. socket: client[kSocket]
  21351. })
  21352. }
  21353. } else if (util.isStream(body)) {
  21354. writeStream({
  21355. body,
  21356. client,
  21357. request,
  21358. contentLength,
  21359. expectsPayload,
  21360. socket: client[kSocket],
  21361. h2stream: stream,
  21362. header: ''
  21363. })
  21364. } else if (util.isIterable(body)) {
  21365. writeIterable({
  21366. body,
  21367. client,
  21368. request,
  21369. contentLength,
  21370. expectsPayload,
  21371. header: '',
  21372. h2stream: stream,
  21373. socket: client[kSocket]
  21374. })
  21375. } else {
  21376. assert(false)
  21377. }
  21378. }
  21379. }
  21380. function writeStream ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
  21381. assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')
  21382. if (client[kHTTPConnVersion] === 'h2') {
  21383. // For HTTP/2, is enough to pipe the stream
  21384. const pipe = pipeline(
  21385. body,
  21386. h2stream,
  21387. (err) => {
  21388. if (err) {
  21389. util.destroy(body, err)
  21390. util.destroy(h2stream, err)
  21391. } else {
  21392. request.onRequestSent()
  21393. }
  21394. }
  21395. )
  21396. pipe.on('data', onPipeData)
  21397. pipe.once('end', () => {
  21398. pipe.removeListener('data', onPipeData)
  21399. util.destroy(pipe)
  21400. })
  21401. function onPipeData (chunk) {
  21402. request.onBodySent(chunk)
  21403. }
  21404. return
  21405. }
  21406. let finished = false
  21407. const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })
  21408. const onData = function (chunk) {
  21409. if (finished) {
  21410. return
  21411. }
  21412. try {
  21413. if (!writer.write(chunk) && this.pause) {
  21414. this.pause()
  21415. }
  21416. } catch (err) {
  21417. util.destroy(this, err)
  21418. }
  21419. }
  21420. const onDrain = function () {
  21421. if (finished) {
  21422. return
  21423. }
  21424. if (body.resume) {
  21425. body.resume()
  21426. }
  21427. }
  21428. const onAbort = function () {
  21429. onFinished(new RequestAbortedError())
  21430. }
  21431. const onFinished = function (err) {
  21432. if (finished) {
  21433. return
  21434. }
  21435. finished = true
  21436. assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1))
  21437. socket
  21438. .off('drain', onDrain)
  21439. .off('error', onFinished)
  21440. body
  21441. .removeListener('data', onData)
  21442. .removeListener('end', onFinished)
  21443. .removeListener('error', onFinished)
  21444. .removeListener('close', onAbort)
  21445. if (!err) {
  21446. try {
  21447. writer.end()
  21448. } catch (er) {
  21449. err = er
  21450. }
  21451. }
  21452. writer.destroy(err)
  21453. if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) {
  21454. util.destroy(body, err)
  21455. } else {
  21456. util.destroy(body)
  21457. }
  21458. }
  21459. body
  21460. .on('data', onData)
  21461. .on('end', onFinished)
  21462. .on('error', onFinished)
  21463. .on('close', onAbort)
  21464. if (body.resume) {
  21465. body.resume()
  21466. }
  21467. socket
  21468. .on('drain', onDrain)
  21469. .on('error', onFinished)
  21470. }
  21471. async function writeBlob ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
  21472. assert(contentLength === body.size, 'blob body must have content length')
  21473. const isH2 = client[kHTTPConnVersion] === 'h2'
  21474. try {
  21475. if (contentLength != null && contentLength !== body.size) {
  21476. throw new RequestContentLengthMismatchError()
  21477. }
  21478. const buffer = Buffer.from(await body.arrayBuffer())
  21479. if (isH2) {
  21480. h2stream.cork()
  21481. h2stream.write(buffer)
  21482. h2stream.uncork()
  21483. } else {
  21484. socket.cork()
  21485. socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
  21486. socket.write(buffer)
  21487. socket.uncork()
  21488. }
  21489. request.onBodySent(buffer)
  21490. request.onRequestSent()
  21491. if (!expectsPayload) {
  21492. socket[kReset] = true
  21493. }
  21494. resume(client)
  21495. } catch (err) {
  21496. util.destroy(isH2 ? h2stream : socket, err)
  21497. }
  21498. }
  21499. async function writeIterable ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
  21500. assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')
  21501. let callback = null
  21502. function onDrain () {
  21503. if (callback) {
  21504. const cb = callback
  21505. callback = null
  21506. cb()
  21507. }
  21508. }
  21509. const waitForDrain = () => new Promise((resolve, reject) => {
  21510. assert(callback === null)
  21511. if (socket[kError]) {
  21512. reject(socket[kError])
  21513. } else {
  21514. callback = resolve
  21515. }
  21516. })
  21517. if (client[kHTTPConnVersion] === 'h2') {
  21518. h2stream
  21519. .on('close', onDrain)
  21520. .on('drain', onDrain)
  21521. try {
  21522. // It's up to the user to somehow abort the async iterable.
  21523. for await (const chunk of body) {
  21524. if (socket[kError]) {
  21525. throw socket[kError]
  21526. }
  21527. if (!h2stream.write(chunk)) {
  21528. await waitForDrain()
  21529. }
  21530. }
  21531. } catch (err) {
  21532. h2stream.destroy(err)
  21533. } finally {
  21534. h2stream
  21535. .off('close', onDrain)
  21536. .off('drain', onDrain)
  21537. }
  21538. return
  21539. }
  21540. socket
  21541. .on('close', onDrain)
  21542. .on('drain', onDrain)
  21543. const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })
  21544. try {
  21545. // It's up to the user to somehow abort the async iterable.
  21546. for await (const chunk of body) {
  21547. if (socket[kError]) {
  21548. throw socket[kError]
  21549. }
  21550. if (!writer.write(chunk)) {
  21551. await waitForDrain()
  21552. }
  21553. }
  21554. writer.end()
  21555. } catch (err) {
  21556. writer.destroy(err)
  21557. } finally {
  21558. socket
  21559. .off('close', onDrain)
  21560. .off('drain', onDrain)
  21561. }
  21562. }
  21563. class AsyncWriter {
  21564. constructor ({ socket, request, contentLength, client, expectsPayload, header }) {
  21565. this.socket = socket
  21566. this.request = request
  21567. this.contentLength = contentLength
  21568. this.client = client
  21569. this.bytesWritten = 0
  21570. this.expectsPayload = expectsPayload
  21571. this.header = header
  21572. socket[kWriting] = true
  21573. }
  21574. write (chunk) {
  21575. const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this
  21576. if (socket[kError]) {
  21577. throw socket[kError]
  21578. }
  21579. if (socket.destroyed) {
  21580. return false
  21581. }
  21582. const len = Buffer.byteLength(chunk)
  21583. if (!len) {
  21584. return true
  21585. }
  21586. // We should defer writing chunks.
  21587. if (contentLength !== null && bytesWritten + len > contentLength) {
  21588. if (client[kStrictContentLength]) {
  21589. throw new RequestContentLengthMismatchError()
  21590. }
  21591. process.emitWarning(new RequestContentLengthMismatchError())
  21592. }
  21593. socket.cork()
  21594. if (bytesWritten === 0) {
  21595. if (!expectsPayload) {
  21596. socket[kReset] = true
  21597. }
  21598. if (contentLength === null) {
  21599. socket.write(`${header}transfer-encoding: chunked\r\n`, 'latin1')
  21600. } else {
  21601. socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
  21602. }
  21603. }
  21604. if (contentLength === null) {
  21605. socket.write(`\r\n${len.toString(16)}\r\n`, 'latin1')
  21606. }
  21607. this.bytesWritten += len
  21608. const ret = socket.write(chunk)
  21609. socket.uncork()
  21610. request.onBodySent(chunk)
  21611. if (!ret) {
  21612. if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
  21613. // istanbul ignore else: only for jest
  21614. if (socket[kParser].timeout.refresh) {
  21615. socket[kParser].timeout.refresh()
  21616. }
  21617. }
  21618. }
  21619. return ret
  21620. }
  21621. end () {
  21622. const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this
  21623. request.onRequestSent()
  21624. socket[kWriting] = false
  21625. if (socket[kError]) {
  21626. throw socket[kError]
  21627. }
  21628. if (socket.destroyed) {
  21629. return
  21630. }
  21631. if (bytesWritten === 0) {
  21632. if (expectsPayload) {
  21633. // https://tools.ietf.org/html/rfc7230#section-3.3.2
  21634. // A user agent SHOULD send a Content-Length in a request message when
  21635. // no Transfer-Encoding is sent and the request method defines a meaning
  21636. // for an enclosed payload body.
  21637. socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1')
  21638. } else {
  21639. socket.write(`${header}\r\n`, 'latin1')
  21640. }
  21641. } else if (contentLength === null) {
  21642. socket.write('\r\n0\r\n\r\n', 'latin1')
  21643. }
  21644. if (contentLength !== null && bytesWritten !== contentLength) {
  21645. if (client[kStrictContentLength]) {
  21646. throw new RequestContentLengthMismatchError()
  21647. } else {
  21648. process.emitWarning(new RequestContentLengthMismatchError())
  21649. }
  21650. }
  21651. if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
  21652. // istanbul ignore else: only for jest
  21653. if (socket[kParser].timeout.refresh) {
  21654. socket[kParser].timeout.refresh()
  21655. }
  21656. }
  21657. resume(client)
  21658. }
  21659. destroy (err) {
  21660. const { socket, client } = this
  21661. socket[kWriting] = false
  21662. if (err) {
  21663. assert(client[kRunning] <= 1, 'pipeline should only contain this request')
  21664. util.destroy(socket, err)
  21665. }
  21666. }
  21667. }
  21668. function errorRequest (client, request, err) {
  21669. try {
  21670. request.onError(err)
  21671. assert(request.aborted)
  21672. } catch (err) {
  21673. client.emit('error', err)
  21674. }
  21675. }
  21676. module.exports = Client
  21677. /***/ }),
  21678. /***/ 6436:
  21679. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  21680. "use strict";
  21681. /* istanbul ignore file: only for Node 12 */
  21682. const { kConnected, kSize } = __nccwpck_require__(2785)
  21683. class CompatWeakRef {
  21684. constructor (value) {
  21685. this.value = value
  21686. }
  21687. deref () {
  21688. return this.value[kConnected] === 0 && this.value[kSize] === 0
  21689. ? undefined
  21690. : this.value
  21691. }
  21692. }
  21693. class CompatFinalizer {
  21694. constructor (finalizer) {
  21695. this.finalizer = finalizer
  21696. }
  21697. register (dispatcher, key) {
  21698. dispatcher.on('disconnect', () => {
  21699. if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {
  21700. this.finalizer(key)
  21701. }
  21702. })
  21703. }
  21704. }
  21705. module.exports = function () {
  21706. // FIXME: remove workaround when the Node bug is fixed
  21707. // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308
  21708. if (process.env.NODE_V8_COVERAGE) {
  21709. return {
  21710. WeakRef: CompatWeakRef,
  21711. FinalizationRegistry: CompatFinalizer
  21712. }
  21713. }
  21714. return {
  21715. WeakRef: global.WeakRef || CompatWeakRef,
  21716. FinalizationRegistry: global.FinalizationRegistry || CompatFinalizer
  21717. }
  21718. }
  21719. /***/ }),
  21720. /***/ 663:
  21721. /***/ ((module) => {
  21722. "use strict";
  21723. // https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size
  21724. const maxAttributeValueSize = 1024
  21725. // https://wicg.github.io/cookie-store/#cookie-maximum-name-value-pair-size
  21726. const maxNameValuePairSize = 4096
  21727. module.exports = {
  21728. maxAttributeValueSize,
  21729. maxNameValuePairSize
  21730. }
  21731. /***/ }),
  21732. /***/ 1724:
  21733. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  21734. "use strict";
  21735. const { parseSetCookie } = __nccwpck_require__(4408)
  21736. const { stringify, getHeadersList } = __nccwpck_require__(3121)
  21737. const { webidl } = __nccwpck_require__(1744)
  21738. const { Headers } = __nccwpck_require__(554)
  21739. /**
  21740. * @typedef {Object} Cookie
  21741. * @property {string} name
  21742. * @property {string} value
  21743. * @property {Date|number|undefined} expires
  21744. * @property {number|undefined} maxAge
  21745. * @property {string|undefined} domain
  21746. * @property {string|undefined} path
  21747. * @property {boolean|undefined} secure
  21748. * @property {boolean|undefined} httpOnly
  21749. * @property {'Strict'|'Lax'|'None'} sameSite
  21750. * @property {string[]} unparsed
  21751. */
  21752. /**
  21753. * @param {Headers} headers
  21754. * @returns {Record<string, string>}
  21755. */
  21756. function getCookies (headers) {
  21757. webidl.argumentLengthCheck(arguments, 1, { header: 'getCookies' })
  21758. webidl.brandCheck(headers, Headers, { strict: false })
  21759. const cookie = headers.get('cookie')
  21760. const out = {}
  21761. if (!cookie) {
  21762. return out
  21763. }
  21764. for (const piece of cookie.split(';')) {
  21765. const [name, ...value] = piece.split('=')
  21766. out[name.trim()] = value.join('=')
  21767. }
  21768. return out
  21769. }
  21770. /**
  21771. * @param {Headers} headers
  21772. * @param {string} name
  21773. * @param {{ path?: string, domain?: string }|undefined} attributes
  21774. * @returns {void}
  21775. */
  21776. function deleteCookie (headers, name, attributes) {
  21777. webidl.argumentLengthCheck(arguments, 2, { header: 'deleteCookie' })
  21778. webidl.brandCheck(headers, Headers, { strict: false })
  21779. name = webidl.converters.DOMString(name)
  21780. attributes = webidl.converters.DeleteCookieAttributes(attributes)
  21781. // Matches behavior of
  21782. // https://github.com/denoland/deno_std/blob/63827b16330b82489a04614027c33b7904e08be5/http/cookie.ts#L278
  21783. setCookie(headers, {
  21784. name,
  21785. value: '',
  21786. expires: new Date(0),
  21787. ...attributes
  21788. })
  21789. }
  21790. /**
  21791. * @param {Headers} headers
  21792. * @returns {Cookie[]}
  21793. */
  21794. function getSetCookies (headers) {
  21795. webidl.argumentLengthCheck(arguments, 1, { header: 'getSetCookies' })
  21796. webidl.brandCheck(headers, Headers, { strict: false })
  21797. const cookies = getHeadersList(headers).cookies
  21798. if (!cookies) {
  21799. return []
  21800. }
  21801. // In older versions of undici, cookies is a list of name:value.
  21802. return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
  21803. }
  21804. /**
  21805. * @param {Headers} headers
  21806. * @param {Cookie} cookie
  21807. * @returns {void}
  21808. */
  21809. function setCookie (headers, cookie) {
  21810. webidl.argumentLengthCheck(arguments, 2, { header: 'setCookie' })
  21811. webidl.brandCheck(headers, Headers, { strict: false })
  21812. cookie = webidl.converters.Cookie(cookie)
  21813. const str = stringify(cookie)
  21814. if (str) {
  21815. headers.append('Set-Cookie', stringify(cookie))
  21816. }
  21817. }
  21818. webidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([
  21819. {
  21820. converter: webidl.nullableConverter(webidl.converters.DOMString),
  21821. key: 'path',
  21822. defaultValue: null
  21823. },
  21824. {
  21825. converter: webidl.nullableConverter(webidl.converters.DOMString),
  21826. key: 'domain',
  21827. defaultValue: null
  21828. }
  21829. ])
  21830. webidl.converters.Cookie = webidl.dictionaryConverter([
  21831. {
  21832. converter: webidl.converters.DOMString,
  21833. key: 'name'
  21834. },
  21835. {
  21836. converter: webidl.converters.DOMString,
  21837. key: 'value'
  21838. },
  21839. {
  21840. converter: webidl.nullableConverter((value) => {
  21841. if (typeof value === 'number') {
  21842. return webidl.converters['unsigned long long'](value)
  21843. }
  21844. return new Date(value)
  21845. }),
  21846. key: 'expires',
  21847. defaultValue: null
  21848. },
  21849. {
  21850. converter: webidl.nullableConverter(webidl.converters['long long']),
  21851. key: 'maxAge',
  21852. defaultValue: null
  21853. },
  21854. {
  21855. converter: webidl.nullableConverter(webidl.converters.DOMString),
  21856. key: 'domain',
  21857. defaultValue: null
  21858. },
  21859. {
  21860. converter: webidl.nullableConverter(webidl.converters.DOMString),
  21861. key: 'path',
  21862. defaultValue: null
  21863. },
  21864. {
  21865. converter: webidl.nullableConverter(webidl.converters.boolean),
  21866. key: 'secure',
  21867. defaultValue: null
  21868. },
  21869. {
  21870. converter: webidl.nullableConverter(webidl.converters.boolean),
  21871. key: 'httpOnly',
  21872. defaultValue: null
  21873. },
  21874. {
  21875. converter: webidl.converters.USVString,
  21876. key: 'sameSite',
  21877. allowedValues: ['Strict', 'Lax', 'None']
  21878. },
  21879. {
  21880. converter: webidl.sequenceConverter(webidl.converters.DOMString),
  21881. key: 'unparsed',
  21882. defaultValue: []
  21883. }
  21884. ])
  21885. module.exports = {
  21886. getCookies,
  21887. deleteCookie,
  21888. getSetCookies,
  21889. setCookie
  21890. }
  21891. /***/ }),
  21892. /***/ 4408:
  21893. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  21894. "use strict";
  21895. const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(663)
  21896. const { isCTLExcludingHtab } = __nccwpck_require__(3121)
  21897. const { collectASequenceOfCodePointsFast } = __nccwpck_require__(685)
  21898. const assert = __nccwpck_require__(9491)
  21899. /**
  21900. * @description Parses the field-value attributes of a set-cookie header string.
  21901. * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4
  21902. * @param {string} header
  21903. * @returns if the header is invalid, null will be returned
  21904. */
  21905. function parseSetCookie (header) {
  21906. // 1. If the set-cookie-string contains a %x00-08 / %x0A-1F / %x7F
  21907. // character (CTL characters excluding HTAB): Abort these steps and
  21908. // ignore the set-cookie-string entirely.
  21909. if (isCTLExcludingHtab(header)) {
  21910. return null
  21911. }
  21912. let nameValuePair = ''
  21913. let unparsedAttributes = ''
  21914. let name = ''
  21915. let value = ''
  21916. // 2. If the set-cookie-string contains a %x3B (";") character:
  21917. if (header.includes(';')) {
  21918. // 1. The name-value-pair string consists of the characters up to,
  21919. // but not including, the first %x3B (";"), and the unparsed-
  21920. // attributes consist of the remainder of the set-cookie-string
  21921. // (including the %x3B (";") in question).
  21922. const position = { position: 0 }
  21923. nameValuePair = collectASequenceOfCodePointsFast(';', header, position)
  21924. unparsedAttributes = header.slice(position.position)
  21925. } else {
  21926. // Otherwise:
  21927. // 1. The name-value-pair string consists of all the characters
  21928. // contained in the set-cookie-string, and the unparsed-
  21929. // attributes is the empty string.
  21930. nameValuePair = header
  21931. }
  21932. // 3. If the name-value-pair string lacks a %x3D ("=") character, then
  21933. // the name string is empty, and the value string is the value of
  21934. // name-value-pair.
  21935. if (!nameValuePair.includes('=')) {
  21936. value = nameValuePair
  21937. } else {
  21938. // Otherwise, the name string consists of the characters up to, but
  21939. // not including, the first %x3D ("=") character, and the (possibly
  21940. // empty) value string consists of the characters after the first
  21941. // %x3D ("=") character.
  21942. const position = { position: 0 }
  21943. name = collectASequenceOfCodePointsFast(
  21944. '=',
  21945. nameValuePair,
  21946. position
  21947. )
  21948. value = nameValuePair.slice(position.position + 1)
  21949. }
  21950. // 4. Remove any leading or trailing WSP characters from the name
  21951. // string and the value string.
  21952. name = name.trim()
  21953. value = value.trim()
  21954. // 5. If the sum of the lengths of the name string and the value string
  21955. // is more than 4096 octets, abort these steps and ignore the set-
  21956. // cookie-string entirely.
  21957. if (name.length + value.length > maxNameValuePairSize) {
  21958. return null
  21959. }
  21960. // 6. The cookie-name is the name string, and the cookie-value is the
  21961. // value string.
  21962. return {
  21963. name, value, ...parseUnparsedAttributes(unparsedAttributes)
  21964. }
  21965. }
  21966. /**
  21967. * Parses the remaining attributes of a set-cookie header
  21968. * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4
  21969. * @param {string} unparsedAttributes
  21970. * @param {[Object.<string, unknown>]={}} cookieAttributeList
  21971. */
  21972. function parseUnparsedAttributes (unparsedAttributes, cookieAttributeList = {}) {
  21973. // 1. If the unparsed-attributes string is empty, skip the rest of
  21974. // these steps.
  21975. if (unparsedAttributes.length === 0) {
  21976. return cookieAttributeList
  21977. }
  21978. // 2. Discard the first character of the unparsed-attributes (which
  21979. // will be a %x3B (";") character).
  21980. assert(unparsedAttributes[0] === ';')
  21981. unparsedAttributes = unparsedAttributes.slice(1)
  21982. let cookieAv = ''
  21983. // 3. If the remaining unparsed-attributes contains a %x3B (";")
  21984. // character:
  21985. if (unparsedAttributes.includes(';')) {
  21986. // 1. Consume the characters of the unparsed-attributes up to, but
  21987. // not including, the first %x3B (";") character.
  21988. cookieAv = collectASequenceOfCodePointsFast(
  21989. ';',
  21990. unparsedAttributes,
  21991. { position: 0 }
  21992. )
  21993. unparsedAttributes = unparsedAttributes.slice(cookieAv.length)
  21994. } else {
  21995. // Otherwise:
  21996. // 1. Consume the remainder of the unparsed-attributes.
  21997. cookieAv = unparsedAttributes
  21998. unparsedAttributes = ''
  21999. }
  22000. // Let the cookie-av string be the characters consumed in this step.
  22001. let attributeName = ''
  22002. let attributeValue = ''
  22003. // 4. If the cookie-av string contains a %x3D ("=") character:
  22004. if (cookieAv.includes('=')) {
  22005. // 1. The (possibly empty) attribute-name string consists of the
  22006. // characters up to, but not including, the first %x3D ("=")
  22007. // character, and the (possibly empty) attribute-value string
  22008. // consists of the characters after the first %x3D ("=")
  22009. // character.
  22010. const position = { position: 0 }
  22011. attributeName = collectASequenceOfCodePointsFast(
  22012. '=',
  22013. cookieAv,
  22014. position
  22015. )
  22016. attributeValue = cookieAv.slice(position.position + 1)
  22017. } else {
  22018. // Otherwise:
  22019. // 1. The attribute-name string consists of the entire cookie-av
  22020. // string, and the attribute-value string is empty.
  22021. attributeName = cookieAv
  22022. }
  22023. // 5. Remove any leading or trailing WSP characters from the attribute-
  22024. // name string and the attribute-value string.
  22025. attributeName = attributeName.trim()
  22026. attributeValue = attributeValue.trim()
  22027. // 6. If the attribute-value is longer than 1024 octets, ignore the
  22028. // cookie-av string and return to Step 1 of this algorithm.
  22029. if (attributeValue.length > maxAttributeValueSize) {
  22030. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  22031. }
  22032. // 7. Process the attribute-name and attribute-value according to the
  22033. // requirements in the following subsections. (Notice that
  22034. // attributes with unrecognized attribute-names are ignored.)
  22035. const attributeNameLowercase = attributeName.toLowerCase()
  22036. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.1
  22037. // If the attribute-name case-insensitively matches the string
  22038. // "Expires", the user agent MUST process the cookie-av as follows.
  22039. if (attributeNameLowercase === 'expires') {
  22040. // 1. Let the expiry-time be the result of parsing the attribute-value
  22041. // as cookie-date (see Section 5.1.1).
  22042. const expiryTime = new Date(attributeValue)
  22043. // 2. If the attribute-value failed to parse as a cookie date, ignore
  22044. // the cookie-av.
  22045. cookieAttributeList.expires = expiryTime
  22046. } else if (attributeNameLowercase === 'max-age') {
  22047. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.2
  22048. // If the attribute-name case-insensitively matches the string "Max-
  22049. // Age", the user agent MUST process the cookie-av as follows.
  22050. // 1. If the first character of the attribute-value is not a DIGIT or a
  22051. // "-" character, ignore the cookie-av.
  22052. const charCode = attributeValue.charCodeAt(0)
  22053. if ((charCode < 48 || charCode > 57) && attributeValue[0] !== '-') {
  22054. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  22055. }
  22056. // 2. If the remainder of attribute-value contains a non-DIGIT
  22057. // character, ignore the cookie-av.
  22058. if (!/^\d+$/.test(attributeValue)) {
  22059. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  22060. }
  22061. // 3. Let delta-seconds be the attribute-value converted to an integer.
  22062. const deltaSeconds = Number(attributeValue)
  22063. // 4. Let cookie-age-limit be the maximum age of the cookie (which
  22064. // SHOULD be 400 days or less, see Section 4.1.2.2).
  22065. // 5. Set delta-seconds to the smaller of its present value and cookie-
  22066. // age-limit.
  22067. // deltaSeconds = Math.min(deltaSeconds * 1000, maxExpiresMs)
  22068. // 6. If delta-seconds is less than or equal to zero (0), let expiry-
  22069. // time be the earliest representable date and time. Otherwise, let
  22070. // the expiry-time be the current date and time plus delta-seconds
  22071. // seconds.
  22072. // const expiryTime = deltaSeconds <= 0 ? Date.now() : Date.now() + deltaSeconds
  22073. // 7. Append an attribute to the cookie-attribute-list with an
  22074. // attribute-name of Max-Age and an attribute-value of expiry-time.
  22075. cookieAttributeList.maxAge = deltaSeconds
  22076. } else if (attributeNameLowercase === 'domain') {
  22077. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.3
  22078. // If the attribute-name case-insensitively matches the string "Domain",
  22079. // the user agent MUST process the cookie-av as follows.
  22080. // 1. Let cookie-domain be the attribute-value.
  22081. let cookieDomain = attributeValue
  22082. // 2. If cookie-domain starts with %x2E ("."), let cookie-domain be
  22083. // cookie-domain without its leading %x2E (".").
  22084. if (cookieDomain[0] === '.') {
  22085. cookieDomain = cookieDomain.slice(1)
  22086. }
  22087. // 3. Convert the cookie-domain to lower case.
  22088. cookieDomain = cookieDomain.toLowerCase()
  22089. // 4. Append an attribute to the cookie-attribute-list with an
  22090. // attribute-name of Domain and an attribute-value of cookie-domain.
  22091. cookieAttributeList.domain = cookieDomain
  22092. } else if (attributeNameLowercase === 'path') {
  22093. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.4
  22094. // If the attribute-name case-insensitively matches the string "Path",
  22095. // the user agent MUST process the cookie-av as follows.
  22096. // 1. If the attribute-value is empty or if the first character of the
  22097. // attribute-value is not %x2F ("/"):
  22098. let cookiePath = ''
  22099. if (attributeValue.length === 0 || attributeValue[0] !== '/') {
  22100. // 1. Let cookie-path be the default-path.
  22101. cookiePath = '/'
  22102. } else {
  22103. // Otherwise:
  22104. // 1. Let cookie-path be the attribute-value.
  22105. cookiePath = attributeValue
  22106. }
  22107. // 2. Append an attribute to the cookie-attribute-list with an
  22108. // attribute-name of Path and an attribute-value of cookie-path.
  22109. cookieAttributeList.path = cookiePath
  22110. } else if (attributeNameLowercase === 'secure') {
  22111. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.5
  22112. // If the attribute-name case-insensitively matches the string "Secure",
  22113. // the user agent MUST append an attribute to the cookie-attribute-list
  22114. // with an attribute-name of Secure and an empty attribute-value.
  22115. cookieAttributeList.secure = true
  22116. } else if (attributeNameLowercase === 'httponly') {
  22117. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.6
  22118. // If the attribute-name case-insensitively matches the string
  22119. // "HttpOnly", the user agent MUST append an attribute to the cookie-
  22120. // attribute-list with an attribute-name of HttpOnly and an empty
  22121. // attribute-value.
  22122. cookieAttributeList.httpOnly = true
  22123. } else if (attributeNameLowercase === 'samesite') {
  22124. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.7
  22125. // If the attribute-name case-insensitively matches the string
  22126. // "SameSite", the user agent MUST process the cookie-av as follows:
  22127. // 1. Let enforcement be "Default".
  22128. let enforcement = 'Default'
  22129. const attributeValueLowercase = attributeValue.toLowerCase()
  22130. // 2. If cookie-av's attribute-value is a case-insensitive match for
  22131. // "None", set enforcement to "None".
  22132. if (attributeValueLowercase.includes('none')) {
  22133. enforcement = 'None'
  22134. }
  22135. // 3. If cookie-av's attribute-value is a case-insensitive match for
  22136. // "Strict", set enforcement to "Strict".
  22137. if (attributeValueLowercase.includes('strict')) {
  22138. enforcement = 'Strict'
  22139. }
  22140. // 4. If cookie-av's attribute-value is a case-insensitive match for
  22141. // "Lax", set enforcement to "Lax".
  22142. if (attributeValueLowercase.includes('lax')) {
  22143. enforcement = 'Lax'
  22144. }
  22145. // 5. Append an attribute to the cookie-attribute-list with an
  22146. // attribute-name of "SameSite" and an attribute-value of
  22147. // enforcement.
  22148. cookieAttributeList.sameSite = enforcement
  22149. } else {
  22150. cookieAttributeList.unparsed ??= []
  22151. cookieAttributeList.unparsed.push(`${attributeName}=${attributeValue}`)
  22152. }
  22153. // 8. Return to Step 1 of this algorithm.
  22154. return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)
  22155. }
  22156. module.exports = {
  22157. parseSetCookie,
  22158. parseUnparsedAttributes
  22159. }
  22160. /***/ }),
  22161. /***/ 3121:
  22162. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22163. "use strict";
  22164. const assert = __nccwpck_require__(9491)
  22165. const { kHeadersList } = __nccwpck_require__(2785)
  22166. function isCTLExcludingHtab (value) {
  22167. if (value.length === 0) {
  22168. return false
  22169. }
  22170. for (const char of value) {
  22171. const code = char.charCodeAt(0)
  22172. if (
  22173. (code >= 0x00 || code <= 0x08) ||
  22174. (code >= 0x0A || code <= 0x1F) ||
  22175. code === 0x7F
  22176. ) {
  22177. return false
  22178. }
  22179. }
  22180. }
  22181. /**
  22182. CHAR = <any US-ASCII character (octets 0 - 127)>
  22183. token = 1*<any CHAR except CTLs or separators>
  22184. separators = "(" | ")" | "<" | ">" | "@"
  22185. | "," | ";" | ":" | "\" | <">
  22186. | "/" | "[" | "]" | "?" | "="
  22187. | "{" | "}" | SP | HT
  22188. * @param {string} name
  22189. */
  22190. function validateCookieName (name) {
  22191. for (const char of name) {
  22192. const code = char.charCodeAt(0)
  22193. if (
  22194. (code <= 0x20 || code > 0x7F) ||
  22195. char === '(' ||
  22196. char === ')' ||
  22197. char === '>' ||
  22198. char === '<' ||
  22199. char === '@' ||
  22200. char === ',' ||
  22201. char === ';' ||
  22202. char === ':' ||
  22203. char === '\\' ||
  22204. char === '"' ||
  22205. char === '/' ||
  22206. char === '[' ||
  22207. char === ']' ||
  22208. char === '?' ||
  22209. char === '=' ||
  22210. char === '{' ||
  22211. char === '}'
  22212. ) {
  22213. throw new Error('Invalid cookie name')
  22214. }
  22215. }
  22216. }
  22217. /**
  22218. cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
  22219. cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
  22220. ; US-ASCII characters excluding CTLs,
  22221. ; whitespace DQUOTE, comma, semicolon,
  22222. ; and backslash
  22223. * @param {string} value
  22224. */
  22225. function validateCookieValue (value) {
  22226. for (const char of value) {
  22227. const code = char.charCodeAt(0)
  22228. if (
  22229. code < 0x21 || // exclude CTLs (0-31)
  22230. code === 0x22 ||
  22231. code === 0x2C ||
  22232. code === 0x3B ||
  22233. code === 0x5C ||
  22234. code > 0x7E // non-ascii
  22235. ) {
  22236. throw new Error('Invalid header value')
  22237. }
  22238. }
  22239. }
  22240. /**
  22241. * path-value = <any CHAR except CTLs or ";">
  22242. * @param {string} path
  22243. */
  22244. function validateCookiePath (path) {
  22245. for (const char of path) {
  22246. const code = char.charCodeAt(0)
  22247. if (code < 0x21 || char === ';') {
  22248. throw new Error('Invalid cookie path')
  22249. }
  22250. }
  22251. }
  22252. /**
  22253. * I have no idea why these values aren't allowed to be honest,
  22254. * but Deno tests these. - Khafra
  22255. * @param {string} domain
  22256. */
  22257. function validateCookieDomain (domain) {
  22258. if (
  22259. domain.startsWith('-') ||
  22260. domain.endsWith('.') ||
  22261. domain.endsWith('-')
  22262. ) {
  22263. throw new Error('Invalid cookie domain')
  22264. }
  22265. }
  22266. /**
  22267. * @see https://www.rfc-editor.org/rfc/rfc7231#section-7.1.1.1
  22268. * @param {number|Date} date
  22269. IMF-fixdate = day-name "," SP date1 SP time-of-day SP GMT
  22270. ; fixed length/zone/capitalization subset of the format
  22271. ; see Section 3.3 of [RFC5322]
  22272. day-name = %x4D.6F.6E ; "Mon", case-sensitive
  22273. / %x54.75.65 ; "Tue", case-sensitive
  22274. / %x57.65.64 ; "Wed", case-sensitive
  22275. / %x54.68.75 ; "Thu", case-sensitive
  22276. / %x46.72.69 ; "Fri", case-sensitive
  22277. / %x53.61.74 ; "Sat", case-sensitive
  22278. / %x53.75.6E ; "Sun", case-sensitive
  22279. date1 = day SP month SP year
  22280. ; e.g., 02 Jun 1982
  22281. day = 2DIGIT
  22282. month = %x4A.61.6E ; "Jan", case-sensitive
  22283. / %x46.65.62 ; "Feb", case-sensitive
  22284. / %x4D.61.72 ; "Mar", case-sensitive
  22285. / %x41.70.72 ; "Apr", case-sensitive
  22286. / %x4D.61.79 ; "May", case-sensitive
  22287. / %x4A.75.6E ; "Jun", case-sensitive
  22288. / %x4A.75.6C ; "Jul", case-sensitive
  22289. / %x41.75.67 ; "Aug", case-sensitive
  22290. / %x53.65.70 ; "Sep", case-sensitive
  22291. / %x4F.63.74 ; "Oct", case-sensitive
  22292. / %x4E.6F.76 ; "Nov", case-sensitive
  22293. / %x44.65.63 ; "Dec", case-sensitive
  22294. year = 4DIGIT
  22295. GMT = %x47.4D.54 ; "GMT", case-sensitive
  22296. time-of-day = hour ":" minute ":" second
  22297. ; 00:00:00 - 23:59:60 (leap second)
  22298. hour = 2DIGIT
  22299. minute = 2DIGIT
  22300. second = 2DIGIT
  22301. */
  22302. function toIMFDate (date) {
  22303. if (typeof date === 'number') {
  22304. date = new Date(date)
  22305. }
  22306. const days = [
  22307. 'Sun', 'Mon', 'Tue', 'Wed',
  22308. 'Thu', 'Fri', 'Sat'
  22309. ]
  22310. const months = [
  22311. 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  22312. 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
  22313. ]
  22314. const dayName = days[date.getUTCDay()]
  22315. const day = date.getUTCDate().toString().padStart(2, '0')
  22316. const month = months[date.getUTCMonth()]
  22317. const year = date.getUTCFullYear()
  22318. const hour = date.getUTCHours().toString().padStart(2, '0')
  22319. const minute = date.getUTCMinutes().toString().padStart(2, '0')
  22320. const second = date.getUTCSeconds().toString().padStart(2, '0')
  22321. return `${dayName}, ${day} ${month} ${year} ${hour}:${minute}:${second} GMT`
  22322. }
  22323. /**
  22324. max-age-av = "Max-Age=" non-zero-digit *DIGIT
  22325. ; In practice, both expires-av and max-age-av
  22326. ; are limited to dates representable by the
  22327. ; user agent.
  22328. * @param {number} maxAge
  22329. */
  22330. function validateCookieMaxAge (maxAge) {
  22331. if (maxAge < 0) {
  22332. throw new Error('Invalid cookie max-age')
  22333. }
  22334. }
  22335. /**
  22336. * @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1
  22337. * @param {import('./index').Cookie} cookie
  22338. */
  22339. function stringify (cookie) {
  22340. if (cookie.name.length === 0) {
  22341. return null
  22342. }
  22343. validateCookieName(cookie.name)
  22344. validateCookieValue(cookie.value)
  22345. const out = [`${cookie.name}=${cookie.value}`]
  22346. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.1
  22347. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.2
  22348. if (cookie.name.startsWith('__Secure-')) {
  22349. cookie.secure = true
  22350. }
  22351. if (cookie.name.startsWith('__Host-')) {
  22352. cookie.secure = true
  22353. cookie.domain = null
  22354. cookie.path = '/'
  22355. }
  22356. if (cookie.secure) {
  22357. out.push('Secure')
  22358. }
  22359. if (cookie.httpOnly) {
  22360. out.push('HttpOnly')
  22361. }
  22362. if (typeof cookie.maxAge === 'number') {
  22363. validateCookieMaxAge(cookie.maxAge)
  22364. out.push(`Max-Age=${cookie.maxAge}`)
  22365. }
  22366. if (cookie.domain) {
  22367. validateCookieDomain(cookie.domain)
  22368. out.push(`Domain=${cookie.domain}`)
  22369. }
  22370. if (cookie.path) {
  22371. validateCookiePath(cookie.path)
  22372. out.push(`Path=${cookie.path}`)
  22373. }
  22374. if (cookie.expires && cookie.expires.toString() !== 'Invalid Date') {
  22375. out.push(`Expires=${toIMFDate(cookie.expires)}`)
  22376. }
  22377. if (cookie.sameSite) {
  22378. out.push(`SameSite=${cookie.sameSite}`)
  22379. }
  22380. for (const part of cookie.unparsed) {
  22381. if (!part.includes('=')) {
  22382. throw new Error('Invalid unparsed')
  22383. }
  22384. const [key, ...value] = part.split('=')
  22385. out.push(`${key.trim()}=${value.join('=')}`)
  22386. }
  22387. return out.join('; ')
  22388. }
  22389. let kHeadersListNode
  22390. function getHeadersList (headers) {
  22391. if (headers[kHeadersList]) {
  22392. return headers[kHeadersList]
  22393. }
  22394. if (!kHeadersListNode) {
  22395. kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
  22396. (symbol) => symbol.description === 'headers list'
  22397. )
  22398. assert(kHeadersListNode, 'Headers cannot be parsed')
  22399. }
  22400. const headersList = headers[kHeadersListNode]
  22401. assert(headersList)
  22402. return headersList
  22403. }
  22404. module.exports = {
  22405. isCTLExcludingHtab,
  22406. stringify,
  22407. getHeadersList
  22408. }
  22409. /***/ }),
  22410. /***/ 2067:
  22411. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22412. "use strict";
  22413. const net = __nccwpck_require__(1808)
  22414. const assert = __nccwpck_require__(9491)
  22415. const util = __nccwpck_require__(3983)
  22416. const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(8045)
  22417. let tls // include tls conditionally since it is not always available
  22418. // TODO: session re-use does not wait for the first
  22419. // connection to resolve the session and might therefore
  22420. // resolve the same servername multiple times even when
  22421. // re-use is enabled.
  22422. let SessionCache
  22423. // FIXME: remove workaround when the Node bug is fixed
  22424. // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308
  22425. if (global.FinalizationRegistry && !process.env.NODE_V8_COVERAGE) {
  22426. SessionCache = class WeakSessionCache {
  22427. constructor (maxCachedSessions) {
  22428. this._maxCachedSessions = maxCachedSessions
  22429. this._sessionCache = new Map()
  22430. this._sessionRegistry = new global.FinalizationRegistry((key) => {
  22431. if (this._sessionCache.size < this._maxCachedSessions) {
  22432. return
  22433. }
  22434. const ref = this._sessionCache.get(key)
  22435. if (ref !== undefined && ref.deref() === undefined) {
  22436. this._sessionCache.delete(key)
  22437. }
  22438. })
  22439. }
  22440. get (sessionKey) {
  22441. const ref = this._sessionCache.get(sessionKey)
  22442. return ref ? ref.deref() : null
  22443. }
  22444. set (sessionKey, session) {
  22445. if (this._maxCachedSessions === 0) {
  22446. return
  22447. }
  22448. this._sessionCache.set(sessionKey, new WeakRef(session))
  22449. this._sessionRegistry.register(session, sessionKey)
  22450. }
  22451. }
  22452. } else {
  22453. SessionCache = class SimpleSessionCache {
  22454. constructor (maxCachedSessions) {
  22455. this._maxCachedSessions = maxCachedSessions
  22456. this._sessionCache = new Map()
  22457. }
  22458. get (sessionKey) {
  22459. return this._sessionCache.get(sessionKey)
  22460. }
  22461. set (sessionKey, session) {
  22462. if (this._maxCachedSessions === 0) {
  22463. return
  22464. }
  22465. if (this._sessionCache.size >= this._maxCachedSessions) {
  22466. // remove the oldest session
  22467. const { value: oldestKey } = this._sessionCache.keys().next()
  22468. this._sessionCache.delete(oldestKey)
  22469. }
  22470. this._sessionCache.set(sessionKey, session)
  22471. }
  22472. }
  22473. }
  22474. function buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, ...opts }) {
  22475. if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) {
  22476. throw new InvalidArgumentError('maxCachedSessions must be a positive integer or zero')
  22477. }
  22478. const options = { path: socketPath, ...opts }
  22479. const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions)
  22480. timeout = timeout == null ? 10e3 : timeout
  22481. allowH2 = allowH2 != null ? allowH2 : false
  22482. return function connect ({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {
  22483. let socket
  22484. if (protocol === 'https:') {
  22485. if (!tls) {
  22486. tls = __nccwpck_require__(4404)
  22487. }
  22488. servername = servername || options.servername || util.getServerName(host) || null
  22489. const sessionKey = servername || hostname
  22490. const session = sessionCache.get(sessionKey) || null
  22491. assert(sessionKey)
  22492. socket = tls.connect({
  22493. highWaterMark: 16384, // TLS in node can't have bigger HWM anyway...
  22494. ...options,
  22495. servername,
  22496. session,
  22497. localAddress,
  22498. // TODO(HTTP/2): Add support for h2c
  22499. ALPNProtocols: allowH2 ? ['http/1.1', 'h2'] : ['http/1.1'],
  22500. socket: httpSocket, // upgrade socket connection
  22501. port: port || 443,
  22502. host: hostname
  22503. })
  22504. socket
  22505. .on('session', function (session) {
  22506. // TODO (fix): Can a session become invalid once established? Don't think so?
  22507. sessionCache.set(sessionKey, session)
  22508. })
  22509. } else {
  22510. assert(!httpSocket, 'httpSocket can only be sent on TLS update')
  22511. socket = net.connect({
  22512. highWaterMark: 64 * 1024, // Same as nodejs fs streams.
  22513. ...options,
  22514. localAddress,
  22515. port: port || 80,
  22516. host: hostname
  22517. })
  22518. }
  22519. // Set TCP keep alive options on the socket here instead of in connect() for the case of assigning the socket
  22520. if (options.keepAlive == null || options.keepAlive) {
  22521. const keepAliveInitialDelay = options.keepAliveInitialDelay === undefined ? 60e3 : options.keepAliveInitialDelay
  22522. socket.setKeepAlive(true, keepAliveInitialDelay)
  22523. }
  22524. const cancelTimeout = setupTimeout(() => onConnectTimeout(socket), timeout)
  22525. socket
  22526. .setNoDelay(true)
  22527. .once(protocol === 'https:' ? 'secureConnect' : 'connect', function () {
  22528. cancelTimeout()
  22529. if (callback) {
  22530. const cb = callback
  22531. callback = null
  22532. cb(null, this)
  22533. }
  22534. })
  22535. .on('error', function (err) {
  22536. cancelTimeout()
  22537. if (callback) {
  22538. const cb = callback
  22539. callback = null
  22540. cb(err)
  22541. }
  22542. })
  22543. return socket
  22544. }
  22545. }
  22546. function setupTimeout (onConnectTimeout, timeout) {
  22547. if (!timeout) {
  22548. return () => {}
  22549. }
  22550. let s1 = null
  22551. let s2 = null
  22552. const timeoutId = setTimeout(() => {
  22553. // setImmediate is added to make sure that we priotorise socket error events over timeouts
  22554. s1 = setImmediate(() => {
  22555. if (process.platform === 'win32') {
  22556. // Windows needs an extra setImmediate probably due to implementation differences in the socket logic
  22557. s2 = setImmediate(() => onConnectTimeout())
  22558. } else {
  22559. onConnectTimeout()
  22560. }
  22561. })
  22562. }, timeout)
  22563. return () => {
  22564. clearTimeout(timeoutId)
  22565. clearImmediate(s1)
  22566. clearImmediate(s2)
  22567. }
  22568. }
  22569. function onConnectTimeout (socket) {
  22570. util.destroy(socket, new ConnectTimeoutError())
  22571. }
  22572. module.exports = buildConnector
  22573. /***/ }),
  22574. /***/ 8045:
  22575. /***/ ((module) => {
  22576. "use strict";
  22577. class UndiciError extends Error {
  22578. constructor (message) {
  22579. super(message)
  22580. this.name = 'UndiciError'
  22581. this.code = 'UND_ERR'
  22582. }
  22583. }
  22584. class ConnectTimeoutError extends UndiciError {
  22585. constructor (message) {
  22586. super(message)
  22587. Error.captureStackTrace(this, ConnectTimeoutError)
  22588. this.name = 'ConnectTimeoutError'
  22589. this.message = message || 'Connect Timeout Error'
  22590. this.code = 'UND_ERR_CONNECT_TIMEOUT'
  22591. }
  22592. }
  22593. class HeadersTimeoutError extends UndiciError {
  22594. constructor (message) {
  22595. super(message)
  22596. Error.captureStackTrace(this, HeadersTimeoutError)
  22597. this.name = 'HeadersTimeoutError'
  22598. this.message = message || 'Headers Timeout Error'
  22599. this.code = 'UND_ERR_HEADERS_TIMEOUT'
  22600. }
  22601. }
  22602. class HeadersOverflowError extends UndiciError {
  22603. constructor (message) {
  22604. super(message)
  22605. Error.captureStackTrace(this, HeadersOverflowError)
  22606. this.name = 'HeadersOverflowError'
  22607. this.message = message || 'Headers Overflow Error'
  22608. this.code = 'UND_ERR_HEADERS_OVERFLOW'
  22609. }
  22610. }
  22611. class BodyTimeoutError extends UndiciError {
  22612. constructor (message) {
  22613. super(message)
  22614. Error.captureStackTrace(this, BodyTimeoutError)
  22615. this.name = 'BodyTimeoutError'
  22616. this.message = message || 'Body Timeout Error'
  22617. this.code = 'UND_ERR_BODY_TIMEOUT'
  22618. }
  22619. }
  22620. class ResponseStatusCodeError extends UndiciError {
  22621. constructor (message, statusCode, headers, body) {
  22622. super(message)
  22623. Error.captureStackTrace(this, ResponseStatusCodeError)
  22624. this.name = 'ResponseStatusCodeError'
  22625. this.message = message || 'Response Status Code Error'
  22626. this.code = 'UND_ERR_RESPONSE_STATUS_CODE'
  22627. this.body = body
  22628. this.status = statusCode
  22629. this.statusCode = statusCode
  22630. this.headers = headers
  22631. }
  22632. }
  22633. class InvalidArgumentError extends UndiciError {
  22634. constructor (message) {
  22635. super(message)
  22636. Error.captureStackTrace(this, InvalidArgumentError)
  22637. this.name = 'InvalidArgumentError'
  22638. this.message = message || 'Invalid Argument Error'
  22639. this.code = 'UND_ERR_INVALID_ARG'
  22640. }
  22641. }
  22642. class InvalidReturnValueError extends UndiciError {
  22643. constructor (message) {
  22644. super(message)
  22645. Error.captureStackTrace(this, InvalidReturnValueError)
  22646. this.name = 'InvalidReturnValueError'
  22647. this.message = message || 'Invalid Return Value Error'
  22648. this.code = 'UND_ERR_INVALID_RETURN_VALUE'
  22649. }
  22650. }
  22651. class RequestAbortedError extends UndiciError {
  22652. constructor (message) {
  22653. super(message)
  22654. Error.captureStackTrace(this, RequestAbortedError)
  22655. this.name = 'AbortError'
  22656. this.message = message || 'Request aborted'
  22657. this.code = 'UND_ERR_ABORTED'
  22658. }
  22659. }
  22660. class InformationalError extends UndiciError {
  22661. constructor (message) {
  22662. super(message)
  22663. Error.captureStackTrace(this, InformationalError)
  22664. this.name = 'InformationalError'
  22665. this.message = message || 'Request information'
  22666. this.code = 'UND_ERR_INFO'
  22667. }
  22668. }
  22669. class RequestContentLengthMismatchError extends UndiciError {
  22670. constructor (message) {
  22671. super(message)
  22672. Error.captureStackTrace(this, RequestContentLengthMismatchError)
  22673. this.name = 'RequestContentLengthMismatchError'
  22674. this.message = message || 'Request body length does not match content-length header'
  22675. this.code = 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
  22676. }
  22677. }
  22678. class ResponseContentLengthMismatchError extends UndiciError {
  22679. constructor (message) {
  22680. super(message)
  22681. Error.captureStackTrace(this, ResponseContentLengthMismatchError)
  22682. this.name = 'ResponseContentLengthMismatchError'
  22683. this.message = message || 'Response body length does not match content-length header'
  22684. this.code = 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH'
  22685. }
  22686. }
  22687. class ClientDestroyedError extends UndiciError {
  22688. constructor (message) {
  22689. super(message)
  22690. Error.captureStackTrace(this, ClientDestroyedError)
  22691. this.name = 'ClientDestroyedError'
  22692. this.message = message || 'The client is destroyed'
  22693. this.code = 'UND_ERR_DESTROYED'
  22694. }
  22695. }
  22696. class ClientClosedError extends UndiciError {
  22697. constructor (message) {
  22698. super(message)
  22699. Error.captureStackTrace(this, ClientClosedError)
  22700. this.name = 'ClientClosedError'
  22701. this.message = message || 'The client is closed'
  22702. this.code = 'UND_ERR_CLOSED'
  22703. }
  22704. }
  22705. class SocketError extends UndiciError {
  22706. constructor (message, socket) {
  22707. super(message)
  22708. Error.captureStackTrace(this, SocketError)
  22709. this.name = 'SocketError'
  22710. this.message = message || 'Socket error'
  22711. this.code = 'UND_ERR_SOCKET'
  22712. this.socket = socket
  22713. }
  22714. }
  22715. class NotSupportedError extends UndiciError {
  22716. constructor (message) {
  22717. super(message)
  22718. Error.captureStackTrace(this, NotSupportedError)
  22719. this.name = 'NotSupportedError'
  22720. this.message = message || 'Not supported error'
  22721. this.code = 'UND_ERR_NOT_SUPPORTED'
  22722. }
  22723. }
  22724. class BalancedPoolMissingUpstreamError extends UndiciError {
  22725. constructor (message) {
  22726. super(message)
  22727. Error.captureStackTrace(this, NotSupportedError)
  22728. this.name = 'MissingUpstreamError'
  22729. this.message = message || 'No upstream has been added to the BalancedPool'
  22730. this.code = 'UND_ERR_BPL_MISSING_UPSTREAM'
  22731. }
  22732. }
  22733. class HTTPParserError extends Error {
  22734. constructor (message, code, data) {
  22735. super(message)
  22736. Error.captureStackTrace(this, HTTPParserError)
  22737. this.name = 'HTTPParserError'
  22738. this.code = code ? `HPE_${code}` : undefined
  22739. this.data = data ? data.toString() : undefined
  22740. }
  22741. }
  22742. class ResponseExceededMaxSizeError extends UndiciError {
  22743. constructor (message) {
  22744. super(message)
  22745. Error.captureStackTrace(this, ResponseExceededMaxSizeError)
  22746. this.name = 'ResponseExceededMaxSizeError'
  22747. this.message = message || 'Response content exceeded max size'
  22748. this.code = 'UND_ERR_RES_EXCEEDED_MAX_SIZE'
  22749. }
  22750. }
  22751. module.exports = {
  22752. HTTPParserError,
  22753. UndiciError,
  22754. HeadersTimeoutError,
  22755. HeadersOverflowError,
  22756. BodyTimeoutError,
  22757. RequestContentLengthMismatchError,
  22758. ConnectTimeoutError,
  22759. ResponseStatusCodeError,
  22760. InvalidArgumentError,
  22761. InvalidReturnValueError,
  22762. RequestAbortedError,
  22763. ClientDestroyedError,
  22764. ClientClosedError,
  22765. InformationalError,
  22766. SocketError,
  22767. NotSupportedError,
  22768. ResponseContentLengthMismatchError,
  22769. BalancedPoolMissingUpstreamError,
  22770. ResponseExceededMaxSizeError
  22771. }
  22772. /***/ }),
  22773. /***/ 2905:
  22774. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  22775. "use strict";
  22776. const {
  22777. InvalidArgumentError,
  22778. NotSupportedError
  22779. } = __nccwpck_require__(8045)
  22780. const assert = __nccwpck_require__(9491)
  22781. const { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = __nccwpck_require__(2785)
  22782. const util = __nccwpck_require__(3983)
  22783. // tokenRegExp and headerCharRegex have been lifted from
  22784. // https://github.com/nodejs/node/blob/main/lib/_http_common.js
  22785. /**
  22786. * Verifies that the given val is a valid HTTP token
  22787. * per the rules defined in RFC 7230
  22788. * See https://tools.ietf.org/html/rfc7230#section-3.2.6
  22789. */
  22790. const tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/
  22791. /**
  22792. * Matches if val contains an invalid field-vchar
  22793. * field-value = *( field-content / obs-fold )
  22794. * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
  22795. * field-vchar = VCHAR / obs-text
  22796. */
  22797. const headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/
  22798. // Verifies that a given path is valid does not contain control chars \x00 to \x20
  22799. const invalidPathRegex = /[^\u0021-\u00ff]/
  22800. const kHandler = Symbol('handler')
  22801. const channels = {}
  22802. let extractBody
  22803. try {
  22804. const diagnosticsChannel = __nccwpck_require__(7643)
  22805. channels.create = diagnosticsChannel.channel('undici:request:create')
  22806. channels.bodySent = diagnosticsChannel.channel('undici:request:bodySent')
  22807. channels.headers = diagnosticsChannel.channel('undici:request:headers')
  22808. channels.trailers = diagnosticsChannel.channel('undici:request:trailers')
  22809. channels.error = diagnosticsChannel.channel('undici:request:error')
  22810. } catch {
  22811. channels.create = { hasSubscribers: false }
  22812. channels.bodySent = { hasSubscribers: false }
  22813. channels.headers = { hasSubscribers: false }
  22814. channels.trailers = { hasSubscribers: false }
  22815. channels.error = { hasSubscribers: false }
  22816. }
  22817. class Request {
  22818. constructor (origin, {
  22819. path,
  22820. method,
  22821. body,
  22822. headers,
  22823. query,
  22824. idempotent,
  22825. blocking,
  22826. upgrade,
  22827. headersTimeout,
  22828. bodyTimeout,
  22829. reset,
  22830. throwOnError,
  22831. expectContinue
  22832. }, handler) {
  22833. if (typeof path !== 'string') {
  22834. throw new InvalidArgumentError('path must be a string')
  22835. } else if (
  22836. path[0] !== '/' &&
  22837. !(path.startsWith('http://') || path.startsWith('https://')) &&
  22838. method !== 'CONNECT'
  22839. ) {
  22840. throw new InvalidArgumentError('path must be an absolute URL or start with a slash')
  22841. } else if (invalidPathRegex.exec(path) !== null) {
  22842. throw new InvalidArgumentError('invalid request path')
  22843. }
  22844. if (typeof method !== 'string') {
  22845. throw new InvalidArgumentError('method must be a string')
  22846. } else if (tokenRegExp.exec(method) === null) {
  22847. throw new InvalidArgumentError('invalid request method')
  22848. }
  22849. if (upgrade && typeof upgrade !== 'string') {
  22850. throw new InvalidArgumentError('upgrade must be a string')
  22851. }
  22852. if (headersTimeout != null && (!Number.isFinite(headersTimeout) || headersTimeout < 0)) {
  22853. throw new InvalidArgumentError('invalid headersTimeout')
  22854. }
  22855. if (bodyTimeout != null && (!Number.isFinite(bodyTimeout) || bodyTimeout < 0)) {
  22856. throw new InvalidArgumentError('invalid bodyTimeout')
  22857. }
  22858. if (reset != null && typeof reset !== 'boolean') {
  22859. throw new InvalidArgumentError('invalid reset')
  22860. }
  22861. if (expectContinue != null && typeof expectContinue !== 'boolean') {
  22862. throw new InvalidArgumentError('invalid expectContinue')
  22863. }
  22864. this.headersTimeout = headersTimeout
  22865. this.bodyTimeout = bodyTimeout
  22866. this.throwOnError = throwOnError === true
  22867. this.method = method
  22868. if (body == null) {
  22869. this.body = null
  22870. } else if (util.isStream(body)) {
  22871. this.body = body
  22872. } else if (util.isBuffer(body)) {
  22873. this.body = body.byteLength ? body : null
  22874. } else if (ArrayBuffer.isView(body)) {
  22875. this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null
  22876. } else if (body instanceof ArrayBuffer) {
  22877. this.body = body.byteLength ? Buffer.from(body) : null
  22878. } else if (typeof body === 'string') {
  22879. this.body = body.length ? Buffer.from(body) : null
  22880. } else if (util.isFormDataLike(body) || util.isIterable(body) || util.isBlobLike(body)) {
  22881. this.body = body
  22882. } else {
  22883. throw new InvalidArgumentError('body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable')
  22884. }
  22885. this.completed = false
  22886. this.aborted = false
  22887. this.upgrade = upgrade || null
  22888. this.path = query ? util.buildURL(path, query) : path
  22889. this.origin = origin
  22890. this.idempotent = idempotent == null
  22891. ? method === 'HEAD' || method === 'GET'
  22892. : idempotent
  22893. this.blocking = blocking == null ? false : blocking
  22894. this.reset = reset == null ? null : reset
  22895. this.host = null
  22896. this.contentLength = null
  22897. this.contentType = null
  22898. this.headers = ''
  22899. // Only for H2
  22900. this.expectContinue = expectContinue != null ? expectContinue : false
  22901. if (Array.isArray(headers)) {
  22902. if (headers.length % 2 !== 0) {
  22903. throw new InvalidArgumentError('headers array must be even')
  22904. }
  22905. for (let i = 0; i < headers.length; i += 2) {
  22906. processHeader(this, headers[i], headers[i + 1])
  22907. }
  22908. } else if (headers && typeof headers === 'object') {
  22909. const keys = Object.keys(headers)
  22910. for (let i = 0; i < keys.length; i++) {
  22911. const key = keys[i]
  22912. processHeader(this, key, headers[key])
  22913. }
  22914. } else if (headers != null) {
  22915. throw new InvalidArgumentError('headers must be an object or an array')
  22916. }
  22917. if (util.isFormDataLike(this.body)) {
  22918. if (util.nodeMajor < 16 || (util.nodeMajor === 16 && util.nodeMinor < 8)) {
  22919. throw new InvalidArgumentError('Form-Data bodies are only supported in node v16.8 and newer.')
  22920. }
  22921. if (!extractBody) {
  22922. extractBody = (__nccwpck_require__(9990).extractBody)
  22923. }
  22924. const [bodyStream, contentType] = extractBody(body)
  22925. if (this.contentType == null) {
  22926. this.contentType = contentType
  22927. this.headers += `content-type: ${contentType}\r\n`
  22928. }
  22929. this.body = bodyStream.stream
  22930. this.contentLength = bodyStream.length
  22931. } else if (util.isBlobLike(body) && this.contentType == null && body.type) {
  22932. this.contentType = body.type
  22933. this.headers += `content-type: ${body.type}\r\n`
  22934. }
  22935. util.validateHandler(handler, method, upgrade)
  22936. this.servername = util.getServerName(this.host)
  22937. this[kHandler] = handler
  22938. if (channels.create.hasSubscribers) {
  22939. channels.create.publish({ request: this })
  22940. }
  22941. }
  22942. onBodySent (chunk) {
  22943. if (this[kHandler].onBodySent) {
  22944. try {
  22945. this[kHandler].onBodySent(chunk)
  22946. } catch (err) {
  22947. this.onError(err)
  22948. }
  22949. }
  22950. }
  22951. onRequestSent () {
  22952. if (channels.bodySent.hasSubscribers) {
  22953. channels.bodySent.publish({ request: this })
  22954. }
  22955. }
  22956. onConnect (abort) {
  22957. assert(!this.aborted)
  22958. assert(!this.completed)
  22959. return this[kHandler].onConnect(abort)
  22960. }
  22961. onHeaders (statusCode, headers, resume, statusText) {
  22962. assert(!this.aborted)
  22963. assert(!this.completed)
  22964. if (channels.headers.hasSubscribers) {
  22965. channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })
  22966. }
  22967. return this[kHandler].onHeaders(statusCode, headers, resume, statusText)
  22968. }
  22969. onData (chunk) {
  22970. assert(!this.aborted)
  22971. assert(!this.completed)
  22972. return this[kHandler].onData(chunk)
  22973. }
  22974. onUpgrade (statusCode, headers, socket) {
  22975. assert(!this.aborted)
  22976. assert(!this.completed)
  22977. return this[kHandler].onUpgrade(statusCode, headers, socket)
  22978. }
  22979. onComplete (trailers) {
  22980. assert(!this.aborted)
  22981. this.completed = true
  22982. if (channels.trailers.hasSubscribers) {
  22983. channels.trailers.publish({ request: this, trailers })
  22984. }
  22985. return this[kHandler].onComplete(trailers)
  22986. }
  22987. onError (error) {
  22988. if (channels.error.hasSubscribers) {
  22989. channels.error.publish({ request: this, error })
  22990. }
  22991. if (this.aborted) {
  22992. return
  22993. }
  22994. this.aborted = true
  22995. return this[kHandler].onError(error)
  22996. }
  22997. // TODO: adjust to support H2
  22998. addHeader (key, value) {
  22999. processHeader(this, key, value)
  23000. return this
  23001. }
  23002. static [kHTTP1BuildRequest] (origin, opts, handler) {
  23003. // TODO: Migrate header parsing here, to make Requests
  23004. // HTTP agnostic
  23005. return new Request(origin, opts, handler)
  23006. }
  23007. static [kHTTP2BuildRequest] (origin, opts, handler) {
  23008. const headers = opts.headers
  23009. opts = { ...opts, headers: null }
  23010. const request = new Request(origin, opts, handler)
  23011. request.headers = {}
  23012. if (Array.isArray(headers)) {
  23013. if (headers.length % 2 !== 0) {
  23014. throw new InvalidArgumentError('headers array must be even')
  23015. }
  23016. for (let i = 0; i < headers.length; i += 2) {
  23017. processHeader(request, headers[i], headers[i + 1], true)
  23018. }
  23019. } else if (headers && typeof headers === 'object') {
  23020. const keys = Object.keys(headers)
  23021. for (let i = 0; i < keys.length; i++) {
  23022. const key = keys[i]
  23023. processHeader(request, key, headers[key], true)
  23024. }
  23025. } else if (headers != null) {
  23026. throw new InvalidArgumentError('headers must be an object or an array')
  23027. }
  23028. return request
  23029. }
  23030. static [kHTTP2CopyHeaders] (raw) {
  23031. const rawHeaders = raw.split('\r\n')
  23032. const headers = {}
  23033. for (const header of rawHeaders) {
  23034. const [key, value] = header.split(': ')
  23035. if (value == null || value.length === 0) continue
  23036. if (headers[key]) headers[key] += `,${value}`
  23037. else headers[key] = value
  23038. }
  23039. return headers
  23040. }
  23041. }
  23042. function processHeaderValue (key, val, skipAppend) {
  23043. if (val && typeof val === 'object') {
  23044. throw new InvalidArgumentError(`invalid ${key} header`)
  23045. }
  23046. val = val != null ? `${val}` : ''
  23047. if (headerCharRegex.exec(val) !== null) {
  23048. throw new InvalidArgumentError(`invalid ${key} header`)
  23049. }
  23050. return skipAppend ? val : `${key}: ${val}\r\n`
  23051. }
  23052. function processHeader (request, key, val, skipAppend = false) {
  23053. if (val && (typeof val === 'object' && !Array.isArray(val))) {
  23054. throw new InvalidArgumentError(`invalid ${key} header`)
  23055. } else if (val === undefined) {
  23056. return
  23057. }
  23058. if (
  23059. request.host === null &&
  23060. key.length === 4 &&
  23061. key.toLowerCase() === 'host'
  23062. ) {
  23063. if (headerCharRegex.exec(val) !== null) {
  23064. throw new InvalidArgumentError(`invalid ${key} header`)
  23065. }
  23066. // Consumed by Client
  23067. request.host = val
  23068. } else if (
  23069. request.contentLength === null &&
  23070. key.length === 14 &&
  23071. key.toLowerCase() === 'content-length'
  23072. ) {
  23073. request.contentLength = parseInt(val, 10)
  23074. if (!Number.isFinite(request.contentLength)) {
  23075. throw new InvalidArgumentError('invalid content-length header')
  23076. }
  23077. } else if (
  23078. request.contentType === null &&
  23079. key.length === 12 &&
  23080. key.toLowerCase() === 'content-type'
  23081. ) {
  23082. request.contentType = val
  23083. request.headers += processHeaderValue(key, val)
  23084. } else if (
  23085. key.length === 17 &&
  23086. key.toLowerCase() === 'transfer-encoding'
  23087. ) {
  23088. throw new InvalidArgumentError('invalid transfer-encoding header')
  23089. } else if (
  23090. key.length === 10 &&
  23091. key.toLowerCase() === 'connection'
  23092. ) {
  23093. const value = typeof val === 'string' ? val.toLowerCase() : null
  23094. if (value !== 'close' && value !== 'keep-alive') {
  23095. throw new InvalidArgumentError('invalid connection header')
  23096. } else if (value === 'close') {
  23097. request.reset = true
  23098. }
  23099. } else if (
  23100. key.length === 10 &&
  23101. key.toLowerCase() === 'keep-alive'
  23102. ) {
  23103. throw new InvalidArgumentError('invalid keep-alive header')
  23104. } else if (
  23105. key.length === 7 &&
  23106. key.toLowerCase() === 'upgrade'
  23107. ) {
  23108. throw new InvalidArgumentError('invalid upgrade header')
  23109. } else if (
  23110. key.length === 6 &&
  23111. key.toLowerCase() === 'expect'
  23112. ) {
  23113. throw new NotSupportedError('expect header not supported')
  23114. } else if (tokenRegExp.exec(key) === null) {
  23115. throw new InvalidArgumentError('invalid header key')
  23116. } else {
  23117. if (Array.isArray(val)) {
  23118. for (let i = 0; i < val.length; i++) {
  23119. if (skipAppend) {
  23120. if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val[i], skipAppend)}`
  23121. else request.headers[key] = processHeaderValue(key, val[i], skipAppend)
  23122. } else {
  23123. request.headers += processHeaderValue(key, val[i])
  23124. }
  23125. }
  23126. } else {
  23127. if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend)
  23128. else request.headers += processHeaderValue(key, val)
  23129. }
  23130. }
  23131. }
  23132. module.exports = Request
  23133. /***/ }),
  23134. /***/ 2785:
  23135. /***/ ((module) => {
  23136. module.exports = {
  23137. kClose: Symbol('close'),
  23138. kDestroy: Symbol('destroy'),
  23139. kDispatch: Symbol('dispatch'),
  23140. kUrl: Symbol('url'),
  23141. kWriting: Symbol('writing'),
  23142. kResuming: Symbol('resuming'),
  23143. kQueue: Symbol('queue'),
  23144. kConnect: Symbol('connect'),
  23145. kConnecting: Symbol('connecting'),
  23146. kHeadersList: Symbol('headers list'),
  23147. kKeepAliveDefaultTimeout: Symbol('default keep alive timeout'),
  23148. kKeepAliveMaxTimeout: Symbol('max keep alive timeout'),
  23149. kKeepAliveTimeoutThreshold: Symbol('keep alive timeout threshold'),
  23150. kKeepAliveTimeoutValue: Symbol('keep alive timeout'),
  23151. kKeepAlive: Symbol('keep alive'),
  23152. kHeadersTimeout: Symbol('headers timeout'),
  23153. kBodyTimeout: Symbol('body timeout'),
  23154. kServerName: Symbol('server name'),
  23155. kLocalAddress: Symbol('local address'),
  23156. kHost: Symbol('host'),
  23157. kNoRef: Symbol('no ref'),
  23158. kBodyUsed: Symbol('used'),
  23159. kRunning: Symbol('running'),
  23160. kBlocking: Symbol('blocking'),
  23161. kPending: Symbol('pending'),
  23162. kSize: Symbol('size'),
  23163. kBusy: Symbol('busy'),
  23164. kQueued: Symbol('queued'),
  23165. kFree: Symbol('free'),
  23166. kConnected: Symbol('connected'),
  23167. kClosed: Symbol('closed'),
  23168. kNeedDrain: Symbol('need drain'),
  23169. kReset: Symbol('reset'),
  23170. kDestroyed: Symbol.for('nodejs.stream.destroyed'),
  23171. kMaxHeadersSize: Symbol('max headers size'),
  23172. kRunningIdx: Symbol('running index'),
  23173. kPendingIdx: Symbol('pending index'),
  23174. kError: Symbol('error'),
  23175. kClients: Symbol('clients'),
  23176. kClient: Symbol('client'),
  23177. kParser: Symbol('parser'),
  23178. kOnDestroyed: Symbol('destroy callbacks'),
  23179. kPipelining: Symbol('pipelining'),
  23180. kSocket: Symbol('socket'),
  23181. kHostHeader: Symbol('host header'),
  23182. kConnector: Symbol('connector'),
  23183. kStrictContentLength: Symbol('strict content length'),
  23184. kMaxRedirections: Symbol('maxRedirections'),
  23185. kMaxRequests: Symbol('maxRequestsPerClient'),
  23186. kProxy: Symbol('proxy agent options'),
  23187. kCounter: Symbol('socket request counter'),
  23188. kInterceptors: Symbol('dispatch interceptors'),
  23189. kMaxResponseSize: Symbol('max response size'),
  23190. kHTTP2Session: Symbol('http2Session'),
  23191. kHTTP2SessionState: Symbol('http2Session state'),
  23192. kHTTP2BuildRequest: Symbol('http2 build request'),
  23193. kHTTP1BuildRequest: Symbol('http1 build request'),
  23194. kHTTP2CopyHeaders: Symbol('http2 copy headers'),
  23195. kHTTPConnVersion: Symbol('http connection version')
  23196. }
  23197. /***/ }),
  23198. /***/ 3983:
  23199. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23200. "use strict";
  23201. const assert = __nccwpck_require__(9491)
  23202. const { kDestroyed, kBodyUsed } = __nccwpck_require__(2785)
  23203. const { IncomingMessage } = __nccwpck_require__(3685)
  23204. const stream = __nccwpck_require__(2781)
  23205. const net = __nccwpck_require__(1808)
  23206. const { InvalidArgumentError } = __nccwpck_require__(8045)
  23207. const { Blob } = __nccwpck_require__(4300)
  23208. const nodeUtil = __nccwpck_require__(3837)
  23209. const { stringify } = __nccwpck_require__(3477)
  23210. const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))
  23211. function nop () {}
  23212. function isStream (obj) {
  23213. return obj && typeof obj === 'object' && typeof obj.pipe === 'function' && typeof obj.on === 'function'
  23214. }
  23215. // based on https://github.com/node-fetch/fetch-blob/blob/8ab587d34080de94140b54f07168451e7d0b655e/index.js#L229-L241 (MIT License)
  23216. function isBlobLike (object) {
  23217. return (Blob && object instanceof Blob) || (
  23218. object &&
  23219. typeof object === 'object' &&
  23220. (typeof object.stream === 'function' ||
  23221. typeof object.arrayBuffer === 'function') &&
  23222. /^(Blob|File)$/.test(object[Symbol.toStringTag])
  23223. )
  23224. }
  23225. function buildURL (url, queryParams) {
  23226. if (url.includes('?') || url.includes('#')) {
  23227. throw new Error('Query params cannot be passed when url already contains "?" or "#".')
  23228. }
  23229. const stringified = stringify(queryParams)
  23230. if (stringified) {
  23231. url += '?' + stringified
  23232. }
  23233. return url
  23234. }
  23235. function parseURL (url) {
  23236. if (typeof url === 'string') {
  23237. url = new URL(url)
  23238. if (!/^https?:/.test(url.origin || url.protocol)) {
  23239. throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')
  23240. }
  23241. return url
  23242. }
  23243. if (!url || typeof url !== 'object') {
  23244. throw new InvalidArgumentError('Invalid URL: The URL argument must be a non-null object.')
  23245. }
  23246. if (!/^https?:/.test(url.origin || url.protocol)) {
  23247. throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')
  23248. }
  23249. if (!(url instanceof URL)) {
  23250. if (url.port != null && url.port !== '' && !Number.isFinite(parseInt(url.port))) {
  23251. throw new InvalidArgumentError('Invalid URL: port must be a valid integer or a string representation of an integer.')
  23252. }
  23253. if (url.path != null && typeof url.path !== 'string') {
  23254. throw new InvalidArgumentError('Invalid URL path: the path must be a string or null/undefined.')
  23255. }
  23256. if (url.pathname != null && typeof url.pathname !== 'string') {
  23257. throw new InvalidArgumentError('Invalid URL pathname: the pathname must be a string or null/undefined.')
  23258. }
  23259. if (url.hostname != null && typeof url.hostname !== 'string') {
  23260. throw new InvalidArgumentError('Invalid URL hostname: the hostname must be a string or null/undefined.')
  23261. }
  23262. if (url.origin != null && typeof url.origin !== 'string') {
  23263. throw new InvalidArgumentError('Invalid URL origin: the origin must be a string or null/undefined.')
  23264. }
  23265. const port = url.port != null
  23266. ? url.port
  23267. : (url.protocol === 'https:' ? 443 : 80)
  23268. let origin = url.origin != null
  23269. ? url.origin
  23270. : `${url.protocol}//${url.hostname}:${port}`
  23271. let path = url.path != null
  23272. ? url.path
  23273. : `${url.pathname || ''}${url.search || ''}`
  23274. if (origin.endsWith('/')) {
  23275. origin = origin.substring(0, origin.length - 1)
  23276. }
  23277. if (path && !path.startsWith('/')) {
  23278. path = `/${path}`
  23279. }
  23280. // new URL(path, origin) is unsafe when `path` contains an absolute URL
  23281. // From https://developer.mozilla.org/en-US/docs/Web/API/URL/URL:
  23282. // If first parameter is a relative URL, second param is required, and will be used as the base URL.
  23283. // If first parameter is an absolute URL, a given second param will be ignored.
  23284. url = new URL(origin + path)
  23285. }
  23286. return url
  23287. }
  23288. function parseOrigin (url) {
  23289. url = parseURL(url)
  23290. if (url.pathname !== '/' || url.search || url.hash) {
  23291. throw new InvalidArgumentError('invalid url')
  23292. }
  23293. return url
  23294. }
  23295. function getHostname (host) {
  23296. if (host[0] === '[') {
  23297. const idx = host.indexOf(']')
  23298. assert(idx !== -1)
  23299. return host.substr(1, idx - 1)
  23300. }
  23301. const idx = host.indexOf(':')
  23302. if (idx === -1) return host
  23303. return host.substr(0, idx)
  23304. }
  23305. // IP addresses are not valid server names per RFC6066
  23306. // > Currently, the only server names supported are DNS hostnames
  23307. function getServerName (host) {
  23308. if (!host) {
  23309. return null
  23310. }
  23311. assert.strictEqual(typeof host, 'string')
  23312. const servername = getHostname(host)
  23313. if (net.isIP(servername)) {
  23314. return ''
  23315. }
  23316. return servername
  23317. }
  23318. function deepClone (obj) {
  23319. return JSON.parse(JSON.stringify(obj))
  23320. }
  23321. function isAsyncIterable (obj) {
  23322. return !!(obj != null && typeof obj[Symbol.asyncIterator] === 'function')
  23323. }
  23324. function isIterable (obj) {
  23325. return !!(obj != null && (typeof obj[Symbol.iterator] === 'function' || typeof obj[Symbol.asyncIterator] === 'function'))
  23326. }
  23327. function bodyLength (body) {
  23328. if (body == null) {
  23329. return 0
  23330. } else if (isStream(body)) {
  23331. const state = body._readableState
  23332. return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length)
  23333. ? state.length
  23334. : null
  23335. } else if (isBlobLike(body)) {
  23336. return body.size != null ? body.size : null
  23337. } else if (isBuffer(body)) {
  23338. return body.byteLength
  23339. }
  23340. return null
  23341. }
  23342. function isDestroyed (stream) {
  23343. return !stream || !!(stream.destroyed || stream[kDestroyed])
  23344. }
  23345. function isReadableAborted (stream) {
  23346. const state = stream && stream._readableState
  23347. return isDestroyed(stream) && state && !state.endEmitted
  23348. }
  23349. function destroy (stream, err) {
  23350. if (!isStream(stream) || isDestroyed(stream)) {
  23351. return
  23352. }
  23353. if (typeof stream.destroy === 'function') {
  23354. if (Object.getPrototypeOf(stream).constructor === IncomingMessage) {
  23355. // See: https://github.com/nodejs/node/pull/38505/files
  23356. stream.socket = null
  23357. }
  23358. stream.destroy(err)
  23359. } else if (err) {
  23360. process.nextTick((stream, err) => {
  23361. stream.emit('error', err)
  23362. }, stream, err)
  23363. }
  23364. if (stream.destroyed !== true) {
  23365. stream[kDestroyed] = true
  23366. }
  23367. }
  23368. const KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/
  23369. function parseKeepAliveTimeout (val) {
  23370. const m = val.toString().match(KEEPALIVE_TIMEOUT_EXPR)
  23371. return m ? parseInt(m[1], 10) * 1000 : null
  23372. }
  23373. function parseHeaders (headers, obj = {}) {
  23374. // For H2 support
  23375. if (!Array.isArray(headers)) return headers
  23376. for (let i = 0; i < headers.length; i += 2) {
  23377. const key = headers[i].toString().toLowerCase()
  23378. let val = obj[key]
  23379. if (!val) {
  23380. if (Array.isArray(headers[i + 1])) {
  23381. obj[key] = headers[i + 1]
  23382. } else {
  23383. obj[key] = headers[i + 1].toString('utf8')
  23384. }
  23385. } else {
  23386. if (!Array.isArray(val)) {
  23387. val = [val]
  23388. obj[key] = val
  23389. }
  23390. val.push(headers[i + 1].toString('utf8'))
  23391. }
  23392. }
  23393. // See https://github.com/nodejs/node/pull/46528
  23394. if ('content-length' in obj && 'content-disposition' in obj) {
  23395. obj['content-disposition'] = Buffer.from(obj['content-disposition']).toString('latin1')
  23396. }
  23397. return obj
  23398. }
  23399. function parseRawHeaders (headers) {
  23400. const ret = []
  23401. let hasContentLength = false
  23402. let contentDispositionIdx = -1
  23403. for (let n = 0; n < headers.length; n += 2) {
  23404. const key = headers[n + 0].toString()
  23405. const val = headers[n + 1].toString('utf8')
  23406. if (key.length === 14 && (key === 'content-length' || key.toLowerCase() === 'content-length')) {
  23407. ret.push(key, val)
  23408. hasContentLength = true
  23409. } else if (key.length === 19 && (key === 'content-disposition' || key.toLowerCase() === 'content-disposition')) {
  23410. contentDispositionIdx = ret.push(key, val) - 1
  23411. } else {
  23412. ret.push(key, val)
  23413. }
  23414. }
  23415. // See https://github.com/nodejs/node/pull/46528
  23416. if (hasContentLength && contentDispositionIdx !== -1) {
  23417. ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString('latin1')
  23418. }
  23419. return ret
  23420. }
  23421. function isBuffer (buffer) {
  23422. // See, https://github.com/mcollina/undici/pull/319
  23423. return buffer instanceof Uint8Array || Buffer.isBuffer(buffer)
  23424. }
  23425. function validateHandler (handler, method, upgrade) {
  23426. if (!handler || typeof handler !== 'object') {
  23427. throw new InvalidArgumentError('handler must be an object')
  23428. }
  23429. if (typeof handler.onConnect !== 'function') {
  23430. throw new InvalidArgumentError('invalid onConnect method')
  23431. }
  23432. if (typeof handler.onError !== 'function') {
  23433. throw new InvalidArgumentError('invalid onError method')
  23434. }
  23435. if (typeof handler.onBodySent !== 'function' && handler.onBodySent !== undefined) {
  23436. throw new InvalidArgumentError('invalid onBodySent method')
  23437. }
  23438. if (upgrade || method === 'CONNECT') {
  23439. if (typeof handler.onUpgrade !== 'function') {
  23440. throw new InvalidArgumentError('invalid onUpgrade method')
  23441. }
  23442. } else {
  23443. if (typeof handler.onHeaders !== 'function') {
  23444. throw new InvalidArgumentError('invalid onHeaders method')
  23445. }
  23446. if (typeof handler.onData !== 'function') {
  23447. throw new InvalidArgumentError('invalid onData method')
  23448. }
  23449. if (typeof handler.onComplete !== 'function') {
  23450. throw new InvalidArgumentError('invalid onComplete method')
  23451. }
  23452. }
  23453. }
  23454. // A body is disturbed if it has been read from and it cannot
  23455. // be re-used without losing state or data.
  23456. function isDisturbed (body) {
  23457. return !!(body && (
  23458. stream.isDisturbed
  23459. ? stream.isDisturbed(body) || body[kBodyUsed] // TODO (fix): Why is body[kBodyUsed] needed?
  23460. : body[kBodyUsed] ||
  23461. body.readableDidRead ||
  23462. (body._readableState && body._readableState.dataEmitted) ||
  23463. isReadableAborted(body)
  23464. ))
  23465. }
  23466. function isErrored (body) {
  23467. return !!(body && (
  23468. stream.isErrored
  23469. ? stream.isErrored(body)
  23470. : /state: 'errored'/.test(nodeUtil.inspect(body)
  23471. )))
  23472. }
  23473. function isReadable (body) {
  23474. return !!(body && (
  23475. stream.isReadable
  23476. ? stream.isReadable(body)
  23477. : /state: 'readable'/.test(nodeUtil.inspect(body)
  23478. )))
  23479. }
  23480. function getSocketInfo (socket) {
  23481. return {
  23482. localAddress: socket.localAddress,
  23483. localPort: socket.localPort,
  23484. remoteAddress: socket.remoteAddress,
  23485. remotePort: socket.remotePort,
  23486. remoteFamily: socket.remoteFamily,
  23487. timeout: socket.timeout,
  23488. bytesWritten: socket.bytesWritten,
  23489. bytesRead: socket.bytesRead
  23490. }
  23491. }
  23492. async function * convertIterableToBuffer (iterable) {
  23493. for await (const chunk of iterable) {
  23494. yield Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)
  23495. }
  23496. }
  23497. let ReadableStream
  23498. function ReadableStreamFrom (iterable) {
  23499. if (!ReadableStream) {
  23500. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  23501. }
  23502. if (ReadableStream.from) {
  23503. return ReadableStream.from(convertIterableToBuffer(iterable))
  23504. }
  23505. let iterator
  23506. return new ReadableStream(
  23507. {
  23508. async start () {
  23509. iterator = iterable[Symbol.asyncIterator]()
  23510. },
  23511. async pull (controller) {
  23512. const { done, value } = await iterator.next()
  23513. if (done) {
  23514. queueMicrotask(() => {
  23515. controller.close()
  23516. })
  23517. } else {
  23518. const buf = Buffer.isBuffer(value) ? value : Buffer.from(value)
  23519. controller.enqueue(new Uint8Array(buf))
  23520. }
  23521. return controller.desiredSize > 0
  23522. },
  23523. async cancel (reason) {
  23524. await iterator.return()
  23525. }
  23526. },
  23527. 0
  23528. )
  23529. }
  23530. // The chunk should be a FormData instance and contains
  23531. // all the required methods.
  23532. function isFormDataLike (object) {
  23533. return (
  23534. object &&
  23535. typeof object === 'object' &&
  23536. typeof object.append === 'function' &&
  23537. typeof object.delete === 'function' &&
  23538. typeof object.get === 'function' &&
  23539. typeof object.getAll === 'function' &&
  23540. typeof object.has === 'function' &&
  23541. typeof object.set === 'function' &&
  23542. object[Symbol.toStringTag] === 'FormData'
  23543. )
  23544. }
  23545. function throwIfAborted (signal) {
  23546. if (!signal) { return }
  23547. if (typeof signal.throwIfAborted === 'function') {
  23548. signal.throwIfAborted()
  23549. } else {
  23550. if (signal.aborted) {
  23551. // DOMException not available < v17.0.0
  23552. const err = new Error('The operation was aborted')
  23553. err.name = 'AbortError'
  23554. throw err
  23555. }
  23556. }
  23557. }
  23558. let events
  23559. function addAbortListener (signal, listener) {
  23560. if (typeof Symbol.dispose === 'symbol') {
  23561. if (!events) {
  23562. events = __nccwpck_require__(2361)
  23563. }
  23564. if (typeof events.addAbortListener === 'function' && 'aborted' in signal) {
  23565. return events.addAbortListener(signal, listener)
  23566. }
  23567. }
  23568. if ('addEventListener' in signal) {
  23569. signal.addEventListener('abort', listener, { once: true })
  23570. return () => signal.removeEventListener('abort', listener)
  23571. }
  23572. signal.addListener('abort', listener)
  23573. return () => signal.removeListener('abort', listener)
  23574. }
  23575. const hasToWellFormed = !!String.prototype.toWellFormed
  23576. /**
  23577. * @param {string} val
  23578. */
  23579. function toUSVString (val) {
  23580. if (hasToWellFormed) {
  23581. return `${val}`.toWellFormed()
  23582. } else if (nodeUtil.toUSVString) {
  23583. return nodeUtil.toUSVString(val)
  23584. }
  23585. return `${val}`
  23586. }
  23587. const kEnumerableProperty = Object.create(null)
  23588. kEnumerableProperty.enumerable = true
  23589. module.exports = {
  23590. kEnumerableProperty,
  23591. nop,
  23592. isDisturbed,
  23593. isErrored,
  23594. isReadable,
  23595. toUSVString,
  23596. isReadableAborted,
  23597. isBlobLike,
  23598. parseOrigin,
  23599. parseURL,
  23600. getServerName,
  23601. isStream,
  23602. isIterable,
  23603. isAsyncIterable,
  23604. isDestroyed,
  23605. parseRawHeaders,
  23606. parseHeaders,
  23607. parseKeepAliveTimeout,
  23608. destroy,
  23609. bodyLength,
  23610. deepClone,
  23611. ReadableStreamFrom,
  23612. isBuffer,
  23613. validateHandler,
  23614. getSocketInfo,
  23615. isFormDataLike,
  23616. buildURL,
  23617. throwIfAborted,
  23618. addAbortListener,
  23619. nodeMajor,
  23620. nodeMinor,
  23621. nodeHasAutoSelectFamily: nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 13)
  23622. }
  23623. /***/ }),
  23624. /***/ 4839:
  23625. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23626. "use strict";
  23627. const Dispatcher = __nccwpck_require__(412)
  23628. const {
  23629. ClientDestroyedError,
  23630. ClientClosedError,
  23631. InvalidArgumentError
  23632. } = __nccwpck_require__(8045)
  23633. const { kDestroy, kClose, kDispatch, kInterceptors } = __nccwpck_require__(2785)
  23634. const kDestroyed = Symbol('destroyed')
  23635. const kClosed = Symbol('closed')
  23636. const kOnDestroyed = Symbol('onDestroyed')
  23637. const kOnClosed = Symbol('onClosed')
  23638. const kInterceptedDispatch = Symbol('Intercepted Dispatch')
  23639. class DispatcherBase extends Dispatcher {
  23640. constructor () {
  23641. super()
  23642. this[kDestroyed] = false
  23643. this[kOnDestroyed] = null
  23644. this[kClosed] = false
  23645. this[kOnClosed] = []
  23646. }
  23647. get destroyed () {
  23648. return this[kDestroyed]
  23649. }
  23650. get closed () {
  23651. return this[kClosed]
  23652. }
  23653. get interceptors () {
  23654. return this[kInterceptors]
  23655. }
  23656. set interceptors (newInterceptors) {
  23657. if (newInterceptors) {
  23658. for (let i = newInterceptors.length - 1; i >= 0; i--) {
  23659. const interceptor = this[kInterceptors][i]
  23660. if (typeof interceptor !== 'function') {
  23661. throw new InvalidArgumentError('interceptor must be an function')
  23662. }
  23663. }
  23664. }
  23665. this[kInterceptors] = newInterceptors
  23666. }
  23667. close (callback) {
  23668. if (callback === undefined) {
  23669. return new Promise((resolve, reject) => {
  23670. this.close((err, data) => {
  23671. return err ? reject(err) : resolve(data)
  23672. })
  23673. })
  23674. }
  23675. if (typeof callback !== 'function') {
  23676. throw new InvalidArgumentError('invalid callback')
  23677. }
  23678. if (this[kDestroyed]) {
  23679. queueMicrotask(() => callback(new ClientDestroyedError(), null))
  23680. return
  23681. }
  23682. if (this[kClosed]) {
  23683. if (this[kOnClosed]) {
  23684. this[kOnClosed].push(callback)
  23685. } else {
  23686. queueMicrotask(() => callback(null, null))
  23687. }
  23688. return
  23689. }
  23690. this[kClosed] = true
  23691. this[kOnClosed].push(callback)
  23692. const onClosed = () => {
  23693. const callbacks = this[kOnClosed]
  23694. this[kOnClosed] = null
  23695. for (let i = 0; i < callbacks.length; i++) {
  23696. callbacks[i](null, null)
  23697. }
  23698. }
  23699. // Should not error.
  23700. this[kClose]()
  23701. .then(() => this.destroy())
  23702. .then(() => {
  23703. queueMicrotask(onClosed)
  23704. })
  23705. }
  23706. destroy (err, callback) {
  23707. if (typeof err === 'function') {
  23708. callback = err
  23709. err = null
  23710. }
  23711. if (callback === undefined) {
  23712. return new Promise((resolve, reject) => {
  23713. this.destroy(err, (err, data) => {
  23714. return err ? /* istanbul ignore next: should never error */ reject(err) : resolve(data)
  23715. })
  23716. })
  23717. }
  23718. if (typeof callback !== 'function') {
  23719. throw new InvalidArgumentError('invalid callback')
  23720. }
  23721. if (this[kDestroyed]) {
  23722. if (this[kOnDestroyed]) {
  23723. this[kOnDestroyed].push(callback)
  23724. } else {
  23725. queueMicrotask(() => callback(null, null))
  23726. }
  23727. return
  23728. }
  23729. if (!err) {
  23730. err = new ClientDestroyedError()
  23731. }
  23732. this[kDestroyed] = true
  23733. this[kOnDestroyed] = this[kOnDestroyed] || []
  23734. this[kOnDestroyed].push(callback)
  23735. const onDestroyed = () => {
  23736. const callbacks = this[kOnDestroyed]
  23737. this[kOnDestroyed] = null
  23738. for (let i = 0; i < callbacks.length; i++) {
  23739. callbacks[i](null, null)
  23740. }
  23741. }
  23742. // Should not error.
  23743. this[kDestroy](err).then(() => {
  23744. queueMicrotask(onDestroyed)
  23745. })
  23746. }
  23747. [kInterceptedDispatch] (opts, handler) {
  23748. if (!this[kInterceptors] || this[kInterceptors].length === 0) {
  23749. this[kInterceptedDispatch] = this[kDispatch]
  23750. return this[kDispatch](opts, handler)
  23751. }
  23752. let dispatch = this[kDispatch].bind(this)
  23753. for (let i = this[kInterceptors].length - 1; i >= 0; i--) {
  23754. dispatch = this[kInterceptors][i](dispatch)
  23755. }
  23756. this[kInterceptedDispatch] = dispatch
  23757. return dispatch(opts, handler)
  23758. }
  23759. dispatch (opts, handler) {
  23760. if (!handler || typeof handler !== 'object') {
  23761. throw new InvalidArgumentError('handler must be an object')
  23762. }
  23763. try {
  23764. if (!opts || typeof opts !== 'object') {
  23765. throw new InvalidArgumentError('opts must be an object.')
  23766. }
  23767. if (this[kDestroyed] || this[kOnDestroyed]) {
  23768. throw new ClientDestroyedError()
  23769. }
  23770. if (this[kClosed]) {
  23771. throw new ClientClosedError()
  23772. }
  23773. return this[kInterceptedDispatch](opts, handler)
  23774. } catch (err) {
  23775. if (typeof handler.onError !== 'function') {
  23776. throw new InvalidArgumentError('invalid onError method')
  23777. }
  23778. handler.onError(err)
  23779. return false
  23780. }
  23781. }
  23782. }
  23783. module.exports = DispatcherBase
  23784. /***/ }),
  23785. /***/ 412:
  23786. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23787. "use strict";
  23788. const EventEmitter = __nccwpck_require__(2361)
  23789. class Dispatcher extends EventEmitter {
  23790. dispatch () {
  23791. throw new Error('not implemented')
  23792. }
  23793. close () {
  23794. throw new Error('not implemented')
  23795. }
  23796. destroy () {
  23797. throw new Error('not implemented')
  23798. }
  23799. }
  23800. module.exports = Dispatcher
  23801. /***/ }),
  23802. /***/ 9990:
  23803. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  23804. "use strict";
  23805. const Busboy = __nccwpck_require__(3438)
  23806. const util = __nccwpck_require__(3983)
  23807. const {
  23808. ReadableStreamFrom,
  23809. isBlobLike,
  23810. isReadableStreamLike,
  23811. readableStreamClose,
  23812. createDeferredPromise,
  23813. fullyReadBody
  23814. } = __nccwpck_require__(2538)
  23815. const { FormData } = __nccwpck_require__(2015)
  23816. const { kState } = __nccwpck_require__(5861)
  23817. const { webidl } = __nccwpck_require__(1744)
  23818. const { DOMException, structuredClone } = __nccwpck_require__(1037)
  23819. const { Blob, File: NativeFile } = __nccwpck_require__(4300)
  23820. const { kBodyUsed } = __nccwpck_require__(2785)
  23821. const assert = __nccwpck_require__(9491)
  23822. const { isErrored } = __nccwpck_require__(3983)
  23823. const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
  23824. const { File: UndiciFile } = __nccwpck_require__(8511)
  23825. const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
  23826. let ReadableStream = globalThis.ReadableStream
  23827. /** @type {globalThis['File']} */
  23828. const File = NativeFile ?? UndiciFile
  23829. // https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  23830. function extractBody (object, keepalive = false) {
  23831. if (!ReadableStream) {
  23832. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  23833. }
  23834. // 1. Let stream be null.
  23835. let stream = null
  23836. // 2. If object is a ReadableStream object, then set stream to object.
  23837. if (object instanceof ReadableStream) {
  23838. stream = object
  23839. } else if (isBlobLike(object)) {
  23840. // 3. Otherwise, if object is a Blob object, set stream to the
  23841. // result of running object’s get stream.
  23842. stream = object.stream()
  23843. } else {
  23844. // 4. Otherwise, set stream to a new ReadableStream object, and set
  23845. // up stream.
  23846. stream = new ReadableStream({
  23847. async pull (controller) {
  23848. controller.enqueue(
  23849. typeof source === 'string' ? new TextEncoder().encode(source) : source
  23850. )
  23851. queueMicrotask(() => readableStreamClose(controller))
  23852. },
  23853. start () {},
  23854. type: undefined
  23855. })
  23856. }
  23857. // 5. Assert: stream is a ReadableStream object.
  23858. assert(isReadableStreamLike(stream))
  23859. // 6. Let action be null.
  23860. let action = null
  23861. // 7. Let source be null.
  23862. let source = null
  23863. // 8. Let length be null.
  23864. let length = null
  23865. // 9. Let type be null.
  23866. let type = null
  23867. // 10. Switch on object:
  23868. if (typeof object === 'string') {
  23869. // Set source to the UTF-8 encoding of object.
  23870. // Note: setting source to a Uint8Array here breaks some mocking assumptions.
  23871. source = object
  23872. // Set type to `text/plain;charset=UTF-8`.
  23873. type = 'text/plain;charset=UTF-8'
  23874. } else if (object instanceof URLSearchParams) {
  23875. // URLSearchParams
  23876. // spec says to run application/x-www-form-urlencoded on body.list
  23877. // this is implemented in Node.js as apart of an URLSearchParams instance toString method
  23878. // See: https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L490
  23879. // and https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L1100
  23880. // Set source to the result of running the application/x-www-form-urlencoded serializer with object’s list.
  23881. source = object.toString()
  23882. // Set type to `application/x-www-form-urlencoded;charset=UTF-8`.
  23883. type = 'application/x-www-form-urlencoded;charset=UTF-8'
  23884. } else if (isArrayBuffer(object)) {
  23885. // BufferSource/ArrayBuffer
  23886. // Set source to a copy of the bytes held by object.
  23887. source = new Uint8Array(object.slice())
  23888. } else if (ArrayBuffer.isView(object)) {
  23889. // BufferSource/ArrayBufferView
  23890. // Set source to a copy of the bytes held by object.
  23891. source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
  23892. } else if (util.isFormDataLike(object)) {
  23893. const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
  23894. const prefix = `--${boundary}\r\nContent-Disposition: form-data`
  23895. /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
  23896. const escape = (str) =>
  23897. str.replace(/\n/g, '%0A').replace(/\r/g, '%0D').replace(/"/g, '%22')
  23898. const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, '\r\n')
  23899. // Set action to this step: run the multipart/form-data
  23900. // encoding algorithm, with object’s entry list and UTF-8.
  23901. // - This ensures that the body is immutable and can't be changed afterwords
  23902. // - That the content-length is calculated in advance.
  23903. // - And that all parts are pre-encoded and ready to be sent.
  23904. const enc = new TextEncoder()
  23905. const blobParts = []
  23906. const rn = new Uint8Array([13, 10]) // '\r\n'
  23907. length = 0
  23908. let hasUnknownSizeValue = false
  23909. for (const [name, value] of object) {
  23910. if (typeof value === 'string') {
  23911. const chunk = enc.encode(prefix +
  23912. `; name="${escape(normalizeLinefeeds(name))}"` +
  23913. `\r\n\r\n${normalizeLinefeeds(value)}\r\n`)
  23914. blobParts.push(chunk)
  23915. length += chunk.byteLength
  23916. } else {
  23917. const chunk = enc.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"` +
  23918. (value.name ? `; filename="${escape(value.name)}"` : '') + '\r\n' +
  23919. `Content-Type: ${
  23920. value.type || 'application/octet-stream'
  23921. }\r\n\r\n`)
  23922. blobParts.push(chunk, value, rn)
  23923. if (typeof value.size === 'number') {
  23924. length += chunk.byteLength + value.size + rn.byteLength
  23925. } else {
  23926. hasUnknownSizeValue = true
  23927. }
  23928. }
  23929. }
  23930. const chunk = enc.encode(`--${boundary}--`)
  23931. blobParts.push(chunk)
  23932. length += chunk.byteLength
  23933. if (hasUnknownSizeValue) {
  23934. length = null
  23935. }
  23936. // Set source to object.
  23937. source = object
  23938. action = async function * () {
  23939. for (const part of blobParts) {
  23940. if (part.stream) {
  23941. yield * part.stream()
  23942. } else {
  23943. yield part
  23944. }
  23945. }
  23946. }
  23947. // Set type to `multipart/form-data; boundary=`,
  23948. // followed by the multipart/form-data boundary string generated
  23949. // by the multipart/form-data encoding algorithm.
  23950. type = 'multipart/form-data; boundary=' + boundary
  23951. } else if (isBlobLike(object)) {
  23952. // Blob
  23953. // Set source to object.
  23954. source = object
  23955. // Set length to object’s size.
  23956. length = object.size
  23957. // If object’s type attribute is not the empty byte sequence, set
  23958. // type to its value.
  23959. if (object.type) {
  23960. type = object.type
  23961. }
  23962. } else if (typeof object[Symbol.asyncIterator] === 'function') {
  23963. // If keepalive is true, then throw a TypeError.
  23964. if (keepalive) {
  23965. throw new TypeError('keepalive')
  23966. }
  23967. // If object is disturbed or locked, then throw a TypeError.
  23968. if (util.isDisturbed(object) || object.locked) {
  23969. throw new TypeError(
  23970. 'Response body object should not be disturbed or locked'
  23971. )
  23972. }
  23973. stream =
  23974. object instanceof ReadableStream ? object : ReadableStreamFrom(object)
  23975. }
  23976. // 11. If source is a byte sequence, then set action to a
  23977. // step that returns source and length to source’s length.
  23978. if (typeof source === 'string' || util.isBuffer(source)) {
  23979. length = Buffer.byteLength(source)
  23980. }
  23981. // 12. If action is non-null, then run these steps in in parallel:
  23982. if (action != null) {
  23983. // Run action.
  23984. let iterator
  23985. stream = new ReadableStream({
  23986. async start () {
  23987. iterator = action(object)[Symbol.asyncIterator]()
  23988. },
  23989. async pull (controller) {
  23990. const { value, done } = await iterator.next()
  23991. if (done) {
  23992. // When running action is done, close stream.
  23993. queueMicrotask(() => {
  23994. controller.close()
  23995. })
  23996. } else {
  23997. // Whenever one or more bytes are available and stream is not errored,
  23998. // enqueue a Uint8Array wrapping an ArrayBuffer containing the available
  23999. // bytes into stream.
  24000. if (!isErrored(stream)) {
  24001. controller.enqueue(new Uint8Array(value))
  24002. }
  24003. }
  24004. return controller.desiredSize > 0
  24005. },
  24006. async cancel (reason) {
  24007. await iterator.return()
  24008. },
  24009. type: undefined
  24010. })
  24011. }
  24012. // 13. Let body be a body whose stream is stream, source is source,
  24013. // and length is length.
  24014. const body = { stream, source, length }
  24015. // 14. Return (body, type).
  24016. return [body, type]
  24017. }
  24018. // https://fetch.spec.whatwg.org/#bodyinit-safely-extract
  24019. function safelyExtractBody (object, keepalive = false) {
  24020. if (!ReadableStream) {
  24021. // istanbul ignore next
  24022. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  24023. }
  24024. // To safely extract a body and a `Content-Type` value from
  24025. // a byte sequence or BodyInit object object, run these steps:
  24026. // 1. If object is a ReadableStream object, then:
  24027. if (object instanceof ReadableStream) {
  24028. // Assert: object is neither disturbed nor locked.
  24029. // istanbul ignore next
  24030. assert(!util.isDisturbed(object), 'The body has already been consumed.')
  24031. // istanbul ignore next
  24032. assert(!object.locked, 'The stream is locked.')
  24033. }
  24034. // 2. Return the results of extracting object.
  24035. return extractBody(object, keepalive)
  24036. }
  24037. function cloneBody (body) {
  24038. // To clone a body body, run these steps:
  24039. // https://fetch.spec.whatwg.org/#concept-body-clone
  24040. // 1. Let « out1, out2 » be the result of teeing body’s stream.
  24041. const [out1, out2] = body.stream.tee()
  24042. const out2Clone = structuredClone(out2, { transfer: [out2] })
  24043. // This, for whatever reasons, unrefs out2Clone which allows
  24044. // the process to exit by itself.
  24045. const [, finalClone] = out2Clone.tee()
  24046. // 2. Set body’s stream to out1.
  24047. body.stream = out1
  24048. // 3. Return a body whose stream is out2 and other members are copied from body.
  24049. return {
  24050. stream: finalClone,
  24051. length: body.length,
  24052. source: body.source
  24053. }
  24054. }
  24055. async function * consumeBody (body) {
  24056. if (body) {
  24057. if (isUint8Array(body)) {
  24058. yield body
  24059. } else {
  24060. const stream = body.stream
  24061. if (util.isDisturbed(stream)) {
  24062. throw new TypeError('The body has already been consumed.')
  24063. }
  24064. if (stream.locked) {
  24065. throw new TypeError('The stream is locked.')
  24066. }
  24067. // Compat.
  24068. stream[kBodyUsed] = true
  24069. yield * stream
  24070. }
  24071. }
  24072. }
  24073. function throwIfAborted (state) {
  24074. if (state.aborted) {
  24075. throw new DOMException('The operation was aborted.', 'AbortError')
  24076. }
  24077. }
  24078. function bodyMixinMethods (instance) {
  24079. const methods = {
  24080. blob () {
  24081. // The blob() method steps are to return the result of
  24082. // running consume body with this and the following step
  24083. // given a byte sequence bytes: return a Blob whose
  24084. // contents are bytes and whose type attribute is this’s
  24085. // MIME type.
  24086. return specConsumeBody(this, (bytes) => {
  24087. let mimeType = bodyMimeType(this)
  24088. if (mimeType === 'failure') {
  24089. mimeType = ''
  24090. } else if (mimeType) {
  24091. mimeType = serializeAMimeType(mimeType)
  24092. }
  24093. // Return a Blob whose contents are bytes and type attribute
  24094. // is mimeType.
  24095. return new Blob([bytes], { type: mimeType })
  24096. }, instance)
  24097. },
  24098. arrayBuffer () {
  24099. // The arrayBuffer() method steps are to return the result
  24100. // of running consume body with this and the following step
  24101. // given a byte sequence bytes: return a new ArrayBuffer
  24102. // whose contents are bytes.
  24103. return specConsumeBody(this, (bytes) => {
  24104. return new Uint8Array(bytes).buffer
  24105. }, instance)
  24106. },
  24107. text () {
  24108. // The text() method steps are to return the result of running
  24109. // consume body with this and UTF-8 decode.
  24110. return specConsumeBody(this, utf8DecodeBytes, instance)
  24111. },
  24112. json () {
  24113. // The json() method steps are to return the result of running
  24114. // consume body with this and parse JSON from bytes.
  24115. return specConsumeBody(this, parseJSONFromBytes, instance)
  24116. },
  24117. async formData () {
  24118. webidl.brandCheck(this, instance)
  24119. throwIfAborted(this[kState])
  24120. const contentType = this.headers.get('Content-Type')
  24121. // If mimeType’s essence is "multipart/form-data", then:
  24122. if (/multipart\/form-data/.test(contentType)) {
  24123. const headers = {}
  24124. for (const [key, value] of this.headers) headers[key.toLowerCase()] = value
  24125. const responseFormData = new FormData()
  24126. let busboy
  24127. try {
  24128. busboy = new Busboy({
  24129. headers,
  24130. preservePath: true
  24131. })
  24132. } catch (err) {
  24133. throw new DOMException(`${err}`, 'AbortError')
  24134. }
  24135. busboy.on('field', (name, value) => {
  24136. responseFormData.append(name, value)
  24137. })
  24138. busboy.on('file', (name, value, filename, encoding, mimeType) => {
  24139. const chunks = []
  24140. if (encoding === 'base64' || encoding.toLowerCase() === 'base64') {
  24141. let base64chunk = ''
  24142. value.on('data', (chunk) => {
  24143. base64chunk += chunk.toString().replace(/[\r\n]/gm, '')
  24144. const end = base64chunk.length - base64chunk.length % 4
  24145. chunks.push(Buffer.from(base64chunk.slice(0, end), 'base64'))
  24146. base64chunk = base64chunk.slice(end)
  24147. })
  24148. value.on('end', () => {
  24149. chunks.push(Buffer.from(base64chunk, 'base64'))
  24150. responseFormData.append(name, new File(chunks, filename, { type: mimeType }))
  24151. })
  24152. } else {
  24153. value.on('data', (chunk) => {
  24154. chunks.push(chunk)
  24155. })
  24156. value.on('end', () => {
  24157. responseFormData.append(name, new File(chunks, filename, { type: mimeType }))
  24158. })
  24159. }
  24160. })
  24161. const busboyResolve = new Promise((resolve, reject) => {
  24162. busboy.on('finish', resolve)
  24163. busboy.on('error', (err) => reject(new TypeError(err)))
  24164. })
  24165. if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk)
  24166. busboy.end()
  24167. await busboyResolve
  24168. return responseFormData
  24169. } else if (/application\/x-www-form-urlencoded/.test(contentType)) {
  24170. // Otherwise, if mimeType’s essence is "application/x-www-form-urlencoded", then:
  24171. // 1. Let entries be the result of parsing bytes.
  24172. let entries
  24173. try {
  24174. let text = ''
  24175. // application/x-www-form-urlencoded parser will keep the BOM.
  24176. // https://url.spec.whatwg.org/#concept-urlencoded-parser
  24177. const textDecoder = new TextDecoder('utf-8', { ignoreBOM: true })
  24178. for await (const chunk of consumeBody(this[kState].body)) {
  24179. if (!isUint8Array(chunk)) {
  24180. throw new TypeError('Expected Uint8Array chunk')
  24181. }
  24182. text += textDecoder.decode(chunk, { stream: true })
  24183. }
  24184. text += textDecoder.decode()
  24185. entries = new URLSearchParams(text)
  24186. } catch (err) {
  24187. // istanbul ignore next: Unclear when new URLSearchParams can fail on a string.
  24188. // 2. If entries is failure, then throw a TypeError.
  24189. throw Object.assign(new TypeError(), { cause: err })
  24190. }
  24191. // 3. Return a new FormData object whose entries are entries.
  24192. const formData = new FormData()
  24193. for (const [name, value] of entries) {
  24194. formData.append(name, value)
  24195. }
  24196. return formData
  24197. } else {
  24198. // Wait a tick before checking if the request has been aborted.
  24199. // Otherwise, a TypeError can be thrown when an AbortError should.
  24200. await Promise.resolve()
  24201. throwIfAborted(this[kState])
  24202. // Otherwise, throw a TypeError.
  24203. throw webidl.errors.exception({
  24204. header: `${instance.name}.formData`,
  24205. message: 'Could not parse content as FormData.'
  24206. })
  24207. }
  24208. }
  24209. }
  24210. return methods
  24211. }
  24212. function mixinBody (prototype) {
  24213. Object.assign(prototype.prototype, bodyMixinMethods(prototype))
  24214. }
  24215. /**
  24216. * @see https://fetch.spec.whatwg.org/#concept-body-consume-body
  24217. * @param {Response|Request} object
  24218. * @param {(value: unknown) => unknown} convertBytesToJSValue
  24219. * @param {Response|Request} instance
  24220. */
  24221. async function specConsumeBody (object, convertBytesToJSValue, instance) {
  24222. webidl.brandCheck(object, instance)
  24223. throwIfAborted(object[kState])
  24224. // 1. If object is unusable, then return a promise rejected
  24225. // with a TypeError.
  24226. if (bodyUnusable(object[kState].body)) {
  24227. throw new TypeError('Body is unusable')
  24228. }
  24229. // 2. Let promise be a new promise.
  24230. const promise = createDeferredPromise()
  24231. // 3. Let errorSteps given error be to reject promise with error.
  24232. const errorSteps = (error) => promise.reject(error)
  24233. // 4. Let successSteps given a byte sequence data be to resolve
  24234. // promise with the result of running convertBytesToJSValue
  24235. // with data. If that threw an exception, then run errorSteps
  24236. // with that exception.
  24237. const successSteps = (data) => {
  24238. try {
  24239. promise.resolve(convertBytesToJSValue(data))
  24240. } catch (e) {
  24241. errorSteps(e)
  24242. }
  24243. }
  24244. // 5. If object’s body is null, then run successSteps with an
  24245. // empty byte sequence.
  24246. if (object[kState].body == null) {
  24247. successSteps(new Uint8Array())
  24248. return promise.promise
  24249. }
  24250. // 6. Otherwise, fully read object’s body given successSteps,
  24251. // errorSteps, and object’s relevant global object.
  24252. await fullyReadBody(object[kState].body, successSteps, errorSteps)
  24253. // 7. Return promise.
  24254. return promise.promise
  24255. }
  24256. // https://fetch.spec.whatwg.org/#body-unusable
  24257. function bodyUnusable (body) {
  24258. // An object including the Body interface mixin is
  24259. // said to be unusable if its body is non-null and
  24260. // its body’s stream is disturbed or locked.
  24261. return body != null && (body.stream.locked || util.isDisturbed(body.stream))
  24262. }
  24263. /**
  24264. * @see https://encoding.spec.whatwg.org/#utf-8-decode
  24265. * @param {Buffer} buffer
  24266. */
  24267. function utf8DecodeBytes (buffer) {
  24268. if (buffer.length === 0) {
  24269. return ''
  24270. }
  24271. // 1. Let buffer be the result of peeking three bytes from
  24272. // ioQueue, converted to a byte sequence.
  24273. // 2. If buffer is 0xEF 0xBB 0xBF, then read three
  24274. // bytes from ioQueue. (Do nothing with those bytes.)
  24275. if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {
  24276. buffer = buffer.subarray(3)
  24277. }
  24278. // 3. Process a queue with an instance of UTF-8’s
  24279. // decoder, ioQueue, output, and "replacement".
  24280. const output = new TextDecoder().decode(buffer)
  24281. // 4. Return output.
  24282. return output
  24283. }
  24284. /**
  24285. * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value
  24286. * @param {Uint8Array} bytes
  24287. */
  24288. function parseJSONFromBytes (bytes) {
  24289. return JSON.parse(utf8DecodeBytes(bytes))
  24290. }
  24291. /**
  24292. * @see https://fetch.spec.whatwg.org/#concept-body-mime-type
  24293. * @param {import('./response').Response|import('./request').Request} object
  24294. */
  24295. function bodyMimeType (object) {
  24296. const { headersList } = object[kState]
  24297. const contentType = headersList.get('content-type')
  24298. if (contentType === null) {
  24299. return 'failure'
  24300. }
  24301. return parseMIMEType(contentType)
  24302. }
  24303. module.exports = {
  24304. extractBody,
  24305. safelyExtractBody,
  24306. cloneBody,
  24307. mixinBody
  24308. }
  24309. /***/ }),
  24310. /***/ 1037:
  24311. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24312. "use strict";
  24313. const { MessageChannel, receiveMessageOnPort } = __nccwpck_require__(1267)
  24314. const corsSafeListedMethods = ['GET', 'HEAD', 'POST']
  24315. const nullBodyStatus = [101, 204, 205, 304]
  24316. const redirectStatus = [301, 302, 303, 307, 308]
  24317. // https://fetch.spec.whatwg.org/#block-bad-port
  24318. const badPorts = [
  24319. '1', '7', '9', '11', '13', '15', '17', '19', '20', '21', '22', '23', '25', '37', '42', '43', '53', '69', '77', '79',
  24320. '87', '95', '101', '102', '103', '104', '109', '110', '111', '113', '115', '117', '119', '123', '135', '137',
  24321. '139', '143', '161', '179', '389', '427', '465', '512', '513', '514', '515', '526', '530', '531', '532',
  24322. '540', '548', '554', '556', '563', '587', '601', '636', '989', '990', '993', '995', '1719', '1720', '1723',
  24323. '2049', '3659', '4045', '5060', '5061', '6000', '6566', '6665', '6666', '6667', '6668', '6669', '6697',
  24324. '10080'
  24325. ]
  24326. // https://w3c.github.io/webappsec-referrer-policy/#referrer-policies
  24327. const referrerPolicy = [
  24328. '',
  24329. 'no-referrer',
  24330. 'no-referrer-when-downgrade',
  24331. 'same-origin',
  24332. 'origin',
  24333. 'strict-origin',
  24334. 'origin-when-cross-origin',
  24335. 'strict-origin-when-cross-origin',
  24336. 'unsafe-url'
  24337. ]
  24338. const requestRedirect = ['follow', 'manual', 'error']
  24339. const safeMethods = ['GET', 'HEAD', 'OPTIONS', 'TRACE']
  24340. const requestMode = ['navigate', 'same-origin', 'no-cors', 'cors']
  24341. const requestCredentials = ['omit', 'same-origin', 'include']
  24342. const requestCache = [
  24343. 'default',
  24344. 'no-store',
  24345. 'reload',
  24346. 'no-cache',
  24347. 'force-cache',
  24348. 'only-if-cached'
  24349. ]
  24350. // https://fetch.spec.whatwg.org/#request-body-header-name
  24351. const requestBodyHeader = [
  24352. 'content-encoding',
  24353. 'content-language',
  24354. 'content-location',
  24355. 'content-type',
  24356. // See https://github.com/nodejs/undici/issues/2021
  24357. // 'Content-Length' is a forbidden header name, which is typically
  24358. // removed in the Headers implementation. However, undici doesn't
  24359. // filter out headers, so we add it here.
  24360. 'content-length'
  24361. ]
  24362. // https://fetch.spec.whatwg.org/#enumdef-requestduplex
  24363. const requestDuplex = [
  24364. 'half'
  24365. ]
  24366. // http://fetch.spec.whatwg.org/#forbidden-method
  24367. const forbiddenMethods = ['CONNECT', 'TRACE', 'TRACK']
  24368. const subresource = [
  24369. 'audio',
  24370. 'audioworklet',
  24371. 'font',
  24372. 'image',
  24373. 'manifest',
  24374. 'paintworklet',
  24375. 'script',
  24376. 'style',
  24377. 'track',
  24378. 'video',
  24379. 'xslt',
  24380. ''
  24381. ]
  24382. /** @type {globalThis['DOMException']} */
  24383. const DOMException = globalThis.DOMException ?? (() => {
  24384. // DOMException was only made a global in Node v17.0.0,
  24385. // but fetch supports >= v16.8.
  24386. try {
  24387. atob('~')
  24388. } catch (err) {
  24389. return Object.getPrototypeOf(err).constructor
  24390. }
  24391. })()
  24392. let channel
  24393. /** @type {globalThis['structuredClone']} */
  24394. const structuredClone =
  24395. globalThis.structuredClone ??
  24396. // https://github.com/nodejs/node/blob/b27ae24dcc4251bad726d9d84baf678d1f707fed/lib/internal/structured_clone.js
  24397. // structuredClone was added in v17.0.0, but fetch supports v16.8
  24398. function structuredClone (value, options = undefined) {
  24399. if (arguments.length === 0) {
  24400. throw new TypeError('missing argument')
  24401. }
  24402. if (!channel) {
  24403. channel = new MessageChannel()
  24404. }
  24405. channel.port1.unref()
  24406. channel.port2.unref()
  24407. channel.port1.postMessage(value, options?.transfer)
  24408. return receiveMessageOnPort(channel.port2).message
  24409. }
  24410. module.exports = {
  24411. DOMException,
  24412. structuredClone,
  24413. subresource,
  24414. forbiddenMethods,
  24415. requestBodyHeader,
  24416. referrerPolicy,
  24417. requestRedirect,
  24418. requestMode,
  24419. requestCredentials,
  24420. requestCache,
  24421. redirectStatus,
  24422. corsSafeListedMethods,
  24423. nullBodyStatus,
  24424. safeMethods,
  24425. badPorts,
  24426. requestDuplex
  24427. }
  24428. /***/ }),
  24429. /***/ 685:
  24430. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24431. const assert = __nccwpck_require__(9491)
  24432. const { atob } = __nccwpck_require__(4300)
  24433. const { isomorphicDecode } = __nccwpck_require__(2538)
  24434. const encoder = new TextEncoder()
  24435. /**
  24436. * @see https://mimesniff.spec.whatwg.org/#http-token-code-point
  24437. */
  24438. const HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+-.^_|~A-Za-z0-9]+$/
  24439. const HTTP_WHITESPACE_REGEX = /(\u000A|\u000D|\u0009|\u0020)/ // eslint-disable-line
  24440. /**
  24441. * @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point
  24442. */
  24443. const HTTP_QUOTED_STRING_TOKENS = /[\u0009|\u0020-\u007E|\u0080-\u00FF]/ // eslint-disable-line
  24444. // https://fetch.spec.whatwg.org/#data-url-processor
  24445. /** @param {URL} dataURL */
  24446. function dataURLProcessor (dataURL) {
  24447. // 1. Assert: dataURL’s scheme is "data".
  24448. assert(dataURL.protocol === 'data:')
  24449. // 2. Let input be the result of running the URL
  24450. // serializer on dataURL with exclude fragment
  24451. // set to true.
  24452. let input = URLSerializer(dataURL, true)
  24453. // 3. Remove the leading "data:" string from input.
  24454. input = input.slice(5)
  24455. // 4. Let position point at the start of input.
  24456. const position = { position: 0 }
  24457. // 5. Let mimeType be the result of collecting a
  24458. // sequence of code points that are not equal
  24459. // to U+002C (,), given position.
  24460. let mimeType = collectASequenceOfCodePointsFast(
  24461. ',',
  24462. input,
  24463. position
  24464. )
  24465. // 6. Strip leading and trailing ASCII whitespace
  24466. // from mimeType.
  24467. // Undici implementation note: we need to store the
  24468. // length because if the mimetype has spaces removed,
  24469. // the wrong amount will be sliced from the input in
  24470. // step #9
  24471. const mimeTypeLength = mimeType.length
  24472. mimeType = removeASCIIWhitespace(mimeType, true, true)
  24473. // 7. If position is past the end of input, then
  24474. // return failure
  24475. if (position.position >= input.length) {
  24476. return 'failure'
  24477. }
  24478. // 8. Advance position by 1.
  24479. position.position++
  24480. // 9. Let encodedBody be the remainder of input.
  24481. const encodedBody = input.slice(mimeTypeLength + 1)
  24482. // 10. Let body be the percent-decoding of encodedBody.
  24483. let body = stringPercentDecode(encodedBody)
  24484. // 11. If mimeType ends with U+003B (;), followed by
  24485. // zero or more U+0020 SPACE, followed by an ASCII
  24486. // case-insensitive match for "base64", then:
  24487. if (/;(\u0020){0,}base64$/i.test(mimeType)) {
  24488. // 1. Let stringBody be the isomorphic decode of body.
  24489. const stringBody = isomorphicDecode(body)
  24490. // 2. Set body to the forgiving-base64 decode of
  24491. // stringBody.
  24492. body = forgivingBase64(stringBody)
  24493. // 3. If body is failure, then return failure.
  24494. if (body === 'failure') {
  24495. return 'failure'
  24496. }
  24497. // 4. Remove the last 6 code points from mimeType.
  24498. mimeType = mimeType.slice(0, -6)
  24499. // 5. Remove trailing U+0020 SPACE code points from mimeType,
  24500. // if any.
  24501. mimeType = mimeType.replace(/(\u0020)+$/, '')
  24502. // 6. Remove the last U+003B (;) code point from mimeType.
  24503. mimeType = mimeType.slice(0, -1)
  24504. }
  24505. // 12. If mimeType starts with U+003B (;), then prepend
  24506. // "text/plain" to mimeType.
  24507. if (mimeType.startsWith(';')) {
  24508. mimeType = 'text/plain' + mimeType
  24509. }
  24510. // 13. Let mimeTypeRecord be the result of parsing
  24511. // mimeType.
  24512. let mimeTypeRecord = parseMIMEType(mimeType)
  24513. // 14. If mimeTypeRecord is failure, then set
  24514. // mimeTypeRecord to text/plain;charset=US-ASCII.
  24515. if (mimeTypeRecord === 'failure') {
  24516. mimeTypeRecord = parseMIMEType('text/plain;charset=US-ASCII')
  24517. }
  24518. // 15. Return a new data: URL struct whose MIME
  24519. // type is mimeTypeRecord and body is body.
  24520. // https://fetch.spec.whatwg.org/#data-url-struct
  24521. return { mimeType: mimeTypeRecord, body }
  24522. }
  24523. // https://url.spec.whatwg.org/#concept-url-serializer
  24524. /**
  24525. * @param {URL} url
  24526. * @param {boolean} excludeFragment
  24527. */
  24528. function URLSerializer (url, excludeFragment = false) {
  24529. const href = url.href
  24530. if (!excludeFragment) {
  24531. return href
  24532. }
  24533. const hash = href.lastIndexOf('#')
  24534. if (hash === -1) {
  24535. return href
  24536. }
  24537. return href.slice(0, hash)
  24538. }
  24539. // https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points
  24540. /**
  24541. * @param {(char: string) => boolean} condition
  24542. * @param {string} input
  24543. * @param {{ position: number }} position
  24544. */
  24545. function collectASequenceOfCodePoints (condition, input, position) {
  24546. // 1. Let result be the empty string.
  24547. let result = ''
  24548. // 2. While position doesn’t point past the end of input and the
  24549. // code point at position within input meets the condition condition:
  24550. while (position.position < input.length && condition(input[position.position])) {
  24551. // 1. Append that code point to the end of result.
  24552. result += input[position.position]
  24553. // 2. Advance position by 1.
  24554. position.position++
  24555. }
  24556. // 3. Return result.
  24557. return result
  24558. }
  24559. /**
  24560. * A faster collectASequenceOfCodePoints that only works when comparing a single character.
  24561. * @param {string} char
  24562. * @param {string} input
  24563. * @param {{ position: number }} position
  24564. */
  24565. function collectASequenceOfCodePointsFast (char, input, position) {
  24566. const idx = input.indexOf(char, position.position)
  24567. const start = position.position
  24568. if (idx === -1) {
  24569. position.position = input.length
  24570. return input.slice(start)
  24571. }
  24572. position.position = idx
  24573. return input.slice(start, position.position)
  24574. }
  24575. // https://url.spec.whatwg.org/#string-percent-decode
  24576. /** @param {string} input */
  24577. function stringPercentDecode (input) {
  24578. // 1. Let bytes be the UTF-8 encoding of input.
  24579. const bytes = encoder.encode(input)
  24580. // 2. Return the percent-decoding of bytes.
  24581. return percentDecode(bytes)
  24582. }
  24583. // https://url.spec.whatwg.org/#percent-decode
  24584. /** @param {Uint8Array} input */
  24585. function percentDecode (input) {
  24586. // 1. Let output be an empty byte sequence.
  24587. /** @type {number[]} */
  24588. const output = []
  24589. // 2. For each byte byte in input:
  24590. for (let i = 0; i < input.length; i++) {
  24591. const byte = input[i]
  24592. // 1. If byte is not 0x25 (%), then append byte to output.
  24593. if (byte !== 0x25) {
  24594. output.push(byte)
  24595. // 2. Otherwise, if byte is 0x25 (%) and the next two bytes
  24596. // after byte in input are not in the ranges
  24597. // 0x30 (0) to 0x39 (9), 0x41 (A) to 0x46 (F),
  24598. // and 0x61 (a) to 0x66 (f), all inclusive, append byte
  24599. // to output.
  24600. } else if (
  24601. byte === 0x25 &&
  24602. !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i + 1], input[i + 2]))
  24603. ) {
  24604. output.push(0x25)
  24605. // 3. Otherwise:
  24606. } else {
  24607. // 1. Let bytePoint be the two bytes after byte in input,
  24608. // decoded, and then interpreted as hexadecimal number.
  24609. const nextTwoBytes = String.fromCharCode(input[i + 1], input[i + 2])
  24610. const bytePoint = Number.parseInt(nextTwoBytes, 16)
  24611. // 2. Append a byte whose value is bytePoint to output.
  24612. output.push(bytePoint)
  24613. // 3. Skip the next two bytes in input.
  24614. i += 2
  24615. }
  24616. }
  24617. // 3. Return output.
  24618. return Uint8Array.from(output)
  24619. }
  24620. // https://mimesniff.spec.whatwg.org/#parse-a-mime-type
  24621. /** @param {string} input */
  24622. function parseMIMEType (input) {
  24623. // 1. Remove any leading and trailing HTTP whitespace
  24624. // from input.
  24625. input = removeHTTPWhitespace(input, true, true)
  24626. // 2. Let position be a position variable for input,
  24627. // initially pointing at the start of input.
  24628. const position = { position: 0 }
  24629. // 3. Let type be the result of collecting a sequence
  24630. // of code points that are not U+002F (/) from
  24631. // input, given position.
  24632. const type = collectASequenceOfCodePointsFast(
  24633. '/',
  24634. input,
  24635. position
  24636. )
  24637. // 4. If type is the empty string or does not solely
  24638. // contain HTTP token code points, then return failure.
  24639. // https://mimesniff.spec.whatwg.org/#http-token-code-point
  24640. if (type.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type)) {
  24641. return 'failure'
  24642. }
  24643. // 5. If position is past the end of input, then return
  24644. // failure
  24645. if (position.position > input.length) {
  24646. return 'failure'
  24647. }
  24648. // 6. Advance position by 1. (This skips past U+002F (/).)
  24649. position.position++
  24650. // 7. Let subtype be the result of collecting a sequence of
  24651. // code points that are not U+003B (;) from input, given
  24652. // position.
  24653. let subtype = collectASequenceOfCodePointsFast(
  24654. ';',
  24655. input,
  24656. position
  24657. )
  24658. // 8. Remove any trailing HTTP whitespace from subtype.
  24659. subtype = removeHTTPWhitespace(subtype, false, true)
  24660. // 9. If subtype is the empty string or does not solely
  24661. // contain HTTP token code points, then return failure.
  24662. if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) {
  24663. return 'failure'
  24664. }
  24665. const typeLowercase = type.toLowerCase()
  24666. const subtypeLowercase = subtype.toLowerCase()
  24667. // 10. Let mimeType be a new MIME type record whose type
  24668. // is type, in ASCII lowercase, and subtype is subtype,
  24669. // in ASCII lowercase.
  24670. // https://mimesniff.spec.whatwg.org/#mime-type
  24671. const mimeType = {
  24672. type: typeLowercase,
  24673. subtype: subtypeLowercase,
  24674. /** @type {Map<string, string>} */
  24675. parameters: new Map(),
  24676. // https://mimesniff.spec.whatwg.org/#mime-type-essence
  24677. essence: `${typeLowercase}/${subtypeLowercase}`
  24678. }
  24679. // 11. While position is not past the end of input:
  24680. while (position.position < input.length) {
  24681. // 1. Advance position by 1. (This skips past U+003B (;).)
  24682. position.position++
  24683. // 2. Collect a sequence of code points that are HTTP
  24684. // whitespace from input given position.
  24685. collectASequenceOfCodePoints(
  24686. // https://fetch.spec.whatwg.org/#http-whitespace
  24687. char => HTTP_WHITESPACE_REGEX.test(char),
  24688. input,
  24689. position
  24690. )
  24691. // 3. Let parameterName be the result of collecting a
  24692. // sequence of code points that are not U+003B (;)
  24693. // or U+003D (=) from input, given position.
  24694. let parameterName = collectASequenceOfCodePoints(
  24695. (char) => char !== ';' && char !== '=',
  24696. input,
  24697. position
  24698. )
  24699. // 4. Set parameterName to parameterName, in ASCII
  24700. // lowercase.
  24701. parameterName = parameterName.toLowerCase()
  24702. // 5. If position is not past the end of input, then:
  24703. if (position.position < input.length) {
  24704. // 1. If the code point at position within input is
  24705. // U+003B (;), then continue.
  24706. if (input[position.position] === ';') {
  24707. continue
  24708. }
  24709. // 2. Advance position by 1. (This skips past U+003D (=).)
  24710. position.position++
  24711. }
  24712. // 6. If position is past the end of input, then break.
  24713. if (position.position > input.length) {
  24714. break
  24715. }
  24716. // 7. Let parameterValue be null.
  24717. let parameterValue = null
  24718. // 8. If the code point at position within input is
  24719. // U+0022 ("), then:
  24720. if (input[position.position] === '"') {
  24721. // 1. Set parameterValue to the result of collecting
  24722. // an HTTP quoted string from input, given position
  24723. // and the extract-value flag.
  24724. parameterValue = collectAnHTTPQuotedString(input, position, true)
  24725. // 2. Collect a sequence of code points that are not
  24726. // U+003B (;) from input, given position.
  24727. collectASequenceOfCodePointsFast(
  24728. ';',
  24729. input,
  24730. position
  24731. )
  24732. // 9. Otherwise:
  24733. } else {
  24734. // 1. Set parameterValue to the result of collecting
  24735. // a sequence of code points that are not U+003B (;)
  24736. // from input, given position.
  24737. parameterValue = collectASequenceOfCodePointsFast(
  24738. ';',
  24739. input,
  24740. position
  24741. )
  24742. // 2. Remove any trailing HTTP whitespace from parameterValue.
  24743. parameterValue = removeHTTPWhitespace(parameterValue, false, true)
  24744. // 3. If parameterValue is the empty string, then continue.
  24745. if (parameterValue.length === 0) {
  24746. continue
  24747. }
  24748. }
  24749. // 10. If all of the following are true
  24750. // - parameterName is not the empty string
  24751. // - parameterName solely contains HTTP token code points
  24752. // - parameterValue solely contains HTTP quoted-string token code points
  24753. // - mimeType’s parameters[parameterName] does not exist
  24754. // then set mimeType’s parameters[parameterName] to parameterValue.
  24755. if (
  24756. parameterName.length !== 0 &&
  24757. HTTP_TOKEN_CODEPOINTS.test(parameterName) &&
  24758. (parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) &&
  24759. !mimeType.parameters.has(parameterName)
  24760. ) {
  24761. mimeType.parameters.set(parameterName, parameterValue)
  24762. }
  24763. }
  24764. // 12. Return mimeType.
  24765. return mimeType
  24766. }
  24767. // https://infra.spec.whatwg.org/#forgiving-base64-decode
  24768. /** @param {string} data */
  24769. function forgivingBase64 (data) {
  24770. // 1. Remove all ASCII whitespace from data.
  24771. data = data.replace(/[\u0009\u000A\u000C\u000D\u0020]/g, '') // eslint-disable-line
  24772. // 2. If data’s code point length divides by 4 leaving
  24773. // no remainder, then:
  24774. if (data.length % 4 === 0) {
  24775. // 1. If data ends with one or two U+003D (=) code points,
  24776. // then remove them from data.
  24777. data = data.replace(/=?=$/, '')
  24778. }
  24779. // 3. If data’s code point length divides by 4 leaving
  24780. // a remainder of 1, then return failure.
  24781. if (data.length % 4 === 1) {
  24782. return 'failure'
  24783. }
  24784. // 4. If data contains a code point that is not one of
  24785. // U+002B (+)
  24786. // U+002F (/)
  24787. // ASCII alphanumeric
  24788. // then return failure.
  24789. if (/[^+/0-9A-Za-z]/.test(data)) {
  24790. return 'failure'
  24791. }
  24792. const binary = atob(data)
  24793. const bytes = new Uint8Array(binary.length)
  24794. for (let byte = 0; byte < binary.length; byte++) {
  24795. bytes[byte] = binary.charCodeAt(byte)
  24796. }
  24797. return bytes
  24798. }
  24799. // https://fetch.spec.whatwg.org/#collect-an-http-quoted-string
  24800. // tests: https://fetch.spec.whatwg.org/#example-http-quoted-string
  24801. /**
  24802. * @param {string} input
  24803. * @param {{ position: number }} position
  24804. * @param {boolean?} extractValue
  24805. */
  24806. function collectAnHTTPQuotedString (input, position, extractValue) {
  24807. // 1. Let positionStart be position.
  24808. const positionStart = position.position
  24809. // 2. Let value be the empty string.
  24810. let value = ''
  24811. // 3. Assert: the code point at position within input
  24812. // is U+0022 (").
  24813. assert(input[position.position] === '"')
  24814. // 4. Advance position by 1.
  24815. position.position++
  24816. // 5. While true:
  24817. while (true) {
  24818. // 1. Append the result of collecting a sequence of code points
  24819. // that are not U+0022 (") or U+005C (\) from input, given
  24820. // position, to value.
  24821. value += collectASequenceOfCodePoints(
  24822. (char) => char !== '"' && char !== '\\',
  24823. input,
  24824. position
  24825. )
  24826. // 2. If position is past the end of input, then break.
  24827. if (position.position >= input.length) {
  24828. break
  24829. }
  24830. // 3. Let quoteOrBackslash be the code point at position within
  24831. // input.
  24832. const quoteOrBackslash = input[position.position]
  24833. // 4. Advance position by 1.
  24834. position.position++
  24835. // 5. If quoteOrBackslash is U+005C (\), then:
  24836. if (quoteOrBackslash === '\\') {
  24837. // 1. If position is past the end of input, then append
  24838. // U+005C (\) to value and break.
  24839. if (position.position >= input.length) {
  24840. value += '\\'
  24841. break
  24842. }
  24843. // 2. Append the code point at position within input to value.
  24844. value += input[position.position]
  24845. // 3. Advance position by 1.
  24846. position.position++
  24847. // 6. Otherwise:
  24848. } else {
  24849. // 1. Assert: quoteOrBackslash is U+0022 (").
  24850. assert(quoteOrBackslash === '"')
  24851. // 2. Break.
  24852. break
  24853. }
  24854. }
  24855. // 6. If the extract-value flag is set, then return value.
  24856. if (extractValue) {
  24857. return value
  24858. }
  24859. // 7. Return the code points from positionStart to position,
  24860. // inclusive, within input.
  24861. return input.slice(positionStart, position.position)
  24862. }
  24863. /**
  24864. * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
  24865. */
  24866. function serializeAMimeType (mimeType) {
  24867. assert(mimeType !== 'failure')
  24868. const { parameters, essence } = mimeType
  24869. // 1. Let serialization be the concatenation of mimeType’s
  24870. // type, U+002F (/), and mimeType’s subtype.
  24871. let serialization = essence
  24872. // 2. For each name → value of mimeType’s parameters:
  24873. for (let [name, value] of parameters.entries()) {
  24874. // 1. Append U+003B (;) to serialization.
  24875. serialization += ';'
  24876. // 2. Append name to serialization.
  24877. serialization += name
  24878. // 3. Append U+003D (=) to serialization.
  24879. serialization += '='
  24880. // 4. If value does not solely contain HTTP token code
  24881. // points or value is the empty string, then:
  24882. if (!HTTP_TOKEN_CODEPOINTS.test(value)) {
  24883. // 1. Precede each occurence of U+0022 (") or
  24884. // U+005C (\) in value with U+005C (\).
  24885. value = value.replace(/(\\|")/g, '\\$1')
  24886. // 2. Prepend U+0022 (") to value.
  24887. value = '"' + value
  24888. // 3. Append U+0022 (") to value.
  24889. value += '"'
  24890. }
  24891. // 5. Append value to serialization.
  24892. serialization += value
  24893. }
  24894. // 3. Return serialization.
  24895. return serialization
  24896. }
  24897. /**
  24898. * @see https://fetch.spec.whatwg.org/#http-whitespace
  24899. * @param {string} char
  24900. */
  24901. function isHTTPWhiteSpace (char) {
  24902. return char === '\r' || char === '\n' || char === '\t' || char === ' '
  24903. }
  24904. /**
  24905. * @see https://fetch.spec.whatwg.org/#http-whitespace
  24906. * @param {string} str
  24907. */
  24908. function removeHTTPWhitespace (str, leading = true, trailing = true) {
  24909. let lead = 0
  24910. let trail = str.length - 1
  24911. if (leading) {
  24912. for (; lead < str.length && isHTTPWhiteSpace(str[lead]); lead++);
  24913. }
  24914. if (trailing) {
  24915. for (; trail > 0 && isHTTPWhiteSpace(str[trail]); trail--);
  24916. }
  24917. return str.slice(lead, trail + 1)
  24918. }
  24919. /**
  24920. * @see https://infra.spec.whatwg.org/#ascii-whitespace
  24921. * @param {string} char
  24922. */
  24923. function isASCIIWhitespace (char) {
  24924. return char === '\r' || char === '\n' || char === '\t' || char === '\f' || char === ' '
  24925. }
  24926. /**
  24927. * @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace
  24928. */
  24929. function removeASCIIWhitespace (str, leading = true, trailing = true) {
  24930. let lead = 0
  24931. let trail = str.length - 1
  24932. if (leading) {
  24933. for (; lead < str.length && isASCIIWhitespace(str[lead]); lead++);
  24934. }
  24935. if (trailing) {
  24936. for (; trail > 0 && isASCIIWhitespace(str[trail]); trail--);
  24937. }
  24938. return str.slice(lead, trail + 1)
  24939. }
  24940. module.exports = {
  24941. dataURLProcessor,
  24942. URLSerializer,
  24943. collectASequenceOfCodePoints,
  24944. collectASequenceOfCodePointsFast,
  24945. stringPercentDecode,
  24946. parseMIMEType,
  24947. collectAnHTTPQuotedString,
  24948. serializeAMimeType
  24949. }
  24950. /***/ }),
  24951. /***/ 8511:
  24952. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  24953. "use strict";
  24954. const { Blob, File: NativeFile } = __nccwpck_require__(4300)
  24955. const { types } = __nccwpck_require__(3837)
  24956. const { kState } = __nccwpck_require__(5861)
  24957. const { isBlobLike } = __nccwpck_require__(2538)
  24958. const { webidl } = __nccwpck_require__(1744)
  24959. const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
  24960. const { kEnumerableProperty } = __nccwpck_require__(3983)
  24961. class File extends Blob {
  24962. constructor (fileBits, fileName, options = {}) {
  24963. // The File constructor is invoked with two or three parameters, depending
  24964. // on whether the optional dictionary parameter is used. When the File()
  24965. // constructor is invoked, user agents must run the following steps:
  24966. webidl.argumentLengthCheck(arguments, 2, { header: 'File constructor' })
  24967. fileBits = webidl.converters['sequence<BlobPart>'](fileBits)
  24968. fileName = webidl.converters.USVString(fileName)
  24969. options = webidl.converters.FilePropertyBag(options)
  24970. // 1. Let bytes be the result of processing blob parts given fileBits and
  24971. // options.
  24972. // Note: Blob handles this for us
  24973. // 2. Let n be the fileName argument to the constructor.
  24974. const n = fileName
  24975. // 3. Process FilePropertyBag dictionary argument by running the following
  24976. // substeps:
  24977. // 1. If the type member is provided and is not the empty string, let t
  24978. // be set to the type dictionary member. If t contains any characters
  24979. // outside the range U+0020 to U+007E, then set t to the empty string
  24980. // and return from these substeps.
  24981. // 2. Convert every character in t to ASCII lowercase.
  24982. let t = options.type
  24983. let d
  24984. // eslint-disable-next-line no-labels
  24985. substep: {
  24986. if (t) {
  24987. t = parseMIMEType(t)
  24988. if (t === 'failure') {
  24989. t = ''
  24990. // eslint-disable-next-line no-labels
  24991. break substep
  24992. }
  24993. t = serializeAMimeType(t).toLowerCase()
  24994. }
  24995. // 3. If the lastModified member is provided, let d be set to the
  24996. // lastModified dictionary member. If it is not provided, set d to the
  24997. // current date and time represented as the number of milliseconds since
  24998. // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).
  24999. d = options.lastModified
  25000. }
  25001. // 4. Return a new File object F such that:
  25002. // F refers to the bytes byte sequence.
  25003. // F.size is set to the number of total bytes in bytes.
  25004. // F.name is set to n.
  25005. // F.type is set to t.
  25006. // F.lastModified is set to d.
  25007. super(processBlobParts(fileBits, options), { type: t })
  25008. this[kState] = {
  25009. name: n,
  25010. lastModified: d,
  25011. type: t
  25012. }
  25013. }
  25014. get name () {
  25015. webidl.brandCheck(this, File)
  25016. return this[kState].name
  25017. }
  25018. get lastModified () {
  25019. webidl.brandCheck(this, File)
  25020. return this[kState].lastModified
  25021. }
  25022. get type () {
  25023. webidl.brandCheck(this, File)
  25024. return this[kState].type
  25025. }
  25026. }
  25027. class FileLike {
  25028. constructor (blobLike, fileName, options = {}) {
  25029. // TODO: argument idl type check
  25030. // The File constructor is invoked with two or three parameters, depending
  25031. // on whether the optional dictionary parameter is used. When the File()
  25032. // constructor is invoked, user agents must run the following steps:
  25033. // 1. Let bytes be the result of processing blob parts given fileBits and
  25034. // options.
  25035. // 2. Let n be the fileName argument to the constructor.
  25036. const n = fileName
  25037. // 3. Process FilePropertyBag dictionary argument by running the following
  25038. // substeps:
  25039. // 1. If the type member is provided and is not the empty string, let t
  25040. // be set to the type dictionary member. If t contains any characters
  25041. // outside the range U+0020 to U+007E, then set t to the empty string
  25042. // and return from these substeps.
  25043. // TODO
  25044. const t = options.type
  25045. // 2. Convert every character in t to ASCII lowercase.
  25046. // TODO
  25047. // 3. If the lastModified member is provided, let d be set to the
  25048. // lastModified dictionary member. If it is not provided, set d to the
  25049. // current date and time represented as the number of milliseconds since
  25050. // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).
  25051. const d = options.lastModified ?? Date.now()
  25052. // 4. Return a new File object F such that:
  25053. // F refers to the bytes byte sequence.
  25054. // F.size is set to the number of total bytes in bytes.
  25055. // F.name is set to n.
  25056. // F.type is set to t.
  25057. // F.lastModified is set to d.
  25058. this[kState] = {
  25059. blobLike,
  25060. name: n,
  25061. type: t,
  25062. lastModified: d
  25063. }
  25064. }
  25065. stream (...args) {
  25066. webidl.brandCheck(this, FileLike)
  25067. return this[kState].blobLike.stream(...args)
  25068. }
  25069. arrayBuffer (...args) {
  25070. webidl.brandCheck(this, FileLike)
  25071. return this[kState].blobLike.arrayBuffer(...args)
  25072. }
  25073. slice (...args) {
  25074. webidl.brandCheck(this, FileLike)
  25075. return this[kState].blobLike.slice(...args)
  25076. }
  25077. text (...args) {
  25078. webidl.brandCheck(this, FileLike)
  25079. return this[kState].blobLike.text(...args)
  25080. }
  25081. get size () {
  25082. webidl.brandCheck(this, FileLike)
  25083. return this[kState].blobLike.size
  25084. }
  25085. get type () {
  25086. webidl.brandCheck(this, FileLike)
  25087. return this[kState].blobLike.type
  25088. }
  25089. get name () {
  25090. webidl.brandCheck(this, FileLike)
  25091. return this[kState].name
  25092. }
  25093. get lastModified () {
  25094. webidl.brandCheck(this, FileLike)
  25095. return this[kState].lastModified
  25096. }
  25097. get [Symbol.toStringTag] () {
  25098. return 'File'
  25099. }
  25100. }
  25101. Object.defineProperties(File.prototype, {
  25102. [Symbol.toStringTag]: {
  25103. value: 'File',
  25104. configurable: true
  25105. },
  25106. name: kEnumerableProperty,
  25107. lastModified: kEnumerableProperty
  25108. })
  25109. webidl.converters.Blob = webidl.interfaceConverter(Blob)
  25110. webidl.converters.BlobPart = function (V, opts) {
  25111. if (webidl.util.Type(V) === 'Object') {
  25112. if (isBlobLike(V)) {
  25113. return webidl.converters.Blob(V, { strict: false })
  25114. }
  25115. if (
  25116. ArrayBuffer.isView(V) ||
  25117. types.isAnyArrayBuffer(V)
  25118. ) {
  25119. return webidl.converters.BufferSource(V, opts)
  25120. }
  25121. }
  25122. return webidl.converters.USVString(V, opts)
  25123. }
  25124. webidl.converters['sequence<BlobPart>'] = webidl.sequenceConverter(
  25125. webidl.converters.BlobPart
  25126. )
  25127. // https://www.w3.org/TR/FileAPI/#dfn-FilePropertyBag
  25128. webidl.converters.FilePropertyBag = webidl.dictionaryConverter([
  25129. {
  25130. key: 'lastModified',
  25131. converter: webidl.converters['long long'],
  25132. get defaultValue () {
  25133. return Date.now()
  25134. }
  25135. },
  25136. {
  25137. key: 'type',
  25138. converter: webidl.converters.DOMString,
  25139. defaultValue: ''
  25140. },
  25141. {
  25142. key: 'endings',
  25143. converter: (value) => {
  25144. value = webidl.converters.DOMString(value)
  25145. value = value.toLowerCase()
  25146. if (value !== 'native') {
  25147. value = 'transparent'
  25148. }
  25149. return value
  25150. },
  25151. defaultValue: 'transparent'
  25152. }
  25153. ])
  25154. /**
  25155. * @see https://www.w3.org/TR/FileAPI/#process-blob-parts
  25156. * @param {(NodeJS.TypedArray|Blob|string)[]} parts
  25157. * @param {{ type: string, endings: string }} options
  25158. */
  25159. function processBlobParts (parts, options) {
  25160. // 1. Let bytes be an empty sequence of bytes.
  25161. /** @type {NodeJS.TypedArray[]} */
  25162. const bytes = []
  25163. // 2. For each element in parts:
  25164. for (const element of parts) {
  25165. // 1. If element is a USVString, run the following substeps:
  25166. if (typeof element === 'string') {
  25167. // 1. Let s be element.
  25168. let s = element
  25169. // 2. If the endings member of options is "native", set s
  25170. // to the result of converting line endings to native
  25171. // of element.
  25172. if (options.endings === 'native') {
  25173. s = convertLineEndingsNative(s)
  25174. }
  25175. // 3. Append the result of UTF-8 encoding s to bytes.
  25176. bytes.push(new TextEncoder().encode(s))
  25177. } else if (
  25178. types.isAnyArrayBuffer(element) ||
  25179. types.isTypedArray(element)
  25180. ) {
  25181. // 2. If element is a BufferSource, get a copy of the
  25182. // bytes held by the buffer source, and append those
  25183. // bytes to bytes.
  25184. if (!element.buffer) { // ArrayBuffer
  25185. bytes.push(new Uint8Array(element))
  25186. } else {
  25187. bytes.push(
  25188. new Uint8Array(element.buffer, element.byteOffset, element.byteLength)
  25189. )
  25190. }
  25191. } else if (isBlobLike(element)) {
  25192. // 3. If element is a Blob, append the bytes it represents
  25193. // to bytes.
  25194. bytes.push(element)
  25195. }
  25196. }
  25197. // 3. Return bytes.
  25198. return bytes
  25199. }
  25200. /**
  25201. * @see https://www.w3.org/TR/FileAPI/#convert-line-endings-to-native
  25202. * @param {string} s
  25203. */
  25204. function convertLineEndingsNative (s) {
  25205. // 1. Let native line ending be be the code point U+000A LF.
  25206. let nativeLineEnding = '\n'
  25207. // 2. If the underlying platform’s conventions are to
  25208. // represent newlines as a carriage return and line feed
  25209. // sequence, set native line ending to the code point
  25210. // U+000D CR followed by the code point U+000A LF.
  25211. if (process.platform === 'win32') {
  25212. nativeLineEnding = '\r\n'
  25213. }
  25214. return s.replace(/\r?\n/g, nativeLineEnding)
  25215. }
  25216. // If this function is moved to ./util.js, some tools (such as
  25217. // rollup) will warn about circular dependencies. See:
  25218. // https://github.com/nodejs/undici/issues/1629
  25219. function isFileLike (object) {
  25220. return (
  25221. (NativeFile && object instanceof NativeFile) ||
  25222. object instanceof File || (
  25223. object &&
  25224. (typeof object.stream === 'function' ||
  25225. typeof object.arrayBuffer === 'function') &&
  25226. object[Symbol.toStringTag] === 'File'
  25227. )
  25228. )
  25229. }
  25230. module.exports = { File, FileLike, isFileLike }
  25231. /***/ }),
  25232. /***/ 2015:
  25233. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  25234. "use strict";
  25235. const { isBlobLike, toUSVString, makeIterator } = __nccwpck_require__(2538)
  25236. const { kState } = __nccwpck_require__(5861)
  25237. const { File: UndiciFile, FileLike, isFileLike } = __nccwpck_require__(8511)
  25238. const { webidl } = __nccwpck_require__(1744)
  25239. const { Blob, File: NativeFile } = __nccwpck_require__(4300)
  25240. /** @type {globalThis['File']} */
  25241. const File = NativeFile ?? UndiciFile
  25242. // https://xhr.spec.whatwg.org/#formdata
  25243. class FormData {
  25244. constructor (form) {
  25245. if (form !== undefined) {
  25246. throw webidl.errors.conversionFailed({
  25247. prefix: 'FormData constructor',
  25248. argument: 'Argument 1',
  25249. types: ['undefined']
  25250. })
  25251. }
  25252. this[kState] = []
  25253. }
  25254. append (name, value, filename = undefined) {
  25255. webidl.brandCheck(this, FormData)
  25256. webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.append' })
  25257. if (arguments.length === 3 && !isBlobLike(value)) {
  25258. throw new TypeError(
  25259. "Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'"
  25260. )
  25261. }
  25262. // 1. Let value be value if given; otherwise blobValue.
  25263. name = webidl.converters.USVString(name)
  25264. value = isBlobLike(value)
  25265. ? webidl.converters.Blob(value, { strict: false })
  25266. : webidl.converters.USVString(value)
  25267. filename = arguments.length === 3
  25268. ? webidl.converters.USVString(filename)
  25269. : undefined
  25270. // 2. Let entry be the result of creating an entry with
  25271. // name, value, and filename if given.
  25272. const entry = makeEntry(name, value, filename)
  25273. // 3. Append entry to this’s entry list.
  25274. this[kState].push(entry)
  25275. }
  25276. delete (name) {
  25277. webidl.brandCheck(this, FormData)
  25278. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.delete' })
  25279. name = webidl.converters.USVString(name)
  25280. // The delete(name) method steps are to remove all entries whose name
  25281. // is name from this’s entry list.
  25282. this[kState] = this[kState].filter(entry => entry.name !== name)
  25283. }
  25284. get (name) {
  25285. webidl.brandCheck(this, FormData)
  25286. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.get' })
  25287. name = webidl.converters.USVString(name)
  25288. // 1. If there is no entry whose name is name in this’s entry list,
  25289. // then return null.
  25290. const idx = this[kState].findIndex((entry) => entry.name === name)
  25291. if (idx === -1) {
  25292. return null
  25293. }
  25294. // 2. Return the value of the first entry whose name is name from
  25295. // this’s entry list.
  25296. return this[kState][idx].value
  25297. }
  25298. getAll (name) {
  25299. webidl.brandCheck(this, FormData)
  25300. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.getAll' })
  25301. name = webidl.converters.USVString(name)
  25302. // 1. If there is no entry whose name is name in this’s entry list,
  25303. // then return the empty list.
  25304. // 2. Return the values of all entries whose name is name, in order,
  25305. // from this’s entry list.
  25306. return this[kState]
  25307. .filter((entry) => entry.name === name)
  25308. .map((entry) => entry.value)
  25309. }
  25310. has (name) {
  25311. webidl.brandCheck(this, FormData)
  25312. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.has' })
  25313. name = webidl.converters.USVString(name)
  25314. // The has(name) method steps are to return true if there is an entry
  25315. // whose name is name in this’s entry list; otherwise false.
  25316. return this[kState].findIndex((entry) => entry.name === name) !== -1
  25317. }
  25318. set (name, value, filename = undefined) {
  25319. webidl.brandCheck(this, FormData)
  25320. webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.set' })
  25321. if (arguments.length === 3 && !isBlobLike(value)) {
  25322. throw new TypeError(
  25323. "Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'"
  25324. )
  25325. }
  25326. // The set(name, value) and set(name, blobValue, filename) method steps
  25327. // are:
  25328. // 1. Let value be value if given; otherwise blobValue.
  25329. name = webidl.converters.USVString(name)
  25330. value = isBlobLike(value)
  25331. ? webidl.converters.Blob(value, { strict: false })
  25332. : webidl.converters.USVString(value)
  25333. filename = arguments.length === 3
  25334. ? toUSVString(filename)
  25335. : undefined
  25336. // 2. Let entry be the result of creating an entry with name, value, and
  25337. // filename if given.
  25338. const entry = makeEntry(name, value, filename)
  25339. // 3. If there are entries in this’s entry list whose name is name, then
  25340. // replace the first such entry with entry and remove the others.
  25341. const idx = this[kState].findIndex((entry) => entry.name === name)
  25342. if (idx !== -1) {
  25343. this[kState] = [
  25344. ...this[kState].slice(0, idx),
  25345. entry,
  25346. ...this[kState].slice(idx + 1).filter((entry) => entry.name !== name)
  25347. ]
  25348. } else {
  25349. // 4. Otherwise, append entry to this’s entry list.
  25350. this[kState].push(entry)
  25351. }
  25352. }
  25353. entries () {
  25354. webidl.brandCheck(this, FormData)
  25355. return makeIterator(
  25356. () => this[kState].map(pair => [pair.name, pair.value]),
  25357. 'FormData',
  25358. 'key+value'
  25359. )
  25360. }
  25361. keys () {
  25362. webidl.brandCheck(this, FormData)
  25363. return makeIterator(
  25364. () => this[kState].map(pair => [pair.name, pair.value]),
  25365. 'FormData',
  25366. 'key'
  25367. )
  25368. }
  25369. values () {
  25370. webidl.brandCheck(this, FormData)
  25371. return makeIterator(
  25372. () => this[kState].map(pair => [pair.name, pair.value]),
  25373. 'FormData',
  25374. 'value'
  25375. )
  25376. }
  25377. /**
  25378. * @param {(value: string, key: string, self: FormData) => void} callbackFn
  25379. * @param {unknown} thisArg
  25380. */
  25381. forEach (callbackFn, thisArg = globalThis) {
  25382. webidl.brandCheck(this, FormData)
  25383. webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.forEach' })
  25384. if (typeof callbackFn !== 'function') {
  25385. throw new TypeError(
  25386. "Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'."
  25387. )
  25388. }
  25389. for (const [key, value] of this) {
  25390. callbackFn.apply(thisArg, [value, key, this])
  25391. }
  25392. }
  25393. }
  25394. FormData.prototype[Symbol.iterator] = FormData.prototype.entries
  25395. Object.defineProperties(FormData.prototype, {
  25396. [Symbol.toStringTag]: {
  25397. value: 'FormData',
  25398. configurable: true
  25399. }
  25400. })
  25401. /**
  25402. * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#create-an-entry
  25403. * @param {string} name
  25404. * @param {string|Blob} value
  25405. * @param {?string} filename
  25406. * @returns
  25407. */
  25408. function makeEntry (name, value, filename) {
  25409. // 1. Set name to the result of converting name into a scalar value string.
  25410. // "To convert a string into a scalar value string, replace any surrogates
  25411. // with U+FFFD."
  25412. // see: https://nodejs.org/dist/latest-v18.x/docs/api/buffer.html#buftostringencoding-start-end
  25413. name = Buffer.from(name).toString('utf8')
  25414. // 2. If value is a string, then set value to the result of converting
  25415. // value into a scalar value string.
  25416. if (typeof value === 'string') {
  25417. value = Buffer.from(value).toString('utf8')
  25418. } else {
  25419. // 3. Otherwise:
  25420. // 1. If value is not a File object, then set value to a new File object,
  25421. // representing the same bytes, whose name attribute value is "blob"
  25422. if (!isFileLike(value)) {
  25423. value = value instanceof Blob
  25424. ? new File([value], 'blob', { type: value.type })
  25425. : new FileLike(value, 'blob', { type: value.type })
  25426. }
  25427. // 2. If filename is given, then set value to a new File object,
  25428. // representing the same bytes, whose name attribute is filename.
  25429. if (filename !== undefined) {
  25430. /** @type {FilePropertyBag} */
  25431. const options = {
  25432. type: value.type,
  25433. lastModified: value.lastModified
  25434. }
  25435. value = (NativeFile && value instanceof NativeFile) || value instanceof UndiciFile
  25436. ? new File([value], filename, options)
  25437. : new FileLike(value, filename, options)
  25438. }
  25439. }
  25440. // 4. Return an entry whose name is name and whose value is value.
  25441. return { name, value }
  25442. }
  25443. module.exports = { FormData }
  25444. /***/ }),
  25445. /***/ 1246:
  25446. /***/ ((module) => {
  25447. "use strict";
  25448. // In case of breaking changes, increase the version
  25449. // number to avoid conflicts.
  25450. const globalOrigin = Symbol.for('undici.globalOrigin.1')
  25451. function getGlobalOrigin () {
  25452. return globalThis[globalOrigin]
  25453. }
  25454. function setGlobalOrigin (newOrigin) {
  25455. if (newOrigin === undefined) {
  25456. Object.defineProperty(globalThis, globalOrigin, {
  25457. value: undefined,
  25458. writable: true,
  25459. enumerable: false,
  25460. configurable: false
  25461. })
  25462. return
  25463. }
  25464. const parsedURL = new URL(newOrigin)
  25465. if (parsedURL.protocol !== 'http:' && parsedURL.protocol !== 'https:') {
  25466. throw new TypeError(`Only http & https urls are allowed, received ${parsedURL.protocol}`)
  25467. }
  25468. Object.defineProperty(globalThis, globalOrigin, {
  25469. value: parsedURL,
  25470. writable: true,
  25471. enumerable: false,
  25472. configurable: false
  25473. })
  25474. }
  25475. module.exports = {
  25476. getGlobalOrigin,
  25477. setGlobalOrigin
  25478. }
  25479. /***/ }),
  25480. /***/ 554:
  25481. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  25482. "use strict";
  25483. // https://github.com/Ethan-Arrowood/undici-fetch
  25484. const { kHeadersList } = __nccwpck_require__(2785)
  25485. const { kGuard } = __nccwpck_require__(5861)
  25486. const { kEnumerableProperty } = __nccwpck_require__(3983)
  25487. const {
  25488. makeIterator,
  25489. isValidHeaderName,
  25490. isValidHeaderValue
  25491. } = __nccwpck_require__(2538)
  25492. const { webidl } = __nccwpck_require__(1744)
  25493. const assert = __nccwpck_require__(9491)
  25494. const kHeadersMap = Symbol('headers map')
  25495. const kHeadersSortedMap = Symbol('headers map sorted')
  25496. /**
  25497. * @see https://fetch.spec.whatwg.org/#concept-header-value-normalize
  25498. * @param {string} potentialValue
  25499. */
  25500. function headerValueNormalize (potentialValue) {
  25501. // To normalize a byte sequence potentialValue, remove
  25502. // any leading and trailing HTTP whitespace bytes from
  25503. // potentialValue.
  25504. // Trimming the end with `.replace()` and a RegExp is typically subject to
  25505. // ReDoS. This is safer and faster.
  25506. let i = potentialValue.length
  25507. while (/[\r\n\t ]/.test(potentialValue.charAt(--i)));
  25508. return potentialValue.slice(0, i + 1).replace(/^[\r\n\t ]+/, '')
  25509. }
  25510. function fill (headers, object) {
  25511. // To fill a Headers object headers with a given object object, run these steps:
  25512. // 1. If object is a sequence, then for each header in object:
  25513. // Note: webidl conversion to array has already been done.
  25514. if (Array.isArray(object)) {
  25515. for (const header of object) {
  25516. // 1. If header does not contain exactly two items, then throw a TypeError.
  25517. if (header.length !== 2) {
  25518. throw webidl.errors.exception({
  25519. header: 'Headers constructor',
  25520. message: `expected name/value pair to be length 2, found ${header.length}.`
  25521. })
  25522. }
  25523. // 2. Append (header’s first item, header’s second item) to headers.
  25524. headers.append(header[0], header[1])
  25525. }
  25526. } else if (typeof object === 'object' && object !== null) {
  25527. // Note: null should throw
  25528. // 2. Otherwise, object is a record, then for each key → value in object,
  25529. // append (key, value) to headers
  25530. for (const [key, value] of Object.entries(object)) {
  25531. headers.append(key, value)
  25532. }
  25533. } else {
  25534. throw webidl.errors.conversionFailed({
  25535. prefix: 'Headers constructor',
  25536. argument: 'Argument 1',
  25537. types: ['sequence<sequence<ByteString>>', 'record<ByteString, ByteString>']
  25538. })
  25539. }
  25540. }
  25541. class HeadersList {
  25542. /** @type {[string, string][]|null} */
  25543. cookies = null
  25544. constructor (init) {
  25545. if (init instanceof HeadersList) {
  25546. this[kHeadersMap] = new Map(init[kHeadersMap])
  25547. this[kHeadersSortedMap] = init[kHeadersSortedMap]
  25548. this.cookies = init.cookies
  25549. } else {
  25550. this[kHeadersMap] = new Map(init)
  25551. this[kHeadersSortedMap] = null
  25552. }
  25553. }
  25554. // https://fetch.spec.whatwg.org/#header-list-contains
  25555. contains (name) {
  25556. // A header list list contains a header name name if list
  25557. // contains a header whose name is a byte-case-insensitive
  25558. // match for name.
  25559. name = name.toLowerCase()
  25560. return this[kHeadersMap].has(name)
  25561. }
  25562. clear () {
  25563. this[kHeadersMap].clear()
  25564. this[kHeadersSortedMap] = null
  25565. this.cookies = null
  25566. }
  25567. // https://fetch.spec.whatwg.org/#concept-header-list-append
  25568. append (name, value) {
  25569. this[kHeadersSortedMap] = null
  25570. // 1. If list contains name, then set name to the first such
  25571. // header’s name.
  25572. const lowercaseName = name.toLowerCase()
  25573. const exists = this[kHeadersMap].get(lowercaseName)
  25574. // 2. Append (name, value) to list.
  25575. if (exists) {
  25576. const delimiter = lowercaseName === 'cookie' ? '; ' : ', '
  25577. this[kHeadersMap].set(lowercaseName, {
  25578. name: exists.name,
  25579. value: `${exists.value}${delimiter}${value}`
  25580. })
  25581. } else {
  25582. this[kHeadersMap].set(lowercaseName, { name, value })
  25583. }
  25584. if (lowercaseName === 'set-cookie') {
  25585. this.cookies ??= []
  25586. this.cookies.push(value)
  25587. }
  25588. }
  25589. // https://fetch.spec.whatwg.org/#concept-header-list-set
  25590. set (name, value) {
  25591. this[kHeadersSortedMap] = null
  25592. const lowercaseName = name.toLowerCase()
  25593. if (lowercaseName === 'set-cookie') {
  25594. this.cookies = [value]
  25595. }
  25596. // 1. If list contains name, then set the value of
  25597. // the first such header to value and remove the
  25598. // others.
  25599. // 2. Otherwise, append header (name, value) to list.
  25600. return this[kHeadersMap].set(lowercaseName, { name, value })
  25601. }
  25602. // https://fetch.spec.whatwg.org/#concept-header-list-delete
  25603. delete (name) {
  25604. this[kHeadersSortedMap] = null
  25605. name = name.toLowerCase()
  25606. if (name === 'set-cookie') {
  25607. this.cookies = null
  25608. }
  25609. return this[kHeadersMap].delete(name)
  25610. }
  25611. // https://fetch.spec.whatwg.org/#concept-header-list-get
  25612. get (name) {
  25613. // 1. If list does not contain name, then return null.
  25614. if (!this.contains(name)) {
  25615. return null
  25616. }
  25617. // 2. Return the values of all headers in list whose name
  25618. // is a byte-case-insensitive match for name,
  25619. // separated from each other by 0x2C 0x20, in order.
  25620. return this[kHeadersMap].get(name.toLowerCase())?.value ?? null
  25621. }
  25622. * [Symbol.iterator] () {
  25623. // use the lowercased name
  25624. for (const [name, { value }] of this[kHeadersMap]) {
  25625. yield [name, value]
  25626. }
  25627. }
  25628. get entries () {
  25629. const headers = {}
  25630. if (this[kHeadersMap].size) {
  25631. for (const { name, value } of this[kHeadersMap].values()) {
  25632. headers[name] = value
  25633. }
  25634. }
  25635. return headers
  25636. }
  25637. }
  25638. // https://fetch.spec.whatwg.org/#headers-class
  25639. class Headers {
  25640. constructor (init = undefined) {
  25641. this[kHeadersList] = new HeadersList()
  25642. // The new Headers(init) constructor steps are:
  25643. // 1. Set this’s guard to "none".
  25644. this[kGuard] = 'none'
  25645. // 2. If init is given, then fill this with init.
  25646. if (init !== undefined) {
  25647. init = webidl.converters.HeadersInit(init)
  25648. fill(this, init)
  25649. }
  25650. }
  25651. // https://fetch.spec.whatwg.org/#dom-headers-append
  25652. append (name, value) {
  25653. webidl.brandCheck(this, Headers)
  25654. webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.append' })
  25655. name = webidl.converters.ByteString(name)
  25656. value = webidl.converters.ByteString(value)
  25657. // 1. Normalize value.
  25658. value = headerValueNormalize(value)
  25659. // 2. If name is not a header name or value is not a
  25660. // header value, then throw a TypeError.
  25661. if (!isValidHeaderName(name)) {
  25662. throw webidl.errors.invalidArgument({
  25663. prefix: 'Headers.append',
  25664. value: name,
  25665. type: 'header name'
  25666. })
  25667. } else if (!isValidHeaderValue(value)) {
  25668. throw webidl.errors.invalidArgument({
  25669. prefix: 'Headers.append',
  25670. value,
  25671. type: 'header value'
  25672. })
  25673. }
  25674. // 3. If headers’s guard is "immutable", then throw a TypeError.
  25675. // 4. Otherwise, if headers’s guard is "request" and name is a
  25676. // forbidden header name, return.
  25677. // Note: undici does not implement forbidden header names
  25678. if (this[kGuard] === 'immutable') {
  25679. throw new TypeError('immutable')
  25680. } else if (this[kGuard] === 'request-no-cors') {
  25681. // 5. Otherwise, if headers’s guard is "request-no-cors":
  25682. // TODO
  25683. }
  25684. // 6. Otherwise, if headers’s guard is "response" and name is a
  25685. // forbidden response-header name, return.
  25686. // 7. Append (name, value) to headers’s header list.
  25687. // 8. If headers’s guard is "request-no-cors", then remove
  25688. // privileged no-CORS request headers from headers
  25689. return this[kHeadersList].append(name, value)
  25690. }
  25691. // https://fetch.spec.whatwg.org/#dom-headers-delete
  25692. delete (name) {
  25693. webidl.brandCheck(this, Headers)
  25694. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.delete' })
  25695. name = webidl.converters.ByteString(name)
  25696. // 1. If name is not a header name, then throw a TypeError.
  25697. if (!isValidHeaderName(name)) {
  25698. throw webidl.errors.invalidArgument({
  25699. prefix: 'Headers.delete',
  25700. value: name,
  25701. type: 'header name'
  25702. })
  25703. }
  25704. // 2. If this’s guard is "immutable", then throw a TypeError.
  25705. // 3. Otherwise, if this’s guard is "request" and name is a
  25706. // forbidden header name, return.
  25707. // 4. Otherwise, if this’s guard is "request-no-cors", name
  25708. // is not a no-CORS-safelisted request-header name, and
  25709. // name is not a privileged no-CORS request-header name,
  25710. // return.
  25711. // 5. Otherwise, if this’s guard is "response" and name is
  25712. // a forbidden response-header name, return.
  25713. // Note: undici does not implement forbidden header names
  25714. if (this[kGuard] === 'immutable') {
  25715. throw new TypeError('immutable')
  25716. } else if (this[kGuard] === 'request-no-cors') {
  25717. // TODO
  25718. }
  25719. // 6. If this’s header list does not contain name, then
  25720. // return.
  25721. if (!this[kHeadersList].contains(name)) {
  25722. return
  25723. }
  25724. // 7. Delete name from this’s header list.
  25725. // 8. If this’s guard is "request-no-cors", then remove
  25726. // privileged no-CORS request headers from this.
  25727. return this[kHeadersList].delete(name)
  25728. }
  25729. // https://fetch.spec.whatwg.org/#dom-headers-get
  25730. get (name) {
  25731. webidl.brandCheck(this, Headers)
  25732. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.get' })
  25733. name = webidl.converters.ByteString(name)
  25734. // 1. If name is not a header name, then throw a TypeError.
  25735. if (!isValidHeaderName(name)) {
  25736. throw webidl.errors.invalidArgument({
  25737. prefix: 'Headers.get',
  25738. value: name,
  25739. type: 'header name'
  25740. })
  25741. }
  25742. // 2. Return the result of getting name from this’s header
  25743. // list.
  25744. return this[kHeadersList].get(name)
  25745. }
  25746. // https://fetch.spec.whatwg.org/#dom-headers-has
  25747. has (name) {
  25748. webidl.brandCheck(this, Headers)
  25749. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.has' })
  25750. name = webidl.converters.ByteString(name)
  25751. // 1. If name is not a header name, then throw a TypeError.
  25752. if (!isValidHeaderName(name)) {
  25753. throw webidl.errors.invalidArgument({
  25754. prefix: 'Headers.has',
  25755. value: name,
  25756. type: 'header name'
  25757. })
  25758. }
  25759. // 2. Return true if this’s header list contains name;
  25760. // otherwise false.
  25761. return this[kHeadersList].contains(name)
  25762. }
  25763. // https://fetch.spec.whatwg.org/#dom-headers-set
  25764. set (name, value) {
  25765. webidl.brandCheck(this, Headers)
  25766. webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.set' })
  25767. name = webidl.converters.ByteString(name)
  25768. value = webidl.converters.ByteString(value)
  25769. // 1. Normalize value.
  25770. value = headerValueNormalize(value)
  25771. // 2. If name is not a header name or value is not a
  25772. // header value, then throw a TypeError.
  25773. if (!isValidHeaderName(name)) {
  25774. throw webidl.errors.invalidArgument({
  25775. prefix: 'Headers.set',
  25776. value: name,
  25777. type: 'header name'
  25778. })
  25779. } else if (!isValidHeaderValue(value)) {
  25780. throw webidl.errors.invalidArgument({
  25781. prefix: 'Headers.set',
  25782. value,
  25783. type: 'header value'
  25784. })
  25785. }
  25786. // 3. If this’s guard is "immutable", then throw a TypeError.
  25787. // 4. Otherwise, if this’s guard is "request" and name is a
  25788. // forbidden header name, return.
  25789. // 5. Otherwise, if this’s guard is "request-no-cors" and
  25790. // name/value is not a no-CORS-safelisted request-header,
  25791. // return.
  25792. // 6. Otherwise, if this’s guard is "response" and name is a
  25793. // forbidden response-header name, return.
  25794. // Note: undici does not implement forbidden header names
  25795. if (this[kGuard] === 'immutable') {
  25796. throw new TypeError('immutable')
  25797. } else if (this[kGuard] === 'request-no-cors') {
  25798. // TODO
  25799. }
  25800. // 7. Set (name, value) in this’s header list.
  25801. // 8. If this’s guard is "request-no-cors", then remove
  25802. // privileged no-CORS request headers from this
  25803. return this[kHeadersList].set(name, value)
  25804. }
  25805. // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie
  25806. getSetCookie () {
  25807. webidl.brandCheck(this, Headers)
  25808. // 1. If this’s header list does not contain `Set-Cookie`, then return « ».
  25809. // 2. Return the values of all headers in this’s header list whose name is
  25810. // a byte-case-insensitive match for `Set-Cookie`, in order.
  25811. const list = this[kHeadersList].cookies
  25812. if (list) {
  25813. return [...list]
  25814. }
  25815. return []
  25816. }
  25817. // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine
  25818. get [kHeadersSortedMap] () {
  25819. if (this[kHeadersList][kHeadersSortedMap]) {
  25820. return this[kHeadersList][kHeadersSortedMap]
  25821. }
  25822. // 1. Let headers be an empty list of headers with the key being the name
  25823. // and value the value.
  25824. const headers = []
  25825. // 2. Let names be the result of convert header names to a sorted-lowercase
  25826. // set with all the names of the headers in list.
  25827. const names = [...this[kHeadersList]].sort((a, b) => a[0] < b[0] ? -1 : 1)
  25828. const cookies = this[kHeadersList].cookies
  25829. // 3. For each name of names:
  25830. for (const [name, value] of names) {
  25831. // 1. If name is `set-cookie`, then:
  25832. if (name === 'set-cookie') {
  25833. // 1. Let values be a list of all values of headers in list whose name
  25834. // is a byte-case-insensitive match for name, in order.
  25835. // 2. For each value of values:
  25836. // 1. Append (name, value) to headers.
  25837. for (const value of cookies) {
  25838. headers.push([name, value])
  25839. }
  25840. } else {
  25841. // 2. Otherwise:
  25842. // 1. Let value be the result of getting name from list.
  25843. // 2. Assert: value is non-null.
  25844. assert(value !== null)
  25845. // 3. Append (name, value) to headers.
  25846. headers.push([name, value])
  25847. }
  25848. }
  25849. this[kHeadersList][kHeadersSortedMap] = headers
  25850. // 4. Return headers.
  25851. return headers
  25852. }
  25853. keys () {
  25854. webidl.brandCheck(this, Headers)
  25855. return makeIterator(
  25856. () => [...this[kHeadersSortedMap].values()],
  25857. 'Headers',
  25858. 'key'
  25859. )
  25860. }
  25861. values () {
  25862. webidl.brandCheck(this, Headers)
  25863. return makeIterator(
  25864. () => [...this[kHeadersSortedMap].values()],
  25865. 'Headers',
  25866. 'value'
  25867. )
  25868. }
  25869. entries () {
  25870. webidl.brandCheck(this, Headers)
  25871. return makeIterator(
  25872. () => [...this[kHeadersSortedMap].values()],
  25873. 'Headers',
  25874. 'key+value'
  25875. )
  25876. }
  25877. /**
  25878. * @param {(value: string, key: string, self: Headers) => void} callbackFn
  25879. * @param {unknown} thisArg
  25880. */
  25881. forEach (callbackFn, thisArg = globalThis) {
  25882. webidl.brandCheck(this, Headers)
  25883. webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.forEach' })
  25884. if (typeof callbackFn !== 'function') {
  25885. throw new TypeError(
  25886. "Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'."
  25887. )
  25888. }
  25889. for (const [key, value] of this) {
  25890. callbackFn.apply(thisArg, [value, key, this])
  25891. }
  25892. }
  25893. [Symbol.for('nodejs.util.inspect.custom')] () {
  25894. webidl.brandCheck(this, Headers)
  25895. return this[kHeadersList]
  25896. }
  25897. }
  25898. Headers.prototype[Symbol.iterator] = Headers.prototype.entries
  25899. Object.defineProperties(Headers.prototype, {
  25900. append: kEnumerableProperty,
  25901. delete: kEnumerableProperty,
  25902. get: kEnumerableProperty,
  25903. has: kEnumerableProperty,
  25904. set: kEnumerableProperty,
  25905. getSetCookie: kEnumerableProperty,
  25906. keys: kEnumerableProperty,
  25907. values: kEnumerableProperty,
  25908. entries: kEnumerableProperty,
  25909. forEach: kEnumerableProperty,
  25910. [Symbol.iterator]: { enumerable: false },
  25911. [Symbol.toStringTag]: {
  25912. value: 'Headers',
  25913. configurable: true
  25914. }
  25915. })
  25916. webidl.converters.HeadersInit = function (V) {
  25917. if (webidl.util.Type(V) === 'Object') {
  25918. if (V[Symbol.iterator]) {
  25919. return webidl.converters['sequence<sequence<ByteString>>'](V)
  25920. }
  25921. return webidl.converters['record<ByteString, ByteString>'](V)
  25922. }
  25923. throw webidl.errors.conversionFailed({
  25924. prefix: 'Headers constructor',
  25925. argument: 'Argument 1',
  25926. types: ['sequence<sequence<ByteString>>', 'record<ByteString, ByteString>']
  25927. })
  25928. }
  25929. module.exports = {
  25930. fill,
  25931. Headers,
  25932. HeadersList
  25933. }
  25934. /***/ }),
  25935. /***/ 4881:
  25936. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  25937. "use strict";
  25938. // https://github.com/Ethan-Arrowood/undici-fetch
  25939. const {
  25940. Response,
  25941. makeNetworkError,
  25942. makeAppropriateNetworkError,
  25943. filterResponse,
  25944. makeResponse
  25945. } = __nccwpck_require__(7823)
  25946. const { Headers } = __nccwpck_require__(554)
  25947. const { Request, makeRequest } = __nccwpck_require__(8359)
  25948. const zlib = __nccwpck_require__(9796)
  25949. const {
  25950. bytesMatch,
  25951. makePolicyContainer,
  25952. clonePolicyContainer,
  25953. requestBadPort,
  25954. TAOCheck,
  25955. appendRequestOriginHeader,
  25956. responseLocationURL,
  25957. requestCurrentURL,
  25958. setRequestReferrerPolicyOnRedirect,
  25959. tryUpgradeRequestToAPotentiallyTrustworthyURL,
  25960. createOpaqueTimingInfo,
  25961. appendFetchMetadata,
  25962. corsCheck,
  25963. crossOriginResourcePolicyCheck,
  25964. determineRequestsReferrer,
  25965. coarsenedSharedCurrentTime,
  25966. createDeferredPromise,
  25967. isBlobLike,
  25968. sameOrigin,
  25969. isCancelled,
  25970. isAborted,
  25971. isErrorLike,
  25972. fullyReadBody,
  25973. readableStreamClose,
  25974. isomorphicEncode,
  25975. urlIsLocal,
  25976. urlIsHttpHttpsScheme,
  25977. urlHasHttpsScheme
  25978. } = __nccwpck_require__(2538)
  25979. const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
  25980. const assert = __nccwpck_require__(9491)
  25981. const { safelyExtractBody } = __nccwpck_require__(9990)
  25982. const {
  25983. redirectStatus,
  25984. nullBodyStatus,
  25985. safeMethods,
  25986. requestBodyHeader,
  25987. subresource,
  25988. DOMException
  25989. } = __nccwpck_require__(1037)
  25990. const { kHeadersList } = __nccwpck_require__(2785)
  25991. const EE = __nccwpck_require__(2361)
  25992. const { Readable, pipeline } = __nccwpck_require__(2781)
  25993. const { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = __nccwpck_require__(3983)
  25994. const { dataURLProcessor, serializeAMimeType } = __nccwpck_require__(685)
  25995. const { TransformStream } = __nccwpck_require__(5356)
  25996. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  25997. const { webidl } = __nccwpck_require__(1744)
  25998. const { STATUS_CODES } = __nccwpck_require__(3685)
  25999. /** @type {import('buffer').resolveObjectURL} */
  26000. let resolveObjectURL
  26001. let ReadableStream = globalThis.ReadableStream
  26002. class Fetch extends EE {
  26003. constructor (dispatcher) {
  26004. super()
  26005. this.dispatcher = dispatcher
  26006. this.connection = null
  26007. this.dump = false
  26008. this.state = 'ongoing'
  26009. // 2 terminated listeners get added per request,
  26010. // but only 1 gets removed. If there are 20 redirects,
  26011. // 21 listeners will be added.
  26012. // See https://github.com/nodejs/undici/issues/1711
  26013. // TODO (fix): Find and fix root cause for leaked listener.
  26014. this.setMaxListeners(21)
  26015. }
  26016. terminate (reason) {
  26017. if (this.state !== 'ongoing') {
  26018. return
  26019. }
  26020. this.state = 'terminated'
  26021. this.connection?.destroy(reason)
  26022. this.emit('terminated', reason)
  26023. }
  26024. // https://fetch.spec.whatwg.org/#fetch-controller-abort
  26025. abort (error) {
  26026. if (this.state !== 'ongoing') {
  26027. return
  26028. }
  26029. // 1. Set controller’s state to "aborted".
  26030. this.state = 'aborted'
  26031. // 2. Let fallbackError be an "AbortError" DOMException.
  26032. // 3. Set error to fallbackError if it is not given.
  26033. if (!error) {
  26034. error = new DOMException('The operation was aborted.', 'AbortError')
  26035. }
  26036. // 4. Let serializedError be StructuredSerialize(error).
  26037. // If that threw an exception, catch it, and let
  26038. // serializedError be StructuredSerialize(fallbackError).
  26039. // 5. Set controller’s serialized abort reason to serializedError.
  26040. this.serializedAbortReason = error
  26041. this.connection?.destroy(error)
  26042. this.emit('terminated', error)
  26043. }
  26044. }
  26045. // https://fetch.spec.whatwg.org/#fetch-method
  26046. async function fetch (input, init = {}) {
  26047. webidl.argumentLengthCheck(arguments, 1, { header: 'globalThis.fetch' })
  26048. // 1. Let p be a new promise.
  26049. const p = createDeferredPromise()
  26050. // 2. Let requestObject be the result of invoking the initial value of
  26051. // Request as constructor with input and init as arguments. If this throws
  26052. // an exception, reject p with it and return p.
  26053. let requestObject
  26054. try {
  26055. requestObject = new Request(input, init)
  26056. } catch (e) {
  26057. p.reject(e)
  26058. return p.promise
  26059. }
  26060. // 3. Let request be requestObject’s request.
  26061. const request = requestObject[kState]
  26062. // 4. If requestObject’s signal’s aborted flag is set, then:
  26063. if (requestObject.signal.aborted) {
  26064. // 1. Abort the fetch() call with p, request, null, and
  26065. // requestObject’s signal’s abort reason.
  26066. abortFetch(p, request, null, requestObject.signal.reason)
  26067. // 2. Return p.
  26068. return p.promise
  26069. }
  26070. // 5. Let globalObject be request’s client’s global object.
  26071. const globalObject = request.client.globalObject
  26072. // 6. If globalObject is a ServiceWorkerGlobalScope object, then set
  26073. // request’s service-workers mode to "none".
  26074. if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') {
  26075. request.serviceWorkers = 'none'
  26076. }
  26077. // 7. Let responseObject be null.
  26078. let responseObject = null
  26079. // 8. Let relevantRealm be this’s relevant Realm.
  26080. const relevantRealm = null
  26081. // 9. Let locallyAborted be false.
  26082. let locallyAborted = false
  26083. // 10. Let controller be null.
  26084. let controller = null
  26085. // 11. Add the following abort steps to requestObject’s signal:
  26086. addAbortListener(
  26087. requestObject.signal,
  26088. () => {
  26089. // 1. Set locallyAborted to true.
  26090. locallyAborted = true
  26091. // 2. Assert: controller is non-null.
  26092. assert(controller != null)
  26093. // 3. Abort controller with requestObject’s signal’s abort reason.
  26094. controller.abort(requestObject.signal.reason)
  26095. // 4. Abort the fetch() call with p, request, responseObject,
  26096. // and requestObject’s signal’s abort reason.
  26097. abortFetch(p, request, responseObject, requestObject.signal.reason)
  26098. }
  26099. )
  26100. // 12. Let handleFetchDone given response response be to finalize and
  26101. // report timing with response, globalObject, and "fetch".
  26102. const handleFetchDone = (response) =>
  26103. finalizeAndReportTiming(response, 'fetch')
  26104. // 13. Set controller to the result of calling fetch given request,
  26105. // with processResponseEndOfBody set to handleFetchDone, and processResponse
  26106. // given response being these substeps:
  26107. const processResponse = (response) => {
  26108. // 1. If locallyAborted is true, terminate these substeps.
  26109. if (locallyAborted) {
  26110. return
  26111. }
  26112. // 2. If response’s aborted flag is set, then:
  26113. if (response.aborted) {
  26114. // 1. Let deserializedError be the result of deserialize a serialized
  26115. // abort reason given controller’s serialized abort reason and
  26116. // relevantRealm.
  26117. // 2. Abort the fetch() call with p, request, responseObject, and
  26118. // deserializedError.
  26119. abortFetch(p, request, responseObject, controller.serializedAbortReason)
  26120. return
  26121. }
  26122. // 3. If response is a network error, then reject p with a TypeError
  26123. // and terminate these substeps.
  26124. if (response.type === 'error') {
  26125. p.reject(
  26126. Object.assign(new TypeError('fetch failed'), { cause: response.error })
  26127. )
  26128. return
  26129. }
  26130. // 4. Set responseObject to the result of creating a Response object,
  26131. // given response, "immutable", and relevantRealm.
  26132. responseObject = new Response()
  26133. responseObject[kState] = response
  26134. responseObject[kRealm] = relevantRealm
  26135. responseObject[kHeaders][kHeadersList] = response.headersList
  26136. responseObject[kHeaders][kGuard] = 'immutable'
  26137. responseObject[kHeaders][kRealm] = relevantRealm
  26138. // 5. Resolve p with responseObject.
  26139. p.resolve(responseObject)
  26140. }
  26141. controller = fetching({
  26142. request,
  26143. processResponseEndOfBody: handleFetchDone,
  26144. processResponse,
  26145. dispatcher: init.dispatcher ?? getGlobalDispatcher() // undici
  26146. })
  26147. // 14. Return p.
  26148. return p.promise
  26149. }
  26150. // https://fetch.spec.whatwg.org/#finalize-and-report-timing
  26151. function finalizeAndReportTiming (response, initiatorType = 'other') {
  26152. // 1. If response is an aborted network error, then return.
  26153. if (response.type === 'error' && response.aborted) {
  26154. return
  26155. }
  26156. // 2. If response’s URL list is null or empty, then return.
  26157. if (!response.urlList?.length) {
  26158. return
  26159. }
  26160. // 3. Let originalURL be response’s URL list[0].
  26161. const originalURL = response.urlList[0]
  26162. // 4. Let timingInfo be response’s timing info.
  26163. let timingInfo = response.timingInfo
  26164. // 5. Let cacheState be response’s cache state.
  26165. let cacheState = response.cacheState
  26166. // 6. If originalURL’s scheme is not an HTTP(S) scheme, then return.
  26167. if (!urlIsHttpHttpsScheme(originalURL)) {
  26168. return
  26169. }
  26170. // 7. If timingInfo is null, then return.
  26171. if (timingInfo === null) {
  26172. return
  26173. }
  26174. // 8. If response’s timing allow passed flag is not set, then:
  26175. if (!timingInfo.timingAllowPassed) {
  26176. // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
  26177. timingInfo = createOpaqueTimingInfo({
  26178. startTime: timingInfo.startTime
  26179. })
  26180. // 2. Set cacheState to the empty string.
  26181. cacheState = ''
  26182. }
  26183. // 9. Set timingInfo’s end time to the coarsened shared current time
  26184. // given global’s relevant settings object’s cross-origin isolated
  26185. // capability.
  26186. // TODO: given global’s relevant settings object’s cross-origin isolated
  26187. // capability?
  26188. timingInfo.endTime = coarsenedSharedCurrentTime()
  26189. // 10. Set response’s timing info to timingInfo.
  26190. response.timingInfo = timingInfo
  26191. // 11. Mark resource timing for timingInfo, originalURL, initiatorType,
  26192. // global, and cacheState.
  26193. markResourceTiming(
  26194. timingInfo,
  26195. originalURL,
  26196. initiatorType,
  26197. globalThis,
  26198. cacheState
  26199. )
  26200. }
  26201. // https://w3c.github.io/resource-timing/#dfn-mark-resource-timing
  26202. function markResourceTiming (timingInfo, originalURL, initiatorType, globalThis, cacheState) {
  26203. if (nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 2)) {
  26204. performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis, cacheState)
  26205. }
  26206. }
  26207. // https://fetch.spec.whatwg.org/#abort-fetch
  26208. function abortFetch (p, request, responseObject, error) {
  26209. // Note: AbortSignal.reason was added in node v17.2.0
  26210. // which would give us an undefined error to reject with.
  26211. // Remove this once node v16 is no longer supported.
  26212. if (!error) {
  26213. error = new DOMException('The operation was aborted.', 'AbortError')
  26214. }
  26215. // 1. Reject promise with error.
  26216. p.reject(error)
  26217. // 2. If request’s body is not null and is readable, then cancel request’s
  26218. // body with error.
  26219. if (request.body != null && isReadable(request.body?.stream)) {
  26220. request.body.stream.cancel(error).catch((err) => {
  26221. if (err.code === 'ERR_INVALID_STATE') {
  26222. // Node bug?
  26223. return
  26224. }
  26225. throw err
  26226. })
  26227. }
  26228. // 3. If responseObject is null, then return.
  26229. if (responseObject == null) {
  26230. return
  26231. }
  26232. // 4. Let response be responseObject’s response.
  26233. const response = responseObject[kState]
  26234. // 5. If response’s body is not null and is readable, then error response’s
  26235. // body with error.
  26236. if (response.body != null && isReadable(response.body?.stream)) {
  26237. response.body.stream.cancel(error).catch((err) => {
  26238. if (err.code === 'ERR_INVALID_STATE') {
  26239. // Node bug?
  26240. return
  26241. }
  26242. throw err
  26243. })
  26244. }
  26245. }
  26246. // https://fetch.spec.whatwg.org/#fetching
  26247. function fetching ({
  26248. request,
  26249. processRequestBodyChunkLength,
  26250. processRequestEndOfBody,
  26251. processResponse,
  26252. processResponseEndOfBody,
  26253. processResponseConsumeBody,
  26254. useParallelQueue = false,
  26255. dispatcher // undici
  26256. }) {
  26257. // 1. Let taskDestination be null.
  26258. let taskDestination = null
  26259. // 2. Let crossOriginIsolatedCapability be false.
  26260. let crossOriginIsolatedCapability = false
  26261. // 3. If request’s client is non-null, then:
  26262. if (request.client != null) {
  26263. // 1. Set taskDestination to request’s client’s global object.
  26264. taskDestination = request.client.globalObject
  26265. // 2. Set crossOriginIsolatedCapability to request’s client’s cross-origin
  26266. // isolated capability.
  26267. crossOriginIsolatedCapability =
  26268. request.client.crossOriginIsolatedCapability
  26269. }
  26270. // 4. If useParallelQueue is true, then set taskDestination to the result of
  26271. // starting a new parallel queue.
  26272. // TODO
  26273. // 5. Let timingInfo be a new fetch timing info whose start time and
  26274. // post-redirect start time are the coarsened shared current time given
  26275. // crossOriginIsolatedCapability.
  26276. const currenTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)
  26277. const timingInfo = createOpaqueTimingInfo({
  26278. startTime: currenTime
  26279. })
  26280. // 6. Let fetchParams be a new fetch params whose
  26281. // request is request,
  26282. // timing info is timingInfo,
  26283. // process request body chunk length is processRequestBodyChunkLength,
  26284. // process request end-of-body is processRequestEndOfBody,
  26285. // process response is processResponse,
  26286. // process response consume body is processResponseConsumeBody,
  26287. // process response end-of-body is processResponseEndOfBody,
  26288. // task destination is taskDestination,
  26289. // and cross-origin isolated capability is crossOriginIsolatedCapability.
  26290. const fetchParams = {
  26291. controller: new Fetch(dispatcher),
  26292. request,
  26293. timingInfo,
  26294. processRequestBodyChunkLength,
  26295. processRequestEndOfBody,
  26296. processResponse,
  26297. processResponseConsumeBody,
  26298. processResponseEndOfBody,
  26299. taskDestination,
  26300. crossOriginIsolatedCapability
  26301. }
  26302. // 7. If request’s body is a byte sequence, then set request’s body to
  26303. // request’s body as a body.
  26304. // NOTE: Since fetching is only called from fetch, body should already be
  26305. // extracted.
  26306. assert(!request.body || request.body.stream)
  26307. // 8. If request’s window is "client", then set request’s window to request’s
  26308. // client, if request’s client’s global object is a Window object; otherwise
  26309. // "no-window".
  26310. if (request.window === 'client') {
  26311. // TODO: What if request.client is null?
  26312. request.window =
  26313. request.client?.globalObject?.constructor?.name === 'Window'
  26314. ? request.client
  26315. : 'no-window'
  26316. }
  26317. // 9. If request’s origin is "client", then set request’s origin to request’s
  26318. // client’s origin.
  26319. if (request.origin === 'client') {
  26320. // TODO: What if request.client is null?
  26321. request.origin = request.client?.origin
  26322. }
  26323. // 10. If all of the following conditions are true:
  26324. // TODO
  26325. // 11. If request’s policy container is "client", then:
  26326. if (request.policyContainer === 'client') {
  26327. // 1. If request’s client is non-null, then set request’s policy
  26328. // container to a clone of request’s client’s policy container. [HTML]
  26329. if (request.client != null) {
  26330. request.policyContainer = clonePolicyContainer(
  26331. request.client.policyContainer
  26332. )
  26333. } else {
  26334. // 2. Otherwise, set request’s policy container to a new policy
  26335. // container.
  26336. request.policyContainer = makePolicyContainer()
  26337. }
  26338. }
  26339. // 12. If request’s header list does not contain `Accept`, then:
  26340. if (!request.headersList.contains('accept')) {
  26341. // 1. Let value be `*/*`.
  26342. const value = '*/*'
  26343. // 2. A user agent should set value to the first matching statement, if
  26344. // any, switching on request’s destination:
  26345. // "document"
  26346. // "frame"
  26347. // "iframe"
  26348. // `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`
  26349. // "image"
  26350. // `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`
  26351. // "style"
  26352. // `text/css,*/*;q=0.1`
  26353. // TODO
  26354. // 3. Append `Accept`/value to request’s header list.
  26355. request.headersList.append('accept', value)
  26356. }
  26357. // 13. If request’s header list does not contain `Accept-Language`, then
  26358. // user agents should append `Accept-Language`/an appropriate value to
  26359. // request’s header list.
  26360. if (!request.headersList.contains('accept-language')) {
  26361. request.headersList.append('accept-language', '*')
  26362. }
  26363. // 14. If request’s priority is null, then use request’s initiator and
  26364. // destination appropriately in setting request’s priority to a
  26365. // user-agent-defined object.
  26366. if (request.priority === null) {
  26367. // TODO
  26368. }
  26369. // 15. If request is a subresource request, then:
  26370. if (subresource.includes(request.destination)) {
  26371. // TODO
  26372. }
  26373. // 16. Run main fetch given fetchParams.
  26374. mainFetch(fetchParams)
  26375. .catch(err => {
  26376. fetchParams.controller.terminate(err)
  26377. })
  26378. // 17. Return fetchParam's controller
  26379. return fetchParams.controller
  26380. }
  26381. // https://fetch.spec.whatwg.org/#concept-main-fetch
  26382. async function mainFetch (fetchParams, recursive = false) {
  26383. // 1. Let request be fetchParams’s request.
  26384. const request = fetchParams.request
  26385. // 2. Let response be null.
  26386. let response = null
  26387. // 3. If request’s local-URLs-only flag is set and request’s current URL is
  26388. // not local, then set response to a network error.
  26389. if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {
  26390. response = makeNetworkError('local URLs only')
  26391. }
  26392. // 4. Run report Content Security Policy violations for request.
  26393. // TODO
  26394. // 5. Upgrade request to a potentially trustworthy URL, if appropriate.
  26395. tryUpgradeRequestToAPotentiallyTrustworthyURL(request)
  26396. // 6. If should request be blocked due to a bad port, should fetching request
  26397. // be blocked as mixed content, or should request be blocked by Content
  26398. // Security Policy returns blocked, then set response to a network error.
  26399. if (requestBadPort(request) === 'blocked') {
  26400. response = makeNetworkError('bad port')
  26401. }
  26402. // TODO: should fetching request be blocked as mixed content?
  26403. // TODO: should request be blocked by Content Security Policy?
  26404. // 7. If request’s referrer policy is the empty string, then set request’s
  26405. // referrer policy to request’s policy container’s referrer policy.
  26406. if (request.referrerPolicy === '') {
  26407. request.referrerPolicy = request.policyContainer.referrerPolicy
  26408. }
  26409. // 8. If request’s referrer is not "no-referrer", then set request’s
  26410. // referrer to the result of invoking determine request’s referrer.
  26411. if (request.referrer !== 'no-referrer') {
  26412. request.referrer = determineRequestsReferrer(request)
  26413. }
  26414. // 9. Set request’s current URL’s scheme to "https" if all of the following
  26415. // conditions are true:
  26416. // - request’s current URL’s scheme is "http"
  26417. // - request’s current URL’s host is a domain
  26418. // - Matching request’s current URL’s host per Known HSTS Host Domain Name
  26419. // Matching results in either a superdomain match with an asserted
  26420. // includeSubDomains directive or a congruent match (with or without an
  26421. // asserted includeSubDomains directive). [HSTS]
  26422. // TODO
  26423. // 10. If recursive is false, then run the remaining steps in parallel.
  26424. // TODO
  26425. // 11. If response is null, then set response to the result of running
  26426. // the steps corresponding to the first matching statement:
  26427. if (response === null) {
  26428. response = await (async () => {
  26429. const currentURL = requestCurrentURL(request)
  26430. if (
  26431. // - request’s current URL’s origin is same origin with request’s origin,
  26432. // and request’s response tainting is "basic"
  26433. (sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') ||
  26434. // request’s current URL’s scheme is "data"
  26435. (currentURL.protocol === 'data:') ||
  26436. // - request’s mode is "navigate" or "websocket"
  26437. (request.mode === 'navigate' || request.mode === 'websocket')
  26438. ) {
  26439. // 1. Set request’s response tainting to "basic".
  26440. request.responseTainting = 'basic'
  26441. // 2. Return the result of running scheme fetch given fetchParams.
  26442. return await schemeFetch(fetchParams)
  26443. }
  26444. // request’s mode is "same-origin"
  26445. if (request.mode === 'same-origin') {
  26446. // 1. Return a network error.
  26447. return makeNetworkError('request mode cannot be "same-origin"')
  26448. }
  26449. // request’s mode is "no-cors"
  26450. if (request.mode === 'no-cors') {
  26451. // 1. If request’s redirect mode is not "follow", then return a network
  26452. // error.
  26453. if (request.redirect !== 'follow') {
  26454. return makeNetworkError(
  26455. 'redirect mode cannot be "follow" for "no-cors" request'
  26456. )
  26457. }
  26458. // 2. Set request’s response tainting to "opaque".
  26459. request.responseTainting = 'opaque'
  26460. // 3. Return the result of running scheme fetch given fetchParams.
  26461. return await schemeFetch(fetchParams)
  26462. }
  26463. // request’s current URL’s scheme is not an HTTP(S) scheme
  26464. if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {
  26465. // Return a network error.
  26466. return makeNetworkError('URL scheme must be a HTTP(S) scheme')
  26467. }
  26468. // - request’s use-CORS-preflight flag is set
  26469. // - request’s unsafe-request flag is set and either request’s method is
  26470. // not a CORS-safelisted method or CORS-unsafe request-header names with
  26471. // request’s header list is not empty
  26472. // 1. Set request’s response tainting to "cors".
  26473. // 2. Let corsWithPreflightResponse be the result of running HTTP fetch
  26474. // given fetchParams and true.
  26475. // 3. If corsWithPreflightResponse is a network error, then clear cache
  26476. // entries using request.
  26477. // 4. Return corsWithPreflightResponse.
  26478. // TODO
  26479. // Otherwise
  26480. // 1. Set request’s response tainting to "cors".
  26481. request.responseTainting = 'cors'
  26482. // 2. Return the result of running HTTP fetch given fetchParams.
  26483. return await httpFetch(fetchParams)
  26484. })()
  26485. }
  26486. // 12. If recursive is true, then return response.
  26487. if (recursive) {
  26488. return response
  26489. }
  26490. // 13. If response is not a network error and response is not a filtered
  26491. // response, then:
  26492. if (response.status !== 0 && !response.internalResponse) {
  26493. // If request’s response tainting is "cors", then:
  26494. if (request.responseTainting === 'cors') {
  26495. // 1. Let headerNames be the result of extracting header list values
  26496. // given `Access-Control-Expose-Headers` and response’s header list.
  26497. // TODO
  26498. // 2. If request’s credentials mode is not "include" and headerNames
  26499. // contains `*`, then set response’s CORS-exposed header-name list to
  26500. // all unique header names in response’s header list.
  26501. // TODO
  26502. // 3. Otherwise, if headerNames is not null or failure, then set
  26503. // response’s CORS-exposed header-name list to headerNames.
  26504. // TODO
  26505. }
  26506. // Set response to the following filtered response with response as its
  26507. // internal response, depending on request’s response tainting:
  26508. if (request.responseTainting === 'basic') {
  26509. response = filterResponse(response, 'basic')
  26510. } else if (request.responseTainting === 'cors') {
  26511. response = filterResponse(response, 'cors')
  26512. } else if (request.responseTainting === 'opaque') {
  26513. response = filterResponse(response, 'opaque')
  26514. } else {
  26515. assert(false)
  26516. }
  26517. }
  26518. // 14. Let internalResponse be response, if response is a network error,
  26519. // and response’s internal response otherwise.
  26520. let internalResponse =
  26521. response.status === 0 ? response : response.internalResponse
  26522. // 15. If internalResponse’s URL list is empty, then set it to a clone of
  26523. // request’s URL list.
  26524. if (internalResponse.urlList.length === 0) {
  26525. internalResponse.urlList.push(...request.urlList)
  26526. }
  26527. // 16. If request’s timing allow failed flag is unset, then set
  26528. // internalResponse’s timing allow passed flag.
  26529. if (!request.timingAllowFailed) {
  26530. response.timingAllowPassed = true
  26531. }
  26532. // 17. If response is not a network error and any of the following returns
  26533. // blocked
  26534. // - should internalResponse to request be blocked as mixed content
  26535. // - should internalResponse to request be blocked by Content Security Policy
  26536. // - should internalResponse to request be blocked due to its MIME type
  26537. // - should internalResponse to request be blocked due to nosniff
  26538. // TODO
  26539. // 18. If response’s type is "opaque", internalResponse’s status is 206,
  26540. // internalResponse’s range-requested flag is set, and request’s header
  26541. // list does not contain `Range`, then set response and internalResponse
  26542. // to a network error.
  26543. if (
  26544. response.type === 'opaque' &&
  26545. internalResponse.status === 206 &&
  26546. internalResponse.rangeRequested &&
  26547. !request.headers.contains('range')
  26548. ) {
  26549. response = internalResponse = makeNetworkError()
  26550. }
  26551. // 19. If response is not a network error and either request’s method is
  26552. // `HEAD` or `CONNECT`, or internalResponse’s status is a null body status,
  26553. // set internalResponse’s body to null and disregard any enqueuing toward
  26554. // it (if any).
  26555. if (
  26556. response.status !== 0 &&
  26557. (request.method === 'HEAD' ||
  26558. request.method === 'CONNECT' ||
  26559. nullBodyStatus.includes(internalResponse.status))
  26560. ) {
  26561. internalResponse.body = null
  26562. fetchParams.controller.dump = true
  26563. }
  26564. // 20. If request’s integrity metadata is not the empty string, then:
  26565. if (request.integrity) {
  26566. // 1. Let processBodyError be this step: run fetch finale given fetchParams
  26567. // and a network error.
  26568. const processBodyError = (reason) =>
  26569. fetchFinale(fetchParams, makeNetworkError(reason))
  26570. // 2. If request’s response tainting is "opaque", or response’s body is null,
  26571. // then run processBodyError and abort these steps.
  26572. if (request.responseTainting === 'opaque' || response.body == null) {
  26573. processBodyError(response.error)
  26574. return
  26575. }
  26576. // 3. Let processBody given bytes be these steps:
  26577. const processBody = (bytes) => {
  26578. // 1. If bytes do not match request’s integrity metadata,
  26579. // then run processBodyError and abort these steps. [SRI]
  26580. if (!bytesMatch(bytes, request.integrity)) {
  26581. processBodyError('integrity mismatch')
  26582. return
  26583. }
  26584. // 2. Set response’s body to bytes as a body.
  26585. response.body = safelyExtractBody(bytes)[0]
  26586. // 3. Run fetch finale given fetchParams and response.
  26587. fetchFinale(fetchParams, response)
  26588. }
  26589. // 4. Fully read response’s body given processBody and processBodyError.
  26590. await fullyReadBody(response.body, processBody, processBodyError)
  26591. } else {
  26592. // 21. Otherwise, run fetch finale given fetchParams and response.
  26593. fetchFinale(fetchParams, response)
  26594. }
  26595. }
  26596. // https://fetch.spec.whatwg.org/#concept-scheme-fetch
  26597. // given a fetch params fetchParams
  26598. async function schemeFetch (fetchParams) {
  26599. // Note: since the connection is destroyed on redirect, which sets fetchParams to a
  26600. // cancelled state, we do not want this condition to trigger *unless* there have been
  26601. // no redirects. See https://github.com/nodejs/undici/issues/1776
  26602. // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
  26603. if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {
  26604. return makeAppropriateNetworkError(fetchParams)
  26605. }
  26606. // 2. Let request be fetchParams’s request.
  26607. const { request } = fetchParams
  26608. const { protocol: scheme } = requestCurrentURL(request)
  26609. // 3. Switch on request’s current URL’s scheme and run the associated steps:
  26610. switch (scheme) {
  26611. case 'about:': {
  26612. // If request’s current URL’s path is the string "blank", then return a new response
  26613. // whose status message is `OK`, header list is « (`Content-Type`, `text/html;charset=utf-8`) »,
  26614. // and body is the empty byte sequence as a body.
  26615. // Otherwise, return a network error.
  26616. return makeNetworkError('about scheme is not supported')
  26617. }
  26618. case 'blob:': {
  26619. if (!resolveObjectURL) {
  26620. resolveObjectURL = (__nccwpck_require__(4300).resolveObjectURL)
  26621. }
  26622. // 1. Let blobURLEntry be request’s current URL’s blob URL entry.
  26623. const blobURLEntry = requestCurrentURL(request)
  26624. // https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56
  26625. // Buffer.resolveObjectURL does not ignore URL queries.
  26626. if (blobURLEntry.search.length !== 0) {
  26627. return makeNetworkError('NetworkError when attempting to fetch resource.')
  26628. }
  26629. const blobURLEntryObject = resolveObjectURL(blobURLEntry.toString())
  26630. // 2. If request’s method is not `GET`, blobURLEntry is null, or blobURLEntry’s
  26631. // object is not a Blob object, then return a network error.
  26632. if (request.method !== 'GET' || !isBlobLike(blobURLEntryObject)) {
  26633. return makeNetworkError('invalid method')
  26634. }
  26635. // 3. Let bodyWithType be the result of safely extracting blobURLEntry’s object.
  26636. const bodyWithType = safelyExtractBody(blobURLEntryObject)
  26637. // 4. Let body be bodyWithType’s body.
  26638. const body = bodyWithType[0]
  26639. // 5. Let length be body’s length, serialized and isomorphic encoded.
  26640. const length = isomorphicEncode(`${body.length}`)
  26641. // 6. Let type be bodyWithType’s type if it is non-null; otherwise the empty byte sequence.
  26642. const type = bodyWithType[1] ?? ''
  26643. // 7. Return a new response whose status message is `OK`, header list is
  26644. // « (`Content-Length`, length), (`Content-Type`, type) », and body is body.
  26645. const response = makeResponse({
  26646. statusText: 'OK',
  26647. headersList: [
  26648. ['content-length', { name: 'Content-Length', value: length }],
  26649. ['content-type', { name: 'Content-Type', value: type }]
  26650. ]
  26651. })
  26652. response.body = body
  26653. return response
  26654. }
  26655. case 'data:': {
  26656. // 1. Let dataURLStruct be the result of running the
  26657. // data: URL processor on request’s current URL.
  26658. const currentURL = requestCurrentURL(request)
  26659. const dataURLStruct = dataURLProcessor(currentURL)
  26660. // 2. If dataURLStruct is failure, then return a
  26661. // network error.
  26662. if (dataURLStruct === 'failure') {
  26663. return makeNetworkError('failed to fetch the data URL')
  26664. }
  26665. // 3. Let mimeType be dataURLStruct’s MIME type, serialized.
  26666. const mimeType = serializeAMimeType(dataURLStruct.mimeType)
  26667. // 4. Return a response whose status message is `OK`,
  26668. // header list is « (`Content-Type`, mimeType) »,
  26669. // and body is dataURLStruct’s body as a body.
  26670. return makeResponse({
  26671. statusText: 'OK',
  26672. headersList: [
  26673. ['content-type', { name: 'Content-Type', value: mimeType }]
  26674. ],
  26675. body: safelyExtractBody(dataURLStruct.body)[0]
  26676. })
  26677. }
  26678. case 'file:': {
  26679. // For now, unfortunate as it is, file URLs are left as an exercise for the reader.
  26680. // When in doubt, return a network error.
  26681. return makeNetworkError('not implemented... yet...')
  26682. }
  26683. case 'http:':
  26684. case 'https:': {
  26685. // Return the result of running HTTP fetch given fetchParams.
  26686. return await httpFetch(fetchParams)
  26687. .catch((err) => makeNetworkError(err))
  26688. }
  26689. default: {
  26690. return makeNetworkError('unknown scheme')
  26691. }
  26692. }
  26693. }
  26694. // https://fetch.spec.whatwg.org/#finalize-response
  26695. function finalizeResponse (fetchParams, response) {
  26696. // 1. Set fetchParams’s request’s done flag.
  26697. fetchParams.request.done = true
  26698. // 2, If fetchParams’s process response done is not null, then queue a fetch
  26699. // task to run fetchParams’s process response done given response, with
  26700. // fetchParams’s task destination.
  26701. if (fetchParams.processResponseDone != null) {
  26702. queueMicrotask(() => fetchParams.processResponseDone(response))
  26703. }
  26704. }
  26705. // https://fetch.spec.whatwg.org/#fetch-finale
  26706. async function fetchFinale (fetchParams, response) {
  26707. // 1. If response is a network error, then:
  26708. if (response.type === 'error') {
  26709. // 1. Set response’s URL list to « fetchParams’s request’s URL list[0] ».
  26710. response.urlList = [fetchParams.request.urlList[0]]
  26711. // 2. Set response’s timing info to the result of creating an opaque timing
  26712. // info for fetchParams’s timing info.
  26713. response.timingInfo = createOpaqueTimingInfo({
  26714. startTime: fetchParams.timingInfo.startTime
  26715. })
  26716. }
  26717. // 2. Let processResponseEndOfBody be the following steps:
  26718. const processResponseEndOfBody = () => {
  26719. // 1. Set fetchParams’s request’s done flag.
  26720. fetchParams.request.done = true
  26721. // If fetchParams’s process response end-of-body is not null,
  26722. // then queue a fetch task to run fetchParams’s process response
  26723. // end-of-body given response with fetchParams’s task destination.
  26724. if (fetchParams.processResponseEndOfBody != null) {
  26725. queueMicrotask(() => fetchParams.processResponseEndOfBody(response))
  26726. }
  26727. }
  26728. // 3. If fetchParams’s process response is non-null, then queue a fetch task
  26729. // to run fetchParams’s process response given response, with fetchParams’s
  26730. // task destination.
  26731. if (fetchParams.processResponse != null) {
  26732. queueMicrotask(() => fetchParams.processResponse(response))
  26733. }
  26734. // 4. If response’s body is null, then run processResponseEndOfBody.
  26735. if (response.body == null) {
  26736. processResponseEndOfBody()
  26737. } else {
  26738. // 5. Otherwise:
  26739. // 1. Let transformStream be a new a TransformStream.
  26740. // 2. Let identityTransformAlgorithm be an algorithm which, given chunk,
  26741. // enqueues chunk in transformStream.
  26742. const identityTransformAlgorithm = (chunk, controller) => {
  26743. controller.enqueue(chunk)
  26744. }
  26745. // 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm
  26746. // and flushAlgorithm set to processResponseEndOfBody.
  26747. const transformStream = new TransformStream({
  26748. start () {},
  26749. transform: identityTransformAlgorithm,
  26750. flush: processResponseEndOfBody
  26751. }, {
  26752. size () {
  26753. return 1
  26754. }
  26755. }, {
  26756. size () {
  26757. return 1
  26758. }
  26759. })
  26760. // 4. Set response’s body to the result of piping response’s body through transformStream.
  26761. response.body = { stream: response.body.stream.pipeThrough(transformStream) }
  26762. }
  26763. // 6. If fetchParams’s process response consume body is non-null, then:
  26764. if (fetchParams.processResponseConsumeBody != null) {
  26765. // 1. Let processBody given nullOrBytes be this step: run fetchParams’s
  26766. // process response consume body given response and nullOrBytes.
  26767. const processBody = (nullOrBytes) => fetchParams.processResponseConsumeBody(response, nullOrBytes)
  26768. // 2. Let processBodyError be this step: run fetchParams’s process
  26769. // response consume body given response and failure.
  26770. const processBodyError = (failure) => fetchParams.processResponseConsumeBody(response, failure)
  26771. // 3. If response’s body is null, then queue a fetch task to run processBody
  26772. // given null, with fetchParams’s task destination.
  26773. if (response.body == null) {
  26774. queueMicrotask(() => processBody(null))
  26775. } else {
  26776. // 4. Otherwise, fully read response’s body given processBody, processBodyError,
  26777. // and fetchParams’s task destination.
  26778. await fullyReadBody(response.body, processBody, processBodyError)
  26779. }
  26780. }
  26781. }
  26782. // https://fetch.spec.whatwg.org/#http-fetch
  26783. async function httpFetch (fetchParams) {
  26784. // 1. Let request be fetchParams’s request.
  26785. const request = fetchParams.request
  26786. // 2. Let response be null.
  26787. let response = null
  26788. // 3. Let actualResponse be null.
  26789. let actualResponse = null
  26790. // 4. Let timingInfo be fetchParams’s timing info.
  26791. const timingInfo = fetchParams.timingInfo
  26792. // 5. If request’s service-workers mode is "all", then:
  26793. if (request.serviceWorkers === 'all') {
  26794. // TODO
  26795. }
  26796. // 6. If response is null, then:
  26797. if (response === null) {
  26798. // 1. If makeCORSPreflight is true and one of these conditions is true:
  26799. // TODO
  26800. // 2. If request’s redirect mode is "follow", then set request’s
  26801. // service-workers mode to "none".
  26802. if (request.redirect === 'follow') {
  26803. request.serviceWorkers = 'none'
  26804. }
  26805. // 3. Set response and actualResponse to the result of running
  26806. // HTTP-network-or-cache fetch given fetchParams.
  26807. actualResponse = response = await httpNetworkOrCacheFetch(fetchParams)
  26808. // 4. If request’s response tainting is "cors" and a CORS check
  26809. // for request and response returns failure, then return a network error.
  26810. if (
  26811. request.responseTainting === 'cors' &&
  26812. corsCheck(request, response) === 'failure'
  26813. ) {
  26814. return makeNetworkError('cors failure')
  26815. }
  26816. // 5. If the TAO check for request and response returns failure, then set
  26817. // request’s timing allow failed flag.
  26818. if (TAOCheck(request, response) === 'failure') {
  26819. request.timingAllowFailed = true
  26820. }
  26821. }
  26822. // 7. If either request’s response tainting or response’s type
  26823. // is "opaque", and the cross-origin resource policy check with
  26824. // request’s origin, request’s client, request’s destination,
  26825. // and actualResponse returns blocked, then return a network error.
  26826. if (
  26827. (request.responseTainting === 'opaque' || response.type === 'opaque') &&
  26828. crossOriginResourcePolicyCheck(
  26829. request.origin,
  26830. request.client,
  26831. request.destination,
  26832. actualResponse
  26833. ) === 'blocked'
  26834. ) {
  26835. return makeNetworkError('blocked')
  26836. }
  26837. // 8. If actualResponse’s status is a redirect status, then:
  26838. if (redirectStatus.includes(actualResponse.status)) {
  26839. // 1. If actualResponse’s status is not 303, request’s body is not null,
  26840. // and the connection uses HTTP/2, then user agents may, and are even
  26841. // encouraged to, transmit an RST_STREAM frame.
  26842. // See, https://github.com/whatwg/fetch/issues/1288
  26843. if (request.redirect !== 'manual') {
  26844. fetchParams.controller.connection.destroy()
  26845. }
  26846. // 2. Switch on request’s redirect mode:
  26847. if (request.redirect === 'error') {
  26848. // Set response to a network error.
  26849. response = makeNetworkError('unexpected redirect')
  26850. } else if (request.redirect === 'manual') {
  26851. // Set response to an opaque-redirect filtered response whose internal
  26852. // response is actualResponse.
  26853. // NOTE(spec): On the web this would return an `opaqueredirect` response,
  26854. // but that doesn't make sense server side.
  26855. // See https://github.com/nodejs/undici/issues/1193.
  26856. response = actualResponse
  26857. } else if (request.redirect === 'follow') {
  26858. // Set response to the result of running HTTP-redirect fetch given
  26859. // fetchParams and response.
  26860. response = await httpRedirectFetch(fetchParams, response)
  26861. } else {
  26862. assert(false)
  26863. }
  26864. }
  26865. // 9. Set response’s timing info to timingInfo.
  26866. response.timingInfo = timingInfo
  26867. // 10. Return response.
  26868. return response
  26869. }
  26870. // https://fetch.spec.whatwg.org/#http-redirect-fetch
  26871. async function httpRedirectFetch (fetchParams, response) {
  26872. // 1. Let request be fetchParams’s request.
  26873. const request = fetchParams.request
  26874. // 2. Let actualResponse be response, if response is not a filtered response,
  26875. // and response’s internal response otherwise.
  26876. const actualResponse = response.internalResponse
  26877. ? response.internalResponse
  26878. : response
  26879. // 3. Let locationURL be actualResponse’s location URL given request’s current
  26880. // URL’s fragment.
  26881. let locationURL
  26882. try {
  26883. locationURL = responseLocationURL(
  26884. actualResponse,
  26885. requestCurrentURL(request).hash
  26886. )
  26887. // 4. If locationURL is null, then return response.
  26888. if (locationURL == null) {
  26889. return response
  26890. }
  26891. } catch (err) {
  26892. // 5. If locationURL is failure, then return a network error.
  26893. return makeNetworkError(err)
  26894. }
  26895. // 6. If locationURL’s scheme is not an HTTP(S) scheme, then return a network
  26896. // error.
  26897. if (!urlIsHttpHttpsScheme(locationURL)) {
  26898. return makeNetworkError('URL scheme must be a HTTP(S) scheme')
  26899. }
  26900. // 7. If request’s redirect count is 20, then return a network error.
  26901. if (request.redirectCount === 20) {
  26902. return makeNetworkError('redirect count exceeded')
  26903. }
  26904. // 8. Increase request’s redirect count by 1.
  26905. request.redirectCount += 1
  26906. // 9. If request’s mode is "cors", locationURL includes credentials, and
  26907. // request’s origin is not same origin with locationURL’s origin, then return
  26908. // a network error.
  26909. if (
  26910. request.mode === 'cors' &&
  26911. (locationURL.username || locationURL.password) &&
  26912. !sameOrigin(request, locationURL)
  26913. ) {
  26914. return makeNetworkError('cross origin not allowed for request mode "cors"')
  26915. }
  26916. // 10. If request’s response tainting is "cors" and locationURL includes
  26917. // credentials, then return a network error.
  26918. if (
  26919. request.responseTainting === 'cors' &&
  26920. (locationURL.username || locationURL.password)
  26921. ) {
  26922. return makeNetworkError(
  26923. 'URL cannot contain credentials for request mode "cors"'
  26924. )
  26925. }
  26926. // 11. If actualResponse’s status is not 303, request’s body is non-null,
  26927. // and request’s body’s source is null, then return a network error.
  26928. if (
  26929. actualResponse.status !== 303 &&
  26930. request.body != null &&
  26931. request.body.source == null
  26932. ) {
  26933. return makeNetworkError()
  26934. }
  26935. // 12. If one of the following is true
  26936. // - actualResponse’s status is 301 or 302 and request’s method is `POST`
  26937. // - actualResponse’s status is 303 and request’s method is not `GET` or `HEAD`
  26938. if (
  26939. ([301, 302].includes(actualResponse.status) && request.method === 'POST') ||
  26940. (actualResponse.status === 303 &&
  26941. !['GET', 'HEAD'].includes(request.method))
  26942. ) {
  26943. // then:
  26944. // 1. Set request’s method to `GET` and request’s body to null.
  26945. request.method = 'GET'
  26946. request.body = null
  26947. // 2. For each headerName of request-body-header name, delete headerName from
  26948. // request’s header list.
  26949. for (const headerName of requestBodyHeader) {
  26950. request.headersList.delete(headerName)
  26951. }
  26952. }
  26953. // 13. If request’s current URL’s origin is not same origin with locationURL’s
  26954. // origin, then for each headerName of CORS non-wildcard request-header name,
  26955. // delete headerName from request’s header list.
  26956. if (!sameOrigin(requestCurrentURL(request), locationURL)) {
  26957. // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
  26958. request.headersList.delete('authorization')
  26959. }
  26960. // 14. If request’s body is non-null, then set request’s body to the first return
  26961. // value of safely extracting request’s body’s source.
  26962. if (request.body != null) {
  26963. assert(request.body.source != null)
  26964. request.body = safelyExtractBody(request.body.source)[0]
  26965. }
  26966. // 15. Let timingInfo be fetchParams’s timing info.
  26967. const timingInfo = fetchParams.timingInfo
  26968. // 16. Set timingInfo’s redirect end time and post-redirect start time to the
  26969. // coarsened shared current time given fetchParams’s cross-origin isolated
  26970. // capability.
  26971. timingInfo.redirectEndTime = timingInfo.postRedirectStartTime =
  26972. coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)
  26973. // 17. If timingInfo’s redirect start time is 0, then set timingInfo’s
  26974. // redirect start time to timingInfo’s start time.
  26975. if (timingInfo.redirectStartTime === 0) {
  26976. timingInfo.redirectStartTime = timingInfo.startTime
  26977. }
  26978. // 18. Append locationURL to request’s URL list.
  26979. request.urlList.push(locationURL)
  26980. // 19. Invoke set request’s referrer policy on redirect on request and
  26981. // actualResponse.
  26982. setRequestReferrerPolicyOnRedirect(request, actualResponse)
  26983. // 20. Return the result of running main fetch given fetchParams and true.
  26984. return mainFetch(fetchParams, true)
  26985. }
  26986. // https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
  26987. async function httpNetworkOrCacheFetch (
  26988. fetchParams,
  26989. isAuthenticationFetch = false,
  26990. isNewConnectionFetch = false
  26991. ) {
  26992. // 1. Let request be fetchParams’s request.
  26993. const request = fetchParams.request
  26994. // 2. Let httpFetchParams be null.
  26995. let httpFetchParams = null
  26996. // 3. Let httpRequest be null.
  26997. let httpRequest = null
  26998. // 4. Let response be null.
  26999. let response = null
  27000. // 5. Let storedResponse be null.
  27001. // TODO: cache
  27002. // 6. Let httpCache be null.
  27003. const httpCache = null
  27004. // 7. Let the revalidatingFlag be unset.
  27005. const revalidatingFlag = false
  27006. // 8. Run these steps, but abort when the ongoing fetch is terminated:
  27007. // 1. If request’s window is "no-window" and request’s redirect mode is
  27008. // "error", then set httpFetchParams to fetchParams and httpRequest to
  27009. // request.
  27010. if (request.window === 'no-window' && request.redirect === 'error') {
  27011. httpFetchParams = fetchParams
  27012. httpRequest = request
  27013. } else {
  27014. // Otherwise:
  27015. // 1. Set httpRequest to a clone of request.
  27016. httpRequest = makeRequest(request)
  27017. // 2. Set httpFetchParams to a copy of fetchParams.
  27018. httpFetchParams = { ...fetchParams }
  27019. // 3. Set httpFetchParams’s request to httpRequest.
  27020. httpFetchParams.request = httpRequest
  27021. }
  27022. // 3. Let includeCredentials be true if one of
  27023. const includeCredentials =
  27024. request.credentials === 'include' ||
  27025. (request.credentials === 'same-origin' &&
  27026. request.responseTainting === 'basic')
  27027. // 4. Let contentLength be httpRequest’s body’s length, if httpRequest’s
  27028. // body is non-null; otherwise null.
  27029. const contentLength = httpRequest.body ? httpRequest.body.length : null
  27030. // 5. Let contentLengthHeaderValue be null.
  27031. let contentLengthHeaderValue = null
  27032. // 6. If httpRequest’s body is null and httpRequest’s method is `POST` or
  27033. // `PUT`, then set contentLengthHeaderValue to `0`.
  27034. if (
  27035. httpRequest.body == null &&
  27036. ['POST', 'PUT'].includes(httpRequest.method)
  27037. ) {
  27038. contentLengthHeaderValue = '0'
  27039. }
  27040. // 7. If contentLength is non-null, then set contentLengthHeaderValue to
  27041. // contentLength, serialized and isomorphic encoded.
  27042. if (contentLength != null) {
  27043. contentLengthHeaderValue = isomorphicEncode(`${contentLength}`)
  27044. }
  27045. // 8. If contentLengthHeaderValue is non-null, then append
  27046. // `Content-Length`/contentLengthHeaderValue to httpRequest’s header
  27047. // list.
  27048. if (contentLengthHeaderValue != null) {
  27049. httpRequest.headersList.append('content-length', contentLengthHeaderValue)
  27050. }
  27051. // 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`,
  27052. // contentLengthHeaderValue) to httpRequest’s header list.
  27053. // 10. If contentLength is non-null and httpRequest’s keepalive is true,
  27054. // then:
  27055. if (contentLength != null && httpRequest.keepalive) {
  27056. // NOTE: keepalive is a noop outside of browser context.
  27057. }
  27058. // 11. If httpRequest’s referrer is a URL, then append
  27059. // `Referer`/httpRequest’s referrer, serialized and isomorphic encoded,
  27060. // to httpRequest’s header list.
  27061. if (httpRequest.referrer instanceof URL) {
  27062. httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href))
  27063. }
  27064. // 12. Append a request `Origin` header for httpRequest.
  27065. appendRequestOriginHeader(httpRequest)
  27066. // 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA]
  27067. appendFetchMetadata(httpRequest)
  27068. // 14. If httpRequest’s header list does not contain `User-Agent`, then
  27069. // user agents should append `User-Agent`/default `User-Agent` value to
  27070. // httpRequest’s header list.
  27071. if (!httpRequest.headersList.contains('user-agent')) {
  27072. httpRequest.headersList.append('user-agent', 'undici')
  27073. }
  27074. // 15. If httpRequest’s cache mode is "default" and httpRequest’s header
  27075. // list contains `If-Modified-Since`, `If-None-Match`,
  27076. // `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set
  27077. // httpRequest’s cache mode to "no-store".
  27078. if (
  27079. httpRequest.cache === 'default' &&
  27080. (httpRequest.headersList.contains('if-modified-since') ||
  27081. httpRequest.headersList.contains('if-none-match') ||
  27082. httpRequest.headersList.contains('if-unmodified-since') ||
  27083. httpRequest.headersList.contains('if-match') ||
  27084. httpRequest.headersList.contains('if-range'))
  27085. ) {
  27086. httpRequest.cache = 'no-store'
  27087. }
  27088. // 16. If httpRequest’s cache mode is "no-cache", httpRequest’s prevent
  27089. // no-cache cache-control header modification flag is unset, and
  27090. // httpRequest’s header list does not contain `Cache-Control`, then append
  27091. // `Cache-Control`/`max-age=0` to httpRequest’s header list.
  27092. if (
  27093. httpRequest.cache === 'no-cache' &&
  27094. !httpRequest.preventNoCacheCacheControlHeaderModification &&
  27095. !httpRequest.headersList.contains('cache-control')
  27096. ) {
  27097. httpRequest.headersList.append('cache-control', 'max-age=0')
  27098. }
  27099. // 17. If httpRequest’s cache mode is "no-store" or "reload", then:
  27100. if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {
  27101. // 1. If httpRequest’s header list does not contain `Pragma`, then append
  27102. // `Pragma`/`no-cache` to httpRequest’s header list.
  27103. if (!httpRequest.headersList.contains('pragma')) {
  27104. httpRequest.headersList.append('pragma', 'no-cache')
  27105. }
  27106. // 2. If httpRequest’s header list does not contain `Cache-Control`,
  27107. // then append `Cache-Control`/`no-cache` to httpRequest’s header list.
  27108. if (!httpRequest.headersList.contains('cache-control')) {
  27109. httpRequest.headersList.append('cache-control', 'no-cache')
  27110. }
  27111. }
  27112. // 18. If httpRequest’s header list contains `Range`, then append
  27113. // `Accept-Encoding`/`identity` to httpRequest’s header list.
  27114. if (httpRequest.headersList.contains('range')) {
  27115. httpRequest.headersList.append('accept-encoding', 'identity')
  27116. }
  27117. // 19. Modify httpRequest’s header list per HTTP. Do not append a given
  27118. // header if httpRequest’s header list contains that header’s name.
  27119. // TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129
  27120. if (!httpRequest.headersList.contains('accept-encoding')) {
  27121. if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {
  27122. httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate')
  27123. } else {
  27124. httpRequest.headersList.append('accept-encoding', 'gzip, deflate')
  27125. }
  27126. }
  27127. // 20. If includeCredentials is true, then:
  27128. if (includeCredentials) {
  27129. // 1. If the user agent is not configured to block cookies for httpRequest
  27130. // (see section 7 of [COOKIES]), then:
  27131. // TODO: credentials
  27132. // 2. If httpRequest’s header list does not contain `Authorization`, then:
  27133. // TODO: credentials
  27134. }
  27135. // 21. If there’s a proxy-authentication entry, use it as appropriate.
  27136. // TODO: proxy-authentication
  27137. // 22. Set httpCache to the result of determining the HTTP cache
  27138. // partition, given httpRequest.
  27139. // TODO: cache
  27140. // 23. If httpCache is null, then set httpRequest’s cache mode to
  27141. // "no-store".
  27142. if (httpCache == null) {
  27143. httpRequest.cache = 'no-store'
  27144. }
  27145. // 24. If httpRequest’s cache mode is neither "no-store" nor "reload",
  27146. // then:
  27147. if (httpRequest.mode !== 'no-store' && httpRequest.mode !== 'reload') {
  27148. // TODO: cache
  27149. }
  27150. // 9. If aborted, then return the appropriate network error for fetchParams.
  27151. // TODO
  27152. // 10. If response is null, then:
  27153. if (response == null) {
  27154. // 1. If httpRequest’s cache mode is "only-if-cached", then return a
  27155. // network error.
  27156. if (httpRequest.mode === 'only-if-cached') {
  27157. return makeNetworkError('only if cached')
  27158. }
  27159. // 2. Let forwardResponse be the result of running HTTP-network fetch
  27160. // given httpFetchParams, includeCredentials, and isNewConnectionFetch.
  27161. const forwardResponse = await httpNetworkFetch(
  27162. httpFetchParams,
  27163. includeCredentials,
  27164. isNewConnectionFetch
  27165. )
  27166. // 3. If httpRequest’s method is unsafe and forwardResponse’s status is
  27167. // in the range 200 to 399, inclusive, invalidate appropriate stored
  27168. // responses in httpCache, as per the "Invalidation" chapter of HTTP
  27169. // Caching, and set storedResponse to null. [HTTP-CACHING]
  27170. if (
  27171. !safeMethods.includes(httpRequest.method) &&
  27172. forwardResponse.status >= 200 &&
  27173. forwardResponse.status <= 399
  27174. ) {
  27175. // TODO: cache
  27176. }
  27177. // 4. If the revalidatingFlag is set and forwardResponse’s status is 304,
  27178. // then:
  27179. if (revalidatingFlag && forwardResponse.status === 304) {
  27180. // TODO: cache
  27181. }
  27182. // 5. If response is null, then:
  27183. if (response == null) {
  27184. // 1. Set response to forwardResponse.
  27185. response = forwardResponse
  27186. // 2. Store httpRequest and forwardResponse in httpCache, as per the
  27187. // "Storing Responses in Caches" chapter of HTTP Caching. [HTTP-CACHING]
  27188. // TODO: cache
  27189. }
  27190. }
  27191. // 11. Set response’s URL list to a clone of httpRequest’s URL list.
  27192. response.urlList = [...httpRequest.urlList]
  27193. // 12. If httpRequest’s header list contains `Range`, then set response’s
  27194. // range-requested flag.
  27195. if (httpRequest.headersList.contains('range')) {
  27196. response.rangeRequested = true
  27197. }
  27198. // 13. Set response’s request-includes-credentials to includeCredentials.
  27199. response.requestIncludesCredentials = includeCredentials
  27200. // 14. If response’s status is 401, httpRequest’s response tainting is not
  27201. // "cors", includeCredentials is true, and request’s window is an environment
  27202. // settings object, then:
  27203. // TODO
  27204. // 15. If response’s status is 407, then:
  27205. if (response.status === 407) {
  27206. // 1. If request’s window is "no-window", then return a network error.
  27207. if (request.window === 'no-window') {
  27208. return makeNetworkError()
  27209. }
  27210. // 2. ???
  27211. // 3. If fetchParams is canceled, then return the appropriate network error for fetchParams.
  27212. if (isCancelled(fetchParams)) {
  27213. return makeAppropriateNetworkError(fetchParams)
  27214. }
  27215. // 4. Prompt the end user as appropriate in request’s window and store
  27216. // the result as a proxy-authentication entry. [HTTP-AUTH]
  27217. // TODO: Invoke some kind of callback?
  27218. // 5. Set response to the result of running HTTP-network-or-cache fetch given
  27219. // fetchParams.
  27220. // TODO
  27221. return makeNetworkError('proxy authentication required')
  27222. }
  27223. // 16. If all of the following are true
  27224. if (
  27225. // response’s status is 421
  27226. response.status === 421 &&
  27227. // isNewConnectionFetch is false
  27228. !isNewConnectionFetch &&
  27229. // request’s body is null, or request’s body is non-null and request’s body’s source is non-null
  27230. (request.body == null || request.body.source != null)
  27231. ) {
  27232. // then:
  27233. // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
  27234. if (isCancelled(fetchParams)) {
  27235. return makeAppropriateNetworkError(fetchParams)
  27236. }
  27237. // 2. Set response to the result of running HTTP-network-or-cache
  27238. // fetch given fetchParams, isAuthenticationFetch, and true.
  27239. // TODO (spec): The spec doesn't specify this but we need to cancel
  27240. // the active response before we can start a new one.
  27241. // https://github.com/whatwg/fetch/issues/1293
  27242. fetchParams.controller.connection.destroy()
  27243. response = await httpNetworkOrCacheFetch(
  27244. fetchParams,
  27245. isAuthenticationFetch,
  27246. true
  27247. )
  27248. }
  27249. // 17. If isAuthenticationFetch is true, then create an authentication entry
  27250. if (isAuthenticationFetch) {
  27251. // TODO
  27252. }
  27253. // 18. Return response.
  27254. return response
  27255. }
  27256. // https://fetch.spec.whatwg.org/#http-network-fetch
  27257. async function httpNetworkFetch (
  27258. fetchParams,
  27259. includeCredentials = false,
  27260. forceNewConnection = false
  27261. ) {
  27262. assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed)
  27263. fetchParams.controller.connection = {
  27264. abort: null,
  27265. destroyed: false,
  27266. destroy (err) {
  27267. if (!this.destroyed) {
  27268. this.destroyed = true
  27269. this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))
  27270. }
  27271. }
  27272. }
  27273. // 1. Let request be fetchParams’s request.
  27274. const request = fetchParams.request
  27275. // 2. Let response be null.
  27276. let response = null
  27277. // 3. Let timingInfo be fetchParams’s timing info.
  27278. const timingInfo = fetchParams.timingInfo
  27279. // 4. Let httpCache be the result of determining the HTTP cache partition,
  27280. // given request.
  27281. // TODO: cache
  27282. const httpCache = null
  27283. // 5. If httpCache is null, then set request’s cache mode to "no-store".
  27284. if (httpCache == null) {
  27285. request.cache = 'no-store'
  27286. }
  27287. // 6. Let networkPartitionKey be the result of determining the network
  27288. // partition key given request.
  27289. // TODO
  27290. // 7. Let newConnection be "yes" if forceNewConnection is true; otherwise
  27291. // "no".
  27292. const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars
  27293. // 8. Switch on request’s mode:
  27294. if (request.mode === 'websocket') {
  27295. // Let connection be the result of obtaining a WebSocket connection,
  27296. // given request’s current URL.
  27297. // TODO
  27298. } else {
  27299. // Let connection be the result of obtaining a connection, given
  27300. // networkPartitionKey, request’s current URL’s origin,
  27301. // includeCredentials, and forceNewConnection.
  27302. // TODO
  27303. }
  27304. // 9. Run these steps, but abort when the ongoing fetch is terminated:
  27305. // 1. If connection is failure, then return a network error.
  27306. // 2. Set timingInfo’s final connection timing info to the result of
  27307. // calling clamp and coarsen connection timing info with connection’s
  27308. // timing info, timingInfo’s post-redirect start time, and fetchParams’s
  27309. // cross-origin isolated capability.
  27310. // 3. If connection is not an HTTP/2 connection, request’s body is non-null,
  27311. // and request’s body’s source is null, then append (`Transfer-Encoding`,
  27312. // `chunked`) to request’s header list.
  27313. // 4. Set timingInfo’s final network-request start time to the coarsened
  27314. // shared current time given fetchParams’s cross-origin isolated
  27315. // capability.
  27316. // 5. Set response to the result of making an HTTP request over connection
  27317. // using request with the following caveats:
  27318. // - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS]
  27319. // [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH]
  27320. // - If request’s body is non-null, and request’s body’s source is null,
  27321. // then the user agent may have a buffer of up to 64 kibibytes and store
  27322. // a part of request’s body in that buffer. If the user agent reads from
  27323. // request’s body beyond that buffer’s size and the user agent needs to
  27324. // resend request, then instead return a network error.
  27325. // - Set timingInfo’s final network-response start time to the coarsened
  27326. // shared current time given fetchParams’s cross-origin isolated capability,
  27327. // immediately after the user agent’s HTTP parser receives the first byte
  27328. // of the response (e.g., frame header bytes for HTTP/2 or response status
  27329. // line for HTTP/1.x).
  27330. // - Wait until all the headers are transmitted.
  27331. // - Any responses whose status is in the range 100 to 199, inclusive,
  27332. // and is not 101, are to be ignored, except for the purposes of setting
  27333. // timingInfo’s final network-response start time above.
  27334. // - If request’s header list contains `Transfer-Encoding`/`chunked` and
  27335. // response is transferred via HTTP/1.0 or older, then return a network
  27336. // error.
  27337. // - If the HTTP request results in a TLS client certificate dialog, then:
  27338. // 1. If request’s window is an environment settings object, make the
  27339. // dialog available in request’s window.
  27340. // 2. Otherwise, return a network error.
  27341. // To transmit request’s body body, run these steps:
  27342. let requestBody = null
  27343. // 1. If body is null and fetchParams’s process request end-of-body is
  27344. // non-null, then queue a fetch task given fetchParams’s process request
  27345. // end-of-body and fetchParams’s task destination.
  27346. if (request.body == null && fetchParams.processRequestEndOfBody) {
  27347. queueMicrotask(() => fetchParams.processRequestEndOfBody())
  27348. } else if (request.body != null) {
  27349. // 2. Otherwise, if body is non-null:
  27350. // 1. Let processBodyChunk given bytes be these steps:
  27351. const processBodyChunk = async function * (bytes) {
  27352. // 1. If the ongoing fetch is terminated, then abort these steps.
  27353. if (isCancelled(fetchParams)) {
  27354. return
  27355. }
  27356. // 2. Run this step in parallel: transmit bytes.
  27357. yield bytes
  27358. // 3. If fetchParams’s process request body is non-null, then run
  27359. // fetchParams’s process request body given bytes’s length.
  27360. fetchParams.processRequestBodyChunkLength?.(bytes.byteLength)
  27361. }
  27362. // 2. Let processEndOfBody be these steps:
  27363. const processEndOfBody = () => {
  27364. // 1. If fetchParams is canceled, then abort these steps.
  27365. if (isCancelled(fetchParams)) {
  27366. return
  27367. }
  27368. // 2. If fetchParams’s process request end-of-body is non-null,
  27369. // then run fetchParams’s process request end-of-body.
  27370. if (fetchParams.processRequestEndOfBody) {
  27371. fetchParams.processRequestEndOfBody()
  27372. }
  27373. }
  27374. // 3. Let processBodyError given e be these steps:
  27375. const processBodyError = (e) => {
  27376. // 1. If fetchParams is canceled, then abort these steps.
  27377. if (isCancelled(fetchParams)) {
  27378. return
  27379. }
  27380. // 2. If e is an "AbortError" DOMException, then abort fetchParams’s controller.
  27381. if (e.name === 'AbortError') {
  27382. fetchParams.controller.abort()
  27383. } else {
  27384. fetchParams.controller.terminate(e)
  27385. }
  27386. }
  27387. // 4. Incrementally read request’s body given processBodyChunk, processEndOfBody,
  27388. // processBodyError, and fetchParams’s task destination.
  27389. requestBody = (async function * () {
  27390. try {
  27391. for await (const bytes of request.body.stream) {
  27392. yield * processBodyChunk(bytes)
  27393. }
  27394. processEndOfBody()
  27395. } catch (err) {
  27396. processBodyError(err)
  27397. }
  27398. })()
  27399. }
  27400. try {
  27401. // socket is only provided for websockets
  27402. const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody })
  27403. if (socket) {
  27404. response = makeResponse({ status, statusText, headersList, socket })
  27405. } else {
  27406. const iterator = body[Symbol.asyncIterator]()
  27407. fetchParams.controller.next = () => iterator.next()
  27408. response = makeResponse({ status, statusText, headersList })
  27409. }
  27410. } catch (err) {
  27411. // 10. If aborted, then:
  27412. if (err.name === 'AbortError') {
  27413. // 1. If connection uses HTTP/2, then transmit an RST_STREAM frame.
  27414. fetchParams.controller.connection.destroy()
  27415. // 2. Return the appropriate network error for fetchParams.
  27416. return makeAppropriateNetworkError(fetchParams, err)
  27417. }
  27418. return makeNetworkError(err)
  27419. }
  27420. // 11. Let pullAlgorithm be an action that resumes the ongoing fetch
  27421. // if it is suspended.
  27422. const pullAlgorithm = () => {
  27423. fetchParams.controller.resume()
  27424. }
  27425. // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s
  27426. // controller with reason, given reason.
  27427. const cancelAlgorithm = (reason) => {
  27428. fetchParams.controller.abort(reason)
  27429. }
  27430. // 13. Let highWaterMark be a non-negative, non-NaN number, chosen by
  27431. // the user agent.
  27432. // TODO
  27433. // 14. Let sizeAlgorithm be an algorithm that accepts a chunk object
  27434. // and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent.
  27435. // TODO
  27436. // 15. Let stream be a new ReadableStream.
  27437. // 16. Set up stream with pullAlgorithm set to pullAlgorithm,
  27438. // cancelAlgorithm set to cancelAlgorithm, highWaterMark set to
  27439. // highWaterMark, and sizeAlgorithm set to sizeAlgorithm.
  27440. if (!ReadableStream) {
  27441. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  27442. }
  27443. const stream = new ReadableStream(
  27444. {
  27445. async start (controller) {
  27446. fetchParams.controller.controller = controller
  27447. },
  27448. async pull (controller) {
  27449. await pullAlgorithm(controller)
  27450. },
  27451. async cancel (reason) {
  27452. await cancelAlgorithm(reason)
  27453. }
  27454. },
  27455. {
  27456. highWaterMark: 0,
  27457. size () {
  27458. return 1
  27459. }
  27460. }
  27461. )
  27462. // 17. Run these steps, but abort when the ongoing fetch is terminated:
  27463. // 1. Set response’s body to a new body whose stream is stream.
  27464. response.body = { stream }
  27465. // 2. If response is not a network error and request’s cache mode is
  27466. // not "no-store", then update response in httpCache for request.
  27467. // TODO
  27468. // 3. If includeCredentials is true and the user agent is not configured
  27469. // to block cookies for request (see section 7 of [COOKIES]), then run the
  27470. // "set-cookie-string" parsing algorithm (see section 5.2 of [COOKIES]) on
  27471. // the value of each header whose name is a byte-case-insensitive match for
  27472. // `Set-Cookie` in response’s header list, if any, and request’s current URL.
  27473. // TODO
  27474. // 18. If aborted, then:
  27475. // TODO
  27476. // 19. Run these steps in parallel:
  27477. // 1. Run these steps, but abort when fetchParams is canceled:
  27478. fetchParams.controller.on('terminated', onAborted)
  27479. fetchParams.controller.resume = async () => {
  27480. // 1. While true
  27481. while (true) {
  27482. // 1-3. See onData...
  27483. // 4. Set bytes to the result of handling content codings given
  27484. // codings and bytes.
  27485. let bytes
  27486. let isFailure
  27487. try {
  27488. const { done, value } = await fetchParams.controller.next()
  27489. if (isAborted(fetchParams)) {
  27490. break
  27491. }
  27492. bytes = done ? undefined : value
  27493. } catch (err) {
  27494. if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {
  27495. // zlib doesn't like empty streams.
  27496. bytes = undefined
  27497. } else {
  27498. bytes = err
  27499. // err may be propagated from the result of calling readablestream.cancel,
  27500. // which might not be an error. https://github.com/nodejs/undici/issues/2009
  27501. isFailure = true
  27502. }
  27503. }
  27504. if (bytes === undefined) {
  27505. // 2. Otherwise, if the bytes transmission for response’s message
  27506. // body is done normally and stream is readable, then close
  27507. // stream, finalize response for fetchParams and response, and
  27508. // abort these in-parallel steps.
  27509. readableStreamClose(fetchParams.controller.controller)
  27510. finalizeResponse(fetchParams, response)
  27511. return
  27512. }
  27513. // 5. Increase timingInfo’s decoded body size by bytes’s length.
  27514. timingInfo.decodedBodySize += bytes?.byteLength ?? 0
  27515. // 6. If bytes is failure, then terminate fetchParams’s controller.
  27516. if (isFailure) {
  27517. fetchParams.controller.terminate(bytes)
  27518. return
  27519. }
  27520. // 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes
  27521. // into stream.
  27522. fetchParams.controller.controller.enqueue(new Uint8Array(bytes))
  27523. // 8. If stream is errored, then terminate the ongoing fetch.
  27524. if (isErrored(stream)) {
  27525. fetchParams.controller.terminate()
  27526. return
  27527. }
  27528. // 9. If stream doesn’t need more data ask the user agent to suspend
  27529. // the ongoing fetch.
  27530. if (!fetchParams.controller.controller.desiredSize) {
  27531. return
  27532. }
  27533. }
  27534. }
  27535. // 2. If aborted, then:
  27536. function onAborted (reason) {
  27537. // 2. If fetchParams is aborted, then:
  27538. if (isAborted(fetchParams)) {
  27539. // 1. Set response’s aborted flag.
  27540. response.aborted = true
  27541. // 2. If stream is readable, then error stream with the result of
  27542. // deserialize a serialized abort reason given fetchParams’s
  27543. // controller’s serialized abort reason and an
  27544. // implementation-defined realm.
  27545. if (isReadable(stream)) {
  27546. fetchParams.controller.controller.error(
  27547. fetchParams.controller.serializedAbortReason
  27548. )
  27549. }
  27550. } else {
  27551. // 3. Otherwise, if stream is readable, error stream with a TypeError.
  27552. if (isReadable(stream)) {
  27553. fetchParams.controller.controller.error(new TypeError('terminated', {
  27554. cause: isErrorLike(reason) ? reason : undefined
  27555. }))
  27556. }
  27557. }
  27558. // 4. If connection uses HTTP/2, then transmit an RST_STREAM frame.
  27559. // 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so.
  27560. fetchParams.controller.connection.destroy()
  27561. }
  27562. // 20. Return response.
  27563. return response
  27564. async function dispatch ({ body }) {
  27565. const url = requestCurrentURL(request)
  27566. /** @type {import('../..').Agent} */
  27567. const agent = fetchParams.controller.dispatcher
  27568. return new Promise((resolve, reject) => agent.dispatch(
  27569. {
  27570. path: url.pathname + url.search,
  27571. origin: url.origin,
  27572. method: request.method,
  27573. body: fetchParams.controller.dispatcher.isMockActive ? request.body && request.body.source : body,
  27574. headers: request.headersList.entries,
  27575. maxRedirections: 0,
  27576. upgrade: request.mode === 'websocket' ? 'websocket' : undefined
  27577. },
  27578. {
  27579. body: null,
  27580. abort: null,
  27581. onConnect (abort) {
  27582. // TODO (fix): Do we need connection here?
  27583. const { connection } = fetchParams.controller
  27584. if (connection.destroyed) {
  27585. abort(new DOMException('The operation was aborted.', 'AbortError'))
  27586. } else {
  27587. fetchParams.controller.on('terminated', abort)
  27588. this.abort = connection.abort = abort
  27589. }
  27590. },
  27591. onHeaders (status, headersList, resume, statusText) {
  27592. if (status < 200) {
  27593. return
  27594. }
  27595. let codings = []
  27596. let location = ''
  27597. const headers = new Headers()
  27598. // For H2, the headers are a plain JS object
  27599. // We distinguish between them and iterate accordingly
  27600. if (Array.isArray(headersList)) {
  27601. for (let n = 0; n < headersList.length; n += 2) {
  27602. const key = headersList[n + 0].toString('latin1')
  27603. const val = headersList[n + 1].toString('latin1')
  27604. if (key.toLowerCase() === 'content-encoding') {
  27605. // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1
  27606. // "All content-coding values are case-insensitive..."
  27607. codings = val.toLowerCase().split(',').map((x) => x.trim())
  27608. } else if (key.toLowerCase() === 'location') {
  27609. location = val
  27610. }
  27611. headers.append(key, val)
  27612. }
  27613. } else {
  27614. const keys = Object.keys(headersList)
  27615. for (const key of keys) {
  27616. const val = headersList[key]
  27617. if (key.toLowerCase() === 'content-encoding') {
  27618. // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1
  27619. // "All content-coding values are case-insensitive..."
  27620. codings = val.toLowerCase().split(',').map((x) => x.trim()).reverse()
  27621. } else if (key.toLowerCase() === 'location') {
  27622. location = val
  27623. }
  27624. headers.append(key, val)
  27625. }
  27626. }
  27627. this.body = new Readable({ read: resume })
  27628. const decoders = []
  27629. const willFollow = request.redirect === 'follow' &&
  27630. location &&
  27631. redirectStatus.includes(status)
  27632. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
  27633. if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) {
  27634. for (const coding of codings) {
  27635. // https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2
  27636. if (coding === 'x-gzip' || coding === 'gzip') {
  27637. decoders.push(zlib.createGunzip({
  27638. // Be less strict when decoding compressed responses, since sometimes
  27639. // servers send slightly invalid responses that are still accepted
  27640. // by common browsers.
  27641. // Always using Z_SYNC_FLUSH is what cURL does.
  27642. flush: zlib.constants.Z_SYNC_FLUSH,
  27643. finishFlush: zlib.constants.Z_SYNC_FLUSH
  27644. }))
  27645. } else if (coding === 'deflate') {
  27646. decoders.push(zlib.createInflate())
  27647. } else if (coding === 'br') {
  27648. decoders.push(zlib.createBrotliDecompress())
  27649. } else {
  27650. decoders.length = 0
  27651. break
  27652. }
  27653. }
  27654. }
  27655. resolve({
  27656. status,
  27657. statusText,
  27658. headersList: headers[kHeadersList],
  27659. body: decoders.length
  27660. ? pipeline(this.body, ...decoders, () => { })
  27661. : this.body.on('error', () => {})
  27662. })
  27663. return true
  27664. },
  27665. onData (chunk) {
  27666. if (fetchParams.controller.dump) {
  27667. return
  27668. }
  27669. // 1. If one or more bytes have been transmitted from response’s
  27670. // message body, then:
  27671. // 1. Let bytes be the transmitted bytes.
  27672. const bytes = chunk
  27673. // 2. Let codings be the result of extracting header list values
  27674. // given `Content-Encoding` and response’s header list.
  27675. // See pullAlgorithm.
  27676. // 3. Increase timingInfo’s encoded body size by bytes’s length.
  27677. timingInfo.encodedBodySize += bytes.byteLength
  27678. // 4. See pullAlgorithm...
  27679. return this.body.push(bytes)
  27680. },
  27681. onComplete () {
  27682. if (this.abort) {
  27683. fetchParams.controller.off('terminated', this.abort)
  27684. }
  27685. fetchParams.controller.ended = true
  27686. this.body.push(null)
  27687. },
  27688. onError (error) {
  27689. if (this.abort) {
  27690. fetchParams.controller.off('terminated', this.abort)
  27691. }
  27692. this.body?.destroy(error)
  27693. fetchParams.controller.terminate(error)
  27694. reject(error)
  27695. },
  27696. onUpgrade (status, headersList, socket) {
  27697. if (status !== 101) {
  27698. return
  27699. }
  27700. const headers = new Headers()
  27701. for (let n = 0; n < headersList.length; n += 2) {
  27702. const key = headersList[n + 0].toString('latin1')
  27703. const val = headersList[n + 1].toString('latin1')
  27704. headers.append(key, val)
  27705. }
  27706. resolve({
  27707. status,
  27708. statusText: STATUS_CODES[status],
  27709. headersList: headers[kHeadersList],
  27710. socket
  27711. })
  27712. return true
  27713. }
  27714. }
  27715. ))
  27716. }
  27717. }
  27718. module.exports = {
  27719. fetch,
  27720. Fetch,
  27721. fetching,
  27722. finalizeAndReportTiming
  27723. }
  27724. /***/ }),
  27725. /***/ 8359:
  27726. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  27727. "use strict";
  27728. /* globals AbortController */
  27729. const { extractBody, mixinBody, cloneBody } = __nccwpck_require__(9990)
  27730. const { Headers, fill: fillHeaders, HeadersList } = __nccwpck_require__(554)
  27731. const { FinalizationRegistry } = __nccwpck_require__(6436)()
  27732. const util = __nccwpck_require__(3983)
  27733. const {
  27734. isValidHTTPToken,
  27735. sameOrigin,
  27736. normalizeMethod,
  27737. makePolicyContainer
  27738. } = __nccwpck_require__(2538)
  27739. const {
  27740. forbiddenMethods,
  27741. corsSafeListedMethods,
  27742. referrerPolicy,
  27743. requestRedirect,
  27744. requestMode,
  27745. requestCredentials,
  27746. requestCache,
  27747. requestDuplex
  27748. } = __nccwpck_require__(1037)
  27749. const { kEnumerableProperty } = util
  27750. const { kHeaders, kSignal, kState, kGuard, kRealm } = __nccwpck_require__(5861)
  27751. const { webidl } = __nccwpck_require__(1744)
  27752. const { getGlobalOrigin } = __nccwpck_require__(1246)
  27753. const { URLSerializer } = __nccwpck_require__(685)
  27754. const { kHeadersList } = __nccwpck_require__(2785)
  27755. const assert = __nccwpck_require__(9491)
  27756. const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __nccwpck_require__(2361)
  27757. let TransformStream = globalThis.TransformStream
  27758. const kInit = Symbol('init')
  27759. const kAbortController = Symbol('abortController')
  27760. const requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
  27761. signal.removeEventListener('abort', abort)
  27762. })
  27763. // https://fetch.spec.whatwg.org/#request-class
  27764. class Request {
  27765. // https://fetch.spec.whatwg.org/#dom-request
  27766. constructor (input, init = {}) {
  27767. if (input === kInit) {
  27768. return
  27769. }
  27770. webidl.argumentLengthCheck(arguments, 1, { header: 'Request constructor' })
  27771. input = webidl.converters.RequestInfo(input)
  27772. init = webidl.converters.RequestInit(init)
  27773. // https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object
  27774. this[kRealm] = {
  27775. settingsObject: {
  27776. baseUrl: getGlobalOrigin(),
  27777. get origin () {
  27778. return this.baseUrl?.origin
  27779. },
  27780. policyContainer: makePolicyContainer()
  27781. }
  27782. }
  27783. // 1. Let request be null.
  27784. let request = null
  27785. // 2. Let fallbackMode be null.
  27786. let fallbackMode = null
  27787. // 3. Let baseURL be this’s relevant settings object’s API base URL.
  27788. const baseUrl = this[kRealm].settingsObject.baseUrl
  27789. // 4. Let signal be null.
  27790. let signal = null
  27791. // 5. If input is a string, then:
  27792. if (typeof input === 'string') {
  27793. // 1. Let parsedURL be the result of parsing input with baseURL.
  27794. // 2. If parsedURL is failure, then throw a TypeError.
  27795. let parsedURL
  27796. try {
  27797. parsedURL = new URL(input, baseUrl)
  27798. } catch (err) {
  27799. throw new TypeError('Failed to parse URL from ' + input, { cause: err })
  27800. }
  27801. // 3. If parsedURL includes credentials, then throw a TypeError.
  27802. if (parsedURL.username || parsedURL.password) {
  27803. throw new TypeError(
  27804. 'Request cannot be constructed from a URL that includes credentials: ' +
  27805. input
  27806. )
  27807. }
  27808. // 4. Set request to a new request whose URL is parsedURL.
  27809. request = makeRequest({ urlList: [parsedURL] })
  27810. // 5. Set fallbackMode to "cors".
  27811. fallbackMode = 'cors'
  27812. } else {
  27813. // 6. Otherwise:
  27814. // 7. Assert: input is a Request object.
  27815. assert(input instanceof Request)
  27816. // 8. Set request to input’s request.
  27817. request = input[kState]
  27818. // 9. Set signal to input’s signal.
  27819. signal = input[kSignal]
  27820. }
  27821. // 7. Let origin be this’s relevant settings object’s origin.
  27822. const origin = this[kRealm].settingsObject.origin
  27823. // 8. Let window be "client".
  27824. let window = 'client'
  27825. // 9. If request’s window is an environment settings object and its origin
  27826. // is same origin with origin, then set window to request’s window.
  27827. if (
  27828. request.window?.constructor?.name === 'EnvironmentSettingsObject' &&
  27829. sameOrigin(request.window, origin)
  27830. ) {
  27831. window = request.window
  27832. }
  27833. // 10. If init["window"] exists and is non-null, then throw a TypeError.
  27834. if (init.window != null) {
  27835. throw new TypeError(`'window' option '${window}' must be null`)
  27836. }
  27837. // 11. If init["window"] exists, then set window to "no-window".
  27838. if ('window' in init) {
  27839. window = 'no-window'
  27840. }
  27841. // 12. Set request to a new request with the following properties:
  27842. request = makeRequest({
  27843. // URL request’s URL.
  27844. // undici implementation note: this is set as the first item in request's urlList in makeRequest
  27845. // method request’s method.
  27846. method: request.method,
  27847. // header list A copy of request’s header list.
  27848. // undici implementation note: headersList is cloned in makeRequest
  27849. headersList: request.headersList,
  27850. // unsafe-request flag Set.
  27851. unsafeRequest: request.unsafeRequest,
  27852. // client This’s relevant settings object.
  27853. client: this[kRealm].settingsObject,
  27854. // window window.
  27855. window,
  27856. // priority request’s priority.
  27857. priority: request.priority,
  27858. // origin request’s origin. The propagation of the origin is only significant for navigation requests
  27859. // being handled by a service worker. In this scenario a request can have an origin that is different
  27860. // from the current client.
  27861. origin: request.origin,
  27862. // referrer request’s referrer.
  27863. referrer: request.referrer,
  27864. // referrer policy request’s referrer policy.
  27865. referrerPolicy: request.referrerPolicy,
  27866. // mode request’s mode.
  27867. mode: request.mode,
  27868. // credentials mode request’s credentials mode.
  27869. credentials: request.credentials,
  27870. // cache mode request’s cache mode.
  27871. cache: request.cache,
  27872. // redirect mode request’s redirect mode.
  27873. redirect: request.redirect,
  27874. // integrity metadata request’s integrity metadata.
  27875. integrity: request.integrity,
  27876. // keepalive request’s keepalive.
  27877. keepalive: request.keepalive,
  27878. // reload-navigation flag request’s reload-navigation flag.
  27879. reloadNavigation: request.reloadNavigation,
  27880. // history-navigation flag request’s history-navigation flag.
  27881. historyNavigation: request.historyNavigation,
  27882. // URL list A clone of request’s URL list.
  27883. urlList: [...request.urlList]
  27884. })
  27885. // 13. If init is not empty, then:
  27886. if (Object.keys(init).length > 0) {
  27887. // 1. If request’s mode is "navigate", then set it to "same-origin".
  27888. if (request.mode === 'navigate') {
  27889. request.mode = 'same-origin'
  27890. }
  27891. // 2. Unset request’s reload-navigation flag.
  27892. request.reloadNavigation = false
  27893. // 3. Unset request’s history-navigation flag.
  27894. request.historyNavigation = false
  27895. // 4. Set request’s origin to "client".
  27896. request.origin = 'client'
  27897. // 5. Set request’s referrer to "client"
  27898. request.referrer = 'client'
  27899. // 6. Set request’s referrer policy to the empty string.
  27900. request.referrerPolicy = ''
  27901. // 7. Set request’s URL to request’s current URL.
  27902. request.url = request.urlList[request.urlList.length - 1]
  27903. // 8. Set request’s URL list to « request’s URL ».
  27904. request.urlList = [request.url]
  27905. }
  27906. // 14. If init["referrer"] exists, then:
  27907. if (init.referrer !== undefined) {
  27908. // 1. Let referrer be init["referrer"].
  27909. const referrer = init.referrer
  27910. // 2. If referrer is the empty string, then set request’s referrer to "no-referrer".
  27911. if (referrer === '') {
  27912. request.referrer = 'no-referrer'
  27913. } else {
  27914. // 1. Let parsedReferrer be the result of parsing referrer with
  27915. // baseURL.
  27916. // 2. If parsedReferrer is failure, then throw a TypeError.
  27917. let parsedReferrer
  27918. try {
  27919. parsedReferrer = new URL(referrer, baseUrl)
  27920. } catch (err) {
  27921. throw new TypeError(`Referrer "${referrer}" is not a valid URL.`, { cause: err })
  27922. }
  27923. // 3. If one of the following is true
  27924. // - parsedReferrer’s scheme is "about" and path is the string "client"
  27925. // - parsedReferrer’s origin is not same origin with origin
  27926. // then set request’s referrer to "client".
  27927. if (
  27928. (parsedReferrer.protocol === 'about:' && parsedReferrer.hostname === 'client') ||
  27929. (origin && !sameOrigin(parsedReferrer, this[kRealm].settingsObject.baseUrl))
  27930. ) {
  27931. request.referrer = 'client'
  27932. } else {
  27933. // 4. Otherwise, set request’s referrer to parsedReferrer.
  27934. request.referrer = parsedReferrer
  27935. }
  27936. }
  27937. }
  27938. // 15. If init["referrerPolicy"] exists, then set request’s referrer policy
  27939. // to it.
  27940. if (init.referrerPolicy !== undefined) {
  27941. request.referrerPolicy = init.referrerPolicy
  27942. }
  27943. // 16. Let mode be init["mode"] if it exists, and fallbackMode otherwise.
  27944. let mode
  27945. if (init.mode !== undefined) {
  27946. mode = init.mode
  27947. } else {
  27948. mode = fallbackMode
  27949. }
  27950. // 17. If mode is "navigate", then throw a TypeError.
  27951. if (mode === 'navigate') {
  27952. throw webidl.errors.exception({
  27953. header: 'Request constructor',
  27954. message: 'invalid request mode navigate.'
  27955. })
  27956. }
  27957. // 18. If mode is non-null, set request’s mode to mode.
  27958. if (mode != null) {
  27959. request.mode = mode
  27960. }
  27961. // 19. If init["credentials"] exists, then set request’s credentials mode
  27962. // to it.
  27963. if (init.credentials !== undefined) {
  27964. request.credentials = init.credentials
  27965. }
  27966. // 18. If init["cache"] exists, then set request’s cache mode to it.
  27967. if (init.cache !== undefined) {
  27968. request.cache = init.cache
  27969. }
  27970. // 21. If request’s cache mode is "only-if-cached" and request’s mode is
  27971. // not "same-origin", then throw a TypeError.
  27972. if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
  27973. throw new TypeError(
  27974. "'only-if-cached' can be set only with 'same-origin' mode"
  27975. )
  27976. }
  27977. // 22. If init["redirect"] exists, then set request’s redirect mode to it.
  27978. if (init.redirect !== undefined) {
  27979. request.redirect = init.redirect
  27980. }
  27981. // 23. If init["integrity"] exists, then set request’s integrity metadata to it.
  27982. if (init.integrity !== undefined && init.integrity != null) {
  27983. request.integrity = String(init.integrity)
  27984. }
  27985. // 24. If init["keepalive"] exists, then set request’s keepalive to it.
  27986. if (init.keepalive !== undefined) {
  27987. request.keepalive = Boolean(init.keepalive)
  27988. }
  27989. // 25. If init["method"] exists, then:
  27990. if (init.method !== undefined) {
  27991. // 1. Let method be init["method"].
  27992. let method = init.method
  27993. // 2. If method is not a method or method is a forbidden method, then
  27994. // throw a TypeError.
  27995. if (!isValidHTTPToken(init.method)) {
  27996. throw TypeError(`'${init.method}' is not a valid HTTP method.`)
  27997. }
  27998. if (forbiddenMethods.indexOf(method.toUpperCase()) !== -1) {
  27999. throw TypeError(`'${init.method}' HTTP method is unsupported.`)
  28000. }
  28001. // 3. Normalize method.
  28002. method = normalizeMethod(init.method)
  28003. // 4. Set request’s method to method.
  28004. request.method = method
  28005. }
  28006. // 26. If init["signal"] exists, then set signal to it.
  28007. if (init.signal !== undefined) {
  28008. signal = init.signal
  28009. }
  28010. // 27. Set this’s request to request.
  28011. this[kState] = request
  28012. // 28. Set this’s signal to a new AbortSignal object with this’s relevant
  28013. // Realm.
  28014. // TODO: could this be simplified with AbortSignal.any
  28015. // (https://dom.spec.whatwg.org/#dom-abortsignal-any)
  28016. const ac = new AbortController()
  28017. this[kSignal] = ac.signal
  28018. this[kSignal][kRealm] = this[kRealm]
  28019. // 29. If signal is not null, then make this’s signal follow signal.
  28020. if (signal != null) {
  28021. if (
  28022. !signal ||
  28023. typeof signal.aborted !== 'boolean' ||
  28024. typeof signal.addEventListener !== 'function'
  28025. ) {
  28026. throw new TypeError(
  28027. "Failed to construct 'Request': member signal is not of type AbortSignal."
  28028. )
  28029. }
  28030. if (signal.aborted) {
  28031. ac.abort(signal.reason)
  28032. } else {
  28033. // Keep a strong ref to ac while request object
  28034. // is alive. This is needed to prevent AbortController
  28035. // from being prematurely garbage collected.
  28036. // See, https://github.com/nodejs/undici/issues/1926.
  28037. this[kAbortController] = ac
  28038. const acRef = new WeakRef(ac)
  28039. const abort = function () {
  28040. const ac = acRef.deref()
  28041. if (ac !== undefined) {
  28042. ac.abort(this.reason)
  28043. }
  28044. }
  28045. // Third-party AbortControllers may not work with these.
  28046. // See, https://github.com/nodejs/undici/pull/1910#issuecomment-1464495619.
  28047. try {
  28048. // If the max amount of listeners is equal to the default, increase it
  28049. // This is only available in node >= v19.9.0
  28050. if (typeof getMaxListeners === 'function' && getMaxListeners(signal) === defaultMaxListeners) {
  28051. setMaxListeners(100, signal)
  28052. } else if (getEventListeners(signal, 'abort').length >= defaultMaxListeners) {
  28053. setMaxListeners(100, signal)
  28054. }
  28055. } catch {}
  28056. util.addAbortListener(signal, abort)
  28057. requestFinalizer.register(ac, { signal, abort })
  28058. }
  28059. }
  28060. // 30. Set this’s headers to a new Headers object with this’s relevant
  28061. // Realm, whose header list is request’s header list and guard is
  28062. // "request".
  28063. this[kHeaders] = new Headers()
  28064. this[kHeaders][kHeadersList] = request.headersList
  28065. this[kHeaders][kGuard] = 'request'
  28066. this[kHeaders][kRealm] = this[kRealm]
  28067. // 31. If this’s request’s mode is "no-cors", then:
  28068. if (mode === 'no-cors') {
  28069. // 1. If this’s request’s method is not a CORS-safelisted method,
  28070. // then throw a TypeError.
  28071. if (!corsSafeListedMethods.includes(request.method)) {
  28072. throw new TypeError(
  28073. `'${request.method} is unsupported in no-cors mode.`
  28074. )
  28075. }
  28076. // 2. Set this’s headers’s guard to "request-no-cors".
  28077. this[kHeaders][kGuard] = 'request-no-cors'
  28078. }
  28079. // 32. If init is not empty, then:
  28080. if (Object.keys(init).length !== 0) {
  28081. // 1. Let headers be a copy of this’s headers and its associated header
  28082. // list.
  28083. let headers = new Headers(this[kHeaders])
  28084. // 2. If init["headers"] exists, then set headers to init["headers"].
  28085. if (init.headers !== undefined) {
  28086. headers = init.headers
  28087. }
  28088. // 3. Empty this’s headers’s header list.
  28089. this[kHeaders][kHeadersList].clear()
  28090. // 4. If headers is a Headers object, then for each header in its header
  28091. // list, append header’s name/header’s value to this’s headers.
  28092. if (headers.constructor.name === 'Headers') {
  28093. for (const [key, val] of headers) {
  28094. this[kHeaders].append(key, val)
  28095. }
  28096. } else {
  28097. // 5. Otherwise, fill this’s headers with headers.
  28098. fillHeaders(this[kHeaders], headers)
  28099. }
  28100. }
  28101. // 33. Let inputBody be input’s request’s body if input is a Request
  28102. // object; otherwise null.
  28103. const inputBody = input instanceof Request ? input[kState].body : null
  28104. // 34. If either init["body"] exists and is non-null or inputBody is
  28105. // non-null, and request’s method is `GET` or `HEAD`, then throw a
  28106. // TypeError.
  28107. if (
  28108. (init.body != null || inputBody != null) &&
  28109. (request.method === 'GET' || request.method === 'HEAD')
  28110. ) {
  28111. throw new TypeError('Request with GET/HEAD method cannot have body.')
  28112. }
  28113. // 35. Let initBody be null.
  28114. let initBody = null
  28115. // 36. If init["body"] exists and is non-null, then:
  28116. if (init.body != null) {
  28117. // 1. Let Content-Type be null.
  28118. // 2. Set initBody and Content-Type to the result of extracting
  28119. // init["body"], with keepalive set to request’s keepalive.
  28120. const [extractedBody, contentType] = extractBody(
  28121. init.body,
  28122. request.keepalive
  28123. )
  28124. initBody = extractedBody
  28125. // 3, If Content-Type is non-null and this’s headers’s header list does
  28126. // not contain `Content-Type`, then append `Content-Type`/Content-Type to
  28127. // this’s headers.
  28128. if (contentType && !this[kHeaders][kHeadersList].contains('content-type')) {
  28129. this[kHeaders].append('content-type', contentType)
  28130. }
  28131. }
  28132. // 37. Let inputOrInitBody be initBody if it is non-null; otherwise
  28133. // inputBody.
  28134. const inputOrInitBody = initBody ?? inputBody
  28135. // 38. If inputOrInitBody is non-null and inputOrInitBody’s source is
  28136. // null, then:
  28137. if (inputOrInitBody != null && inputOrInitBody.source == null) {
  28138. // 1. If initBody is non-null and init["duplex"] does not exist,
  28139. // then throw a TypeError.
  28140. if (initBody != null && init.duplex == null) {
  28141. throw new TypeError('RequestInit: duplex option is required when sending a body.')
  28142. }
  28143. // 2. If this’s request’s mode is neither "same-origin" nor "cors",
  28144. // then throw a TypeError.
  28145. if (request.mode !== 'same-origin' && request.mode !== 'cors') {
  28146. throw new TypeError(
  28147. 'If request is made from ReadableStream, mode should be "same-origin" or "cors"'
  28148. )
  28149. }
  28150. // 3. Set this’s request’s use-CORS-preflight flag.
  28151. request.useCORSPreflightFlag = true
  28152. }
  28153. // 39. Let finalBody be inputOrInitBody.
  28154. let finalBody = inputOrInitBody
  28155. // 40. If initBody is null and inputBody is non-null, then:
  28156. if (initBody == null && inputBody != null) {
  28157. // 1. If input is unusable, then throw a TypeError.
  28158. if (util.isDisturbed(inputBody.stream) || inputBody.stream.locked) {
  28159. throw new TypeError(
  28160. 'Cannot construct a Request with a Request object that has already been used.'
  28161. )
  28162. }
  28163. // 2. Set finalBody to the result of creating a proxy for inputBody.
  28164. if (!TransformStream) {
  28165. TransformStream = (__nccwpck_require__(5356).TransformStream)
  28166. }
  28167. // https://streams.spec.whatwg.org/#readablestream-create-a-proxy
  28168. const identityTransform = new TransformStream()
  28169. inputBody.stream.pipeThrough(identityTransform)
  28170. finalBody = {
  28171. source: inputBody.source,
  28172. length: inputBody.length,
  28173. stream: identityTransform.readable
  28174. }
  28175. }
  28176. // 41. Set this’s request’s body to finalBody.
  28177. this[kState].body = finalBody
  28178. }
  28179. // Returns request’s HTTP method, which is "GET" by default.
  28180. get method () {
  28181. webidl.brandCheck(this, Request)
  28182. // The method getter steps are to return this’s request’s method.
  28183. return this[kState].method
  28184. }
  28185. // Returns the URL of request as a string.
  28186. get url () {
  28187. webidl.brandCheck(this, Request)
  28188. // The url getter steps are to return this’s request’s URL, serialized.
  28189. return URLSerializer(this[kState].url)
  28190. }
  28191. // Returns a Headers object consisting of the headers associated with request.
  28192. // Note that headers added in the network layer by the user agent will not
  28193. // be accounted for in this object, e.g., the "Host" header.
  28194. get headers () {
  28195. webidl.brandCheck(this, Request)
  28196. // The headers getter steps are to return this’s headers.
  28197. return this[kHeaders]
  28198. }
  28199. // Returns the kind of resource requested by request, e.g., "document"
  28200. // or "script".
  28201. get destination () {
  28202. webidl.brandCheck(this, Request)
  28203. // The destination getter are to return this’s request’s destination.
  28204. return this[kState].destination
  28205. }
  28206. // Returns the referrer of request. Its value can be a same-origin URL if
  28207. // explicitly set in init, the empty string to indicate no referrer, and
  28208. // "about:client" when defaulting to the global’s default. This is used
  28209. // during fetching to determine the value of the `Referer` header of the
  28210. // request being made.
  28211. get referrer () {
  28212. webidl.brandCheck(this, Request)
  28213. // 1. If this’s request’s referrer is "no-referrer", then return the
  28214. // empty string.
  28215. if (this[kState].referrer === 'no-referrer') {
  28216. return ''
  28217. }
  28218. // 2. If this’s request’s referrer is "client", then return
  28219. // "about:client".
  28220. if (this[kState].referrer === 'client') {
  28221. return 'about:client'
  28222. }
  28223. // Return this’s request’s referrer, serialized.
  28224. return this[kState].referrer.toString()
  28225. }
  28226. // Returns the referrer policy associated with request.
  28227. // This is used during fetching to compute the value of the request’s
  28228. // referrer.
  28229. get referrerPolicy () {
  28230. webidl.brandCheck(this, Request)
  28231. // The referrerPolicy getter steps are to return this’s request’s referrer policy.
  28232. return this[kState].referrerPolicy
  28233. }
  28234. // Returns the mode associated with request, which is a string indicating
  28235. // whether the request will use CORS, or will be restricted to same-origin
  28236. // URLs.
  28237. get mode () {
  28238. webidl.brandCheck(this, Request)
  28239. // The mode getter steps are to return this’s request’s mode.
  28240. return this[kState].mode
  28241. }
  28242. // Returns the credentials mode associated with request,
  28243. // which is a string indicating whether credentials will be sent with the
  28244. // request always, never, or only when sent to a same-origin URL.
  28245. get credentials () {
  28246. // The credentials getter steps are to return this’s request’s credentials mode.
  28247. return this[kState].credentials
  28248. }
  28249. // Returns the cache mode associated with request,
  28250. // which is a string indicating how the request will
  28251. // interact with the browser’s cache when fetching.
  28252. get cache () {
  28253. webidl.brandCheck(this, Request)
  28254. // The cache getter steps are to return this’s request’s cache mode.
  28255. return this[kState].cache
  28256. }
  28257. // Returns the redirect mode associated with request,
  28258. // which is a string indicating how redirects for the
  28259. // request will be handled during fetching. A request
  28260. // will follow redirects by default.
  28261. get redirect () {
  28262. webidl.brandCheck(this, Request)
  28263. // The redirect getter steps are to return this’s request’s redirect mode.
  28264. return this[kState].redirect
  28265. }
  28266. // Returns request’s subresource integrity metadata, which is a
  28267. // cryptographic hash of the resource being fetched. Its value
  28268. // consists of multiple hashes separated by whitespace. [SRI]
  28269. get integrity () {
  28270. webidl.brandCheck(this, Request)
  28271. // The integrity getter steps are to return this’s request’s integrity
  28272. // metadata.
  28273. return this[kState].integrity
  28274. }
  28275. // Returns a boolean indicating whether or not request can outlive the
  28276. // global in which it was created.
  28277. get keepalive () {
  28278. webidl.brandCheck(this, Request)
  28279. // The keepalive getter steps are to return this’s request’s keepalive.
  28280. return this[kState].keepalive
  28281. }
  28282. // Returns a boolean indicating whether or not request is for a reload
  28283. // navigation.
  28284. get isReloadNavigation () {
  28285. webidl.brandCheck(this, Request)
  28286. // The isReloadNavigation getter steps are to return true if this’s
  28287. // request’s reload-navigation flag is set; otherwise false.
  28288. return this[kState].reloadNavigation
  28289. }
  28290. // Returns a boolean indicating whether or not request is for a history
  28291. // navigation (a.k.a. back-foward navigation).
  28292. get isHistoryNavigation () {
  28293. webidl.brandCheck(this, Request)
  28294. // The isHistoryNavigation getter steps are to return true if this’s request’s
  28295. // history-navigation flag is set; otherwise false.
  28296. return this[kState].historyNavigation
  28297. }
  28298. // Returns the signal associated with request, which is an AbortSignal
  28299. // object indicating whether or not request has been aborted, and its
  28300. // abort event handler.
  28301. get signal () {
  28302. webidl.brandCheck(this, Request)
  28303. // The signal getter steps are to return this’s signal.
  28304. return this[kSignal]
  28305. }
  28306. get body () {
  28307. webidl.brandCheck(this, Request)
  28308. return this[kState].body ? this[kState].body.stream : null
  28309. }
  28310. get bodyUsed () {
  28311. webidl.brandCheck(this, Request)
  28312. return !!this[kState].body && util.isDisturbed(this[kState].body.stream)
  28313. }
  28314. get duplex () {
  28315. webidl.brandCheck(this, Request)
  28316. return 'half'
  28317. }
  28318. // Returns a clone of request.
  28319. clone () {
  28320. webidl.brandCheck(this, Request)
  28321. // 1. If this is unusable, then throw a TypeError.
  28322. if (this.bodyUsed || this.body?.locked) {
  28323. throw new TypeError('unusable')
  28324. }
  28325. // 2. Let clonedRequest be the result of cloning this’s request.
  28326. const clonedRequest = cloneRequest(this[kState])
  28327. // 3. Let clonedRequestObject be the result of creating a Request object,
  28328. // given clonedRequest, this’s headers’s guard, and this’s relevant Realm.
  28329. const clonedRequestObject = new Request(kInit)
  28330. clonedRequestObject[kState] = clonedRequest
  28331. clonedRequestObject[kRealm] = this[kRealm]
  28332. clonedRequestObject[kHeaders] = new Headers()
  28333. clonedRequestObject[kHeaders][kHeadersList] = clonedRequest.headersList
  28334. clonedRequestObject[kHeaders][kGuard] = this[kHeaders][kGuard]
  28335. clonedRequestObject[kHeaders][kRealm] = this[kHeaders][kRealm]
  28336. // 4. Make clonedRequestObject’s signal follow this’s signal.
  28337. const ac = new AbortController()
  28338. if (this.signal.aborted) {
  28339. ac.abort(this.signal.reason)
  28340. } else {
  28341. util.addAbortListener(
  28342. this.signal,
  28343. () => {
  28344. ac.abort(this.signal.reason)
  28345. }
  28346. )
  28347. }
  28348. clonedRequestObject[kSignal] = ac.signal
  28349. // 4. Return clonedRequestObject.
  28350. return clonedRequestObject
  28351. }
  28352. }
  28353. mixinBody(Request)
  28354. function makeRequest (init) {
  28355. // https://fetch.spec.whatwg.org/#requests
  28356. const request = {
  28357. method: 'GET',
  28358. localURLsOnly: false,
  28359. unsafeRequest: false,
  28360. body: null,
  28361. client: null,
  28362. reservedClient: null,
  28363. replacesClientId: '',
  28364. window: 'client',
  28365. keepalive: false,
  28366. serviceWorkers: 'all',
  28367. initiator: '',
  28368. destination: '',
  28369. priority: null,
  28370. origin: 'client',
  28371. policyContainer: 'client',
  28372. referrer: 'client',
  28373. referrerPolicy: '',
  28374. mode: 'no-cors',
  28375. useCORSPreflightFlag: false,
  28376. credentials: 'same-origin',
  28377. useCredentials: false,
  28378. cache: 'default',
  28379. redirect: 'follow',
  28380. integrity: '',
  28381. cryptoGraphicsNonceMetadata: '',
  28382. parserMetadata: '',
  28383. reloadNavigation: false,
  28384. historyNavigation: false,
  28385. userActivation: false,
  28386. taintedOrigin: false,
  28387. redirectCount: 0,
  28388. responseTainting: 'basic',
  28389. preventNoCacheCacheControlHeaderModification: false,
  28390. done: false,
  28391. timingAllowFailed: false,
  28392. ...init,
  28393. headersList: init.headersList
  28394. ? new HeadersList(init.headersList)
  28395. : new HeadersList()
  28396. }
  28397. request.url = request.urlList[0]
  28398. return request
  28399. }
  28400. // https://fetch.spec.whatwg.org/#concept-request-clone
  28401. function cloneRequest (request) {
  28402. // To clone a request request, run these steps:
  28403. // 1. Let newRequest be a copy of request, except for its body.
  28404. const newRequest = makeRequest({ ...request, body: null })
  28405. // 2. If request’s body is non-null, set newRequest’s body to the
  28406. // result of cloning request’s body.
  28407. if (request.body != null) {
  28408. newRequest.body = cloneBody(request.body)
  28409. }
  28410. // 3. Return newRequest.
  28411. return newRequest
  28412. }
  28413. Object.defineProperties(Request.prototype, {
  28414. method: kEnumerableProperty,
  28415. url: kEnumerableProperty,
  28416. headers: kEnumerableProperty,
  28417. redirect: kEnumerableProperty,
  28418. clone: kEnumerableProperty,
  28419. signal: kEnumerableProperty,
  28420. duplex: kEnumerableProperty,
  28421. destination: kEnumerableProperty,
  28422. body: kEnumerableProperty,
  28423. bodyUsed: kEnumerableProperty,
  28424. isHistoryNavigation: kEnumerableProperty,
  28425. isReloadNavigation: kEnumerableProperty,
  28426. keepalive: kEnumerableProperty,
  28427. integrity: kEnumerableProperty,
  28428. cache: kEnumerableProperty,
  28429. credentials: kEnumerableProperty,
  28430. attribute: kEnumerableProperty,
  28431. referrerPolicy: kEnumerableProperty,
  28432. referrer: kEnumerableProperty,
  28433. mode: kEnumerableProperty,
  28434. [Symbol.toStringTag]: {
  28435. value: 'Request',
  28436. configurable: true
  28437. }
  28438. })
  28439. webidl.converters.Request = webidl.interfaceConverter(
  28440. Request
  28441. )
  28442. // https://fetch.spec.whatwg.org/#requestinfo
  28443. webidl.converters.RequestInfo = function (V) {
  28444. if (typeof V === 'string') {
  28445. return webidl.converters.USVString(V)
  28446. }
  28447. if (V instanceof Request) {
  28448. return webidl.converters.Request(V)
  28449. }
  28450. return webidl.converters.USVString(V)
  28451. }
  28452. webidl.converters.AbortSignal = webidl.interfaceConverter(
  28453. AbortSignal
  28454. )
  28455. // https://fetch.spec.whatwg.org/#requestinit
  28456. webidl.converters.RequestInit = webidl.dictionaryConverter([
  28457. {
  28458. key: 'method',
  28459. converter: webidl.converters.ByteString
  28460. },
  28461. {
  28462. key: 'headers',
  28463. converter: webidl.converters.HeadersInit
  28464. },
  28465. {
  28466. key: 'body',
  28467. converter: webidl.nullableConverter(
  28468. webidl.converters.BodyInit
  28469. )
  28470. },
  28471. {
  28472. key: 'referrer',
  28473. converter: webidl.converters.USVString
  28474. },
  28475. {
  28476. key: 'referrerPolicy',
  28477. converter: webidl.converters.DOMString,
  28478. // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy
  28479. allowedValues: referrerPolicy
  28480. },
  28481. {
  28482. key: 'mode',
  28483. converter: webidl.converters.DOMString,
  28484. // https://fetch.spec.whatwg.org/#concept-request-mode
  28485. allowedValues: requestMode
  28486. },
  28487. {
  28488. key: 'credentials',
  28489. converter: webidl.converters.DOMString,
  28490. // https://fetch.spec.whatwg.org/#requestcredentials
  28491. allowedValues: requestCredentials
  28492. },
  28493. {
  28494. key: 'cache',
  28495. converter: webidl.converters.DOMString,
  28496. // https://fetch.spec.whatwg.org/#requestcache
  28497. allowedValues: requestCache
  28498. },
  28499. {
  28500. key: 'redirect',
  28501. converter: webidl.converters.DOMString,
  28502. // https://fetch.spec.whatwg.org/#requestredirect
  28503. allowedValues: requestRedirect
  28504. },
  28505. {
  28506. key: 'integrity',
  28507. converter: webidl.converters.DOMString
  28508. },
  28509. {
  28510. key: 'keepalive',
  28511. converter: webidl.converters.boolean
  28512. },
  28513. {
  28514. key: 'signal',
  28515. converter: webidl.nullableConverter(
  28516. (signal) => webidl.converters.AbortSignal(
  28517. signal,
  28518. { strict: false }
  28519. )
  28520. )
  28521. },
  28522. {
  28523. key: 'window',
  28524. converter: webidl.converters.any
  28525. },
  28526. {
  28527. key: 'duplex',
  28528. converter: webidl.converters.DOMString,
  28529. allowedValues: requestDuplex
  28530. }
  28531. ])
  28532. module.exports = { Request, makeRequest }
  28533. /***/ }),
  28534. /***/ 7823:
  28535. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  28536. "use strict";
  28537. const { Headers, HeadersList, fill } = __nccwpck_require__(554)
  28538. const { extractBody, cloneBody, mixinBody } = __nccwpck_require__(9990)
  28539. const util = __nccwpck_require__(3983)
  28540. const { kEnumerableProperty } = util
  28541. const {
  28542. isValidReasonPhrase,
  28543. isCancelled,
  28544. isAborted,
  28545. isBlobLike,
  28546. serializeJavascriptValueToJSONString,
  28547. isErrorLike,
  28548. isomorphicEncode
  28549. } = __nccwpck_require__(2538)
  28550. const {
  28551. redirectStatus,
  28552. nullBodyStatus,
  28553. DOMException
  28554. } = __nccwpck_require__(1037)
  28555. const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(5861)
  28556. const { webidl } = __nccwpck_require__(1744)
  28557. const { FormData } = __nccwpck_require__(2015)
  28558. const { getGlobalOrigin } = __nccwpck_require__(1246)
  28559. const { URLSerializer } = __nccwpck_require__(685)
  28560. const { kHeadersList } = __nccwpck_require__(2785)
  28561. const assert = __nccwpck_require__(9491)
  28562. const { types } = __nccwpck_require__(3837)
  28563. const ReadableStream = globalThis.ReadableStream || (__nccwpck_require__(5356).ReadableStream)
  28564. // https://fetch.spec.whatwg.org/#response-class
  28565. class Response {
  28566. // Creates network error Response.
  28567. static error () {
  28568. // TODO
  28569. const relevantRealm = { settingsObject: {} }
  28570. // The static error() method steps are to return the result of creating a
  28571. // Response object, given a new network error, "immutable", and this’s
  28572. // relevant Realm.
  28573. const responseObject = new Response()
  28574. responseObject[kState] = makeNetworkError()
  28575. responseObject[kRealm] = relevantRealm
  28576. responseObject[kHeaders][kHeadersList] = responseObject[kState].headersList
  28577. responseObject[kHeaders][kGuard] = 'immutable'
  28578. responseObject[kHeaders][kRealm] = relevantRealm
  28579. return responseObject
  28580. }
  28581. // https://fetch.spec.whatwg.org/#dom-response-json
  28582. static json (data, init = {}) {
  28583. webidl.argumentLengthCheck(arguments, 1, { header: 'Response.json' })
  28584. if (init !== null) {
  28585. init = webidl.converters.ResponseInit(init)
  28586. }
  28587. // 1. Let bytes the result of running serialize a JavaScript value to JSON bytes on data.
  28588. const bytes = new TextEncoder('utf-8').encode(
  28589. serializeJavascriptValueToJSONString(data)
  28590. )
  28591. // 2. Let body be the result of extracting bytes.
  28592. const body = extractBody(bytes)
  28593. // 3. Let responseObject be the result of creating a Response object, given a new response,
  28594. // "response", and this’s relevant Realm.
  28595. const relevantRealm = { settingsObject: {} }
  28596. const responseObject = new Response()
  28597. responseObject[kRealm] = relevantRealm
  28598. responseObject[kHeaders][kGuard] = 'response'
  28599. responseObject[kHeaders][kRealm] = relevantRealm
  28600. // 4. Perform initialize a response given responseObject, init, and (body, "application/json").
  28601. initializeResponse(responseObject, init, { body: body[0], type: 'application/json' })
  28602. // 5. Return responseObject.
  28603. return responseObject
  28604. }
  28605. // Creates a redirect Response that redirects to url with status status.
  28606. static redirect (url, status = 302) {
  28607. const relevantRealm = { settingsObject: {} }
  28608. webidl.argumentLengthCheck(arguments, 1, { header: 'Response.redirect' })
  28609. url = webidl.converters.USVString(url)
  28610. status = webidl.converters['unsigned short'](status)
  28611. // 1. Let parsedURL be the result of parsing url with current settings
  28612. // object’s API base URL.
  28613. // 2. If parsedURL is failure, then throw a TypeError.
  28614. // TODO: base-URL?
  28615. let parsedURL
  28616. try {
  28617. parsedURL = new URL(url, getGlobalOrigin())
  28618. } catch (err) {
  28619. throw Object.assign(new TypeError('Failed to parse URL from ' + url), {
  28620. cause: err
  28621. })
  28622. }
  28623. // 3. If status is not a redirect status, then throw a RangeError.
  28624. if (!redirectStatus.includes(status)) {
  28625. throw new RangeError('Invalid status code ' + status)
  28626. }
  28627. // 4. Let responseObject be the result of creating a Response object,
  28628. // given a new response, "immutable", and this’s relevant Realm.
  28629. const responseObject = new Response()
  28630. responseObject[kRealm] = relevantRealm
  28631. responseObject[kHeaders][kGuard] = 'immutable'
  28632. responseObject[kHeaders][kRealm] = relevantRealm
  28633. // 5. Set responseObject’s response’s status to status.
  28634. responseObject[kState].status = status
  28635. // 6. Let value be parsedURL, serialized and isomorphic encoded.
  28636. const value = isomorphicEncode(URLSerializer(parsedURL))
  28637. // 7. Append `Location`/value to responseObject’s response’s header list.
  28638. responseObject[kState].headersList.append('location', value)
  28639. // 8. Return responseObject.
  28640. return responseObject
  28641. }
  28642. // https://fetch.spec.whatwg.org/#dom-response
  28643. constructor (body = null, init = {}) {
  28644. if (body !== null) {
  28645. body = webidl.converters.BodyInit(body)
  28646. }
  28647. init = webidl.converters.ResponseInit(init)
  28648. // TODO
  28649. this[kRealm] = { settingsObject: {} }
  28650. // 1. Set this’s response to a new response.
  28651. this[kState] = makeResponse({})
  28652. // 2. Set this’s headers to a new Headers object with this’s relevant
  28653. // Realm, whose header list is this’s response’s header list and guard
  28654. // is "response".
  28655. this[kHeaders] = new Headers()
  28656. this[kHeaders][kGuard] = 'response'
  28657. this[kHeaders][kHeadersList] = this[kState].headersList
  28658. this[kHeaders][kRealm] = this[kRealm]
  28659. // 3. Let bodyWithType be null.
  28660. let bodyWithType = null
  28661. // 4. If body is non-null, then set bodyWithType to the result of extracting body.
  28662. if (body != null) {
  28663. const [extractedBody, type] = extractBody(body)
  28664. bodyWithType = { body: extractedBody, type }
  28665. }
  28666. // 5. Perform initialize a response given this, init, and bodyWithType.
  28667. initializeResponse(this, init, bodyWithType)
  28668. }
  28669. // Returns response’s type, e.g., "cors".
  28670. get type () {
  28671. webidl.brandCheck(this, Response)
  28672. // The type getter steps are to return this’s response’s type.
  28673. return this[kState].type
  28674. }
  28675. // Returns response’s URL, if it has one; otherwise the empty string.
  28676. get url () {
  28677. webidl.brandCheck(this, Response)
  28678. const urlList = this[kState].urlList
  28679. // The url getter steps are to return the empty string if this’s
  28680. // response’s URL is null; otherwise this’s response’s URL,
  28681. // serialized with exclude fragment set to true.
  28682. const url = urlList[urlList.length - 1] ?? null
  28683. if (url === null) {
  28684. return ''
  28685. }
  28686. return URLSerializer(url, true)
  28687. }
  28688. // Returns whether response was obtained through a redirect.
  28689. get redirected () {
  28690. webidl.brandCheck(this, Response)
  28691. // The redirected getter steps are to return true if this’s response’s URL
  28692. // list has more than one item; otherwise false.
  28693. return this[kState].urlList.length > 1
  28694. }
  28695. // Returns response’s status.
  28696. get status () {
  28697. webidl.brandCheck(this, Response)
  28698. // The status getter steps are to return this’s response’s status.
  28699. return this[kState].status
  28700. }
  28701. // Returns whether response’s status is an ok status.
  28702. get ok () {
  28703. webidl.brandCheck(this, Response)
  28704. // The ok getter steps are to return true if this’s response’s status is an
  28705. // ok status; otherwise false.
  28706. return this[kState].status >= 200 && this[kState].status <= 299
  28707. }
  28708. // Returns response’s status message.
  28709. get statusText () {
  28710. webidl.brandCheck(this, Response)
  28711. // The statusText getter steps are to return this’s response’s status
  28712. // message.
  28713. return this[kState].statusText
  28714. }
  28715. // Returns response’s headers as Headers.
  28716. get headers () {
  28717. webidl.brandCheck(this, Response)
  28718. // The headers getter steps are to return this’s headers.
  28719. return this[kHeaders]
  28720. }
  28721. get body () {
  28722. webidl.brandCheck(this, Response)
  28723. return this[kState].body ? this[kState].body.stream : null
  28724. }
  28725. get bodyUsed () {
  28726. webidl.brandCheck(this, Response)
  28727. return !!this[kState].body && util.isDisturbed(this[kState].body.stream)
  28728. }
  28729. // Returns a clone of response.
  28730. clone () {
  28731. webidl.brandCheck(this, Response)
  28732. // 1. If this is unusable, then throw a TypeError.
  28733. if (this.bodyUsed || (this.body && this.body.locked)) {
  28734. throw webidl.errors.exception({
  28735. header: 'Response.clone',
  28736. message: 'Body has already been consumed.'
  28737. })
  28738. }
  28739. // 2. Let clonedResponse be the result of cloning this’s response.
  28740. const clonedResponse = cloneResponse(this[kState])
  28741. // 3. Return the result of creating a Response object, given
  28742. // clonedResponse, this’s headers’s guard, and this’s relevant Realm.
  28743. const clonedResponseObject = new Response()
  28744. clonedResponseObject[kState] = clonedResponse
  28745. clonedResponseObject[kRealm] = this[kRealm]
  28746. clonedResponseObject[kHeaders][kHeadersList] = clonedResponse.headersList
  28747. clonedResponseObject[kHeaders][kGuard] = this[kHeaders][kGuard]
  28748. clonedResponseObject[kHeaders][kRealm] = this[kHeaders][kRealm]
  28749. return clonedResponseObject
  28750. }
  28751. }
  28752. mixinBody(Response)
  28753. Object.defineProperties(Response.prototype, {
  28754. type: kEnumerableProperty,
  28755. url: kEnumerableProperty,
  28756. status: kEnumerableProperty,
  28757. ok: kEnumerableProperty,
  28758. redirected: kEnumerableProperty,
  28759. statusText: kEnumerableProperty,
  28760. headers: kEnumerableProperty,
  28761. clone: kEnumerableProperty,
  28762. body: kEnumerableProperty,
  28763. bodyUsed: kEnumerableProperty,
  28764. [Symbol.toStringTag]: {
  28765. value: 'Response',
  28766. configurable: true
  28767. }
  28768. })
  28769. Object.defineProperties(Response, {
  28770. json: kEnumerableProperty,
  28771. redirect: kEnumerableProperty,
  28772. error: kEnumerableProperty
  28773. })
  28774. // https://fetch.spec.whatwg.org/#concept-response-clone
  28775. function cloneResponse (response) {
  28776. // To clone a response response, run these steps:
  28777. // 1. If response is a filtered response, then return a new identical
  28778. // filtered response whose internal response is a clone of response’s
  28779. // internal response.
  28780. if (response.internalResponse) {
  28781. return filterResponse(
  28782. cloneResponse(response.internalResponse),
  28783. response.type
  28784. )
  28785. }
  28786. // 2. Let newResponse be a copy of response, except for its body.
  28787. const newResponse = makeResponse({ ...response, body: null })
  28788. // 3. If response’s body is non-null, then set newResponse’s body to the
  28789. // result of cloning response’s body.
  28790. if (response.body != null) {
  28791. newResponse.body = cloneBody(response.body)
  28792. }
  28793. // 4. Return newResponse.
  28794. return newResponse
  28795. }
  28796. function makeResponse (init) {
  28797. return {
  28798. aborted: false,
  28799. rangeRequested: false,
  28800. timingAllowPassed: false,
  28801. requestIncludesCredentials: false,
  28802. type: 'default',
  28803. status: 200,
  28804. timingInfo: null,
  28805. cacheState: '',
  28806. statusText: '',
  28807. ...init,
  28808. headersList: init.headersList
  28809. ? new HeadersList(init.headersList)
  28810. : new HeadersList(),
  28811. urlList: init.urlList ? [...init.urlList] : []
  28812. }
  28813. }
  28814. function makeNetworkError (reason) {
  28815. const isError = isErrorLike(reason)
  28816. return makeResponse({
  28817. type: 'error',
  28818. status: 0,
  28819. error: isError
  28820. ? reason
  28821. : new Error(reason ? String(reason) : reason),
  28822. aborted: reason && reason.name === 'AbortError'
  28823. })
  28824. }
  28825. function makeFilteredResponse (response, state) {
  28826. state = {
  28827. internalResponse: response,
  28828. ...state
  28829. }
  28830. return new Proxy(response, {
  28831. get (target, p) {
  28832. return p in state ? state[p] : target[p]
  28833. },
  28834. set (target, p, value) {
  28835. assert(!(p in state))
  28836. target[p] = value
  28837. return true
  28838. }
  28839. })
  28840. }
  28841. // https://fetch.spec.whatwg.org/#concept-filtered-response
  28842. function filterResponse (response, type) {
  28843. // Set response to the following filtered response with response as its
  28844. // internal response, depending on request’s response tainting:
  28845. if (type === 'basic') {
  28846. // A basic filtered response is a filtered response whose type is "basic"
  28847. // and header list excludes any headers in internal response’s header list
  28848. // whose name is a forbidden response-header name.
  28849. // Note: undici does not implement forbidden response-header names
  28850. return makeFilteredResponse(response, {
  28851. type: 'basic',
  28852. headersList: response.headersList
  28853. })
  28854. } else if (type === 'cors') {
  28855. // A CORS filtered response is a filtered response whose type is "cors"
  28856. // and header list excludes any headers in internal response’s header
  28857. // list whose name is not a CORS-safelisted response-header name, given
  28858. // internal response’s CORS-exposed header-name list.
  28859. // Note: undici does not implement CORS-safelisted response-header names
  28860. return makeFilteredResponse(response, {
  28861. type: 'cors',
  28862. headersList: response.headersList
  28863. })
  28864. } else if (type === 'opaque') {
  28865. // An opaque filtered response is a filtered response whose type is
  28866. // "opaque", URL list is the empty list, status is 0, status message
  28867. // is the empty byte sequence, header list is empty, and body is null.
  28868. return makeFilteredResponse(response, {
  28869. type: 'opaque',
  28870. urlList: Object.freeze([]),
  28871. status: 0,
  28872. statusText: '',
  28873. body: null
  28874. })
  28875. } else if (type === 'opaqueredirect') {
  28876. // An opaque-redirect filtered response is a filtered response whose type
  28877. // is "opaqueredirect", status is 0, status message is the empty byte
  28878. // sequence, header list is empty, and body is null.
  28879. return makeFilteredResponse(response, {
  28880. type: 'opaqueredirect',
  28881. status: 0,
  28882. statusText: '',
  28883. headersList: [],
  28884. body: null
  28885. })
  28886. } else {
  28887. assert(false)
  28888. }
  28889. }
  28890. // https://fetch.spec.whatwg.org/#appropriate-network-error
  28891. function makeAppropriateNetworkError (fetchParams, err = null) {
  28892. // 1. Assert: fetchParams is canceled.
  28893. assert(isCancelled(fetchParams))
  28894. // 2. Return an aborted network error if fetchParams is aborted;
  28895. // otherwise return a network error.
  28896. return isAborted(fetchParams)
  28897. ? makeNetworkError(Object.assign(new DOMException('The operation was aborted.', 'AbortError'), { cause: err }))
  28898. : makeNetworkError(Object.assign(new DOMException('Request was cancelled.'), { cause: err }))
  28899. }
  28900. // https://whatpr.org/fetch/1392.html#initialize-a-response
  28901. function initializeResponse (response, init, body) {
  28902. // 1. If init["status"] is not in the range 200 to 599, inclusive, then
  28903. // throw a RangeError.
  28904. if (init.status !== null && (init.status < 200 || init.status > 599)) {
  28905. throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')
  28906. }
  28907. // 2. If init["statusText"] does not match the reason-phrase token production,
  28908. // then throw a TypeError.
  28909. if ('statusText' in init && init.statusText != null) {
  28910. // See, https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2:
  28911. // reason-phrase = *( HTAB / SP / VCHAR / obs-text )
  28912. if (!isValidReasonPhrase(String(init.statusText))) {
  28913. throw new TypeError('Invalid statusText')
  28914. }
  28915. }
  28916. // 3. Set response’s response’s status to init["status"].
  28917. if ('status' in init && init.status != null) {
  28918. response[kState].status = init.status
  28919. }
  28920. // 4. Set response’s response’s status message to init["statusText"].
  28921. if ('statusText' in init && init.statusText != null) {
  28922. response[kState].statusText = init.statusText
  28923. }
  28924. // 5. If init["headers"] exists, then fill response’s headers with init["headers"].
  28925. if ('headers' in init && init.headers != null) {
  28926. fill(response[kHeaders], init.headers)
  28927. }
  28928. // 6. If body was given, then:
  28929. if (body) {
  28930. // 1. If response's status is a null body status, then throw a TypeError.
  28931. if (nullBodyStatus.includes(response.status)) {
  28932. throw webidl.errors.exception({
  28933. header: 'Response constructor',
  28934. message: 'Invalid response status code ' + response.status
  28935. })
  28936. }
  28937. // 2. Set response's body to body's body.
  28938. response[kState].body = body.body
  28939. // 3. If body's type is non-null and response's header list does not contain
  28940. // `Content-Type`, then append (`Content-Type`, body's type) to response's header list.
  28941. if (body.type != null && !response[kState].headersList.contains('Content-Type')) {
  28942. response[kState].headersList.append('content-type', body.type)
  28943. }
  28944. }
  28945. }
  28946. webidl.converters.ReadableStream = webidl.interfaceConverter(
  28947. ReadableStream
  28948. )
  28949. webidl.converters.FormData = webidl.interfaceConverter(
  28950. FormData
  28951. )
  28952. webidl.converters.URLSearchParams = webidl.interfaceConverter(
  28953. URLSearchParams
  28954. )
  28955. // https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
  28956. webidl.converters.XMLHttpRequestBodyInit = function (V) {
  28957. if (typeof V === 'string') {
  28958. return webidl.converters.USVString(V)
  28959. }
  28960. if (isBlobLike(V)) {
  28961. return webidl.converters.Blob(V, { strict: false })
  28962. }
  28963. if (
  28964. types.isAnyArrayBuffer(V) ||
  28965. types.isTypedArray(V) ||
  28966. types.isDataView(V)
  28967. ) {
  28968. return webidl.converters.BufferSource(V)
  28969. }
  28970. if (util.isFormDataLike(V)) {
  28971. return webidl.converters.FormData(V, { strict: false })
  28972. }
  28973. if (V instanceof URLSearchParams) {
  28974. return webidl.converters.URLSearchParams(V)
  28975. }
  28976. return webidl.converters.DOMString(V)
  28977. }
  28978. // https://fetch.spec.whatwg.org/#bodyinit
  28979. webidl.converters.BodyInit = function (V) {
  28980. if (V instanceof ReadableStream) {
  28981. return webidl.converters.ReadableStream(V)
  28982. }
  28983. // Note: the spec doesn't include async iterables,
  28984. // this is an undici extension.
  28985. if (V?.[Symbol.asyncIterator]) {
  28986. return V
  28987. }
  28988. return webidl.converters.XMLHttpRequestBodyInit(V)
  28989. }
  28990. webidl.converters.ResponseInit = webidl.dictionaryConverter([
  28991. {
  28992. key: 'status',
  28993. converter: webidl.converters['unsigned short'],
  28994. defaultValue: 200
  28995. },
  28996. {
  28997. key: 'statusText',
  28998. converter: webidl.converters.ByteString,
  28999. defaultValue: ''
  29000. },
  29001. {
  29002. key: 'headers',
  29003. converter: webidl.converters.HeadersInit
  29004. }
  29005. ])
  29006. module.exports = {
  29007. makeNetworkError,
  29008. makeResponse,
  29009. makeAppropriateNetworkError,
  29010. filterResponse,
  29011. Response,
  29012. cloneResponse
  29013. }
  29014. /***/ }),
  29015. /***/ 5861:
  29016. /***/ ((module) => {
  29017. "use strict";
  29018. module.exports = {
  29019. kUrl: Symbol('url'),
  29020. kHeaders: Symbol('headers'),
  29021. kSignal: Symbol('signal'),
  29022. kState: Symbol('state'),
  29023. kGuard: Symbol('guard'),
  29024. kRealm: Symbol('realm')
  29025. }
  29026. /***/ }),
  29027. /***/ 2538:
  29028. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  29029. "use strict";
  29030. const { redirectStatus, badPorts, referrerPolicy: referrerPolicyTokens } = __nccwpck_require__(1037)
  29031. const { getGlobalOrigin } = __nccwpck_require__(1246)
  29032. const { performance } = __nccwpck_require__(4074)
  29033. const { isBlobLike, toUSVString, ReadableStreamFrom } = __nccwpck_require__(3983)
  29034. const assert = __nccwpck_require__(9491)
  29035. const { isUint8Array } = __nccwpck_require__(9830)
  29036. // https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable
  29037. /** @type {import('crypto')|undefined} */
  29038. let crypto
  29039. try {
  29040. crypto = __nccwpck_require__(6113)
  29041. } catch {
  29042. }
  29043. function responseURL (response) {
  29044. // https://fetch.spec.whatwg.org/#responses
  29045. // A response has an associated URL. It is a pointer to the last URL
  29046. // in response’s URL list and null if response’s URL list is empty.
  29047. const urlList = response.urlList
  29048. const length = urlList.length
  29049. return length === 0 ? null : urlList[length - 1].toString()
  29050. }
  29051. // https://fetch.spec.whatwg.org/#concept-response-location-url
  29052. function responseLocationURL (response, requestFragment) {
  29053. // 1. If response’s status is not a redirect status, then return null.
  29054. if (!redirectStatus.includes(response.status)) {
  29055. return null
  29056. }
  29057. // 2. Let location be the result of extracting header list values given
  29058. // `Location` and response’s header list.
  29059. let location = response.headersList.get('location')
  29060. // 3. If location is a header value, then set location to the result of
  29061. // parsing location with response’s URL.
  29062. if (location !== null && isValidHeaderValue(location)) {
  29063. location = new URL(location, responseURL(response))
  29064. }
  29065. // 4. If location is a URL whose fragment is null, then set location’s
  29066. // fragment to requestFragment.
  29067. if (location && !location.hash) {
  29068. location.hash = requestFragment
  29069. }
  29070. // 5. Return location.
  29071. return location
  29072. }
  29073. /** @returns {URL} */
  29074. function requestCurrentURL (request) {
  29075. return request.urlList[request.urlList.length - 1]
  29076. }
  29077. function requestBadPort (request) {
  29078. // 1. Let url be request’s current URL.
  29079. const url = requestCurrentURL(request)
  29080. // 2. If url’s scheme is an HTTP(S) scheme and url’s port is a bad port,
  29081. // then return blocked.
  29082. if (urlIsHttpHttpsScheme(url) && badPorts.includes(url.port)) {
  29083. return 'blocked'
  29084. }
  29085. // 3. Return allowed.
  29086. return 'allowed'
  29087. }
  29088. function isErrorLike (object) {
  29089. return object instanceof Error || (
  29090. object?.constructor?.name === 'Error' ||
  29091. object?.constructor?.name === 'DOMException'
  29092. )
  29093. }
  29094. // Check whether |statusText| is a ByteString and
  29095. // matches the Reason-Phrase token production.
  29096. // RFC 2616: https://tools.ietf.org/html/rfc2616
  29097. // RFC 7230: https://tools.ietf.org/html/rfc7230
  29098. // "reason-phrase = *( HTAB / SP / VCHAR / obs-text )"
  29099. // https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116
  29100. function isValidReasonPhrase (statusText) {
  29101. for (let i = 0; i < statusText.length; ++i) {
  29102. const c = statusText.charCodeAt(i)
  29103. if (
  29104. !(
  29105. (
  29106. c === 0x09 || // HTAB
  29107. (c >= 0x20 && c <= 0x7e) || // SP / VCHAR
  29108. (c >= 0x80 && c <= 0xff)
  29109. ) // obs-text
  29110. )
  29111. ) {
  29112. return false
  29113. }
  29114. }
  29115. return true
  29116. }
  29117. function isTokenChar (c) {
  29118. return !(
  29119. c >= 0x7f ||
  29120. c <= 0x20 ||
  29121. c === '(' ||
  29122. c === ')' ||
  29123. c === '<' ||
  29124. c === '>' ||
  29125. c === '@' ||
  29126. c === ',' ||
  29127. c === ';' ||
  29128. c === ':' ||
  29129. c === '\\' ||
  29130. c === '"' ||
  29131. c === '/' ||
  29132. c === '[' ||
  29133. c === ']' ||
  29134. c === '?' ||
  29135. c === '=' ||
  29136. c === '{' ||
  29137. c === '}'
  29138. )
  29139. }
  29140. // See RFC 7230, Section 3.2.6.
  29141. // https://github.com/chromium/chromium/blob/d7da0240cae77824d1eda25745c4022757499131/third_party/blink/renderer/platform/network/http_parsers.cc#L321
  29142. function isValidHTTPToken (characters) {
  29143. if (!characters || typeof characters !== 'string') {
  29144. return false
  29145. }
  29146. for (let i = 0; i < characters.length; ++i) {
  29147. const c = characters.charCodeAt(i)
  29148. if (c > 0x7f || !isTokenChar(c)) {
  29149. return false
  29150. }
  29151. }
  29152. return true
  29153. }
  29154. // https://fetch.spec.whatwg.org/#header-name
  29155. // https://github.com/chromium/chromium/blob/b3d37e6f94f87d59e44662d6078f6a12de845d17/net/http/http_util.cc#L342
  29156. function isValidHeaderName (potentialValue) {
  29157. if (potentialValue.length === 0) {
  29158. return false
  29159. }
  29160. return isValidHTTPToken(potentialValue)
  29161. }
  29162. /**
  29163. * @see https://fetch.spec.whatwg.org/#header-value
  29164. * @param {string} potentialValue
  29165. */
  29166. function isValidHeaderValue (potentialValue) {
  29167. // - Has no leading or trailing HTTP tab or space bytes.
  29168. // - Contains no 0x00 (NUL) or HTTP newline bytes.
  29169. if (
  29170. potentialValue.startsWith('\t') ||
  29171. potentialValue.startsWith(' ') ||
  29172. potentialValue.endsWith('\t') ||
  29173. potentialValue.endsWith(' ')
  29174. ) {
  29175. return false
  29176. }
  29177. if (
  29178. potentialValue.includes('\0') ||
  29179. potentialValue.includes('\r') ||
  29180. potentialValue.includes('\n')
  29181. ) {
  29182. return false
  29183. }
  29184. return true
  29185. }
  29186. // https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect
  29187. function setRequestReferrerPolicyOnRedirect (request, actualResponse) {
  29188. // Given a request request and a response actualResponse, this algorithm
  29189. // updates request’s referrer policy according to the Referrer-Policy
  29190. // header (if any) in actualResponse.
  29191. // 1. Let policy be the result of executing § 8.1 Parse a referrer policy
  29192. // from a Referrer-Policy header on actualResponse.
  29193. // 8.1 Parse a referrer policy from a Referrer-Policy header
  29194. // 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response’s header list.
  29195. const { headersList } = actualResponse
  29196. // 2. Let policy be the empty string.
  29197. // 3. For each token in policy-tokens, if token is a referrer policy and token is not the empty string, then set policy to token.
  29198. // 4. Return policy.
  29199. const policyHeader = (headersList.get('referrer-policy') ?? '').split(',')
  29200. // Note: As the referrer-policy can contain multiple policies
  29201. // separated by comma, we need to loop through all of them
  29202. // and pick the first valid one.
  29203. // Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy
  29204. let policy = ''
  29205. if (policyHeader.length > 0) {
  29206. // The right-most policy takes precedence.
  29207. // The left-most policy is the fallback.
  29208. for (let i = policyHeader.length; i !== 0; i--) {
  29209. const token = policyHeader[i - 1].trim()
  29210. if (referrerPolicyTokens.includes(token)) {
  29211. policy = token
  29212. break
  29213. }
  29214. }
  29215. }
  29216. // 2. If policy is not the empty string, then set request’s referrer policy to policy.
  29217. if (policy !== '') {
  29218. request.referrerPolicy = policy
  29219. }
  29220. }
  29221. // https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check
  29222. function crossOriginResourcePolicyCheck () {
  29223. // TODO
  29224. return 'allowed'
  29225. }
  29226. // https://fetch.spec.whatwg.org/#concept-cors-check
  29227. function corsCheck () {
  29228. // TODO
  29229. return 'success'
  29230. }
  29231. // https://fetch.spec.whatwg.org/#concept-tao-check
  29232. function TAOCheck () {
  29233. // TODO
  29234. return 'success'
  29235. }
  29236. function appendFetchMetadata (httpRequest) {
  29237. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header
  29238. // TODO
  29239. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header
  29240. // 1. Assert: r’s url is a potentially trustworthy URL.
  29241. // TODO
  29242. // 2. Let header be a Structured Header whose value is a token.
  29243. let header = null
  29244. // 3. Set header’s value to r’s mode.
  29245. header = httpRequest.mode
  29246. // 4. Set a structured field value `Sec-Fetch-Mode`/header in r’s header list.
  29247. httpRequest.headersList.set('sec-fetch-mode', header)
  29248. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header
  29249. // TODO
  29250. // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header
  29251. // TODO
  29252. }
  29253. // https://fetch.spec.whatwg.org/#append-a-request-origin-header
  29254. function appendRequestOriginHeader (request) {
  29255. // 1. Let serializedOrigin be the result of byte-serializing a request origin with request.
  29256. let serializedOrigin = request.origin
  29257. // 2. If request’s response tainting is "cors" or request’s mode is "websocket", then append (`Origin`, serializedOrigin) to request’s header list.
  29258. if (request.responseTainting === 'cors' || request.mode === 'websocket') {
  29259. if (serializedOrigin) {
  29260. request.headersList.append('origin', serializedOrigin)
  29261. }
  29262. // 3. Otherwise, if request’s method is neither `GET` nor `HEAD`, then:
  29263. } else if (request.method !== 'GET' && request.method !== 'HEAD') {
  29264. // 1. Switch on request’s referrer policy:
  29265. switch (request.referrerPolicy) {
  29266. case 'no-referrer':
  29267. // Set serializedOrigin to `null`.
  29268. serializedOrigin = null
  29269. break
  29270. case 'no-referrer-when-downgrade':
  29271. case 'strict-origin':
  29272. case 'strict-origin-when-cross-origin':
  29273. // If request’s origin is a tuple origin, its scheme is "https", and request’s current URL’s scheme is not "https", then set serializedOrigin to `null`.
  29274. if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {
  29275. serializedOrigin = null
  29276. }
  29277. break
  29278. case 'same-origin':
  29279. // If request’s origin is not same origin with request’s current URL’s origin, then set serializedOrigin to `null`.
  29280. if (!sameOrigin(request, requestCurrentURL(request))) {
  29281. serializedOrigin = null
  29282. }
  29283. break
  29284. default:
  29285. // Do nothing.
  29286. }
  29287. if (serializedOrigin) {
  29288. // 2. Append (`Origin`, serializedOrigin) to request’s header list.
  29289. request.headersList.append('origin', serializedOrigin)
  29290. }
  29291. }
  29292. }
  29293. function coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {
  29294. // TODO
  29295. return performance.now()
  29296. }
  29297. // https://fetch.spec.whatwg.org/#create-an-opaque-timing-info
  29298. function createOpaqueTimingInfo (timingInfo) {
  29299. return {
  29300. startTime: timingInfo.startTime ?? 0,
  29301. redirectStartTime: 0,
  29302. redirectEndTime: 0,
  29303. postRedirectStartTime: timingInfo.startTime ?? 0,
  29304. finalServiceWorkerStartTime: 0,
  29305. finalNetworkResponseStartTime: 0,
  29306. finalNetworkRequestStartTime: 0,
  29307. endTime: 0,
  29308. encodedBodySize: 0,
  29309. decodedBodySize: 0,
  29310. finalConnectionTimingInfo: null
  29311. }
  29312. }
  29313. // https://html.spec.whatwg.org/multipage/origin.html#policy-container
  29314. function makePolicyContainer () {
  29315. // Note: the fetch spec doesn't make use of embedder policy or CSP list
  29316. return {
  29317. referrerPolicy: 'strict-origin-when-cross-origin'
  29318. }
  29319. }
  29320. // https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container
  29321. function clonePolicyContainer (policyContainer) {
  29322. return {
  29323. referrerPolicy: policyContainer.referrerPolicy
  29324. }
  29325. }
  29326. // https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer
  29327. function determineRequestsReferrer (request) {
  29328. // 1. Let policy be request's referrer policy.
  29329. const policy = request.referrerPolicy
  29330. // Note: policy cannot (shouldn't) be null or an empty string.
  29331. assert(policy)
  29332. // 2. Let environment be request’s client.
  29333. let referrerSource = null
  29334. // 3. Switch on request’s referrer:
  29335. if (request.referrer === 'client') {
  29336. // Note: node isn't a browser and doesn't implement document/iframes,
  29337. // so we bypass this step and replace it with our own.
  29338. const globalOrigin = getGlobalOrigin()
  29339. if (!globalOrigin || globalOrigin.origin === 'null') {
  29340. return 'no-referrer'
  29341. }
  29342. // note: we need to clone it as it's mutated
  29343. referrerSource = new URL(globalOrigin)
  29344. } else if (request.referrer instanceof URL) {
  29345. // Let referrerSource be request’s referrer.
  29346. referrerSource = request.referrer
  29347. }
  29348. // 4. Let request’s referrerURL be the result of stripping referrerSource for
  29349. // use as a referrer.
  29350. let referrerURL = stripURLForReferrer(referrerSource)
  29351. // 5. Let referrerOrigin be the result of stripping referrerSource for use as
  29352. // a referrer, with the origin-only flag set to true.
  29353. const referrerOrigin = stripURLForReferrer(referrerSource, true)
  29354. // 6. If the result of serializing referrerURL is a string whose length is
  29355. // greater than 4096, set referrerURL to referrerOrigin.
  29356. if (referrerURL.toString().length > 4096) {
  29357. referrerURL = referrerOrigin
  29358. }
  29359. const areSameOrigin = sameOrigin(request, referrerURL)
  29360. const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) &&
  29361. !isURLPotentiallyTrustworthy(request.url)
  29362. // 8. Execute the switch statements corresponding to the value of policy:
  29363. switch (policy) {
  29364. case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true)
  29365. case 'unsafe-url': return referrerURL
  29366. case 'same-origin':
  29367. return areSameOrigin ? referrerOrigin : 'no-referrer'
  29368. case 'origin-when-cross-origin':
  29369. return areSameOrigin ? referrerURL : referrerOrigin
  29370. case 'strict-origin-when-cross-origin': {
  29371. const currentURL = requestCurrentURL(request)
  29372. // 1. If the origin of referrerURL and the origin of request’s current
  29373. // URL are the same, then return referrerURL.
  29374. if (sameOrigin(referrerURL, currentURL)) {
  29375. return referrerURL
  29376. }
  29377. // 2. If referrerURL is a potentially trustworthy URL and request’s
  29378. // current URL is not a potentially trustworthy URL, then return no
  29379. // referrer.
  29380. if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {
  29381. return 'no-referrer'
  29382. }
  29383. // 3. Return referrerOrigin.
  29384. return referrerOrigin
  29385. }
  29386. case 'strict-origin': // eslint-disable-line
  29387. /**
  29388. * 1. If referrerURL is a potentially trustworthy URL and
  29389. * request’s current URL is not a potentially trustworthy URL,
  29390. * then return no referrer.
  29391. * 2. Return referrerOrigin
  29392. */
  29393. case 'no-referrer-when-downgrade': // eslint-disable-line
  29394. /**
  29395. * 1. If referrerURL is a potentially trustworthy URL and
  29396. * request’s current URL is not a potentially trustworthy URL,
  29397. * then return no referrer.
  29398. * 2. Return referrerOrigin
  29399. */
  29400. default: // eslint-disable-line
  29401. return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin
  29402. }
  29403. }
  29404. /**
  29405. * @see https://w3c.github.io/webappsec-referrer-policy/#strip-url
  29406. * @param {URL} url
  29407. * @param {boolean|undefined} originOnly
  29408. */
  29409. function stripURLForReferrer (url, originOnly) {
  29410. // 1. Assert: url is a URL.
  29411. assert(url instanceof URL)
  29412. // 2. If url’s scheme is a local scheme, then return no referrer.
  29413. if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') {
  29414. return 'no-referrer'
  29415. }
  29416. // 3. Set url’s username to the empty string.
  29417. url.username = ''
  29418. // 4. Set url’s password to the empty string.
  29419. url.password = ''
  29420. // 5. Set url’s fragment to null.
  29421. url.hash = ''
  29422. // 6. If the origin-only flag is true, then:
  29423. if (originOnly) {
  29424. // 1. Set url’s path to « the empty string ».
  29425. url.pathname = ''
  29426. // 2. Set url’s query to null.
  29427. url.search = ''
  29428. }
  29429. // 7. Return url.
  29430. return url
  29431. }
  29432. function isURLPotentiallyTrustworthy (url) {
  29433. if (!(url instanceof URL)) {
  29434. return false
  29435. }
  29436. // If child of about, return true
  29437. if (url.href === 'about:blank' || url.href === 'about:srcdoc') {
  29438. return true
  29439. }
  29440. // If scheme is data, return true
  29441. if (url.protocol === 'data:') return true
  29442. // If file, return true
  29443. if (url.protocol === 'file:') return true
  29444. return isOriginPotentiallyTrustworthy(url.origin)
  29445. function isOriginPotentiallyTrustworthy (origin) {
  29446. // If origin is explicitly null, return false
  29447. if (origin == null || origin === 'null') return false
  29448. const originAsURL = new URL(origin)
  29449. // If secure, return true
  29450. if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') {
  29451. return true
  29452. }
  29453. // If localhost or variants, return true
  29454. if (/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(originAsURL.hostname) ||
  29455. (originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) ||
  29456. (originAsURL.hostname.endsWith('.localhost'))) {
  29457. return true
  29458. }
  29459. // If any other, return false
  29460. return false
  29461. }
  29462. }
  29463. /**
  29464. * @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist
  29465. * @param {Uint8Array} bytes
  29466. * @param {string} metadataList
  29467. */
  29468. function bytesMatch (bytes, metadataList) {
  29469. // If node is not built with OpenSSL support, we cannot check
  29470. // a request's integrity, so allow it by default (the spec will
  29471. // allow requests if an invalid hash is given, as precedence).
  29472. /* istanbul ignore if: only if node is built with --without-ssl */
  29473. if (crypto === undefined) {
  29474. return true
  29475. }
  29476. // 1. Let parsedMetadata be the result of parsing metadataList.
  29477. const parsedMetadata = parseMetadata(metadataList)
  29478. // 2. If parsedMetadata is no metadata, return true.
  29479. if (parsedMetadata === 'no metadata') {
  29480. return true
  29481. }
  29482. // 3. If parsedMetadata is the empty set, return true.
  29483. if (parsedMetadata.length === 0) {
  29484. return true
  29485. }
  29486. // 4. Let metadata be the result of getting the strongest
  29487. // metadata from parsedMetadata.
  29488. const list = parsedMetadata.sort((c, d) => d.algo.localeCompare(c.algo))
  29489. // get the strongest algorithm
  29490. const strongest = list[0].algo
  29491. // get all entries that use the strongest algorithm; ignore weaker
  29492. const metadata = list.filter((item) => item.algo === strongest)
  29493. // 5. For each item in metadata:
  29494. for (const item of metadata) {
  29495. // 1. Let algorithm be the alg component of item.
  29496. const algorithm = item.algo
  29497. // 2. Let expectedValue be the val component of item.
  29498. let expectedValue = item.hash
  29499. // See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e
  29500. // "be liberal with padding". This is annoying, and it's not even in the spec.
  29501. if (expectedValue.endsWith('==')) {
  29502. expectedValue = expectedValue.slice(0, -2)
  29503. }
  29504. // 3. Let actualValue be the result of applying algorithm to bytes.
  29505. let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')
  29506. if (actualValue.endsWith('==')) {
  29507. actualValue = actualValue.slice(0, -2)
  29508. }
  29509. // 4. If actualValue is a case-sensitive match for expectedValue,
  29510. // return true.
  29511. if (actualValue === expectedValue) {
  29512. return true
  29513. }
  29514. let actualBase64URL = crypto.createHash(algorithm).update(bytes).digest('base64url')
  29515. if (actualBase64URL.endsWith('==')) {
  29516. actualBase64URL = actualBase64URL.slice(0, -2)
  29517. }
  29518. if (actualBase64URL === expectedValue) {
  29519. return true
  29520. }
  29521. }
  29522. // 6. Return false.
  29523. return false
  29524. }
  29525. // https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
  29526. // https://www.w3.org/TR/CSP2/#source-list-syntax
  29527. // https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1
  29528. const parseHashWithOptions = /((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i
  29529. /**
  29530. * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
  29531. * @param {string} metadata
  29532. */
  29533. function parseMetadata (metadata) {
  29534. // 1. Let result be the empty set.
  29535. /** @type {{ algo: string, hash: string }[]} */
  29536. const result = []
  29537. // 2. Let empty be equal to true.
  29538. let empty = true
  29539. const supportedHashes = crypto.getHashes()
  29540. // 3. For each token returned by splitting metadata on spaces:
  29541. for (const token of metadata.split(' ')) {
  29542. // 1. Set empty to false.
  29543. empty = false
  29544. // 2. Parse token as a hash-with-options.
  29545. const parsedToken = parseHashWithOptions.exec(token)
  29546. // 3. If token does not parse, continue to the next token.
  29547. if (parsedToken === null || parsedToken.groups === undefined) {
  29548. // Note: Chromium blocks the request at this point, but Firefox
  29549. // gives a warning that an invalid integrity was given. The
  29550. // correct behavior is to ignore these, and subsequently not
  29551. // check the integrity of the resource.
  29552. continue
  29553. }
  29554. // 4. Let algorithm be the hash-algo component of token.
  29555. const algorithm = parsedToken.groups.algo
  29556. // 5. If algorithm is a hash function recognized by the user
  29557. // agent, add the parsed token to result.
  29558. if (supportedHashes.includes(algorithm.toLowerCase())) {
  29559. result.push(parsedToken.groups)
  29560. }
  29561. }
  29562. // 4. Return no metadata if empty is true, otherwise return result.
  29563. if (empty === true) {
  29564. return 'no metadata'
  29565. }
  29566. return result
  29567. }
  29568. // https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request
  29569. function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
  29570. // TODO
  29571. }
  29572. /**
  29573. * @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin}
  29574. * @param {URL} A
  29575. * @param {URL} B
  29576. */
  29577. function sameOrigin (A, B) {
  29578. // 1. If A and B are the same opaque origin, then return true.
  29579. if (A.origin === B.origin && A.origin === 'null') {
  29580. return true
  29581. }
  29582. // 2. If A and B are both tuple origins and their schemes,
  29583. // hosts, and port are identical, then return true.
  29584. if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
  29585. return true
  29586. }
  29587. // 3. Return false.
  29588. return false
  29589. }
  29590. function createDeferredPromise () {
  29591. let res
  29592. let rej
  29593. const promise = new Promise((resolve, reject) => {
  29594. res = resolve
  29595. rej = reject
  29596. })
  29597. return { promise, resolve: res, reject: rej }
  29598. }
  29599. function isAborted (fetchParams) {
  29600. return fetchParams.controller.state === 'aborted'
  29601. }
  29602. function isCancelled (fetchParams) {
  29603. return fetchParams.controller.state === 'aborted' ||
  29604. fetchParams.controller.state === 'terminated'
  29605. }
  29606. // https://fetch.spec.whatwg.org/#concept-method-normalize
  29607. function normalizeMethod (method) {
  29608. return /^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(method)
  29609. ? method.toUpperCase()
  29610. : method
  29611. }
  29612. // https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string
  29613. function serializeJavascriptValueToJSONString (value) {
  29614. // 1. Let result be ? Call(%JSON.stringify%, undefined, « value »).
  29615. const result = JSON.stringify(value)
  29616. // 2. If result is undefined, then throw a TypeError.
  29617. if (result === undefined) {
  29618. throw new TypeError('Value is not JSON serializable')
  29619. }
  29620. // 3. Assert: result is a string.
  29621. assert(typeof result === 'string')
  29622. // 4. Return result.
  29623. return result
  29624. }
  29625. // https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object
  29626. const esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))
  29627. /**
  29628. * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object
  29629. * @param {() => unknown[]} iterator
  29630. * @param {string} name name of the instance
  29631. * @param {'key'|'value'|'key+value'} kind
  29632. */
  29633. function makeIterator (iterator, name, kind) {
  29634. const object = {
  29635. index: 0,
  29636. kind,
  29637. target: iterator
  29638. }
  29639. const i = {
  29640. next () {
  29641. // 1. Let interface be the interface for which the iterator prototype object exists.
  29642. // 2. Let thisValue be the this value.
  29643. // 3. Let object be ? ToObject(thisValue).
  29644. // 4. If object is a platform object, then perform a security
  29645. // check, passing:
  29646. // 5. If object is not a default iterator object for interface,
  29647. // then throw a TypeError.
  29648. if (Object.getPrototypeOf(this) !== i) {
  29649. throw new TypeError(
  29650. `'next' called on an object that does not implement interface ${name} Iterator.`
  29651. )
  29652. }
  29653. // 6. Let index be object’s index.
  29654. // 7. Let kind be object’s kind.
  29655. // 8. Let values be object’s target's value pairs to iterate over.
  29656. const { index, kind, target } = object
  29657. const values = target()
  29658. // 9. Let len be the length of values.
  29659. const len = values.length
  29660. // 10. If index is greater than or equal to len, then return
  29661. // CreateIterResultObject(undefined, true).
  29662. if (index >= len) {
  29663. return { value: undefined, done: true }
  29664. }
  29665. // 11. Let pair be the entry in values at index index.
  29666. const pair = values[index]
  29667. // 12. Set object’s index to index + 1.
  29668. object.index = index + 1
  29669. // 13. Return the iterator result for pair and kind.
  29670. return iteratorResult(pair, kind)
  29671. },
  29672. // The class string of an iterator prototype object for a given interface is the
  29673. // result of concatenating the identifier of the interface and the string " Iterator".
  29674. [Symbol.toStringTag]: `${name} Iterator`
  29675. }
  29676. // The [[Prototype]] internal slot of an iterator prototype object must be %IteratorPrototype%.
  29677. Object.setPrototypeOf(i, esIteratorPrototype)
  29678. // esIteratorPrototype needs to be the prototype of i
  29679. // which is the prototype of an empty object. Yes, it's confusing.
  29680. return Object.setPrototypeOf({}, i)
  29681. }
  29682. // https://webidl.spec.whatwg.org/#iterator-result
  29683. function iteratorResult (pair, kind) {
  29684. let result
  29685. // 1. Let result be a value determined by the value of kind:
  29686. switch (kind) {
  29687. case 'key': {
  29688. // 1. Let idlKey be pair’s key.
  29689. // 2. Let key be the result of converting idlKey to an
  29690. // ECMAScript value.
  29691. // 3. result is key.
  29692. result = pair[0]
  29693. break
  29694. }
  29695. case 'value': {
  29696. // 1. Let idlValue be pair’s value.
  29697. // 2. Let value be the result of converting idlValue to
  29698. // an ECMAScript value.
  29699. // 3. result is value.
  29700. result = pair[1]
  29701. break
  29702. }
  29703. case 'key+value': {
  29704. // 1. Let idlKey be pair’s key.
  29705. // 2. Let idlValue be pair’s value.
  29706. // 3. Let key be the result of converting idlKey to an
  29707. // ECMAScript value.
  29708. // 4. Let value be the result of converting idlValue to
  29709. // an ECMAScript value.
  29710. // 5. Let array be ! ArrayCreate(2).
  29711. // 6. Call ! CreateDataProperty(array, "0", key).
  29712. // 7. Call ! CreateDataProperty(array, "1", value).
  29713. // 8. result is array.
  29714. result = pair
  29715. break
  29716. }
  29717. }
  29718. // 2. Return CreateIterResultObject(result, false).
  29719. return { value: result, done: false }
  29720. }
  29721. /**
  29722. * @see https://fetch.spec.whatwg.org/#body-fully-read
  29723. */
  29724. async function fullyReadBody (body, processBody, processBodyError) {
  29725. // 1. If taskDestination is null, then set taskDestination to
  29726. // the result of starting a new parallel queue.
  29727. // 2. Let successSteps given a byte sequence bytes be to queue a
  29728. // fetch task to run processBody given bytes, with taskDestination.
  29729. const successSteps = processBody
  29730. // 3. Let errorSteps be to queue a fetch task to run processBodyError,
  29731. // with taskDestination.
  29732. const errorSteps = processBodyError
  29733. // 4. Let reader be the result of getting a reader for body’s stream.
  29734. // If that threw an exception, then run errorSteps with that
  29735. // exception and return.
  29736. let reader
  29737. try {
  29738. reader = body.stream.getReader()
  29739. } catch (e) {
  29740. errorSteps(e)
  29741. return
  29742. }
  29743. // 5. Read all bytes from reader, given successSteps and errorSteps.
  29744. try {
  29745. const result = await readAllBytes(reader)
  29746. successSteps(result)
  29747. } catch (e) {
  29748. errorSteps(e)
  29749. }
  29750. }
  29751. /** @type {ReadableStream} */
  29752. let ReadableStream = globalThis.ReadableStream
  29753. function isReadableStreamLike (stream) {
  29754. if (!ReadableStream) {
  29755. ReadableStream = (__nccwpck_require__(5356).ReadableStream)
  29756. }
  29757. return stream instanceof ReadableStream || (
  29758. stream[Symbol.toStringTag] === 'ReadableStream' &&
  29759. typeof stream.tee === 'function'
  29760. )
  29761. }
  29762. const MAXIMUM_ARGUMENT_LENGTH = 65535
  29763. /**
  29764. * @see https://infra.spec.whatwg.org/#isomorphic-decode
  29765. * @param {number[]|Uint8Array} input
  29766. */
  29767. function isomorphicDecode (input) {
  29768. // 1. To isomorphic decode a byte sequence input, return a string whose code point
  29769. // length is equal to input’s length and whose code points have the same values
  29770. // as the values of input’s bytes, in the same order.
  29771. if (input.length < MAXIMUM_ARGUMENT_LENGTH) {
  29772. return String.fromCharCode(...input)
  29773. }
  29774. return input.reduce((previous, current) => previous + String.fromCharCode(current), '')
  29775. }
  29776. /**
  29777. * @param {ReadableStreamController<Uint8Array>} controller
  29778. */
  29779. function readableStreamClose (controller) {
  29780. try {
  29781. controller.close()
  29782. } catch (err) {
  29783. // TODO: add comment explaining why this error occurs.
  29784. if (!err.message.includes('Controller is already closed')) {
  29785. throw err
  29786. }
  29787. }
  29788. }
  29789. /**
  29790. * @see https://infra.spec.whatwg.org/#isomorphic-encode
  29791. * @param {string} input
  29792. */
  29793. function isomorphicEncode (input) {
  29794. // 1. Assert: input contains no code points greater than U+00FF.
  29795. for (let i = 0; i < input.length; i++) {
  29796. assert(input.charCodeAt(i) <= 0xFF)
  29797. }
  29798. // 2. Return a byte sequence whose length is equal to input’s code
  29799. // point length and whose bytes have the same values as the
  29800. // values of input’s code points, in the same order
  29801. return input
  29802. }
  29803. /**
  29804. * @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes
  29805. * @see https://streams.spec.whatwg.org/#read-loop
  29806. * @param {ReadableStreamDefaultReader} reader
  29807. */
  29808. async function readAllBytes (reader) {
  29809. const bytes = []
  29810. let byteLength = 0
  29811. while (true) {
  29812. const { done, value: chunk } = await reader.read()
  29813. if (done) {
  29814. // 1. Call successSteps with bytes.
  29815. return Buffer.concat(bytes, byteLength)
  29816. }
  29817. // 1. If chunk is not a Uint8Array object, call failureSteps
  29818. // with a TypeError and abort these steps.
  29819. if (!isUint8Array(chunk)) {
  29820. throw new TypeError('Received non-Uint8Array chunk')
  29821. }
  29822. // 2. Append the bytes represented by chunk to bytes.
  29823. bytes.push(chunk)
  29824. byteLength += chunk.length
  29825. // 3. Read-loop given reader, bytes, successSteps, and failureSteps.
  29826. }
  29827. }
  29828. /**
  29829. * @see https://fetch.spec.whatwg.org/#is-local
  29830. * @param {URL} url
  29831. */
  29832. function urlIsLocal (url) {
  29833. assert('protocol' in url) // ensure it's a url object
  29834. const protocol = url.protocol
  29835. return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:'
  29836. }
  29837. /**
  29838. * @param {string|URL} url
  29839. */
  29840. function urlHasHttpsScheme (url) {
  29841. if (typeof url === 'string') {
  29842. return url.startsWith('https:')
  29843. }
  29844. return url.protocol === 'https:'
  29845. }
  29846. /**
  29847. * @see https://fetch.spec.whatwg.org/#http-scheme
  29848. * @param {URL} url
  29849. */
  29850. function urlIsHttpHttpsScheme (url) {
  29851. assert('protocol' in url) // ensure it's a url object
  29852. const protocol = url.protocol
  29853. return protocol === 'http:' || protocol === 'https:'
  29854. }
  29855. /**
  29856. * Fetch supports node >= 16.8.0, but Object.hasOwn was added in v16.9.0.
  29857. */
  29858. const hasOwn = Object.hasOwn || ((dict, key) => Object.prototype.hasOwnProperty.call(dict, key))
  29859. module.exports = {
  29860. isAborted,
  29861. isCancelled,
  29862. createDeferredPromise,
  29863. ReadableStreamFrom,
  29864. toUSVString,
  29865. tryUpgradeRequestToAPotentiallyTrustworthyURL,
  29866. coarsenedSharedCurrentTime,
  29867. determineRequestsReferrer,
  29868. makePolicyContainer,
  29869. clonePolicyContainer,
  29870. appendFetchMetadata,
  29871. appendRequestOriginHeader,
  29872. TAOCheck,
  29873. corsCheck,
  29874. crossOriginResourcePolicyCheck,
  29875. createOpaqueTimingInfo,
  29876. setRequestReferrerPolicyOnRedirect,
  29877. isValidHTTPToken,
  29878. requestBadPort,
  29879. requestCurrentURL,
  29880. responseURL,
  29881. responseLocationURL,
  29882. isBlobLike,
  29883. isURLPotentiallyTrustworthy,
  29884. isValidReasonPhrase,
  29885. sameOrigin,
  29886. normalizeMethod,
  29887. serializeJavascriptValueToJSONString,
  29888. makeIterator,
  29889. isValidHeaderName,
  29890. isValidHeaderValue,
  29891. hasOwn,
  29892. isErrorLike,
  29893. fullyReadBody,
  29894. bytesMatch,
  29895. isReadableStreamLike,
  29896. readableStreamClose,
  29897. isomorphicEncode,
  29898. isomorphicDecode,
  29899. urlIsLocal,
  29900. urlHasHttpsScheme,
  29901. urlIsHttpHttpsScheme,
  29902. readAllBytes
  29903. }
  29904. /***/ }),
  29905. /***/ 1744:
  29906. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  29907. "use strict";
  29908. const { types } = __nccwpck_require__(3837)
  29909. const { hasOwn, toUSVString } = __nccwpck_require__(2538)
  29910. /** @type {import('../../types/webidl').Webidl} */
  29911. const webidl = {}
  29912. webidl.converters = {}
  29913. webidl.util = {}
  29914. webidl.errors = {}
  29915. webidl.errors.exception = function (message) {
  29916. return new TypeError(`${message.header}: ${message.message}`)
  29917. }
  29918. webidl.errors.conversionFailed = function (context) {
  29919. const plural = context.types.length === 1 ? '' : ' one of'
  29920. const message =
  29921. `${context.argument} could not be converted to` +
  29922. `${plural}: ${context.types.join(', ')}.`
  29923. return webidl.errors.exception({
  29924. header: context.prefix,
  29925. message
  29926. })
  29927. }
  29928. webidl.errors.invalidArgument = function (context) {
  29929. return webidl.errors.exception({
  29930. header: context.prefix,
  29931. message: `"${context.value}" is an invalid ${context.type}.`
  29932. })
  29933. }
  29934. // https://webidl.spec.whatwg.org/#implements
  29935. webidl.brandCheck = function (V, I, opts = undefined) {
  29936. if (opts?.strict !== false && !(V instanceof I)) {
  29937. throw new TypeError('Illegal invocation')
  29938. } else {
  29939. return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag]
  29940. }
  29941. }
  29942. webidl.argumentLengthCheck = function ({ length }, min, ctx) {
  29943. if (length < min) {
  29944. throw webidl.errors.exception({
  29945. message: `${min} argument${min !== 1 ? 's' : ''} required, ` +
  29946. `but${length ? ' only' : ''} ${length} found.`,
  29947. ...ctx
  29948. })
  29949. }
  29950. }
  29951. webidl.illegalConstructor = function () {
  29952. throw webidl.errors.exception({
  29953. header: 'TypeError',
  29954. message: 'Illegal constructor'
  29955. })
  29956. }
  29957. // https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
  29958. webidl.util.Type = function (V) {
  29959. switch (typeof V) {
  29960. case 'undefined': return 'Undefined'
  29961. case 'boolean': return 'Boolean'
  29962. case 'string': return 'String'
  29963. case 'symbol': return 'Symbol'
  29964. case 'number': return 'Number'
  29965. case 'bigint': return 'BigInt'
  29966. case 'function':
  29967. case 'object': {
  29968. if (V === null) {
  29969. return 'Null'
  29970. }
  29971. return 'Object'
  29972. }
  29973. }
  29974. }
  29975. // https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
  29976. webidl.util.ConvertToInt = function (V, bitLength, signedness, opts = {}) {
  29977. let upperBound
  29978. let lowerBound
  29979. // 1. If bitLength is 64, then:
  29980. if (bitLength === 64) {
  29981. // 1. Let upperBound be 2^53 − 1.
  29982. upperBound = Math.pow(2, 53) - 1
  29983. // 2. If signedness is "unsigned", then let lowerBound be 0.
  29984. if (signedness === 'unsigned') {
  29985. lowerBound = 0
  29986. } else {
  29987. // 3. Otherwise let lowerBound be −2^53 + 1.
  29988. lowerBound = Math.pow(-2, 53) + 1
  29989. }
  29990. } else if (signedness === 'unsigned') {
  29991. // 2. Otherwise, if signedness is "unsigned", then:
  29992. // 1. Let lowerBound be 0.
  29993. lowerBound = 0
  29994. // 2. Let upperBound be 2^bitLength − 1.
  29995. upperBound = Math.pow(2, bitLength) - 1
  29996. } else {
  29997. // 3. Otherwise:
  29998. // 1. Let lowerBound be -2^bitLength − 1.
  29999. lowerBound = Math.pow(-2, bitLength) - 1
  30000. // 2. Let upperBound be 2^bitLength − 1 − 1.
  30001. upperBound = Math.pow(2, bitLength - 1) - 1
  30002. }
  30003. // 4. Let x be ? ToNumber(V).
  30004. let x = Number(V)
  30005. // 5. If x is −0, then set x to +0.
  30006. if (x === 0) {
  30007. x = 0
  30008. }
  30009. // 6. If the conversion is to an IDL type associated
  30010. // with the [EnforceRange] extended attribute, then:
  30011. if (opts.enforceRange === true) {
  30012. // 1. If x is NaN, +∞, or −∞, then throw a TypeError.
  30013. if (
  30014. Number.isNaN(x) ||
  30015. x === Number.POSITIVE_INFINITY ||
  30016. x === Number.NEGATIVE_INFINITY
  30017. ) {
  30018. throw webidl.errors.exception({
  30019. header: 'Integer conversion',
  30020. message: `Could not convert ${V} to an integer.`
  30021. })
  30022. }
  30023. // 2. Set x to IntegerPart(x).
  30024. x = webidl.util.IntegerPart(x)
  30025. // 3. If x < lowerBound or x > upperBound, then
  30026. // throw a TypeError.
  30027. if (x < lowerBound || x > upperBound) {
  30028. throw webidl.errors.exception({
  30029. header: 'Integer conversion',
  30030. message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`
  30031. })
  30032. }
  30033. // 4. Return x.
  30034. return x
  30035. }
  30036. // 7. If x is not NaN and the conversion is to an IDL
  30037. // type associated with the [Clamp] extended
  30038. // attribute, then:
  30039. if (!Number.isNaN(x) && opts.clamp === true) {
  30040. // 1. Set x to min(max(x, lowerBound), upperBound).
  30041. x = Math.min(Math.max(x, lowerBound), upperBound)
  30042. // 2. Round x to the nearest integer, choosing the
  30043. // even integer if it lies halfway between two,
  30044. // and choosing +0 rather than −0.
  30045. if (Math.floor(x) % 2 === 0) {
  30046. x = Math.floor(x)
  30047. } else {
  30048. x = Math.ceil(x)
  30049. }
  30050. // 3. Return x.
  30051. return x
  30052. }
  30053. // 8. If x is NaN, +0, +∞, or −∞, then return +0.
  30054. if (
  30055. Number.isNaN(x) ||
  30056. (x === 0 && Object.is(0, x)) ||
  30057. x === Number.POSITIVE_INFINITY ||
  30058. x === Number.NEGATIVE_INFINITY
  30059. ) {
  30060. return 0
  30061. }
  30062. // 9. Set x to IntegerPart(x).
  30063. x = webidl.util.IntegerPart(x)
  30064. // 10. Set x to x modulo 2^bitLength.
  30065. x = x % Math.pow(2, bitLength)
  30066. // 11. If signedness is "signed" and x ≥ 2^bitLength − 1,
  30067. // then return x − 2^bitLength.
  30068. if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) {
  30069. return x - Math.pow(2, bitLength)
  30070. }
  30071. // 12. Otherwise, return x.
  30072. return x
  30073. }
  30074. // https://webidl.spec.whatwg.org/#abstract-opdef-integerpart
  30075. webidl.util.IntegerPart = function (n) {
  30076. // 1. Let r be floor(abs(n)).
  30077. const r = Math.floor(Math.abs(n))
  30078. // 2. If n < 0, then return -1 × r.
  30079. if (n < 0) {
  30080. return -1 * r
  30081. }
  30082. // 3. Otherwise, return r.
  30083. return r
  30084. }
  30085. // https://webidl.spec.whatwg.org/#es-sequence
  30086. webidl.sequenceConverter = function (converter) {
  30087. return (V) => {
  30088. // 1. If Type(V) is not Object, throw a TypeError.
  30089. if (webidl.util.Type(V) !== 'Object') {
  30090. throw webidl.errors.exception({
  30091. header: 'Sequence',
  30092. message: `Value of type ${webidl.util.Type(V)} is not an Object.`
  30093. })
  30094. }
  30095. // 2. Let method be ? GetMethod(V, @@iterator).
  30096. /** @type {Generator} */
  30097. const method = V?.[Symbol.iterator]?.()
  30098. const seq = []
  30099. // 3. If method is undefined, throw a TypeError.
  30100. if (
  30101. method === undefined ||
  30102. typeof method.next !== 'function'
  30103. ) {
  30104. throw webidl.errors.exception({
  30105. header: 'Sequence',
  30106. message: 'Object is not an iterator.'
  30107. })
  30108. }
  30109. // https://webidl.spec.whatwg.org/#create-sequence-from-iterable
  30110. while (true) {
  30111. const { done, value } = method.next()
  30112. if (done) {
  30113. break
  30114. }
  30115. seq.push(converter(value))
  30116. }
  30117. return seq
  30118. }
  30119. }
  30120. // https://webidl.spec.whatwg.org/#es-to-record
  30121. webidl.recordConverter = function (keyConverter, valueConverter) {
  30122. return (O) => {
  30123. // 1. If Type(O) is not Object, throw a TypeError.
  30124. if (webidl.util.Type(O) !== 'Object') {
  30125. throw webidl.errors.exception({
  30126. header: 'Record',
  30127. message: `Value of type ${webidl.util.Type(O)} is not an Object.`
  30128. })
  30129. }
  30130. // 2. Let result be a new empty instance of record<K, V>.
  30131. const result = {}
  30132. if (!types.isProxy(O)) {
  30133. // Object.keys only returns enumerable properties
  30134. const keys = Object.keys(O)
  30135. for (const key of keys) {
  30136. // 1. Let typedKey be key converted to an IDL value of type K.
  30137. const typedKey = keyConverter(key)
  30138. // 2. Let value be ? Get(O, key).
  30139. // 3. Let typedValue be value converted to an IDL value of type V.
  30140. const typedValue = valueConverter(O[key])
  30141. // 4. Set result[typedKey] to typedValue.
  30142. result[typedKey] = typedValue
  30143. }
  30144. // 5. Return result.
  30145. return result
  30146. }
  30147. // 3. Let keys be ? O.[[OwnPropertyKeys]]().
  30148. const keys = Reflect.ownKeys(O)
  30149. // 4. For each key of keys.
  30150. for (const key of keys) {
  30151. // 1. Let desc be ? O.[[GetOwnProperty]](key).
  30152. const desc = Reflect.getOwnPropertyDescriptor(O, key)
  30153. // 2. If desc is not undefined and desc.[[Enumerable]] is true:
  30154. if (desc?.enumerable) {
  30155. // 1. Let typedKey be key converted to an IDL value of type K.
  30156. const typedKey = keyConverter(key)
  30157. // 2. Let value be ? Get(O, key).
  30158. // 3. Let typedValue be value converted to an IDL value of type V.
  30159. const typedValue = valueConverter(O[key])
  30160. // 4. Set result[typedKey] to typedValue.
  30161. result[typedKey] = typedValue
  30162. }
  30163. }
  30164. // 5. Return result.
  30165. return result
  30166. }
  30167. }
  30168. webidl.interfaceConverter = function (i) {
  30169. return (V, opts = {}) => {
  30170. if (opts.strict !== false && !(V instanceof i)) {
  30171. throw webidl.errors.exception({
  30172. header: i.name,
  30173. message: `Expected ${V} to be an instance of ${i.name}.`
  30174. })
  30175. }
  30176. return V
  30177. }
  30178. }
  30179. webidl.dictionaryConverter = function (converters) {
  30180. return (dictionary) => {
  30181. const type = webidl.util.Type(dictionary)
  30182. const dict = {}
  30183. if (type === 'Null' || type === 'Undefined') {
  30184. return dict
  30185. } else if (type !== 'Object') {
  30186. throw webidl.errors.exception({
  30187. header: 'Dictionary',
  30188. message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`
  30189. })
  30190. }
  30191. for (const options of converters) {
  30192. const { key, defaultValue, required, converter } = options
  30193. if (required === true) {
  30194. if (!hasOwn(dictionary, key)) {
  30195. throw webidl.errors.exception({
  30196. header: 'Dictionary',
  30197. message: `Missing required key "${key}".`
  30198. })
  30199. }
  30200. }
  30201. let value = dictionary[key]
  30202. const hasDefault = hasOwn(options, 'defaultValue')
  30203. // Only use defaultValue if value is undefined and
  30204. // a defaultValue options was provided.
  30205. if (hasDefault && value !== null) {
  30206. value = value ?? defaultValue
  30207. }
  30208. // A key can be optional and have no default value.
  30209. // When this happens, do not perform a conversion,
  30210. // and do not assign the key a value.
  30211. if (required || hasDefault || value !== undefined) {
  30212. value = converter(value)
  30213. if (
  30214. options.allowedValues &&
  30215. !options.allowedValues.includes(value)
  30216. ) {
  30217. throw webidl.errors.exception({
  30218. header: 'Dictionary',
  30219. message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.`
  30220. })
  30221. }
  30222. dict[key] = value
  30223. }
  30224. }
  30225. return dict
  30226. }
  30227. }
  30228. webidl.nullableConverter = function (converter) {
  30229. return (V) => {
  30230. if (V === null) {
  30231. return V
  30232. }
  30233. return converter(V)
  30234. }
  30235. }
  30236. // https://webidl.spec.whatwg.org/#es-DOMString
  30237. webidl.converters.DOMString = function (V, opts = {}) {
  30238. // 1. If V is null and the conversion is to an IDL type
  30239. // associated with the [LegacyNullToEmptyString]
  30240. // extended attribute, then return the DOMString value
  30241. // that represents the empty string.
  30242. if (V === null && opts.legacyNullToEmptyString) {
  30243. return ''
  30244. }
  30245. // 2. Let x be ? ToString(V).
  30246. if (typeof V === 'symbol') {
  30247. throw new TypeError('Could not convert argument of type symbol to string.')
  30248. }
  30249. // 3. Return the IDL DOMString value that represents the
  30250. // same sequence of code units as the one the
  30251. // ECMAScript String value x represents.
  30252. return String(V)
  30253. }
  30254. // https://webidl.spec.whatwg.org/#es-ByteString
  30255. webidl.converters.ByteString = function (V) {
  30256. // 1. Let x be ? ToString(V).
  30257. // Note: DOMString converter perform ? ToString(V)
  30258. const x = webidl.converters.DOMString(V)
  30259. // 2. If the value of any element of x is greater than
  30260. // 255, then throw a TypeError.
  30261. for (let index = 0; index < x.length; index++) {
  30262. const charCode = x.charCodeAt(index)
  30263. if (charCode > 255) {
  30264. throw new TypeError(
  30265. 'Cannot convert argument to a ByteString because the character at ' +
  30266. `index ${index} has a value of ${charCode} which is greater than 255.`
  30267. )
  30268. }
  30269. }
  30270. // 3. Return an IDL ByteString value whose length is the
  30271. // length of x, and where the value of each element is
  30272. // the value of the corresponding element of x.
  30273. return x
  30274. }
  30275. // https://webidl.spec.whatwg.org/#es-USVString
  30276. webidl.converters.USVString = toUSVString
  30277. // https://webidl.spec.whatwg.org/#es-boolean
  30278. webidl.converters.boolean = function (V) {
  30279. // 1. Let x be the result of computing ToBoolean(V).
  30280. const x = Boolean(V)
  30281. // 2. Return the IDL boolean value that is the one that represents
  30282. // the same truth value as the ECMAScript Boolean value x.
  30283. return x
  30284. }
  30285. // https://webidl.spec.whatwg.org/#es-any
  30286. webidl.converters.any = function (V) {
  30287. return V
  30288. }
  30289. // https://webidl.spec.whatwg.org/#es-long-long
  30290. webidl.converters['long long'] = function (V) {
  30291. // 1. Let x be ? ConvertToInt(V, 64, "signed").
  30292. const x = webidl.util.ConvertToInt(V, 64, 'signed')
  30293. // 2. Return the IDL long long value that represents
  30294. // the same numeric value as x.
  30295. return x
  30296. }
  30297. // https://webidl.spec.whatwg.org/#es-unsigned-long-long
  30298. webidl.converters['unsigned long long'] = function (V) {
  30299. // 1. Let x be ? ConvertToInt(V, 64, "unsigned").
  30300. const x = webidl.util.ConvertToInt(V, 64, 'unsigned')
  30301. // 2. Return the IDL unsigned long long value that
  30302. // represents the same numeric value as x.
  30303. return x
  30304. }
  30305. // https://webidl.spec.whatwg.org/#es-unsigned-long
  30306. webidl.converters['unsigned long'] = function (V) {
  30307. // 1. Let x be ? ConvertToInt(V, 32, "unsigned").
  30308. const x = webidl.util.ConvertToInt(V, 32, 'unsigned')
  30309. // 2. Return the IDL unsigned long value that
  30310. // represents the same numeric value as x.
  30311. return x
  30312. }
  30313. // https://webidl.spec.whatwg.org/#es-unsigned-short
  30314. webidl.converters['unsigned short'] = function (V, opts) {
  30315. // 1. Let x be ? ConvertToInt(V, 16, "unsigned").
  30316. const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts)
  30317. // 2. Return the IDL unsigned short value that represents
  30318. // the same numeric value as x.
  30319. return x
  30320. }
  30321. // https://webidl.spec.whatwg.org/#idl-ArrayBuffer
  30322. webidl.converters.ArrayBuffer = function (V, opts = {}) {
  30323. // 1. If Type(V) is not Object, or V does not have an
  30324. // [[ArrayBufferData]] internal slot, then throw a
  30325. // TypeError.
  30326. // see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances
  30327. // see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances
  30328. if (
  30329. webidl.util.Type(V) !== 'Object' ||
  30330. !types.isAnyArrayBuffer(V)
  30331. ) {
  30332. throw webidl.errors.conversionFailed({
  30333. prefix: `${V}`,
  30334. argument: `${V}`,
  30335. types: ['ArrayBuffer']
  30336. })
  30337. }
  30338. // 2. If the conversion is not to an IDL type associated
  30339. // with the [AllowShared] extended attribute, and
  30340. // IsSharedArrayBuffer(V) is true, then throw a
  30341. // TypeError.
  30342. if (opts.allowShared === false && types.isSharedArrayBuffer(V)) {
  30343. throw webidl.errors.exception({
  30344. header: 'ArrayBuffer',
  30345. message: 'SharedArrayBuffer is not allowed.'
  30346. })
  30347. }
  30348. // 3. If the conversion is not to an IDL type associated
  30349. // with the [AllowResizable] extended attribute, and
  30350. // IsResizableArrayBuffer(V) is true, then throw a
  30351. // TypeError.
  30352. // Note: resizable ArrayBuffers are currently a proposal.
  30353. // 4. Return the IDL ArrayBuffer value that is a
  30354. // reference to the same object as V.
  30355. return V
  30356. }
  30357. webidl.converters.TypedArray = function (V, T, opts = {}) {
  30358. // 1. Let T be the IDL type V is being converted to.
  30359. // 2. If Type(V) is not Object, or V does not have a
  30360. // [[TypedArrayName]] internal slot with a value
  30361. // equal to T’s name, then throw a TypeError.
  30362. if (
  30363. webidl.util.Type(V) !== 'Object' ||
  30364. !types.isTypedArray(V) ||
  30365. V.constructor.name !== T.name
  30366. ) {
  30367. throw webidl.errors.conversionFailed({
  30368. prefix: `${T.name}`,
  30369. argument: `${V}`,
  30370. types: [T.name]
  30371. })
  30372. }
  30373. // 3. If the conversion is not to an IDL type associated
  30374. // with the [AllowShared] extended attribute, and
  30375. // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is
  30376. // true, then throw a TypeError.
  30377. if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {
  30378. throw webidl.errors.exception({
  30379. header: 'ArrayBuffer',
  30380. message: 'SharedArrayBuffer is not allowed.'
  30381. })
  30382. }
  30383. // 4. If the conversion is not to an IDL type associated
  30384. // with the [AllowResizable] extended attribute, and
  30385. // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
  30386. // true, then throw a TypeError.
  30387. // Note: resizable array buffers are currently a proposal
  30388. // 5. Return the IDL value of type T that is a reference
  30389. // to the same object as V.
  30390. return V
  30391. }
  30392. webidl.converters.DataView = function (V, opts = {}) {
  30393. // 1. If Type(V) is not Object, or V does not have a
  30394. // [[DataView]] internal slot, then throw a TypeError.
  30395. if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) {
  30396. throw webidl.errors.exception({
  30397. header: 'DataView',
  30398. message: 'Object is not a DataView.'
  30399. })
  30400. }
  30401. // 2. If the conversion is not to an IDL type associated
  30402. // with the [AllowShared] extended attribute, and
  30403. // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true,
  30404. // then throw a TypeError.
  30405. if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {
  30406. throw webidl.errors.exception({
  30407. header: 'ArrayBuffer',
  30408. message: 'SharedArrayBuffer is not allowed.'
  30409. })
  30410. }
  30411. // 3. If the conversion is not to an IDL type associated
  30412. // with the [AllowResizable] extended attribute, and
  30413. // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
  30414. // true, then throw a TypeError.
  30415. // Note: resizable ArrayBuffers are currently a proposal
  30416. // 4. Return the IDL DataView value that is a reference
  30417. // to the same object as V.
  30418. return V
  30419. }
  30420. // https://webidl.spec.whatwg.org/#BufferSource
  30421. webidl.converters.BufferSource = function (V, opts = {}) {
  30422. if (types.isAnyArrayBuffer(V)) {
  30423. return webidl.converters.ArrayBuffer(V, opts)
  30424. }
  30425. if (types.isTypedArray(V)) {
  30426. return webidl.converters.TypedArray(V, V.constructor)
  30427. }
  30428. if (types.isDataView(V)) {
  30429. return webidl.converters.DataView(V, opts)
  30430. }
  30431. throw new TypeError(`Could not convert ${V} to a BufferSource.`)
  30432. }
  30433. webidl.converters['sequence<ByteString>'] = webidl.sequenceConverter(
  30434. webidl.converters.ByteString
  30435. )
  30436. webidl.converters['sequence<sequence<ByteString>>'] = webidl.sequenceConverter(
  30437. webidl.converters['sequence<ByteString>']
  30438. )
  30439. webidl.converters['record<ByteString, ByteString>'] = webidl.recordConverter(
  30440. webidl.converters.ByteString,
  30441. webidl.converters.ByteString
  30442. )
  30443. module.exports = {
  30444. webidl
  30445. }
  30446. /***/ }),
  30447. /***/ 4854:
  30448. /***/ ((module) => {
  30449. "use strict";
  30450. /**
  30451. * @see https://encoding.spec.whatwg.org/#concept-encoding-get
  30452. * @param {string|undefined} label
  30453. */
  30454. function getEncoding (label) {
  30455. if (!label) {
  30456. return 'failure'
  30457. }
  30458. // 1. Remove any leading and trailing ASCII whitespace from label.
  30459. // 2. If label is an ASCII case-insensitive match for any of the
  30460. // labels listed in the table below, then return the
  30461. // corresponding encoding; otherwise return failure.
  30462. switch (label.trim().toLowerCase()) {
  30463. case 'unicode-1-1-utf-8':
  30464. case 'unicode11utf8':
  30465. case 'unicode20utf8':
  30466. case 'utf-8':
  30467. case 'utf8':
  30468. case 'x-unicode20utf8':
  30469. return 'UTF-8'
  30470. case '866':
  30471. case 'cp866':
  30472. case 'csibm866':
  30473. case 'ibm866':
  30474. return 'IBM866'
  30475. case 'csisolatin2':
  30476. case 'iso-8859-2':
  30477. case 'iso-ir-101':
  30478. case 'iso8859-2':
  30479. case 'iso88592':
  30480. case 'iso_8859-2':
  30481. case 'iso_8859-2:1987':
  30482. case 'l2':
  30483. case 'latin2':
  30484. return 'ISO-8859-2'
  30485. case 'csisolatin3':
  30486. case 'iso-8859-3':
  30487. case 'iso-ir-109':
  30488. case 'iso8859-3':
  30489. case 'iso88593':
  30490. case 'iso_8859-3':
  30491. case 'iso_8859-3:1988':
  30492. case 'l3':
  30493. case 'latin3':
  30494. return 'ISO-8859-3'
  30495. case 'csisolatin4':
  30496. case 'iso-8859-4':
  30497. case 'iso-ir-110':
  30498. case 'iso8859-4':
  30499. case 'iso88594':
  30500. case 'iso_8859-4':
  30501. case 'iso_8859-4:1988':
  30502. case 'l4':
  30503. case 'latin4':
  30504. return 'ISO-8859-4'
  30505. case 'csisolatincyrillic':
  30506. case 'cyrillic':
  30507. case 'iso-8859-5':
  30508. case 'iso-ir-144':
  30509. case 'iso8859-5':
  30510. case 'iso88595':
  30511. case 'iso_8859-5':
  30512. case 'iso_8859-5:1988':
  30513. return 'ISO-8859-5'
  30514. case 'arabic':
  30515. case 'asmo-708':
  30516. case 'csiso88596e':
  30517. case 'csiso88596i':
  30518. case 'csisolatinarabic':
  30519. case 'ecma-114':
  30520. case 'iso-8859-6':
  30521. case 'iso-8859-6-e':
  30522. case 'iso-8859-6-i':
  30523. case 'iso-ir-127':
  30524. case 'iso8859-6':
  30525. case 'iso88596':
  30526. case 'iso_8859-6':
  30527. case 'iso_8859-6:1987':
  30528. return 'ISO-8859-6'
  30529. case 'csisolatingreek':
  30530. case 'ecma-118':
  30531. case 'elot_928':
  30532. case 'greek':
  30533. case 'greek8':
  30534. case 'iso-8859-7':
  30535. case 'iso-ir-126':
  30536. case 'iso8859-7':
  30537. case 'iso88597':
  30538. case 'iso_8859-7':
  30539. case 'iso_8859-7:1987':
  30540. case 'sun_eu_greek':
  30541. return 'ISO-8859-7'
  30542. case 'csiso88598e':
  30543. case 'csisolatinhebrew':
  30544. case 'hebrew':
  30545. case 'iso-8859-8':
  30546. case 'iso-8859-8-e':
  30547. case 'iso-ir-138':
  30548. case 'iso8859-8':
  30549. case 'iso88598':
  30550. case 'iso_8859-8':
  30551. case 'iso_8859-8:1988':
  30552. case 'visual':
  30553. return 'ISO-8859-8'
  30554. case 'csiso88598i':
  30555. case 'iso-8859-8-i':
  30556. case 'logical':
  30557. return 'ISO-8859-8-I'
  30558. case 'csisolatin6':
  30559. case 'iso-8859-10':
  30560. case 'iso-ir-157':
  30561. case 'iso8859-10':
  30562. case 'iso885910':
  30563. case 'l6':
  30564. case 'latin6':
  30565. return 'ISO-8859-10'
  30566. case 'iso-8859-13':
  30567. case 'iso8859-13':
  30568. case 'iso885913':
  30569. return 'ISO-8859-13'
  30570. case 'iso-8859-14':
  30571. case 'iso8859-14':
  30572. case 'iso885914':
  30573. return 'ISO-8859-14'
  30574. case 'csisolatin9':
  30575. case 'iso-8859-15':
  30576. case 'iso8859-15':
  30577. case 'iso885915':
  30578. case 'iso_8859-15':
  30579. case 'l9':
  30580. return 'ISO-8859-15'
  30581. case 'iso-8859-16':
  30582. return 'ISO-8859-16'
  30583. case 'cskoi8r':
  30584. case 'koi':
  30585. case 'koi8':
  30586. case 'koi8-r':
  30587. case 'koi8_r':
  30588. return 'KOI8-R'
  30589. case 'koi8-ru':
  30590. case 'koi8-u':
  30591. return 'KOI8-U'
  30592. case 'csmacintosh':
  30593. case 'mac':
  30594. case 'macintosh':
  30595. case 'x-mac-roman':
  30596. return 'macintosh'
  30597. case 'iso-8859-11':
  30598. case 'iso8859-11':
  30599. case 'iso885911':
  30600. case 'tis-620':
  30601. case 'windows-874':
  30602. return 'windows-874'
  30603. case 'cp1250':
  30604. case 'windows-1250':
  30605. case 'x-cp1250':
  30606. return 'windows-1250'
  30607. case 'cp1251':
  30608. case 'windows-1251':
  30609. case 'x-cp1251':
  30610. return 'windows-1251'
  30611. case 'ansi_x3.4-1968':
  30612. case 'ascii':
  30613. case 'cp1252':
  30614. case 'cp819':
  30615. case 'csisolatin1':
  30616. case 'ibm819':
  30617. case 'iso-8859-1':
  30618. case 'iso-ir-100':
  30619. case 'iso8859-1':
  30620. case 'iso88591':
  30621. case 'iso_8859-1':
  30622. case 'iso_8859-1:1987':
  30623. case 'l1':
  30624. case 'latin1':
  30625. case 'us-ascii':
  30626. case 'windows-1252':
  30627. case 'x-cp1252':
  30628. return 'windows-1252'
  30629. case 'cp1253':
  30630. case 'windows-1253':
  30631. case 'x-cp1253':
  30632. return 'windows-1253'
  30633. case 'cp1254':
  30634. case 'csisolatin5':
  30635. case 'iso-8859-9':
  30636. case 'iso-ir-148':
  30637. case 'iso8859-9':
  30638. case 'iso88599':
  30639. case 'iso_8859-9':
  30640. case 'iso_8859-9:1989':
  30641. case 'l5':
  30642. case 'latin5':
  30643. case 'windows-1254':
  30644. case 'x-cp1254':
  30645. return 'windows-1254'
  30646. case 'cp1255':
  30647. case 'windows-1255':
  30648. case 'x-cp1255':
  30649. return 'windows-1255'
  30650. case 'cp1256':
  30651. case 'windows-1256':
  30652. case 'x-cp1256':
  30653. return 'windows-1256'
  30654. case 'cp1257':
  30655. case 'windows-1257':
  30656. case 'x-cp1257':
  30657. return 'windows-1257'
  30658. case 'cp1258':
  30659. case 'windows-1258':
  30660. case 'x-cp1258':
  30661. return 'windows-1258'
  30662. case 'x-mac-cyrillic':
  30663. case 'x-mac-ukrainian':
  30664. return 'x-mac-cyrillic'
  30665. case 'chinese':
  30666. case 'csgb2312':
  30667. case 'csiso58gb231280':
  30668. case 'gb2312':
  30669. case 'gb_2312':
  30670. case 'gb_2312-80':
  30671. case 'gbk':
  30672. case 'iso-ir-58':
  30673. case 'x-gbk':
  30674. return 'GBK'
  30675. case 'gb18030':
  30676. return 'gb18030'
  30677. case 'big5':
  30678. case 'big5-hkscs':
  30679. case 'cn-big5':
  30680. case 'csbig5':
  30681. case 'x-x-big5':
  30682. return 'Big5'
  30683. case 'cseucpkdfmtjapanese':
  30684. case 'euc-jp':
  30685. case 'x-euc-jp':
  30686. return 'EUC-JP'
  30687. case 'csiso2022jp':
  30688. case 'iso-2022-jp':
  30689. return 'ISO-2022-JP'
  30690. case 'csshiftjis':
  30691. case 'ms932':
  30692. case 'ms_kanji':
  30693. case 'shift-jis':
  30694. case 'shift_jis':
  30695. case 'sjis':
  30696. case 'windows-31j':
  30697. case 'x-sjis':
  30698. return 'Shift_JIS'
  30699. case 'cseuckr':
  30700. case 'csksc56011987':
  30701. case 'euc-kr':
  30702. case 'iso-ir-149':
  30703. case 'korean':
  30704. case 'ks_c_5601-1987':
  30705. case 'ks_c_5601-1989':
  30706. case 'ksc5601':
  30707. case 'ksc_5601':
  30708. case 'windows-949':
  30709. return 'EUC-KR'
  30710. case 'csiso2022kr':
  30711. case 'hz-gb-2312':
  30712. case 'iso-2022-cn':
  30713. case 'iso-2022-cn-ext':
  30714. case 'iso-2022-kr':
  30715. case 'replacement':
  30716. return 'replacement'
  30717. case 'unicodefffe':
  30718. case 'utf-16be':
  30719. return 'UTF-16BE'
  30720. case 'csunicode':
  30721. case 'iso-10646-ucs-2':
  30722. case 'ucs-2':
  30723. case 'unicode':
  30724. case 'unicodefeff':
  30725. case 'utf-16':
  30726. case 'utf-16le':
  30727. return 'UTF-16LE'
  30728. case 'x-user-defined':
  30729. return 'x-user-defined'
  30730. default: return 'failure'
  30731. }
  30732. }
  30733. module.exports = {
  30734. getEncoding
  30735. }
  30736. /***/ }),
  30737. /***/ 1446:
  30738. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  30739. "use strict";
  30740. const {
  30741. staticPropertyDescriptors,
  30742. readOperation,
  30743. fireAProgressEvent
  30744. } = __nccwpck_require__(7530)
  30745. const {
  30746. kState,
  30747. kError,
  30748. kResult,
  30749. kEvents,
  30750. kAborted
  30751. } = __nccwpck_require__(9054)
  30752. const { webidl } = __nccwpck_require__(1744)
  30753. const { kEnumerableProperty } = __nccwpck_require__(3983)
  30754. class FileReader extends EventTarget {
  30755. constructor () {
  30756. super()
  30757. this[kState] = 'empty'
  30758. this[kResult] = null
  30759. this[kError] = null
  30760. this[kEvents] = {
  30761. loadend: null,
  30762. error: null,
  30763. abort: null,
  30764. load: null,
  30765. progress: null,
  30766. loadstart: null
  30767. }
  30768. }
  30769. /**
  30770. * @see https://w3c.github.io/FileAPI/#dfn-readAsArrayBuffer
  30771. * @param {import('buffer').Blob} blob
  30772. */
  30773. readAsArrayBuffer (blob) {
  30774. webidl.brandCheck(this, FileReader)
  30775. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsArrayBuffer' })
  30776. blob = webidl.converters.Blob(blob, { strict: false })
  30777. // The readAsArrayBuffer(blob) method, when invoked,
  30778. // must initiate a read operation for blob with ArrayBuffer.
  30779. readOperation(this, blob, 'ArrayBuffer')
  30780. }
  30781. /**
  30782. * @see https://w3c.github.io/FileAPI/#readAsBinaryString
  30783. * @param {import('buffer').Blob} blob
  30784. */
  30785. readAsBinaryString (blob) {
  30786. webidl.brandCheck(this, FileReader)
  30787. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsBinaryString' })
  30788. blob = webidl.converters.Blob(blob, { strict: false })
  30789. // The readAsBinaryString(blob) method, when invoked,
  30790. // must initiate a read operation for blob with BinaryString.
  30791. readOperation(this, blob, 'BinaryString')
  30792. }
  30793. /**
  30794. * @see https://w3c.github.io/FileAPI/#readAsDataText
  30795. * @param {import('buffer').Blob} blob
  30796. * @param {string?} encoding
  30797. */
  30798. readAsText (blob, encoding = undefined) {
  30799. webidl.brandCheck(this, FileReader)
  30800. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsText' })
  30801. blob = webidl.converters.Blob(blob, { strict: false })
  30802. if (encoding !== undefined) {
  30803. encoding = webidl.converters.DOMString(encoding)
  30804. }
  30805. // The readAsText(blob, encoding) method, when invoked,
  30806. // must initiate a read operation for blob with Text and encoding.
  30807. readOperation(this, blob, 'Text', encoding)
  30808. }
  30809. /**
  30810. * @see https://w3c.github.io/FileAPI/#dfn-readAsDataURL
  30811. * @param {import('buffer').Blob} blob
  30812. */
  30813. readAsDataURL (blob) {
  30814. webidl.brandCheck(this, FileReader)
  30815. webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsDataURL' })
  30816. blob = webidl.converters.Blob(blob, { strict: false })
  30817. // The readAsDataURL(blob) method, when invoked, must
  30818. // initiate a read operation for blob with DataURL.
  30819. readOperation(this, blob, 'DataURL')
  30820. }
  30821. /**
  30822. * @see https://w3c.github.io/FileAPI/#dfn-abort
  30823. */
  30824. abort () {
  30825. // 1. If this's state is "empty" or if this's state is
  30826. // "done" set this's result to null and terminate
  30827. // this algorithm.
  30828. if (this[kState] === 'empty' || this[kState] === 'done') {
  30829. this[kResult] = null
  30830. return
  30831. }
  30832. // 2. If this's state is "loading" set this's state to
  30833. // "done" and set this's result to null.
  30834. if (this[kState] === 'loading') {
  30835. this[kState] = 'done'
  30836. this[kResult] = null
  30837. }
  30838. // 3. If there are any tasks from this on the file reading
  30839. // task source in an affiliated task queue, then remove
  30840. // those tasks from that task queue.
  30841. this[kAborted] = true
  30842. // 4. Terminate the algorithm for the read method being processed.
  30843. // TODO
  30844. // 5. Fire a progress event called abort at this.
  30845. fireAProgressEvent('abort', this)
  30846. // 6. If this's state is not "loading", fire a progress
  30847. // event called loadend at this.
  30848. if (this[kState] !== 'loading') {
  30849. fireAProgressEvent('loadend', this)
  30850. }
  30851. }
  30852. /**
  30853. * @see https://w3c.github.io/FileAPI/#dom-filereader-readystate
  30854. */
  30855. get readyState () {
  30856. webidl.brandCheck(this, FileReader)
  30857. switch (this[kState]) {
  30858. case 'empty': return this.EMPTY
  30859. case 'loading': return this.LOADING
  30860. case 'done': return this.DONE
  30861. }
  30862. }
  30863. /**
  30864. * @see https://w3c.github.io/FileAPI/#dom-filereader-result
  30865. */
  30866. get result () {
  30867. webidl.brandCheck(this, FileReader)
  30868. // The result attribute’s getter, when invoked, must return
  30869. // this's result.
  30870. return this[kResult]
  30871. }
  30872. /**
  30873. * @see https://w3c.github.io/FileAPI/#dom-filereader-error
  30874. */
  30875. get error () {
  30876. webidl.brandCheck(this, FileReader)
  30877. // The error attribute’s getter, when invoked, must return
  30878. // this's error.
  30879. return this[kError]
  30880. }
  30881. get onloadend () {
  30882. webidl.brandCheck(this, FileReader)
  30883. return this[kEvents].loadend
  30884. }
  30885. set onloadend (fn) {
  30886. webidl.brandCheck(this, FileReader)
  30887. if (this[kEvents].loadend) {
  30888. this.removeEventListener('loadend', this[kEvents].loadend)
  30889. }
  30890. if (typeof fn === 'function') {
  30891. this[kEvents].loadend = fn
  30892. this.addEventListener('loadend', fn)
  30893. } else {
  30894. this[kEvents].loadend = null
  30895. }
  30896. }
  30897. get onerror () {
  30898. webidl.brandCheck(this, FileReader)
  30899. return this[kEvents].error
  30900. }
  30901. set onerror (fn) {
  30902. webidl.brandCheck(this, FileReader)
  30903. if (this[kEvents].error) {
  30904. this.removeEventListener('error', this[kEvents].error)
  30905. }
  30906. if (typeof fn === 'function') {
  30907. this[kEvents].error = fn
  30908. this.addEventListener('error', fn)
  30909. } else {
  30910. this[kEvents].error = null
  30911. }
  30912. }
  30913. get onloadstart () {
  30914. webidl.brandCheck(this, FileReader)
  30915. return this[kEvents].loadstart
  30916. }
  30917. set onloadstart (fn) {
  30918. webidl.brandCheck(this, FileReader)
  30919. if (this[kEvents].loadstart) {
  30920. this.removeEventListener('loadstart', this[kEvents].loadstart)
  30921. }
  30922. if (typeof fn === 'function') {
  30923. this[kEvents].loadstart = fn
  30924. this.addEventListener('loadstart', fn)
  30925. } else {
  30926. this[kEvents].loadstart = null
  30927. }
  30928. }
  30929. get onprogress () {
  30930. webidl.brandCheck(this, FileReader)
  30931. return this[kEvents].progress
  30932. }
  30933. set onprogress (fn) {
  30934. webidl.brandCheck(this, FileReader)
  30935. if (this[kEvents].progress) {
  30936. this.removeEventListener('progress', this[kEvents].progress)
  30937. }
  30938. if (typeof fn === 'function') {
  30939. this[kEvents].progress = fn
  30940. this.addEventListener('progress', fn)
  30941. } else {
  30942. this[kEvents].progress = null
  30943. }
  30944. }
  30945. get onload () {
  30946. webidl.brandCheck(this, FileReader)
  30947. return this[kEvents].load
  30948. }
  30949. set onload (fn) {
  30950. webidl.brandCheck(this, FileReader)
  30951. if (this[kEvents].load) {
  30952. this.removeEventListener('load', this[kEvents].load)
  30953. }
  30954. if (typeof fn === 'function') {
  30955. this[kEvents].load = fn
  30956. this.addEventListener('load', fn)
  30957. } else {
  30958. this[kEvents].load = null
  30959. }
  30960. }
  30961. get onabort () {
  30962. webidl.brandCheck(this, FileReader)
  30963. return this[kEvents].abort
  30964. }
  30965. set onabort (fn) {
  30966. webidl.brandCheck(this, FileReader)
  30967. if (this[kEvents].abort) {
  30968. this.removeEventListener('abort', this[kEvents].abort)
  30969. }
  30970. if (typeof fn === 'function') {
  30971. this[kEvents].abort = fn
  30972. this.addEventListener('abort', fn)
  30973. } else {
  30974. this[kEvents].abort = null
  30975. }
  30976. }
  30977. }
  30978. // https://w3c.github.io/FileAPI/#dom-filereader-empty
  30979. FileReader.EMPTY = FileReader.prototype.EMPTY = 0
  30980. // https://w3c.github.io/FileAPI/#dom-filereader-loading
  30981. FileReader.LOADING = FileReader.prototype.LOADING = 1
  30982. // https://w3c.github.io/FileAPI/#dom-filereader-done
  30983. FileReader.DONE = FileReader.prototype.DONE = 2
  30984. Object.defineProperties(FileReader.prototype, {
  30985. EMPTY: staticPropertyDescriptors,
  30986. LOADING: staticPropertyDescriptors,
  30987. DONE: staticPropertyDescriptors,
  30988. readAsArrayBuffer: kEnumerableProperty,
  30989. readAsBinaryString: kEnumerableProperty,
  30990. readAsText: kEnumerableProperty,
  30991. readAsDataURL: kEnumerableProperty,
  30992. abort: kEnumerableProperty,
  30993. readyState: kEnumerableProperty,
  30994. result: kEnumerableProperty,
  30995. error: kEnumerableProperty,
  30996. onloadstart: kEnumerableProperty,
  30997. onprogress: kEnumerableProperty,
  30998. onload: kEnumerableProperty,
  30999. onabort: kEnumerableProperty,
  31000. onerror: kEnumerableProperty,
  31001. onloadend: kEnumerableProperty,
  31002. [Symbol.toStringTag]: {
  31003. value: 'FileReader',
  31004. writable: false,
  31005. enumerable: false,
  31006. configurable: true
  31007. }
  31008. })
  31009. Object.defineProperties(FileReader, {
  31010. EMPTY: staticPropertyDescriptors,
  31011. LOADING: staticPropertyDescriptors,
  31012. DONE: staticPropertyDescriptors
  31013. })
  31014. module.exports = {
  31015. FileReader
  31016. }
  31017. /***/ }),
  31018. /***/ 5504:
  31019. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31020. "use strict";
  31021. const { webidl } = __nccwpck_require__(1744)
  31022. const kState = Symbol('ProgressEvent state')
  31023. /**
  31024. * @see https://xhr.spec.whatwg.org/#progressevent
  31025. */
  31026. class ProgressEvent extends Event {
  31027. constructor (type, eventInitDict = {}) {
  31028. type = webidl.converters.DOMString(type)
  31029. eventInitDict = webidl.converters.ProgressEventInit(eventInitDict ?? {})
  31030. super(type, eventInitDict)
  31031. this[kState] = {
  31032. lengthComputable: eventInitDict.lengthComputable,
  31033. loaded: eventInitDict.loaded,
  31034. total: eventInitDict.total
  31035. }
  31036. }
  31037. get lengthComputable () {
  31038. webidl.brandCheck(this, ProgressEvent)
  31039. return this[kState].lengthComputable
  31040. }
  31041. get loaded () {
  31042. webidl.brandCheck(this, ProgressEvent)
  31043. return this[kState].loaded
  31044. }
  31045. get total () {
  31046. webidl.brandCheck(this, ProgressEvent)
  31047. return this[kState].total
  31048. }
  31049. }
  31050. webidl.converters.ProgressEventInit = webidl.dictionaryConverter([
  31051. {
  31052. key: 'lengthComputable',
  31053. converter: webidl.converters.boolean,
  31054. defaultValue: false
  31055. },
  31056. {
  31057. key: 'loaded',
  31058. converter: webidl.converters['unsigned long long'],
  31059. defaultValue: 0
  31060. },
  31061. {
  31062. key: 'total',
  31063. converter: webidl.converters['unsigned long long'],
  31064. defaultValue: 0
  31065. },
  31066. {
  31067. key: 'bubbles',
  31068. converter: webidl.converters.boolean,
  31069. defaultValue: false
  31070. },
  31071. {
  31072. key: 'cancelable',
  31073. converter: webidl.converters.boolean,
  31074. defaultValue: false
  31075. },
  31076. {
  31077. key: 'composed',
  31078. converter: webidl.converters.boolean,
  31079. defaultValue: false
  31080. }
  31081. ])
  31082. module.exports = {
  31083. ProgressEvent
  31084. }
  31085. /***/ }),
  31086. /***/ 9054:
  31087. /***/ ((module) => {
  31088. "use strict";
  31089. module.exports = {
  31090. kState: Symbol('FileReader state'),
  31091. kResult: Symbol('FileReader result'),
  31092. kError: Symbol('FileReader error'),
  31093. kLastProgressEventFired: Symbol('FileReader last progress event fired timestamp'),
  31094. kEvents: Symbol('FileReader events'),
  31095. kAborted: Symbol('FileReader aborted')
  31096. }
  31097. /***/ }),
  31098. /***/ 7530:
  31099. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31100. "use strict";
  31101. const {
  31102. kState,
  31103. kError,
  31104. kResult,
  31105. kAborted,
  31106. kLastProgressEventFired
  31107. } = __nccwpck_require__(9054)
  31108. const { ProgressEvent } = __nccwpck_require__(5504)
  31109. const { getEncoding } = __nccwpck_require__(4854)
  31110. const { DOMException } = __nccwpck_require__(1037)
  31111. const { serializeAMimeType, parseMIMEType } = __nccwpck_require__(685)
  31112. const { types } = __nccwpck_require__(3837)
  31113. const { StringDecoder } = __nccwpck_require__(1576)
  31114. const { btoa } = __nccwpck_require__(4300)
  31115. /** @type {PropertyDescriptor} */
  31116. const staticPropertyDescriptors = {
  31117. enumerable: true,
  31118. writable: false,
  31119. configurable: false
  31120. }
  31121. /**
  31122. * @see https://w3c.github.io/FileAPI/#readOperation
  31123. * @param {import('./filereader').FileReader} fr
  31124. * @param {import('buffer').Blob} blob
  31125. * @param {string} type
  31126. * @param {string?} encodingName
  31127. */
  31128. function readOperation (fr, blob, type, encodingName) {
  31129. // 1. If fr’s state is "loading", throw an InvalidStateError
  31130. // DOMException.
  31131. if (fr[kState] === 'loading') {
  31132. throw new DOMException('Invalid state', 'InvalidStateError')
  31133. }
  31134. // 2. Set fr’s state to "loading".
  31135. fr[kState] = 'loading'
  31136. // 3. Set fr’s result to null.
  31137. fr[kResult] = null
  31138. // 4. Set fr’s error to null.
  31139. fr[kError] = null
  31140. // 5. Let stream be the result of calling get stream on blob.
  31141. /** @type {import('stream/web').ReadableStream} */
  31142. const stream = blob.stream()
  31143. // 6. Let reader be the result of getting a reader from stream.
  31144. const reader = stream.getReader()
  31145. // 7. Let bytes be an empty byte sequence.
  31146. /** @type {Uint8Array[]} */
  31147. const bytes = []
  31148. // 8. Let chunkPromise be the result of reading a chunk from
  31149. // stream with reader.
  31150. let chunkPromise = reader.read()
  31151. // 9. Let isFirstChunk be true.
  31152. let isFirstChunk = true
  31153. // 10. In parallel, while true:
  31154. // Note: "In parallel" just means non-blocking
  31155. // Note 2: readOperation itself cannot be async as double
  31156. // reading the body would then reject the promise, instead
  31157. // of throwing an error.
  31158. ;(async () => {
  31159. while (!fr[kAborted]) {
  31160. // 1. Wait for chunkPromise to be fulfilled or rejected.
  31161. try {
  31162. const { done, value } = await chunkPromise
  31163. // 2. If chunkPromise is fulfilled, and isFirstChunk is
  31164. // true, queue a task to fire a progress event called
  31165. // loadstart at fr.
  31166. if (isFirstChunk && !fr[kAborted]) {
  31167. queueMicrotask(() => {
  31168. fireAProgressEvent('loadstart', fr)
  31169. })
  31170. }
  31171. // 3. Set isFirstChunk to false.
  31172. isFirstChunk = false
  31173. // 4. If chunkPromise is fulfilled with an object whose
  31174. // done property is false and whose value property is
  31175. // a Uint8Array object, run these steps:
  31176. if (!done && types.isUint8Array(value)) {
  31177. // 1. Let bs be the byte sequence represented by the
  31178. // Uint8Array object.
  31179. // 2. Append bs to bytes.
  31180. bytes.push(value)
  31181. // 3. If roughly 50ms have passed since these steps
  31182. // were last invoked, queue a task to fire a
  31183. // progress event called progress at fr.
  31184. if (
  31185. (
  31186. fr[kLastProgressEventFired] === undefined ||
  31187. Date.now() - fr[kLastProgressEventFired] >= 50
  31188. ) &&
  31189. !fr[kAborted]
  31190. ) {
  31191. fr[kLastProgressEventFired] = Date.now()
  31192. queueMicrotask(() => {
  31193. fireAProgressEvent('progress', fr)
  31194. })
  31195. }
  31196. // 4. Set chunkPromise to the result of reading a
  31197. // chunk from stream with reader.
  31198. chunkPromise = reader.read()
  31199. } else if (done) {
  31200. // 5. Otherwise, if chunkPromise is fulfilled with an
  31201. // object whose done property is true, queue a task
  31202. // to run the following steps and abort this algorithm:
  31203. queueMicrotask(() => {
  31204. // 1. Set fr’s state to "done".
  31205. fr[kState] = 'done'
  31206. // 2. Let result be the result of package data given
  31207. // bytes, type, blob’s type, and encodingName.
  31208. try {
  31209. const result = packageData(bytes, type, blob.type, encodingName)
  31210. // 4. Else:
  31211. if (fr[kAborted]) {
  31212. return
  31213. }
  31214. // 1. Set fr’s result to result.
  31215. fr[kResult] = result
  31216. // 2. Fire a progress event called load at the fr.
  31217. fireAProgressEvent('load', fr)
  31218. } catch (error) {
  31219. // 3. If package data threw an exception error:
  31220. // 1. Set fr’s error to error.
  31221. fr[kError] = error
  31222. // 2. Fire a progress event called error at fr.
  31223. fireAProgressEvent('error', fr)
  31224. }
  31225. // 5. If fr’s state is not "loading", fire a progress
  31226. // event called loadend at the fr.
  31227. if (fr[kState] !== 'loading') {
  31228. fireAProgressEvent('loadend', fr)
  31229. }
  31230. })
  31231. break
  31232. }
  31233. } catch (error) {
  31234. if (fr[kAborted]) {
  31235. return
  31236. }
  31237. // 6. Otherwise, if chunkPromise is rejected with an
  31238. // error error, queue a task to run the following
  31239. // steps and abort this algorithm:
  31240. queueMicrotask(() => {
  31241. // 1. Set fr’s state to "done".
  31242. fr[kState] = 'done'
  31243. // 2. Set fr’s error to error.
  31244. fr[kError] = error
  31245. // 3. Fire a progress event called error at fr.
  31246. fireAProgressEvent('error', fr)
  31247. // 4. If fr’s state is not "loading", fire a progress
  31248. // event called loadend at fr.
  31249. if (fr[kState] !== 'loading') {
  31250. fireAProgressEvent('loadend', fr)
  31251. }
  31252. })
  31253. break
  31254. }
  31255. }
  31256. })()
  31257. }
  31258. /**
  31259. * @see https://w3c.github.io/FileAPI/#fire-a-progress-event
  31260. * @see https://dom.spec.whatwg.org/#concept-event-fire
  31261. * @param {string} e The name of the event
  31262. * @param {import('./filereader').FileReader} reader
  31263. */
  31264. function fireAProgressEvent (e, reader) {
  31265. // The progress event e does not bubble. e.bubbles must be false
  31266. // The progress event e is NOT cancelable. e.cancelable must be false
  31267. const event = new ProgressEvent(e, {
  31268. bubbles: false,
  31269. cancelable: false
  31270. })
  31271. reader.dispatchEvent(event)
  31272. }
  31273. /**
  31274. * @see https://w3c.github.io/FileAPI/#blob-package-data
  31275. * @param {Uint8Array[]} bytes
  31276. * @param {string} type
  31277. * @param {string?} mimeType
  31278. * @param {string?} encodingName
  31279. */
  31280. function packageData (bytes, type, mimeType, encodingName) {
  31281. // 1. A Blob has an associated package data algorithm, given
  31282. // bytes, a type, a optional mimeType, and a optional
  31283. // encodingName, which switches on type and runs the
  31284. // associated steps:
  31285. switch (type) {
  31286. case 'DataURL': {
  31287. // 1. Return bytes as a DataURL [RFC2397] subject to
  31288. // the considerations below:
  31289. // * Use mimeType as part of the Data URL if it is
  31290. // available in keeping with the Data URL
  31291. // specification [RFC2397].
  31292. // * If mimeType is not available return a Data URL
  31293. // without a media-type. [RFC2397].
  31294. // https://datatracker.ietf.org/doc/html/rfc2397#section-3
  31295. // dataurl := "data:" [ mediatype ] [ ";base64" ] "," data
  31296. // mediatype := [ type "/" subtype ] *( ";" parameter )
  31297. // data := *urlchar
  31298. // parameter := attribute "=" value
  31299. let dataURL = 'data:'
  31300. const parsed = parseMIMEType(mimeType || 'application/octet-stream')
  31301. if (parsed !== 'failure') {
  31302. dataURL += serializeAMimeType(parsed)
  31303. }
  31304. dataURL += ';base64,'
  31305. const decoder = new StringDecoder('latin1')
  31306. for (const chunk of bytes) {
  31307. dataURL += btoa(decoder.write(chunk))
  31308. }
  31309. dataURL += btoa(decoder.end())
  31310. return dataURL
  31311. }
  31312. case 'Text': {
  31313. // 1. Let encoding be failure
  31314. let encoding = 'failure'
  31315. // 2. If the encodingName is present, set encoding to the
  31316. // result of getting an encoding from encodingName.
  31317. if (encodingName) {
  31318. encoding = getEncoding(encodingName)
  31319. }
  31320. // 3. If encoding is failure, and mimeType is present:
  31321. if (encoding === 'failure' && mimeType) {
  31322. // 1. Let type be the result of parse a MIME type
  31323. // given mimeType.
  31324. const type = parseMIMEType(mimeType)
  31325. // 2. If type is not failure, set encoding to the result
  31326. // of getting an encoding from type’s parameters["charset"].
  31327. if (type !== 'failure') {
  31328. encoding = getEncoding(type.parameters.get('charset'))
  31329. }
  31330. }
  31331. // 4. If encoding is failure, then set encoding to UTF-8.
  31332. if (encoding === 'failure') {
  31333. encoding = 'UTF-8'
  31334. }
  31335. // 5. Decode bytes using fallback encoding encoding, and
  31336. // return the result.
  31337. return decode(bytes, encoding)
  31338. }
  31339. case 'ArrayBuffer': {
  31340. // Return a new ArrayBuffer whose contents are bytes.
  31341. const sequence = combineByteSequences(bytes)
  31342. return sequence.buffer
  31343. }
  31344. case 'BinaryString': {
  31345. // Return bytes as a binary string, in which every byte
  31346. // is represented by a code unit of equal value [0..255].
  31347. let binaryString = ''
  31348. const decoder = new StringDecoder('latin1')
  31349. for (const chunk of bytes) {
  31350. binaryString += decoder.write(chunk)
  31351. }
  31352. binaryString += decoder.end()
  31353. return binaryString
  31354. }
  31355. }
  31356. }
  31357. /**
  31358. * @see https://encoding.spec.whatwg.org/#decode
  31359. * @param {Uint8Array[]} ioQueue
  31360. * @param {string} encoding
  31361. */
  31362. function decode (ioQueue, encoding) {
  31363. const bytes = combineByteSequences(ioQueue)
  31364. // 1. Let BOMEncoding be the result of BOM sniffing ioQueue.
  31365. const BOMEncoding = BOMSniffing(bytes)
  31366. let slice = 0
  31367. // 2. If BOMEncoding is non-null:
  31368. if (BOMEncoding !== null) {
  31369. // 1. Set encoding to BOMEncoding.
  31370. encoding = BOMEncoding
  31371. // 2. Read three bytes from ioQueue, if BOMEncoding is
  31372. // UTF-8; otherwise read two bytes.
  31373. // (Do nothing with those bytes.)
  31374. slice = BOMEncoding === 'UTF-8' ? 3 : 2
  31375. }
  31376. // 3. Process a queue with an instance of encoding’s
  31377. // decoder, ioQueue, output, and "replacement".
  31378. // 4. Return output.
  31379. const sliced = bytes.slice(slice)
  31380. return new TextDecoder(encoding).decode(sliced)
  31381. }
  31382. /**
  31383. * @see https://encoding.spec.whatwg.org/#bom-sniff
  31384. * @param {Uint8Array} ioQueue
  31385. */
  31386. function BOMSniffing (ioQueue) {
  31387. // 1. Let BOM be the result of peeking 3 bytes from ioQueue,
  31388. // converted to a byte sequence.
  31389. const [a, b, c] = ioQueue
  31390. // 2. For each of the rows in the table below, starting with
  31391. // the first one and going down, if BOM starts with the
  31392. // bytes given in the first column, then return the
  31393. // encoding given in the cell in the second column of that
  31394. // row. Otherwise, return null.
  31395. if (a === 0xEF && b === 0xBB && c === 0xBF) {
  31396. return 'UTF-8'
  31397. } else if (a === 0xFE && b === 0xFF) {
  31398. return 'UTF-16BE'
  31399. } else if (a === 0xFF && b === 0xFE) {
  31400. return 'UTF-16LE'
  31401. }
  31402. return null
  31403. }
  31404. /**
  31405. * @param {Uint8Array[]} sequences
  31406. */
  31407. function combineByteSequences (sequences) {
  31408. const size = sequences.reduce((a, b) => {
  31409. return a + b.byteLength
  31410. }, 0)
  31411. let offset = 0
  31412. return sequences.reduce((a, b) => {
  31413. a.set(b, offset)
  31414. offset += b.byteLength
  31415. return a
  31416. }, new Uint8Array(size))
  31417. }
  31418. module.exports = {
  31419. staticPropertyDescriptors,
  31420. readOperation,
  31421. fireAProgressEvent
  31422. }
  31423. /***/ }),
  31424. /***/ 1892:
  31425. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31426. "use strict";
  31427. // We include a version number for the Dispatcher API. In case of breaking changes,
  31428. // this version number must be increased to avoid conflicts.
  31429. const globalDispatcher = Symbol.for('undici.globalDispatcher.1')
  31430. const { InvalidArgumentError } = __nccwpck_require__(8045)
  31431. const Agent = __nccwpck_require__(7890)
  31432. if (getGlobalDispatcher() === undefined) {
  31433. setGlobalDispatcher(new Agent())
  31434. }
  31435. function setGlobalDispatcher (agent) {
  31436. if (!agent || typeof agent.dispatch !== 'function') {
  31437. throw new InvalidArgumentError('Argument agent must implement Agent')
  31438. }
  31439. Object.defineProperty(globalThis, globalDispatcher, {
  31440. value: agent,
  31441. writable: true,
  31442. enumerable: false,
  31443. configurable: false
  31444. })
  31445. }
  31446. function getGlobalDispatcher () {
  31447. return globalThis[globalDispatcher]
  31448. }
  31449. module.exports = {
  31450. setGlobalDispatcher,
  31451. getGlobalDispatcher
  31452. }
  31453. /***/ }),
  31454. /***/ 6930:
  31455. /***/ ((module) => {
  31456. "use strict";
  31457. module.exports = class DecoratorHandler {
  31458. constructor (handler) {
  31459. this.handler = handler
  31460. }
  31461. onConnect (...args) {
  31462. return this.handler.onConnect(...args)
  31463. }
  31464. onError (...args) {
  31465. return this.handler.onError(...args)
  31466. }
  31467. onUpgrade (...args) {
  31468. return this.handler.onUpgrade(...args)
  31469. }
  31470. onHeaders (...args) {
  31471. return this.handler.onHeaders(...args)
  31472. }
  31473. onData (...args) {
  31474. return this.handler.onData(...args)
  31475. }
  31476. onComplete (...args) {
  31477. return this.handler.onComplete(...args)
  31478. }
  31479. onBodySent (...args) {
  31480. return this.handler.onBodySent(...args)
  31481. }
  31482. }
  31483. /***/ }),
  31484. /***/ 2860:
  31485. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31486. "use strict";
  31487. const util = __nccwpck_require__(3983)
  31488. const { kBodyUsed } = __nccwpck_require__(2785)
  31489. const assert = __nccwpck_require__(9491)
  31490. const { InvalidArgumentError } = __nccwpck_require__(8045)
  31491. const EE = __nccwpck_require__(2361)
  31492. const redirectableStatusCodes = [300, 301, 302, 303, 307, 308]
  31493. const kBody = Symbol('body')
  31494. class BodyAsyncIterable {
  31495. constructor (body) {
  31496. this[kBody] = body
  31497. this[kBodyUsed] = false
  31498. }
  31499. async * [Symbol.asyncIterator] () {
  31500. assert(!this[kBodyUsed], 'disturbed')
  31501. this[kBodyUsed] = true
  31502. yield * this[kBody]
  31503. }
  31504. }
  31505. class RedirectHandler {
  31506. constructor (dispatch, maxRedirections, opts, handler) {
  31507. if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
  31508. throw new InvalidArgumentError('maxRedirections must be a positive number')
  31509. }
  31510. util.validateHandler(handler, opts.method, opts.upgrade)
  31511. this.dispatch = dispatch
  31512. this.location = null
  31513. this.abort = null
  31514. this.opts = { ...opts, maxRedirections: 0 } // opts must be a copy
  31515. this.maxRedirections = maxRedirections
  31516. this.handler = handler
  31517. this.history = []
  31518. if (util.isStream(this.opts.body)) {
  31519. // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp
  31520. // so that it can be dispatched again?
  31521. // TODO (fix): Do we need 100-expect support to provide a way to do this properly?
  31522. if (util.bodyLength(this.opts.body) === 0) {
  31523. this.opts.body
  31524. .on('data', function () {
  31525. assert(false)
  31526. })
  31527. }
  31528. if (typeof this.opts.body.readableDidRead !== 'boolean') {
  31529. this.opts.body[kBodyUsed] = false
  31530. EE.prototype.on.call(this.opts.body, 'data', function () {
  31531. this[kBodyUsed] = true
  31532. })
  31533. }
  31534. } else if (this.opts.body && typeof this.opts.body.pipeTo === 'function') {
  31535. // TODO (fix): We can't access ReadableStream internal state
  31536. // to determine whether or not it has been disturbed. This is just
  31537. // a workaround.
  31538. this.opts.body = new BodyAsyncIterable(this.opts.body)
  31539. } else if (
  31540. this.opts.body &&
  31541. typeof this.opts.body !== 'string' &&
  31542. !ArrayBuffer.isView(this.opts.body) &&
  31543. util.isIterable(this.opts.body)
  31544. ) {
  31545. // TODO: Should we allow re-using iterable if !this.opts.idempotent
  31546. // or through some other flag?
  31547. this.opts.body = new BodyAsyncIterable(this.opts.body)
  31548. }
  31549. }
  31550. onConnect (abort) {
  31551. this.abort = abort
  31552. this.handler.onConnect(abort, { history: this.history })
  31553. }
  31554. onUpgrade (statusCode, headers, socket) {
  31555. this.handler.onUpgrade(statusCode, headers, socket)
  31556. }
  31557. onError (error) {
  31558. this.handler.onError(error)
  31559. }
  31560. onHeaders (statusCode, headers, resume, statusText) {
  31561. this.location = this.history.length >= this.maxRedirections || util.isDisturbed(this.opts.body)
  31562. ? null
  31563. : parseLocation(statusCode, headers)
  31564. if (this.opts.origin) {
  31565. this.history.push(new URL(this.opts.path, this.opts.origin))
  31566. }
  31567. if (!this.location) {
  31568. return this.handler.onHeaders(statusCode, headers, resume, statusText)
  31569. }
  31570. const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)))
  31571. const path = search ? `${pathname}${search}` : pathname
  31572. // Remove headers referring to the original URL.
  31573. // By default it is Host only, unless it's a 303 (see below), which removes also all Content-* headers.
  31574. // https://tools.ietf.org/html/rfc7231#section-6.4
  31575. this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin)
  31576. this.opts.path = path
  31577. this.opts.origin = origin
  31578. this.opts.maxRedirections = 0
  31579. this.opts.query = null
  31580. // https://tools.ietf.org/html/rfc7231#section-6.4.4
  31581. // In case of HTTP 303, always replace method to be either HEAD or GET
  31582. if (statusCode === 303 && this.opts.method !== 'HEAD') {
  31583. this.opts.method = 'GET'
  31584. this.opts.body = null
  31585. }
  31586. }
  31587. onData (chunk) {
  31588. if (this.location) {
  31589. /*
  31590. https://tools.ietf.org/html/rfc7231#section-6.4
  31591. TLDR: undici always ignores 3xx response bodies.
  31592. Redirection is used to serve the requested resource from another URL, so it is assumes that
  31593. no body is generated (and thus can be ignored). Even though generating a body is not prohibited.
  31594. For status 301, 302, 303, 307 and 308 (the latter from RFC 7238), the specs mention that the body usually
  31595. (which means it's optional and not mandated) contain just an hyperlink to the value of
  31596. the Location response header, so the body can be ignored safely.
  31597. For status 300, which is "Multiple Choices", the spec mentions both generating a Location
  31598. response header AND a response body with the other possible location to follow.
  31599. Since the spec explicitily chooses not to specify a format for such body and leave it to
  31600. servers and browsers implementors, we ignore the body as there is no specified way to eventually parse it.
  31601. */
  31602. } else {
  31603. return this.handler.onData(chunk)
  31604. }
  31605. }
  31606. onComplete (trailers) {
  31607. if (this.location) {
  31608. /*
  31609. https://tools.ietf.org/html/rfc7231#section-6.4
  31610. TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections
  31611. and neither are useful if present.
  31612. See comment on onData method above for more detailed informations.
  31613. */
  31614. this.location = null
  31615. this.abort = null
  31616. this.dispatch(this.opts, this)
  31617. } else {
  31618. this.handler.onComplete(trailers)
  31619. }
  31620. }
  31621. onBodySent (chunk) {
  31622. if (this.handler.onBodySent) {
  31623. this.handler.onBodySent(chunk)
  31624. }
  31625. }
  31626. }
  31627. function parseLocation (statusCode, headers) {
  31628. if (redirectableStatusCodes.indexOf(statusCode) === -1) {
  31629. return null
  31630. }
  31631. for (let i = 0; i < headers.length; i += 2) {
  31632. if (headers[i].toString().toLowerCase() === 'location') {
  31633. return headers[i + 1]
  31634. }
  31635. }
  31636. }
  31637. // https://tools.ietf.org/html/rfc7231#section-6.4.4
  31638. function shouldRemoveHeader (header, removeContent, unknownOrigin) {
  31639. return (
  31640. (header.length === 4 && header.toString().toLowerCase() === 'host') ||
  31641. (removeContent && header.toString().toLowerCase().indexOf('content-') === 0) ||
  31642. (unknownOrigin && header.length === 13 && header.toString().toLowerCase() === 'authorization') ||
  31643. (unknownOrigin && header.length === 6 && header.toString().toLowerCase() === 'cookie')
  31644. )
  31645. }
  31646. // https://tools.ietf.org/html/rfc7231#section-6.4
  31647. function cleanRequestHeaders (headers, removeContent, unknownOrigin) {
  31648. const ret = []
  31649. if (Array.isArray(headers)) {
  31650. for (let i = 0; i < headers.length; i += 2) {
  31651. if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) {
  31652. ret.push(headers[i], headers[i + 1])
  31653. }
  31654. }
  31655. } else if (headers && typeof headers === 'object') {
  31656. for (const key of Object.keys(headers)) {
  31657. if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) {
  31658. ret.push(key, headers[key])
  31659. }
  31660. }
  31661. } else {
  31662. assert(headers == null, 'headers must be an object or an array')
  31663. }
  31664. return ret
  31665. }
  31666. module.exports = RedirectHandler
  31667. /***/ }),
  31668. /***/ 8861:
  31669. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31670. "use strict";
  31671. const RedirectHandler = __nccwpck_require__(2860)
  31672. function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {
  31673. return (dispatch) => {
  31674. return function Intercept (opts, handler) {
  31675. const { maxRedirections = defaultMaxRedirections } = opts
  31676. if (!maxRedirections) {
  31677. return dispatch(opts, handler)
  31678. }
  31679. const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler)
  31680. opts = { ...opts, maxRedirections: 0 } // Stop sub dispatcher from also redirecting.
  31681. return dispatch(opts, redirectHandler)
  31682. }
  31683. }
  31684. }
  31685. module.exports = createRedirectInterceptor
  31686. /***/ }),
  31687. /***/ 953:
  31688. /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
  31689. "use strict";
  31690. Object.defineProperty(exports, "__esModule", ({ value: true }));
  31691. exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
  31692. const utils_1 = __nccwpck_require__(1891);
  31693. // C headers
  31694. var ERROR;
  31695. (function (ERROR) {
  31696. ERROR[ERROR["OK"] = 0] = "OK";
  31697. ERROR[ERROR["INTERNAL"] = 1] = "INTERNAL";
  31698. ERROR[ERROR["STRICT"] = 2] = "STRICT";
  31699. ERROR[ERROR["LF_EXPECTED"] = 3] = "LF_EXPECTED";
  31700. ERROR[ERROR["UNEXPECTED_CONTENT_LENGTH"] = 4] = "UNEXPECTED_CONTENT_LENGTH";
  31701. ERROR[ERROR["CLOSED_CONNECTION"] = 5] = "CLOSED_CONNECTION";
  31702. ERROR[ERROR["INVALID_METHOD"] = 6] = "INVALID_METHOD";
  31703. ERROR[ERROR["INVALID_URL"] = 7] = "INVALID_URL";
  31704. ERROR[ERROR["INVALID_CONSTANT"] = 8] = "INVALID_CONSTANT";
  31705. ERROR[ERROR["INVALID_VERSION"] = 9] = "INVALID_VERSION";
  31706. ERROR[ERROR["INVALID_HEADER_TOKEN"] = 10] = "INVALID_HEADER_TOKEN";
  31707. ERROR[ERROR["INVALID_CONTENT_LENGTH"] = 11] = "INVALID_CONTENT_LENGTH";
  31708. ERROR[ERROR["INVALID_CHUNK_SIZE"] = 12] = "INVALID_CHUNK_SIZE";
  31709. ERROR[ERROR["INVALID_STATUS"] = 13] = "INVALID_STATUS";
  31710. ERROR[ERROR["INVALID_EOF_STATE"] = 14] = "INVALID_EOF_STATE";
  31711. ERROR[ERROR["INVALID_TRANSFER_ENCODING"] = 15] = "INVALID_TRANSFER_ENCODING";
  31712. ERROR[ERROR["CB_MESSAGE_BEGIN"] = 16] = "CB_MESSAGE_BEGIN";
  31713. ERROR[ERROR["CB_HEADERS_COMPLETE"] = 17] = "CB_HEADERS_COMPLETE";
  31714. ERROR[ERROR["CB_MESSAGE_COMPLETE"] = 18] = "CB_MESSAGE_COMPLETE";
  31715. ERROR[ERROR["CB_CHUNK_HEADER"] = 19] = "CB_CHUNK_HEADER";
  31716. ERROR[ERROR["CB_CHUNK_COMPLETE"] = 20] = "CB_CHUNK_COMPLETE";
  31717. ERROR[ERROR["PAUSED"] = 21] = "PAUSED";
  31718. ERROR[ERROR["PAUSED_UPGRADE"] = 22] = "PAUSED_UPGRADE";
  31719. ERROR[ERROR["PAUSED_H2_UPGRADE"] = 23] = "PAUSED_H2_UPGRADE";
  31720. ERROR[ERROR["USER"] = 24] = "USER";
  31721. })(ERROR = exports.ERROR || (exports.ERROR = {}));
  31722. var TYPE;
  31723. (function (TYPE) {
  31724. TYPE[TYPE["BOTH"] = 0] = "BOTH";
  31725. TYPE[TYPE["REQUEST"] = 1] = "REQUEST";
  31726. TYPE[TYPE["RESPONSE"] = 2] = "RESPONSE";
  31727. })(TYPE = exports.TYPE || (exports.TYPE = {}));
  31728. var FLAGS;
  31729. (function (FLAGS) {
  31730. FLAGS[FLAGS["CONNECTION_KEEP_ALIVE"] = 1] = "CONNECTION_KEEP_ALIVE";
  31731. FLAGS[FLAGS["CONNECTION_CLOSE"] = 2] = "CONNECTION_CLOSE";
  31732. FLAGS[FLAGS["CONNECTION_UPGRADE"] = 4] = "CONNECTION_UPGRADE";
  31733. FLAGS[FLAGS["CHUNKED"] = 8] = "CHUNKED";
  31734. FLAGS[FLAGS["UPGRADE"] = 16] = "UPGRADE";
  31735. FLAGS[FLAGS["CONTENT_LENGTH"] = 32] = "CONTENT_LENGTH";
  31736. FLAGS[FLAGS["SKIPBODY"] = 64] = "SKIPBODY";
  31737. FLAGS[FLAGS["TRAILING"] = 128] = "TRAILING";
  31738. // 1 << 8 is unused
  31739. FLAGS[FLAGS["TRANSFER_ENCODING"] = 512] = "TRANSFER_ENCODING";
  31740. })(FLAGS = exports.FLAGS || (exports.FLAGS = {}));
  31741. var LENIENT_FLAGS;
  31742. (function (LENIENT_FLAGS) {
  31743. LENIENT_FLAGS[LENIENT_FLAGS["HEADERS"] = 1] = "HEADERS";
  31744. LENIENT_FLAGS[LENIENT_FLAGS["CHUNKED_LENGTH"] = 2] = "CHUNKED_LENGTH";
  31745. LENIENT_FLAGS[LENIENT_FLAGS["KEEP_ALIVE"] = 4] = "KEEP_ALIVE";
  31746. })(LENIENT_FLAGS = exports.LENIENT_FLAGS || (exports.LENIENT_FLAGS = {}));
  31747. var METHODS;
  31748. (function (METHODS) {
  31749. METHODS[METHODS["DELETE"] = 0] = "DELETE";
  31750. METHODS[METHODS["GET"] = 1] = "GET";
  31751. METHODS[METHODS["HEAD"] = 2] = "HEAD";
  31752. METHODS[METHODS["POST"] = 3] = "POST";
  31753. METHODS[METHODS["PUT"] = 4] = "PUT";
  31754. /* pathological */
  31755. METHODS[METHODS["CONNECT"] = 5] = "CONNECT";
  31756. METHODS[METHODS["OPTIONS"] = 6] = "OPTIONS";
  31757. METHODS[METHODS["TRACE"] = 7] = "TRACE";
  31758. /* WebDAV */
  31759. METHODS[METHODS["COPY"] = 8] = "COPY";
  31760. METHODS[METHODS["LOCK"] = 9] = "LOCK";
  31761. METHODS[METHODS["MKCOL"] = 10] = "MKCOL";
  31762. METHODS[METHODS["MOVE"] = 11] = "MOVE";
  31763. METHODS[METHODS["PROPFIND"] = 12] = "PROPFIND";
  31764. METHODS[METHODS["PROPPATCH"] = 13] = "PROPPATCH";
  31765. METHODS[METHODS["SEARCH"] = 14] = "SEARCH";
  31766. METHODS[METHODS["UNLOCK"] = 15] = "UNLOCK";
  31767. METHODS[METHODS["BIND"] = 16] = "BIND";
  31768. METHODS[METHODS["REBIND"] = 17] = "REBIND";
  31769. METHODS[METHODS["UNBIND"] = 18] = "UNBIND";
  31770. METHODS[METHODS["ACL"] = 19] = "ACL";
  31771. /* subversion */
  31772. METHODS[METHODS["REPORT"] = 20] = "REPORT";
  31773. METHODS[METHODS["MKACTIVITY"] = 21] = "MKACTIVITY";
  31774. METHODS[METHODS["CHECKOUT"] = 22] = "CHECKOUT";
  31775. METHODS[METHODS["MERGE"] = 23] = "MERGE";
  31776. /* upnp */
  31777. METHODS[METHODS["M-SEARCH"] = 24] = "M-SEARCH";
  31778. METHODS[METHODS["NOTIFY"] = 25] = "NOTIFY";
  31779. METHODS[METHODS["SUBSCRIBE"] = 26] = "SUBSCRIBE";
  31780. METHODS[METHODS["UNSUBSCRIBE"] = 27] = "UNSUBSCRIBE";
  31781. /* RFC-5789 */
  31782. METHODS[METHODS["PATCH"] = 28] = "PATCH";
  31783. METHODS[METHODS["PURGE"] = 29] = "PURGE";
  31784. /* CalDAV */
  31785. METHODS[METHODS["MKCALENDAR"] = 30] = "MKCALENDAR";
  31786. /* RFC-2068, section 19.6.1.2 */
  31787. METHODS[METHODS["LINK"] = 31] = "LINK";
  31788. METHODS[METHODS["UNLINK"] = 32] = "UNLINK";
  31789. /* icecast */
  31790. METHODS[METHODS["SOURCE"] = 33] = "SOURCE";
  31791. /* RFC-7540, section 11.6 */
  31792. METHODS[METHODS["PRI"] = 34] = "PRI";
  31793. /* RFC-2326 RTSP */
  31794. METHODS[METHODS["DESCRIBE"] = 35] = "DESCRIBE";
  31795. METHODS[METHODS["ANNOUNCE"] = 36] = "ANNOUNCE";
  31796. METHODS[METHODS["SETUP"] = 37] = "SETUP";
  31797. METHODS[METHODS["PLAY"] = 38] = "PLAY";
  31798. METHODS[METHODS["PAUSE"] = 39] = "PAUSE";
  31799. METHODS[METHODS["TEARDOWN"] = 40] = "TEARDOWN";
  31800. METHODS[METHODS["GET_PARAMETER"] = 41] = "GET_PARAMETER";
  31801. METHODS[METHODS["SET_PARAMETER"] = 42] = "SET_PARAMETER";
  31802. METHODS[METHODS["REDIRECT"] = 43] = "REDIRECT";
  31803. METHODS[METHODS["RECORD"] = 44] = "RECORD";
  31804. /* RAOP */
  31805. METHODS[METHODS["FLUSH"] = 45] = "FLUSH";
  31806. })(METHODS = exports.METHODS || (exports.METHODS = {}));
  31807. exports.METHODS_HTTP = [
  31808. METHODS.DELETE,
  31809. METHODS.GET,
  31810. METHODS.HEAD,
  31811. METHODS.POST,
  31812. METHODS.PUT,
  31813. METHODS.CONNECT,
  31814. METHODS.OPTIONS,
  31815. METHODS.TRACE,
  31816. METHODS.COPY,
  31817. METHODS.LOCK,
  31818. METHODS.MKCOL,
  31819. METHODS.MOVE,
  31820. METHODS.PROPFIND,
  31821. METHODS.PROPPATCH,
  31822. METHODS.SEARCH,
  31823. METHODS.UNLOCK,
  31824. METHODS.BIND,
  31825. METHODS.REBIND,
  31826. METHODS.UNBIND,
  31827. METHODS.ACL,
  31828. METHODS.REPORT,
  31829. METHODS.MKACTIVITY,
  31830. METHODS.CHECKOUT,
  31831. METHODS.MERGE,
  31832. METHODS['M-SEARCH'],
  31833. METHODS.NOTIFY,
  31834. METHODS.SUBSCRIBE,
  31835. METHODS.UNSUBSCRIBE,
  31836. METHODS.PATCH,
  31837. METHODS.PURGE,
  31838. METHODS.MKCALENDAR,
  31839. METHODS.LINK,
  31840. METHODS.UNLINK,
  31841. METHODS.PRI,
  31842. // TODO(indutny): should we allow it with HTTP?
  31843. METHODS.SOURCE,
  31844. ];
  31845. exports.METHODS_ICE = [
  31846. METHODS.SOURCE,
  31847. ];
  31848. exports.METHODS_RTSP = [
  31849. METHODS.OPTIONS,
  31850. METHODS.DESCRIBE,
  31851. METHODS.ANNOUNCE,
  31852. METHODS.SETUP,
  31853. METHODS.PLAY,
  31854. METHODS.PAUSE,
  31855. METHODS.TEARDOWN,
  31856. METHODS.GET_PARAMETER,
  31857. METHODS.SET_PARAMETER,
  31858. METHODS.REDIRECT,
  31859. METHODS.RECORD,
  31860. METHODS.FLUSH,
  31861. // For AirPlay
  31862. METHODS.GET,
  31863. METHODS.POST,
  31864. ];
  31865. exports.METHOD_MAP = utils_1.enumToMap(METHODS);
  31866. exports.H_METHOD_MAP = {};
  31867. Object.keys(exports.METHOD_MAP).forEach((key) => {
  31868. if (/^H/.test(key)) {
  31869. exports.H_METHOD_MAP[key] = exports.METHOD_MAP[key];
  31870. }
  31871. });
  31872. var FINISH;
  31873. (function (FINISH) {
  31874. FINISH[FINISH["SAFE"] = 0] = "SAFE";
  31875. FINISH[FINISH["SAFE_WITH_CB"] = 1] = "SAFE_WITH_CB";
  31876. FINISH[FINISH["UNSAFE"] = 2] = "UNSAFE";
  31877. })(FINISH = exports.FINISH || (exports.FINISH = {}));
  31878. exports.ALPHA = [];
  31879. for (let i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0); i++) {
  31880. // Upper case
  31881. exports.ALPHA.push(String.fromCharCode(i));
  31882. // Lower case
  31883. exports.ALPHA.push(String.fromCharCode(i + 0x20));
  31884. }
  31885. exports.NUM_MAP = {
  31886. 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,
  31887. 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,
  31888. };
  31889. exports.HEX_MAP = {
  31890. 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,
  31891. 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,
  31892. A: 0XA, B: 0XB, C: 0XC, D: 0XD, E: 0XE, F: 0XF,
  31893. a: 0xa, b: 0xb, c: 0xc, d: 0xd, e: 0xe, f: 0xf,
  31894. };
  31895. exports.NUM = [
  31896. '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
  31897. ];
  31898. exports.ALPHANUM = exports.ALPHA.concat(exports.NUM);
  31899. exports.MARK = ['-', '_', '.', '!', '~', '*', '\'', '(', ')'];
  31900. exports.USERINFO_CHARS = exports.ALPHANUM
  31901. .concat(exports.MARK)
  31902. .concat(['%', ';', ':', '&', '=', '+', '$', ',']);
  31903. // TODO(indutny): use RFC
  31904. exports.STRICT_URL_CHAR = [
  31905. '!', '"', '$', '%', '&', '\'',
  31906. '(', ')', '*', '+', ',', '-', '.', '/',
  31907. ':', ';', '<', '=', '>',
  31908. '@', '[', '\\', ']', '^', '_',
  31909. '`',
  31910. '{', '|', '}', '~',
  31911. ].concat(exports.ALPHANUM);
  31912. exports.URL_CHAR = exports.STRICT_URL_CHAR
  31913. .concat(['\t', '\f']);
  31914. // All characters with 0x80 bit set to 1
  31915. for (let i = 0x80; i <= 0xff; i++) {
  31916. exports.URL_CHAR.push(i);
  31917. }
  31918. exports.HEX = exports.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']);
  31919. /* Tokens as defined by rfc 2616. Also lowercases them.
  31920. * token = 1*<any CHAR except CTLs or separators>
  31921. * separators = "(" | ")" | "<" | ">" | "@"
  31922. * | "," | ";" | ":" | "\" | <">
  31923. * | "/" | "[" | "]" | "?" | "="
  31924. * | "{" | "}" | SP | HT
  31925. */
  31926. exports.STRICT_TOKEN = [
  31927. '!', '#', '$', '%', '&', '\'',
  31928. '*', '+', '-', '.',
  31929. '^', '_', '`',
  31930. '|', '~',
  31931. ].concat(exports.ALPHANUM);
  31932. exports.TOKEN = exports.STRICT_TOKEN.concat([' ']);
  31933. /*
  31934. * Verify that a char is a valid visible (printable) US-ASCII
  31935. * character or %x80-FF
  31936. */
  31937. exports.HEADER_CHARS = ['\t'];
  31938. for (let i = 32; i <= 255; i++) {
  31939. if (i !== 127) {
  31940. exports.HEADER_CHARS.push(i);
  31941. }
  31942. }
  31943. // ',' = \x44
  31944. exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44);
  31945. exports.MAJOR = exports.NUM_MAP;
  31946. exports.MINOR = exports.MAJOR;
  31947. var HEADER_STATE;
  31948. (function (HEADER_STATE) {
  31949. HEADER_STATE[HEADER_STATE["GENERAL"] = 0] = "GENERAL";
  31950. HEADER_STATE[HEADER_STATE["CONNECTION"] = 1] = "CONNECTION";
  31951. HEADER_STATE[HEADER_STATE["CONTENT_LENGTH"] = 2] = "CONTENT_LENGTH";
  31952. HEADER_STATE[HEADER_STATE["TRANSFER_ENCODING"] = 3] = "TRANSFER_ENCODING";
  31953. HEADER_STATE[HEADER_STATE["UPGRADE"] = 4] = "UPGRADE";
  31954. HEADER_STATE[HEADER_STATE["CONNECTION_KEEP_ALIVE"] = 5] = "CONNECTION_KEEP_ALIVE";
  31955. HEADER_STATE[HEADER_STATE["CONNECTION_CLOSE"] = 6] = "CONNECTION_CLOSE";
  31956. HEADER_STATE[HEADER_STATE["CONNECTION_UPGRADE"] = 7] = "CONNECTION_UPGRADE";
  31957. HEADER_STATE[HEADER_STATE["TRANSFER_ENCODING_CHUNKED"] = 8] = "TRANSFER_ENCODING_CHUNKED";
  31958. })(HEADER_STATE = exports.HEADER_STATE || (exports.HEADER_STATE = {}));
  31959. exports.SPECIAL_HEADERS = {
  31960. 'connection': HEADER_STATE.CONNECTION,
  31961. 'content-length': HEADER_STATE.CONTENT_LENGTH,
  31962. 'proxy-connection': HEADER_STATE.CONNECTION,
  31963. 'transfer-encoding': HEADER_STATE.TRANSFER_ENCODING,
  31964. 'upgrade': HEADER_STATE.UPGRADE,
  31965. };
  31966. //# sourceMappingURL=constants.js.map
  31967. /***/ }),
  31968. /***/ 1145:
  31969. /***/ ((module) => {
  31970. module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxp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MCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFB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AMJgtBnwEhEAwlC0GgASEQDCQLQaEBIRAMIwtBogEhEAwiC0GjASEQDCELQaQBIRAMIAtBpQEhEAwfC0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQ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AAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/p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C+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AcsBygG4AckBuQHIAboBuwG8Ab0BvgG/AcABwQHCAcM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JAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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QdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCA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MDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=='
  31975. /***/ }),
  31976. /***/ 1891:
  31977. /***/ ((__unused_webpack_module, exports) => {
  31978. "use strict";
  31979. Object.defineProperty(exports, "__esModule", ({ value: true }));
  31980. exports.enumToMap = void 0;
  31981. function enumToMap(obj) {
  31982. const res = {};
  31983. Object.keys(obj).forEach((key) => {
  31984. const value = obj[key];
  31985. if (typeof value === 'number') {
  31986. res[key] = value;
  31987. }
  31988. });
  31989. return res;
  31990. }
  31991. exports.enumToMap = enumToMap;
  31992. //# sourceMappingURL=utils.js.map
  31993. /***/ }),
  31994. /***/ 6771:
  31995. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  31996. "use strict";
  31997. const { kClients } = __nccwpck_require__(2785)
  31998. const Agent = __nccwpck_require__(7890)
  31999. const {
  32000. kAgent,
  32001. kMockAgentSet,
  32002. kMockAgentGet,
  32003. kDispatches,
  32004. kIsMockActive,
  32005. kNetConnect,
  32006. kGetNetConnect,
  32007. kOptions,
  32008. kFactory
  32009. } = __nccwpck_require__(4347)
  32010. const MockClient = __nccwpck_require__(8687)
  32011. const MockPool = __nccwpck_require__(6193)
  32012. const { matchValue, buildMockOptions } = __nccwpck_require__(9323)
  32013. const { InvalidArgumentError, UndiciError } = __nccwpck_require__(8045)
  32014. const Dispatcher = __nccwpck_require__(412)
  32015. const Pluralizer = __nccwpck_require__(8891)
  32016. const PendingInterceptorsFormatter = __nccwpck_require__(6823)
  32017. class FakeWeakRef {
  32018. constructor (value) {
  32019. this.value = value
  32020. }
  32021. deref () {
  32022. return this.value
  32023. }
  32024. }
  32025. class MockAgent extends Dispatcher {
  32026. constructor (opts) {
  32027. super(opts)
  32028. this[kNetConnect] = true
  32029. this[kIsMockActive] = true
  32030. // Instantiate Agent and encapsulate
  32031. if ((opts && opts.agent && typeof opts.agent.dispatch !== 'function')) {
  32032. throw new InvalidArgumentError('Argument opts.agent must implement Agent')
  32033. }
  32034. const agent = opts && opts.agent ? opts.agent : new Agent(opts)
  32035. this[kAgent] = agent
  32036. this[kClients] = agent[kClients]
  32037. this[kOptions] = buildMockOptions(opts)
  32038. }
  32039. get (origin) {
  32040. let dispatcher = this[kMockAgentGet](origin)
  32041. if (!dispatcher) {
  32042. dispatcher = this[kFactory](origin)
  32043. this[kMockAgentSet](origin, dispatcher)
  32044. }
  32045. return dispatcher
  32046. }
  32047. dispatch (opts, handler) {
  32048. // Call MockAgent.get to perform additional setup before dispatching as normal
  32049. this.get(opts.origin)
  32050. return this[kAgent].dispatch(opts, handler)
  32051. }
  32052. async close () {
  32053. await this[kAgent].close()
  32054. this[kClients].clear()
  32055. }
  32056. deactivate () {
  32057. this[kIsMockActive] = false
  32058. }
  32059. activate () {
  32060. this[kIsMockActive] = true
  32061. }
  32062. enableNetConnect (matcher) {
  32063. if (typeof matcher === 'string' || typeof matcher === 'function' || matcher instanceof RegExp) {
  32064. if (Array.isArray(this[kNetConnect])) {
  32065. this[kNetConnect].push(matcher)
  32066. } else {
  32067. this[kNetConnect] = [matcher]
  32068. }
  32069. } else if (typeof matcher === 'undefined') {
  32070. this[kNetConnect] = true
  32071. } else {
  32072. throw new InvalidArgumentError('Unsupported matcher. Must be one of String|Function|RegExp.')
  32073. }
  32074. }
  32075. disableNetConnect () {
  32076. this[kNetConnect] = false
  32077. }
  32078. // This is required to bypass issues caused by using global symbols - see:
  32079. // https://github.com/nodejs/undici/issues/1447
  32080. get isMockActive () {
  32081. return this[kIsMockActive]
  32082. }
  32083. [kMockAgentSet] (origin, dispatcher) {
  32084. this[kClients].set(origin, new FakeWeakRef(dispatcher))
  32085. }
  32086. [kFactory] (origin) {
  32087. const mockOptions = Object.assign({ agent: this }, this[kOptions])
  32088. return this[kOptions] && this[kOptions].connections === 1
  32089. ? new MockClient(origin, mockOptions)
  32090. : new MockPool(origin, mockOptions)
  32091. }
  32092. [kMockAgentGet] (origin) {
  32093. // First check if we can immediately find it
  32094. const ref = this[kClients].get(origin)
  32095. if (ref) {
  32096. return ref.deref()
  32097. }
  32098. // If the origin is not a string create a dummy parent pool and return to user
  32099. if (typeof origin !== 'string') {
  32100. const dispatcher = this[kFactory]('http://localhost:9999')
  32101. this[kMockAgentSet](origin, dispatcher)
  32102. return dispatcher
  32103. }
  32104. // If we match, create a pool and assign the same dispatches
  32105. for (const [keyMatcher, nonExplicitRef] of Array.from(this[kClients])) {
  32106. const nonExplicitDispatcher = nonExplicitRef.deref()
  32107. if (nonExplicitDispatcher && typeof keyMatcher !== 'string' && matchValue(keyMatcher, origin)) {
  32108. const dispatcher = this[kFactory](origin)
  32109. this[kMockAgentSet](origin, dispatcher)
  32110. dispatcher[kDispatches] = nonExplicitDispatcher[kDispatches]
  32111. return dispatcher
  32112. }
  32113. }
  32114. }
  32115. [kGetNetConnect] () {
  32116. return this[kNetConnect]
  32117. }
  32118. pendingInterceptors () {
  32119. const mockAgentClients = this[kClients]
  32120. return Array.from(mockAgentClients.entries())
  32121. .flatMap(([origin, scope]) => scope.deref()[kDispatches].map(dispatch => ({ ...dispatch, origin })))
  32122. .filter(({ pending }) => pending)
  32123. }
  32124. assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) {
  32125. const pending = this.pendingInterceptors()
  32126. if (pending.length === 0) {
  32127. return
  32128. }
  32129. const pluralizer = new Pluralizer('interceptor', 'interceptors').pluralize(pending.length)
  32130. throw new UndiciError(`
  32131. ${pluralizer.count} ${pluralizer.noun} ${pluralizer.is} pending:
  32132. ${pendingInterceptorsFormatter.format(pending)}
  32133. `.trim())
  32134. }
  32135. }
  32136. module.exports = MockAgent
  32137. /***/ }),
  32138. /***/ 8687:
  32139. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32140. "use strict";
  32141. const { promisify } = __nccwpck_require__(3837)
  32142. const Client = __nccwpck_require__(3598)
  32143. const { buildMockDispatch } = __nccwpck_require__(9323)
  32144. const {
  32145. kDispatches,
  32146. kMockAgent,
  32147. kClose,
  32148. kOriginalClose,
  32149. kOrigin,
  32150. kOriginalDispatch,
  32151. kConnected
  32152. } = __nccwpck_require__(4347)
  32153. const { MockInterceptor } = __nccwpck_require__(410)
  32154. const Symbols = __nccwpck_require__(2785)
  32155. const { InvalidArgumentError } = __nccwpck_require__(8045)
  32156. /**
  32157. * MockClient provides an API that extends the Client to influence the mockDispatches.
  32158. */
  32159. class MockClient extends Client {
  32160. constructor (origin, opts) {
  32161. super(origin, opts)
  32162. if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {
  32163. throw new InvalidArgumentError('Argument opts.agent must implement Agent')
  32164. }
  32165. this[kMockAgent] = opts.agent
  32166. this[kOrigin] = origin
  32167. this[kDispatches] = []
  32168. this[kConnected] = 1
  32169. this[kOriginalDispatch] = this.dispatch
  32170. this[kOriginalClose] = this.close.bind(this)
  32171. this.dispatch = buildMockDispatch.call(this)
  32172. this.close = this[kClose]
  32173. }
  32174. get [Symbols.kConnected] () {
  32175. return this[kConnected]
  32176. }
  32177. /**
  32178. * Sets up the base interceptor for mocking replies from undici.
  32179. */
  32180. intercept (opts) {
  32181. return new MockInterceptor(opts, this[kDispatches])
  32182. }
  32183. async [kClose] () {
  32184. await promisify(this[kOriginalClose])()
  32185. this[kConnected] = 0
  32186. this[kMockAgent][Symbols.kClients].delete(this[kOrigin])
  32187. }
  32188. }
  32189. module.exports = MockClient
  32190. /***/ }),
  32191. /***/ 888:
  32192. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32193. "use strict";
  32194. const { UndiciError } = __nccwpck_require__(8045)
  32195. class MockNotMatchedError extends UndiciError {
  32196. constructor (message) {
  32197. super(message)
  32198. Error.captureStackTrace(this, MockNotMatchedError)
  32199. this.name = 'MockNotMatchedError'
  32200. this.message = message || 'The request does not match any registered mock dispatches'
  32201. this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'
  32202. }
  32203. }
  32204. module.exports = {
  32205. MockNotMatchedError
  32206. }
  32207. /***/ }),
  32208. /***/ 410:
  32209. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32210. "use strict";
  32211. const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(9323)
  32212. const {
  32213. kDispatches,
  32214. kDispatchKey,
  32215. kDefaultHeaders,
  32216. kDefaultTrailers,
  32217. kContentLength,
  32218. kMockDispatch
  32219. } = __nccwpck_require__(4347)
  32220. const { InvalidArgumentError } = __nccwpck_require__(8045)
  32221. const { buildURL } = __nccwpck_require__(3983)
  32222. /**
  32223. * Defines the scope API for an interceptor reply
  32224. */
  32225. class MockScope {
  32226. constructor (mockDispatch) {
  32227. this[kMockDispatch] = mockDispatch
  32228. }
  32229. /**
  32230. * Delay a reply by a set amount in ms.
  32231. */
  32232. delay (waitInMs) {
  32233. if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) {
  32234. throw new InvalidArgumentError('waitInMs must be a valid integer > 0')
  32235. }
  32236. this[kMockDispatch].delay = waitInMs
  32237. return this
  32238. }
  32239. /**
  32240. * For a defined reply, never mark as consumed.
  32241. */
  32242. persist () {
  32243. this[kMockDispatch].persist = true
  32244. return this
  32245. }
  32246. /**
  32247. * Allow one to define a reply for a set amount of matching requests.
  32248. */
  32249. times (repeatTimes) {
  32250. if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {
  32251. throw new InvalidArgumentError('repeatTimes must be a valid integer > 0')
  32252. }
  32253. this[kMockDispatch].times = repeatTimes
  32254. return this
  32255. }
  32256. }
  32257. /**
  32258. * Defines an interceptor for a Mock
  32259. */
  32260. class MockInterceptor {
  32261. constructor (opts, mockDispatches) {
  32262. if (typeof opts !== 'object') {
  32263. throw new InvalidArgumentError('opts must be an object')
  32264. }
  32265. if (typeof opts.path === 'undefined') {
  32266. throw new InvalidArgumentError('opts.path must be defined')
  32267. }
  32268. if (typeof opts.method === 'undefined') {
  32269. opts.method = 'GET'
  32270. }
  32271. // See https://github.com/nodejs/undici/issues/1245
  32272. // As per RFC 3986, clients are not supposed to send URI
  32273. // fragments to servers when they retrieve a document,
  32274. if (typeof opts.path === 'string') {
  32275. if (opts.query) {
  32276. opts.path = buildURL(opts.path, opts.query)
  32277. } else {
  32278. // Matches https://github.com/nodejs/undici/blob/main/lib/fetch/index.js#L1811
  32279. const parsedURL = new URL(opts.path, 'data://')
  32280. opts.path = parsedURL.pathname + parsedURL.search
  32281. }
  32282. }
  32283. if (typeof opts.method === 'string') {
  32284. opts.method = opts.method.toUpperCase()
  32285. }
  32286. this[kDispatchKey] = buildKey(opts)
  32287. this[kDispatches] = mockDispatches
  32288. this[kDefaultHeaders] = {}
  32289. this[kDefaultTrailers] = {}
  32290. this[kContentLength] = false
  32291. }
  32292. createMockScopeDispatchData (statusCode, data, responseOptions = {}) {
  32293. const responseData = getResponseData(data)
  32294. const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {}
  32295. const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers }
  32296. const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers }
  32297. return { statusCode, data, headers, trailers }
  32298. }
  32299. validateReplyParameters (statusCode, data, responseOptions) {
  32300. if (typeof statusCode === 'undefined') {
  32301. throw new InvalidArgumentError('statusCode must be defined')
  32302. }
  32303. if (typeof data === 'undefined') {
  32304. throw new InvalidArgumentError('data must be defined')
  32305. }
  32306. if (typeof responseOptions !== 'object') {
  32307. throw new InvalidArgumentError('responseOptions must be an object')
  32308. }
  32309. }
  32310. /**
  32311. * Mock an undici request with a defined reply.
  32312. */
  32313. reply (replyData) {
  32314. // Values of reply aren't available right now as they
  32315. // can only be available when the reply callback is invoked.
  32316. if (typeof replyData === 'function') {
  32317. // We'll first wrap the provided callback in another function,
  32318. // this function will properly resolve the data from the callback
  32319. // when invoked.
  32320. const wrappedDefaultsCallback = (opts) => {
  32321. // Our reply options callback contains the parameter for statusCode, data and options.
  32322. const resolvedData = replyData(opts)
  32323. // Check if it is in the right format
  32324. if (typeof resolvedData !== 'object') {
  32325. throw new InvalidArgumentError('reply options callback must return an object')
  32326. }
  32327. const { statusCode, data = '', responseOptions = {} } = resolvedData
  32328. this.validateReplyParameters(statusCode, data, responseOptions)
  32329. // Since the values can be obtained immediately we return them
  32330. // from this higher order function that will be resolved later.
  32331. return {
  32332. ...this.createMockScopeDispatchData(statusCode, data, responseOptions)
  32333. }
  32334. }
  32335. // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data.
  32336. const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback)
  32337. return new MockScope(newMockDispatch)
  32338. }
  32339. // We can have either one or three parameters, if we get here,
  32340. // we should have 1-3 parameters. So we spread the arguments of
  32341. // this function to obtain the parameters, since replyData will always
  32342. // just be the statusCode.
  32343. const [statusCode, data = '', responseOptions = {}] = [...arguments]
  32344. this.validateReplyParameters(statusCode, data, responseOptions)
  32345. // Send in-already provided data like usual
  32346. const dispatchData = this.createMockScopeDispatchData(statusCode, data, responseOptions)
  32347. const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData)
  32348. return new MockScope(newMockDispatch)
  32349. }
  32350. /**
  32351. * Mock an undici request with a defined error.
  32352. */
  32353. replyWithError (error) {
  32354. if (typeof error === 'undefined') {
  32355. throw new InvalidArgumentError('error must be defined')
  32356. }
  32357. const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error })
  32358. return new MockScope(newMockDispatch)
  32359. }
  32360. /**
  32361. * Set default reply headers on the interceptor for subsequent replies
  32362. */
  32363. defaultReplyHeaders (headers) {
  32364. if (typeof headers === 'undefined') {
  32365. throw new InvalidArgumentError('headers must be defined')
  32366. }
  32367. this[kDefaultHeaders] = headers
  32368. return this
  32369. }
  32370. /**
  32371. * Set default reply trailers on the interceptor for subsequent replies
  32372. */
  32373. defaultReplyTrailers (trailers) {
  32374. if (typeof trailers === 'undefined') {
  32375. throw new InvalidArgumentError('trailers must be defined')
  32376. }
  32377. this[kDefaultTrailers] = trailers
  32378. return this
  32379. }
  32380. /**
  32381. * Set reply content length header for replies on the interceptor
  32382. */
  32383. replyContentLength () {
  32384. this[kContentLength] = true
  32385. return this
  32386. }
  32387. }
  32388. module.exports.MockInterceptor = MockInterceptor
  32389. module.exports.MockScope = MockScope
  32390. /***/ }),
  32391. /***/ 6193:
  32392. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32393. "use strict";
  32394. const { promisify } = __nccwpck_require__(3837)
  32395. const Pool = __nccwpck_require__(4634)
  32396. const { buildMockDispatch } = __nccwpck_require__(9323)
  32397. const {
  32398. kDispatches,
  32399. kMockAgent,
  32400. kClose,
  32401. kOriginalClose,
  32402. kOrigin,
  32403. kOriginalDispatch,
  32404. kConnected
  32405. } = __nccwpck_require__(4347)
  32406. const { MockInterceptor } = __nccwpck_require__(410)
  32407. const Symbols = __nccwpck_require__(2785)
  32408. const { InvalidArgumentError } = __nccwpck_require__(8045)
  32409. /**
  32410. * MockPool provides an API that extends the Pool to influence the mockDispatches.
  32411. */
  32412. class MockPool extends Pool {
  32413. constructor (origin, opts) {
  32414. super(origin, opts)
  32415. if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {
  32416. throw new InvalidArgumentError('Argument opts.agent must implement Agent')
  32417. }
  32418. this[kMockAgent] = opts.agent
  32419. this[kOrigin] = origin
  32420. this[kDispatches] = []
  32421. this[kConnected] = 1
  32422. this[kOriginalDispatch] = this.dispatch
  32423. this[kOriginalClose] = this.close.bind(this)
  32424. this.dispatch = buildMockDispatch.call(this)
  32425. this.close = this[kClose]
  32426. }
  32427. get [Symbols.kConnected] () {
  32428. return this[kConnected]
  32429. }
  32430. /**
  32431. * Sets up the base interceptor for mocking replies from undici.
  32432. */
  32433. intercept (opts) {
  32434. return new MockInterceptor(opts, this[kDispatches])
  32435. }
  32436. async [kClose] () {
  32437. await promisify(this[kOriginalClose])()
  32438. this[kConnected] = 0
  32439. this[kMockAgent][Symbols.kClients].delete(this[kOrigin])
  32440. }
  32441. }
  32442. module.exports = MockPool
  32443. /***/ }),
  32444. /***/ 4347:
  32445. /***/ ((module) => {
  32446. "use strict";
  32447. module.exports = {
  32448. kAgent: Symbol('agent'),
  32449. kOptions: Symbol('options'),
  32450. kFactory: Symbol('factory'),
  32451. kDispatches: Symbol('dispatches'),
  32452. kDispatchKey: Symbol('dispatch key'),
  32453. kDefaultHeaders: Symbol('default headers'),
  32454. kDefaultTrailers: Symbol('default trailers'),
  32455. kContentLength: Symbol('content length'),
  32456. kMockAgent: Symbol('mock agent'),
  32457. kMockAgentSet: Symbol('mock agent set'),
  32458. kMockAgentGet: Symbol('mock agent get'),
  32459. kMockDispatch: Symbol('mock dispatch'),
  32460. kClose: Symbol('close'),
  32461. kOriginalClose: Symbol('original agent close'),
  32462. kOrigin: Symbol('origin'),
  32463. kIsMockActive: Symbol('is mock active'),
  32464. kNetConnect: Symbol('net connect'),
  32465. kGetNetConnect: Symbol('get net connect'),
  32466. kConnected: Symbol('connected')
  32467. }
  32468. /***/ }),
  32469. /***/ 9323:
  32470. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32471. "use strict";
  32472. const { MockNotMatchedError } = __nccwpck_require__(888)
  32473. const {
  32474. kDispatches,
  32475. kMockAgent,
  32476. kOriginalDispatch,
  32477. kOrigin,
  32478. kGetNetConnect
  32479. } = __nccwpck_require__(4347)
  32480. const { buildURL, nop } = __nccwpck_require__(3983)
  32481. const { STATUS_CODES } = __nccwpck_require__(3685)
  32482. const {
  32483. types: {
  32484. isPromise
  32485. }
  32486. } = __nccwpck_require__(3837)
  32487. function matchValue (match, value) {
  32488. if (typeof match === 'string') {
  32489. return match === value
  32490. }
  32491. if (match instanceof RegExp) {
  32492. return match.test(value)
  32493. }
  32494. if (typeof match === 'function') {
  32495. return match(value) === true
  32496. }
  32497. return false
  32498. }
  32499. function lowerCaseEntries (headers) {
  32500. return Object.fromEntries(
  32501. Object.entries(headers).map(([headerName, headerValue]) => {
  32502. return [headerName.toLocaleLowerCase(), headerValue]
  32503. })
  32504. )
  32505. }
  32506. /**
  32507. * @param {import('../../index').Headers|string[]|Record<string, string>} headers
  32508. * @param {string} key
  32509. */
  32510. function getHeaderByName (headers, key) {
  32511. if (Array.isArray(headers)) {
  32512. for (let i = 0; i < headers.length; i += 2) {
  32513. if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {
  32514. return headers[i + 1]
  32515. }
  32516. }
  32517. return undefined
  32518. } else if (typeof headers.get === 'function') {
  32519. return headers.get(key)
  32520. } else {
  32521. return lowerCaseEntries(headers)[key.toLocaleLowerCase()]
  32522. }
  32523. }
  32524. /** @param {string[]} headers */
  32525. function buildHeadersFromArray (headers) { // fetch HeadersList
  32526. const clone = headers.slice()
  32527. const entries = []
  32528. for (let index = 0; index < clone.length; index += 2) {
  32529. entries.push([clone[index], clone[index + 1]])
  32530. }
  32531. return Object.fromEntries(entries)
  32532. }
  32533. function matchHeaders (mockDispatch, headers) {
  32534. if (typeof mockDispatch.headers === 'function') {
  32535. if (Array.isArray(headers)) { // fetch HeadersList
  32536. headers = buildHeadersFromArray(headers)
  32537. }
  32538. return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})
  32539. }
  32540. if (typeof mockDispatch.headers === 'undefined') {
  32541. return true
  32542. }
  32543. if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {
  32544. return false
  32545. }
  32546. for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {
  32547. const headerValue = getHeaderByName(headers, matchHeaderName)
  32548. if (!matchValue(matchHeaderValue, headerValue)) {
  32549. return false
  32550. }
  32551. }
  32552. return true
  32553. }
  32554. function safeUrl (path) {
  32555. if (typeof path !== 'string') {
  32556. return path
  32557. }
  32558. const pathSegments = path.split('?')
  32559. if (pathSegments.length !== 2) {
  32560. return path
  32561. }
  32562. const qp = new URLSearchParams(pathSegments.pop())
  32563. qp.sort()
  32564. return [...pathSegments, qp.toString()].join('?')
  32565. }
  32566. function matchKey (mockDispatch, { path, method, body, headers }) {
  32567. const pathMatch = matchValue(mockDispatch.path, path)
  32568. const methodMatch = matchValue(mockDispatch.method, method)
  32569. const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true
  32570. const headersMatch = matchHeaders(mockDispatch, headers)
  32571. return pathMatch && methodMatch && bodyMatch && headersMatch
  32572. }
  32573. function getResponseData (data) {
  32574. if (Buffer.isBuffer(data)) {
  32575. return data
  32576. } else if (typeof data === 'object') {
  32577. return JSON.stringify(data)
  32578. } else {
  32579. return data.toString()
  32580. }
  32581. }
  32582. function getMockDispatch (mockDispatches, key) {
  32583. const basePath = key.query ? buildURL(key.path, key.query) : key.path
  32584. const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath
  32585. // Match path
  32586. let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))
  32587. if (matchedMockDispatches.length === 0) {
  32588. throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)
  32589. }
  32590. // Match method
  32591. matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))
  32592. if (matchedMockDispatches.length === 0) {
  32593. throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`)
  32594. }
  32595. // Match body
  32596. matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)
  32597. if (matchedMockDispatches.length === 0) {
  32598. throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`)
  32599. }
  32600. // Match headers
  32601. matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))
  32602. if (matchedMockDispatches.length === 0) {
  32603. throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers}'`)
  32604. }
  32605. return matchedMockDispatches[0]
  32606. }
  32607. function addMockDispatch (mockDispatches, key, data) {
  32608. const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }
  32609. const replyData = typeof data === 'function' ? { callback: data } : { ...data }
  32610. const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }
  32611. mockDispatches.push(newMockDispatch)
  32612. return newMockDispatch
  32613. }
  32614. function deleteMockDispatch (mockDispatches, key) {
  32615. const index = mockDispatches.findIndex(dispatch => {
  32616. if (!dispatch.consumed) {
  32617. return false
  32618. }
  32619. return matchKey(dispatch, key)
  32620. })
  32621. if (index !== -1) {
  32622. mockDispatches.splice(index, 1)
  32623. }
  32624. }
  32625. function buildKey (opts) {
  32626. const { path, method, body, headers, query } = opts
  32627. return {
  32628. path,
  32629. method,
  32630. body,
  32631. headers,
  32632. query
  32633. }
  32634. }
  32635. function generateKeyValues (data) {
  32636. return Object.entries(data).reduce((keyValuePairs, [key, value]) => [
  32637. ...keyValuePairs,
  32638. Buffer.from(`${key}`),
  32639. Array.isArray(value) ? value.map(x => Buffer.from(`${x}`)) : Buffer.from(`${value}`)
  32640. ], [])
  32641. }
  32642. /**
  32643. * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
  32644. * @param {number} statusCode
  32645. */
  32646. function getStatusText (statusCode) {
  32647. return STATUS_CODES[statusCode] || 'unknown'
  32648. }
  32649. async function getResponse (body) {
  32650. const buffers = []
  32651. for await (const data of body) {
  32652. buffers.push(data)
  32653. }
  32654. return Buffer.concat(buffers).toString('utf8')
  32655. }
  32656. /**
  32657. * Mock dispatch function used to simulate undici dispatches
  32658. */
  32659. function mockDispatch (opts, handler) {
  32660. // Get mock dispatch from built key
  32661. const key = buildKey(opts)
  32662. const mockDispatch = getMockDispatch(this[kDispatches], key)
  32663. mockDispatch.timesInvoked++
  32664. // Here's where we resolve a callback if a callback is present for the dispatch data.
  32665. if (mockDispatch.data.callback) {
  32666. mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }
  32667. }
  32668. // Parse mockDispatch data
  32669. const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch
  32670. const { timesInvoked, times } = mockDispatch
  32671. // If it's used up and not persistent, mark as consumed
  32672. mockDispatch.consumed = !persist && timesInvoked >= times
  32673. mockDispatch.pending = timesInvoked < times
  32674. // If specified, trigger dispatch error
  32675. if (error !== null) {
  32676. deleteMockDispatch(this[kDispatches], key)
  32677. handler.onError(error)
  32678. return true
  32679. }
  32680. // Handle the request with a delay if necessary
  32681. if (typeof delay === 'number' && delay > 0) {
  32682. setTimeout(() => {
  32683. handleReply(this[kDispatches])
  32684. }, delay)
  32685. } else {
  32686. handleReply(this[kDispatches])
  32687. }
  32688. function handleReply (mockDispatches, _data = data) {
  32689. // fetch's HeadersList is a 1D string array
  32690. const optsHeaders = Array.isArray(opts.headers)
  32691. ? buildHeadersFromArray(opts.headers)
  32692. : opts.headers
  32693. const body = typeof _data === 'function'
  32694. ? _data({ ...opts, headers: optsHeaders })
  32695. : _data
  32696. // util.types.isPromise is likely needed for jest.
  32697. if (isPromise(body)) {
  32698. // If handleReply is asynchronous, throwing an error
  32699. // in the callback will reject the promise, rather than
  32700. // synchronously throw the error, which breaks some tests.
  32701. // Rather, we wait for the callback to resolve if it is a
  32702. // promise, and then re-run handleReply with the new body.
  32703. body.then((newData) => handleReply(mockDispatches, newData))
  32704. return
  32705. }
  32706. const responseData = getResponseData(body)
  32707. const responseHeaders = generateKeyValues(headers)
  32708. const responseTrailers = generateKeyValues(trailers)
  32709. handler.abort = nop
  32710. handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode))
  32711. handler.onData(Buffer.from(responseData))
  32712. handler.onComplete(responseTrailers)
  32713. deleteMockDispatch(mockDispatches, key)
  32714. }
  32715. function resume () {}
  32716. return true
  32717. }
  32718. function buildMockDispatch () {
  32719. const agent = this[kMockAgent]
  32720. const origin = this[kOrigin]
  32721. const originalDispatch = this[kOriginalDispatch]
  32722. return function dispatch (opts, handler) {
  32723. if (agent.isMockActive) {
  32724. try {
  32725. mockDispatch.call(this, opts, handler)
  32726. } catch (error) {
  32727. if (error instanceof MockNotMatchedError) {
  32728. const netConnect = agent[kGetNetConnect]()
  32729. if (netConnect === false) {
  32730. throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)
  32731. }
  32732. if (checkNetConnect(netConnect, origin)) {
  32733. originalDispatch.call(this, opts, handler)
  32734. } else {
  32735. throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)
  32736. }
  32737. } else {
  32738. throw error
  32739. }
  32740. }
  32741. } else {
  32742. originalDispatch.call(this, opts, handler)
  32743. }
  32744. }
  32745. }
  32746. function checkNetConnect (netConnect, origin) {
  32747. const url = new URL(origin)
  32748. if (netConnect === true) {
  32749. return true
  32750. } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {
  32751. return true
  32752. }
  32753. return false
  32754. }
  32755. function buildMockOptions (opts) {
  32756. if (opts) {
  32757. const { agent, ...mockOptions } = opts
  32758. return mockOptions
  32759. }
  32760. }
  32761. module.exports = {
  32762. getResponseData,
  32763. getMockDispatch,
  32764. addMockDispatch,
  32765. deleteMockDispatch,
  32766. buildKey,
  32767. generateKeyValues,
  32768. matchValue,
  32769. getResponse,
  32770. getStatusText,
  32771. mockDispatch,
  32772. buildMockDispatch,
  32773. checkNetConnect,
  32774. buildMockOptions,
  32775. getHeaderByName
  32776. }
  32777. /***/ }),
  32778. /***/ 6823:
  32779. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32780. "use strict";
  32781. const { Transform } = __nccwpck_require__(2781)
  32782. const { Console } = __nccwpck_require__(6206)
  32783. /**
  32784. * Gets the output of `console.table(…)` as a string.
  32785. */
  32786. module.exports = class PendingInterceptorsFormatter {
  32787. constructor ({ disableColors } = {}) {
  32788. this.transform = new Transform({
  32789. transform (chunk, _enc, cb) {
  32790. cb(null, chunk)
  32791. }
  32792. })
  32793. this.logger = new Console({
  32794. stdout: this.transform,
  32795. inspectOptions: {
  32796. colors: !disableColors && !process.env.CI
  32797. }
  32798. })
  32799. }
  32800. format (pendingInterceptors) {
  32801. const withPrettyHeaders = pendingInterceptors.map(
  32802. ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
  32803. Method: method,
  32804. Origin: origin,
  32805. Path: path,
  32806. 'Status code': statusCode,
  32807. Persistent: persist ? '✅' : '❌',
  32808. Invocations: timesInvoked,
  32809. Remaining: persist ? Infinity : times - timesInvoked
  32810. }))
  32811. this.logger.table(withPrettyHeaders)
  32812. return this.transform.read().toString()
  32813. }
  32814. }
  32815. /***/ }),
  32816. /***/ 8891:
  32817. /***/ ((module) => {
  32818. "use strict";
  32819. const singulars = {
  32820. pronoun: 'it',
  32821. is: 'is',
  32822. was: 'was',
  32823. this: 'this'
  32824. }
  32825. const plurals = {
  32826. pronoun: 'they',
  32827. is: 'are',
  32828. was: 'were',
  32829. this: 'these'
  32830. }
  32831. module.exports = class Pluralizer {
  32832. constructor (singular, plural) {
  32833. this.singular = singular
  32834. this.plural = plural
  32835. }
  32836. pluralize (count) {
  32837. const one = count === 1
  32838. const keys = one ? singulars : plurals
  32839. const noun = one ? this.singular : this.plural
  32840. return { ...keys, count, noun }
  32841. }
  32842. }
  32843. /***/ }),
  32844. /***/ 8266:
  32845. /***/ ((module) => {
  32846. "use strict";
  32847. /* eslint-disable */
  32848. // Extracted from node/lib/internal/fixed_queue.js
  32849. // Currently optimal queue size, tested on V8 6.0 - 6.6. Must be power of two.
  32850. const kSize = 2048;
  32851. const kMask = kSize - 1;
  32852. // The FixedQueue is implemented as a singly-linked list of fixed-size
  32853. // circular buffers. It looks something like this:
  32854. //
  32855. // head tail
  32856. // | |
  32857. // v v
  32858. // +-----------+ <-----\ +-----------+ <------\ +-----------+
  32859. // | [null] | \----- | next | \------- | next |
  32860. // +-----------+ +-----------+ +-----------+
  32861. // | item | <-- bottom | item | <-- bottom | [empty] |
  32862. // | item | | item | | [empty] |
  32863. // | item | | item | | [empty] |
  32864. // | item | | item | | [empty] |
  32865. // | item | | item | bottom --> | item |
  32866. // | item | | item | | item |
  32867. // | ... | | ... | | ... |
  32868. // | item | | item | | item |
  32869. // | item | | item | | item |
  32870. // | [empty] | <-- top | item | | item |
  32871. // | [empty] | | item | | item |
  32872. // | [empty] | | [empty] | <-- top top --> | [empty] |
  32873. // +-----------+ +-----------+ +-----------+
  32874. //
  32875. // Or, if there is only one circular buffer, it looks something
  32876. // like either of these:
  32877. //
  32878. // head tail head tail
  32879. // | | | |
  32880. // v v v v
  32881. // +-----------+ +-----------+
  32882. // | [null] | | [null] |
  32883. // +-----------+ +-----------+
  32884. // | [empty] | | item |
  32885. // | [empty] | | item |
  32886. // | item | <-- bottom top --> | [empty] |
  32887. // | item | | [empty] |
  32888. // | [empty] | <-- top bottom --> | item |
  32889. // | [empty] | | item |
  32890. // +-----------+ +-----------+
  32891. //
  32892. // Adding a value means moving `top` forward by one, removing means
  32893. // moving `bottom` forward by one. After reaching the end, the queue
  32894. // wraps around.
  32895. //
  32896. // When `top === bottom` the current queue is empty and when
  32897. // `top + 1 === bottom` it's full. This wastes a single space of storage
  32898. // but allows much quicker checks.
  32899. class FixedCircularBuffer {
  32900. constructor() {
  32901. this.bottom = 0;
  32902. this.top = 0;
  32903. this.list = new Array(kSize);
  32904. this.next = null;
  32905. }
  32906. isEmpty() {
  32907. return this.top === this.bottom;
  32908. }
  32909. isFull() {
  32910. return ((this.top + 1) & kMask) === this.bottom;
  32911. }
  32912. push(data) {
  32913. this.list[this.top] = data;
  32914. this.top = (this.top + 1) & kMask;
  32915. }
  32916. shift() {
  32917. const nextItem = this.list[this.bottom];
  32918. if (nextItem === undefined)
  32919. return null;
  32920. this.list[this.bottom] = undefined;
  32921. this.bottom = (this.bottom + 1) & kMask;
  32922. return nextItem;
  32923. }
  32924. }
  32925. module.exports = class FixedQueue {
  32926. constructor() {
  32927. this.head = this.tail = new FixedCircularBuffer();
  32928. }
  32929. isEmpty() {
  32930. return this.head.isEmpty();
  32931. }
  32932. push(data) {
  32933. if (this.head.isFull()) {
  32934. // Head is full: Creates a new queue, sets the old queue's `.next` to it,
  32935. // and sets it as the new main queue.
  32936. this.head = this.head.next = new FixedCircularBuffer();
  32937. }
  32938. this.head.push(data);
  32939. }
  32940. shift() {
  32941. const tail = this.tail;
  32942. const next = tail.shift();
  32943. if (tail.isEmpty() && tail.next !== null) {
  32944. // If there is another queue, it forms the new tail.
  32945. this.tail = tail.next;
  32946. }
  32947. return next;
  32948. }
  32949. };
  32950. /***/ }),
  32951. /***/ 3198:
  32952. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  32953. "use strict";
  32954. const DispatcherBase = __nccwpck_require__(4839)
  32955. const FixedQueue = __nccwpck_require__(8266)
  32956. const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(2785)
  32957. const PoolStats = __nccwpck_require__(9689)
  32958. const kClients = Symbol('clients')
  32959. const kNeedDrain = Symbol('needDrain')
  32960. const kQueue = Symbol('queue')
  32961. const kClosedResolve = Symbol('closed resolve')
  32962. const kOnDrain = Symbol('onDrain')
  32963. const kOnConnect = Symbol('onConnect')
  32964. const kOnDisconnect = Symbol('onDisconnect')
  32965. const kOnConnectionError = Symbol('onConnectionError')
  32966. const kGetDispatcher = Symbol('get dispatcher')
  32967. const kAddClient = Symbol('add client')
  32968. const kRemoveClient = Symbol('remove client')
  32969. const kStats = Symbol('stats')
  32970. class PoolBase extends DispatcherBase {
  32971. constructor () {
  32972. super()
  32973. this[kQueue] = new FixedQueue()
  32974. this[kClients] = []
  32975. this[kQueued] = 0
  32976. const pool = this
  32977. this[kOnDrain] = function onDrain (origin, targets) {
  32978. const queue = pool[kQueue]
  32979. let needDrain = false
  32980. while (!needDrain) {
  32981. const item = queue.shift()
  32982. if (!item) {
  32983. break
  32984. }
  32985. pool[kQueued]--
  32986. needDrain = !this.dispatch(item.opts, item.handler)
  32987. }
  32988. this[kNeedDrain] = needDrain
  32989. if (!this[kNeedDrain] && pool[kNeedDrain]) {
  32990. pool[kNeedDrain] = false
  32991. pool.emit('drain', origin, [pool, ...targets])
  32992. }
  32993. if (pool[kClosedResolve] && queue.isEmpty()) {
  32994. Promise
  32995. .all(pool[kClients].map(c => c.close()))
  32996. .then(pool[kClosedResolve])
  32997. }
  32998. }
  32999. this[kOnConnect] = (origin, targets) => {
  33000. pool.emit('connect', origin, [pool, ...targets])
  33001. }
  33002. this[kOnDisconnect] = (origin, targets, err) => {
  33003. pool.emit('disconnect', origin, [pool, ...targets], err)
  33004. }
  33005. this[kOnConnectionError] = (origin, targets, err) => {
  33006. pool.emit('connectionError', origin, [pool, ...targets], err)
  33007. }
  33008. this[kStats] = new PoolStats(this)
  33009. }
  33010. get [kBusy] () {
  33011. return this[kNeedDrain]
  33012. }
  33013. get [kConnected] () {
  33014. return this[kClients].filter(client => client[kConnected]).length
  33015. }
  33016. get [kFree] () {
  33017. return this[kClients].filter(client => client[kConnected] && !client[kNeedDrain]).length
  33018. }
  33019. get [kPending] () {
  33020. let ret = this[kQueued]
  33021. for (const { [kPending]: pending } of this[kClients]) {
  33022. ret += pending
  33023. }
  33024. return ret
  33025. }
  33026. get [kRunning] () {
  33027. let ret = 0
  33028. for (const { [kRunning]: running } of this[kClients]) {
  33029. ret += running
  33030. }
  33031. return ret
  33032. }
  33033. get [kSize] () {
  33034. let ret = this[kQueued]
  33035. for (const { [kSize]: size } of this[kClients]) {
  33036. ret += size
  33037. }
  33038. return ret
  33039. }
  33040. get stats () {
  33041. return this[kStats]
  33042. }
  33043. async [kClose] () {
  33044. if (this[kQueue].isEmpty()) {
  33045. return Promise.all(this[kClients].map(c => c.close()))
  33046. } else {
  33047. return new Promise((resolve) => {
  33048. this[kClosedResolve] = resolve
  33049. })
  33050. }
  33051. }
  33052. async [kDestroy] (err) {
  33053. while (true) {
  33054. const item = this[kQueue].shift()
  33055. if (!item) {
  33056. break
  33057. }
  33058. item.handler.onError(err)
  33059. }
  33060. return Promise.all(this[kClients].map(c => c.destroy(err)))
  33061. }
  33062. [kDispatch] (opts, handler) {
  33063. const dispatcher = this[kGetDispatcher]()
  33064. if (!dispatcher) {
  33065. this[kNeedDrain] = true
  33066. this[kQueue].push({ opts, handler })
  33067. this[kQueued]++
  33068. } else if (!dispatcher.dispatch(opts, handler)) {
  33069. dispatcher[kNeedDrain] = true
  33070. this[kNeedDrain] = !this[kGetDispatcher]()
  33071. }
  33072. return !this[kNeedDrain]
  33073. }
  33074. [kAddClient] (client) {
  33075. client
  33076. .on('drain', this[kOnDrain])
  33077. .on('connect', this[kOnConnect])
  33078. .on('disconnect', this[kOnDisconnect])
  33079. .on('connectionError', this[kOnConnectionError])
  33080. this[kClients].push(client)
  33081. if (this[kNeedDrain]) {
  33082. process.nextTick(() => {
  33083. if (this[kNeedDrain]) {
  33084. this[kOnDrain](client[kUrl], [this, client])
  33085. }
  33086. })
  33087. }
  33088. return this
  33089. }
  33090. [kRemoveClient] (client) {
  33091. client.close(() => {
  33092. const idx = this[kClients].indexOf(client)
  33093. if (idx !== -1) {
  33094. this[kClients].splice(idx, 1)
  33095. }
  33096. })
  33097. this[kNeedDrain] = this[kClients].some(dispatcher => (
  33098. !dispatcher[kNeedDrain] &&
  33099. dispatcher.closed !== true &&
  33100. dispatcher.destroyed !== true
  33101. ))
  33102. }
  33103. }
  33104. module.exports = {
  33105. PoolBase,
  33106. kClients,
  33107. kNeedDrain,
  33108. kAddClient,
  33109. kRemoveClient,
  33110. kGetDispatcher
  33111. }
  33112. /***/ }),
  33113. /***/ 9689:
  33114. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33115. const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = __nccwpck_require__(2785)
  33116. const kPool = Symbol('pool')
  33117. class PoolStats {
  33118. constructor (pool) {
  33119. this[kPool] = pool
  33120. }
  33121. get connected () {
  33122. return this[kPool][kConnected]
  33123. }
  33124. get free () {
  33125. return this[kPool][kFree]
  33126. }
  33127. get pending () {
  33128. return this[kPool][kPending]
  33129. }
  33130. get queued () {
  33131. return this[kPool][kQueued]
  33132. }
  33133. get running () {
  33134. return this[kPool][kRunning]
  33135. }
  33136. get size () {
  33137. return this[kPool][kSize]
  33138. }
  33139. }
  33140. module.exports = PoolStats
  33141. /***/ }),
  33142. /***/ 4634:
  33143. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33144. "use strict";
  33145. const {
  33146. PoolBase,
  33147. kClients,
  33148. kNeedDrain,
  33149. kAddClient,
  33150. kGetDispatcher
  33151. } = __nccwpck_require__(3198)
  33152. const Client = __nccwpck_require__(3598)
  33153. const {
  33154. InvalidArgumentError
  33155. } = __nccwpck_require__(8045)
  33156. const util = __nccwpck_require__(3983)
  33157. const { kUrl, kInterceptors } = __nccwpck_require__(2785)
  33158. const buildConnector = __nccwpck_require__(2067)
  33159. const kOptions = Symbol('options')
  33160. const kConnections = Symbol('connections')
  33161. const kFactory = Symbol('factory')
  33162. function defaultFactory (origin, opts) {
  33163. return new Client(origin, opts)
  33164. }
  33165. class Pool extends PoolBase {
  33166. constructor (origin, {
  33167. connections,
  33168. factory = defaultFactory,
  33169. connect,
  33170. connectTimeout,
  33171. tls,
  33172. maxCachedSessions,
  33173. socketPath,
  33174. autoSelectFamily,
  33175. autoSelectFamilyAttemptTimeout,
  33176. allowH2,
  33177. ...options
  33178. } = {}) {
  33179. super()
  33180. if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
  33181. throw new InvalidArgumentError('invalid connections')
  33182. }
  33183. if (typeof factory !== 'function') {
  33184. throw new InvalidArgumentError('factory must be a function.')
  33185. }
  33186. if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
  33187. throw new InvalidArgumentError('connect must be a function or an object')
  33188. }
  33189. if (typeof connect !== 'function') {
  33190. connect = buildConnector({
  33191. ...tls,
  33192. maxCachedSessions,
  33193. allowH2,
  33194. socketPath,
  33195. timeout: connectTimeout == null ? 10e3 : connectTimeout,
  33196. ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),
  33197. ...connect
  33198. })
  33199. }
  33200. this[kInterceptors] = options.interceptors && options.interceptors.Pool && Array.isArray(options.interceptors.Pool)
  33201. ? options.interceptors.Pool
  33202. : []
  33203. this[kConnections] = connections || null
  33204. this[kUrl] = util.parseOrigin(origin)
  33205. this[kOptions] = { ...util.deepClone(options), connect, allowH2 }
  33206. this[kOptions].interceptors = options.interceptors
  33207. ? { ...options.interceptors }
  33208. : undefined
  33209. this[kFactory] = factory
  33210. }
  33211. [kGetDispatcher] () {
  33212. let dispatcher = this[kClients].find(dispatcher => !dispatcher[kNeedDrain])
  33213. if (dispatcher) {
  33214. return dispatcher
  33215. }
  33216. if (!this[kConnections] || this[kClients].length < this[kConnections]) {
  33217. dispatcher = this[kFactory](this[kUrl], this[kOptions])
  33218. this[kAddClient](dispatcher)
  33219. }
  33220. return dispatcher
  33221. }
  33222. }
  33223. module.exports = Pool
  33224. /***/ }),
  33225. /***/ 7858:
  33226. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33227. "use strict";
  33228. const { kProxy, kClose, kDestroy, kInterceptors } = __nccwpck_require__(2785)
  33229. const { URL } = __nccwpck_require__(7310)
  33230. const Agent = __nccwpck_require__(7890)
  33231. const Pool = __nccwpck_require__(4634)
  33232. const DispatcherBase = __nccwpck_require__(4839)
  33233. const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(8045)
  33234. const buildConnector = __nccwpck_require__(2067)
  33235. const kAgent = Symbol('proxy agent')
  33236. const kClient = Symbol('proxy client')
  33237. const kProxyHeaders = Symbol('proxy headers')
  33238. const kRequestTls = Symbol('request tls settings')
  33239. const kProxyTls = Symbol('proxy tls settings')
  33240. const kConnectEndpoint = Symbol('connect endpoint function')
  33241. function defaultProtocolPort (protocol) {
  33242. return protocol === 'https:' ? 443 : 80
  33243. }
  33244. function buildProxyOptions (opts) {
  33245. if (typeof opts === 'string') {
  33246. opts = { uri: opts }
  33247. }
  33248. if (!opts || !opts.uri) {
  33249. throw new InvalidArgumentError('Proxy opts.uri is mandatory')
  33250. }
  33251. return {
  33252. uri: opts.uri,
  33253. protocol: opts.protocol || 'https'
  33254. }
  33255. }
  33256. function defaultFactory (origin, opts) {
  33257. return new Pool(origin, opts)
  33258. }
  33259. class ProxyAgent extends DispatcherBase {
  33260. constructor (opts) {
  33261. super(opts)
  33262. this[kProxy] = buildProxyOptions(opts)
  33263. this[kAgent] = new Agent(opts)
  33264. this[kInterceptors] = opts.interceptors && opts.interceptors.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)
  33265. ? opts.interceptors.ProxyAgent
  33266. : []
  33267. if (typeof opts === 'string') {
  33268. opts = { uri: opts }
  33269. }
  33270. if (!opts || !opts.uri) {
  33271. throw new InvalidArgumentError('Proxy opts.uri is mandatory')
  33272. }
  33273. const { clientFactory = defaultFactory } = opts
  33274. if (typeof clientFactory !== 'function') {
  33275. throw new InvalidArgumentError('Proxy opts.clientFactory must be a function.')
  33276. }
  33277. this[kRequestTls] = opts.requestTls
  33278. this[kProxyTls] = opts.proxyTls
  33279. this[kProxyHeaders] = opts.headers || {}
  33280. if (opts.auth && opts.token) {
  33281. throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')
  33282. } else if (opts.auth) {
  33283. /* @deprecated in favour of opts.token */
  33284. this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}`
  33285. } else if (opts.token) {
  33286. this[kProxyHeaders]['proxy-authorization'] = opts.token
  33287. }
  33288. const resolvedUrl = new URL(opts.uri)
  33289. const { origin, port, host } = resolvedUrl
  33290. const connect = buildConnector({ ...opts.proxyTls })
  33291. this[kConnectEndpoint] = buildConnector({ ...opts.requestTls })
  33292. this[kClient] = clientFactory(resolvedUrl, { connect })
  33293. this[kAgent] = new Agent({
  33294. ...opts,
  33295. connect: async (opts, callback) => {
  33296. let requestedHost = opts.host
  33297. if (!opts.port) {
  33298. requestedHost += `:${defaultProtocolPort(opts.protocol)}`
  33299. }
  33300. try {
  33301. const { socket, statusCode } = await this[kClient].connect({
  33302. origin,
  33303. port,
  33304. path: requestedHost,
  33305. signal: opts.signal,
  33306. headers: {
  33307. ...this[kProxyHeaders],
  33308. host
  33309. }
  33310. })
  33311. if (statusCode !== 200) {
  33312. socket.on('error', () => {}).destroy()
  33313. callback(new RequestAbortedError('Proxy response !== 200 when HTTP Tunneling'))
  33314. }
  33315. if (opts.protocol !== 'https:') {
  33316. callback(null, socket)
  33317. return
  33318. }
  33319. let servername
  33320. if (this[kRequestTls]) {
  33321. servername = this[kRequestTls].servername
  33322. } else {
  33323. servername = opts.servername
  33324. }
  33325. this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback)
  33326. } catch (err) {
  33327. callback(err)
  33328. }
  33329. }
  33330. })
  33331. }
  33332. dispatch (opts, handler) {
  33333. const { host } = new URL(opts.origin)
  33334. const headers = buildHeaders(opts.headers)
  33335. throwIfProxyAuthIsSent(headers)
  33336. return this[kAgent].dispatch(
  33337. {
  33338. ...opts,
  33339. headers: {
  33340. ...headers,
  33341. host
  33342. }
  33343. },
  33344. handler
  33345. )
  33346. }
  33347. async [kClose] () {
  33348. await this[kAgent].close()
  33349. await this[kClient].close()
  33350. }
  33351. async [kDestroy] () {
  33352. await this[kAgent].destroy()
  33353. await this[kClient].destroy()
  33354. }
  33355. }
  33356. /**
  33357. * @param {string[] | Record<string, string>} headers
  33358. * @returns {Record<string, string>}
  33359. */
  33360. function buildHeaders (headers) {
  33361. // When using undici.fetch, the headers list is stored
  33362. // as an array.
  33363. if (Array.isArray(headers)) {
  33364. /** @type {Record<string, string>} */
  33365. const headersPair = {}
  33366. for (let i = 0; i < headers.length; i += 2) {
  33367. headersPair[headers[i]] = headers[i + 1]
  33368. }
  33369. return headersPair
  33370. }
  33371. return headers
  33372. }
  33373. /**
  33374. * @param {Record<string, string>} headers
  33375. *
  33376. * Previous versions of ProxyAgent suggests the Proxy-Authorization in request headers
  33377. * Nevertheless, it was changed and to avoid a security vulnerability by end users
  33378. * this check was created.
  33379. * It should be removed in the next major version for performance reasons
  33380. */
  33381. function throwIfProxyAuthIsSent (headers) {
  33382. const existProxyAuth = headers && Object.keys(headers)
  33383. .find((key) => key.toLowerCase() === 'proxy-authorization')
  33384. if (existProxyAuth) {
  33385. throw new InvalidArgumentError('Proxy-Authorization should be sent in ProxyAgent constructor')
  33386. }
  33387. }
  33388. module.exports = ProxyAgent
  33389. /***/ }),
  33390. /***/ 9459:
  33391. /***/ ((module) => {
  33392. "use strict";
  33393. let fastNow = Date.now()
  33394. let fastNowTimeout
  33395. const fastTimers = []
  33396. function onTimeout () {
  33397. fastNow = Date.now()
  33398. let len = fastTimers.length
  33399. let idx = 0
  33400. while (idx < len) {
  33401. const timer = fastTimers[idx]
  33402. if (timer.state === 0) {
  33403. timer.state = fastNow + timer.delay
  33404. } else if (timer.state > 0 && fastNow >= timer.state) {
  33405. timer.state = -1
  33406. timer.callback(timer.opaque)
  33407. }
  33408. if (timer.state === -1) {
  33409. timer.state = -2
  33410. if (idx !== len - 1) {
  33411. fastTimers[idx] = fastTimers.pop()
  33412. } else {
  33413. fastTimers.pop()
  33414. }
  33415. len -= 1
  33416. } else {
  33417. idx += 1
  33418. }
  33419. }
  33420. if (fastTimers.length > 0) {
  33421. refreshTimeout()
  33422. }
  33423. }
  33424. function refreshTimeout () {
  33425. if (fastNowTimeout && fastNowTimeout.refresh) {
  33426. fastNowTimeout.refresh()
  33427. } else {
  33428. clearTimeout(fastNowTimeout)
  33429. fastNowTimeout = setTimeout(onTimeout, 1e3)
  33430. if (fastNowTimeout.unref) {
  33431. fastNowTimeout.unref()
  33432. }
  33433. }
  33434. }
  33435. class Timeout {
  33436. constructor (callback, delay, opaque) {
  33437. this.callback = callback
  33438. this.delay = delay
  33439. this.opaque = opaque
  33440. // -2 not in timer list
  33441. // -1 in timer list but inactive
  33442. // 0 in timer list waiting for time
  33443. // > 0 in timer list waiting for time to expire
  33444. this.state = -2
  33445. this.refresh()
  33446. }
  33447. refresh () {
  33448. if (this.state === -2) {
  33449. fastTimers.push(this)
  33450. if (!fastNowTimeout || fastTimers.length === 1) {
  33451. refreshTimeout()
  33452. }
  33453. }
  33454. this.state = 0
  33455. }
  33456. clear () {
  33457. this.state = -1
  33458. }
  33459. }
  33460. module.exports = {
  33461. setTimeout (callback, delay, opaque) {
  33462. return delay < 1e3
  33463. ? setTimeout(callback, delay, opaque)
  33464. : new Timeout(callback, delay, opaque)
  33465. },
  33466. clearTimeout (timeout) {
  33467. if (timeout instanceof Timeout) {
  33468. timeout.clear()
  33469. } else {
  33470. clearTimeout(timeout)
  33471. }
  33472. }
  33473. }
  33474. /***/ }),
  33475. /***/ 5354:
  33476. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33477. "use strict";
  33478. const diagnosticsChannel = __nccwpck_require__(7643)
  33479. const { uid, states } = __nccwpck_require__(9188)
  33480. const {
  33481. kReadyState,
  33482. kSentClose,
  33483. kByteParser,
  33484. kReceivedClose
  33485. } = __nccwpck_require__(7578)
  33486. const { fireEvent, failWebsocketConnection } = __nccwpck_require__(5515)
  33487. const { CloseEvent } = __nccwpck_require__(2611)
  33488. const { makeRequest } = __nccwpck_require__(8359)
  33489. const { fetching } = __nccwpck_require__(4881)
  33490. const { Headers } = __nccwpck_require__(554)
  33491. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  33492. const { kHeadersList } = __nccwpck_require__(2785)
  33493. const channels = {}
  33494. channels.open = diagnosticsChannel.channel('undici:websocket:open')
  33495. channels.close = diagnosticsChannel.channel('undici:websocket:close')
  33496. channels.socketError = diagnosticsChannel.channel('undici:websocket:socket_error')
  33497. /** @type {import('crypto')} */
  33498. let crypto
  33499. try {
  33500. crypto = __nccwpck_require__(6113)
  33501. } catch {
  33502. }
  33503. /**
  33504. * @see https://websockets.spec.whatwg.org/#concept-websocket-establish
  33505. * @param {URL} url
  33506. * @param {string|string[]} protocols
  33507. * @param {import('./websocket').WebSocket} ws
  33508. * @param {(response: any) => void} onEstablish
  33509. * @param {Partial<import('../../types/websocket').WebSocketInit>} options
  33510. */
  33511. function establishWebSocketConnection (url, protocols, ws, onEstablish, options) {
  33512. // 1. Let requestURL be a copy of url, with its scheme set to "http", if url’s
  33513. // scheme is "ws", and to "https" otherwise.
  33514. const requestURL = url
  33515. requestURL.protocol = url.protocol === 'ws:' ? 'http:' : 'https:'
  33516. // 2. Let request be a new request, whose URL is requestURL, client is client,
  33517. // service-workers mode is "none", referrer is "no-referrer", mode is
  33518. // "websocket", credentials mode is "include", cache mode is "no-store" ,
  33519. // and redirect mode is "error".
  33520. const request = makeRequest({
  33521. urlList: [requestURL],
  33522. serviceWorkers: 'none',
  33523. referrer: 'no-referrer',
  33524. mode: 'websocket',
  33525. credentials: 'include',
  33526. cache: 'no-store',
  33527. redirect: 'error'
  33528. })
  33529. // Note: undici extension, allow setting custom headers.
  33530. if (options.headers) {
  33531. const headersList = new Headers(options.headers)[kHeadersList]
  33532. request.headersList = headersList
  33533. }
  33534. // 3. Append (`Upgrade`, `websocket`) to request’s header list.
  33535. // 4. Append (`Connection`, `Upgrade`) to request’s header list.
  33536. // Note: both of these are handled by undici currently.
  33537. // https://github.com/nodejs/undici/blob/68c269c4144c446f3f1220951338daef4a6b5ec4/lib/client.js#L1397
  33538. // 5. Let keyValue be a nonce consisting of a randomly selected
  33539. // 16-byte value that has been forgiving-base64-encoded and
  33540. // isomorphic encoded.
  33541. const keyValue = crypto.randomBytes(16).toString('base64')
  33542. // 6. Append (`Sec-WebSocket-Key`, keyValue) to request’s
  33543. // header list.
  33544. request.headersList.append('sec-websocket-key', keyValue)
  33545. // 7. Append (`Sec-WebSocket-Version`, `13`) to request’s
  33546. // header list.
  33547. request.headersList.append('sec-websocket-version', '13')
  33548. // 8. For each protocol in protocols, combine
  33549. // (`Sec-WebSocket-Protocol`, protocol) in request’s header
  33550. // list.
  33551. for (const protocol of protocols) {
  33552. request.headersList.append('sec-websocket-protocol', protocol)
  33553. }
  33554. // 9. Let permessageDeflate be a user-agent defined
  33555. // "permessage-deflate" extension header value.
  33556. // https://github.com/mozilla/gecko-dev/blob/ce78234f5e653a5d3916813ff990f053510227bc/netwerk/protocol/websocket/WebSocketChannel.cpp#L2673
  33557. // TODO: enable once permessage-deflate is supported
  33558. const permessageDeflate = '' // 'permessage-deflate; 15'
  33559. // 10. Append (`Sec-WebSocket-Extensions`, permessageDeflate) to
  33560. // request’s header list.
  33561. // request.headersList.append('sec-websocket-extensions', permessageDeflate)
  33562. // 11. Fetch request with useParallelQueue set to true, and
  33563. // processResponse given response being these steps:
  33564. const controller = fetching({
  33565. request,
  33566. useParallelQueue: true,
  33567. dispatcher: options.dispatcher ?? getGlobalDispatcher(),
  33568. processResponse (response) {
  33569. // 1. If response is a network error or its status is not 101,
  33570. // fail the WebSocket connection.
  33571. if (response.type === 'error' || response.status !== 101) {
  33572. failWebsocketConnection(ws, 'Received network error or non-101 status code.')
  33573. return
  33574. }
  33575. // 2. If protocols is not the empty list and extracting header
  33576. // list values given `Sec-WebSocket-Protocol` and response’s
  33577. // header list results in null, failure, or the empty byte
  33578. // sequence, then fail the WebSocket connection.
  33579. if (protocols.length !== 0 && !response.headersList.get('Sec-WebSocket-Protocol')) {
  33580. failWebsocketConnection(ws, 'Server did not respond with sent protocols.')
  33581. return
  33582. }
  33583. // 3. Follow the requirements stated step 2 to step 6, inclusive,
  33584. // of the last set of steps in section 4.1 of The WebSocket
  33585. // Protocol to validate response. This either results in fail
  33586. // the WebSocket connection or the WebSocket connection is
  33587. // established.
  33588. // 2. If the response lacks an |Upgrade| header field or the |Upgrade|
  33589. // header field contains a value that is not an ASCII case-
  33590. // insensitive match for the value "websocket", the client MUST
  33591. // _Fail the WebSocket Connection_.
  33592. if (response.headersList.get('Upgrade')?.toLowerCase() !== 'websocket') {
  33593. failWebsocketConnection(ws, 'Server did not set Upgrade header to "websocket".')
  33594. return
  33595. }
  33596. // 3. If the response lacks a |Connection| header field or the
  33597. // |Connection| header field doesn't contain a token that is an
  33598. // ASCII case-insensitive match for the value "Upgrade", the client
  33599. // MUST _Fail the WebSocket Connection_.
  33600. if (response.headersList.get('Connection')?.toLowerCase() !== 'upgrade') {
  33601. failWebsocketConnection(ws, 'Server did not set Connection header to "upgrade".')
  33602. return
  33603. }
  33604. // 4. If the response lacks a |Sec-WebSocket-Accept| header field or
  33605. // the |Sec-WebSocket-Accept| contains a value other than the
  33606. // base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket-
  33607. // Key| (as a string, not base64-decoded) with the string "258EAFA5-
  33608. // E914-47DA-95CA-C5AB0DC85B11" but ignoring any leading and
  33609. // trailing whitespace, the client MUST _Fail the WebSocket
  33610. // Connection_.
  33611. const secWSAccept = response.headersList.get('Sec-WebSocket-Accept')
  33612. const digest = crypto.createHash('sha1').update(keyValue + uid).digest('base64')
  33613. if (secWSAccept !== digest) {
  33614. failWebsocketConnection(ws, 'Incorrect hash received in Sec-WebSocket-Accept header.')
  33615. return
  33616. }
  33617. // 5. If the response includes a |Sec-WebSocket-Extensions| header
  33618. // field and this header field indicates the use of an extension
  33619. // that was not present in the client's handshake (the server has
  33620. // indicated an extension not requested by the client), the client
  33621. // MUST _Fail the WebSocket Connection_. (The parsing of this
  33622. // header field to determine which extensions are requested is
  33623. // discussed in Section 9.1.)
  33624. const secExtension = response.headersList.get('Sec-WebSocket-Extensions')
  33625. if (secExtension !== null && secExtension !== permessageDeflate) {
  33626. failWebsocketConnection(ws, 'Received different permessage-deflate than the one set.')
  33627. return
  33628. }
  33629. // 6. If the response includes a |Sec-WebSocket-Protocol| header field
  33630. // and this header field indicates the use of a subprotocol that was
  33631. // not present in the client's handshake (the server has indicated a
  33632. // subprotocol not requested by the client), the client MUST _Fail
  33633. // the WebSocket Connection_.
  33634. const secProtocol = response.headersList.get('Sec-WebSocket-Protocol')
  33635. if (secProtocol !== null && secProtocol !== request.headersList.get('Sec-WebSocket-Protocol')) {
  33636. failWebsocketConnection(ws, 'Protocol was not set in the opening handshake.')
  33637. return
  33638. }
  33639. response.socket.on('data', onSocketData)
  33640. response.socket.on('close', onSocketClose)
  33641. response.socket.on('error', onSocketError)
  33642. if (channels.open.hasSubscribers) {
  33643. channels.open.publish({
  33644. address: response.socket.address(),
  33645. protocol: secProtocol,
  33646. extensions: secExtension
  33647. })
  33648. }
  33649. onEstablish(response)
  33650. }
  33651. })
  33652. return controller
  33653. }
  33654. /**
  33655. * @param {Buffer} chunk
  33656. */
  33657. function onSocketData (chunk) {
  33658. if (!this.ws[kByteParser].write(chunk)) {
  33659. this.pause()
  33660. }
  33661. }
  33662. /**
  33663. * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
  33664. * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4
  33665. */
  33666. function onSocketClose () {
  33667. const { ws } = this
  33668. // If the TCP connection was closed after the
  33669. // WebSocket closing handshake was completed, the WebSocket connection
  33670. // is said to have been closed _cleanly_.
  33671. const wasClean = ws[kSentClose] && ws[kReceivedClose]
  33672. let code = 1005
  33673. let reason = ''
  33674. const result = ws[kByteParser].closingInfo
  33675. if (result) {
  33676. code = result.code ?? 1005
  33677. reason = result.reason
  33678. } else if (!ws[kSentClose]) {
  33679. // If _The WebSocket
  33680. // Connection is Closed_ and no Close control frame was received by the
  33681. // endpoint (such as could occur if the underlying transport connection
  33682. // is lost), _The WebSocket Connection Close Code_ is considered to be
  33683. // 1006.
  33684. code = 1006
  33685. }
  33686. // 1. Change the ready state to CLOSED (3).
  33687. ws[kReadyState] = states.CLOSED
  33688. // 2. If the user agent was required to fail the WebSocket
  33689. // connection, or if the WebSocket connection was closed
  33690. // after being flagged as full, fire an event named error
  33691. // at the WebSocket object.
  33692. // TODO
  33693. // 3. Fire an event named close at the WebSocket object,
  33694. // using CloseEvent, with the wasClean attribute
  33695. // initialized to true if the connection closed cleanly
  33696. // and false otherwise, the code attribute initialized to
  33697. // the WebSocket connection close code, and the reason
  33698. // attribute initialized to the result of applying UTF-8
  33699. // decode without BOM to the WebSocket connection close
  33700. // reason.
  33701. fireEvent('close', ws, CloseEvent, {
  33702. wasClean, code, reason
  33703. })
  33704. if (channels.close.hasSubscribers) {
  33705. channels.close.publish({
  33706. websocket: ws,
  33707. code,
  33708. reason
  33709. })
  33710. }
  33711. }
  33712. function onSocketError (error) {
  33713. const { ws } = this
  33714. ws[kReadyState] = states.CLOSING
  33715. if (channels.socketError.hasSubscribers) {
  33716. channels.socketError.publish(error)
  33717. }
  33718. this.destroy()
  33719. }
  33720. module.exports = {
  33721. establishWebSocketConnection
  33722. }
  33723. /***/ }),
  33724. /***/ 9188:
  33725. /***/ ((module) => {
  33726. "use strict";
  33727. // This is a Globally Unique Identifier unique used
  33728. // to validate that the endpoint accepts websocket
  33729. // connections.
  33730. // See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3
  33731. const uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
  33732. /** @type {PropertyDescriptor} */
  33733. const staticPropertyDescriptors = {
  33734. enumerable: true,
  33735. writable: false,
  33736. configurable: false
  33737. }
  33738. const states = {
  33739. CONNECTING: 0,
  33740. OPEN: 1,
  33741. CLOSING: 2,
  33742. CLOSED: 3
  33743. }
  33744. const opcodes = {
  33745. CONTINUATION: 0x0,
  33746. TEXT: 0x1,
  33747. BINARY: 0x2,
  33748. CLOSE: 0x8,
  33749. PING: 0x9,
  33750. PONG: 0xA
  33751. }
  33752. const maxUnsigned16Bit = 2 ** 16 - 1 // 65535
  33753. const parserStates = {
  33754. INFO: 0,
  33755. PAYLOADLENGTH_16: 2,
  33756. PAYLOADLENGTH_64: 3,
  33757. READ_DATA: 4
  33758. }
  33759. const emptyBuffer = Buffer.allocUnsafe(0)
  33760. module.exports = {
  33761. uid,
  33762. staticPropertyDescriptors,
  33763. states,
  33764. opcodes,
  33765. maxUnsigned16Bit,
  33766. parserStates,
  33767. emptyBuffer
  33768. }
  33769. /***/ }),
  33770. /***/ 2611:
  33771. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  33772. "use strict";
  33773. const { webidl } = __nccwpck_require__(1744)
  33774. const { kEnumerableProperty } = __nccwpck_require__(3983)
  33775. const { MessagePort } = __nccwpck_require__(1267)
  33776. /**
  33777. * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent
  33778. */
  33779. class MessageEvent extends Event {
  33780. #eventInit
  33781. constructor (type, eventInitDict = {}) {
  33782. webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent constructor' })
  33783. type = webidl.converters.DOMString(type)
  33784. eventInitDict = webidl.converters.MessageEventInit(eventInitDict)
  33785. super(type, eventInitDict)
  33786. this.#eventInit = eventInitDict
  33787. }
  33788. get data () {
  33789. webidl.brandCheck(this, MessageEvent)
  33790. return this.#eventInit.data
  33791. }
  33792. get origin () {
  33793. webidl.brandCheck(this, MessageEvent)
  33794. return this.#eventInit.origin
  33795. }
  33796. get lastEventId () {
  33797. webidl.brandCheck(this, MessageEvent)
  33798. return this.#eventInit.lastEventId
  33799. }
  33800. get source () {
  33801. webidl.brandCheck(this, MessageEvent)
  33802. return this.#eventInit.source
  33803. }
  33804. get ports () {
  33805. webidl.brandCheck(this, MessageEvent)
  33806. if (!Object.isFrozen(this.#eventInit.ports)) {
  33807. Object.freeze(this.#eventInit.ports)
  33808. }
  33809. return this.#eventInit.ports
  33810. }
  33811. initMessageEvent (
  33812. type,
  33813. bubbles = false,
  33814. cancelable = false,
  33815. data = null,
  33816. origin = '',
  33817. lastEventId = '',
  33818. source = null,
  33819. ports = []
  33820. ) {
  33821. webidl.brandCheck(this, MessageEvent)
  33822. webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent.initMessageEvent' })
  33823. return new MessageEvent(type, {
  33824. bubbles, cancelable, data, origin, lastEventId, source, ports
  33825. })
  33826. }
  33827. }
  33828. /**
  33829. * @see https://websockets.spec.whatwg.org/#the-closeevent-interface
  33830. */
  33831. class CloseEvent extends Event {
  33832. #eventInit
  33833. constructor (type, eventInitDict = {}) {
  33834. webidl.argumentLengthCheck(arguments, 1, { header: 'CloseEvent constructor' })
  33835. type = webidl.converters.DOMString(type)
  33836. eventInitDict = webidl.converters.CloseEventInit(eventInitDict)
  33837. super(type, eventInitDict)
  33838. this.#eventInit = eventInitDict
  33839. }
  33840. get wasClean () {
  33841. webidl.brandCheck(this, CloseEvent)
  33842. return this.#eventInit.wasClean
  33843. }
  33844. get code () {
  33845. webidl.brandCheck(this, CloseEvent)
  33846. return this.#eventInit.code
  33847. }
  33848. get reason () {
  33849. webidl.brandCheck(this, CloseEvent)
  33850. return this.#eventInit.reason
  33851. }
  33852. }
  33853. // https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface
  33854. class ErrorEvent extends Event {
  33855. #eventInit
  33856. constructor (type, eventInitDict) {
  33857. webidl.argumentLengthCheck(arguments, 1, { header: 'ErrorEvent constructor' })
  33858. super(type, eventInitDict)
  33859. type = webidl.converters.DOMString(type)
  33860. eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {})
  33861. this.#eventInit = eventInitDict
  33862. }
  33863. get message () {
  33864. webidl.brandCheck(this, ErrorEvent)
  33865. return this.#eventInit.message
  33866. }
  33867. get filename () {
  33868. webidl.brandCheck(this, ErrorEvent)
  33869. return this.#eventInit.filename
  33870. }
  33871. get lineno () {
  33872. webidl.brandCheck(this, ErrorEvent)
  33873. return this.#eventInit.lineno
  33874. }
  33875. get colno () {
  33876. webidl.brandCheck(this, ErrorEvent)
  33877. return this.#eventInit.colno
  33878. }
  33879. get error () {
  33880. webidl.brandCheck(this, ErrorEvent)
  33881. return this.#eventInit.error
  33882. }
  33883. }
  33884. Object.defineProperties(MessageEvent.prototype, {
  33885. [Symbol.toStringTag]: {
  33886. value: 'MessageEvent',
  33887. configurable: true
  33888. },
  33889. data: kEnumerableProperty,
  33890. origin: kEnumerableProperty,
  33891. lastEventId: kEnumerableProperty,
  33892. source: kEnumerableProperty,
  33893. ports: kEnumerableProperty,
  33894. initMessageEvent: kEnumerableProperty
  33895. })
  33896. Object.defineProperties(CloseEvent.prototype, {
  33897. [Symbol.toStringTag]: {
  33898. value: 'CloseEvent',
  33899. configurable: true
  33900. },
  33901. reason: kEnumerableProperty,
  33902. code: kEnumerableProperty,
  33903. wasClean: kEnumerableProperty
  33904. })
  33905. Object.defineProperties(ErrorEvent.prototype, {
  33906. [Symbol.toStringTag]: {
  33907. value: 'ErrorEvent',
  33908. configurable: true
  33909. },
  33910. message: kEnumerableProperty,
  33911. filename: kEnumerableProperty,
  33912. lineno: kEnumerableProperty,
  33913. colno: kEnumerableProperty,
  33914. error: kEnumerableProperty
  33915. })
  33916. webidl.converters.MessagePort = webidl.interfaceConverter(MessagePort)
  33917. webidl.converters['sequence<MessagePort>'] = webidl.sequenceConverter(
  33918. webidl.converters.MessagePort
  33919. )
  33920. const eventInit = [
  33921. {
  33922. key: 'bubbles',
  33923. converter: webidl.converters.boolean,
  33924. defaultValue: false
  33925. },
  33926. {
  33927. key: 'cancelable',
  33928. converter: webidl.converters.boolean,
  33929. defaultValue: false
  33930. },
  33931. {
  33932. key: 'composed',
  33933. converter: webidl.converters.boolean,
  33934. defaultValue: false
  33935. }
  33936. ]
  33937. webidl.converters.MessageEventInit = webidl.dictionaryConverter([
  33938. ...eventInit,
  33939. {
  33940. key: 'data',
  33941. converter: webidl.converters.any,
  33942. defaultValue: null
  33943. },
  33944. {
  33945. key: 'origin',
  33946. converter: webidl.converters.USVString,
  33947. defaultValue: ''
  33948. },
  33949. {
  33950. key: 'lastEventId',
  33951. converter: webidl.converters.DOMString,
  33952. defaultValue: ''
  33953. },
  33954. {
  33955. key: 'source',
  33956. // Node doesn't implement WindowProxy or ServiceWorker, so the only
  33957. // valid value for source is a MessagePort.
  33958. converter: webidl.nullableConverter(webidl.converters.MessagePort),
  33959. defaultValue: null
  33960. },
  33961. {
  33962. key: 'ports',
  33963. converter: webidl.converters['sequence<MessagePort>'],
  33964. get defaultValue () {
  33965. return []
  33966. }
  33967. }
  33968. ])
  33969. webidl.converters.CloseEventInit = webidl.dictionaryConverter([
  33970. ...eventInit,
  33971. {
  33972. key: 'wasClean',
  33973. converter: webidl.converters.boolean,
  33974. defaultValue: false
  33975. },
  33976. {
  33977. key: 'code',
  33978. converter: webidl.converters['unsigned short'],
  33979. defaultValue: 0
  33980. },
  33981. {
  33982. key: 'reason',
  33983. converter: webidl.converters.USVString,
  33984. defaultValue: ''
  33985. }
  33986. ])
  33987. webidl.converters.ErrorEventInit = webidl.dictionaryConverter([
  33988. ...eventInit,
  33989. {
  33990. key: 'message',
  33991. converter: webidl.converters.DOMString,
  33992. defaultValue: ''
  33993. },
  33994. {
  33995. key: 'filename',
  33996. converter: webidl.converters.USVString,
  33997. defaultValue: ''
  33998. },
  33999. {
  34000. key: 'lineno',
  34001. converter: webidl.converters['unsigned long'],
  34002. defaultValue: 0
  34003. },
  34004. {
  34005. key: 'colno',
  34006. converter: webidl.converters['unsigned long'],
  34007. defaultValue: 0
  34008. },
  34009. {
  34010. key: 'error',
  34011. converter: webidl.converters.any
  34012. }
  34013. ])
  34014. module.exports = {
  34015. MessageEvent,
  34016. CloseEvent,
  34017. ErrorEvent
  34018. }
  34019. /***/ }),
  34020. /***/ 5444:
  34021. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34022. "use strict";
  34023. const { maxUnsigned16Bit } = __nccwpck_require__(9188)
  34024. /** @type {import('crypto')} */
  34025. let crypto
  34026. try {
  34027. crypto = __nccwpck_require__(6113)
  34028. } catch {
  34029. }
  34030. class WebsocketFrameSend {
  34031. /**
  34032. * @param {Buffer|undefined} data
  34033. */
  34034. constructor (data) {
  34035. this.frameData = data
  34036. this.maskKey = crypto.randomBytes(4)
  34037. }
  34038. createFrame (opcode) {
  34039. const bodyLength = this.frameData?.byteLength ?? 0
  34040. /** @type {number} */
  34041. let payloadLength = bodyLength // 0-125
  34042. let offset = 6
  34043. if (bodyLength > maxUnsigned16Bit) {
  34044. offset += 8 // payload length is next 8 bytes
  34045. payloadLength = 127
  34046. } else if (bodyLength > 125) {
  34047. offset += 2 // payload length is next 2 bytes
  34048. payloadLength = 126
  34049. }
  34050. const buffer = Buffer.allocUnsafe(bodyLength + offset)
  34051. // Clear first 2 bytes, everything else is overwritten
  34052. buffer[0] = buffer[1] = 0
  34053. buffer[0] |= 0x80 // FIN
  34054. buffer[0] = (buffer[0] & 0xF0) + opcode // opcode
  34055. /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */
  34056. buffer[offset - 4] = this.maskKey[0]
  34057. buffer[offset - 3] = this.maskKey[1]
  34058. buffer[offset - 2] = this.maskKey[2]
  34059. buffer[offset - 1] = this.maskKey[3]
  34060. buffer[1] = payloadLength
  34061. if (payloadLength === 126) {
  34062. buffer.writeUInt16BE(bodyLength, 2)
  34063. } else if (payloadLength === 127) {
  34064. // Clear extended payload length
  34065. buffer[2] = buffer[3] = 0
  34066. buffer.writeUIntBE(bodyLength, 4, 6)
  34067. }
  34068. buffer[1] |= 0x80 // MASK
  34069. // mask body
  34070. for (let i = 0; i < bodyLength; i++) {
  34071. buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4]
  34072. }
  34073. return buffer
  34074. }
  34075. }
  34076. module.exports = {
  34077. WebsocketFrameSend
  34078. }
  34079. /***/ }),
  34080. /***/ 1688:
  34081. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34082. "use strict";
  34083. const { Writable } = __nccwpck_require__(2781)
  34084. const diagnosticsChannel = __nccwpck_require__(7643)
  34085. const { parserStates, opcodes, states, emptyBuffer } = __nccwpck_require__(9188)
  34086. const { kReadyState, kSentClose, kResponse, kReceivedClose } = __nccwpck_require__(7578)
  34087. const { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = __nccwpck_require__(5515)
  34088. const { WebsocketFrameSend } = __nccwpck_require__(5444)
  34089. // This code was influenced by ws released under the MIT license.
  34090. // Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
  34091. // Copyright (c) 2013 Arnout Kazemier and contributors
  34092. // Copyright (c) 2016 Luigi Pinca and contributors
  34093. const channels = {}
  34094. channels.ping = diagnosticsChannel.channel('undici:websocket:ping')
  34095. channels.pong = diagnosticsChannel.channel('undici:websocket:pong')
  34096. class ByteParser extends Writable {
  34097. #buffers = []
  34098. #byteOffset = 0
  34099. #state = parserStates.INFO
  34100. #info = {}
  34101. #fragments = []
  34102. constructor (ws) {
  34103. super()
  34104. this.ws = ws
  34105. }
  34106. /**
  34107. * @param {Buffer} chunk
  34108. * @param {() => void} callback
  34109. */
  34110. _write (chunk, _, callback) {
  34111. this.#buffers.push(chunk)
  34112. this.#byteOffset += chunk.length
  34113. this.run(callback)
  34114. }
  34115. /**
  34116. * Runs whenever a new chunk is received.
  34117. * Callback is called whenever there are no more chunks buffering,
  34118. * or not enough bytes are buffered to parse.
  34119. */
  34120. run (callback) {
  34121. while (true) {
  34122. if (this.#state === parserStates.INFO) {
  34123. // If there aren't enough bytes to parse the payload length, etc.
  34124. if (this.#byteOffset < 2) {
  34125. return callback()
  34126. }
  34127. const buffer = this.consume(2)
  34128. this.#info.fin = (buffer[0] & 0x80) !== 0
  34129. this.#info.opcode = buffer[0] & 0x0F
  34130. // If we receive a fragmented message, we use the type of the first
  34131. // frame to parse the full message as binary/text, when it's terminated
  34132. this.#info.originalOpcode ??= this.#info.opcode
  34133. this.#info.fragmented = !this.#info.fin && this.#info.opcode !== opcodes.CONTINUATION
  34134. if (this.#info.fragmented && this.#info.opcode !== opcodes.BINARY && this.#info.opcode !== opcodes.TEXT) {
  34135. // Only text and binary frames can be fragmented
  34136. failWebsocketConnection(this.ws, 'Invalid frame type was fragmented.')
  34137. return
  34138. }
  34139. const payloadLength = buffer[1] & 0x7F
  34140. if (payloadLength <= 125) {
  34141. this.#info.payloadLength = payloadLength
  34142. this.#state = parserStates.READ_DATA
  34143. } else if (payloadLength === 126) {
  34144. this.#state = parserStates.PAYLOADLENGTH_16
  34145. } else if (payloadLength === 127) {
  34146. this.#state = parserStates.PAYLOADLENGTH_64
  34147. }
  34148. if (this.#info.fragmented && payloadLength > 125) {
  34149. // A fragmented frame can't be fragmented itself
  34150. failWebsocketConnection(this.ws, 'Fragmented frame exceeded 125 bytes.')
  34151. return
  34152. } else if (
  34153. (this.#info.opcode === opcodes.PING ||
  34154. this.#info.opcode === opcodes.PONG ||
  34155. this.#info.opcode === opcodes.CLOSE) &&
  34156. payloadLength > 125
  34157. ) {
  34158. // Control frames can have a payload length of 125 bytes MAX
  34159. failWebsocketConnection(this.ws, 'Payload length for control frame exceeded 125 bytes.')
  34160. return
  34161. } else if (this.#info.opcode === opcodes.CLOSE) {
  34162. if (payloadLength === 1) {
  34163. failWebsocketConnection(this.ws, 'Received close frame with a 1-byte body.')
  34164. return
  34165. }
  34166. const body = this.consume(payloadLength)
  34167. this.#info.closeInfo = this.parseCloseBody(false, body)
  34168. if (!this.ws[kSentClose]) {
  34169. // If an endpoint receives a Close frame and did not previously send a
  34170. // Close frame, the endpoint MUST send a Close frame in response. (When
  34171. // sending a Close frame in response, the endpoint typically echos the
  34172. // status code it received.)
  34173. const body = Buffer.allocUnsafe(2)
  34174. body.writeUInt16BE(this.#info.closeInfo.code, 0)
  34175. const closeFrame = new WebsocketFrameSend(body)
  34176. this.ws[kResponse].socket.write(
  34177. closeFrame.createFrame(opcodes.CLOSE),
  34178. (err) => {
  34179. if (!err) {
  34180. this.ws[kSentClose] = true
  34181. }
  34182. }
  34183. )
  34184. }
  34185. // Upon either sending or receiving a Close control frame, it is said
  34186. // that _The WebSocket Closing Handshake is Started_ and that the
  34187. // WebSocket connection is in the CLOSING state.
  34188. this.ws[kReadyState] = states.CLOSING
  34189. this.ws[kReceivedClose] = true
  34190. this.end()
  34191. return
  34192. } else if (this.#info.opcode === opcodes.PING) {
  34193. // Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in
  34194. // response, unless it already received a Close frame.
  34195. // A Pong frame sent in response to a Ping frame must have identical
  34196. // "Application data"
  34197. const body = this.consume(payloadLength)
  34198. if (!this.ws[kReceivedClose]) {
  34199. const frame = new WebsocketFrameSend(body)
  34200. this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG))
  34201. if (channels.ping.hasSubscribers) {
  34202. channels.ping.publish({
  34203. payload: body
  34204. })
  34205. }
  34206. }
  34207. this.#state = parserStates.INFO
  34208. if (this.#byteOffset > 0) {
  34209. continue
  34210. } else {
  34211. callback()
  34212. return
  34213. }
  34214. } else if (this.#info.opcode === opcodes.PONG) {
  34215. // A Pong frame MAY be sent unsolicited. This serves as a
  34216. // unidirectional heartbeat. A response to an unsolicited Pong frame is
  34217. // not expected.
  34218. const body = this.consume(payloadLength)
  34219. if (channels.pong.hasSubscribers) {
  34220. channels.pong.publish({
  34221. payload: body
  34222. })
  34223. }
  34224. if (this.#byteOffset > 0) {
  34225. continue
  34226. } else {
  34227. callback()
  34228. return
  34229. }
  34230. }
  34231. } else if (this.#state === parserStates.PAYLOADLENGTH_16) {
  34232. if (this.#byteOffset < 2) {
  34233. return callback()
  34234. }
  34235. const buffer = this.consume(2)
  34236. this.#info.payloadLength = buffer.readUInt16BE(0)
  34237. this.#state = parserStates.READ_DATA
  34238. } else if (this.#state === parserStates.PAYLOADLENGTH_64) {
  34239. if (this.#byteOffset < 8) {
  34240. return callback()
  34241. }
  34242. const buffer = this.consume(8)
  34243. const upper = buffer.readUInt32BE(0)
  34244. // 2^31 is the maxinimum bytes an arraybuffer can contain
  34245. // on 32-bit systems. Although, on 64-bit systems, this is
  34246. // 2^53-1 bytes.
  34247. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length
  34248. // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;drc=1946212ac0100668f14eb9e2843bdd846e510a1e;bpv=1;bpt=1;l=1275
  34249. // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-array-buffer.h;l=34;drc=1946212ac0100668f14eb9e2843bdd846e510a1e
  34250. if (upper > 2 ** 31 - 1) {
  34251. failWebsocketConnection(this.ws, 'Received payload length > 2^31 bytes.')
  34252. return
  34253. }
  34254. const lower = buffer.readUInt32BE(4)
  34255. this.#info.payloadLength = (upper << 8) + lower
  34256. this.#state = parserStates.READ_DATA
  34257. } else if (this.#state === parserStates.READ_DATA) {
  34258. if (this.#byteOffset < this.#info.payloadLength) {
  34259. // If there is still more data in this chunk that needs to be read
  34260. return callback()
  34261. } else if (this.#byteOffset >= this.#info.payloadLength) {
  34262. // If the server sent multiple frames in a single chunk
  34263. const body = this.consume(this.#info.payloadLength)
  34264. this.#fragments.push(body)
  34265. // If the frame is unfragmented, or a fragmented frame was terminated,
  34266. // a message was received
  34267. if (!this.#info.fragmented || (this.#info.fin && this.#info.opcode === opcodes.CONTINUATION)) {
  34268. const fullMessage = Buffer.concat(this.#fragments)
  34269. websocketMessageReceived(this.ws, this.#info.originalOpcode, fullMessage)
  34270. this.#info = {}
  34271. this.#fragments.length = 0
  34272. }
  34273. this.#state = parserStates.INFO
  34274. }
  34275. }
  34276. if (this.#byteOffset > 0) {
  34277. continue
  34278. } else {
  34279. callback()
  34280. break
  34281. }
  34282. }
  34283. }
  34284. /**
  34285. * Take n bytes from the buffered Buffers
  34286. * @param {number} n
  34287. * @returns {Buffer|null}
  34288. */
  34289. consume (n) {
  34290. if (n > this.#byteOffset) {
  34291. return null
  34292. } else if (n === 0) {
  34293. return emptyBuffer
  34294. }
  34295. if (this.#buffers[0].length === n) {
  34296. this.#byteOffset -= this.#buffers[0].length
  34297. return this.#buffers.shift()
  34298. }
  34299. const buffer = Buffer.allocUnsafe(n)
  34300. let offset = 0
  34301. while (offset !== n) {
  34302. const next = this.#buffers[0]
  34303. const { length } = next
  34304. if (length + offset === n) {
  34305. buffer.set(this.#buffers.shift(), offset)
  34306. break
  34307. } else if (length + offset > n) {
  34308. buffer.set(next.subarray(0, n - offset), offset)
  34309. this.#buffers[0] = next.subarray(n - offset)
  34310. break
  34311. } else {
  34312. buffer.set(this.#buffers.shift(), offset)
  34313. offset += next.length
  34314. }
  34315. }
  34316. this.#byteOffset -= n
  34317. return buffer
  34318. }
  34319. parseCloseBody (onlyCode, data) {
  34320. // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5
  34321. /** @type {number|undefined} */
  34322. let code
  34323. if (data.length >= 2) {
  34324. // _The WebSocket Connection Close Code_ is
  34325. // defined as the status code (Section 7.4) contained in the first Close
  34326. // control frame received by the application
  34327. code = data.readUInt16BE(0)
  34328. }
  34329. if (onlyCode) {
  34330. if (!isValidStatusCode(code)) {
  34331. return null
  34332. }
  34333. return { code }
  34334. }
  34335. // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.6
  34336. /** @type {Buffer} */
  34337. let reason = data.subarray(2)
  34338. // Remove BOM
  34339. if (reason[0] === 0xEF && reason[1] === 0xBB && reason[2] === 0xBF) {
  34340. reason = reason.subarray(3)
  34341. }
  34342. if (code !== undefined && !isValidStatusCode(code)) {
  34343. return null
  34344. }
  34345. try {
  34346. // TODO: optimize this
  34347. reason = new TextDecoder('utf-8', { fatal: true }).decode(reason)
  34348. } catch {
  34349. return null
  34350. }
  34351. return { code, reason }
  34352. }
  34353. get closingInfo () {
  34354. return this.#info.closeInfo
  34355. }
  34356. }
  34357. module.exports = {
  34358. ByteParser
  34359. }
  34360. /***/ }),
  34361. /***/ 7578:
  34362. /***/ ((module) => {
  34363. "use strict";
  34364. module.exports = {
  34365. kWebSocketURL: Symbol('url'),
  34366. kReadyState: Symbol('ready state'),
  34367. kController: Symbol('controller'),
  34368. kResponse: Symbol('response'),
  34369. kBinaryType: Symbol('binary type'),
  34370. kSentClose: Symbol('sent close'),
  34371. kReceivedClose: Symbol('received close'),
  34372. kByteParser: Symbol('byte parser')
  34373. }
  34374. /***/ }),
  34375. /***/ 5515:
  34376. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34377. "use strict";
  34378. const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(7578)
  34379. const { states, opcodes } = __nccwpck_require__(9188)
  34380. const { MessageEvent, ErrorEvent } = __nccwpck_require__(2611)
  34381. /* globals Blob */
  34382. /**
  34383. * @param {import('./websocket').WebSocket} ws
  34384. */
  34385. function isEstablished (ws) {
  34386. // If the server's response is validated as provided for above, it is
  34387. // said that _The WebSocket Connection is Established_ and that the
  34388. // WebSocket Connection is in the OPEN state.
  34389. return ws[kReadyState] === states.OPEN
  34390. }
  34391. /**
  34392. * @param {import('./websocket').WebSocket} ws
  34393. */
  34394. function isClosing (ws) {
  34395. // Upon either sending or receiving a Close control frame, it is said
  34396. // that _The WebSocket Closing Handshake is Started_ and that the
  34397. // WebSocket connection is in the CLOSING state.
  34398. return ws[kReadyState] === states.CLOSING
  34399. }
  34400. /**
  34401. * @param {import('./websocket').WebSocket} ws
  34402. */
  34403. function isClosed (ws) {
  34404. return ws[kReadyState] === states.CLOSED
  34405. }
  34406. /**
  34407. * @see https://dom.spec.whatwg.org/#concept-event-fire
  34408. * @param {string} e
  34409. * @param {EventTarget} target
  34410. * @param {EventInit | undefined} eventInitDict
  34411. */
  34412. function fireEvent (e, target, eventConstructor = Event, eventInitDict) {
  34413. // 1. If eventConstructor is not given, then let eventConstructor be Event.
  34414. // 2. Let event be the result of creating an event given eventConstructor,
  34415. // in the relevant realm of target.
  34416. // 3. Initialize event’s type attribute to e.
  34417. const event = new eventConstructor(e, eventInitDict) // eslint-disable-line new-cap
  34418. // 4. Initialize any other IDL attributes of event as described in the
  34419. // invocation of this algorithm.
  34420. // 5. Return the result of dispatching event at target, with legacy target
  34421. // override flag set if set.
  34422. target.dispatchEvent(event)
  34423. }
  34424. /**
  34425. * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
  34426. * @param {import('./websocket').WebSocket} ws
  34427. * @param {number} type Opcode
  34428. * @param {Buffer} data application data
  34429. */
  34430. function websocketMessageReceived (ws, type, data) {
  34431. // 1. If ready state is not OPEN (1), then return.
  34432. if (ws[kReadyState] !== states.OPEN) {
  34433. return
  34434. }
  34435. // 2. Let dataForEvent be determined by switching on type and binary type:
  34436. let dataForEvent
  34437. if (type === opcodes.TEXT) {
  34438. // -> type indicates that the data is Text
  34439. // a new DOMString containing data
  34440. try {
  34441. dataForEvent = new TextDecoder('utf-8', { fatal: true }).decode(data)
  34442. } catch {
  34443. failWebsocketConnection(ws, 'Received invalid UTF-8 in text frame.')
  34444. return
  34445. }
  34446. } else if (type === opcodes.BINARY) {
  34447. if (ws[kBinaryType] === 'blob') {
  34448. // -> type indicates that the data is Binary and binary type is "blob"
  34449. // a new Blob object, created in the relevant Realm of the WebSocket
  34450. // object, that represents data as its raw data
  34451. dataForEvent = new Blob([data])
  34452. } else {
  34453. // -> type indicates that the data is Binary and binary type is "arraybuffer"
  34454. // a new ArrayBuffer object, created in the relevant Realm of the
  34455. // WebSocket object, whose contents are data
  34456. dataForEvent = new Uint8Array(data).buffer
  34457. }
  34458. }
  34459. // 3. Fire an event named message at the WebSocket object, using MessageEvent,
  34460. // with the origin attribute initialized to the serialization of the WebSocket
  34461. // object’s url's origin, and the data attribute initialized to dataForEvent.
  34462. fireEvent('message', ws, MessageEvent, {
  34463. origin: ws[kWebSocketURL].origin,
  34464. data: dataForEvent
  34465. })
  34466. }
  34467. /**
  34468. * @see https://datatracker.ietf.org/doc/html/rfc6455
  34469. * @see https://datatracker.ietf.org/doc/html/rfc2616
  34470. * @see https://bugs.chromium.org/p/chromium/issues/detail?id=398407
  34471. * @param {string} protocol
  34472. */
  34473. function isValidSubprotocol (protocol) {
  34474. // If present, this value indicates one
  34475. // or more comma-separated subprotocol the client wishes to speak,
  34476. // ordered by preference. The elements that comprise this value
  34477. // MUST be non-empty strings with characters in the range U+0021 to
  34478. // U+007E not including separator characters as defined in
  34479. // [RFC2616] and MUST all be unique strings.
  34480. if (protocol.length === 0) {
  34481. return false
  34482. }
  34483. for (const char of protocol) {
  34484. const code = char.charCodeAt(0)
  34485. if (
  34486. code < 0x21 ||
  34487. code > 0x7E ||
  34488. char === '(' ||
  34489. char === ')' ||
  34490. char === '<' ||
  34491. char === '>' ||
  34492. char === '@' ||
  34493. char === ',' ||
  34494. char === ';' ||
  34495. char === ':' ||
  34496. char === '\\' ||
  34497. char === '"' ||
  34498. char === '/' ||
  34499. char === '[' ||
  34500. char === ']' ||
  34501. char === '?' ||
  34502. char === '=' ||
  34503. char === '{' ||
  34504. char === '}' ||
  34505. code === 32 || // SP
  34506. code === 9 // HT
  34507. ) {
  34508. return false
  34509. }
  34510. }
  34511. return true
  34512. }
  34513. /**
  34514. * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7-4
  34515. * @param {number} code
  34516. */
  34517. function isValidStatusCode (code) {
  34518. if (code >= 1000 && code < 1015) {
  34519. return (
  34520. code !== 1004 && // reserved
  34521. code !== 1005 && // "MUST NOT be set as a status code"
  34522. code !== 1006 // "MUST NOT be set as a status code"
  34523. )
  34524. }
  34525. return code >= 3000 && code <= 4999
  34526. }
  34527. /**
  34528. * @param {import('./websocket').WebSocket} ws
  34529. * @param {string|undefined} reason
  34530. */
  34531. function failWebsocketConnection (ws, reason) {
  34532. const { [kController]: controller, [kResponse]: response } = ws
  34533. controller.abort()
  34534. if (response?.socket && !response.socket.destroyed) {
  34535. response.socket.destroy()
  34536. }
  34537. if (reason) {
  34538. fireEvent('error', ws, ErrorEvent, {
  34539. error: new Error(reason)
  34540. })
  34541. }
  34542. }
  34543. module.exports = {
  34544. isEstablished,
  34545. isClosing,
  34546. isClosed,
  34547. fireEvent,
  34548. isValidSubprotocol,
  34549. isValidStatusCode,
  34550. failWebsocketConnection,
  34551. websocketMessageReceived
  34552. }
  34553. /***/ }),
  34554. /***/ 4284:
  34555. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  34556. "use strict";
  34557. const { webidl } = __nccwpck_require__(1744)
  34558. const { DOMException } = __nccwpck_require__(1037)
  34559. const { URLSerializer } = __nccwpck_require__(685)
  34560. const { getGlobalOrigin } = __nccwpck_require__(1246)
  34561. const { staticPropertyDescriptors, states, opcodes, emptyBuffer } = __nccwpck_require__(9188)
  34562. const {
  34563. kWebSocketURL,
  34564. kReadyState,
  34565. kController,
  34566. kBinaryType,
  34567. kResponse,
  34568. kSentClose,
  34569. kByteParser
  34570. } = __nccwpck_require__(7578)
  34571. const { isEstablished, isClosing, isValidSubprotocol, failWebsocketConnection, fireEvent } = __nccwpck_require__(5515)
  34572. const { establishWebSocketConnection } = __nccwpck_require__(5354)
  34573. const { WebsocketFrameSend } = __nccwpck_require__(5444)
  34574. const { ByteParser } = __nccwpck_require__(1688)
  34575. const { kEnumerableProperty, isBlobLike } = __nccwpck_require__(3983)
  34576. const { getGlobalDispatcher } = __nccwpck_require__(1892)
  34577. const { types } = __nccwpck_require__(3837)
  34578. let experimentalWarned = false
  34579. // https://websockets.spec.whatwg.org/#interface-definition
  34580. class WebSocket extends EventTarget {
  34581. #events = {
  34582. open: null,
  34583. error: null,
  34584. close: null,
  34585. message: null
  34586. }
  34587. #bufferedAmount = 0
  34588. #protocol = ''
  34589. #extensions = ''
  34590. /**
  34591. * @param {string} url
  34592. * @param {string|string[]} protocols
  34593. */
  34594. constructor (url, protocols = []) {
  34595. super()
  34596. webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket constructor' })
  34597. if (!experimentalWarned) {
  34598. experimentalWarned = true
  34599. process.emitWarning('WebSockets are experimental, expect them to change at any time.', {
  34600. code: 'UNDICI-WS'
  34601. })
  34602. }
  34603. const options = webidl.converters['DOMString or sequence<DOMString> or WebSocketInit'](protocols)
  34604. url = webidl.converters.USVString(url)
  34605. protocols = options.protocols
  34606. // 1. Let baseURL be this's relevant settings object's API base URL.
  34607. const baseURL = getGlobalOrigin()
  34608. // 1. Let urlRecord be the result of applying the URL parser to url with baseURL.
  34609. let urlRecord
  34610. try {
  34611. urlRecord = new URL(url, baseURL)
  34612. } catch (e) {
  34613. // 3. If urlRecord is failure, then throw a "SyntaxError" DOMException.
  34614. throw new DOMException(e, 'SyntaxError')
  34615. }
  34616. // 4. If urlRecord’s scheme is "http", then set urlRecord’s scheme to "ws".
  34617. if (urlRecord.protocol === 'http:') {
  34618. urlRecord.protocol = 'ws:'
  34619. } else if (urlRecord.protocol === 'https:') {
  34620. // 5. Otherwise, if urlRecord’s scheme is "https", set urlRecord’s scheme to "wss".
  34621. urlRecord.protocol = 'wss:'
  34622. }
  34623. // 6. If urlRecord’s scheme is not "ws" or "wss", then throw a "SyntaxError" DOMException.
  34624. if (urlRecord.protocol !== 'ws:' && urlRecord.protocol !== 'wss:') {
  34625. throw new DOMException(
  34626. `Expected a ws: or wss: protocol, got ${urlRecord.protocol}`,
  34627. 'SyntaxError'
  34628. )
  34629. }
  34630. // 7. If urlRecord’s fragment is non-null, then throw a "SyntaxError"
  34631. // DOMException.
  34632. if (urlRecord.hash || urlRecord.href.endsWith('#')) {
  34633. throw new DOMException('Got fragment', 'SyntaxError')
  34634. }
  34635. // 8. If protocols is a string, set protocols to a sequence consisting
  34636. // of just that string.
  34637. if (typeof protocols === 'string') {
  34638. protocols = [protocols]
  34639. }
  34640. // 9. If any of the values in protocols occur more than once or otherwise
  34641. // fail to match the requirements for elements that comprise the value
  34642. // of `Sec-WebSocket-Protocol` fields as defined by The WebSocket
  34643. // protocol, then throw a "SyntaxError" DOMException.
  34644. if (protocols.length !== new Set(protocols.map(p => p.toLowerCase())).size) {
  34645. throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')
  34646. }
  34647. if (protocols.length > 0 && !protocols.every(p => isValidSubprotocol(p))) {
  34648. throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')
  34649. }
  34650. // 10. Set this's url to urlRecord.
  34651. this[kWebSocketURL] = new URL(urlRecord.href)
  34652. // 11. Let client be this's relevant settings object.
  34653. // 12. Run this step in parallel:
  34654. // 1. Establish a WebSocket connection given urlRecord, protocols,
  34655. // and client.
  34656. this[kController] = establishWebSocketConnection(
  34657. urlRecord,
  34658. protocols,
  34659. this,
  34660. (response) => this.#onConnectionEstablished(response),
  34661. options
  34662. )
  34663. // Each WebSocket object has an associated ready state, which is a
  34664. // number representing the state of the connection. Initially it must
  34665. // be CONNECTING (0).
  34666. this[kReadyState] = WebSocket.CONNECTING
  34667. // The extensions attribute must initially return the empty string.
  34668. // The protocol attribute must initially return the empty string.
  34669. // Each WebSocket object has an associated binary type, which is a
  34670. // BinaryType. Initially it must be "blob".
  34671. this[kBinaryType] = 'blob'
  34672. }
  34673. /**
  34674. * @see https://websockets.spec.whatwg.org/#dom-websocket-close
  34675. * @param {number|undefined} code
  34676. * @param {string|undefined} reason
  34677. */
  34678. close (code = undefined, reason = undefined) {
  34679. webidl.brandCheck(this, WebSocket)
  34680. if (code !== undefined) {
  34681. code = webidl.converters['unsigned short'](code, { clamp: true })
  34682. }
  34683. if (reason !== undefined) {
  34684. reason = webidl.converters.USVString(reason)
  34685. }
  34686. // 1. If code is present, but is neither an integer equal to 1000 nor an
  34687. // integer in the range 3000 to 4999, inclusive, throw an
  34688. // "InvalidAccessError" DOMException.
  34689. if (code !== undefined) {
  34690. if (code !== 1000 && (code < 3000 || code > 4999)) {
  34691. throw new DOMException('invalid code', 'InvalidAccessError')
  34692. }
  34693. }
  34694. let reasonByteLength = 0
  34695. // 2. If reason is present, then run these substeps:
  34696. if (reason !== undefined) {
  34697. // 1. Let reasonBytes be the result of encoding reason.
  34698. // 2. If reasonBytes is longer than 123 bytes, then throw a
  34699. // "SyntaxError" DOMException.
  34700. reasonByteLength = Buffer.byteLength(reason)
  34701. if (reasonByteLength > 123) {
  34702. throw new DOMException(
  34703. `Reason must be less than 123 bytes; received ${reasonByteLength}`,
  34704. 'SyntaxError'
  34705. )
  34706. }
  34707. }
  34708. // 3. Run the first matching steps from the following list:
  34709. if (this[kReadyState] === WebSocket.CLOSING || this[kReadyState] === WebSocket.CLOSED) {
  34710. // If this's ready state is CLOSING (2) or CLOSED (3)
  34711. // Do nothing.
  34712. } else if (!isEstablished(this)) {
  34713. // If the WebSocket connection is not yet established
  34714. // Fail the WebSocket connection and set this's ready state
  34715. // to CLOSING (2).
  34716. failWebsocketConnection(this, 'Connection was closed before it was established.')
  34717. this[kReadyState] = WebSocket.CLOSING
  34718. } else if (!isClosing(this)) {
  34719. // If the WebSocket closing handshake has not yet been started
  34720. // Start the WebSocket closing handshake and set this's ready
  34721. // state to CLOSING (2).
  34722. // - If neither code nor reason is present, the WebSocket Close
  34723. // message must not have a body.
  34724. // - If code is present, then the status code to use in the
  34725. // WebSocket Close message must be the integer given by code.
  34726. // - If reason is also present, then reasonBytes must be
  34727. // provided in the Close message after the status code.
  34728. const frame = new WebsocketFrameSend()
  34729. // If neither code nor reason is present, the WebSocket Close
  34730. // message must not have a body.
  34731. // If code is present, then the status code to use in the
  34732. // WebSocket Close message must be the integer given by code.
  34733. if (code !== undefined && reason === undefined) {
  34734. frame.frameData = Buffer.allocUnsafe(2)
  34735. frame.frameData.writeUInt16BE(code, 0)
  34736. } else if (code !== undefined && reason !== undefined) {
  34737. // If reason is also present, then reasonBytes must be
  34738. // provided in the Close message after the status code.
  34739. frame.frameData = Buffer.allocUnsafe(2 + reasonByteLength)
  34740. frame.frameData.writeUInt16BE(code, 0)
  34741. // the body MAY contain UTF-8-encoded data with value /reason/
  34742. frame.frameData.write(reason, 2, 'utf-8')
  34743. } else {
  34744. frame.frameData = emptyBuffer
  34745. }
  34746. /** @type {import('stream').Duplex} */
  34747. const socket = this[kResponse].socket
  34748. socket.write(frame.createFrame(opcodes.CLOSE), (err) => {
  34749. if (!err) {
  34750. this[kSentClose] = true
  34751. }
  34752. })
  34753. // Upon either sending or receiving a Close control frame, it is said
  34754. // that _The WebSocket Closing Handshake is Started_ and that the
  34755. // WebSocket connection is in the CLOSING state.
  34756. this[kReadyState] = states.CLOSING
  34757. } else {
  34758. // Otherwise
  34759. // Set this's ready state to CLOSING (2).
  34760. this[kReadyState] = WebSocket.CLOSING
  34761. }
  34762. }
  34763. /**
  34764. * @see https://websockets.spec.whatwg.org/#dom-websocket-send
  34765. * @param {NodeJS.TypedArray|ArrayBuffer|Blob|string} data
  34766. */
  34767. send (data) {
  34768. webidl.brandCheck(this, WebSocket)
  34769. webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket.send' })
  34770. data = webidl.converters.WebSocketSendData(data)
  34771. // 1. If this's ready state is CONNECTING, then throw an
  34772. // "InvalidStateError" DOMException.
  34773. if (this[kReadyState] === WebSocket.CONNECTING) {
  34774. throw new DOMException('Sent before connected.', 'InvalidStateError')
  34775. }
  34776. // 2. Run the appropriate set of steps from the following list:
  34777. // https://datatracker.ietf.org/doc/html/rfc6455#section-6.1
  34778. // https://datatracker.ietf.org/doc/html/rfc6455#section-5.2
  34779. if (!isEstablished(this) || isClosing(this)) {
  34780. return
  34781. }
  34782. /** @type {import('stream').Duplex} */
  34783. const socket = this[kResponse].socket
  34784. // If data is a string
  34785. if (typeof data === 'string') {
  34786. // If the WebSocket connection is established and the WebSocket
  34787. // closing handshake has not yet started, then the user agent
  34788. // must send a WebSocket Message comprised of the data argument
  34789. // using a text frame opcode; if the data cannot be sent, e.g.
  34790. // because it would need to be buffered but the buffer is full,
  34791. // the user agent must flag the WebSocket as full and then close
  34792. // the WebSocket connection. Any invocation of this method with a
  34793. // string argument that does not throw an exception must increase
  34794. // the bufferedAmount attribute by the number of bytes needed to
  34795. // express the argument as UTF-8.
  34796. const value = Buffer.from(data)
  34797. const frame = new WebsocketFrameSend(value)
  34798. const buffer = frame.createFrame(opcodes.TEXT)
  34799. this.#bufferedAmount += value.byteLength
  34800. socket.write(buffer, () => {
  34801. this.#bufferedAmount -= value.byteLength
  34802. })
  34803. } else if (types.isArrayBuffer(data)) {
  34804. // If the WebSocket connection is established, and the WebSocket
  34805. // closing handshake has not yet started, then the user agent must
  34806. // send a WebSocket Message comprised of data using a binary frame
  34807. // opcode; if the data cannot be sent, e.g. because it would need
  34808. // to be buffered but the buffer is full, the user agent must flag
  34809. // the WebSocket as full and then close the WebSocket connection.
  34810. // The data to be sent is the data stored in the buffer described
  34811. // by the ArrayBuffer object. Any invocation of this method with an
  34812. // ArrayBuffer argument that does not throw an exception must
  34813. // increase the bufferedAmount attribute by the length of the
  34814. // ArrayBuffer in bytes.
  34815. const value = Buffer.from(data)
  34816. const frame = new WebsocketFrameSend(value)
  34817. const buffer = frame.createFrame(opcodes.BINARY)
  34818. this.#bufferedAmount += value.byteLength
  34819. socket.write(buffer, () => {
  34820. this.#bufferedAmount -= value.byteLength
  34821. })
  34822. } else if (ArrayBuffer.isView(data)) {
  34823. // If the WebSocket connection is established, and the WebSocket
  34824. // closing handshake has not yet started, then the user agent must
  34825. // send a WebSocket Message comprised of data using a binary frame
  34826. // opcode; if the data cannot be sent, e.g. because it would need to
  34827. // be buffered but the buffer is full, the user agent must flag the
  34828. // WebSocket as full and then close the WebSocket connection. The
  34829. // data to be sent is the data stored in the section of the buffer
  34830. // described by the ArrayBuffer object that data references. Any
  34831. // invocation of this method with this kind of argument that does
  34832. // not throw an exception must increase the bufferedAmount attribute
  34833. // by the length of data’s buffer in bytes.
  34834. const ab = Buffer.from(data, data.byteOffset, data.byteLength)
  34835. const frame = new WebsocketFrameSend(ab)
  34836. const buffer = frame.createFrame(opcodes.BINARY)
  34837. this.#bufferedAmount += ab.byteLength
  34838. socket.write(buffer, () => {
  34839. this.#bufferedAmount -= ab.byteLength
  34840. })
  34841. } else if (isBlobLike(data)) {
  34842. // If the WebSocket connection is established, and the WebSocket
  34843. // closing handshake has not yet started, then the user agent must
  34844. // send a WebSocket Message comprised of data using a binary frame
  34845. // opcode; if the data cannot be sent, e.g. because it would need to
  34846. // be buffered but the buffer is full, the user agent must flag the
  34847. // WebSocket as full and then close the WebSocket connection. The data
  34848. // to be sent is the raw data represented by the Blob object. Any
  34849. // invocation of this method with a Blob argument that does not throw
  34850. // an exception must increase the bufferedAmount attribute by the size
  34851. // of the Blob object’s raw data, in bytes.
  34852. const frame = new WebsocketFrameSend()
  34853. data.arrayBuffer().then((ab) => {
  34854. const value = Buffer.from(ab)
  34855. frame.frameData = value
  34856. const buffer = frame.createFrame(opcodes.BINARY)
  34857. this.#bufferedAmount += value.byteLength
  34858. socket.write(buffer, () => {
  34859. this.#bufferedAmount -= value.byteLength
  34860. })
  34861. })
  34862. }
  34863. }
  34864. get readyState () {
  34865. webidl.brandCheck(this, WebSocket)
  34866. // The readyState getter steps are to return this's ready state.
  34867. return this[kReadyState]
  34868. }
  34869. get bufferedAmount () {
  34870. webidl.brandCheck(this, WebSocket)
  34871. return this.#bufferedAmount
  34872. }
  34873. get url () {
  34874. webidl.brandCheck(this, WebSocket)
  34875. // The url getter steps are to return this's url, serialized.
  34876. return URLSerializer(this[kWebSocketURL])
  34877. }
  34878. get extensions () {
  34879. webidl.brandCheck(this, WebSocket)
  34880. return this.#extensions
  34881. }
  34882. get protocol () {
  34883. webidl.brandCheck(this, WebSocket)
  34884. return this.#protocol
  34885. }
  34886. get onopen () {
  34887. webidl.brandCheck(this, WebSocket)
  34888. return this.#events.open
  34889. }
  34890. set onopen (fn) {
  34891. webidl.brandCheck(this, WebSocket)
  34892. if (this.#events.open) {
  34893. this.removeEventListener('open', this.#events.open)
  34894. }
  34895. if (typeof fn === 'function') {
  34896. this.#events.open = fn
  34897. this.addEventListener('open', fn)
  34898. } else {
  34899. this.#events.open = null
  34900. }
  34901. }
  34902. get onerror () {
  34903. webidl.brandCheck(this, WebSocket)
  34904. return this.#events.error
  34905. }
  34906. set onerror (fn) {
  34907. webidl.brandCheck(this, WebSocket)
  34908. if (this.#events.error) {
  34909. this.removeEventListener('error', this.#events.error)
  34910. }
  34911. if (typeof fn === 'function') {
  34912. this.#events.error = fn
  34913. this.addEventListener('error', fn)
  34914. } else {
  34915. this.#events.error = null
  34916. }
  34917. }
  34918. get onclose () {
  34919. webidl.brandCheck(this, WebSocket)
  34920. return this.#events.close
  34921. }
  34922. set onclose (fn) {
  34923. webidl.brandCheck(this, WebSocket)
  34924. if (this.#events.close) {
  34925. this.removeEventListener('close', this.#events.close)
  34926. }
  34927. if (typeof fn === 'function') {
  34928. this.#events.close = fn
  34929. this.addEventListener('close', fn)
  34930. } else {
  34931. this.#events.close = null
  34932. }
  34933. }
  34934. get onmessage () {
  34935. webidl.brandCheck(this, WebSocket)
  34936. return this.#events.message
  34937. }
  34938. set onmessage (fn) {
  34939. webidl.brandCheck(this, WebSocket)
  34940. if (this.#events.message) {
  34941. this.removeEventListener('message', this.#events.message)
  34942. }
  34943. if (typeof fn === 'function') {
  34944. this.#events.message = fn
  34945. this.addEventListener('message', fn)
  34946. } else {
  34947. this.#events.message = null
  34948. }
  34949. }
  34950. get binaryType () {
  34951. webidl.brandCheck(this, WebSocket)
  34952. return this[kBinaryType]
  34953. }
  34954. set binaryType (type) {
  34955. webidl.brandCheck(this, WebSocket)
  34956. if (type !== 'blob' && type !== 'arraybuffer') {
  34957. this[kBinaryType] = 'blob'
  34958. } else {
  34959. this[kBinaryType] = type
  34960. }
  34961. }
  34962. /**
  34963. * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
  34964. */
  34965. #onConnectionEstablished (response) {
  34966. // processResponse is called when the "response’s header list has been received and initialized."
  34967. // once this happens, the connection is open
  34968. this[kResponse] = response
  34969. const parser = new ByteParser(this)
  34970. parser.on('drain', function onParserDrain () {
  34971. this.ws[kResponse].socket.resume()
  34972. })
  34973. response.socket.ws = this
  34974. this[kByteParser] = parser
  34975. // 1. Change the ready state to OPEN (1).
  34976. this[kReadyState] = states.OPEN
  34977. // 2. Change the extensions attribute’s value to the extensions in use, if
  34978. // it is not the null value.
  34979. // https://datatracker.ietf.org/doc/html/rfc6455#section-9.1
  34980. const extensions = response.headersList.get('sec-websocket-extensions')
  34981. if (extensions !== null) {
  34982. this.#extensions = extensions
  34983. }
  34984. // 3. Change the protocol attribute’s value to the subprotocol in use, if
  34985. // it is not the null value.
  34986. // https://datatracker.ietf.org/doc/html/rfc6455#section-1.9
  34987. const protocol = response.headersList.get('sec-websocket-protocol')
  34988. if (protocol !== null) {
  34989. this.#protocol = protocol
  34990. }
  34991. // 4. Fire an event named open at the WebSocket object.
  34992. fireEvent('open', this)
  34993. }
  34994. }
  34995. // https://websockets.spec.whatwg.org/#dom-websocket-connecting
  34996. WebSocket.CONNECTING = WebSocket.prototype.CONNECTING = states.CONNECTING
  34997. // https://websockets.spec.whatwg.org/#dom-websocket-open
  34998. WebSocket.OPEN = WebSocket.prototype.OPEN = states.OPEN
  34999. // https://websockets.spec.whatwg.org/#dom-websocket-closing
  35000. WebSocket.CLOSING = WebSocket.prototype.CLOSING = states.CLOSING
  35001. // https://websockets.spec.whatwg.org/#dom-websocket-closed
  35002. WebSocket.CLOSED = WebSocket.prototype.CLOSED = states.CLOSED
  35003. Object.defineProperties(WebSocket.prototype, {
  35004. CONNECTING: staticPropertyDescriptors,
  35005. OPEN: staticPropertyDescriptors,
  35006. CLOSING: staticPropertyDescriptors,
  35007. CLOSED: staticPropertyDescriptors,
  35008. url: kEnumerableProperty,
  35009. readyState: kEnumerableProperty,
  35010. bufferedAmount: kEnumerableProperty,
  35011. onopen: kEnumerableProperty,
  35012. onerror: kEnumerableProperty,
  35013. onclose: kEnumerableProperty,
  35014. close: kEnumerableProperty,
  35015. onmessage: kEnumerableProperty,
  35016. binaryType: kEnumerableProperty,
  35017. send: kEnumerableProperty,
  35018. extensions: kEnumerableProperty,
  35019. protocol: kEnumerableProperty,
  35020. [Symbol.toStringTag]: {
  35021. value: 'WebSocket',
  35022. writable: false,
  35023. enumerable: false,
  35024. configurable: true
  35025. }
  35026. })
  35027. Object.defineProperties(WebSocket, {
  35028. CONNECTING: staticPropertyDescriptors,
  35029. OPEN: staticPropertyDescriptors,
  35030. CLOSING: staticPropertyDescriptors,
  35031. CLOSED: staticPropertyDescriptors
  35032. })
  35033. webidl.converters['sequence<DOMString>'] = webidl.sequenceConverter(
  35034. webidl.converters.DOMString
  35035. )
  35036. webidl.converters['DOMString or sequence<DOMString>'] = function (V) {
  35037. if (webidl.util.Type(V) === 'Object' && Symbol.iterator in V) {
  35038. return webidl.converters['sequence<DOMString>'](V)
  35039. }
  35040. return webidl.converters.DOMString(V)
  35041. }
  35042. // This implements the propsal made in https://github.com/whatwg/websockets/issues/42
  35043. webidl.converters.WebSocketInit = webidl.dictionaryConverter([
  35044. {
  35045. key: 'protocols',
  35046. converter: webidl.converters['DOMString or sequence<DOMString>'],
  35047. get defaultValue () {
  35048. return []
  35049. }
  35050. },
  35051. {
  35052. key: 'dispatcher',
  35053. converter: (V) => V,
  35054. get defaultValue () {
  35055. return getGlobalDispatcher()
  35056. }
  35057. },
  35058. {
  35059. key: 'headers',
  35060. converter: webidl.nullableConverter(webidl.converters.HeadersInit)
  35061. }
  35062. ])
  35063. webidl.converters['DOMString or sequence<DOMString> or WebSocketInit'] = function (V) {
  35064. if (webidl.util.Type(V) === 'Object' && !(Symbol.iterator in V)) {
  35065. return webidl.converters.WebSocketInit(V)
  35066. }
  35067. return { protocols: webidl.converters['DOMString or sequence<DOMString>'](V) }
  35068. }
  35069. webidl.converters.WebSocketSendData = function (V) {
  35070. if (webidl.util.Type(V) === 'Object') {
  35071. if (isBlobLike(V)) {
  35072. return webidl.converters.Blob(V, { strict: false })
  35073. }
  35074. if (ArrayBuffer.isView(V) || types.isAnyArrayBuffer(V)) {
  35075. return webidl.converters.BufferSource(V)
  35076. }
  35077. }
  35078. return webidl.converters.USVString(V)
  35079. }
  35080. module.exports = {
  35081. WebSocket
  35082. }
  35083. /***/ }),
  35084. /***/ 5030:
  35085. /***/ ((__unused_webpack_module, exports) => {
  35086. "use strict";
  35087. Object.defineProperty(exports, "__esModule", ({ value: true }));
  35088. function getUserAgent() {
  35089. if (typeof navigator === "object" && "userAgent" in navigator) {
  35090. return navigator.userAgent;
  35091. }
  35092. if (typeof process === "object" && "version" in process) {
  35093. return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
  35094. }
  35095. return "<environment undetectable>";
  35096. }
  35097. exports.getUserAgent = getUserAgent;
  35098. //# sourceMappingURL=index.js.map
  35099. /***/ }),
  35100. /***/ 2707:
  35101. /***/ ((module) => {
  35102. /**
  35103. * Convert array of 16 byte values to UUID string format of the form:
  35104. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  35105. */
  35106. var byteToHex = [];
  35107. for (var i = 0; i < 256; ++i) {
  35108. byteToHex[i] = (i + 0x100).toString(16).substr(1);
  35109. }
  35110. function bytesToUuid(buf, offset) {
  35111. var i = offset || 0;
  35112. var bth = byteToHex;
  35113. // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  35114. return ([
  35115. bth[buf[i++]], bth[buf[i++]],
  35116. bth[buf[i++]], bth[buf[i++]], '-',
  35117. bth[buf[i++]], bth[buf[i++]], '-',
  35118. bth[buf[i++]], bth[buf[i++]], '-',
  35119. bth[buf[i++]], bth[buf[i++]], '-',
  35120. bth[buf[i++]], bth[buf[i++]],
  35121. bth[buf[i++]], bth[buf[i++]],
  35122. bth[buf[i++]], bth[buf[i++]]
  35123. ]).join('');
  35124. }
  35125. module.exports = bytesToUuid;
  35126. /***/ }),
  35127. /***/ 5859:
  35128. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  35129. // Unique ID creation requires a high quality random # generator. In node.js
  35130. // this is pretty straight-forward - we use the crypto API.
  35131. var crypto = __nccwpck_require__(6113);
  35132. module.exports = function nodeRNG() {
  35133. return crypto.randomBytes(16);
  35134. };
  35135. /***/ }),
  35136. /***/ 824:
  35137. /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
  35138. var rng = __nccwpck_require__(5859);
  35139. var bytesToUuid = __nccwpck_require__(2707);
  35140. function v4(options, buf, offset) {
  35141. var i = buf && offset || 0;
  35142. if (typeof(options) == 'string') {
  35143. buf = options === 'binary' ? new Array(16) : null;
  35144. options = null;
  35145. }
  35146. options = options || {};
  35147. var rnds = options.random || (options.rng || rng)();
  35148. // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  35149. rnds[6] = (rnds[6] & 0x0f) | 0x40;
  35150. rnds[8] = (rnds[8] & 0x3f) | 0x80;
  35151. // Copy bytes to buffer, if provided
  35152. if (buf) {
  35153. for (var ii = 0; ii < 16; ++ii) {
  35154. buf[i + ii] = rnds[ii];
  35155. }
  35156. }
  35157. return buf || bytesToUuid(rnds);
  35158. }
  35159. module.exports = v4;
  35160. /***/ }),
  35161. /***/ 2940:
  35162. /***/ ((module) => {
  35163. // Returns a wrapper function that returns a wrapped callback
  35164. // The wrapper function should do some stuff, and return a
  35165. // presumably different callback function.
  35166. // This makes sure that own properties are retained, so that
  35167. // decorations and such are not lost along the way.
  35168. module.exports = wrappy
  35169. function wrappy (fn, cb) {
  35170. if (fn && cb) return wrappy(fn)(cb)
  35171. if (typeof fn !== 'function')
  35172. throw new TypeError('need wrapper function')
  35173. Object.keys(fn).forEach(function (k) {
  35174. wrapper[k] = fn[k]
  35175. })
  35176. return wrapper
  35177. function wrapper() {
  35178. var args = new Array(arguments.length)
  35179. for (var i = 0; i < args.length; i++) {
  35180. args[i] = arguments[i]
  35181. }
  35182. var ret = fn.apply(this, args)
  35183. var cb = args[args.length-1]
  35184. if (typeof ret === 'function' && ret !== cb) {
  35185. Object.keys(cb).forEach(function (k) {
  35186. ret[k] = cb[k]
  35187. })
  35188. }
  35189. return ret
  35190. }
  35191. }
  35192. /***/ }),
  35193. /***/ 2877:
  35194. /***/ ((module) => {
  35195. module.exports = eval("require")("encoding");
  35196. /***/ }),
  35197. /***/ 9491:
  35198. /***/ ((module) => {
  35199. "use strict";
  35200. module.exports = require("assert");
  35201. /***/ }),
  35202. /***/ 852:
  35203. /***/ ((module) => {
  35204. "use strict";
  35205. module.exports = require("async_hooks");
  35206. /***/ }),
  35207. /***/ 4300:
  35208. /***/ ((module) => {
  35209. "use strict";
  35210. module.exports = require("buffer");
  35211. /***/ }),
  35212. /***/ 2081:
  35213. /***/ ((module) => {
  35214. "use strict";
  35215. module.exports = require("child_process");
  35216. /***/ }),
  35217. /***/ 6206:
  35218. /***/ ((module) => {
  35219. "use strict";
  35220. module.exports = require("console");
  35221. /***/ }),
  35222. /***/ 6113:
  35223. /***/ ((module) => {
  35224. "use strict";
  35225. module.exports = require("crypto");
  35226. /***/ }),
  35227. /***/ 7643:
  35228. /***/ ((module) => {
  35229. "use strict";
  35230. module.exports = require("diagnostics_channel");
  35231. /***/ }),
  35232. /***/ 2361:
  35233. /***/ ((module) => {
  35234. "use strict";
  35235. module.exports = require("events");
  35236. /***/ }),
  35237. /***/ 7147:
  35238. /***/ ((module) => {
  35239. "use strict";
  35240. module.exports = require("fs");
  35241. /***/ }),
  35242. /***/ 3685:
  35243. /***/ ((module) => {
  35244. "use strict";
  35245. module.exports = require("http");
  35246. /***/ }),
  35247. /***/ 5158:
  35248. /***/ ((module) => {
  35249. "use strict";
  35250. module.exports = require("http2");
  35251. /***/ }),
  35252. /***/ 5687:
  35253. /***/ ((module) => {
  35254. "use strict";
  35255. module.exports = require("https");
  35256. /***/ }),
  35257. /***/ 1808:
  35258. /***/ ((module) => {
  35259. "use strict";
  35260. module.exports = require("net");
  35261. /***/ }),
  35262. /***/ 5673:
  35263. /***/ ((module) => {
  35264. "use strict";
  35265. module.exports = require("node:events");
  35266. /***/ }),
  35267. /***/ 4492:
  35268. /***/ ((module) => {
  35269. "use strict";
  35270. module.exports = require("node:stream");
  35271. /***/ }),
  35272. /***/ 7261:
  35273. /***/ ((module) => {
  35274. "use strict";
  35275. module.exports = require("node:util");
  35276. /***/ }),
  35277. /***/ 2037:
  35278. /***/ ((module) => {
  35279. "use strict";
  35280. module.exports = require("os");
  35281. /***/ }),
  35282. /***/ 1017:
  35283. /***/ ((module) => {
  35284. "use strict";
  35285. module.exports = require("path");
  35286. /***/ }),
  35287. /***/ 4074:
  35288. /***/ ((module) => {
  35289. "use strict";
  35290. module.exports = require("perf_hooks");
  35291. /***/ }),
  35292. /***/ 5477:
  35293. /***/ ((module) => {
  35294. "use strict";
  35295. module.exports = require("punycode");
  35296. /***/ }),
  35297. /***/ 3477:
  35298. /***/ ((module) => {
  35299. "use strict";
  35300. module.exports = require("querystring");
  35301. /***/ }),
  35302. /***/ 2781:
  35303. /***/ ((module) => {
  35304. "use strict";
  35305. module.exports = require("stream");
  35306. /***/ }),
  35307. /***/ 5356:
  35308. /***/ ((module) => {
  35309. "use strict";
  35310. module.exports = require("stream/web");
  35311. /***/ }),
  35312. /***/ 1576:
  35313. /***/ ((module) => {
  35314. "use strict";
  35315. module.exports = require("string_decoder");
  35316. /***/ }),
  35317. /***/ 9512:
  35318. /***/ ((module) => {
  35319. "use strict";
  35320. module.exports = require("timers");
  35321. /***/ }),
  35322. /***/ 4404:
  35323. /***/ ((module) => {
  35324. "use strict";
  35325. module.exports = require("tls");
  35326. /***/ }),
  35327. /***/ 7310:
  35328. /***/ ((module) => {
  35329. "use strict";
  35330. module.exports = require("url");
  35331. /***/ }),
  35332. /***/ 3837:
  35333. /***/ ((module) => {
  35334. "use strict";
  35335. module.exports = require("util");
  35336. /***/ }),
  35337. /***/ 9830:
  35338. /***/ ((module) => {
  35339. "use strict";
  35340. module.exports = require("util/types");
  35341. /***/ }),
  35342. /***/ 1267:
  35343. /***/ ((module) => {
  35344. "use strict";
  35345. module.exports = require("worker_threads");
  35346. /***/ }),
  35347. /***/ 9796:
  35348. /***/ ((module) => {
  35349. "use strict";
  35350. module.exports = require("zlib");
  35351. /***/ }),
  35352. /***/ 1907:
  35353. /***/ ((module) => {
  35354. "use strict";
  35355. module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]');
  35356. /***/ })
  35357. /******/ });
  35358. /************************************************************************/
  35359. /******/ // The module cache
  35360. /******/ var __webpack_module_cache__ = {};
  35361. /******/
  35362. /******/ // The require function
  35363. /******/ function __nccwpck_require__(moduleId) {
  35364. /******/ // Check if module is in cache
  35365. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  35366. /******/ if (cachedModule !== undefined) {
  35367. /******/ return cachedModule.exports;
  35368. /******/ }
  35369. /******/ // Create a new module (and put it into the cache)
  35370. /******/ var module = __webpack_module_cache__[moduleId] = {
  35371. /******/ // no module.id needed
  35372. /******/ // no module.loaded needed
  35373. /******/ exports: {}
  35374. /******/ };
  35375. /******/
  35376. /******/ // Execute the module function
  35377. /******/ var threw = true;
  35378. /******/ try {
  35379. /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__);
  35380. /******/ threw = false;
  35381. /******/ } finally {
  35382. /******/ if(threw) delete __webpack_module_cache__[moduleId];
  35383. /******/ }
  35384. /******/
  35385. /******/ // Return the exports of the module
  35386. /******/ return module.exports;
  35387. /******/ }
  35388. /******/
  35389. /************************************************************************/
  35390. /******/ /* webpack/runtime/compat */
  35391. /******/
  35392. /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
  35393. /******/
  35394. /************************************************************************/
  35395. /******/
  35396. /******/ // startup
  35397. /******/ // Load entry module and return exports
  35398. /******/ // This entry module is referenced by other modules so it can't be inlined
  35399. /******/ var __webpack_exports__ = __nccwpck_require__(3109);
  35400. /******/ module.exports = __webpack_exports__;
  35401. /******/
  35402. /******/ })()
  35403. ;